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