示例#1
0
        private void button2_Click(object sender, EventArgs e)
        {
            List <Accountcycle> accountcycleList = CommonManager.selectAccountcycle();

            if (accountcycleList != null && accountcycleList.Count > 0)
            {
                this.accountcycle             = accountcycleList[0];
                this.accountcycleTextBox.Text = this.accountcycle.Name;
            }
        }
示例#2
0
        //
        //选择月份start
        //
        private void selectAccountcycleButton_Click(object sender, EventArgs e)
        {
            List <Accountcycle> accountcycleList = CommonManager.selectAccountcycle();//弹出月份表

            if (accountcycleList != null && accountcycleList.Count > 0)
            {
                this.accountcycle             = accountcycleList[0];    //选择月份
                this.accountcycleTextBox.Text = this.accountcycle.Name; //月份显示栏里显示选择的月份
            }
        }
示例#3
0
        private void selectAccountcycle()
        {
            List <Accountcycle> accountcycleList = CommonManager.selectAccountcycle();

            if (accountcycleList != null && accountcycleList.Count > 0)
            {
                this.accountcycle             = accountcycleList[0];
                this.accountcycleTextBox.Text = this.accountcycle.Name;
            }
        }
示例#4
0
        private void initAccountcycle()
        {
            AccountcycleFactory af = new AccountcycleFactory();
            List <Accountcycle> accountcycleList = af.query(-1, -1);

            if (accountcycleList != null && accountcycleList.Count > 0)
            {
                this.accountcycle             = accountcycleList[0];
                this.accountcycleTextBox.Text = this.accountcycle.Name;
            }
        }
示例#5
0
        private void iniAccountcycle()
        {
            AccountcycleFactory af = new AccountcycleFactory();      //new月份工厂
            List <Accountcycle> accountcycleList = af.query(-1, -1); //引用显示月份方法

            if (accountcycleList != null && accountcycleList.Count > 0)
            {
                this.accountcycle             = accountcycleList[0];
                this.accountcycleTextBox.Text = this.accountcycle.Name;//月份显示栏显示月份
            }
        }
        private void select()
        {
            if (this.AccountcycleDataGridView.SelectedRows.Count <= 0)
            {
                MessageBox.Show("请先选择客户!");
                return;
            }

            Accountcycle accountcycle = this.findAccountcycle(this.AccountcycleDataGridView.CurrentRow.Cells[0].Value.ToString());

            if (accountcycle != null)
            {
                this.CurrAccountcycle = new List <Accountcycle>();
                this.CurrAccountcycle.Add(accountcycle);

                this.DialogResult = DialogResult.OK;
            }
            else
            {
                this.DialogResult = DialogResult.Abort;
            }

            this.Close();
        }