public List <SalaryCalcRow> MakeReport1() { var rep = new Report_SalaryCalc1(); rep.Titles[0] = SR.GetPositionTitle(); rep.MakeReport1(SI); return(rep.Rows); }
public Report_SalaryCalc1 MakeReport1() { var rep = new Report_SalaryCalc1(); if (SRS.IsSingleRow()) { var lsc = LinkedSCI[0]; rep.MakeReport1(lsc.SI); rep.Titles[0] = lsc.SR.GetPositionTitle(); return(rep); } var ct = LinkedSCI.Length; if (ct > 4) { rep.Titles[0] = ""; rep.addc("Kopā amati"); rep.MakeReport1(TotalSI); for (int i = 0; i < ct; i++) { var lsc = LinkedSCI[i]; rep.addc(""); var c = lsc.SR.GetPositionTitle(); rep.addc(c); rep.MakeReport1(lsc.SI); } return(rep); } rep.DoFullList = true; rep.MakeReport1(TotalSI); rep.Titles[0] = "Kopā"; for (int i = 0; i < ct; i++) { var lsc = LinkedSCI[i]; rep.Cursor = 0; rep.ValueNr = i + 1; rep.Titles[i + 1] = lsc.SR.GetPositionTitle(); rep.MakeReport1(lsc.SI); } return(rep); }