|
|
@ -21,6 +21,7 @@ using BWP.WinFormControl.WeightDataFormat; |
|
|
using Forks.JsonRpc.Client; |
|
|
using Forks.JsonRpc.Client; |
|
|
using Newtonsoft.Json; |
|
|
using Newtonsoft.Json; |
|
|
using TrunksIousOutInStore.LocalSyncBO; |
|
|
using TrunksIousOutInStore.LocalSyncBO; |
|
|
|
|
|
using BWP.WinFormControl; |
|
|
|
|
|
|
|
|
namespace TrunksIousOutInStore |
|
|
namespace TrunksIousOutInStore |
|
|
{ |
|
|
{ |
|
|
@ -30,7 +31,7 @@ namespace TrunksIousOutInStore |
|
|
private DropDownSets mDropDownSets; |
|
|
private DropDownSets mDropDownSets; |
|
|
|
|
|
|
|
|
private Thread tdSyncUnSubmit, tdSyncSubmited; |
|
|
private Thread tdSyncUnSubmit, tdSyncSubmited; |
|
|
private readonly Thread _tcCheckNetStatus; |
|
|
|
|
|
|
|
|
private Thread _tcCheckNetStatus; |
|
|
|
|
|
|
|
|
private readonly string BaseRpcUrl = "/MainSystem/B3ClientService/Rpcs/BillRpc/TrunksIousOutInStoreRecord_/TrunksIousOutInStoreRecordRpc/"; |
|
|
private readonly string BaseRpcUrl = "/MainSystem/B3ClientService/Rpcs/BillRpc/TrunksIousOutInStoreRecord_/TrunksIousOutInStoreRecordRpc/"; |
|
|
|
|
|
|
|
|
@ -67,13 +68,16 @@ namespace TrunksIousOutInStore |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
tdSyncUnSubmit = new Thread(SyncUnSubmit); |
|
|
|
|
|
tdSyncSubmited = new Thread(SyncSubmited); |
|
|
|
|
|
tdSyncUnSubmit.Start(); |
|
|
|
|
|
tdSyncSubmited.Start(); |
|
|
|
|
|
|
|
|
this.Load += delegate |
|
|
|
|
|
{ |
|
|
|
|
|
tdSyncUnSubmit = new Thread(SyncUnSubmit); |
|
|
|
|
|
tdSyncSubmited = new Thread(SyncSubmited); |
|
|
|
|
|
tdSyncUnSubmit.Start(); |
|
|
|
|
|
tdSyncSubmited.Start(); |
|
|
|
|
|
|
|
|
_tcCheckNetStatus = new Thread(CheckNetStatus); |
|
|
|
|
|
_tcCheckNetStatus.Start(); |
|
|
|
|
|
|
|
|
_tcCheckNetStatus = new Thread(CheckNetStatus); |
|
|
|
|
|
_tcCheckNetStatus.Start(); |
|
|
|
|
|
}; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void InitGoodsButtonPanel() |
|
|
private void InitGoodsButtonPanel() |
|
|
@ -90,13 +94,11 @@ namespace TrunksIousOutInStore |
|
|
|
|
|
|
|
|
private Button CreateGoodsButton(ClientGoodsSetDto item) |
|
|
private Button CreateGoodsButton(ClientGoodsSetDto item) |
|
|
{ |
|
|
{ |
|
|
var btn = new Button(); |
|
|
|
|
|
|
|
|
var btn = new UButton(); |
|
|
btn.Text = item.Goods_Name; |
|
|
btn.Text = item.Goods_Name; |
|
|
btn.Margin = new Padding { Left = 25, Bottom = 25 }; |
|
|
btn.Margin = new Padding { Left = 25, Bottom = 25 }; |
|
|
btn.Tag = item; |
|
|
btn.Tag = item; |
|
|
btn.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|
|
|
|
|
btn.Click += BtnGoods_Click; |
|
|
btn.Click += BtnGoods_Click; |
|
|
btn.BackColor = SystemColors.Control; |
|
|
|
|
|
btn.Width = 110; |
|
|
btn.Width = 110; |
|
|
btn.Height = 60; |
|
|
btn.Height = 60; |
|
|
return btn; |
|
|
return btn; |
|
|
@ -104,7 +106,7 @@ namespace TrunksIousOutInStore |
|
|
|
|
|
|
|
|
private void BtnGoods_Click(object sender, EventArgs e) |
|
|
private void BtnGoods_Click(object sender, EventArgs e) |
|
|
{ |
|
|
{ |
|
|
var btn = sender as Button; |
|
|
|
|
|
|
|
|
var btn = sender as UButton; |
|
|
var tag = btn.Tag as ClientGoodsSetDto; |
|
|
var tag = btn.Tag as ClientGoodsSetDto; |
|
|
if (string.IsNullOrEmpty(textBox1.Text)) |
|
|
if (string.IsNullOrEmpty(textBox1.Text)) |
|
|
throw new Exception("请先扫码"); |
|
|
throw new Exception("请先扫码"); |
|
|
@ -492,7 +494,6 @@ namespace TrunksIousOutInStore |
|
|
record.WorkUnit_ID = Convert.ToInt64(cbxWorkUnit.SelectedValue); |
|
|
record.WorkUnit_ID = Convert.ToInt64(cbxWorkUnit.SelectedValue); |
|
|
record.Store_ID = Convert.ToInt64(cbxStore.SelectedValue); |
|
|
record.Store_ID = Convert.ToInt64(cbxStore.SelectedValue); |
|
|
record.ProductBatch_ID = Convert.ToInt64(cbxBatch.SelectedValue); |
|
|
record.ProductBatch_ID = Convert.ToInt64(cbxBatch.SelectedValue); |
|
|
record.ProductBatch = cbxBatch.SelectedText; |
|
|
|
|
|
unSubmitList.Remove(fd); |
|
|
unSubmitList.Remove(fd); |
|
|
BindUnSubmitGrid(); |
|
|
BindUnSubmitGrid(); |
|
|
})); |
|
|
})); |
|
|
@ -576,9 +577,7 @@ namespace TrunksIousOutInStore |
|
|
} |
|
|
} |
|
|
BindSubmitedGrid(); |
|
|
BindSubmitedGrid(); |
|
|
})); |
|
|
})); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Thread.Sleep(2000); |
|
|
Thread.Sleep(2000); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|