private void button10_Click(object sender, EventArgs e) { if ((zjkBindingSource.Current as zjk) == null) { MessageBox.Show("请先增加组件,然后增加组件项目。"); return; } DictForm zcForm = new DictForm("装材", 2); using (zcForm) { zcForm.ShowDialog(); if (zcForm.selectCode != "") { zjk_item zcItem = new zjk_item { item_code = zcForm.selectCode, item_name = zcForm.selectName, item_type = 3, zjk = (zjkBindingSource.Current as zjk) }; (zjkBindingSource.Current as zjk).zjk_items.Add(zcItem); RefreshItems(); } } }
private void 定额维护ToolStripMenuItem_Click(object sender, EventArgs e) { DictForm deForm = new DictForm("定额"); try { deForm.ShowDialog(); } finally { if (deForm != null) deForm.Dispose(); } }
private void 材机维护ToolStripMenuItem_Click(object sender, EventArgs e) { DictForm cjForm = new DictForm("材机"); try { cjForm.ShowDialog(); } finally { if (cjForm != null) cjForm.Dispose(); } }
private void 设备维护ToolStripMenuItem_Click(object sender, EventArgs e) { DictForm sbForm = new DictForm("设备"); try { sbForm.ShowDialog(); } finally { if (sbForm != null) sbForm.Dispose(); } }
private void 装材维护ToolStripMenuItem_Click_1(object sender, EventArgs e) { DictForm zcForm = new DictForm("装材"); try { zcForm.ShowDialog(); } finally { if (zcForm != null) zcForm.Dispose(); } }