Пример #1
0
 public FrmUserCustomers(int userid)
 {
     InitializeComponent();
     OwnerUser = this.tableAdapterManager1.usersTableAdapter.GetDataByUser_id(userid).SingleOrDefault();
     this.Text += "(" + OwnerUser.User_realName + ")";
     this.dataGridView1.AutoGenerateColumns = false;
     this.tableAdapterManager1.clientTableAdapter.FillByUser_id(this.humanresourcesDataSet1.client, userid);
     this.dataGridView1.DataSource = this.humanresourcesDataSet1.client;
 }
Пример #2
0
        public FrmUserAdd(int uid)
        {
            InitializeComponent();
            this.txtPWD.Enabled = false;
            this.tableAdapterManager1.usersTableAdapter.FillByUser_id(this.humanresourcesDataSet1.users,uid);
            this.bindUser = this.humanresourcesDataSet1.users.SingleOrDefault() ;
            this.cboRole.DataSource = null;
            this.cboRole.DataSource = this.humanresourcesDataSet1.roles;
            this.cboRole.DisplayMember = "Name";
            this.cboRole.ValueMember = "ID";

            this.Text = "用户编辑("+ this.bindUser.User_realName +")";
            this.txtComent.Text = this.bindUser.Comment;
            this.txtGroup.Text = this.bindUser.User_superior_id.ToString();
            this.txtLoginName.Text = this.bindUser.User_name;
            this.txtName.Text = this.bindUser.User_realName;
            this.txtPWD.Text = this.bindUser.User_pwd;
            this.txtWorkNO.Text = this.bindUser.User_number;
            this.cboRole.SelectedValue = this.bindUser.Role_ID;
        }
Пример #3
0
 public MDIFrmParent(humanresourcesDataSet.usersRow u)
 {
     InitializeComponent();
     this.LoginUser = u;
     this.Text += "(当前用户:" +u.User_realName + ")";
 }
Пример #4
0
 public FrmUserInfo(int userID)
 {
     InitializeComponent();
     this.u = this.tableAdapterManager1.usersTableAdapter.GetDataByUser_id(userID).SingleOrDefault();
     bind();
 }
Пример #5
0
 private void FrmOrderInfoAdd_Load(object sender, EventArgs e)
 {
     if (EditOrder == null)
     {
         BelongUser = ((MDIFrmParent)MdiParent).LoginUser;
         this.lblUser.Text = BelongUser.User_realName;
     }
 }