Example #1
0
 public int Docking_Update_Status(decimal p_docking_id, string p_language_code, decimal p_status, string p_modify_by, DateTime p_modify_date)
 {
     try
     {
         Docking_DA _da = new Docking_DA();
         return(_da.Docking_Update_Status(p_docking_id, p_language_code, p_status, p_modify_by, p_modify_date));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(ErrorCode.Error);
     }
 }
Example #2
0
 public List <Docking_Info> Docking_GetBy_AppCaseCode(string p_app_case_code)
 {
     try
     {
         Docking_DA _da = new Docking_DA();
         DataSet    _ds = _da.Docking_GetBy_AppCaseCode(p_app_case_code);
         return(CBO <Docking_Info> .FillCollectionFromDataSet(_ds));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(new List <Docking_Info>());
     }
 }
Example #3
0
 public Docking_Info Docking_GetBy_DocCaseCode(string p_doc_case_code)
 {
     try
     {
         Docking_DA _da = new Docking_DA();
         DataSet    _ds = _da.Docking_GetBy_DocCaseCode(p_doc_case_code);
         return(CBO <Docking_Info> .FillObjectFromDataSet(_ds));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(new Docking_Info());
     }
 }
Example #4
0
 public Docking_Info Docking_GetBy_Id(decimal p_docking_id)
 {
     try
     {
         Docking_DA _da = new Docking_DA();
         DataSet    _ds = _da.Docking_GetBy_Id(p_docking_id);
         return(CBO <Docking_Info> .FillObjectFromDataSet(_ds));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(new Docking_Info());
     }
 }
Example #5
0
 public List <Docking_Info> Docking_GetAll()
 {
     try
     {
         Docking_DA _da = new Docking_DA();
         DataSet    _ds = _da.Docking_GetAll();
         return(CBO <Docking_Info> .FillCollectionFromDataSet(_ds));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(new List <Docking_Info>());
     }
 }
Example #6
0
 public List <Docking_Info> Docking_Search(string p_key_search, ref decimal p_total_record,
                                           string p_from = "1", string p_to = "10", string p_sort_type = "ALL")
 {
     try
     {
         Docking_DA _da = new Docking_DA();
         DataSet    _ds = _da.Docking_Search(p_key_search, p_from, p_to, p_sort_type, ref p_total_record);
         return(CBO <Docking_Info> .FillCollectionFromDataSet(_ds));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(new List <Docking_Info>());
     }
 }
Example #7
0
 public decimal Docking_Update(Docking_Info p_Docking_Info)
 {
     try
     {
         Docking_DA _da = new Docking_DA();
         return(_da.Docking_Update(p_Docking_Info.Docking_Id, p_Docking_Info.Docking_Type, p_Docking_Info.Document_Name, p_Docking_Info.Document_Name_Type, p_Docking_Info.Document_Name_Other,
                                   p_Docking_Info.Document_Type, p_Docking_Info.Status,
                                   p_Docking_Info.Deadline, p_Docking_Info.Isshowcustomer, p_Docking_Info.In_Out_Date, p_Docking_Info.Modify_By, p_Docking_Info.Modify_Date,
                                   p_Docking_Info.Language_Code, p_Docking_Info.Url, p_Docking_Info.Notes, p_Docking_Info.Place_Submit, p_Docking_Info.FileName));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(-1);
     }
 }