public ListResultDto <functionDto> GetMasterRecords(GetInputs input) { ListResultDto <functionDto> fun = null; if (input.tableIndex == 1)//Rolescategory { fun = GetRolescategory(input); } else if (input.tableIndex == 2)//RepairType { fun = GetRepairType(input); } else if (input.tableIndex == 3)//QuoteStatus { fun = GetQuoteStatus(input); } else if (input.tableIndex == 4)//JobStatus { fun = GetJobStatus(input); } else if (input.tableIndex == 10)//JobstatusMask { fun = GetJobstatusMask(input); } return(fun); }
public ListResultDto <TowOperatorDto> GetTowOperators(GetInputs input) { var towops = _towoperatorrepositry.GetAll() .WhereIf( !input.Filter.IsNullOrWhiteSpace(), u => u.Description.Contains(input.Filter)) .OrderBy(p => p.Id) .ToList(); var countries = _countries.GetAll().AsNoTracking().ToList(); var final = ( from x in towops join v in countries on x.CountryID equals v.Id select new TowOperatorDto { Id = x.Id, Description = x.Description, CreationTime = x.CreationTime, Country = v.Country, isActive = x.isActive }); return(new ListResultDto <TowOperatorDto>(ObjectMapper.Map <List <TowOperatorDto> >(final))); }
public double GetSignal() { IntPtr pAddressOfFunctionToCall = DllMethods.GetProcAddress(_pDll, "getInputs"); GetInputs getInputs = (GetInputs)Marshal.GetDelegateForFunctionPointer(pAddressOfFunctionToCall, typeof(GetInputs)); return(getInputs(_portNumber)); }
void Start() { path = FindObjectOfType <PathCanvas>(); pc = FindObjectOfType <PathCreator>(); characterAnim = GetComponent <Animator>(); getInputs = FindObjectOfType <GetInputs>(); cam = FindObjectOfType <CameraShake>(); inputVector = transform.localPosition; //StartCoroutine("Jump"); }
public ListResultDto <SignOnDto> GetSignOnPlans(GetInputs input) { var data = _signonplans.GetAll() .WhereIf(!input.Filter.IsNullOrWhiteSpace(), u => u.PlanName.ToLower().Contains(input.Filter.ToLower()) ) .OrderByDescending(p => p.LastModificationTime) .ToList(); return(new ListResultDto <SignOnDto>(ObjectMapper.Map <List <SignOnDto> >(data))); }
// Countries and Currency stuff public ListResultDto <functionCCDto> GetCountryOrCurrency(GetInputs input) { ListResultDto <functionCCDto> fun = null; if (input.tableIndex == 1)//Currencies { fun = GetCurrencies(input); } else if (input.tableIndex == 2)//Countries { fun = GetCountries(input); } return(fun); }
public ListResultDto <BankDto> GetBanks(GetInputs input) { var data = _bank.GetAll() .WhereIf(!input.Filter.IsNullOrWhiteSpace(), u => u.BankName.ToLower().Contains(input.Filter.ToLower()) ) .OrderByDescending(p => p.LastModificationTime) .ToList(); var a = (from f in data select new BankDto { CountryCode = _countries.FirstOrDefault(x => x.Id == f.CountryID).Code, Id = f.Id, BankName = f.BankName, CreationTime = f.CreationTime }).ToList(); return(new ListResultDto <BankDto>(ObjectMapper.Map <List <BankDto> >(a))); }
public ListResultDto <PlanDto> GetSignOnPlans(GetInputs input) { var data = _signonplans.GetAll() .WhereIf(!input.Filter.IsNullOrWhiteSpace(), u => u.PlanName.ToLower().Contains(input.Filter.ToLower()) ) .OrderByDescending(p => p.LastModificationTime) .ToList(); var a = (from f in data select new PlanDto { Id = f.Id, PlanName = f.PlanName, HeaderColor = f.HeaderColor, Members = f.Members, Price = f.Price, CreationTime = f.CreationTime }).ToList(); return(new ListResultDto <PlanDto>(ObjectMapper.Map <List <PlanDto> >(a))); }
private ListResultDto <functionCCDto> GetCurrencies(GetInputs input) { var data = _countryandcurrency.GetAll() .WhereIf(!input.Filter.IsNullOrWhiteSpace(), u => u.CountryAndCurrency.ToLower().Contains(input.Filter.ToLower()) || u.CurrencyCode.ToLower().Contains(input.Filter.ToLower()) ) .OrderByDescending(p => p.LastModificationTime) .ToList(); var a = (from f in data select new functionCCDto { Description = f.CountryAndCurrency, Id = f.Id, Code = f.CurrencyCode, CreationTime = f.CreationTime }).ToList(); return(new ListResultDto <functionCCDto>(ObjectMapper.Map <List <functionCCDto> >(a))); }
public void SetCharacter(int hero, PlayerFlyData playerFlyData, PositionUpdates positionUpdates) { if (id == Client.instance.myID) { Hero localHero = (Instantiate(Resources.Load("Characters/" + ((EnumData.Heroes)hero).ToString() + "/LocalPlayer-" + ((EnumData.Heroes)hero).ToString()), transform, false) as GameObject).GetComponentInChildren <Hero>(); Hero serverPredictedHero = (Instantiate(Resources.Load("Characters/" + ((EnumData.Heroes)hero).ToString() + "/ServerPredicted-" + ((EnumData.Heroes)hero).ToString()), transform, false) as GameObject).GetComponentInChildren <Hero>(); Hero remoteClientHero = (Instantiate(Resources.Load("Characters/" + ((EnumData.Heroes)hero).ToString() + "/RemoteClient-" + ((EnumData.Heroes)hero).ToString()), transform, false) as GameObject).GetComponentInChildren <Hero>(); GetComponent <InputController>().localPlayer = localHero; localPlayer = localHero; serverPlayer = serverPredictedHero; clientPlayer = remoteClientHero; localPlayer.SetActorPositionalState(positionUpdates); serverPlayer.SetActorPositionalState(positionUpdates); clientPlayer.SetActorPositionalState(positionUpdates); localPlayer.SetFlyingTickCount(playerFlyData); serverPlayer.SetFlyingTickCount(playerFlyData); clientPlayer.SetFlyingTickCount(playerFlyData); localPlayer.InitialiseClientActor(this, connectionId, id); serverPlayer.InitialiseClientActor(this, connectionId, id); clientPlayer.InitialiseClientActor(this, connectionId, id); getInputs = localPlayer.GetHeroInputs; CharacterSelectionScreen.instance.clientlocalActor = localPlayer; } else { Hero remoteOtherClient = (Instantiate(Resources.Load("Characters/" + ((EnumData.Heroes)hero).ToString() + "/RemoteClientOther-" + ((EnumData.Heroes)hero).ToString()), transform, false) as GameObject).GetComponentInChildren <Hero>(); clientPlayer = remoteOtherClient; clientPlayer.SetActorPositionalState(positionUpdates); clientPlayer.SetFlyingTickCount(playerFlyData); clientPlayer.InitialiseClientActor(this, connectionId, id); } }
ListResultDto <functionDto> GetRepairType(GetInputs input) { var data = _repairtypes.GetAll() .WhereIf( !input.Filter.IsNullOrWhiteSpace(), u => u.Description.ToLower().Contains(input.Filter.ToLower()) ) .OrderByDescending(p => p.LastModificationTime) .ToList(); var a = (from f in data select new functionDto { Description = f.Description, Id = f.Id, Enabled = f.Enabled, CreationTime = f.CreationTime, ShowSwitch = true }).ToList(); return(new ListResultDto <functionDto>(ObjectMapper.Map <List <functionDto> >(a))); }
void Start() { getInputs = FindObjectOfType <GetInputs>(); character = FindObjectOfType <Character>(); pi = FindObjectOfType <PathInstantiate>(); }
void Start() { //Obtengo instancias samurai = GetComponent <CharacterController>(); inputs = FindObjectOfType <GetInputs>(); }
void Start() { getInputs = FindObjectOfType <GetInputs>(); inputVector = transform.position; }