Esempio n. 1
0
        public ActionResult FindUser(string p_keysearch, string p_language, string p_status, int p_CurrentPage)
        {
            try
            {
                decimal _total_record = 0;

                string p_to   = "";
                string p_from = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to);

                var contact_bl                = new Contact_BL();
                List <ContactInfo> _lst       = contact_bl.Contact_Search(p_keysearch, p_language, p_status, ref _total_record, p_from, p_to);
                string             htmlPaging = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <Contact_BL>((int)_total_record, p_CurrentPage, "Luật sư");

                ViewBag.Paging    = htmlPaging;
                ViewBag.Obj       = _lst;
                ViewBag.SumRecord = _total_record;

                return(PartialView("~/Areas/Contact/Views/Contact/_Partial_List_Contact.cshtml"));
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
                return(PartialView("~/Areas/Contact/Views/Contact/_Partial_List_Contact.cshtml"));
            }
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
 public ActionResult SearchDDSHCN(string p_keysearch, int p_CurrentPage, string p_column, string p_type_sort)
 {
     try
     {
         string pTenDaidien = "";
         string pPhone      = "";
         if (p_keysearch.Contains("|"))
         {
             var array = p_keysearch.Split('|');
             pTenDaidien = array[0];
             pPhone      = array[1];
         }
         decimal              _total_record = 0;
         string               p_to          = "";
         string               p_from        = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to);
         AppDDSHCN_BL         _obj_bl       = new AppDDSHCN_BL();
         List <AppDDSHCNInfo> _lst          = _obj_bl.AppDDSHCNGetAll(pTenDaidien, pPhone, 0, 0, ref _total_record);
         string               htmlPaging    = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <Timesheet_Info>((int)_total_record, 1, "Record");
         ViewBag.Paging    = htmlPaging;
         ViewBag.Obj       = _lst;
         ViewBag.SumRecord = _total_record;
         return(PartialView("~/Areas/DaiDienSHCN/Views/DDSHCN/_PartialTableDDSHCN.cshtml"));
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         return(PartialView("~/Areas/DaiDienSHCN/Views/DDSHCN/_PartialTableDDSHCN.cshtml"));
     }
 }
Esempio n. 6
0
        public ActionResult Search(string p_keysearch, int p_CurrentPage)
        {
            try
            {
                decimal _total_record = 0;
                string  p_to          = "";
                string  p_from        = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to);
                if (p_keysearch == "" || p_keysearch == null)
                {
                    p_keysearch = "ALL";
                }
                Au_GroupBL          _bl  = new Au_GroupBL();
                List <Au_GroupInfo> _lst = _bl.Search(p_keysearch, ref _total_record, p_from, p_to);
                string htmlPaging        = NaviCommon.CommonFuc.Get_HtmlPaging <Au_GroupInfo>((int)_total_record, p_CurrentPage, "bản ghi");


                ViewBag.Paging    = htmlPaging;
                ViewBag.List      = _lst;
                ViewBag.SumRecord = _total_record;
                return(PartialView("~/Areas/UserAndRole/Views/AuGroup/_Partial_List.cshtml"));
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
                return(PartialView("~/Areas/UserAndRole/Views/AuGroup/_Partial_List.cshtml"));
            }
        }
Esempio n. 7
0
        public ActionResult FindUser(string p_keysearch, int p_CurrentPage, string p_column, string p_type_sort, string p_type)
        {
            try
            {
                decimal _total_record = 0;

                string p_to   = "";
                string p_from = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to);

                var             userBL = new UserBL();
                List <UserInfo> _lst   = userBL.User_Search_Admin(p_keysearch, ref _total_record, p_from, p_to);
                _lst = _lst.FindAll(m => m.Type != 2 || m.Type != 3).ToList();
                string htmlPaging = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <UserInfo>((int)_total_record, p_CurrentPage, "Người dùng");

                ViewBag.Paging    = htmlPaging;
                ViewBag.Obj       = _lst;
                ViewBag.SumRecord = _total_record;

                return(PartialView("~/Areas/ModuleUsersAndRoles/Views/User/_PartialTableListUsers.cshtml"));
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
                return(PartialView("~/Areas/Manager/Views/TimeSheet/_PartialTableTimeSheet.cshtml"));
            }
        }
