コード例 #1
0
ファイル: Billing_BL.cs プロジェクト: SangDD/Legaltech
 public Billing_Header_Info Billing_GetBy_Id(decimal p_billing_id, string p_language_code)
 {
     try
     {
         Billing_DA _da = new Billing_DA();
         DataSet    _ds = _da.Billing_GetBy_Id(p_billing_id, p_language_code);
         return(CBO <Billing_Header_Info> .FillObjectFromDataTable(_ds.Tables[0]));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(new Billing_Header_Info());
     }
 }
コード例 #2
0
ファイル: Billing_BL.cs プロジェクト: SangDD/Legaltech
        public Billing_Header_Info Billing_Search_GetBy_Id(decimal p_billing_id, string p_app_case_code, string p_language_code,
                                                           ref SearchObject_Header_Info searchObject_Header_Info, ref List <Billing_Detail_Info> p_lst_billing_detail)
        {
            try
            {
                Billing_DA _da = new Billing_DA();
                DataSet    _ds = _da.Billing_GetBy_Id(p_billing_id, p_app_case_code, p_language_code);

                p_lst_billing_detail = CBO <Billing_Detail_Info> .FillCollectionFromDataTable(_ds.Tables[1]);

                searchObject_Header_Info = CBO <SearchObject_Header_Info> .FillObjectFromDataTable(_ds.Tables[2]);

                return(CBO <Billing_Header_Info> .FillObjectFromDataTable(_ds.Tables[0]));
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
                return(new Billing_Header_Info());
            }
        }