Beispiel #1
0
        public string GetBoxList(string pno, string bno)
        {
            try
            {
                new CustomException(string.Format("GetBoxList--pno:{0},bno:{1}", pno, bno));

                var bll = new TPDABOX();
                return(ResResult.ResJsonString(true, "", JsonConvert.SerializeObject(bll.GetBoxs(pno, bno))));
            }
            catch (Exception ex)
            {
                return(ResResult.ResJsonString(false, ex.Message, ""));
            }
        }
Beispiel #2
0
        public string SaveBoxInfo(string pno, string bno, string oper, string boxno, string btype, string pdate, string tocid, string tobno)
        {
            try
            {
                new CustomException(string.Format("SaveBoxInfo--pno:{0},bno:{1},oper:{2},boxno:{3},btype:{4},pdate:{5},tocid:{6},tobno:{7}", pno, bno, oper, boxno, btype, pdate, tocid, tobno));

                var bll = new TPDABOX();
                return(ResResult.ResJsonString(true, "", JsonConvert.SerializeObject(bll.SaveBoxInfo(pno, bno, oper, boxno, btype, pdate, tocid, tobno))));
            }
            catch (Exception ex)
            {
                return(ResResult.ResJsonString(false, ex.Message, ""));
            }
        }