| | |
| | | { |
| | | if (string.IsNullOrEmpty(_userGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的用户!"); |
| | | MsgHelper.ShowError("请先选择你要操作的用户!"); |
| | | return; |
| | | } |
| | | |
| | |
| | | strJson = UtilityHelper.HttpPost("", "Role/SetUserRole", |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | MsgHelper.Warning("提示:" + _rtn.rtnData.outMsg); |
| | | if (_rtn.rtnCode > 0) |
| | | MsgHelper.ShowInformation("提示:" + _rtn.rtnData.outMsg); |
| | | else |
| | | MsgHelper.ShowError("提示:" + _rtn.rtnData.outMsg); |
| | | Close(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | } |
| | | /// <summary> |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | } |
| | | } |