public AccountStatementNewHeader() { // // Required for Windows Form Designer support // App.FillOrgsAccount(); InitializeComponent(); /* * this.dvOrgs.Table = App.DsOrgs.Orgs; * this.cmbOrgs.DataSource = this.dvOrgs; * this.cmbOrgs.DisplayMember = "OrgName"; * this.cmbOrgs.ValueMember = "OrgID"; * this.dvOrgs.RowFilter = "IsInner=true"; * this.dvOrgsAccounts.Table = App.DsOrgsAccount._Table; * this.cmbOrgsAccounts.DataSource = this.dvOrgsAccounts; * this.cmbOrgsAccounts.DisplayMember = "RAccount"; * this.cmbOrgsAccounts.ValueMember = "AccountID"; */ bll.Fill(App.UserLogonID); this.dsUsersOrgsAndAccounts1 = bll.DataSet; this.dvOrgs.Table = this.dsUsersOrgsAndAccounts1.Orgs; this.dvOrgs.Sort = "OrgName"; this.dvOrgsAccounts.Table = this.dsUsersOrgsAndAccounts1.OrgsAccounts; this.dvOrgsAccounts.Sort = "RAccount"; }
public void Init() { bll = new BPS.BLL.Orgs.UsersOrgsAndAccounts(App.Connection); bll.Fill(App.UserLogonID); Init(bll); }