示例#1
0
 public IList <SysAccountData> GetSysAccountPaging(System.String whereCondition, System.Int32 pageSize, System.Int32 currentPage, System.String sortByColumns)
 {
     try
     {
         var domain = new SysAccountDomainObject(ConnectionString);
         return(domain.GetSysAccountPaging(whereCondition, pageSize, currentPage, sortByColumns));
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[GetSysAccountPaging]", ex.Message);
         return(new List <SysAccountData>());
     }
 }
示例#2
0
 public System.Int32 GetSysAccountCount(System.String whereCondition)
 {
     try
     {
         var domain = new SysAccountDomainObject(ConnectionString);
         return(domain.GetSysAccountCount(whereCondition));
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[GetSysAccountCount]", ex.Message);
     }
     return(-1);
 }
示例#3
0
 public IList <SysAccountData> GetSysAccountBySizeCriteria(System.Int32 size, System.String whereCondition)
 {
     try
     {
         var domain = new SysAccountDomainObject(ConnectionString);
         return(domain.GetSysAccounts(size, whereCondition));
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[GetSysAccountBySizeCriteria]", ex.Message);
         return(null);
     }
 }
示例#4
0
 public SysAccountData GetSysAccountByID(System.Int32 ID)
 {
     try
     {
         var domain = new SysAccountDomainObject(ConnectionString);
         return(domain.GetSysAccountByID(ID));
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[GetSysAccountByID]", ex.Message);
         return(null);
     }
 }
示例#5
0
 public IList <SysAccountData> GetSysAccounts()
 {
     try
     {
         var domain = new SysAccountDomainObject(ConnectionString);
         return(domain.GetSysAccounts());
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[GetSysAccounts]", ex.Message);
         return(null);
     }
 }
示例#6
0
 public System.Int32 RemoveSysAccount(SysAccountData data)
 {
     try
     {
         var domain = new SysAccountDomainObject(ConnectionString);
         return(domain.Remove(data));
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[RemoveSysAccount]", ex.Message);
     }
     return(-1);
 }