Exemplo n.º 1
0
        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();
                }
            }
        }
Exemplo n.º 2
0
 private void 定额维护ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DictForm deForm = new DictForm("定额");
     try
     {
         deForm.ShowDialog();
     }
     finally
     {
         if (deForm != null)
             deForm.Dispose();
     }
 }
Exemplo n.º 3
0
 private void 材机维护ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DictForm cjForm = new DictForm("材机");
     try
     {
         cjForm.ShowDialog();
     }
     finally
     {
         if (cjForm != null)
             cjForm.Dispose();
     }
 }
Exemplo n.º 4
0
 private void 设备维护ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DictForm sbForm = new DictForm("设备");
     try
     {
         sbForm.ShowDialog();
     }
     finally
     {
         if (sbForm != null)
             sbForm.Dispose();
     }
 }
Exemplo n.º 5
0
 private void 装材维护ToolStripMenuItem_Click_1(object sender, EventArgs e)
 {
     DictForm zcForm = new DictForm("装材");
     try
     {
         zcForm.ShowDialog();
     }
     finally
     {
         if (zcForm != null)
             zcForm.Dispose();
     }
 }