Beispiel #1
0
 void showST()
 {
     if (st.data.Count == d)
     {
         string x = HttpHelper.HttpPost("getSendToItemList", @"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);
         }
         st = (Model.SendToItemList)JsonConvert.DeserializeObject(x, typeof(Model.SendToItemList));
         if (st == null || st.data == null)
         {
             throw new Exception("数据信息捕捉失败");
         }
         if (st.data.Count == 0)
         {
             throw new Exception("该单据2已经操作完成");
         }
         d = 0;
     }
     //this.labstockoutno.Location = new System.Drawing.Point(3, 198);
     //this.labstockoutno.Size = new System.Drawing.Size(220, 16);
     this.labstockoutno.Location = new System.Drawing.Point(3, 174);
     this.labstockoutno.Size     = new System.Drawing.Size(220, 40);
     this.labstockoutno.Text     = "送达方   " + st.data[d].sendToName;
     this.labsoqty.Text          = "当前单据操作 " + (st.data[d].orderQuantity).ToString() + mm.data[c].commonUnitName + (st.data[d].orderMinQuantity).ToString() + mm.data[c].minUnitName;
 }
Beispiel #2
0
        void GetSTList()
        {
            string x = HttpHelper.HttpPost("getSendToItemList", @"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);
            }
            st = (Model.SendToItemList)JsonConvert.DeserializeObject(x, typeof(Model.SendToItemList));
            if (st == null || st.data == null)
            {
                throw new Exception("数据信息捕捉失败");
            }
            if (st.data.Count == 0)
            {
                throw new Exception("该单据2已经操作完成");
            }
            d = 0;
            //checkStockOut();
            showST();
        }