Esempio n. 1
0
        private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
        {
            financialAdd queryForm = new financialAdd();

            queryForm.type_code = "";
            queryForm.runmode   = "增加";

            queryForm.StartPosition = FormStartPosition.CenterParent;
            queryForm.ShowDialog();

            if (queryForm.DialogResult != DialogResult.Cancel)
            {
                this.t_financial_typeTableAdapter.Fill(this.lYMaterialMange.t_financial_type);
            }
        }
Esempio n. 2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (null == ly_inma0010DataGridView.CurrentRow)
            {
                return;
            }



            string s = this.ly_inma0010DataGridView.CurrentRow.Cells["编码"].Value.ToString();

            financialAdd queryForm = new financialAdd();

            queryForm.runmode   = "修改";
            queryForm.type_code = s;

            queryForm.StartPosition = FormStartPosition.CenterParent;
            queryForm.ShowDialog();

            if (queryForm.DialogResult != DialogResult.Cancel)
            {
                this.t_financial_typeTableAdapter.Fill(this.lYMaterialMange.t_financial_type);
            }
        }