/// <summary> /// /// </summary> /// <param name="context"></param> /// <returns></returns> private string GetGeneratingVirtualNumbers(HttpContext context) { try { string Storehouse = context.Request["Storehouse"].Trim(); string LOGINNAM = context.Request["LOGINNAM"].Trim(); string FAC = context.Request["FAC"].Trim(); string seq = dal.GetGeneratingVirtualNumbers(FAC.Trim()); if (dal.MaximumQuantity(_level, LOGINNAM)) { return(JsonHelper <Messaging <string> > .EntityToJson(new Messaging <string>("2", "虚拟空货笼已经达到最大数量10!"))); } STC0009 stc9 = new STC0009 { LNO = seq, LOGINNAM = LOGINNAM, Storehouse = Storehouse, LEVEL = _level }; if (dal.Create(stc9)) { return(JsonHelper <Messaging <string> > .EntityToJson(new Messaging <string>("0", seq))); } else { return(JsonHelper <Messaging <string> > .EntityToJson(new Messaging <string>("1", xml.ReadLandXml("1")))); } } catch (Exception ex) { SystemErrorPlug.ErrorRecord(ex.ToString()); return(JsonHelper <Messaging <string> > .EntityToJson(new Messaging <string>("500", ex.Message.ToString().Trim().Replace("\r\n", "")))); } }