Esempio n. 8
0
 public ActionResult User_Search(string p_keysearch, int p_CurrentPage)
 {
     try
     {
         decimal _total_record = 0;
         string  p_to          = "";
         string  p_from        = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to);
         if (p_keysearch == "" || p_keysearch == null)
         {
             p_keysearch = "ALL";
         }
         UserBL          _bl        = new UserBL();
         List <UserInfo> _lst       = _bl.User_Search(p_keysearch, ref _total_record, p_from, p_to);
         string          htmlPaging = NaviCommon.CommonFuc.Get_HtmlPaging <UserInfo>((int)_total_record, p_CurrentPage, "thành viên");
         ViewBag.Paging    = htmlPaging;
         ViewBag.List      = _lst;
         ViewBag.SumRecord = _total_record;
         return(PartialView("/Views/User/_Partial_List_User.cshtml"));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(PartialView("/Views/User/_Partial_List_User.cshtml"));
     }
 }
Esempio n. 9
0
        public ActionResult FindUpdateNews(string keysSearch, string _sortype, int _reconpage, int p_CurrentPage)
        {
            decimal _total_record = 0;
            string  p_to          = "";
            string  p_from        = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to, _reconpage);

            _sortype = " ORDER BY " + _sortype;
            if (string.IsNullOrEmpty(_sortype) || _sortype.Trim() == "ORDER BY")
            {
                _sortype = "ALL";
            }
            string htmlPaging = "";

            try
            {
                NewsBL _obj_bl = new NewsBL();
                // keysSearch = "7|" + "1|" + SessionData.CurrentUser.Language;
                keysSearch = "7|" + "ALL|" + SessionData.CurrentUser.Language + "|TIN_TUC";

                List <NewsInfo> _lst = _obj_bl.ArticleHomeSearch(keysSearch, ref _total_record, p_from, p_to, _sortype);
                htmlPaging        = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <B_Remind_Info>((int)_total_record, p_CurrentPage, "Tin", _reconpage, "UpdatenewsjsPaging");
                ViewBag.Paging    = htmlPaging;
                ViewBag.Obj       = _lst;
                ViewBag.SumRecord = _total_record;
                return(PartialView("~/Areas/Home/Views/Shared/_UpdatenewsData.cshtml"));
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }
            return(null);
        }
Esempio n. 10
0
        public ActionResult WikihomefindObjects(string keysSearch, string _sortype, int _reconpage, int p_CurrentPage)
        {
            decimal _total_record = 0;
            string  p_to          = "";
            string  p_from        = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to, _reconpage);

            _sortype = " ORDER BY " + _sortype;
            if (string.IsNullOrEmpty(_sortype) || _sortype.Trim() == "ORDER BY")
            {
                _sortype = "ALL";
            }
            string htmlPaging = "";

            try
            {
                var _WikiDoc_BL = new WikiDoc_BL();
                keysSearch = "3|" + "ALL|ALL|" + SessionData.CurrentUser.Language;
                List <WikiDoc_Info> _lst = _WikiDoc_BL.HomeWikiDoc_Search(keysSearch, ref _total_record, p_from, p_to, _sortype);
                ViewBag.Paging    = _WikiDoc_BL.GetPagingHtml();
                htmlPaging        = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <WikiDoc_Info>((int)_total_record, p_CurrentPage, "Bài viết", _reconpage, "WikihomejsPaging");
                ViewBag.Paging    = htmlPaging;
                ViewBag.Obj       = _lst;
                ViewBag.SumRecord = _total_record;
                return(PartialView("~/Areas/Home/Views/Shared/_WikiHomeData.cshtml"));
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }
            return(null);
        }
Esempio n. 11
0
        public ActionResult Search(string p_keysearch, int p_CurrentPage)
        {
            try
            {
                decimal _total_record = 0;
                string  p_to          = "";
                string  p_from        = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to);
                if (p_keysearch == "" || p_keysearch == null)
                {
                    p_keysearch = "ALL";
                }
                CarriersBL          _bl  = new CarriersBL();
                List <CarriersInfo> _lst = _bl.Search(p_keysearch, ref _total_record, p_from, p_to);
                string htmlPaging        = NaviCommon.CommonFuc.Get_HtmlPaging <CarriersInfo>((int)_total_record, p_CurrentPage, "nhà cung cấp");


                ViewBag.Paging    = htmlPaging;
                ViewBag.List      = _lst;
                ViewBag.SumRecord = _total_record;

                return(PartialView("~/Areas/ModuleBaseData/Views/Carriers/_Partial_List.cshtml"));
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
                return(PartialView("~/Areas/ModuleBaseData/Views/Carriers/_Partial_List.cshtml"));
            }
        }
