Пример #1
0
 private void dgvUser_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         string          id = dgvUser.Rows[e.RowIndex].Cells[this.user_id.Name].Value.ToString();
         UCPersonnelView uc = new UCPersonnelView();
         uc.id      = id;
         uc.uc      = this;
         uc.wStatus = WindowStatus.View;
         base.addUserControl(uc, "人员管理-浏览", "PersonnelView" + id, this.Tag.ToString(), this.Name);
     }
 }
Пример #2
0
 //用户信息
 private void tSMenuItem_UserInfo_Click(object sender, EventArgs e)
 {
     UCPersonnelView ucform = new UCPersonnelView();
     ucform.Dock = DockStyle.Fill; ucform.windowStatus = WindowStatus.View;
     ucform.pnlOpt.Visible = false;
     ucform.id = GlobalStaticObj.UserID;
     FormEx frm = new FormEx();
     frm.StartPosition = FormStartPosition.CenterScreen;
     frm.Text = "用户信息-查看";
     frm.MaximizeBox = false;
     frm.MinimizeBox = false;
     frm.ShowInTaskbar = false;
     if (frm.Controls.ContainsKey("pnlContainer"))
     {
         Control col = frm.Controls["pnlContainer"];
         frm.Size = ucform.Size;
         frm.Height += 30;
         col.Controls.Add(ucform);
         frm.ShowDialog();
     }
 }
Пример #3
0
 private void dgvUser_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         string id = dgvUser.Rows[e.RowIndex].Cells[this.user_id.Name].Value.ToString();
         UCPersonnelView uc = new UCPersonnelView();
         uc.id = id;
         uc.uc = this;
         uc.wStatus = WindowStatus.View;
         uc.Name = this.Name;
         uc.RoleButtonStstus(Name);
         base.addUserControl(uc, "人员管理-浏览", "PersonnelView" + id, this.Tag.ToString(), this.Name);
     }
 }