Ejemplo n.º 1
0
        public frmUserEdit(frmUserList _frmUserList, SysUser _SysUser, string _PrimaryKey, int _OperationType)
        {
            InitializeComponent();

            PrimaryKey    = _PrimaryKey;
            OperationType = _OperationType;
            SysUser       = _SysUser;
            frmParent     = _frmUserList;

            if (OperationType == 3)
            {
                getDetail();

                this.btnSave.Visible = false;
            }

            if (OperationType == 2)
            {
                loadDroplistData();
                getDetail();

                this.F_ModifyUserName.Text = SysUser.F_Account;
                this.F_Account.ReadOnly    = true;
            }

            if (OperationType == 1)
            {
                F_CreateUserName.Text = SysUser.F_Account;
            }

            //loadDroplistData();
        }
Ejemplo n.º 2
0
        private void 人员管理ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmUserList frmUser = new frmUserList(this);

            frmUser.WindowState = FormWindowState.Maximized;

            foreach (DockContent frm in this.panMain.Contents)
            {
                if (frm.Name == frmUser.Name)
                {
                    frm.Activate();//激活
                    return;
                }
            }

            frmUser.Show(this.panMain);
        }