public trxDetailPekerjaanAS_1MMulti PekerjaanByTypeOfRekanan(int IdTypeOfRekanan) { trxDetailPekerjaanAS_1MMulti myDataMulti = new trxDetailPekerjaanAS_1MMulti(); IEnumerable <fPekerjaanAS_1MByTypeOfRekanan_Result> myDataList = _repDetail.PekerjaanByTypeOfRekanan(IdTypeOfRekanan); myDataMulti.XLSDetailPekerjaanColls = myDataList; myDataMulti.SubRegionColls = _repSubRegion.Get(); myDataMulti.TypeOfSegmentasi5Colls = _repSegmen.Get(); return(myDataMulti); }
public trxDetailPekerjaanHeaderForm GetByGuidHeaderAS_1M(System.Guid GuidHeader) { trxDetailPekerjaanHeaderForm myDataForm = new trxDetailPekerjaanHeaderForm(); trxDetailPekerjaanHeader myData = _repDetailPek.GetByGuidHeader(GuidHeader); myDataForm.InjectFrom(myData); IEnumerable <trxDetailPekerjaanAS_1M> myDataList = _repDetailAS_1M.GetByGuidHeader(GuidHeader); myDataForm.PekerjaanAS_1MColls = myDataList; myDataForm.SubRegionColls = _repSubRegion.Get(); myDataForm.TypeOfSegmentasi5Colls = _repSegmen.Get(); return(myDataForm); }
public mstDataMaster GetMaster() { mstDataMaster myDataMaster = new mstDataMaster(); myDataMaster.TypeOfRekananColls = _repTypeOfRekanan.GetActive(); myDataMaster.TypeOfRegionColls = _repRegion.GetActive(); myDataMaster.SubRegionColls = _repSubRegion.Get(); myDataMaster.TypeOfSegmentasi3Colls = _repSegmen.SegmenForKAP(); myDataMaster.TypeOfSegmentasi5Colls = _repSegmen.GetActive(); myDataMaster.TypeTotalAsetColls = _repReff.GetByType("TotalAset"); myDataMaster.TriwulanColls = _repReff.GetByType("Triwulan"); myDataMaster.TingkatResikoColls = _repReff.GetByType("ResikoRBC"); myDataMaster.LbgPemeringkatColls = _repReff.GetByType("LembagaPemeringkat"); return myDataMaster; }
public IHttpActionResult Get(int id) { trxDetailPekerjaanBLGSingle mySingle = new trxDetailPekerjaanBLGSingle(); if (id > 0) { trxDetailPekerjaanBLG myData = _repository.Get(id); mySingle.InjectFrom(myData); } else { //mySingle.MaxYear = DateTime.Today.Year; //mySingle.GuidHeader = Guid.Empty; } mySingle.TypeOfSegmentasi3Colls = _repSegmen.SegmenForKAP(); mySingle.TypeOfSegmentasi5Colls = _repSegmen.Get(); mySingle.SubRegionColls = _repSubRegion.Get(); //return Ok (_repository.Get(id)); return(Ok(mySingle)); }
//public IEnumerable<trxDetailPekerjaanAS_1MTMP> GetByGuidHeader(System.Guid GuidHeader) public trxDetailPekerjaanHeaderForm GetByGuidHeader(System.Guid GuidHeader) { trxDetailPekerjaanHeaderForm myDataForm = new trxDetailPekerjaanHeaderForm(); List <trxDetailPekerjaanAS_1M> DetailPekByGuidHeaderNew = new List <trxDetailPekerjaanAS_1M>(); IEnumerable <trxDetailPekerjaanAS_1MTMP> DetailPekByGuidHeader; DetailPekByGuidHeader = _repDetailPek.GetByGuidHeader(GuidHeader); foreach (trxDetailPekerjaanAS_1MTMP item in DetailPekByGuidHeader) { trxDetailPekerjaanAS_1M newItem = new trxDetailPekerjaanAS_1M(); newItem.InjectFrom(item); DetailPekByGuidHeaderNew.Add(newItem); } myDataForm.PekerjaanAS_1MColls = DetailPekByGuidHeaderNew; myDataForm.SubRegionColls = _repSubRegion.Get(); myDataForm.TypeOfSegmentasi5Colls = _repSegmen.Get(); return(myDataForm); //IEnumerable<trxDetailPekerjaanAS_1MTMP> DetailPekByGuidHeader; //DetailPekByGuidHeader = _repDetailPek.GetByGuidHeader(GuidHeader); //return DetailPekByGuidHeader; }