Revision | 69 (tree) |
---|---|
Time | 2022-05-05 10:22:30 |
Author | hemaxvi_soft |
(empty log message)
@@ -9,7 +9,7 @@ | ||
9 | 9 | public class Utilidades |
10 | 10 | { |
11 | 11 | |
12 | - public string version = "v1.0.9"; | |
12 | + public string version = "v1.1.0"; | |
13 | 13 | |
14 | 14 | |
15 | 15 | public void Notificaion(string titulo, string texto, string icono, Page page) |
@@ -281,6 +281,7 @@ | ||
281 | 281 | if (Cb48.Checked) { lotteriesDAL.LotteryID = 48; lotteriesDAL.GetByKey(loginDAL); loterryClosingRespuesta.Append(LotteryCLose(Cb48.Text, lotteriesDAL.ClosingTime, lotteriesDAL.SundayClosingTime) + "\\n\\n"); } |
282 | 282 | if (Cb49.Checked) { lotteriesDAL.LotteryID = 49; lotteriesDAL.GetByKey(loginDAL); loterryClosingRespuesta.Append(LotteryCLose(Cb49.Text, lotteriesDAL.ClosingTime, lotteriesDAL.SundayClosingTime) + "\\n\\n"); } |
283 | 283 | if (Cb5.Checked) { lotteriesDAL.LotteryID = 5; lotteriesDAL.GetByKey(loginDAL); loterryClosingRespuesta.Append(LotteryCLose(Cb5.Text, lotteriesDAL.ClosingTime, lotteriesDAL.SundayClosingTime) + "\\n\\n"); } |
284 | + if (Cb50.Checked) { lotteriesDAL.LotteryID = 50; lotteriesDAL.GetByKey(loginDAL); loterryClosingRespuesta.Append(LotteryCLose(Cb50.Text, lotteriesDAL.ClosingTime, lotteriesDAL.SundayClosingTime) + "\\n\\n"); } | |
284 | 285 | |
285 | 286 | |
286 | 287 | if (loterryClosingRespuesta.Length <= 20) |
@@ -307,6 +308,7 @@ | ||
307 | 308 | if (Cb48.Checked) { lotteriesDAL.LotteryID = 48; lotteryDalList = lotteriesDAL.Search(loginDAL); transactionsDAL.ShiftName = lotteryDalList[0].ShiftName; transactionsDAL.LotteryName = Cb48.Text; sbError.Append(transactionsDAL.Insert(loginDAL) ? InsertDetails(transactionsDAL.TransactionID, transactionsDAL.LotteryName, transactionsDAL.ShiftName) + "\\n\\n" : transactionsDAL.ErrorDescription + "\\n\\n"); } |
308 | 309 | if (Cb49.Checked) { lotteriesDAL.LotteryID = 49; lotteryDalList = lotteriesDAL.Search(loginDAL); transactionsDAL.ShiftName = lotteryDalList[0].ShiftName; transactionsDAL.LotteryName = Cb49.Text; sbError.Append(transactionsDAL.Insert(loginDAL) ? InsertDetails(transactionsDAL.TransactionID, transactionsDAL.LotteryName, transactionsDAL.ShiftName) + "\\n\\n" : transactionsDAL.ErrorDescription + "\\n\\n"); } |
309 | 310 | if (Cb5.Checked) { lotteriesDAL.LotteryID = 5; lotteryDalList = lotteriesDAL.Search(loginDAL); transactionsDAL.ShiftName = lotteryDalList[0].ShiftName; transactionsDAL.LotteryName = Cb5.Text; sbError.Append(transactionsDAL.Insert(loginDAL) ? InsertDetails(transactionsDAL.TransactionID, transactionsDAL.LotteryName, transactionsDAL.ShiftName) + "\\n\\n" : transactionsDAL.ErrorDescription + "\\n\\n"); } |
311 | + if (Cb50.Checked) { lotteriesDAL.LotteryID = 50; lotteryDalList = lotteriesDAL.Search(loginDAL); transactionsDAL.ShiftName = lotteryDalList[0].ShiftName; transactionsDAL.LotteryName = Cb50.Text; sbError.Append(transactionsDAL.Insert(loginDAL) ? InsertDetails(transactionsDAL.TransactionID, transactionsDAL.LotteryName, transactionsDAL.ShiftName) + "\\n\\n" : transactionsDAL.ErrorDescription + "\\n\\n"); } | |
310 | 312 | |
311 | 313 | ImprimirTPV(); |
312 | 314 | if (sbError.Length > 20) |
@@ -730,7 +732,7 @@ | ||
730 | 732 | |
731 | 733 | if (Cb1.Checked || Cb4.Checked || Cb5.Checked || Cb12.Checked || Cb15.Checked || Cb32.Checked || Cb33.Checked || |
732 | 734 | Cb37.Checked || Cb38.Checked || Cb39.Checked || Cb40.Checked || Cb41.Checked || Cb42.Checked || Cb43.Checked || |
733 | - Cb44.Checked || Cb45.Checked || Cb46.Checked || Cb47.Checked || Cb48.Checked || Cb49.Checked) | |
735 | + Cb44.Checked || Cb45.Checked || Cb46.Checked || Cb47.Checked || Cb48.Checked || Cb49.Checked || Cb50.Checked) | |
734 | 736 | { } |
735 | 737 | |
736 | 738 | string nombreBanca = customersDALList[0].PartnerShip; |
@@ -762,6 +764,7 @@ | ||
762 | 764 | if (Cb4.Checked) { TicketImprimir.InnerHtml += "<div class='aling-T-L'><a>LE </a><a>" + Cb4.Text + "</a></div>"; } |
763 | 765 | if (Cb40.Checked) { TicketImprimir.InnerHtml += "<div class='aling-T-L'><a>FN </a><a>" + Cb40.Text + "</a></div>"; } |
764 | 766 | if (Cb41.Checked) { TicketImprimir.InnerHtml += "<div class='aling-T-L'><a>LP </a><a>" + Cb41.Text + "</a></div>"; } |
767 | + if (Cb50.Checked) { TicketImprimir.InnerHtml += "<div class='aling-T-L'><a>LPN </a><a>" + Cb50.Text + "</a></div>"; } | |
765 | 768 | if (Cb42.Checked) { TicketImprimir.InnerHtml += "<div class='aling-T-L'><a>LS </a><a>" + Cb42.Text + "</a></div>"; } |
766 | 769 | if (Cb43.Checked) { TicketImprimir.InnerHtml += "<div class='aling-T-L'><a>LD </a><a>" + Cb43.Text + "</a></div>"; } |
767 | 770 | if (Cb45.Checked) { TicketImprimir.InnerHtml += "<div class='aling-T-L'><a>AMD </a><a>" + Cb45.Text + "</a></div>"; } |
@@ -772,6 +775,7 @@ | ||
772 | 775 | if (Cb5.Checked) { TicketImprimir.InnerHtml += "<div class='aling-T-L'><a>SNL </a><a>" + Cb5.Text + "</a></div>"; } |
773 | 776 | |
774 | 777 | |
778 | + | |
775 | 779 | TicketImprimir.InnerHtml += "<br/><div class='row' >"; |
776 | 780 | TicketImprimir.InnerHtml += "<div class='col-7'><div class='row justify-content-start negrita-T fs-5' >TP Num.</div></div>"; |
777 | 781 | TicketImprimir.InnerHtml += "<div class='col-2'><div class='row justify-content-start negrita-T fs-5' >Lot.</div></div>"; |
@@ -792,6 +796,7 @@ | ||
792 | 796 | if (Cb4.Checked) { detalleTicket += PintarTicketDetalle("LE", Cb4.Text); contadorLoterias++; } |
793 | 797 | if (Cb40.Checked) { detalleTicket += PintarTicketDetalle("FN", Cb40.Text); contadorLoterias++; } |
794 | 798 | if (Cb41.Checked) { detalleTicket += PintarTicketDetalle("LP", Cb41.Text); contadorLoterias++; } |
799 | + if (Cb50.Checked) { detalleTicket += PintarTicketDetalle("LPN", Cb50.Text); contadorLoterias++; } | |
795 | 800 | if (Cb42.Checked) { detalleTicket += PintarTicketDetalle("LS", Cb42.Text); contadorLoterias++; } |
796 | 801 | if (Cb43.Checked) { detalleTicket += PintarTicketDetalle("LD", Cb43.Text); contadorLoterias++; } |
797 | 802 | if (Cb45.Checked) { detalleTicket += PintarTicketDetalle("AMD", Cb45.Text); contadorLoterias++; } |
@@ -853,7 +858,7 @@ | ||
853 | 858 | |
854 | 859 | if (Cb1.Checked || Cb4.Checked || Cb5.Checked || Cb12.Checked || Cb15.Checked || Cb32.Checked || Cb33.Checked || |
855 | 860 | Cb37.Checked || Cb38.Checked || Cb39.Checked || Cb40.Checked || Cb41.Checked || Cb42.Checked || Cb43.Checked || |
856 | - Cb44.Checked || Cb45.Checked || Cb46.Checked || Cb47.Checked || Cb48.Checked || Cb49.Checked) | |
861 | + Cb44.Checked || Cb45.Checked || Cb46.Checked || Cb47.Checked || Cb48.Checked || Cb49.Checked || Cb50.Checked) | |
857 | 862 | { } |
858 | 863 | |
859 | 864 | string nombreBanca = customersDALList[0].PartnerShip; |
@@ -885,6 +890,7 @@ | ||
885 | 890 | if (Cb4.Checked) { TicketImprimir.InnerHtml += "<div class='aling-T-L'><a>LE </a><a>" + Cb4.Text + "</a></div>"; } |
886 | 891 | if (Cb40.Checked) { TicketImprimir.InnerHtml += "<div class='aling-T-L'><a>FN </a><a>" + Cb40.Text + "</a></div>"; } |
887 | 892 | if (Cb41.Checked) { TicketImprimir.InnerHtml += "<div class='aling-T-L'><a>LP </a><a>" + Cb41.Text + "</a></div>"; } |
893 | + if (Cb50.Checked) { TicketImprimir.InnerHtml += "<div class='aling-T-L'><a>LPN </a><a>" + Cb50.Text + "</a></div>"; } | |
888 | 894 | if (Cb42.Checked) { TicketImprimir.InnerHtml += "<div class='aling-T-L'><a>LS </a><a>" + Cb42.Text + "</a></div>"; } |
889 | 895 | if (Cb43.Checked) { TicketImprimir.InnerHtml += "<div class='aling-T-L'><a>LD </a><a>" + Cb43.Text + "</a></div>"; } |
890 | 896 | if (Cb45.Checked) { TicketImprimir.InnerHtml += "<div class='aling-T-L'><a>AMD </a><a>" + Cb45.Text + "</a></div>"; } |
@@ -915,6 +921,7 @@ | ||
915 | 921 | if (Cb4.Checked) { detalleTicket += PintarTicketDetalle("LE", Cb4.Text); contadorLoterias++; } |
916 | 922 | if (Cb40.Checked) { detalleTicket += PintarTicketDetalle("FN", Cb40.Text); contadorLoterias++; } |
917 | 923 | if (Cb41.Checked) { detalleTicket += PintarTicketDetalle("LP", Cb41.Text); contadorLoterias++; } |
924 | + if (Cb50.Checked) { detalleTicket += PintarTicketDetalle("LPN", Cb50.Text); contadorLoterias++; } | |
918 | 925 | if (Cb42.Checked) { detalleTicket += PintarTicketDetalle("LS", Cb42.Text); contadorLoterias++; } |
919 | 926 | if (Cb43.Checked) { detalleTicket += PintarTicketDetalle("LD", Cb43.Text); contadorLoterias++; } |
920 | 927 | if (Cb45.Checked) { detalleTicket += PintarTicketDetalle("AMD", Cb45.Text); contadorLoterias++; } |
@@ -1248,6 +1255,17 @@ | ||
1248 | 1255 | contador++; |
1249 | 1256 | } |
1250 | 1257 | } |
1258 | + if (Cb50.Checked) | |
1259 | + { | |
1260 | + if (!validateAvailableLimitsGridView(item.Cells[2].Text.ToString(), item.Cells[1].Text.ToString(), item.Cells[0].Text.ToString(), "49")) | |
1261 | + { | |
1262 | + | |
1263 | + respuesta += "\\n\\n En " + Cb50.Text + ":"; | |
1264 | + respuesta += "\\n\\n Linea Ticket: " + item.Cells[0].Text.ToString() + " " + item.Cells[1].Text.ToString() + " " + item.Cells[2].Text.ToString() + " Disp.:" + | |
1265 | + GetAvailableLimitsGridView(item.Cells[2].Text.ToString(), item.Cells[1].Text.ToString(), item.Cells[0].Text.ToString(), "50"); | |
1266 | + contador++; | |
1267 | + } | |
1268 | + } | |
1251 | 1269 | } |
1252 | 1270 | |
1253 | 1271 | if (contador == 1) |
@@ -1317,6 +1335,7 @@ | ||
1317 | 1335 | contador = Cb47.Checked ? contador + 1 : contador; |
1318 | 1336 | contador = Cb48.Checked ? contador + 1 : contador; |
1319 | 1337 | contador = Cb49.Checked ? contador + 1 : contador; |
1338 | + contador = Cb50.Checked ? contador + 1 : contador; | |
1320 | 1339 | |
1321 | 1340 | if (contador > 1) |
1322 | 1341 | { |
@@ -1377,6 +1396,7 @@ | ||
1377 | 1396 | case 47: Cb47.Enabled = false; Cb47.Checked = true; break; |
1378 | 1397 | case 48: Cb48.Enabled = false; Cb48.Checked = true; break; |
1379 | 1398 | case 49: Cb49.Enabled = false; Cb49.Checked = true; break; |
1399 | + case 50: Cb50.Enabled = false; Cb50.Checked = true; break; | |
1380 | 1400 | } |
1381 | 1401 | |
1382 | 1402 |
@@ -465,31 +465,31 @@ | ||
465 | 465 | protected global::System.Web.UI.WebControls.CheckBox Cb49; |
466 | 466 | |
467 | 467 | /// <summary> |
468 | - /// Control GvTicket. | |
468 | + /// Control Cb50. | |
469 | 469 | /// </summary> |
470 | 470 | /// <remarks> |
471 | 471 | /// Campo generado automáticamente. |
472 | 472 | /// Para modificarlo, mueva la declaración del campo del archivo del diseñador al archivo de código subyacente. |
473 | 473 | /// </remarks> |
474 | - protected global::System.Web.UI.WebControls.GridView GvTicket; | |
474 | + protected global::System.Web.UI.WebControls.CheckBox Cb50; | |
475 | 475 | |
476 | 476 | /// <summary> |
477 | - /// Control BtnJugar. | |
477 | + /// Control GvTicket. | |
478 | 478 | /// </summary> |
479 | 479 | /// <remarks> |
480 | 480 | /// Campo generado automáticamente. |
481 | 481 | /// Para modificarlo, mueva la declaración del campo del archivo del diseñador al archivo de código subyacente. |
482 | 482 | /// </remarks> |
483 | - protected global::System.Web.UI.WebControls.Button BtnJugar; | |
483 | + protected global::System.Web.UI.WebControls.GridView GvTicket; | |
484 | 484 | |
485 | 485 | /// <summary> |
486 | - /// Control Button1. | |
486 | + /// Control BtnJugar. | |
487 | 487 | /// </summary> |
488 | 488 | /// <remarks> |
489 | 489 | /// Campo generado automáticamente. |
490 | 490 | /// Para modificarlo, mueva la declaración del campo del archivo del diseñador al archivo de código subyacente. |
491 | 491 | /// </remarks> |
492 | - protected global::System.Web.UI.WebControls.Button Button1; | |
492 | + protected global::System.Web.UI.WebControls.Button BtnJugar; | |
493 | 493 | |
494 | 494 | /// <summary> |
495 | 495 | /// Control BtbBorrar. |
@@ -136,6 +136,7 @@ | ||
136 | 136 | case 47: Div47.Visible = false; break; |
137 | 137 | case 48: Div48.Visible = false; break; |
138 | 138 | case 49: Div49.Visible = false; break; |
139 | + case 50: Div50.Visible = false; break; | |
139 | 140 | } |
140 | 141 | } |
141 | 142 | } |
@@ -132,6 +132,24 @@ | ||
132 | 132 | protected global::System.Web.UI.HtmlControls.HtmlButton Btn41; |
133 | 133 | |
134 | 134 | /// <summary> |
135 | + /// Control Div50. | |
136 | + /// </summary> | |
137 | + /// <remarks> | |
138 | + /// Campo generado automáticamente. | |
139 | + /// Para modificarlo, mueva la declaración del campo del archivo del diseñador al archivo de código subyacente. | |
140 | + /// </remarks> | |
141 | + protected global::System.Web.UI.HtmlControls.HtmlGenericControl Div50; | |
142 | + | |
143 | + /// <summary> | |
144 | + /// Control Btn50. | |
145 | + /// </summary> | |
146 | + /// <remarks> | |
147 | + /// Campo generado automáticamente. | |
148 | + /// Para modificarlo, mueva la declaración del campo del archivo del diseñador al archivo de código subyacente. | |
149 | + /// </remarks> | |
150 | + protected global::System.Web.UI.HtmlControls.HtmlButton Btn50; | |
151 | + | |
152 | + /// <summary> | |
135 | 153 | /// Control Div42. |
136 | 154 | /// </summary> |
137 | 155 | /// <remarks> |