Esempio n. 1
0
        public addUserForm(UserMansubForm f)
        {
            InitializeComponent();
            //职位id列表
            _listJobs       = new List <int>();
            _f              = f;
            txtAddress.Text = "";
            txtIDCARD.Text  = "";
            txtName.Text    = "";
            txtPwd.Text     = "";
            txtQQ.Text      = "";
            txtphone.Text   = "";
            ////查询所有职业
            DataTable dtJobs = JobBLL.SelectAllJob().Tables[0];

            for (int i = 0; i < dtJobs.Rows.Count; i++)
            {
                this.comboxJob.Items.Add(dtJobs.Rows[i][2].ToString());
                _listJobs.Add(Convert.ToInt32(dtJobs.Rows[i][0]));
            }
            this.comboxJob.SelectedIndex = 0;
            //
            this.comboxISadmin.SelectedIndex = 0;
            comboxsex.SelectedIndex          = 0;
        }
Esempio n. 2
0
 public UserInfoDetailDLG(int uid, UserMansubForm f)
 {
     InitializeComponent();
     _f         = f;
     _listjobid = new List <int>();
     this._uid  = uid;
     binddata();
 }
Esempio n. 3
0
        private void btnUsers_Click(object sender, EventArgs e)
        {
            this.skinPanel1.Controls.Clear();
            UserMansubForm umf = new UserMansubForm();

            umf.BackColor = Color.FromArgb(240, 240, 240);
            umf.TopLevel  = false;
            umf.Size      = this.skinPanel1.Size;
            this.skinPanel1.Controls.Add(umf);
            umf.Show();
        }