Example #1
0
 /// <summary>
 /// 转向添加
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCRoleManager_AddEvent(object sender, EventArgs e)
 {
     UCRoleAddOrEdit UCRoleAddOrEdit = new UCRoleAddOrEdit();
     UCRoleAddOrEdit.uc = this;
     UCRoleAddOrEdit.wStatus = WindowStatus.Add;
     base.addUserControl(UCRoleAddOrEdit, "角色管理-新增", "RoleAdd", this.Tag.ToString(), this.Name);
 }
Example #2
0
 /// <summary> 去编辑
 /// </summary>
 void UCRoleManager_EditEvent(object sender, EventArgs e)
 {
     if (dgvRole.CurrentRow == null)
     {
         MessageBoxEx.Show("请选择编辑记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     try
     {
         if (dgvRole.CurrentRow.Cells["role_code"].Value.ToString() == "system")
         {
             return;
         }
         UCRoleAddOrEdit RoleEdit = new UCRoleAddOrEdit();
         RoleEdit.uc           = this;
         RoleEdit.windowStatus = WindowStatus.Edit;
         RoleEdit.id           = dgvRole.CurrentRow.Cells["role_id"].Value.ToString(); //参数 角色管理ID
         base.addUserControl(RoleEdit, "角色管理-编辑", "RoleEdit" + RoleEdit.id, this.Tag.ToString(), this.Name);
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("角色管理", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Example #3
0
        /// <summary>
        /// 转向添加
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void UCRoleManager_AddEvent(object sender, EventArgs e)
        {
            UCRoleAddOrEdit UCRoleAddOrEdit = new UCRoleAddOrEdit();

            UCRoleAddOrEdit.uc      = this;
            UCRoleAddOrEdit.wStatus = WindowStatus.Add;
            base.addUserControl(UCRoleAddOrEdit, "角色管理-新增", "RoleAdd", this.Tag.ToString(), this.Name);
        }
Example #4
0
 /// <summary> 转向添加
 /// </summary> 
 void UCRoleManager_AddEvent(object sender, EventArgs e)
 {
     try
     {
         UCRoleAddOrEdit UCRoleAddOrEdit = new UCRoleAddOrEdit();
         UCRoleAddOrEdit.uc = this;
         UCRoleAddOrEdit.windowStatus = WindowStatus.Add;
         base.addUserControl(UCRoleAddOrEdit, "角色管理-新增", "RoleAdd", this.Tag.ToString(), this.Name);
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("角色管理", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Example #5
0
 /// <summary> 转向添加
 /// </summary>
 void UCRoleManager_AddEvent(object sender, EventArgs e)
 {
     try
     {
         UCRoleAddOrEdit UCRoleAddOrEdit = new UCRoleAddOrEdit();
         UCRoleAddOrEdit.uc           = this;
         UCRoleAddOrEdit.windowStatus = WindowStatus.Add;
         base.addUserControl(UCRoleAddOrEdit, "角色管理-新增", "RoleAdd", this.Tag.ToString(), this.Name);
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("角色管理", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Example #6
0
 /// <summary>
 /// 去编辑
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void UCRoleManager_EditEvent(object sender, EventArgs e)
 {
     if (dgvRole.CurrentRow == null)
     {
         MessageBoxEx.Show("请选择编辑记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     if (dgvRole.CurrentRow.Cells["role_code"].Value.ToString() == "system")
         return;
     UCRoleAddOrEdit RoleEdit = new UCRoleAddOrEdit();
     RoleEdit.uc = this;
     RoleEdit.wStatus = WindowStatus.Edit;
     RoleEdit.id = dgvRole.CurrentRow.Cells["role_id"].Value.ToString();  //参数 角色管理ID
     base.addUserControl(RoleEdit, "角色管理-编辑", "RoleEdit" + RoleEdit.id, this.Tag.ToString(), this.Name);
 }
Example #7
0
        /// <summary>
        /// 去编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void UCRoleManager_EditEvent(object sender, EventArgs e)
        {
            if (dgvRole.CurrentRow == null)
            {
                MessageBoxEx.Show("请选择编辑记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            if (dgvRole.CurrentRow.Cells["role_code"].Value.ToString() == "system")
            {
                return;
            }
            UCRoleAddOrEdit RoleEdit = new UCRoleAddOrEdit();

            RoleEdit.uc      = this;
            RoleEdit.wStatus = WindowStatus.Edit;
            RoleEdit.id      = dgvRole.CurrentRow.Cells["role_id"].Value.ToString(); //参数 角色管理ID
            base.addUserControl(RoleEdit, "角色管理-编辑", "RoleEdit" + RoleEdit.id, this.Tag.ToString(), this.Name);
        }
Example #8
0
 /// <summary>
 /// 双击时间 去浏览页
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgvRole_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         try
         {
             string          id = dgvRole.Rows[e.RowIndex].Cells["role_id"].Value.ToString();
             UCRoleAddOrEdit uc = new UCRoleAddOrEdit();
             uc.uc           = this;
             uc.windowStatus = WindowStatus.View;
             uc.id           = id;
             base.addUserControl(uc, "角色管理-查看", "RoleView" + id, this.Tag.ToString(), this.Name);
         }
         catch (Exception ex)
         {
             GlobalStaticObj_Server.GlobalLogService.WriteLog("角色管理", ex);
             MessageBoxEx.ShowWarning("程序异常");
         }
     }
 }
Example #9
0
 /// <summary> 去编辑
 /// </summary> 
 void UCRoleManager_EditEvent(object sender, EventArgs e)
 {
     if (dgvRole.CurrentRow == null)
     {
         MessageBoxEx.Show("请选择编辑记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     try
     {
         if (dgvRole.CurrentRow.Cells["role_code"].Value.ToString() == "system")
             return;
         UCRoleAddOrEdit RoleEdit = new UCRoleAddOrEdit();
         RoleEdit.uc = this;
         RoleEdit.windowStatus = WindowStatus.Edit;
         RoleEdit.id = dgvRole.CurrentRow.Cells["role_id"].Value.ToString();  //参数 角色管理ID
         base.addUserControl(RoleEdit, "角色管理-编辑", "RoleEdit" + RoleEdit.id, this.Tag.ToString(), this.Name);
     }
     catch (Exception ex)
     {
         GlobalStaticObj_Server.GlobalLogService.WriteLog("角色管理", ex);
         MessageBoxEx.ShowWarning("程序异常");
     }
 }
Example #10
0
 /// <summary>
 /// 双击时间 去浏览页
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dgvRole_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         try
         {
             string id = dgvRole.Rows[e.RowIndex].Cells["role_id"].Value.ToString();
             UCRoleAddOrEdit uc = new UCRoleAddOrEdit();
             uc.uc = this;
             uc.windowStatus = WindowStatus.View;
             uc.id = id;
             base.addUserControl(uc, "角色管理-查看", "RoleView" + id, this.Tag.ToString(), this.Name);
         }
         catch (Exception ex)
         {
             GlobalStaticObj_Server.GlobalLogService.WriteLog("角色管理", ex);
             MessageBoxEx.ShowWarning("程序异常");
         }
     }
 }