private void toolStripButtonAdd_Click(object sender, EventArgs e)
        {
            EditReceiptModalDefineForm form = new EditReceiptModalDefineForm("add", "");

            form.receiptModalDefineChange += new EditReceiptModalDefineForm.ReceiptModalDefineChange(form_receiptModalDefineChange);
            form.ShowDialog();
        }
        private void toolStripButtonEdit_Click(object sender, EventArgs e)
        {
            if (this.dataGridViewRecMod.SelectedRows.Count <= 0)
            {
                return;
            }
            if (this.dataGridViewRecMod.SelectedRows[0].Cells["单据模板编号"].Value == null)
            {
                return;
            }

            string receTypeID = this.dataGridViewRecMod.SelectedRows[0].Cells["单据模板编号"].Value.ToString().Trim();

            EditReceiptModalDefineForm form = new EditReceiptModalDefineForm("edit", receTypeID);

            form.receiptModalDefineChange += new EditReceiptModalDefineForm.ReceiptModalDefineChange(form_receiptModalDefineChange);
            form.ShowDialog();
        }
        private void toolStripButtonEdit_Click(object sender, EventArgs e)
        {
            if (this.dataGridViewRecMod.SelectedRows.Count <= 0)
                return;
            if (this.dataGridViewRecMod.SelectedRows[0].Cells["单据模板编号"].Value == null)
                return;

            string receTypeID = this.dataGridViewRecMod.SelectedRows[0].Cells["单据模板编号"].Value.ToString().Trim();

            EditReceiptModalDefineForm form = new EditReceiptModalDefineForm("edit", receTypeID);
            form.receiptModalDefineChange += new EditReceiptModalDefineForm.ReceiptModalDefineChange(form_receiptModalDefineChange);
            form.ShowDialog();
        }
 private void toolStripButtonAdd_Click(object sender, EventArgs e)
 {
     EditReceiptModalDefineForm form = new EditReceiptModalDefineForm("add", "");
     form.receiptModalDefineChange += new EditReceiptModalDefineForm.ReceiptModalDefineChange(form_receiptModalDefineChange);
     form.ShowDialog();
 }