25111701 参数设置添加批量通道配置功能;登陆界面添加超级管理员密码添加功能。
This commit is contained in:
@@ -51,31 +51,31 @@ namespace SLC1_N
|
||||
cb_PUnit.Enabled = false;
|
||||
cb_LUnit.Enabled = false;
|
||||
}
|
||||
if (Form1.f1.User == "工程师")
|
||||
{
|
||||
cb_PUnit.Enabled = false;
|
||||
cb_LUnit.Enabled = false;
|
||||
tb_FullTime.Enabled = false;
|
||||
tb_BalanTime.Enabled=false;
|
||||
tb_TestTime1.Enabled = false;
|
||||
tb_ExhaustTime.Enabled=false;
|
||||
tb_FPlowlimit.Enabled=false;
|
||||
tb_FPtoplimit.Enabled=false;
|
||||
tb_Leaktoplimit.Enabled=false;
|
||||
tb_Leaklowlimit.Enabled=false;
|
||||
}
|
||||
//if (Form1.f1.User == "工程师")
|
||||
//{
|
||||
// cb_PUnit.Enabled = false;
|
||||
// cb_LUnit.Enabled = false;
|
||||
// tb_FullTime.Enabled = false;
|
||||
// tb_BalanTime.Enabled=false;
|
||||
// tb_TestTime1.Enabled = false;
|
||||
// tb_ExhaustTime.Enabled=false;
|
||||
// tb_FPlowlimit.Enabled=false;
|
||||
// tb_FPtoplimit.Enabled=false;
|
||||
// tb_Leaktoplimit.Enabled=false;
|
||||
// tb_Leaklowlimit.Enabled=false;
|
||||
//}
|
||||
|
||||
if (Form1.f1.User != "厂商")
|
||||
{
|
||||
//消失
|
||||
label111.Visible = false;
|
||||
label112.Visible = false;
|
||||
//if (Form1.f1.User != "厂商")
|
||||
//{
|
||||
// //消失
|
||||
// label111.Visible = false;
|
||||
// label112.Visible = false;
|
||||
|
||||
label117.Visible = false;
|
||||
tb_BalanPreMax.Visible = false;
|
||||
tb_BalanPreMin.Visible = false;
|
||||
label116.Visible = false;
|
||||
}
|
||||
// label117.Visible = false;
|
||||
// tb_BalanPreMax.Visible = false;
|
||||
// tb_BalanPreMin.Visible = false;
|
||||
// label116.Visible = false;
|
||||
//}
|
||||
|
||||
//PressMax.Text = Form1.f1.PressMax.ToString();
|
||||
//PressMin.Text = Form1.f1.PressMin.ToString();
|
||||
@@ -717,5 +717,35 @@ namespace SLC1_N
|
||||
config.SetValue("tb_ContinueTestCount", Convert.ToInt32(tb_ContinueTestCount.Text));
|
||||
}
|
||||
|
||||
private void bt_BatchParamSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (var dialog = new Form_BatchSave())
|
||||
{
|
||||
// 显示弹窗并等待用户操作
|
||||
if (dialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
// 获取复选框状态
|
||||
bool[] checkCHx = new bool[4];
|
||||
checkCHx[0] = dialog.chk_CH1.Checked;
|
||||
checkCHx[1] = dialog.chk_CH2.Checked;
|
||||
checkCHx[2] = dialog.chk_CH3.Checked;
|
||||
checkCHx[3] = dialog.chk_CH4.Checked;
|
||||
|
||||
string PorN = "P";
|
||||
if (rbt_PpressureMode.Checked)
|
||||
PorN = "P";
|
||||
else if (rbt_NpressureMode.Checked)
|
||||
PorN = "N";
|
||||
|
||||
for (int i = 0; i <= 3; i++)
|
||||
{
|
||||
if (checkCHx[i])
|
||||
{
|
||||
SetParametersJson(Convert.ToInt32(i + 1), cb_ParaNum.Text, PorN); // 通道-编号
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user