public async Task <ActionResult> PrintPpkpKhusus(string id) { var context = new SphDataContext(); var sesi = await context.LoadOneAsync <SesiUjian>(x => x.Id == id); var user = await context.LoadOneAsync <Pengguna>(x => x.MyKad == sesi.MyKad); var ujianTask = context.LoadOneAsync <Ujian>(x => x.Id == sesi.NamaUjian); var permohonanTask = context.LoadOneAsync <Permohonan>(x => x.PermohonanNo == sesi.NamaProgram); var recommendationTask = context.LoadAsync(context.CreateQueryable <PpkpRecommendation>()); var skorTask = context.LoadAsync(context.CreateQueryable <SkorPpkp>(), 1, 150, true); await Task.WhenAll(ujianTask, permohonanTask, recommendationTask, skorTask); var rlo = await recommendationTask; var skorLo = await skorTask; if (null == sesi) { return(HttpNotFound("Cannot find SesiUjian " + id)); } if (null == user) { return(HttpNotFound("Cannot find user with MyKad " + sesi.MyKad)); } var vm = new PpkpTraitViewModel(sesi, rlo.ItemCollection.ToArray(), skorLo.ItemCollection.ToArray()) { Permohonan = await permohonanTask, Ujian = await ujianTask, Pengguna = user }; return(View("ppkp.khusus", vm)); }
public KesesuaianPenempatanType(PpkpTraitViewModel vm) { m_trets = new List <string> { vm.Emosi.Tret, vm.GayaBekerja.Tret, vm.Pemikiran.Tret, vm.Interpersonal.Tret, vm.Peribadi.Tret }; }
public ProfilKepimpinanType(PpkpTraitViewModel vm) { m_vm = vm; }
public SkorKestabilanEmosiType(PpkpTraitViewModel vm, SkorPpkp[] list) { m_vm = vm; m_list.Clear(); list.ForEach(x => m_list.Add(x)); }
public ProfilPersonalitiDimensiUmumType(PpkpTraitViewModel vm) { m_vm = vm; }