Esempio n. 12
0
        public ActionResult FindReminds(string keysSearch, string _sortype, int _reconpage, int p_CurrentPage)
        {
            decimal _total_record = 0;
            string  p_to          = "";
            string  p_from        = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to, _reconpage);

            _sortype = " ORDER BY " + _sortype;
            if (string.IsNullOrEmpty(_sortype) || _sortype.Trim() == "ORDER BY")
            {
                _sortype = "ALL";
            }
            string htmlPaging = "";

            try
            {
                string     language = WebApps.CommonFunction.AppsCommon.GetCurrentLang();
                B_Todos_BL _obj_bl  = new B_Todos_BL();
                keysSearch = SessionData.CurrentUser.Username;
                List <B_Remind_Info> _lst = _obj_bl.B_Remind_Search(keysSearch, ref _total_record, p_from, p_to, _sortype);
                htmlPaging        = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <B_Remind_Info>((int)_total_record, p_CurrentPage, language.Contains("VN") ? "nội dung" : "content", _reconpage, "RemindjsPaging");
                ViewBag.Paging    = htmlPaging;
                ViewBag.Obj       = _lst;
                ViewBag.SumRecord = _total_record;

                var RemindData = AppsCommon.RenderRazorViewToString(this.ControllerContext, "~/Areas/Home/Views/Shared/_RemindData.cshtml");
                return(Json(new { RemindData, Total = _total_record }));
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }
            return(null);
        }
Esempio n. 13
0
        public ActionResult FindUser(string p_keysearch, int p_CurrentPage, string p_column, string p_type_sort, string p_type)
        {
            try
            {
                decimal _total_record = 0;

                string p_to   = "";
                string p_from = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to);

                var             userBL     = new UserBL();
                List <UserInfo> _lst       = userBL.User_Search(p_keysearch, ref _total_record, p_from, p_to);
                string          htmlPaging = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <Timesheet_Info>((int)_total_record, p_CurrentPage, "khách hàng");

                ViewBag.Paging    = htmlPaging;
                ViewBag.Obj       = _lst;
                ViewBag.SumRecord = _total_record;

                return(PartialView("~/Areas/ModuleUsersAndRoles/Views/Customer/_PartialTableListCustomer.cshtml"));
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
                return(PartialView("~/Areas/ModuleUsersAndRoles/Views/Customer/_PartialTableListCustomer.cshtml"));
            }
        }
Esempio n. 14
0
        public ActionResult Notify_Billing(string p_keysearch, int p_CurrentPage, string p_column, string p_type_sort)
        {
            try
            {
                decimal    _total_record = 0;
                string     p_to          = "";
                string     p_from        = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to);
                B_Todos_BL _obj_bl       = new B_Todos_BL();

                string htmlPaging = "";
                if (p_keysearch.Contains("REMIND"))
                {
                    List <B_Remind_Info> _lst1 = _obj_bl.Notify_R_Search(p_keysearch, SessionData.CurrentUser.Username, ref _total_record, p_from, p_to);
                    ViewBag.Obj = _lst1;
                    htmlPaging  = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <B_Remind_Info>((int)_total_record, p_CurrentPage, "Nội dung");
                }
                else
                {
                    List <B_Todos_Info> _lst = _obj_bl.Notify_Search(p_keysearch, SessionData.CurrentUser.Username, ref _total_record, p_from, p_to);
                    htmlPaging  = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <B_Todos_Info>((int)_total_record, p_CurrentPage, "Nội dung");
                    ViewBag.Obj = _lst;
                }

                ViewBag.Paging    = htmlPaging;
                ViewBag.SumRecord = _total_record;
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }

            string[] _arr = p_keysearch.Split('|');
            if (_arr.Length > 0)
            {
                if (_arr[0] == "TODO")
                {
                    return(PartialView("~/Areas/Home/Views/Shared/_TodoData.cshtml"));
                }
                else if (_arr[0] == "ORDER")
                {
                    return(PartialView("~/Areas/Home/Views/Shared/_OrderData.cshtml"));
                }
                else if (_arr[0] == "REMIND")
                {
                    return(PartialView("~/Areas/Home/Views/Shared/_RemindData.cshtml"));
                }
            }
            return(PartialView("~/Areas/Home/Views/Shared/_TodoData.cshtml"));
        }
