public permohonan CreatePermohonan(layanan t) { if (t == null || t.Id <= 0) { throw new ArgumentNullException("layanan", "layanan IsNull atau Id Layanan 0"); } else if (Pemohon == null) { throw new ArgumentNullException("Pemohon", "Pemohon Tidak Ada"); } else { var itemPermohonan = new permohonan { IdLayanan = t.Id, IdPemohon = Pemohon.Id, Status = StatusPermohonan.Baru }; var result = UnitWorkPermohonan.InsertNewPermohonan(itemPermohonan, t); if (result != null) { this.Permohonan = itemPermohonan; return(itemPermohonan); } else { throw new ArgumentNullException("permohonan", "Permohonan Tidak Berhasil Dibuat"); } } }
public List <permohonan> GetPermohonans() { if (Pemohon == null) { throw new SystemException("Pemohon Tidak Ada"); } else { return(UnitWorkPermohonan.GetDaftarPermohonan(Pemohon)); } }
public List <kelengkapan> GetKelengkapan(permohonan item) { if (item == null) { throw new SystemException("Permohonan Tidak Ada"); } else { return(UnitWorkPermohonan.GetKelengkapan(item)); } }
public List <progress> ItemsTahapan() { if (Permohonan != null) { _tahapans = UnitWorkPermohonan.GetItemsTahapan(Permohonan); return(_tahapans); } else { throw new SystemException("Tentukan permohonan"); } }
public pemohon GetPemohon(int Id) { if (Id <= 0) { throw new SystemException("Id Tidak Boleh 0"); } else { pemohon result = UnitWorkPermohonan.GetPemohon(Id); if (result != null) { Pemohon = result; return(result); } else { throw new SystemException("Pemohon Tidak Ditemukan"); } } }
public tahapan GetNextTahapan() { return(UnitWorkPermohonan.GetNextTahapan(Permohonan)); }
public bool SetNextStep() { return(UnitWorkPermohonan.SetNextStep(Permohonan, Permohonan.NextTahapan)); }