Exemplo n.º 1
0
 public ActionResult _AjaxPickUserList(GridCommand command, PickUserSearchModel searchModel, string PickGroupCode)
 {
     SearchStatementModel searchStatementModel = PrepareSearchPickUserStatement(command, searchModel, PickGroupCode);
     return PartialView(GetAjaxPageData<PickUser>(searchStatementModel, command));
 }
Exemplo n.º 2
0
        private SearchStatementModel PrepareSearchPickUserStatement(GridCommand command, PickUserSearchModel searchModel, string pickGroupCode)
        {
            string whereStatement = "  where pu.PickGroupCode='" + pickGroupCode + "' ";
            IList<object> param = new List<object>();

            HqlStatementHelper.AddLikeStatement("PickUserName", searchModel.PickUserName, HqlStatementHelper.LikeMatchMode.Start, "pu", ref whereStatement, param);
            string sortingStatement = HqlStatementHelper.GetSortingStatement(command.SortDescriptors);
            SearchStatementModel searchStatementModel = new SearchStatementModel();
            searchStatementModel.SelectCountStatement = selectPickUserCountStatement;
            searchStatementModel.SelectStatement = selectPickUserStatement;
            searchStatementModel.WhereStatement = whereStatement;
            searchStatementModel.SortingStatement = sortingStatement;
            searchStatementModel.Parameters = param.ToArray<object>();
            return searchStatementModel;
        }
Exemplo n.º 3
0
 public ActionResult _PickUserList(GridCommand command, PickUserSearchModel searchModel, string PickGroupCode)
 {
     ViewBag.PickGroupCode = PickGroupCode;
     SearchCacheModel searchCacheModel = this.ProcessSearchModel(command, searchModel);
     ViewBag.PageSize = this.ProcessPageSize(command.PageSize);
     return PartialView();
 }