Exemplo n.º 1
0
        public ActionResult GetEmployeeInfo(EmployeeInfoFindModel model, int searchPage)
        {
            SearchDataWithPagedDatas <EmployeeInfoFindModel, EmployeeInfoPageModel> result = new SearchDataWithPagedDatas <EmployeeInfoFindModel, EmployeeInfoPageModel>();

            result.SearchModel = model;
            //result.PagedDatas = EmployeeInfoBLL.GetPagedEmployeeInfo(result.SearchModel, searchPage, this.PageSize);
            result.PagedDatas = EmployeeInfoBLL.GetPagedEmployeeInfo_New(result.SearchModel, searchPage, this.PageSize, base.CurrentStrucID);
            return(PartialView("_EmployeeInfoPagedGrid", result));
        }
Exemplo n.º 2
0
        //public ActionResult EmployeeInfoSetting()
        //{
        //    SearchDataWithPagedDatas<EmployeeInfoSearchModel, EmployeeInfoListModel> model = new SearchDataWithPagedDatas<EmployeeInfoSearchModel, EmployeeInfoListModel>();
        //    model.SearchModel = new EmployeeInfoSearchModel();

        // model.SearchModel.DriveLicenseStateSelectList = EmployeeInfoBLL.GetDriveLicenseStates().ToSelectListWithAll(m => GetSelectListItem(m.DriveLicenseStateID, m.DriveLicenseStateName));
        //    model.SearchModel.DriveLicenseStateID = -1;

        //    model.PagedDatas = EmployeeInfoBLL.GetPagedEmployeeInfos(model.SearchModel, 1, this.PageSize);
        //    return PartialView("_EmployeeInfoSetting", model);
        //}


        //[AsiatekSubordinateFunction("EmployeeInfoSetting")]
        //public ActionResult GetEmployeeInfo(EmployeeInfoSearchModel model, int searchPage)
        //{
        //    SearchDataWithPagedDatas<EmployeeInfoSearchModel, EmployeeInfoListModel> result = new SearchDataWithPagedDatas<EmployeeInfoSearchModel, EmployeeInfoListModel>();
        //    result.SearchModel = model;
        //    result.PagedDatas = EmployeeInfoBLL.GetPagedEmployeeInfos(result.SearchModel, searchPage, this.PageSize);
        //    return PartialView("_EmployeeInfoPagedGrid", result);
        //}
        #endregion

        #region 查询 新版
        public ActionResult EmployeeInfoSetting()
        {
            SearchDataWithPagedDatas <EmployeeInfoFindModel, EmployeeInfoPageModel> model = new SearchDataWithPagedDatas <EmployeeInfoFindModel, EmployeeInfoPageModel>();

            model.SearchModel            = new EmployeeInfoFindModel();
            model.SearchModel.IsCarriers = -1;
            model.SearchModel.IsDrivers  = -1;
            //model.PagedDatas = EmployeeInfoBLL.GetPagedEmployeeInfo(model.SearchModel, 1, this.PageSize);
            model.PagedDatas = EmployeeInfoBLL.GetPagedEmployeeInfo_New(model.SearchModel, 1, this.PageSize, base.CurrentStrucID);
            return(PartialView("_EmployeeInfoSetting", model));
        }