예제 #1
0
        public SalaryCalcRow addc(string pc)
        {
            SalaryCalcRow ns = null;

            if (ValueNr > 0)
            {
                ns = Rows[Cursor];
            }
            else
            {
                ns = new SalaryCalcRow()
                {
                    Caption = pc, IsTitle = true
                };
                Rows.Add(ns);
            }
            Cursor++;
            return(ns);
        }
예제 #2
0
        public SalaryCalcRow addrt(string pc, decimal pv)
        {
            SalaryCalcRow ns = null;

            if (ValueNr > 0)
            {
                ns          = Rows[Cursor];
                ns[ValueNr] = pv;
            }
            else
            {
                ns = new SalaryCalcRow()
                {
                    Caption = pc, Value = pv, IsTotals = true
                };
                Rows.Add(ns);
            }
            Cursor++;
            return(ns);
        }