public bool updateSRVRegistration(string serialno, int party, int caseid)
 {
     try
     {
         SRVRegistration temp = new SRVRegistration();
         SRVRegistration srv  = new RegistrationDAOLinq().SearchSRVBySerialParty(serialno, party);
         temp.Requisitioned  = "Loan Disbursed";
         temp.LoanDisbursed  = srv.LoanDisbursed;
         temp.RegistrationID = srv.RegistrationID;
         temp.SerialID       = srv.SerialID;
         temp.SerialNo       = srv.SerialNo;
         temp.PartyID        = srv.PartyID;
         temp.BagLoan        = srv.BagLoan;
         temp.CarryingLoan   = srv.CarryingLoan;
         temp.Remarks        = srv.Remarks;
         temp.CreatedBy      = srv.CreatedBy;
         temp.CreatedDate    = srv.CreatedDate;
         temp.ModifiedBy     = srv.ModifiedBy;
         temp.ModifiedDate   = DateTime.Now;
         temp.Bags           = srv.Bags;
         temp.CaseID         = caseid;
         return(new RegistrationManager().SaveRegistration(temp));
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
Example #2
0
 public DManager()
 {
     _RegistrationDAOLinq   = new RegistrationDAOLinq();
     _itemDetailShadDaoLinq = new ItemDetailShadDAOLinq();
 }