Пример #1
0
 public bool rejectAdj(string AdjID, string ApprovedBy)
 {
     BusinessLogic.AdjustVoucherController BL = new BusinessLogic.AdjustVoucherController();
     if (BL.rejectAdj(AdjID, ApprovedBy))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return(true);
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotFound;
         return(false);
     }
 }
 public bool createVoucherAdjDetail(List<AdjustmentDetail> adjDetail)
 {
     BusinessLogic.AdjustVoucherController BL = new BusinessLogic.AdjustVoucherController();
     if (BL.createVoucherAdjDetail(adjDetail))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return true;
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotFound;
         return false;
     }
 }
Пример #3
0
 public bool createVoucherAdjDetail(List <AdjustmentDetail> adjDetail)
 {
     BusinessLogic.AdjustVoucherController BL = new BusinessLogic.AdjustVoucherController();
     if (BL.createVoucherAdjDetail(adjDetail))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return(true);
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotFound;
         return(false);
     }
 }
 public bool approveAdj(string AdjID, string ApprovedBy)
 {
     BusinessLogic.AdjustVoucherController BL = new BusinessLogic.AdjustVoucherController();
     if (BL.approveAdj(AdjID, ApprovedBy))
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.OK;
         return true;
     }
     else
     {
         OutgoingWebResponseContext response = WebOperationContext.Current.OutgoingResponse;
         response.StatusCode = HttpStatusCode.NotFound;
         return false;
     }
 }
Пример #5
0
 public string getAdjVoucherId()
 {
     BusinessLogic.AdjustVoucherController BL = new BusinessLogic.AdjustVoucherController();
     return(BL.getAdjVoucherId());
 }
Пример #6
0
 public List <AdjustmentDetail> getAdjVoucherDetail(string adjId)
 {
     BusinessLogic.AdjustVoucherController BL = new BusinessLogic.AdjustVoucherController();
     return(BL.getAdjVoucherDetail(adjId));
 }
Пример #7
0
 public AdjustmentVoucher getAdjVoucherByID(string AdjID)
 {
     BusinessLogic.AdjustVoucherController BL = new BusinessLogic.AdjustVoucherController();
     return(BL.getAdjVoucherByID(AdjID));
 }
Пример #8
0
 public List <AdjustmentVoucher> getAdjVoucher(string AdjID, string startDate, string endDate)
 {
     BusinessLogic.AdjustVoucherController BL = new BusinessLogic.AdjustVoucherController();
     return(BL.getAdjVoucher(AdjID, startDate, endDate));
 }
 public string getAdjVoucherId()
 {
     BusinessLogic.AdjustVoucherController BL = new BusinessLogic.AdjustVoucherController();
     return BL.getAdjVoucherId();
 }
 public List<AdjustmentDetail> getAdjVoucherDetail(string adjId)
 {
     BusinessLogic.AdjustVoucherController BL = new BusinessLogic.AdjustVoucherController();
     return BL.getAdjVoucherDetail(adjId);
 }
 public AdjustmentVoucher getAdjVoucherByID(string AdjID)
 {
     BusinessLogic.AdjustVoucherController BL = new BusinessLogic.AdjustVoucherController();
     return BL.getAdjVoucherByID(AdjID);
 }
 public List<AdjustmentVoucher> getAdjVoucher(string AdjID, string startDate, string endDate)
 {
     BusinessLogic.AdjustVoucherController BL = new BusinessLogic.AdjustVoucherController();
     return BL.getAdjVoucher(AdjID,startDate,endDate);
 }