private void loadDataBtn_Click(object sender, EventArgs e) { DialogResult dr3 = MessageBox.Show("是否继续加载,请核对数据?", "加载提示", MessageBoxButtons.YesNo, MessageBoxIcon.Information);//触发事件进行提示 if (dr3 == DialogResult.No) { return; } comboBox1.DataSource = null; dgSize.DataSource = null; dgDoorBan.DataSource = null; dgDoorShell.DataSource = null; checkBox2.Checked = false; if (workMan.LoadData()) { LogManager.WriteProgramLog("数据拆分结束"); workMan.ShowResult(listView1); workMan.showDoorTypeList(comboBox1, 0); checkBox2.Checked = true; richTextBox7.Text = "当前木方数据数量行数为:" + ((DataTable)dgSize.DataSource).Rows.Count.ToString(); richTextBox8.Text = "当前门皮数据数量行数为:" + ((DataTable)dgDoorShell.DataSource).Rows.Count.ToString(); rtbResult.Text = "当前门板数据数量行数为:" + ((DataTable)dgDoorBan.DataSource).Rows.Count.ToString(); dataCheck(dgDoorBan, 1, evokWork0.doorBanLen.ShowValue, evokWork0.doorBanWidth.ShowValue, "门板"); dataCheck(dgDoorShell, 1, evokWork0.doorShellLen.ShowValue, evokWork0.doorShellWidth.ShowValue, "门皮"); } }
private void loadDataBtn_Click(object sender, EventArgs e) { comboBox1.DataSource = null; dgSize.DataSource = null; dgDoorBan.DataSource = null; dgDoorShell.DataSource = null; checkBox2.Checked = false; if (workMan.LoadData()) { workMan.ShowResult(listView1); workMan.showDoorTypeList(comboBox1, 0); checkBox2.Checked = true; richTextBox7.Text = "当前木方数据数量行数为:" + ((DataTable)dgSize.DataSource).Rows.Count.ToString(); richTextBox8.Text = "当前门皮数据数量行数为:" + ((DataTable)dgDoorShell.DataSource).Rows.Count.ToString(); rtbResult.Text = "当前门板数据数量行数为:" + ((DataTable)dgDoorBan.DataSource).Rows.Count.ToString(); } }
private void button4_Click(object sender, EventArgs e) { /***单机启动 * if (DialogExcelDataLoad.ShowDialog() == DialogResult.OK) * { * optSize.Len = 244000;//evokWork.lcOutInPs.ShowValue; * optSize.Dbc = 0;//evokWork.dbcOutInPs.ShowValue; * optSize.Ltbc = 0;/// evokWork.ltbcOutInPs.ShowValue; * optSize.Safe = 0;// evokWork.safeOutInPs.ShowValue; * optSize.LoadCsvData(DialogExcelDataLoad.FileName); * } ****/ loadDataBtn.Enabled = false; if (workMan.LoadData()) { workMan.ShowDoor(Constant.doorBanId, UserData); //数据整理成一次性下发的数据 } loadDataBtn.Enabled = true; }
private void button4_Click(object sender, EventArgs e) { /***单机启动 * if (DialogExcelDataLoad.ShowDialog() == DialogResult.OK) * { * optSize.Len = 244000;//evokWork.lcOutInPs.ShowValue; * optSize.Dbc = 0;//evokWork.dbcOutInPs.ShowValue; * optSize.Ltbc = 0;/// evokWork.ltbcOutInPs.ShowValue; * optSize.Safe = 0;// evokWork.safeOutInPs.ShowValue; * optSize.LoadCsvData(DialogExcelDataLoad.FileName); * } ****/ loadDataBtn.Enabled = false; if (workMan.LoadData()) { workMan.ShowDoor(Constant.doorShellId, UserData); if (evokWork.SetOptSizeData((DataTable)UserData.DataSource)) { optNoGetData(); } } loadDataBtn.Enabled = true; }