Browse Source

调整了一下。

master
yibo 7 years ago
parent
commit
94664fa280
1 changed files with 13 additions and 14 deletions
  1. +13
    -14
      TrunksIousOutInStore/TrunksIousOutInStoreForm.cs

+ 13
- 14
TrunksIousOutInStore/TrunksIousOutInStoreForm.cs View File

@ -21,6 +21,7 @@ using BWP.WinFormControl.WeightDataFormat;
using Forks.JsonRpc.Client;
using Newtonsoft.Json;
using TrunksIousOutInStore.LocalSyncBO;
using BWP.WinFormControl;
namespace TrunksIousOutInStore
{
@ -30,7 +31,7 @@ namespace TrunksIousOutInStore
private DropDownSets mDropDownSets;
private Thread tdSyncUnSubmit, tdSyncSubmited;
private readonly Thread _tcCheckNetStatus;
private Thread _tcCheckNetStatus;
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()
@ -90,13 +94,11 @@ namespace TrunksIousOutInStore
private Button CreateGoodsButton(ClientGoodsSetDto item)
{
var btn = new Button();
var btn = new UButton();
btn.Text = item.Goods_Name;
btn.Margin = new Padding { Left = 25, Bottom = 25 };
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.BackColor = SystemColors.Control;
btn.Width = 110;
btn.Height = 60;
return btn;
@ -104,7 +106,7 @@ namespace TrunksIousOutInStore
private void BtnGoods_Click(object sender, EventArgs e)
{
var btn = sender as Button;
var btn = sender as UButton;
var tag = btn.Tag as ClientGoodsSetDto;
if (string.IsNullOrEmpty(textBox1.Text))
throw new Exception("请先扫码");
@ -492,7 +494,6 @@ namespace TrunksIousOutInStore
record.WorkUnit_ID = Convert.ToInt64(cbxWorkUnit.SelectedValue);
record.Store_ID = Convert.ToInt64(cbxStore.SelectedValue);
record.ProductBatch_ID = Convert.ToInt64(cbxBatch.SelectedValue);
record.ProductBatch = cbxBatch.SelectedText;
unSubmitList.Remove(fd);
BindUnSubmitGrid();
}));
@ -576,9 +577,7 @@ namespace TrunksIousOutInStore
}
BindSubmitedGrid();
}));
}
Thread.Sleep(2000);
}
}


Loading…
Cancel
Save