EchoTex_Payroll/HRM.BO/Common/ColumnDefinationException.cs

42 lines
1.1 KiB
C#
Raw Permalink Normal View History

2024-10-14 10:01:49 +06:00
using Ease.Core.Model;
using System;
using System.Collections.Generic;
using System.Data;
namespace HRM.BO
{
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
}
}