码迷,mamicode.com
首页 > 其他好文 > 详细

权限范围

时间:2019-11-09 09:33:15      阅读:99      评论:0      收藏:0      [点我收藏+]

标签:ase   ext   res   userinfo   ons   return   this   erro   base   

    try {
      let res = await this.mgr.GetDrugWarehouseList(this.Userinfo.UserID, this.Userinfo.UnitID);
      this.GetDrugDictData(res)
    } catch (error) {
      UI.ShowException(error);
    }

  

  public async GetDrugWarehouseList(userId: string, unitId: string) {
    const data = await net.GetAuditWardList(
      userId,
      unitId,
      "药品库房范围",
      "OutReturnDrugMaterMgr",
      "退药库房范围"
    );
    return data;
  }

  

  public async GetAuditWardList(userId: string, unitId: string, rangeName: string, moduleName: string, rightName: string) {
    let data = await Ajax.Post(this.baseUrl + "SYSUserRight/GetRangeRight",
      "IncludeQuoChr=true" +
      "&UnitID=" + unitId +
      "&UserID=" + userId +
      "&RangeName=" + rangeName +
      "&ModuleName=" + moduleName +
      "&RightName=" + rightName);
    return data;
  }

  

 [RightReg(
        RIGHT_NAME = "退药库房范围",
        RIGHT_TYPE = 2, //1 布尔权限2 范围权限
        RANGE_NAME = "药品库房范围",
        UI_MODULE_NAME = "OutReturnDrugMaterMgr",//注意!!!需与模块名称保持一致
        DEFAULT_VALUE = "0",
        ADMIN_DEFVALUE = "0", //必填
        EXTEND_MARK = "",
        RIGHT_DESCRIBE = "退药库房范围"
        )]

  

权限范围

标签:ase   ext   res   userinfo   ons   return   this   erro   base   

原文地址:https://www.cnblogs.com/LFxanla/p/11824173.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!