Exemplo n.º 1
0
        private void msBaoXiao_Click(object sender, EventArgs e)
        {
            BXForm bxForm = new BXForm();

            bxForm.MdiParent = this;
            bxForm.Show();
            bxForm.WindowState = FormWindowState.Maximized;
            bxForm.ShowAccountant(tslbAccountant.Text);
        }
Exemplo n.º 2
0
        //新建报销单。
        private void btnNewBx_Click(object sender, EventArgs e)
        {
            BXForm bxForm = new BXForm();

            bxForm.BxdCreated += new BxdSelectedDelegate(BxdList_Update);
            bxForm.BxdUpdated += new BxdSelectedDelegate(BxdList_Update);
            bxForm.Show(this);
            bxForm.WindowState = FormWindowState.Maximized;
            bxForm.ShowAccountant(tslbAccountant.Text);
        }
Exemplo n.º 3
0
        //报销下一位人员,新建窗口,同时关闭本窗口
        private void btnNextPerson_Click(object sender, EventArgs e)
        {
            BXForm bxForm = new BXForm();

            bxForm.ShowAccountantName(tslbAccount.Text);
            bxForm.WindowState = FormWindowState.Maximized;
            if (this.Owner != null)
            {
                if (this.Owner is BxMain)
                {
                    BxMain bxMain = this.Owner as BxMain;
                    bxForm.BxdCreated += new BxdSelectedDelegate(bxMain.BxdList_Update);
                    bxForm.BxdUpdated += new BxdSelectedDelegate(bxMain.BxdList_Update);
                    bxForm.Show(bxMain);
                }
            }
            else
            {
                bxForm.Show();
            }

            this.Close();
        }