权限范围

    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 = "退药库房范围"
        )]

  

posted @ 2019-11-09 08:53  龙旋风  阅读(441)  评论(3编辑  收藏  举报