Ejemplo n.º 1
0
 private void dgvUser_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         string          id = dgvUser.Rows[e.RowIndex].Cells["user_id"].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);
     }
 }
Ejemplo n.º 2
0
 private void dgvUser_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         try
         {
             string          id = dgvUser.Rows[e.RowIndex].Cells["user_id"].Value.ToString();
             UCPersonnelView uc = new UCPersonnelView();
             uc.id      = id;
             uc.ucName  = this.Name;
             uc.accCode = GlobalStaticObj_Server.CommAccCode;
             uc.wStatus = WindowStatus.View;
             base.addUserControl(uc, "人员管理-查看", "UCPersonnelView" + id, this.Tag.ToString(), this.Name);
         }
         catch (Exception ex)
         {
             GlobalStaticObj_Server.GlobalLogService.WriteLog("人员管理", ex);
             MessageBoxEx.ShowWarning("程序异常");
         }
     }
 }
Ejemplo n.º 3
0
        /// <summary> 用户信息
        /// </summary>
        private void tSMenuItem_UserInfo_Click(object sender, EventArgs e)
        {
            HXCServerWinForm.UCForm.Personnel.UCPersonnelView ucform = new UCForm.Personnel.UCPersonnelView();
            ucform.Dock           = DockStyle.Fill; ucform.windowStatus = HXCServerWinForm.UCForm.WindowStatus.View;
            ucform.pnlOpt.Visible = false;
            ucform.id             = GlobalStaticObj_Server.Instance.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;
                frm.Width  += 30;
                col.Controls.Add(ucform);
                frm.ShowDialog();
            }
        }
Ejemplo n.º 4
0
 /// <summary> 查看人员详细
 /// </summary>
 private void dgvUser_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0 && dgvUser.Columns[e.ColumnIndex].DataPropertyName == "user_name")
     {
         try
         {
             string id = dgvUser.Rows[e.RowIndex].Cells["user_id"].Value.ToString();
             UCPersonnelView uc = new UCPersonnelView();
             uc.id = id;
             uc.ucName = this.Name;
             uc.accCode = cmbacc.SelectedValue.ToString();
             uc.wStatus = WindowStatus.View;
             base.addUserControl(uc, "在线用户-查看", "UCPersonnelView" + id, this.Tag.ToString(), this.Name);
         }
         catch (Exception ex)
         {
             GlobalStaticObj_Server.GlobalLogService.WriteLog("在线用户", ex);
             MessageBoxEx.ShowWarning("程序异常");
         }
     }
 }
Ejemplo n.º 5
0
 private void dgvUser_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         try
         {
             string id = dgvUser.Rows[e.RowIndex].Cells["user_id"].Value.ToString();
             UCPersonnelView uc = new UCPersonnelView();
             uc.id = id;
             uc.ucName = this.Name;
             uc.accCode = GlobalStaticObj_Server.CommAccCode;
             uc.wStatus = WindowStatus.View;
             base.addUserControl(uc, "人员管理-查看", "UCPersonnelView" + id, this.Tag.ToString(), this.Name);
         }
         catch (Exception ex)
         {
             GlobalStaticObj_Server.GlobalLogService.WriteLog("人员管理", ex);
             MessageBoxEx.ShowWarning("程序异常");
         }
     }
 }
Ejemplo n.º 6
0
 /// <summary> 用户信息
 /// </summary>
 private void tSMenuItem_UserInfo_Click(object sender, EventArgs e)
 {
     try
     {
         HXCServerWinForm.UCForm.Personnel.UCPersonnelView ucform = new UCForm.Personnel.UCPersonnelView();
         ucform.Dock = DockStyle.Fill; ucform.windowStatus = HXCServerWinForm.UCForm.WindowStatus.View;
         ucform.pnlOpt.Visible = false;
         ucform.id = GlobalStaticObj_Server.Instance.UserID;
         ucform.accCode = GlobalStaticObj_Server.CommAccCode;
         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;
             frm.Width += 30;
             col.Controls.Add(ucform);
             frm.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("MainForm", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Ejemplo n.º 7
0
        private void dgvUser_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
                string id = dgvUser.Rows[e.RowIndex].Cells["user_id"].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);

            }
        }