Esempio n. 1
0
 public CommonResult <List <Person> > GetPersonList(string sessionId, Tuple <string, List <object> > tFilter, int PageSize, int CurrPage)
 {
     try
     {
         return(ForDepartmentServices.GetInstance(sessionId).GetPersonList(tFilter, PageSize, CurrPage));
     }
     catch (Exception ex)
     {
         throw new FaultException <CustomFaultMessage>(new CustomFaultMessage()
         {
             ErrorCode  = ex.HResult,
             Message    = ex.Message,
             StackTrace = ex.StackTrace
         }, ex.Message);
     }
 }
Esempio n. 2
0
 public CommonResult <bool> DelDepartmentData(string sessionId, string strDepCode)
 {
     try
     {
         return(ForDepartmentServices.GetInstance(sessionId).DelDepartmentData(strDepCode));
     }
     catch (Exception ex)
     {
         throw new FaultException <CustomFaultMessage>(new CustomFaultMessage()
         {
             ErrorCode  = ex.HResult,
             Message    = ex.Message,
             StackTrace = ex.StackTrace
         }, ex.Message);
     }
 }
Esempio n. 3
0
 public CommonResult <List <Department> > GetDepartmentList(string sessionId)
 {
     try
     {
         return(ForDepartmentServices.GetInstance(sessionId).GetDepartmentList());
     }
     catch (Exception ex)
     {
         throw new FaultException <CustomFaultMessage>(new CustomFaultMessage()
         {
             ErrorCode  = ex.HResult,
             Message    = ex.Message,
             StackTrace = ex.StackTrace
         }, ex.Message);
     }
 }
Esempio n. 4
0
 public CommonResult <Department> UpdataDepartmentData(string sessionId, Department Model, string strDepartmentNameOriginal, string strDepartmentNameNow)
 {
     try
     {
         return(ForDepartmentServices.GetInstance(sessionId).UpdataDepartmentData(Model, strDepartmentNameOriginal, strDepartmentNameNow));
     }
     catch (Exception ex)
     {
         throw new FaultException <CustomFaultMessage>(new CustomFaultMessage()
         {
             ErrorCode  = ex.HResult,
             Message    = ex.Message,
             StackTrace = ex.StackTrace
         }, ex.Message);
     }
 }
Esempio n. 5
0
 public CommonResult <Person> UpdataPersonData(string sessionId, Person Model)
 {
     try
     {
         return(ForDepartmentServices.GetInstance(sessionId).UpdataPersonData(Model));
     }
     catch (Exception ex)
     {
         throw new FaultException <CustomFaultMessage>(new CustomFaultMessage()
         {
             ErrorCode  = ex.HResult,
             Message    = ex.Message,
             StackTrace = ex.StackTrace
         }, ex.Message);
     }
 }