public App_Detail_F04_Info GetByID(decimal p_app_header_id, string p_language_code, ref ApplicationHeaderInfo applicationHeaderInfo, ref List <AppDocumentInfo> appDocumentInfos, ref List <AppDocumentOthersInfo> _LstDocumentOthersInfo, ref List <UTienInfo> pUTienInfo, ref List <AppClassDetailInfo> pAppClassInfo) { try { var objData = new App_Detail_F04_DA(); DataSet dataSet = objData.GetByID(p_app_header_id, p_language_code); App_Detail_F04_Info app_Detail_F04 = CBO <App_Detail_F04_Info> .FillObjectFromDataTable(dataSet.Tables[0]); if (dataSet != null && dataSet.Tables.Count == 6) { applicationHeaderInfo = CBO <ApplicationHeaderInfo> .FillObjectFromDataTable(dataSet.Tables[1]); appDocumentInfos = CBO <AppDocumentInfo> .FillCollectionFromDataTable(dataSet.Tables[2]); _LstDocumentOthersInfo = CBO <AppDocumentOthersInfo> .FillCollectionFromDataTable(dataSet.Tables[3]); pUTienInfo = CBO <UTienInfo> .FillCollectionFromDataTable(dataSet.Tables[4]); pAppClassInfo = CBO <AppClassDetailInfo> .FillCollectionFromDataTable(dataSet.Tables[5]); } return(app_Detail_F04); } catch (Exception ex) { Logger.LogException(ex); return(new App_Detail_F04_Info()); } }
public App_Detail_TM06DKQT_Info AppTM06DKQTGetByID(string pAppHeaderID, string pLanguage, int pStatus, ref List <AppClassDetailInfo> pListAppClass) { List <AppClassDetailInfo> _listAppClass = new List <AppClassDetailInfo>(); App_Detail_TM06DKQT_Info _Tm06DKQT = new App_Detail_TM06DKQT_Info(); DataSet _DS = new DataSet(); try { var objData = new C07_DA(); _DS = objData.AppTM06DKQTGetByID(pAppHeaderID, pLanguage, pStatus); if (_DS != null && _DS.Tables.Count == 3) { _Tm06DKQT = CBO <App_Detail_TM06DKQT_Info> .FillObjectFromDataSet(_DS); _listAppClass = CBO <AppClassDetailInfo> .FillCollectionFromDataTable(_DS.Tables[2]); } } catch (Exception ex) { Logger.LogException(ex); return(_Tm06DKQT); } pListAppClass = _listAppClass; return(_Tm06DKQT); }
public C08_Info_Export GetByID_Exp(decimal p_app_header_id, string p_language_code, ref ApplicationHeaderInfo applicationHeaderInfo, ref List <AppDocumentInfo> appDocumentInfos, ref List <AppFeeFixInfo> appFeeFixInfos, ref List <Other_MasterInfo> pOther_MasterInfo, ref List <AppDocumentOthersInfo> pAppDocOtherInfo) { try { C08_DA _obj_da = new C08_DA(); DataSet dataSet = _obj_da.GetByID(p_app_header_id, p_language_code); C08_Info_Export _C08_Info = CBO <C08_Info_Export> .FillObjectFromDataSet(dataSet); if (dataSet != null && dataSet.Tables.Count == 6) { applicationHeaderInfo = CBO <ApplicationHeaderInfo> .FillObjectFromDataTable(dataSet.Tables[1]); appDocumentInfos = CBO <AppDocumentInfo> .FillCollectionFromDataTable(dataSet.Tables[2]); appFeeFixInfos = CBO <AppFeeFixInfo> .FillCollectionFromDataTable(dataSet.Tables[3]); pOther_MasterInfo = CBO <Other_MasterInfo> .FillCollectionFromDataTable(dataSet.Tables[4]); pAppDocOtherInfo = CBO <AppDocumentOthersInfo> .FillCollectionFromDataTable(dataSet.Tables[5]); } return(_C08_Info); } catch (Exception ex) { Logger.LogException(ex); return(new C08_Info_Export()); } }
public ApplicationHeaderInfo Get_Info_After_Filling(string p_case_code, string p_user_name, string p_language_code, ref List <B_Todos_Info> b_Todos_Infos, ref List <Billing_Header_Info> billing_Header_Infos, ref List <Docking_Info> docking_Infos, ref List <App_Notice_Info> app_Notice_Infos, ref List <B_Remind_Info> b_Remind_Infos) { try { Application_Header_DA _da = new Application_Header_DA(); DataSet _ds = _da.Get_Info_After_Filling(p_case_code, p_user_name, p_language_code); ApplicationHeaderInfo _ApplicationHeaderInfo = CBO <ApplicationHeaderInfo> .FillObjectFromDataTable(_ds.Tables[0]); b_Todos_Infos = CBO <B_Todos_Info> .FillCollectionFromDataTable(_ds.Tables[1]); billing_Header_Infos = CBO <Billing_Header_Info> .FillCollectionFromDataTable(_ds.Tables[2]); docking_Infos = CBO <Docking_Info> .FillCollectionFromDataTable(_ds.Tables[3]); app_Notice_Infos = CBO <App_Notice_Info> .FillCollectionFromDataTable(_ds.Tables[4]); b_Remind_Infos = CBO <B_Remind_Info> .FillCollectionFromDataTable(_ds.Tables[5]); return(_ApplicationHeaderInfo); } catch (Exception ex) { Logger.LogException(ex); return(new ApplicationHeaderInfo()); } }
public B03_Info_Export GetByID_Exp(decimal p_app_header_id, string p_language_code, ref ApplicationHeaderInfo applicationHeaderInfo, ref List <AppDocumentInfo> appDocumentInfos, ref List <AppFeeFixInfo> appFeeFixInfos) { try { B03_DA _obj_da = new B03_DA(); DataSet dataSet = _obj_da.GetByID(p_app_header_id, p_language_code); B03_Info_Export _b03_Info = CBO <B03_Info_Export> .FillObjectFromDataSet(dataSet); if (dataSet != null && dataSet.Tables.Count == 4) { applicationHeaderInfo = CBO <ApplicationHeaderInfo> .FillObjectFromDataTable(dataSet.Tables[1]); appDocumentInfos = CBO <AppDocumentInfo> .FillCollectionFromDataTable(dataSet.Tables[2]); appFeeFixInfos = CBO <AppFeeFixInfo> .FillCollectionFromDataTable(dataSet.Tables[3]); } return(_b03_Info); } catch (Exception ex) { Logger.LogException(ex); return(new B03_Info_Export()); } }
public App_Detail_PLB01_SDD_Info GetByID(decimal p_app_header_id, string p_language_code, ref ApplicationHeaderInfo applicationHeaderInfo, ref List <AppDocumentInfo> appDocumentInfos, ref List <AppFeeFixInfo> appFeeFixInfos) { try { var objData = new App_Detail_PLB01_SDD_DA(); DataSet dataSet = objData.GetByID(p_app_header_id, p_language_code); App_Detail_PLB01_SDD_Info _App_Detail_PLB01_SDD_Info = CBO <App_Detail_PLB01_SDD_Info> .FillObjectFromDataSet(dataSet); if (dataSet != null && dataSet.Tables.Count == 4) { applicationHeaderInfo = CBO <ApplicationHeaderInfo> .FillObjectFromDataTable(dataSet.Tables[1]); appDocumentInfos = CBO <AppDocumentInfo> .FillCollectionFromDataTable(dataSet.Tables[2]); appFeeFixInfos = CBO <AppFeeFixInfo> .FillCollectionFromDataTable(dataSet.Tables[3]); } return(_App_Detail_PLB01_SDD_Info); } catch (Exception ex) { Logger.LogException(ex); return(new App_Detail_PLB01_SDD_Info()); } }
public List <B_Todos_Info> GetSend_Email() { try { B_TODOS_DA _da = new B_TODOS_DA(); DataSet _ds = _da.GetSend_Email(); return(CBO <B_Todos_Info> .FillCollectionFromDataTable(_ds.Tables[0])); } catch (Exception ex) { Logger.LogException(ex); return(new List <B_Todos_Info>()); } }
public List <B_Todos_Info> NotifiGetByCasecode(string p_key_search, ref List <B_Remind_Info> p_remind_list) { try { B_TODOS_DA _da = new B_TODOS_DA(); DataSet _ds = _da.NotifiGetByCasecode(p_key_search); p_remind_list = CBO <B_Remind_Info> .FillCollectionFromDataTable(_ds.Tables[1]); return(CBO <B_Todos_Info> .FillCollectionFromDataTable(_ds.Tables[0])); } catch (Exception ex) { Logger.LogException(ex); return(new List <B_Todos_Info>()); } }
public A01_Info_Export GetByID_Exp(decimal p_app_header_id, string p_language_code, ref ApplicationHeaderInfo applicationHeaderInfo, ref List <AppDocumentInfo> appDocumentInfos, ref List <AppFeeFixInfo> appFeeFixInfos, ref List <AuthorsInfo> pAppAuthorsInfo, ref List <Other_MasterInfo> pOther_MasterInfo, ref List <AppClassDetailInfo> appClassDetailInfos, ref List <AppDocumentOthersInfo> pAppDocOtherInfo, ref List <UTienInfo> pUTienInfo, ref List <AppDocumentOthersInfo> pLstImagePublic) { try { A01_DA _obj_da = new A01_DA(); DataSet dataSet = _obj_da.GetByID(p_app_header_id, p_language_code); A01_Info_Export _A01_Info = CBO <A01_Info_Export> .FillObjectFromDataSet(dataSet); if (dataSet != null && dataSet.Tables.Count == 10) { applicationHeaderInfo = CBO <ApplicationHeaderInfo> .FillObjectFromDataTable(dataSet.Tables[1]); appDocumentInfos = CBO <AppDocumentInfo> .FillCollectionFromDataTable(dataSet.Tables[2]); appFeeFixInfos = CBO <AppFeeFixInfo> .FillCollectionFromDataTable(dataSet.Tables[3]); pOther_MasterInfo = CBO <Other_MasterInfo> .FillCollectionFromDataTable(dataSet.Tables[4]); pAppAuthorsInfo = CBO <AuthorsInfo> .FillCollectionFromDataTable(dataSet.Tables[5]); appClassDetailInfos = CBO <AppClassDetailInfo> .FillCollectionFromDataTable(dataSet.Tables[6]); pAppDocOtherInfo = CBO <AppDocumentOthersInfo> .FillCollectionFromDataTable(dataSet.Tables[7]); pUTienInfo = CBO <UTienInfo> .FillCollectionFromDataTable(dataSet.Tables[8]); pLstImagePublic = CBO <AppDocumentOthersInfo> .FillCollectionFromDataTable(dataSet.Tables[9]); } return(_A01_Info); } catch (Exception ex) { Logger.LogException(ex); return(new A01_Info_Export()); } }
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()); } }
public Billing_Header_Info Billing_GetBy_Code(string p_case_code, string p_language_code, ref ApplicationHeaderInfo applicationHeaderInfo, ref List <Billing_Detail_Info> p_lst_billing_detail) { try { Billing_DA _da = new Billing_DA(); DataSet _ds = _da.Billing_GetBy_Code(p_case_code, p_language_code); p_lst_billing_detail = CBO <Billing_Detail_Info> .FillCollectionFromDataTable(_ds.Tables[1]); applicationHeaderInfo = CBO <ApplicationHeaderInfo> .FillObjectFromDataTable(_ds.Tables[2]); return(CBO <Billing_Header_Info> .FillObjectFromDataTable(_ds.Tables[0])); } catch (Exception ex) { Logger.LogException(ex); return(new Billing_Header_Info()); } }
public SearchObject_Header_Info SEARCH_HEADER_GETBY_CASECODE(string p_casecode, ref List <SearchObject_Detail_Info> p_searchListdetail, ref SearchObject_Question_Info p_question_info, ref List <AppClassDetailInfo> search_Class_Infos) { try { SearchObject_DA _objDA = new SearchObject_DA(); DataSet _ds = _objDA.SEARCH_HEADER_GETBY_CASECODE(p_casecode); p_searchListdetail = CBO <SearchObject_Detail_Info> .FillCollectionFromDataTable(_ds.Tables[1]); p_question_info = CBO <SearchObject_Question_Info> .FillObjectFromDataTable(_ds.Tables[2]); search_Class_Infos = CBO <AppClassDetailInfo> .FillCollectionFromDataTable(_ds.Tables[3]); return(CBO <SearchObject_Header_Info> .FillObjectFromDataSet(_ds)); } catch (Exception ex) { Logger.LogException(ex); return(new SearchObject_Header_Info()); } }
public A02_Info GetByID(decimal p_app_header_id, string p_language_code, ref ApplicationHeaderInfo applicationHeaderInfo, ref List <AppDocumentInfo> appDocumentInfos, ref List <AppFeeFixInfo> appFeeFixInfos, ref List <AuthorsInfo> pAppAuthorsInfo, ref List <Other_MasterInfo> pOther_MasterInfo, ref List <AppDocumentOthersInfo> pAppDocOtherInfo, ref List <AppDocumentOthersInfo> pAppDocDesign) { try { A02_DA _obj_da = new A02_DA(); DataSet dataSet = _obj_da.GetByID(p_app_header_id, p_language_code); A02_Info _A02_Info = CBO <A02_Info> .FillObjectFromDataSet(dataSet); if (dataSet != null && dataSet.Tables.Count == 8) { applicationHeaderInfo = CBO <ApplicationHeaderInfo> .FillObjectFromDataTable(dataSet.Tables[1]); appDocumentInfos = CBO <AppDocumentInfo> .FillCollectionFromDataTable(dataSet.Tables[2]); appFeeFixInfos = CBO <AppFeeFixInfo> .FillCollectionFromDataTable(dataSet.Tables[3]); pOther_MasterInfo = CBO <Other_MasterInfo> .FillCollectionFromDataTable(dataSet.Tables[4]); pAppAuthorsInfo = CBO <AuthorsInfo> .FillCollectionFromDataTable(dataSet.Tables[5]); pAppDocOtherInfo = CBO <AppDocumentOthersInfo> .FillCollectionFromDataTable(dataSet.Tables[6]); pAppDocDesign = CBO <AppDocumentOthersInfo> .FillCollectionFromDataTable(dataSet.Tables[7]); } return(_A02_Info); } catch (Exception ex) { Logger.LogException(ex); return(new A02_Info()); } }
public ApplicationHeaderInfo GetBilling_ByAppCase_Code(string p_case_code, string p_user_name, string p_language_code, ref List <Billing_Detail_Info> p_lst_billing_detail) { try { Application_Header_DA _da = new Application_Header_DA(); DataSet _ds = _da.GetBilling_ByAppCase_Code(p_case_code, p_user_name, p_language_code); if (_ds != null && _ds.Tables.Count > 0 && _ds.Tables[0].Rows.Count > 0) { p_lst_billing_detail = CBO <Billing_Detail_Info> .FillCollectionFromDataTable(_ds.Tables[1]); return(CBO <ApplicationHeaderInfo> .FillObjectFromDataTable(_ds.Tables[0])); } else { return(null); } } catch (Exception ex) { Logger.LogException(ex); return(null); } }
public ActionResult TradeMarkViewDon(decimal pAppHeaderId, string pAppCode, int pStatus) { if (pAppCode == TradeMarkAppCode.AppCodeDangKyQuocTeNH) { var objBL = new AppDetail06DKQT_BL(); string language = AppsCommon.GetCurrentLang(); var ds06Dkqt = objBL.AppTM06DKQTGetByID(pAppHeaderId, language, pStatus); if (ds06Dkqt != null && ds06Dkqt.Tables.Count == 3) { ViewBag.objAppHeaderInfo = CBO <App_Detail_TM06DKQT_Info> .FillObjectFromDataTable(ds06Dkqt.Tables[0]); ViewBag.Lst_AppDoc = CBO <AppDocumentInfo> .FillCollectionFromDataTable(ds06Dkqt.Tables[1]); ViewBag.lstClassDetailInfo = CBO <AppClassDetailInfo> .FillCollectionFromDataTable(ds06Dkqt.Tables[2]); } return(PartialView("~/Areas/TradeMark/Views/TradeMarkRegistrationDKQT/_PartalViewDangKyNhanHieu.cshtml")); } else { // return(PartialView("~/Areas/TradeMark/Views/TradeMarkRegistrationDKQT/_PartalViewDangKyNhanHieu.cshtml")); } }
public ActionResult TM04NHGetInfo(decimal pAppHeaderId, string p_idchudon, string p_iddaidienchudon, string p_idappclass) { try { var objBL = new AppDetail04NHBL(); string language = AppsCommon.GetCurrentLang(); var ds04NH = objBL.AppTM04NHGetByID(pAppHeaderId, language, 7);// tạm thời truyền vào trạng thái = 7 var _AppDetail04NHInfo = new AppDetail04NHInfo(); if (ds04NH != null && ds04NH.Tables.Count == 5) { _AppDetail04NHInfo = CBO <AppDetail04NHInfo> .FillObjectFromDataTable(ds04NH.Tables[0]); ViewBag.lstClassDetailInfo = CBO <AppClassDetailInfo> .FillCollectionFromDataTable(ds04NH.Tables[3]); } ViewBag.objAppHeaderInfo = _AppDetail04NHInfo; string _viewChuDon = ""; string _viewDaiDienChuDon = ""; string _viewAppClass = ""; _viewChuDon = RenderPartialToString("~/Areas/TradeMark/Views/Shared/_PartialThongTinChuDon.cshtml", p_idchudon); _viewDaiDienChuDon = RenderPartialToString("~/Areas/TradeMark/Views/Shared/_PartialThongTinDaiDienChuDon.cshtml", p_iddaidienchudon); _viewAppClass = RenderPartialToString("~/Areas/TradeMark/Views/Shared/_PartialTMAddAppClass.cshtml", null); return(Json(new { success = 0, NgayNopDon = _AppDetail04NHInfo.Ngaynopdon_Ut.ToDateStringN0(), LogoURL = _AppDetail04NHInfo.Logourl, ViewChuDon = _viewChuDon, ViewDaiDienChuDon = _viewDaiDienChuDon, ViewAppClass = _viewAppClass })); } catch (Exception ex) { Logger.LogException(ex); return(Json(new { success = -1 })); } }
public ActionResult Translate_App() { try { if (SessionData.CurrentUser == null) { return(Redirect("/")); } SessionData.CurrentUser.chashFile.Clear(); string pAppCode = ""; if (RouteData.Values.ContainsKey("id")) { pAppCode = RouteData.Values["id"].ToString().ToUpper(); } ViewBag.AppCode = pAppCode; App_Translate_BL _App_Translate_BL = new App_Translate_BL(); List <Sys_App_Translate_Info> _lst = _App_Translate_BL.Sys_App_Translate_GetBy_Casecode(pAppCode); foreach (var item in _lst) { item.TxtId = "txt" + item.Object_Name; } ViewBag.LstTranslate = _lst; decimal pAppHeaderId = 0; if (RouteData.Values.ContainsKey("id1")) { pAppHeaderId = Convert.ToDecimal(RouteData.Values["id1"].ToString()); } // lấy thông tin đã dịch ViewBag.App_Header_Id = pAppHeaderId; List <App_Translate_Info> _lst_translate = _App_Translate_BL.App_Translate_GetBy_AppId(pAppHeaderId); ViewBag.Lst_Translate_App = _lst_translate; // thông tin đơn DataSet _ds_detail = _App_Translate_BL.AppDetail_GetBy_Id(pAppCode, pAppHeaderId); ViewBag.Ds_detail = _ds_detail; if (_ds_detail != null && _ds_detail.Tables.Count > 0) { ApplicationHeaderInfo applicationHeaderInfo = CBO <ApplicationHeaderInfo> .FillObjectFromDataTable(_ds_detail.Tables[0]); ViewBag.objAppHeaderInfo = applicationHeaderInfo; } // thông tin class if (_ds_detail != null && _ds_detail.Tables.Count > 2) { List <App_Class_Info> app_Class_Infos = CBO <App_Class_Info> .FillCollectionFromDataTable(_ds_detail.Tables[2]); ViewBag.Lst_Class = app_Class_Infos; } // thông tin tài liệu khác if (_ds_detail != null && _ds_detail.Tables.Count > 3) { List <AppDocumentOthersInfo> app_Document_Others = CBO <AppDocumentOthersInfo> .FillCollectionFromDataTable(_ds_detail.Tables[3]); ViewBag.Document_Others = app_Document_Others; } return(PartialView("~/Areas/Manager/Views/Translate/Translate_App.cshtml")); } catch (Exception ex) { Logger.LogException(ex); return(View()); } }