public IsoTraitViewModel(SesiUjian sesi, Pengguna pengguna, IEnumerable <IsoRecommendation> list, IEnumerable <Soalan> questions) { m_list = list; m_questions = questions; this.Pengguna = pengguna; this.Sesi = sesi; }
public PpkpTraitViewModel(SesiUjian sesi, PpkpRecommendation[] list, SkorPpkp[] scores) { Sesi = sesi; m_recommendationList.Clear(); m_recommendationList.AddRange(list); this.ProfilPersonaliti = new ProfilPersonalitiDimensiUmumType(this); this.ProfilKepimpinan = new ProfilKepimpinanType(this); this.KesesuaianPenempatan = new KesesuaianPenempatanType(this); this.SkorKestabilanEmosi = new SkorKestabilanEmosiType(this, scores); }
public HlpTraitViewModel(SesiUjian sesi, Pengguna pengguna, SkorHlp[] scoreTables, HlpRecomendation[] recommendations) { m_sesi = sesi; m_pengguna = pengguna; m_scoreTables = scoreTables; m_recommendations = recommendations; this.Pengguna = pengguna; this.Sesi = sesi; if (pengguna.Jantina == "Lelaki") { this.AddDarkToLight(1, 6, 9, 12, 15, 1, KEBOLEHPERCAYAAN); this.AddDarkToLight(5, 40, 65, 85, 100, 5, BERFIKIRAN_RASIONAL); this.AddDarkToLight(5, 35, 55, 90, 100, 5, KETENANGAN); this.AddDarkToLight(5, 25, 50, 85, 100, 5, KECERIAAN); this.AddLightToDark(5, 25, 55, 80, 100, 5, LUAHAN_PERASAAN); this.AddLightToDark(5, 25, 55, 80, 100, 5, BERSIMPATI); this.AddLightToDark(5, 20, 40, 70, 100, 5, AKTIF_SOSIAL); this.AddLightToDark(5, 20, 40, 60, 100, 5, BERSIKAP_ASERTIF); this.AddDarkToLight(5, 30, 55, 80, 100, 5, BERTOLERANSI); this.AddLightToDark(5, 55, 70, 85, 100, 5, DAYA_TAHAN); } if (pengguna.Jantina == "Perempuan") { this.AddDarkToLight(1, 6, 9, 12, 15, 1, KEBOLEHPERCAYAAN); this.AddDarkToLight(5, 40, 65, 85, 100, 5, BERFIKIRAN_RASIONAL); this.AddDarkToLight(5, 30, 55, 90, 100, 5, KETENANGAN); this.AddDarkToLight(5, 25, 50, 85, 100, 5, KECERIAAN); this.AddLightToDark(5, 25, 55, 80, 100, 5, LUAHAN_PERASAAN); this.AddLightToDark(5, 25, 55, 80, 100, 5, BERSIMPATI); this.AddLightToDark(5, 20, 40, 70, 100, 5, AKTIF_SOSIAL); this.AddLightToDark(5, 20, 40, 60, 100, 5, BERSIKAP_ASERTIF); this.AddDarkToLight(5, 30, 55, 80, 100, 5, BERTOLERANSI); this.AddLightToDark(5, 50, 60, 70, 100, 5, DAYA_TAHAN); } }
public async Task <ActionResult> SaveSeksyen(SesiUjian sesi) { var store = ObjectBuilder.GetObject <IBinaryStore>(); var doc = new BinaryStore { Id = "sesi-ujian-" + User.Identity.Name, Extension = ".json", FileName = "", Content = Encoding.UTF8.GetBytes(sesi.ToJsonString(false)) }; var temp = await store.GetContentAsync(doc.Id); if (null != temp) { await store.DeleteAsync(doc.Id); } await store.AddAsync(doc); return(Json(true)); }
public UkbpTraitViewModel(SesiUjian sesiA, SesiUjian sesiB, SkorUkbp[] scores, UkbpRecommendation[] recommendations) { m_sesiA = sesiA; m_sesiB = sesiB; m_scores = scores; m_recommendations = recommendations; this.Sesi = sesiA; this.AddDarkToLight(1, 6, 9, 12, 15, 1, KEBOLEHPERCAYAAN); this.AddLightToDark(1, 8, 13, 17, 20, 1, NASIONALISME); this.AddDarkToLight(5, 30, 55, 90, 100, 5, KETENANGAN); this.AddDarkToLight(5, 25, 50, 85, 100, 5, KECERIAAN); this.AddLightToDark(5, 25, 55, 80, 100, 5, LUAHAN_PERASAAN); this.AddLightToDark(5, 25, 55, 80, 100, 5, BERSIMPATI); this.AddDarkToLight(5, 40, 65, 85, 100, 5, BERFIKIRAN_RASIONAL); this.AddLightToDark(5, 20, 40, 70, 100, 5, AKTIF_SOSIAL); this.AddLightToDark(5, 20, 40, 60, 100, 5, BERSIKAP_ASERTIF); this.AddDarkToLight(5, 30, 55, 80, 100, 5, BERTOLERANSI); this.AddLightToDark(5, 50, 60, 70, 100, 5, PENYIMPANGAN_TINGKAH_LAKU); }
public IpTraitViewModel(SesiUjian sesi, Pengguna pengguna) { this.Pengguna = pengguna; OneA = sesi.JawapanCollection.Where(s => s.Trait == "Skor 1").Count(a => a.JawapanPilihan.StartsWith("a)")); OneB = sesi.JawapanCollection.Where(s => s.Trait == "Skor 1").Count(a => a.JawapanPilihan.StartsWith("b)")); TwoA = sesi.JawapanCollection.Where(s => s.Trait == "Skor 2").Count(a => a.JawapanPilihan.StartsWith("a)")); TwoB = sesi.JawapanCollection.Where(s => s.Trait == "Skor 2").Count(a => a.JawapanPilihan.StartsWith("b)")); ThreeA = sesi.JawapanCollection.Where(s => s.Trait == "Skor 3").Count(a => a.JawapanPilihan.StartsWith("a)")); ThreeB = sesi.JawapanCollection.Where(s => s.Trait == "Skor 3").Count(a => a.JawapanPilihan.StartsWith("b)")); FourA = sesi.JawapanCollection.Where(s => s.Trait == "Skor 4").Count(a => a.JawapanPilihan.StartsWith("a)")); FourB = sesi.JawapanCollection.Where(s => s.Trait == "Skor 4").Count(a => a.JawapanPilihan.StartsWith("b)")); FiveA = sesi.JawapanCollection.Where(s => s.Trait == "Skor 5").Count(a => a.JawapanPilihan.StartsWith("a)")); FiveB = sesi.JawapanCollection.Where(s => s.Trait == "Skor 5").Count(a => a.JawapanPilihan.StartsWith("b)")); SixA = sesi.JawapanCollection.Where(s => s.Trait == "Skor 6").Count(a => a.JawapanPilihan.StartsWith("a)")); SixB = sesi.JawapanCollection.Where(s => s.Trait == "Skor 6").Count(a => a.JawapanPilihan.StartsWith("b)")); SevenA = sesi.JawapanCollection.Where(s => s.Trait == "Skor 7").Count(a => a.JawapanPilihan.StartsWith("a)")); SevenB = sesi.JawapanCollection.Where(s => s.Trait == "Skor 7").Count(a => a.JawapanPilihan.StartsWith("b)")); EightA = sesi.JawapanCollection.Where(s => s.Trait == "Skor 8").Count(a => a.JawapanPilihan.StartsWith("a)")); EightB = sesi.JawapanCollection.Where(s => s.Trait == "Skor 8").Count(a => a.JawapanPilihan.StartsWith("b)")); NineA = sesi.JawapanCollection.Where(s => s.Trait == "Skor 9").Count(a => a.JawapanPilihan.StartsWith("a)")); NineB = sesi.JawapanCollection.Where(s => s.Trait == "Skor 9").Count(a => a.JawapanPilihan.StartsWith("b)")); TenA = sesi.JawapanCollection.Where(s => s.Trait == "Skor 10").Count(a => a.JawapanPilihan.StartsWith("a)")); TenB = sesi.JawapanCollection.Where(s => s.Trait == "Skor 10").Count(a => a.JawapanPilihan.StartsWith("b)")); ElevenA = sesi.JawapanCollection.Where(s => s.Trait == "Skor 11").Count(a => a.JawapanPilihan.StartsWith("a)")); ElevenB = sesi.JawapanCollection.Where(s => s.Trait == "Skor 11").Count(a => a.JawapanPilihan.StartsWith("b)")); Sesi = sesi; }
public IbkTraitViewModel(SesiUjian sesi) { Sesi = sesi; }
public Kod2Type(SesiUjian sesi) { this.Sesi = sesi; }