Beispiel #1
0
 public System.Int32 AddSysGroup(SysGroupData data)
 {
     try
     {
         var domain = new SysGroupDomainObject(ConnectionString);
         return domain.Add(data);
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[AddSysGroup]", ex.Message);
     }
     return -1;
 }
Beispiel #2
0
 public IList<SysGroupData> GetSysGroups()
 {
     try
     {
         var domain = new SysGroupDomainObject(ConnectionString);
         return domain.GetSysGroups();
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[GetSysGroups]", ex.Message);
         return null;
     }
 }
Beispiel #3
0
 public IList<SysGroupData> GetSysGroupPaging(System.String whereCondition, System.Int32 pageSize, System.Int32 currentPage, System.String sortByColumns)
 {
     try
     {
         var domain = new SysGroupDomainObject(ConnectionString);
         return domain.GetSysGroupPaging(whereCondition, pageSize, currentPage, sortByColumns);
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[GetSysGroupPaging]", ex.Message);
         return new List<SysGroupData>();
     }
 }
Beispiel #4
0
 public System.Int32 GetSysGroupCount(System.String whereCondition)
 {
     try
     {
         var domain = new SysGroupDomainObject(ConnectionString);
         return domain.GetSysGroupCount(whereCondition);
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[GetSysGroupCount]", ex.Message);
     }
     return -1;
 }
Beispiel #5
0
 public IList<SysGroupData> GetSysGroupBySizeCriteria(System.Int32 size, System.String whereCondition)
 {
     try
     {
         var domain = new SysGroupDomainObject(ConnectionString);
         return domain.GetSysGroups(size, whereCondition);
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[GetSysGroupBySizeCriteria]", ex.Message);
         return null;
     }
 }
Beispiel #6
0
 public SysGroupData GetSysGroupByID(System.Int32 ID)
 {
     try
     {
         var domain = new SysGroupDomainObject(ConnectionString);
         return domain.GetSysGroupByID(ID);
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[GetSysGroupByID]", ex.Message);
         return null;
     }
 }