void checkStockOut() { //int mi = -2; if (ms.data.Count == d) { string x = HttpHelper.HttpPost("getStockOutItemList", @"pickNo=" + this.txtorderid.Text + "&lcCode=" + Comm.lcCode + "&whId=" + Comm.warehousecode + "&id=" + mm.data[c].id); msg = (Model.Mmsg)JsonConvert.DeserializeObject(x, typeof(Model.Mmsg)); if (msg == null) { throw new Exception("错误信息捕捉失败"); } if (!msg.success) { throw new Exception(msg.msg); } ms = (Model.MStockOutItem)JsonConvert.DeserializeObject(x, typeof(Model.MStockOutItem)); if (ms == null || ms.data == null) { throw new Exception("数据信息捕捉失败"); } if (ms.data.Count == 0) { throw new Exception("该单据1已经操作完成"); } d = 0; } this.labstockoutno.Location = new System.Drawing.Point(3, 198); this.labstockoutno.Size = new System.Drawing.Size(220, 16); this.labstockoutno.Text = "提单号 " + ms.data[d].blNo; this.labsoqty.Text = "当前单据操作:" + (ms.data[d].orderQuantity).ToString() + mm.data[c].commonUnitName + (ms.data[d].orderMinQuantity).ToString() + mm.data[c].minUnitName; }
void GetSOIList() { if (bst) { GetSTList(); } else { if (mm.data[c].pickType == "1") { string x = HttpHelper.HttpPost("getStockOutItemList", @"pickNo=" + this.txtorderid.Text + "&lcCode=" + Comm.lcCode + "&whId=" + Comm.warehousecode + "&id=" + mm.data[c].id); msg = (Model.Mmsg)JsonConvert.DeserializeObject(x, typeof(Model.Mmsg)); if (msg == null) { throw new Exception("错误信息捕捉失败"); } if (!msg.success) { throw new Exception(msg.msg); } ms = (Model.MStockOutItem)JsonConvert.DeserializeObject(x, typeof(Model.MStockOutItem)); if (ms == null || ms.data == null) { throw new Exception("数据信息捕捉失败"); } if (ms.data.Count == 0) { throw new Exception("该单据1已经操作完成"); } d = 0; checkStockOut(); } } }