Beispiel #1
0
 [OperationContract]//删除福利发放明细
 public bool DeleteWelfarePaymentDetail(string[] welfarePaymentDetailId)
 {
     using (WelfarePaymentDetailsBLL wdb = new WelfarePaymentDetailsBLL())
     {
         return(wdb.DeleteWelfarePaymentDetail(welfarePaymentDetailId));
     }
 }
Beispiel #2
0
 [OperationContract]//更新明细信息
 public string UpdateWelfarePaymentDetails(T_OA_WELFAREDISTRIBUTEDETAIL WelfarePaymentDetailsInfo)
 {
     using (WelfarePaymentDetailsBLL wdb = new WelfarePaymentDetailsBLL())
     {
         string result = "";
         if (!wdb.UpdateWelfarePaymentDetails(WelfarePaymentDetailsInfo))
         {
             result = "修改数据失败!";
         }
         return(result);
     }
 }
Beispiel #3
0
 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);
         }
     }
 }
Beispiel #4
0
 [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());
         }
     }
 }
Beispiel #5
0
 [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());
         }
     }
 }
Beispiel #6
0
 [OperationContract]//删除福利发放明细
 public bool DeleteWelfarePaymentDetail(string[] welfarePaymentDetailId)
 {
     using (WelfarePaymentDetailsBLL wdb = new WelfarePaymentDetailsBLL())
     {
         return wdb.DeleteWelfarePaymentDetail(welfarePaymentDetailId);
     }
 }
Beispiel #7
0
 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;
         }
     }
 }
Beispiel #8
0
 [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();
         }
     }
 }
Beispiel #9
0
 [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();
         }
     }
 }
Beispiel #10
0
 [OperationContract]//更新明细信息
 public string UpdateWelfarePaymentDetails(T_OA_WELFAREDISTRIBUTEDETAIL WelfarePaymentDetailsInfo)
 {
     using (WelfarePaymentDetailsBLL wdb = new WelfarePaymentDetailsBLL())
     {
         string result = "";
         if (!wdb.UpdateWelfarePaymentDetails(WelfarePaymentDetailsInfo))
         {
             result = "修改数据失败!";
         }
         return result;
     }
 }