Пример #1
0
        /// <summary>
        /// 拆分机器
        /// </summary>
        private void toolStripButtonAdd_Click(object sender, EventArgs e)
        {
            MatSplitMainForm form = new MatSplitMainForm("add", "", this.userName);

            form.matSplitMainFormChange += new MatSplitMainForm.MatSplitMainFormChange(form_matSplitMainFormChange);
            form.ShowDialog();
        }
Пример #2
0
        /// <summary>
        /// 机器属性
        /// </summary>
        private void toolStripButtonEdit_Click(object sender, EventArgs e)
        {
            if (this.dgvMatMain.SelectedRows.Count <= 0)
            {
                return;
            }

            string strReceiptId = this.dgvMatMain.SelectedRows[0].Cells["拆件单据编号"].Value.ToString().Trim();

            if (strReceiptId == "")
            {
                MessageBox.Show("请选择一条记录!", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }


            MatSplitMainForm form = new MatSplitMainForm("edit", strReceiptId, this.userName);

            form.matSplitMainFormChange += new MatSplitMainForm.MatSplitMainFormChange(form_matSplitMainFormChange);
            form.ShowDialog();
        }
Пример #3
0
        /// <summary>
        /// 机器属性
        /// </summary> 
        private void toolStripButtonEdit_Click(object sender, EventArgs e)
        {
            if (this.dgvMatMain.SelectedRows.Count <= 0)
                return;

            string strReceiptId = this.dgvMatMain.SelectedRows[0].Cells["拆件单据编号"].Value.ToString().Trim();
            if (strReceiptId == "")
            {
                MessageBox.Show("请选择一条记录!", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            MatSplitMainForm form = new MatSplitMainForm("edit", strReceiptId,this.userName);
            form.matSplitMainFormChange += new MatSplitMainForm.MatSplitMainFormChange(form_matSplitMainFormChange);
            form.ShowDialog();
        }
Пример #4
0
 /// <summary>
 /// 拆分机器
 /// </summary> 
 private void toolStripButtonAdd_Click(object sender, EventArgs e)
 {
     MatSplitMainForm form = new MatSplitMainForm("add", "", this.userName);
     form.matSplitMainFormChange += new MatSplitMainForm.MatSplitMainFormChange(form_matSplitMainFormChange);
     form.ShowDialog();
 }