예제 #1
0
 public bool Contract_Update_Status(decimal Contract_Id, decimal Status, string Reason, string Approve_By)
 {
     try
     {
         Contract_DA _objDA = new Contract_DA();
         return(_objDA.Contract_Update_Status(Contract_Id, Status, Reason, Approve_By));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(false);
     }
 }
예제 #2
0
 public decimal Contract_Delete(decimal p_Contract_Id)
 {
     try
     {
         Contract_DA _objDA = new Contract_DA();
         return(_objDA.Contract_Delete(p_Contract_Id));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(-1);
     }
 }
예제 #3
0
 public byte[] Contract_GetByCode(string p_Contract_Code)
 {
     try
     {
         Contract_DA _objDA = new Contract_DA();
         DataSet     _ds    = _objDA.Contract_GetByCode(p_Contract_Code);
         return(CompressionHelper.CompressDataSet(_ds));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(new byte[0]);
     }
 }
예제 #4
0
 public byte[] Contract_GetBy_WareHouse(decimal WareHouse_Id)
 {
     try
     {
         Contract_DA _objDA = new Contract_DA();
         DataSet     _ds    = _objDA.Contract_GetBy_WareHouse(WareHouse_Id);
         return(CompressionHelper.CompressDataSet(_ds));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(new byte[0]);
     }
 }
예제 #5
0
 public bool Contract_Update(decimal CONTRACT_ID, DateTime REGISTER_DATE, decimal PERIOD,
                             decimal RECEIVE_YEAR, decimal WAREHOUSE_ID, string WAREHOUSE_NAME, decimal BUSINESS_ID,
                             decimal MONEY_TYPE, string MODIFIED_BY, DateTime MODIFIED_DATE, decimal STATUS, DateTime DUE_DATE)
 {
     try
     {
         Contract_DA _objDA = new Contract_DA();
         return(_objDA.Contract_Update(CONTRACT_ID, REGISTER_DATE, PERIOD,
                                       RECEIVE_YEAR, WAREHOUSE_ID, WAREHOUSE_NAME, BUSINESS_ID,
                                       MONEY_TYPE, MODIFIED_BY, MODIFIED_DATE, STATUS, DUE_DATE));
     }
     catch (Exception ex)
     {
         Common.log.Error(ex.ToString());
         return(false);
     }
 }
예제 #6
0
 public bool Contract_Insert(string CONTRACT_CODE, DateTime REGISTER_DATE, decimal PERIOD,
                             decimal RECEIVE_YEAR, decimal WAREHOUSE_ID, string WAREHOUSE_NAME, decimal BUSINESS_ID,
                             decimal MONEY_TYPE, decimal STATUS, string CREATED_BY, DateTime CREATED_DATE, DateTime DUE_DATE)
 {
     try
     {
         Contract_DA _objDA = new Contract_DA();
         return(_objDA.Contract_Insert(CONTRACT_CODE, REGISTER_DATE, PERIOD,
                                       RECEIVE_YEAR, DBMemory.Contract_Get_NextNumber_Receive(), WAREHOUSE_ID, WAREHOUSE_NAME, BUSINESS_ID,
                                       MONEY_TYPE, STATUS, CREATED_BY, CREATED_DATE, DUE_DATE));
     }
     catch (Exception ex)
     {
         Common.log.Error(ex.ToString());
         return(false);
     }
 }
예제 #7
0
 public byte[] Contract_Search_ThanhKhoan(string CONTRACT_CODE, DateTime FR0MDATE, int STATUS, decimal User_Type, string User_Id, string Created_By,
                                          decimal Receive_Number, decimal Receive_Year, decimal WareHouse_Id, decimal Business_Id,
                                          string p_order_by, int p_start, int p_end, ref int p_total)
 {
     try
     {
         Contract_DA _objDA = new Contract_DA();
         DataSet     _ds    = _objDA.CONTRACTS_SEARCH_THANHKHOAN(CONTRACT_CODE, FR0MDATE, STATUS, User_Type, User_Id, Created_By,
                                                                 Receive_Number, Receive_Year, WareHouse_Id, Business_Id,
                                                                 p_order_by, p_start, p_end, ref p_total);
         return(CompressionHelper.CompressDataSet(_ds));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(new byte[0]);
     }
 }