[OperationContract]//删除福利发放明细 public bool DeleteWelfarePaymentDetail(string[] welfarePaymentDetailId) { using (WelfarePaymentDetailsBLL wdb = new WelfarePaymentDetailsBLL()) { return(wdb.DeleteWelfarePaymentDetail(welfarePaymentDetailId)); } }
[OperationContract]//更新明细信息 public string UpdateWelfarePaymentDetails(T_OA_WELFAREDISTRIBUTEDETAIL WelfarePaymentDetailsInfo) { using (WelfarePaymentDetailsBLL wdb = new WelfarePaymentDetailsBLL()) { string result = ""; if (!wdb.UpdateWelfarePaymentDetails(WelfarePaymentDetailsInfo)) { result = "修改数据失败!"; } return(result); } }
public List <T_OA_WELFAREDISTRIBUTEDETAIL> GetByIdWelfarePaymentDetails(string distributeMasterId) { using (WelfarePaymentDetailsBLL wdb = new WelfarePaymentDetailsBLL()) { List <T_OA_WELFAREDISTRIBUTEDETAIL> WelfarePaymentDetails = wdb.GetByIdWelfarePaymentDetails(distributeMasterId); if (WelfarePaymentDetails == null) { return(null); } else { return(WelfarePaymentDetails); } } }
[OperationContract]//获取所有的明细信息(不用视图的服务器分页查询) public List <T_OA_WELFAREDISTRIBUTEDETAIL> GetWelfarePaymentDetailsInquiry(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string userID) { using (WelfarePaymentDetailsBLL wdb = new WelfarePaymentDetailsBLL()) { IQueryable <T_OA_WELFAREDISTRIBUTEDETAIL> WelfarePaymentDetails = wdb.QueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userID, "T_OA_WELFAREDISTRIBUTEDETAIL"); if (WelfarePaymentDetails == null) { return(null); } else { return(WelfarePaymentDetails.ToList()); } } }
[OperationContract]//获取所有的明细信息(用视图的服务器分页查询) public List <V_WelfareDetails> GetWelfarePaymentDetailsInfos(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string userID) { using (WelfarePaymentDetailsBLL wdb = new WelfarePaymentDetailsBLL()) { List <V_WelfareDetails> WelfarePaymentDetails = wdb.GetWelfarePaymentDetails(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null); if (WelfarePaymentDetails == null) { return(null); } else { return(WelfarePaymentDetails.ToList()); } } }
[OperationContract]//删除福利发放明细 public bool DeleteWelfarePaymentDetail(string[] welfarePaymentDetailId) { using (WelfarePaymentDetailsBLL wdb = new WelfarePaymentDetailsBLL()) { return wdb.DeleteWelfarePaymentDetail(welfarePaymentDetailId); } }
public List<T_OA_WELFAREDISTRIBUTEDETAIL> GetByIdWelfarePaymentDetails(string distributeMasterId) { using (WelfarePaymentDetailsBLL wdb = new WelfarePaymentDetailsBLL()) { List<T_OA_WELFAREDISTRIBUTEDETAIL> WelfarePaymentDetails = wdb.GetByIdWelfarePaymentDetails(distributeMasterId); if (WelfarePaymentDetails == null) { return null; } else { return WelfarePaymentDetails; } } }
[OperationContract]//获取所有的明细信息(不用视图的服务器分页查询) public List<T_OA_WELFAREDISTRIBUTEDETAIL> GetWelfarePaymentDetailsInquiry(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string userID) { using (WelfarePaymentDetailsBLL wdb = new WelfarePaymentDetailsBLL()) { IQueryable<T_OA_WELFAREDISTRIBUTEDETAIL> WelfarePaymentDetails = wdb.QueryWithPaging(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userID, "T_OA_WELFAREDISTRIBUTEDETAIL"); if (WelfarePaymentDetails == null) { return null; } else { return WelfarePaymentDetails.ToList(); } } }
[OperationContract]//获取所有的明细信息(用视图的服务器分页查询) public List<V_WelfareDetails> GetWelfarePaymentDetailsInfos(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string userID) { using (WelfarePaymentDetailsBLL wdb = new WelfarePaymentDetailsBLL()) { List<V_WelfareDetails> WelfarePaymentDetails = wdb.GetWelfarePaymentDetails(pageIndex, pageSize, sort, filterString, paras, ref pageCount, null); if (WelfarePaymentDetails == null) { return null; } else { return WelfarePaymentDetails.ToList(); } } }
[OperationContract]//更新明细信息 public string UpdateWelfarePaymentDetails(T_OA_WELFAREDISTRIBUTEDETAIL WelfarePaymentDetailsInfo) { using (WelfarePaymentDetailsBLL wdb = new WelfarePaymentDetailsBLL()) { string result = ""; if (!wdb.UpdateWelfarePaymentDetails(WelfarePaymentDetailsInfo)) { result = "修改数据失败!"; } return result; } }