Revisión | 58 (tree) |
---|---|
Tiempo | 2022-02-10 23:21:46 |
Autor | hemaxvi_soft |
(empty log message)
@@ -77,10 +77,19 @@ | ||
77 | 77 | |
78 | 78 | |
79 | 79 | /************Metodos en USO**************************/ |
80 | -function VentasMensual2( Enero,Febrero,Marzo,Abril,Mayo,Junio,Julio,Agosto,Septiembre, Optubre, Novienbre,Diciembre) | |
81 | -{ | |
80 | + | |
81 | +function Notificacion(texto, titulo, icono) { | |
82 | + swal({ | |
83 | + title: "" + titulo + "", | |
84 | + text: "" + texto + "", | |
85 | + icon: "" + icono + "", | |
86 | + dangerMode: true | |
87 | + }); | |
88 | +} | |
89 | + | |
90 | +function VentasMensual2(Enero, Febrero, Marzo, Abril, Mayo, Junio, Julio, Agosto, Septiembre, Optubre, Novienbre, Diciembre) { | |
82 | 91 | const labels = [ |
83 | - 'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo','Junio', 'Julio', 'Agosto', 'Septiembre', 'Optubre', 'Novienbre', 'Diciembre', | |
92 | + 'Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Optubre', 'Novienbre', 'Diciembre', | |
84 | 93 | ]; |
85 | 94 | const data = { |
86 | 95 | labels: labels, |
@@ -287,7 +296,7 @@ | ||
287 | 296 | style: "'.custom-GG { color: red; } .aling-T-R{text-align-last: right;} .aling-T-C{text-align-last: center; font-size: 20px}.aling-T-L{text-align-last: left;} .negrita-T{color: black; font-weight: bold;}.fs-m { font-size: 20px}.fs-l {font-size: large;}.fs-xl {1.8em}.lineaSolida-T{border-width: 2px; border-style: solid; border-color: black;}.lineaPuntos-T{border-width: 2px; border-style: dashed; border-color: black; margin:0px;}' ", |
288 | 297 | targetStyles: ['*'], |
289 | 298 | onPrintDialogClose: printJobComplete |
290 | - | |
299 | + | |
291 | 300 | }); |
292 | 301 | } |
293 | 302 |
@@ -300,8 +309,8 @@ | ||
300 | 309 | printable: "GvListPretamos", |
301 | 310 | type: "html", |
302 | 311 | css: ['/Content/bootstrap.min.css', '/Content/print.min.css'], |
303 | - | |
304 | 312 | |
313 | + | |
305 | 314 | onPrintDialogClose: ImprimirListadoTicketCompletado |
306 | 315 | }); |
307 | 316 | } |
@@ -379,7 +388,7 @@ | ||
379 | 388 | if (e.keyCode == 13) { |
380 | 389 | tbP.focus(); |
381 | 390 | } |
382 | - | |
391 | + | |
383 | 392 | // $("#TbMonto").trigger("click"); |
384 | 393 | } |
385 | 394 | else { |
@@ -395,7 +404,7 @@ | ||
395 | 404 | key = window.event.keyCode; //IE |
396 | 405 | //var tbP = document.getElementById("TbNumero"); |
397 | 406 | //tbP.Text = "1111"; |
398 | - //console.log(key + "SI"); | |
407 | + //console.log(key + "SI"); | |
399 | 408 | // |
400 | 409 | } |
401 | 410 | else { |
@@ -408,7 +417,7 @@ | ||
408 | 417 | //var Btn = document.getElementById('BtnAgregar'); |
409 | 418 | //console.log(Btn.id + "NO"); |
410 | 419 | document.getElementById("BtnAgregar").click(); return false; |
411 | - // Btn.Click(); | |
420 | + // Btn.Click(); | |
412 | 421 | //return true; |
413 | 422 | } |
414 | 423 |
@@ -531,7 +540,7 @@ | ||
531 | 540 | |
532 | 541 | printJS({ |
533 | 542 | printable: "DivReciboCobro", |
534 | - header: '<h3 class="aling-T-C negrita-T">'+Empresa+'</h3>' | |
543 | + header: '<h3 class="aling-T-C negrita-T">' + Empresa + '</h3>' | |
535 | 544 | + '<h5 class="aling-T-C negrita-T">(' + Telefono + ')</h5>' |
536 | 545 | + '<hr class="lineaPuntos-T" />' |
537 | 546 | + '<br />' |
@@ -541,7 +550,7 @@ | ||
541 | 550 | + '<h5 class="aling-T-L negrita-T"># Prestamo: ' + IdPrestamo + '</h5>' |
542 | 551 | + '<h5 class="aling-T-L negrita-T">Cliente: ' + ClienteNombre + '</h5>' |
543 | 552 | + '<hr class="lineaPuntos-T" />' |
544 | - + '<h5 class="aling-T-L">Pago a cuota: <b>' + NumCuotaPagada + ' de ' + TotalCuota+'</b></h5>' | |
553 | + + '<h5 class="aling-T-L">Pago a cuota: <b>' + NumCuotaPagada + ' de ' + TotalCuota + '</b></h5>' | |
545 | 554 | + '<h5 class="aling-T-L">Abono a Cuota: <b>' + Abono + '</b></h5>' |
546 | 555 | + '<h5 class="aling-T-L">Valor Pagado: <b>' + ValorPagado + '</b></h5>' |
547 | 556 | + '<h5 class="aling-T-L">Monto Cuota: <b>' + MontoCuota + '</b></h5>' |
@@ -554,7 +563,7 @@ | ||
554 | 563 | + '<br>' |
555 | 564 | + '<h5 class="aling-T-C negrita-T">Firma Cliente</h5>', |
556 | 565 | type: "html", |
557 | - css: ['/Content/bootstrap.min.css', '/Content/print.min.css','/Content/estilos.css'], | |
566 | + css: ['/Content/bootstrap.min.css', '/Content/print.min.css', '/Content/estilos.css'], | |
558 | 567 | onPrintDialogClose: ImprimirReciboCompletado |
559 | 568 | }); |
560 | 569 | } |
@@ -594,11 +603,12 @@ | ||
594 | 603 | } |
595 | 604 | |
596 | 605 | |
606 | + | |
597 | 607 | function ImprimirContrato(texto, title) { |
598 | 608 | |
599 | 609 | printJS({ |
600 | 610 | printable: "DivContrato", |
601 | - header: '<p style="text-align: center;">' + title + '</p><p style="text-align: justify;">'+texto+'</p>', | |
611 | + header: '<p style="text-align: center;">' + title + '</p><p style="text-align: justify;">' + texto + '</p>', | |
602 | 612 | type: "html", |
603 | 613 | css: ['/Content/bootstrap.min.css', '/Content/print.min.css', '/Content/estilos.css'], |
604 | 614 | onPrintDialogClose: ImprimirReciboCompletado |
@@ -635,7 +645,7 @@ | ||
635 | 645 | printJS({ |
636 | 646 | printable: "div-list",//"DivGridViewListCobros", |
637 | 647 | header: '<h3 class="aling-T-C negrita-T">Listado de Cobros Realizados</h3>' |
638 | - + list, | |
648 | + + list, | |
639 | 649 | type: "html", |
640 | 650 | css: ['/Content/bootstrap.min.css', '/Content/print.min.css'], |
641 | 651 |
@@ -1,4 +1,4 @@ | ||
1 | -using Loans.Entity; | |
1 | + using Loans.Entity; | |
2 | 2 | using System; |
3 | 3 | using System.Collections.Generic; |
4 | 4 | using System.Linq; |
@@ -674,6 +674,11 @@ | ||
674 | 674 | |
675 | 675 | BtnPagar.Visible = false; |
676 | 676 | BtnModificar.Visible = false; |
677 | + | |
678 | + BtnAbonarCapital.Visible = true; | |
679 | + TbMontoAbono.Visible = true; | |
680 | + DropDownTipoNCF.Visible = true; | |
681 | + LbTipoNCF.Visible = true; | |
677 | 682 | //TbMonto.Visible = false; |
678 | 683 | cargar(); |
679 | 684 | } |
@@ -893,8 +898,13 @@ | ||
893 | 898 | |
894 | 899 | } |
895 | 900 | |
901 | + ScriptManager.RegisterStartupScript(this, this.GetType(), | |
902 | + "script", "ImprimirReciboCobro('" + loginDAL.Company + "','" + loginDAL.Phone + "','" + DateTime.Now.ToString("dd/MM/yyyy hh:mm") | |
903 | + + "','" + TbCustomerName.InnerText + "','" + TbIDPrestamo.InnerText + "','" + "N/A" + "','" | |
904 | + + "N/A" + "','" + "N/A" + "','" + "N/A" | |
905 | + + "','" + amountCapitalPay.ToString() + "','" + "N/A" + "','" + ObtenerTotalPendiente(TbIDPrestamo.InnerText).ToString() + "','" + loginDAL.UserName + "','" + "N/A" + "')", true); | |
896 | 906 | |
897 | - | |
907 | + | |
898 | 908 | TbMontoAbono.Text = ""; |
899 | 909 | cargar(); |
900 | 910 | } |
@@ -2,6 +2,7 @@ | ||
2 | 2 | using System; |
3 | 3 | using System.Collections.Generic; |
4 | 4 | using System.Linq; |
5 | +using System.Threading; | |
5 | 6 | using System.Web; |
6 | 7 | using System.Web.UI; |
7 | 8 | using System.Web.UI.WebControls; |
@@ -45,8 +46,20 @@ | ||
45 | 46 | protected void BtnMenu_Click(object sender, EventArgs e) |
46 | 47 | { |
47 | 48 | Response.Redirect("MenuWF.aspx"); |
49 | + //shown.bs.toast; | |
50 | + //toast.show(); | |
48 | 51 | |
52 | + | |
53 | + //WaitHandle waitHandle1 = result1.AsyncWaitHandle; | |
54 | + | |
55 | + | |
56 | + | |
57 | + | |
49 | 58 | } |
59 | + public void Notificaion(string titulo, string texto, string icono) | |
60 | + { | |
61 | + ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "Notificacion('" + texto + "', '" + titulo + "', '" + icono + "');", true); | |
62 | + } | |
50 | 63 | protected void BtnPrestamos_Click(object sender, EventArgs e) |
51 | 64 | { |
52 | 65 | Response.Redirect("PrestamoCrearWF.aspx"); |
@@ -303,6 +303,15 @@ | ||
303 | 303 | protected global::System.Web.UI.WebControls.Button BtnRutasCobradores; |
304 | 304 | |
305 | 305 | /// <summary> |
306 | + /// Control toast. | |
307 | + /// </summary> | |
308 | + /// <remarks> | |
309 | + /// Campo generado automáticamente. | |
310 | + /// Para modificarlo, mueva la declaración del campo del archivo del diseñador al archivo de código subyacente. | |
311 | + /// </remarks> | |
312 | + protected global::System.Web.UI.HtmlControls.HtmlGenericControl toast; | |
313 | + | |
314 | + /// <summary> | |
306 | 315 | /// Control ChartVxUM. |
307 | 316 | /// </summary> |
308 | 317 | /// <remarks> |