123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using PMS.DBService.SysManager;
- using PMS.Interface.SysManager;
- using QWPlatform.IService;
- using QWPlatform.SystemLibrary.Utils;
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Linq;
- using System.Text;
- namespace PMS.BusinessService.SysManager
- {
- public class RoleAuthModelBLLService : IRoleAuthModel
- {
- RoleAuthModelDBService RoleAuthService = DataServiceBase.Instance<RoleAuthModelDBService>();
- /// <summary>
- /// 系统角色权限的保存
- /// </summary>
- /// <param name="ids"></param>
- /// <returns></returns>
- public string SaveXtjsQx(string ids)
- {
- //拆分字符串拿到角色id值
- string[] re = ids.Split(',');
- int icount = re.Length;
- //角色id赋值
- string jsId = re[icount-1];
- if (re.Length == 2)
- {
- return RoleAuthService.GetXtjsQxId("", jsId);
- }
- //去第一位空串和最后一位角色id值
- else {
- string ids1 = ids.Substring(1, ids.Length - 3);
- //新增系统角色权限
- return RoleAuthService.GetXtjsQxId(ids1, jsId);
-
- }
-
- }
- }
- }
|