/// <summary> /// 新建装载复核的复核单号 /// </summary> /// <param name="LoadNO"></param> /// <returns></returns> public ActionResult NewPaperNO(string LoadNO) { GetLoginInfo(); if (Login_Info == null) { return(Content("<script>location.href='/Home'</script>")); } service = new RFBase(Login_Info.User_ID, Login_Info.User_Name, Login_Info.Token); try { service.ClearParameter(); // 获取操作员的装载复核单号 service.SetParameter("LoadNO", LoadNO); service.ExecuteBusinessProcess("LoadCheckAdd"); // 获取商店编码、复核单号、商店名称、配送类型信息 string PaperNO = service.GetParameter("PaperNO").ToString(); string StoreNO = service.GetParameter("StoreNO").ToString(); string StoreDesc = service.GetParameter("StoreDesc").ToString(); string ProvTypeID = service.GetParameter("ProvTypeID").ToString(); string TrayNum = service.GetParameter("TrayNum").ToString(); //string finish = service.GetParameter("finish").ToString(); // return Content(ProvTypeID); return(Json(new { isSuccess = true, PaperNO = PaperNO, ProvTypeID = ProvTypeID, StoreNO = StoreNO, StoreDesc = StoreDesc, TrayNum = TrayNum })); // return Content("[{\"isSuccess\":\"1\",\"sMessage\":\"\"," + "\"PaperNO\":\"" + service.GetParameter("PaperNO").ToString() + "\"}]"); } catch (Exception ex) { return(Json(new { isSuccess = false, sMessage = ex.Message.Replace("\"", "'") })); } }