示例#1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            string strReceiptId   = this.dgvMatMain.SelectedRows[0].Cells["拆件单据编号"].Value.ToString().Trim();
            string strMainMatName = this.dgvMatMain.SelectedRows[0].Cells["被拆物料"].Value.ToString().Trim();
            string strMatID       = (new DBUtil()).Get_Single_val("T_MatInf", "MatID", "MatName", strMainMatName);

            MatRestoreForm form = new MatRestoreForm("add", strReceiptId, strMainMatName);

            form.ShowDialog();
        }
示例#2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            string strReceiptId = this.dgvMatMain.SelectedRows[0].Cells["拆件单据编号"].Value.ToString().Trim();
            string strMainMatName = this.dgvMatMain.SelectedRows[0].Cells["被拆物料"].Value.ToString().Trim();
            string strMatID = (new DBUtil()).Get_Single_val("T_MatInf", "MatID", "MatName", strMainMatName);

            MatRestoreForm form = new MatRestoreForm("add", strReceiptId, strMainMatName);
            form.ShowDialog();
        }