예제 #1
0
        /// <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;
        }
예제 #2
0
 public ActionResult _AjaxItemPackageList(GridCommand command, ItemPackageSearchModel itemPackageSearchModel, string itemCode)
 {
     SearchStatementModel searchStatementModel = this.ItemPackagePrepareSearchStatement(command, itemPackageSearchModel, itemCode);
     return PartialView(GetAjaxPageData<ItemPackage>(searchStatementModel, command));
 }
예제 #3
0
 public ActionResult ItemPackage(GridCommand command, ItemPackageSearchModel itemPackageSearchModel, string id)
 {
     ViewBag.ItemCode = id;
     ViewBag.PageSize = base.ProcessPageSize(command.PageSize);
     return PartialView();
 }
예제 #4
0
        /// <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);
        }
예제 #5
0
        public ActionResult _AjaxItemPackageList(GridCommand command, ItemPackageSearchModel itemPackageSearchModel, string itemCode)
        {
            SearchStatementModel searchStatementModel = this.ItemPackagePrepareSearchStatement(command, itemPackageSearchModel, itemCode);

            return(PartialView(GetAjaxPageData <ItemPackage>(searchStatementModel, command)));
        }
예제 #6
0
 public ActionResult ItemPackage(GridCommand command, ItemPackageSearchModel itemPackageSearchModel, string id)
 {
     ViewBag.ItemCode = id;
     ViewBag.PageSize = base.ProcessPageSize(command.PageSize);
     return(PartialView());
 }