示例#1
0
 private void AssignRate(VismaEntry ve)
 {
     if (ve.LinkedRate.Type == "Kørsel")
     {
         J = ve.RateValue.ToString();
     }
 }
示例#2
0
        private string AB = ""; //Project Number

        //CONSTRUCTOR
        public Row(TimesheetEntry tse, VismaEntry ve, bool sickFlag)
        {
            if (sickFlag)
            {
                C = CommonValuesRepository.ColumnCSick;
            }
            else
            {
                C = CommonValuesRepository.ColumnCWork;
            }

            D = tse.EmployeeID.ToString();
            E = FormatDateTimeToDate(tse.Date);
            if (sickFlag) //If sick row, then F have same information as column E
            {
                F = E;
            }
            G = ve.VismaID.ToString();
            H = ve.Comment ?? "";

            // Find and assign the entry values to a column.
            AssignValue(ve);
            AssignRate(ve);

            if (ve.VismaID == 510) //Special case with vacation
            {
                R = (tse.Date.Year - 1).ToString();
            }
            if (!sickFlag) //If sick, then don't show project ID
            {
                AB = tse.ProjectID ?? "";
            }
        }
示例#3
0
 private void AssignValue(VismaEntry ve)
 {
     if (ve.LinkedRate.SaveAsMoney && ve.LinkedRate.Type != "Kørsel")
     {
         K = ve.Value.ToString();
     }
     else
     {
         I = ve.Value.ToString();
     }
 }