public UsedResource(ReferenceObject usedResource_ro) { this.ReferenceObject = usedResource_ro; this.StartDate = usedResource_ro[param_UsResStartDate_Guid].GetDateTime(); this.EndDate = usedResource_ro[param_UsResEndDate_Guid].GetDateTime(); this.Resource = usedResource_ro.GetObject(link_Resource_Guid); this.LabourHours = usedResource_ro[param_NumHours_Guid].GetDouble(); }
/// <summary> /// 检测依赖bundle是否加载 /// </summary> private static void CheckWaitCall() { List <LoadAssetInfo> loadedAssetInfoList = GetLoadAssetStateList(LoadAssetStep.WaitCall, true); foreach (LoadAssetInfo loadAssetInfo in loadedAssetInfoList) { Object asset = ReferenceObject.GetObject(loadAssetInfo.assetName); loadAssetInfo.onLoadAsset(asset, loadAssetInfo.requestId); RecoveryLoadAssetInfo(loadAssetInfo); } }
public bool HasBibleORDItem() { ReferenceObject.ApplyChanges(); ReferenceObject.Reload(); if (ReferenceObject.GetObject(BORD_link_RegistryCancelariaCard_GUID) != null) { return(true); } else { return(false); } }
/// <summary> /// Все пользователи имеющие доступ (участники + доп.доступ) /// </summary> /// <returns></returns> public IEnumerable <ReferenceObject> GetUsersForAccess() { List <ReferenceObject> result = new List <ReferenceObject>(); result.AddRange(this.SignedTo); ReferenceObject performer = ReferenceObject.GetObject(RCC_link_Performer_GUID); if (performer != null) { result.Add(performer); } result.AddRange(ReferenceObject.GetObjects(RCC_link_ExtraAccess_GUID)); return(result.Distinct().ToList()); }
/// <summary> /// Получить связанный ресурс /// </summary> /// <param usedResource=""></param> /// <returns></returns> static public ReferenceObject GetResourcesLink(ReferenceObject usedResource) { return(usedResource.GetObject(link_Resource_Guid)); }