|
|
@@ -84,6 +84,9 @@ namespace FileWatcher
|
|
|
{
|
|
|
Type.Text = BaseUtil.GetCacheData("Type").ToString();
|
|
|
li_code.Text = BaseUtil.GetCacheData("Line").ToString();
|
|
|
+ Read.Text = BaseUtil.GetCacheData("Read").ToString();
|
|
|
+ Write.Text = BaseUtil.GetCacheData("Write").ToString();
|
|
|
+ ToZero.Text = BaseUtil.GetCacheData("ToZero").ToString();
|
|
|
}
|
|
|
catch (Exception ex) { MessageBox.Show(ex.Message); }
|
|
|
RemindTimer.Start();
|
|
|
@@ -262,6 +265,9 @@ namespace FileWatcher
|
|
|
BaseUtil.SetCacheData("ComPort", ComPort.Text);
|
|
|
BaseUtil.SetCacheData("BaudRate", BaudRate.Text);
|
|
|
BaseUtil.SetCacheData("Line", li_code.Text);
|
|
|
+ BaseUtil.SetCacheData("Read", Read.Text);
|
|
|
+ BaseUtil.SetCacheData("Write", Write.Text);
|
|
|
+ BaseUtil.SetCacheData("ToZero", ToZero.Text);
|
|
|
if (!dh.CheckExist("Make", "ma_code='" + ma_code.Text + "'"))
|
|
|
{
|
|
|
OperateResult.AppendText("工单号不能为空\n");
|
|
|
@@ -273,7 +279,6 @@ namespace FileWatcher
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
string ExitConfirm = MessageBox.Show(this, "确认计数器是否置为0?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
|
|
|
if (ExitConfirm != "Yes")
|
|
|
{
|