CEL_Payroll/Payroll.BO/Common/ColumnDefinationException.cs

47 lines
1.2 KiB
C#
Raw Normal View History

2024-09-17 14:30:13 +06:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ease.CoreV35.Model;
namespace Payroll.BO
{
[Serializable]
public class ColumnDefinationException
{
public ColumnDefinationException() {}
public void UploadException(int uploadId, DataUploadColumnDefinition odefination)
{
switch (uploadId)
{
case (int)42: //Appraisal Point
{
this.AppraisalPoint(odefination);
break;
}
default:
break;
}
}
#region Column Defination For Appraisal Point
private void AppraisalPoint(DataUploadColumnDefinition odefination)
{
odefination.SheetName = "EmpAppraisalPoint";
odefination.Add("Employee No", "String", "No");
odefination.Add("Rating", "String", "No");
odefination.ItemThreeDateText = "Appraisal Year :";
odefination.ItemThreeDateData = DateTime.Now;
odefination.FormText = "Upload Appraisal Point";
}
#endregion
}
}