示例#1
0
        public JsonResult GetED03(string bcInfo, string eqpInfo)
        {
            try
            {
                RFID_WebSite.Models.BCModels.BCInfo bcObj  = JsonConvert.DeserializeObject <RFID_WebSite.Models.BCModels.BCInfo>(bcInfo);
                RFID_WebSite.Models.BCModels.EQP    eqpObj = JsonConvert.DeserializeObject <RFID_WebSite.Models.BCModels.EQP>(eqpInfo);
                ResponseContent <RFID_WebSite.Models.BCModels.ED03> result = new ResponseContent <RFID_WebSite.Models.BCModels.ED03>();


                RFID_WebSite.Models.BCModels      BCModelsData = new RFID_WebSite.Models.BCModels();
                RFID_WebSite.Models.BCModels.ED03 objs         = BCModelsData.GetED03(bcObj, eqpObj);
                result.Status  = "200";
                result.Message = objs;
                return(Json(result, JsonRequestBehavior.AllowGet));
            }
            catch (Exception e)
            {
                ResponseContent <string> result = new ResponseContent <string>();
                result.Status  = "500";
                result.Message = e.Message + " " + e.StackTrace;
                return(Json(result, JsonRequestBehavior.AllowGet));
            }
        }
示例#2
0
        public JsonResult GetRecipeBodyValue(string bcInfo, string eqpInfo, string ED03Info)
        {
            try
            {
                RFID_WebSite.Models.BCModels.BCInfo bcObj   = JsonConvert.DeserializeObject <RFID_WebSite.Models.BCModels.BCInfo>(bcInfo);
                RFID_WebSite.Models.BCModels.ED03   ed03Obj = JsonConvert.DeserializeObject <RFID_WebSite.Models.BCModels.ED03>(ED03Info);
                RFID_WebSite.Models.BCModels.EQP    eqpObj  = JsonConvert.DeserializeObject <RFID_WebSite.Models.BCModels.EQP>(eqpInfo);
                ResponseContent <List <RFID_WebSite.Models.BCModels.RecipeBodyParseData> > result = new ResponseContent <List <RFID_WebSite.Models.BCModels.RecipeBodyParseData> >();


                RFID_WebSite.Models.BCModels BCModelsData = new RFID_WebSite.Models.BCModels();
                List <RFID_WebSite.Models.BCModels.RecipeBodyParseData> repValList = BCModelsData.GetRecipeBodyParseData(bcObj, eqpObj, ed03Obj);
                result.Status  = "200";
                result.Message = repValList;
                return(Json(result, JsonRequestBehavior.AllowGet));
            }
            catch (Exception e)
            {
                ResponseContent <string> result = new ResponseContent <string>();
                result.Status  = "500";
                result.Message = e.Message + " " + e.StackTrace;
                return(Json(result, JsonRequestBehavior.AllowGet));
            }
        }