Esempio n. 15
0
        public ActionResult Search(string p_keysearch, int p_CurrentPage)
        {
            try
            {
                decimal             _total_record = 0;
                string              p_to          = "";
                string              p_from        = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to);
                SupplierBL          _bl           = new SupplierBL();
                List <SupplierInfo> _lst          = _bl.Search(p_keysearch, ref _total_record, p_from, p_to);
                string              htmlPaging    = NaviCommon.CommonFuc.Get_HtmlPaging <SupplierInfo>((int)_total_record, p_CurrentPage, "Thông tin chứng khoán");

                ViewBag.Paging    = htmlPaging;
                ViewBag.Obj       = _lst;
                ViewBag.SumRecord = _total_record;
                return(PartialView("_Partial_List"));
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
                return(PartialView("_Partial_List"));
            }
        }
Esempio n. 16
0
        public ActionResult Search_Email(string p_keysearch, int p_CurrentPage, string p_column, string p_type_sort)
        {
            try
            {
                decimal           _total_record = 0;
                string            p_to          = "";
                string            p_from        = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to);
                Email_BL          _obj_bl       = new Email_BL();
                List <Email_Info> _lst          = _obj_bl.Email_Search(SessionData.CurrentUser.Username, p_keysearch + "|" + SessionData.CurrentUser.Type, ref _total_record, p_from, p_to);
                string            htmlPaging    = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <Email_Info>((int)_total_record, p_CurrentPage, "Email");

                ViewBag.Paging    = htmlPaging;
                ViewBag.Obj       = _lst;
                ViewBag.SumRecord = _total_record;
                return(PartialView("~/Areas/Manager/Views/Email/_PartialTableEmail.cshtml"));
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
                return(PartialView("~/Areas/Manager/Views/Email/_PartialTableEmail.cshtml"));
            }
        }
Esempio n. 17
0
        public ActionResult Search_Docking(string p_keysearch, int p_CurrentPage, string p_column, string p_type_sort)
        {
            try
            {
                decimal             _total_record = 0;
                string              p_to          = "";
                string              p_from        = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to);
                Docking_BL          _obj_bl       = new Docking_BL();
                List <Docking_Info> _lst          = _obj_bl.Docking_Search(p_keysearch, ref _total_record, p_from, p_to);
                string              htmlPaging    = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <Docking_Info>((int)_total_record, 1, "Tài liệu");

                ViewBag.Paging    = htmlPaging;
                ViewBag.Obj       = _lst;
                ViewBag.SumRecord = _total_record;
                return(PartialView("~/Areas/Manager/Views/Docking/_PartialTableDocking.cshtml"));
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
                return(PartialView("~/Areas/Manager/Views/Docking/_PartialTableDocking.cshtml"));
            }
        }
Esempio n. 18
0
        public ActionResult Search_AppFee(string p_keysearch, int p_CurrentPage, string p_column, string p_type_sort)
        {
            try
            {
                decimal              _total_record = 0;
                string               p_to          = "";
                string               p_from        = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to);
                AppFeeFixBL          _obj_bl       = new AppFeeFixBL();
                List <AppFeeFixInfo> _lst          = _obj_bl.AppFee_Search(p_keysearch, ref _total_record, p_from, p_to);
                string               htmlPaging    = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <AppFeeFixInfo>((int)_total_record, 1, "bản ghi");

                ViewBag.Paging    = htmlPaging;
                ViewBag.Obj       = _lst;
                ViewBag.SumRecord = _total_record;
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }

            return(PartialView("~/Areas/Manager/Views/AppFee/_PartialTableAppFee.cshtml"));
        }
Esempio n. 19
0
        public ActionResult Search_Pages(string p_keySearch, int pPage)
        {
            try
            {
                string p_to   = "";
                string p_from = CommonFuc.Get_From_To_Page(pPage, ref p_to);

                decimal               _total_record = 0;
                Sys_Pages_BL          objBL         = new Sys_Pages_BL();
                string                language      = AppsCommon.GetCurrentLang();
                List <Sys_Pages_Info> _lst          = objBL.Sys_Pages_Search(p_keySearch, ref _total_record, p_from, p_to);
                string                htmlPaging    = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <NewsInfo>((int)_total_record, pPage, "Tin");
                ViewBag.listArticles = _lst;
                ViewBag.Paging       = htmlPaging;
                ViewBag.SumRecord    = _total_record;

                return(PartialView("~/Areas/Sys_Pages/Views/SysPages/_PartialView_List.cshtml"));
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
                return(View());
            }
        }
