예제 #1
0
        /// <summary>
        /// 添加配套信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            EditMatAssemblyMainForm form = new EditMatAssemblyMainForm("add", 0, "");

            form.matAssemblyMainFormChange += new EditMatAssemblyMainForm.MatAssemblyMainFormChange(form_matAssemblyMainFormChange);
            form.ShowDialog();
        }
예제 #2
0
        /// <summary>
        /// 修改配套信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            string strSysId = "", assname = "";

            if (this.dataGridView1.SelectedRows[0].Cells["sysid"].Value == null)
            {
                return;
            }
            strSysId = this.dataGridView1.SelectedRows[0].Cells["sysid"].Value.ToString().Trim();
            if (strSysId == "")
            {
                return;
            }
            assname = this.dataGridView1.SelectedRows[0].Cells["套机名称"].Value.ToString().Trim();

            int sysid = Convert.ToInt32(strSysId);
            EditMatAssemblyMainForm form = new EditMatAssemblyMainForm("edit", sysid, assname);

            form.matAssemblyMainFormChange += new EditMatAssemblyMainForm.MatAssemblyMainFormChange(form_matAssemblyMainFormChange);
            form.ShowDialog();
        }
예제 #3
0
        /// <summary>
        /// 修改配套信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            string strSysId = "", assname = "";
            if (this.dataGridView1.SelectedRows[0].Cells["sysid"].Value == null) return;
            strSysId = this.dataGridView1.SelectedRows[0].Cells["sysid"].Value.ToString().Trim();
            if (strSysId == "") return;
            assname = this.dataGridView1.SelectedRows[0].Cells["套机名称"].Value.ToString().Trim();

            int sysid = Convert.ToInt32(strSysId);
            EditMatAssemblyMainForm form = new EditMatAssemblyMainForm("edit", sysid, assname);
            form.matAssemblyMainFormChange += new EditMatAssemblyMainForm.MatAssemblyMainFormChange(form_matAssemblyMainFormChange);
            form.ShowDialog();
        }
예제 #4
0
 /// <summary>
 /// 添加配套信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     EditMatAssemblyMainForm form = new EditMatAssemblyMainForm("add", 0, "");
     form.matAssemblyMainFormChange += new EditMatAssemblyMainForm.MatAssemblyMainFormChange(form_matAssemblyMainFormChange);
     form.ShowDialog();
 }