public ActionResult List(GridCommand command, MesScanControlPointSearchModel searchModel)
 {
     SearchCacheModel searchCacheModel = this.ProcessSearchModel(command, searchModel);
     if (searchCacheModel.isBack == true)
     {
         ViewBag.Page = searchCacheModel.Command.Page == 0 ? 1 : searchCacheModel.Command.Page;
     }
     ViewBag.PageSize = base.ProcessPageSize(command.PageSize);
     return View();
 }
        public ActionResult CreateOp1Scan(MesScanControlPointSearchModel searchModel)
        {

            if (String.IsNullOrEmpty(searchModel.TraceCode))
            {
                SaveErrorMessage("追溯码不能为空");
                return View("Index");
            }
            string facilityName = "FC000000011";
            // string orderNo = "O4FI1100000923";
            facilityMgr.GetFacilityControlPoint(facilityName, searchModel.TraceCode);



            facilityMgr.GetFacilityParamater(facilityName, "Volume", "容量", searchModel.TraceCode);
            return View("Index");
        }
        private SearchStatementModel PrepareSearchStatement(GridCommand command, MesScanControlPointSearchModel searchModel)
        {
            string whereStatement = string.Empty;

            IList<object> param = new List<object>();

            HqlStatementHelper.AddLikeStatement("TraceCode", searchModel.TraceCode, HqlStatementHelper.LikeMatchMode.Start, "c", ref whereStatement, param);
            HqlStatementHelper.AddLikeStatement("ControlPoint", searchModel.ControlPoint, HqlStatementHelper.LikeMatchMode.Start, "c", ref whereStatement, param);
            HqlStatementHelper.AddEqStatement("Type",CodeMaster.FacilityParamaterType.Paramater,"c", ref whereStatement, param);

            string sortingStatement = HqlStatementHelper.GetSortingStatement(command.SortDescriptors);

            SearchStatementModel searchStatementModel = new SearchStatementModel();
            searchStatementModel.SelectCountStatement = selectCountStatement;
            searchStatementModel.SelectStatement = selectStatement;
            searchStatementModel.WhereStatement = whereStatement;
            searchStatementModel.SortingStatement = sortingStatement;
            searchStatementModel.Parameters = param.ToArray<object>();

            return searchStatementModel;
        }
        public ActionResult CreateOp2Scan(MesScanControlPointSearchModel searchModel)
        {
            if (String.IsNullOrEmpty(searchModel.TraceCode))
            {
                SaveErrorMessage("追溯码不能为空");
                return View("Index");
            }
            string facilityName = "FC000000012";

            facilityMgr.GetFacilityControlPoint(facilityName, searchModel.TraceCode);

            facilityMgr.GetFacilityParamater(facilityName, "Temperature", "温度", searchModel.TraceCode);
            return View("Index");
        }
 public ActionResult _AjaxList(GridCommand command, MesScanControlPointSearchModel searchModel)
 {
     this.GetCommand(ref command, searchModel);
     SearchStatementModel searchStatementModel = this.PrepareSearchStatement(command, searchModel);
     return PartialView(GetAjaxPageData<MesScanControlPoint>(searchStatementModel, command));
 }