/// <summary> /// 导入当前重量设计数据 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tSMItm_ImportWeightDesignData_Click(object sender, EventArgs e) { if (mainForm.designProjectData == null) { MessageBox.Show("当前重量设计结果没有数据"); return; } if (mainForm.designProjectData.lstWeightArithmetic == null || mainForm.designProjectData.lstWeightArithmetic.Count == 0) { MessageBox.Show("当前重量设计结果没有数据"); return; } Form selectWghtDatFrm = new SelectWeightDataForm(this, mainForm.designProjectData, "重量设计结果列表", false); selectWghtDatFrm.Text = "选择当前重量设计结果"; selectWghtDatFrm.ShowDialog(); }
/// <summary> /// 从数据库导入重量设计数据 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tSMItm_ImportWeightDesignDataFromDB_Click(object sender, EventArgs e) { Form selectWghtDatFrm = new SelectWeightDataForm(this, "重量设计数据列表", true); selectWghtDatFrm.Text = "选择数据库重量设计数据"; selectWghtDatFrm.Show(); }
/// <summary> /// 从数据库导入型号重量数据 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolMemuImportTypeWeightData_Click(object sender, EventArgs e) { Form selectWghtDatFrm = new SelectWeightDataForm(this, "型号重量数据列表", false); selectWghtDatFrm.Text = "选择数据库型号重量数据"; selectWghtDatFrm.ShowDialog(); }
/// <summary> /// 从数据库导入型号重量数据 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tSMItm_ImportModelWeightDataFromDB_Click(object sender, EventArgs e) { Form selectWghtDatFrm = new SelectWeightDataForm(this, "型号重量数据列表", false); selectWghtDatFrm.Text = "选择数据库型号重量数据"; selectWghtDatFrm.ShowDialog(); }
/// <summary> /// 导入当前重量调整数据 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolMemuImportAdjustmentData_Click(object sender, EventArgs e) { if (mainForm.designProjectData == null) { MessageBox.Show("重量调整结果没有数据"); return; } if (mainForm.designProjectData.lstAdjustmentResultData == null || mainForm.designProjectData.lstAdjustmentResultData.Count == 0) { MessageBox.Show("重量调整结果没有数据"); return; } Form selectWghtDatFrm = new SelectWeightDataForm(this, mainForm.designProjectData, "重量调整结果列表", false); selectWghtDatFrm.Text = "选择重量调整结果"; selectWghtDatFrm.ShowDialog(); }