标签: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