Ok, sigo mis aventuras en LA … el día de ayer fuí a comer a Mi Piace allá en Pasadena, después nos fuimos a tomar unos tragos a Hollywood Blvd. por La Ciénega y acabamos en un barcito (hey … 10 USD de estacionamiento???) que se llama Star Shoes. Excelentes tragos, un lugar ecléctico y con todo el socialité de la banda Hollywodense… xD Recomendable para cuando visiten Los Angeles amiguitos…
Chequen este código que tengo que portar a C#:
1 | If IsPostBack Then |
2 | Dim Wiretotal As Int16 |
3 | Wiretotal = e.Row.Cells.FromKey(“tr_total”).Value |
4 | If e.Row.Cells.FromKey(“tr_status”).Value = “V” Then |
5 | VoidCount += 1 |
6 | e.Row.Cells.FromKey(“tr_total”).Style.BackColor = System.Drawing.Color.Empty |
7 | Else |
8 | If (Wiretotal >= 3000) Then |
9 | e.Row.Cells.FromKey(“tr_total”).Style.BackColor = System.Drawing.Color.Yellow |
10 | Total += Wiretotal |
11 | Count += 1 |
12 | Else |
13 | If e.Row.Cells.FromKey(“tr_tran_type”).Value = “CF” And e.Row.Cells.FromKey(“tr_encrypt”).Value = 0 Then |
14 | Refunds += Wiretotal |
15 | e.Row.Cells.FromKey(“tr_total”).Style.BackColor = System.Drawing.Color.DarkSalmon |
16 | Else |
17 | Total += Wiretotal |
18 | If Not (e.Row.Cells.FromKey(“tr_tran_type”).Value = “MO” Or e.Row.Cells.FromKey(“tr_tran_type”).Value = “CI” Or e.Row.Cells.FromKey(“tr_tran_type”).Value = “CF”) Then |
19 | Count += 1 |
20 | e.Row.Cells.FromKey(“tr_total”).Style.BackColor = System.Drawing.Color.PaleGreen |
21 | Else |
22 | e.Row.Cells.FromKey(“tr_total”).Style.BackColor = System.Drawing.Color.Turquoise |
23 | End If |
24 | End If |
25 | End If |
26 | End If |
27 | End If |
Mi pregunta es: ¿Por qué a mi?
Cheers!! xD