Example #1
0
        private void btnJXGL_Click(object sender, EventArgs e)
        {
            this.skinPanel1.Controls.Clear();
            jxForm jjf = new jxForm();

            jjf.BackColor = Color.White;
            jjf.TopLevel  = false;
            jjf.Size      = this.skinPanel1.Size;
            this.skinPanel1.Controls.Add(jjf);
            jjf.Show();
        }
Example #2
0
        public jxAdminForm(jxForm f)
        {
            InitializeComponent();
            _f         = f;
            _idlist    = new List <int>();
            txtjx.Text = "";
            txtsm.Text = "";
            //查询所有用户
            DataTable dtusers = BLL.UserBLL.selectAllUsers().Tables[0];

            for (int i = 0; i < dtusers.Rows.Count; i++)
            {
                _idlist.Add(Convert.ToInt32(dtusers.Rows[i]["员工编号"].ToString()));
                this.skinComboBox1.Items.Add(dtusers.Rows[i]["员工名字"].ToString());
            }
            //设置默认选择
            this.skinComboBox1.SelectedIndex = 0;
            /// 设置数据源
            this.skinDataGridView1.DataSource = BLL.JXBLL.selectall();
        }