private void InitializeOtherControls() { // Load MethodOfContact List PMethodOfContactTable MethodOfContactTable = (PMethodOfContactTable)TDataCache.TMPartner.GetCacheableMailingTable( TCacheableMailingTablesEnum.MethodOfContactList); cmbContact.Items.Add("*"); foreach (PMethodOfContactRow Row in MethodOfContactTable.Rows) { cmbContact.Items.Add(Row.MethodOfContactCode); } cmbContact.SelectedIndex = 0; // Load User List SUserTable UserTable = (SUserTable)TDataCache.TMSysMan.GetCacheableSysManTable(TCacheableSysManTablesEnum.UserList); cmbContactor.Items.Add("*"); foreach (SUserRow Row in UserTable.Rows) { cmbContactor.Items.Add(Row.UserId); } cmbContactor.SelectedIndex = 0; }
private void InitializeOtherControls() { // Load MethodOfContact List PMethodOfContactTable MethodOfContactTable = (PMethodOfContactTable)TDataCache.TMPartner.GetCacheableMailingTable( TCacheableMailingTablesEnum.MethodOfContactList); cmbContact.Items.Add("*"); foreach (PMethodOfContactRow Row in MethodOfContactTable.Rows) { cmbContact.Items.Add(Row.MethodOfContactCode); } cmbContact.SelectedIndex = 0; // Load User List SUserTable UserTable = (SUserTable)TDataCache.TMSysMan.GetCacheableSysManTable(TCacheableSysManTablesEnum.UserList); DataView dvActive = new DataView(UserTable); dvActive.RowFilter = string.Format("{0}=0 AND {1}=0", SUserTable.GetRetiredDBName(), SUserTable.GetAccountLockedDBName()); dvActive.Sort = string.Format("{0}", SUserTable.GetUserIdDBName()); cmbContactor.Items.Add("*"); foreach (DataRowView drv in dvActive) { SUserRow row = (SUserRow)drv.Row; cmbContactor.Items.Add(row.UserId); } cmbContactor.SelectedIndex = 0; }