Beispiel #1
0
 public JsonResult Shengxiang(string ID, string HeaderName)
 {
     try
     {
         if (currentUser == null)
         {
             return(Json(new { state = false, obj = "Cookie失效,重新登陆!" }, JsonRequestBehavior.AllowGet));
         }
         string     strErrMsg = "";
         T_Box_Func boxFunc   = new T_Box_Func();
         ID = ID.TrimEnd(',');
         string[]      strid  = ID.Split(',');
         List <string> sArray = new List <string>(strid);
         if (!boxFunc.CreatePrintBoxInfo(currentUser, sArray, HeaderName, ref strErrMsg))
         {
             return(Json(new { state = false, obj = strErrMsg }, JsonRequestBehavior.AllowGet));
         }
         else
         {
             return(Json(new { state = true, obj = "箱号生成成功!" }, JsonRequestBehavior.AllowGet));
         }
     }
     catch (Exception ex)
     {
         return(Json(new { state = false, obj = ex.ToString() }, JsonRequestBehavior.AllowGet));
     }
 }
Beispiel #2
0
        public string ScanBoxSerial(string strSerialNo)
        {
            T_Box_Func tfunc = new T_Box_Func();

            return(tfunc.ScanBoxSerial(strSerialNo));
        }
Beispiel #3
0
        public string SaveCobBoxListADF(string UserJson, string ModelJson)
        {
            T_Box_Func tfunc = new T_Box_Func();

            return(tfunc.SaveCobBoxListADF(UserJson, ModelJson));
        }
Beispiel #4
0
        public string GetMessageForPrint(string filter, string flag)
        {
            T_Box_Func tfunc = new T_Box_Func();

            return(tfunc.GetMessageForPrint(filter, flag));
        }