Beispiel #1
0
 public void Add(RepRowPayListRow rr)
 {
     TPay     += rr.TPay;
     Pay      += rr.Pay;
     Advance  += rr.Advance;
     Withhold += rr.Withhold;
 }
Beispiel #2
0
        public RepRowPayList MakeReport(KlonsADataSet.PAYLISTSRow dr_list, KlonsADataSet.PAYLISTS_RRow[] drs_rows)
        {
            var rrList = new RepRowPayList();

            rrList.Year      = dr_list.YR;
            rrList.Month     = dr_list.MT;
            rrList.Nr        = dr_list.SNR;
            rrList.PayDate   = dr_list.DT;
            rrList.PayDateS  = LatText.FullDateStr(rrList.PayDate);
            rrList.WriteDate = DateTime.Today;
            rrList.Period    = string.Format("{0}. gada {1}",
                                             rrList.Year, LatText.MonthNames[rrList.Month - 1]);
            for (int i = 0; i < drs_rows.Length; i++)
            {
                var rrRow  = new RepRowPayListRow();
                var dr_row = drs_rows[i];
                rrRow.Nr   = i + 1;
                rrRow.idp  = dr_row.IDP;
                rrRow.idam = dr_row.IDAM;
                var ss_nm = DataTasks.GetPersonNameAndPK(rrRow.idp);
                rrRow.Name          = ss_nm[0] + " " + ss_nm[1];
                rrRow.PK            = ss_nm[2];
                rrRow.PositionTitle = DataTasks.GetPositionTitle(rrRow.idam);
                rrRow.NameAndPos    = rrRow.Name + ", " + rrRow.PositionTitle.Nz();
                rrRow.TPay          = dr_row.TPAY;
                rrRow.Pay           = dr_row.PAY;
                rrRow.Advance       = dr_row.ADVANCE;
                rrRow.Withhold      = dr_row.WITHHOLDINGS;

                rrList.Rows.Add(rrRow);
                rrList.TotalPay += rrRow.TPay;
            }
            rrList.TotalPayS = LatText.CikEiro(rrList.TotalPay);
            return(rrList);
        }
Beispiel #3
0
 public void CopyFrom(RepRowPayListRow rr)
 {
     Nr            = rr.Nr;
     idp           = rr.idp;
     idam          = rr.idam;
     PK            = rr.PK;
     Name          = rr.Name;
     PositionTitle = rr.PositionTitle;
     NameAndPos    = rr.NameAndPos;
     TPay          = rr.TPay;
     Pay           = rr.Pay;
     Advance       = rr.Advance;
     Withhold      = rr.Withhold;
 }