Esempio n. 20
0
        public ActionResult FindOject(int searchtype, string keysSearch, string options)
        {
            int p_CurrentPage = 1;
            int _reconpage    = 5;

            p_CurrentPage = Convert.ToInt32(options.Split('|')[3]);
            _reconpage    = Convert.ToInt32(options.Split('|')[4]);
            decimal _total_record = 0;
            string  p_to          = "";
            string  p_from        = CommonFuc.Get_From_To_Page(p_CurrentPage, ref p_to, _reconpage);
            string  _sortype      = "ALL";

            _sortype = " ORDER BY " + options.Split('|')[0] + " " + options.Split('|')[1];
            if (string.IsNullOrEmpty(_sortype) || _sortype.Trim() == "ORDER BY")
            {
                _sortype = "ALL";
            }
            string htmlPaging = "";

            try
            {
                ViewBag.SearchType = searchtype.ToString();
                if (searchtype == 1)
                {
                    // đơn
                    Application_Header_BL        _obj_bl = new Application_Header_BL();
                    List <ApplicationHeaderInfo> _lst    = _obj_bl.ApplicationHeader_Search(SessionData.CurrentUser.Username, keysSearch, ref _total_record, p_from, p_to, _sortype, 1);
                    htmlPaging = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <ApplicationHeaderInfo>((int)_total_record, p_CurrentPage, "Đơn", _reconpage);

                    ViewBag.Paging    = htmlPaging;
                    ViewBag.Obj       = _lst;
                    ViewBag.SumRecord = _total_record;
                    return(PartialView("~/Areas/Home/Views/Shared/_SearchDataAppStatus.cshtml"));
                }
                if (searchtype == 2)
                {
                    // luật sư
                    var userBL   = new UserBL();
                    var lstUsers = new List <UserInfo>();
                    keysSearch        = "|" + keysSearch + "|" + Convert.ToInt16(CommonEnums.UserType.Lawer) + "|";
                    lstUsers          = userBL.HomeFindUser(ref _total_record, keysSearch, options);
                    htmlPaging        = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <UserInfo>((int)_total_record, p_CurrentPage, "Luật sư", _reconpage);
                    ViewBag.Paging    = htmlPaging;
                    ViewBag.SumRecord = _total_record;

                    return(PartialView("~/Areas/Home/Views/Shared/_SearchDataLawyer.cshtml", lstUsers));
                }
                if (searchtype == 3)
                {
                    // khách hàng
                    var userBL   = new UserBL();
                    var lstUsers = new List <UserInfo>();
                    keysSearch        = "|" + keysSearch + "|" + Convert.ToInt16(CommonEnums.UserType.Customer) + "|";
                    lstUsers          = userBL.FindCustomer(ref _total_record, keysSearch, options);
                    htmlPaging        = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <UserInfo>((int)_total_record, p_CurrentPage, "Khách hàng", _reconpage);
                    ViewBag.Paging    = htmlPaging;
                    ViewBag.SumRecord = _total_record;

                    return(PartialView("~/Areas/Home/Views/Shared/_SearchDataCustomer.cshtml", lstUsers));
                }
                if (searchtype == 4)
                {
                    //wiki
                    var lstOjects = new List <WikiDoc_Info>();
                    keysSearch = CommonWiki.Stt_daduyet.ToString() + "||" + keysSearch;
                    var _WikiDoc_BL = new WikiDoc_BL();
                    lstOjects         = _WikiDoc_BL.WikiDoc_DashboardSearch(ref _total_record, keysSearch, options);
                    htmlPaging        = WebApps.CommonFunction.AppsCommon.Get_HtmlPaging <WikiDoc_Info>((int)_total_record, p_CurrentPage, "Bài viết", _reconpage);
                    ViewBag.Paging    = htmlPaging;
                    ViewBag.SumRecord = _total_record;

                    return(PartialView("~/Areas/Home/Views/Shared/_SearchDataWiki.cshtml", lstOjects));
                }

                if (searchtype == 5)
                {
                    //seach
                    var    _SearchObject_BL = new SearchObject_BL();
                    string _key             = "ALL|ALL|ALL|ALL|ALL" + "|" + SessionData.CurrentUser.Type.ToString() + "|" + SessionData.CurrentUser.Username + "|" + keysSearch;

                    decimal totalRecordFindResult             = 0;
                    List <SearchObject_Header_Info> lstOjects = _SearchObject_BL.SEARCH_OBJECT_SEARCH(ref totalRecordFindResult, _key, options);
                    ViewBag.Paging = _SearchObject_BL.GetPagingHtml();

                    return(PartialView("~/Areas/Home/Views/Shared/_SearchDataSearch.cshtml", lstOjects));
                }
            }
            catch (Exception ex)
            {
                Logger.LogException(ex);
            }
            return(null);
        }