• R/O
  • SSH
  • HTTPS

hemaxvisoft: Commit


Commit MetaInfo

Revisión57 (tree)
Tiempo2022-02-07 03:35:21
Autorhemaxvi_soft

Log Message

Cambios Aplicados
-Boton pago capital activado
-Campos Balance pendiente y pagado agregado.

Cambiar Resumen

Diferencia incremental

--- softloans/DetallePrestamosWF.aspx.cs (revision 56)
+++ softloans/DetallePrestamosWF.aspx.cs (revision 57)
@@ -397,11 +397,20 @@
397397 decimal quantityDelay = 0;
398398 TimeSpan difFechas;
399399 decimal delayAmount = 0;
400+
401+ decimal totalDueAmount = 0;
402+ decimal totalPay = 0;
403+
400404 if (Session["ParametroDetalle"] != null)
401405 {
402406 LoandetailsDAL loandetailsDAL = new LoandetailsDAL();
403407 LoandetailsEntity loandetailsEntity = new LoandetailsEntity();
404408 List<LoandetailsEntity> loandetailsEntityList = new List<LoandetailsEntity>();
409+ List<LoandetailsEntity> loandetailsEntityListAll = new List<LoandetailsEntity>();
410+ PaysDAL paysDAL = new PaysDAL();
411+ PaysEntity paysEntity = new PaysEntity();
412+ List<PaysEntity> paysEntityList = new List<PaysEntity>();
413+
405414 loandetailsDAL.dbm.DataSource = loginDAL.DataSource;
406415 loandetailsDAL.dbm.User = loginDAL.UserName;
407416 loandetailsDAL.dbm.Password = loginDAL.UserPassword;
@@ -412,6 +421,7 @@
412421
413422 loandetailsEntity = (LoandetailsEntity)Session["ParametroDetalle"];
414423 loandetailsEntityList = loandetailsDAL.SearchActive(loandetailsEntity, loginDAL);
424+ loandetailsEntityListAll = loandetailsDAL.Search(loandetailsEntity, loginDAL);
415425
416426
417427 foreach (var item in loandetailsEntityList)
@@ -471,10 +481,28 @@
471481 }
472482 }
473483 }
474-
484+
485+ totalDueAmount = totalDueAmount + Convert.ToDecimal(item.TotalDueAmount.ToString());
486+
487+ // totalPay = totalPay + ((item.Interest + item.Capital + item.DelayAmount) - (item.InterestBalance + item.CapitalBalance + item.DelayBalance + delayAmount));
488+
489+
475490 }
476491
477- loandetailsEntityList = loandetailsDAL.SearchActive(loandetailsEntity, loginDAL);
492+ foreach (var item in loandetailsEntityListAll)
493+ {
494+ paysEntity.TimeStart = item.LastDateDelayAmount;
495+ paysEntity.TimeEnd = DateTime.Now;
496+ paysEntityList = paysDAL.Search(paysEntity, loginDAL);
497+
498+ foreach (var item1 in paysEntityList)
499+ {
500+ if (item.ID == item1.LoanDetailsID)
501+ totalPay = totalPay + item1.Amount;
502+
503+ }
504+ }
505+
478506 TbIDPrestamo.InnerText = loandetailsEntity.LoandID.ToString();
479507 TbCustomerName.InnerText = loandetailsEntity.CustomerName.ToString();
480508 GvDetallePrestamos.Controls.Clear();
@@ -485,7 +513,10 @@
485513 GvDetallePrestamos.DataBind();
486514 //Session["Parametro"] = null;
487515
516+ LbBalancePendiente.InnerText = totalDueAmount.ToString("N2");
517+ LbBalancePagado.InnerText = totalPay.ToString("N2");
488518
519+
489520 }
490521 catch (Exception ex)
491522 {
@@ -790,7 +821,7 @@
790821 paysEntity.LoanDetailsID = lastDetailID;
791822 paysEntity.Date = DateTime.Now;
792823 paysEntity.NcfNumber = "";
793- payDAL.InsertCapital(paysEntity,loginDAL);
824+ payDAL.Insert(paysEntity,loginDAL);
794825
795826 payDAL = null;
796827 paysEntity = null;
--- softloans/DetallePrestamosWF.aspx.designer.cs (revision 56)
+++ softloans/DetallePrestamosWF.aspx.designer.cs (revision 57)
@@ -321,6 +321,24 @@
321321 protected global::System.Web.UI.HtmlControls.HtmlGenericControl TbCustomerName;
322322
323323 /// <summary>
324+ /// Control LbBalancePendiente.
325+ /// </summary>
326+ /// <remarks>
327+ /// Campo generado automáticamente.
328+ /// Para modificarlo, mueva la declaración del campo del archivo del diseñador al archivo de código subyacente.
329+ /// </remarks>
330+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl LbBalancePendiente;
331+
332+ /// <summary>
333+ /// Control LbBalancePagado.
334+ /// </summary>
335+ /// <remarks>
336+ /// Campo generado automáticamente.
337+ /// Para modificarlo, mueva la declaración del campo del archivo del diseñador al archivo de código subyacente.
338+ /// </remarks>
339+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl LbBalancePagado;
340+
341+ /// <summary>
324342 /// Control TextActo.
325343 /// </summary>
326344 /// <remarks>
Show on old repository browser