/// <summary> /// Search Statement /// </summary> /// <param name="command">Telerik GridCommand</param> /// <param name="itemRefsearchModel">ItemPackage Search Model</param> /// <param name="id">ItemPackage id</param> /// <returns>return Search Statement</returns> private SearchStatementModel ItemPackagePrepareSearchStatement(GridCommand command, ItemPackageSearchModel itemPackageSearchModel, string id) { string whereStatement = " where i.Item='" + id + "'"; IList<object> param = new List<object>(); string sortingStatement = HqlStatementHelper.GetSortingStatement(command.SortDescriptors); SearchStatementModel searchStatementModel = new SearchStatementModel(); searchStatementModel.SelectCountStatement = selectItemPackageCountStatement; searchStatementModel.SelectStatement = selectItemPackageStatement; searchStatementModel.WhereStatement = whereStatement; searchStatementModel.SortingStatement = sortingStatement; searchStatementModel.Parameters = param.ToArray<object>(); return searchStatementModel; }
public ActionResult _AjaxItemPackageList(GridCommand command, ItemPackageSearchModel itemPackageSearchModel, string itemCode) { SearchStatementModel searchStatementModel = this.ItemPackagePrepareSearchStatement(command, itemPackageSearchModel, itemCode); return PartialView(GetAjaxPageData<ItemPackage>(searchStatementModel, command)); }
public ActionResult ItemPackage(GridCommand command, ItemPackageSearchModel itemPackageSearchModel, string id) { ViewBag.ItemCode = id; ViewBag.PageSize = base.ProcessPageSize(command.PageSize); return PartialView(); }
/// <summary> /// Search Statement /// </summary> /// <param name="command">Telerik GridCommand</param> /// <param name="itemRefsearchModel">ItemPackage Search Model</param> /// <param name="id">ItemPackage id</param> /// <returns>return Search Statement</returns> private SearchStatementModel ItemPackagePrepareSearchStatement(GridCommand command, ItemPackageSearchModel itemPackageSearchModel, string id) { string whereStatement = " where i.Item='" + id + "'"; IList <object> param = new List <object>(); string sortingStatement = HqlStatementHelper.GetSortingStatement(command.SortDescriptors); SearchStatementModel searchStatementModel = new SearchStatementModel(); searchStatementModel.SelectCountStatement = selectItemPackageCountStatement; searchStatementModel.SelectStatement = selectItemPackageStatement; searchStatementModel.WhereStatement = whereStatement; searchStatementModel.SortingStatement = sortingStatement; searchStatementModel.Parameters = param.ToArray <object>(); return(searchStatementModel); }
public ActionResult _AjaxItemPackageList(GridCommand command, ItemPackageSearchModel itemPackageSearchModel, string itemCode) { SearchStatementModel searchStatementModel = this.ItemPackagePrepareSearchStatement(command, itemPackageSearchModel, itemCode); return(PartialView(GetAjaxPageData <ItemPackage>(searchStatementModel, command))); }
public ActionResult ItemPackage(GridCommand command, ItemPackageSearchModel itemPackageSearchModel, string id) { ViewBag.ItemCode = id; ViewBag.PageSize = base.ProcessPageSize(command.PageSize); return(PartialView()); }