Esempio n. 1
0
        public Underwriting TryCreate(Underwriting underwriting)
        {
            if (underwriting == null)
            {
                return(null);
            }
            var uw = UnderwritingDAO.TryCreate(underwriting);

            return(uw);
        }
Esempio n. 2
0
 public void ChangeStatus(string BBLE, int status, string statusNote, string updateBy)
 {
     if (string.IsNullOrEmpty(BBLE))
     {
         throw new Exception("BBLE is Required.");
     }
     if (string.IsNullOrEmpty(statusNote))
     {
         throw new Exception("Status Note is Required.");
     }
     if (string.IsNullOrEmpty(updateBy))
     {
         throw new Exception("Underwriter's information is missing.");
     }
     Underwriting.UnderwritingStatusEnum estatus = (Underwriting.UnderwritingStatusEnum)status;
     UnderwritingDAO.ChangeStatus(BBLE, estatus, statusNote, updateBy);
     return;
 }
Esempio n. 3
0
 public AuditLog[] GetAuditLogs(String objectName, String recordId)
 {
     return(UnderwritingDAO.GetAuditLogs(objectName, recordId));
 }
Esempio n. 4
0
 public object[] GetUnderwritingListInfoByStatus(int status)
 {
     return(UnderwritingDAO.GetUnderwritingListInfoByStatus(status));
 }
Esempio n. 5
0
 public string[] GetUnderwritingBBLEs()
 {
     return(UnderwritingDAO.GetAllUnderwritingBBLE());
 }
Esempio n. 6
0
 public object[] GetUnderwritingListInfo()
 {
     return(UnderwritingDAO.GetUnderwritingListInfo());
 }
Esempio n. 7
0
 public Underwriting GetUnderwritingByBBLE(string bble)
 {
     return(UnderwritingDAO.GetUnderwritingByBBLE(bble));
 }
Esempio n. 8
0
 public UnderwritingArchived GetArchivedByID(int id)
 {
     return(UnderwritingDAO.GetArchived(id));
 }
Esempio n. 9
0
 public IEnumerable <UnderwritingArchived> GetArchivedListByBBLE(string bble)
 {
     return(UnderwritingDAO.LoadArchivedList(bble).AsEnumerable());
 }
Esempio n. 10
0
 public UnderwritingArchived PostArchive(Underwriting underwriting, string archiveNote, string username)
 {
     UnderwritingDAO.SaveOrUpdate(underwriting, username);
     return(UnderwritingDAO.Archive(underwriting.BBLE, username, archiveNote));
 }
Esempio n. 11
0
 public Underwriting PostUnderwriting(Underwriting underwriting, string username)
 {
     return(UnderwritingDAO.SaveOrUpdate(underwriting, username));
 }