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); } }
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); } }
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); } }
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); } }
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); } }