public List <ToDoInfo> Search(int currentPage, ref decimal totalRecord, string keySearch = "") { List <ToDoInfo> lstToDo = new List <ToDoInfo>(); var todoDa = new ToDoDA(); try { string p_name = ""; string p_status = ""; string p_type = ""; var arrKeySearch = keySearch.Split('|'); if (arrKeySearch.Length >= 3) { p_name = arrKeySearch[0]; p_status = arrKeySearch[1]; p_type = arrKeySearch[2]; } string p_to = Common.RecordOnpage.ToString(); string p_from = CommonFuc.Get_From_To_Page(currentPage, ref p_to); var ds = todoDa.Search(p_name, p_status, p_type, p_from, p_to, ref totalRecord); lstToDo = CBO <ToDoInfo> .FillCollectionFromDataSet(ds); } catch (Exception ex) { Common.log.Error(ex.ToString()); } return(lstToDo); }
private ListNews SearchNewsForPortal(PortalSearchNews portalSearchNews, out News news) { news = new News(); var total = 0; var ds = _newsDa.GetForPortalIndex(portalSearchNews, ref total); //var list = CBO.Fill2ListFromDataSet<News>(ds, typeof(News)); List <News> list = CBO <News> .FillCollectionFromDataSet(ds); var totalPage = Math.Ceiling((decimal)total / ConfigInfo.RecordOnPageIndex); var paging = HtmlControllHelpers.WritePagingPortal(totalPage, portalSearchNews.CurrentPage, total, ConfigInfo.RecordOnPageIndex); var listNews = new ListNews { Start = portalSearchNews.Start, Collection = list, Paging = paging, TotalRecord = total, TotalPage = totalPage, CurrentPage = portalSearchNews.CurrentPage }; ds = _newsDa.GetSpecialNews(); news = (News)CBO.FillObjectFromDataSet(ds, typeof(News)); return(listNews); }
public List <Shipment> Search(int currentPage, ref decimal totalRecord, string keySearch = "") { List <Shipment> lstShipment = new List <Shipment>(); var shipmentDa = new ShipmentDA(); string _shipmentCode = ""; string _contractCode = ""; string _productCode = ""; string _billing_number = ""; string _requestObject = ""; string _importObject = ""; string _status = ""; try { var arrKeySearch = keySearch.Split('|'); if (arrKeySearch.Length >= 7) { _shipmentCode = arrKeySearch[0]; _contractCode = arrKeySearch[1]; _productCode = arrKeySearch[2]; _billing_number = arrKeySearch[3]; _requestObject = arrKeySearch[4]; _importObject = arrKeySearch[5]; _status = arrKeySearch[6]; } string p_to = Common.RecordOnpage.ToString(); string p_from = CommonFuc.Get_From_To_Page(currentPage, ref p_to); var ds = shipmentDa.Search(_shipmentCode, _contractCode, _productCode, _billing_number, _requestObject, _importObject, _status, p_from, p_to, ref totalRecord); lstShipment = CBO <Shipment> .FillCollectionFromDataSet(ds); } catch (Exception ex) { Common.log.Error(ex.ToString()); } return(lstShipment); }
public List <Contract> Search(int currentPage, ref decimal totalRecord, string keySearch = "") { List <Contract> lstContract = new List <Contract>(); var contractDa = new ContractDA(); try { string p_contract_code = ""; string p_contract_date = ""; string p_import_object = ""; string p_status = ""; var arrKeySearch = keySearch.Split('|'); if (arrKeySearch.Length >= 4) { p_contract_code = arrKeySearch[0]; p_contract_date = arrKeySearch[1]; p_import_object = arrKeySearch[2]; p_status = arrKeySearch[3]; } string p_to = Common.RecordOnpage.ToString(); string p_from = CommonFuc.Get_From_To_Page(currentPage, ref p_to); var ds = contractDa.Search(p_contract_code, p_contract_date, p_import_object, p_status, p_from, p_to, ref totalRecord); lstContract = CBO <Contract> .FillCollectionFromDataSet(ds); } catch (Exception ex) { Common.log.Error(ex.ToString()); lstContract = new List <Contract>(); } return(lstContract); }
public static void LoadAllCodeToMemory() { lock (s_lockerAllCode) { var ds = AllCodeDA.GetAllInAllCode(); s_allCodeCollectionInMemory = CBO <AllCodeInfo> .FillCollectionFromDataSet(ds); } }
public static void SysApplicationAllOnMem() { lock (objlockSynchronize) { var ds = SysApplicationDA.SysApplicationGetAll(); lstMemSysApplication = CBO <SysApplicationInfo> .FillCollectionFromDataSet(ds); } }
private static void LoadAllFunctionsNoRequiredLogin() { lock (s_lockerAllFunctionNoRequiredLoginInMemory) { var ds = FunctionDA.GetAllFunctionsNoRequiredLogin(); s_allFunctionNoRequiredLoginInMemory = CBO <FunctionInfo> .FillCollectionFromDataSet(ds); } }
private List <GroupProducts> GetGroupProduct() { //var groupProductses = new List<GroupProducts>(); DataSet ds = _productDa.GetAllGroup(); //groupProductses = CBO.Fill2ListFromDataSet<GroupProducts>(ds, typeof(GroupProducts)); List <GroupProducts> groupProductses = CBO <GroupProducts> .FillCollectionFromDataSet(ds); return(groupProductses); }
public static void LoadAllCodeToMemory() { lock (SLockerAllCode) { var ds = MemmoryDA.GetAllCode(); var lstAllCode = CBO <AllCodeInfo> .FillCollectionFromDataSet(ds); _sAllCodeCollectionInMemory = lstAllCode; } }
public static void ReloadGroup() { try { var ds = GroupUserDA.GetAllGroups(); c_lst_Group = CBO <GroupUserInfo> .FillCollectionFromDataSet(ds); } catch (Exception ex) { Logger.LogException(ex); } }
private void LoadAllRolesOfUser() { try { var ds = UserDA.GetAllUserRoles(this.CurrentUserInfo.Id); this.CurrentUserInfo.AllAccountRoles = CBO <FunctionInfo> .FillCollectionFromDataSet(ds); } catch (Exception ex) { Logger.LogException(ex); } }
public static List <ItemInfo> ItemIdInCart() { var listObject = new List <ItemInfo>(); try { listObject = CBO <ItemInfo> .FillCollectionFromDataSet(ItemDA.ItemIdInCart()); } catch (Exception ex) { } return(listObject); }
public static List <Injection_Info> Get_All_Injection() { try { var ds = AllCodeDA.Get_All_Injection(); return(CBO <Injection_Info> .FillCollectionFromDataSet(ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <Injection_Info>()); } }
public List <Country_Info> Nation_Represent_GetAll() { try { DataSet _ds = AllCodeDA.Nation_Represent_GetAll(); return(CBO <Country_Info> .FillCollectionFromDataSet(_ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <Country_Info>()); } }
public List <AllCodeInfo> AllCode_Gets_List() { try { DataSet _ds = AllCodeDA.GetAllInAllCode(); return(CBO <AllCodeInfo> .FillCollectionFromDataSet(_ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <AllCodeInfo>()); } }
public List <RegisterInfo> RegisterGetAll(string pSearchKey, int pFrom, int pTo, ref decimal pTotalRecord) { try { DataSet ds = UserDA.RegisterGetAll(pSearchKey, pFrom, pTo, ref pTotalRecord); return(CBO <RegisterInfo> .FillCollectionFromDataSet(ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <RegisterInfo>()); } }
public List <FunctionInfo> Get_lst_app_right(decimal p_userId, string p_country) { try { var ds = UserDA.Get_lst_app_right(p_userId, p_country); return(CBO <FunctionInfo> .FillCollectionFromDataSet(ds));; } catch (Exception ex) { Logger.LogException(ex); return(new List <FunctionInfo>()); } }
public List <UserInfo> GetUserByType(decimal p_user_type) { try { var ds = UserDA.GetUserByType(p_user_type); return(CBO <UserInfo> .FillCollectionFromDataSet(ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <UserInfo>()); } }
public static List <ItemInfo> ItemLoad(int i_itemStatus, decimal i_begin, decimal i_end) { var listObject = new List <ItemInfo>(); try { listObject = CBO <ItemInfo> .FillCollectionFromDataSet(ItemDA.ItemLoad(i_itemStatus, i_begin, i_end)); } catch (Exception ex) { } return(listObject); }
public List <AppFeeFixInfo> GetByCaseCode(string p_case_code) { try { AppFeeFixDA objData = new AppFeeFixDA(); DataSet _ds = objData.GetByCaseCode(p_case_code); return(CBO <AppFeeFixInfo> .FillCollectionFromDataSet(_ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <AppFeeFixInfo>()); } }
public List <AppDDSHCNInfo> AppDDSHCNGetAll(string pName, string pPhone, int pStart, int pEnd, ref decimal pTotalRecord) { try { AppDDSHCN_DA _da = new AppDDSHCN_DA(); DataSet _ds = _da.AppDDSHCNGetAll(pName, pPhone, pStart, pEnd, ref pTotalRecord); return(CBO <AppDDSHCNInfo> .FillCollectionFromDataSet(_ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <AppDDSHCNInfo>()); } }
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>()); } }
public List <SysAppFixChargeInfo> Sys_App_Fix_Charge_GetAll() { try { SysApplicationDA _da = new SysApplicationDA(); DataSet ds = _da.Sys_App_Fix_Charge_GetAll(); return(CBO <SysAppFixChargeInfo> .FillCollectionFromDataSet(ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <SysAppFixChargeInfo>()); } }
public List <NewsInfo> ArticlesGetByPage(string pLanguage, string pTitle, DateTime pNgayCongBo, int pStart, int pEnd, ref decimal pTotalRecord) { try { NewsDA _da = new NewsDA(); DataSet _ds = _da.ArticlesGetByPage(pLanguage, pTitle, pNgayCongBo, pStart, pEnd, ref pTotalRecord); return(CBO <NewsInfo> .FillCollectionFromDataSet(_ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <NewsInfo>()); } }
public List <NewsInfo> NewsStatic(string language) { try { NewsDA _da = new NewsDA(); DataSet _ds = _da.NewsStatic(language); return(CBO <NewsInfo> .FillCollectionFromDataSet(_ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <NewsInfo>()); } }
public List <Sys_App_Translate_Info> Sys_App_Translate_GetBy_Casecode(string p_appcode) { try { App_Translate_DA _da = new App_Translate_DA(); DataSet _ds = _da.Sys_App_Translate_GetBy_Casecode(p_appcode); return(CBO <Sys_App_Translate_Info> .FillCollectionFromDataSet(_ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <Sys_App_Translate_Info>()); } }
public List <App_Translate_Info> App_Translate_GetBy_AppId(decimal p_app_header_id) { try { App_Translate_DA _da = new App_Translate_DA(); DataSet _ds = _da.App_Translate_GetBy_AppId(p_app_header_id); return(CBO <App_Translate_Info> .FillCollectionFromDataSet(_ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <App_Translate_Info>()); } }
public static List <Product_Info> Product_GetAll() { var p_List = new List <Product_Info>(); try { p_List = CBO <Product_Info> .FillCollectionFromDataSet(ProductDA.Product_Getall()); } catch (Exception ex) { Common.log.Error(ex.ToString()); } return(p_List); }
public List <WikiCatalogues_Info> WikiCatalogueGetAll() { try { WikiCatalogue_DA _objDa = new WikiCatalogue_DA(); var ds = _objDa.WikiCatalogue_GetAll(); return(CBO <WikiCatalogues_Info> .FillCollectionFromDataSet(ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <WikiCatalogues_Info>()); } }
public List <AppDocumentOthersInfo> GetByAppHeader(decimal p_app_header_id, string p_language_code) { try { AppImageDA objData = new AppImageDA(); DataSet ds = objData.GetByAppHeader(p_app_header_id, p_language_code); return(CBO <AppDocumentOthersInfo> .FillCollectionFromDataSet(ds)); } catch (Exception ex) { Logger.LogException(ex); return(new List <AppDocumentOthersInfo>()); } }