/// <summary> /// 窗体初始化 /// </summary> private void FormInit() { // 加载用户 //cmbUserAccount.DataSource = commonDao.GetAllSystemUser(eUserRoleCodes.翻车员.ToString()); //cmbUserAccount.DisplayMember = "Name"; //cmbUserAccount.ValueMember = "UserName"; cmbUserAccount.DataSource = commonDao.GetAllSystemUser_Cmcs(); cmbUserAccount.DisplayMember = "UserName"; cmbUserAccount.ValueMember = "UserAccount"; }
/// <summary> /// ´°Ìå³õʼ»¯ /// </summary> private void FormInit() { //// ¼ÓÔØÓû§ //cmbUserAccount.DataSource = commonDao.GetAllSystemUser(eUserRoleCodes.Æû³µÖÇÄÜ»¯.ToString()); //cmbUserAccount.DisplayMember = "Name"; //cmbUserAccount.ValueMember = "UserName"; // ¼ÓÔØCSÓû§ cmbUserAccount.DataSource = commonDao.GetAllSystemUser_Cmcs(); cmbUserAccount.DisplayMember = "Name"; cmbUserAccount.ValueMember = "UserName"; }