| | |
| | | return; |
| | | } |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 3); |
| | | UtilityHelper.ChangeEnableByControl(panel1.Controls, true); |
| | | UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, true); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | lbGuid.Text = ""; |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 4); |
| | | UtilityHelper.CleanValueByControl(panel1.Controls, true); |
| | | txt_password.Visible = lbPwd.Visible = true; |
| | | UtilityHelper.CleanValueByControl(this.layoutMx1.Controls, true); |
| | | //txt_password.Visible = lbPwd.Visible = true; |
| | | txt_account.Enabled = txt_password.Enabled = true; |
| | | } |
| | | |
| | |
| | | { |
| | | lbGuid.Text = _rtn.rtnData; |
| | | toolBarMenu1.isSetBtn = true; |
| | | UtilityHelper.ChangeEnableByControl(panel1.Controls, false); |
| | | UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, false); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | |
| | | { |
| | | gcMain.DataSource = dt; |
| | | gcMain.ForceInitialize(); |
| | | gridView1.BestFitColumns(); |
| | | gridView1.BestFitColumns(); Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gridView1); |
| | | } |
| | | else |
| | | UtilityHelper.SetDefaultTable(gcMain, gridView1); |
| | |
| | | { |
| | | var dy = _rtn.rtnData; |
| | | lbGuid.Text = strGuid; |
| | | UtilityHelper.SetValueByObj(panel1.Controls, dy, isEdit); |
| | | txt_account.Enabled = txt_password.Enabled = |
| | | txt_password.Visible = |
| | | lbPwd.Visible = tipPwd.Visible = false; |
| | | UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit); |
| | | //txt_account.Enabled = txt_password.Enabled = |
| | | // //txt_password.Visible = |
| | | // lbPwd.Visible = tipPwd.Visible = false; |
| | | } |
| | | else |
| | | { |
| | |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 角色 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void repositoryItemButtonEdit1_ButtonClick(object sender, |
| | | ButtonPressedEventArgs e) |
| | | { |
| | |
| | | frm.ShowDialog(); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 密码 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void repositoryItemButtonEdit2_ButtonClick(object sender, |
| | | ButtonPressedEventArgs e) |
| | | { |
| | |
| | | frm.ShowDialog(); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 个人权限 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void repositoryItemButtonEdit3_ButtonClick(object sender, ButtonPressedEventArgs e) |
| | | { |
| | | if (e.Button.Index == 0) |
| | | { |
| | | var rowhandle = gridView1.FocusedRowHandle; |
| | | var dr = gridView1.GetDataRow(rowhandle); |
| | | var userGuid = dr["guid"].ToString(); |
| | | var frm = new RoleSelectAction(userGuid); |
| | | frm.ShowDialog(); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 权限集合 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void repositoryItemButtonEdit4_ButtonClick(object sender, ButtonPressedEventArgs e) |
| | | { |
| | | if (e.Button.Index == 0) |
| | | { |
| | | var rowhandle = gridView1.FocusedRowHandle; |
| | | var dr = gridView1.GetDataRow(rowhandle); |
| | | var userGuid = dr["guid"].ToString(); |
| | | var frm = new ViewRole(userGuid); |
| | | frm.ShowDialog(); |
| | | } |
| | | } |
| | | } |
| | | } |