Пример #1
0
        private void tol_add_Click(object sender, EventArgs e)
        {
            Form_MaterialRelManage f = new Form_MaterialRelManage();

            f._operationType = Common.Enum.OperationType.Add;
            f.ShowDialog();
            Query();
        }
Пример #2
0
        private void tsbEdit_Click(object sender, EventArgs e)
        {
            if (dgvData.CurrentRow == null || dgvData.CurrentRow.Index == -1)
            {
                new PubUtils().ShowNoteNGMsg("请先选中行", 2, grade.OrdinaryError);
                return;
            }
            Form_MaterialRelManage f = new Form_MaterialRelManage();

            f.obj_tbmr = PublicSetModel <T_Bllb_MaterialRelation_Tbmr> .GetTByDataGridViewRow(dgvData.Rows[dgvData.CurrentCell.RowIndex]);

            f._operationType = Common.Enum.OperationType.Edit;
            if (f.ShowDialog() == DialogResult.OK)
            {
                Query();
                new PubUtils().ShowNoteOKMsg("编辑成功");
            }
        }