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

            return(uw);
        }
Ejemplo 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;
 }
Ejemplo n.º 3
0
 public AuditLog[] GetAuditLogs(String objectName, String recordId)
 {
     return(UnderwritingDAO.GetAuditLogs(objectName, recordId));
 }
Ejemplo n.º 4
0
 public object[] GetUnderwritingListInfoByStatus(int status)
 {
     return(UnderwritingDAO.GetUnderwritingListInfoByStatus(status));
 }
Ejemplo n.º 5
0
 public string[] GetUnderwritingBBLEs()
 {
     return(UnderwritingDAO.GetAllUnderwritingBBLE());
 }
Ejemplo n.º 6
0
 public object[] GetUnderwritingListInfo()
 {
     return(UnderwritingDAO.GetUnderwritingListInfo());
 }
Ejemplo n.º 7
0
 public Underwriting GetUnderwritingByBBLE(string bble)
 {
     return(UnderwritingDAO.GetUnderwritingByBBLE(bble));
 }
Ejemplo n.º 8
0
 public UnderwritingArchived GetArchivedByID(int id)
 {
     return(UnderwritingDAO.GetArchived(id));
 }
Ejemplo n.º 9
0
 public IEnumerable <UnderwritingArchived> GetArchivedListByBBLE(string bble)
 {
     return(UnderwritingDAO.LoadArchivedList(bble).AsEnumerable());
 }
Ejemplo n.º 10
0
 public UnderwritingArchived PostArchive(Underwriting underwriting, string archiveNote, string username)
 {
     UnderwritingDAO.SaveOrUpdate(underwriting, username);
     return(UnderwritingDAO.Archive(underwriting.BBLE, username, archiveNote));
 }
Ejemplo n.º 11
0
 public Underwriting PostUnderwriting(Underwriting underwriting, string username)
 {
     return(UnderwritingDAO.SaveOrUpdate(underwriting, username));
 }