59 lines
2.5 KiB
C#
59 lines
2.5 KiB
C#
|
//using System;
|
|||
|
//using System.Collections.Generic;
|
|||
|
//using System.ComponentModel;
|
|||
|
//using System.Data;
|
|||
|
//using System.Drawing;
|
|||
|
//using System.Linq;
|
|||
|
//using System.Text;
|
|||
|
//using System.Windows.Forms;
|
|||
|
//using Payroll.BO;
|
|||
|
//using Ease.CoreV35.Model;
|
|||
|
|
|||
|
//namespace Payroll.Report
|
|||
|
//{
|
|||
|
|
|||
|
// public class rptRecievedSAPData
|
|||
|
// {
|
|||
|
// public rptRecievedSAPData() { }
|
|||
|
|
|||
|
// public void ShowReport(string batchID, bool isProcessedData)
|
|||
|
// {
|
|||
|
// fReportViewer form = new fReportViewer();
|
|||
|
// DataRow row = null;
|
|||
|
// Designation designation = null;
|
|||
|
// Department department = null;
|
|||
|
// Payroll.Report.PayrollDataSet.SAPIntegrationDataSet.dtRecievedSAPDataDataTable dtRecievedSAPDataDataTable = new PayrollDataSet.SAPIntegrationDataSet.dtRecievedSAPDataDataTable();
|
|||
|
// List<AuroraEmployeeCompositeType> auroraEmps = null;
|
|||
|
// ObjectsTemplate<Designation> oDesignations = Designation.Get(EnumStatus.Regardless);
|
|||
|
// ObjectsTemplate<Department> oDepartments = Department.Get();
|
|||
|
// string payrollTypeID = AuroraEmployeeCompositeType.GetEmployeeTypeAsPayrollType();
|
|||
|
|
|||
|
// if (isProcessedData)
|
|||
|
// auroraEmps = AuroraEmployeeCompositeType.GetByBatchID(batchID, payrollTypeID, true);
|
|||
|
// else
|
|||
|
// auroraEmps = AuroraEmployeeCompositeType.GetByBatchID(batchID, payrollTypeID, false);
|
|||
|
|
|||
|
// if (auroraEmps != null && auroraEmps.Count > 0)
|
|||
|
// {
|
|||
|
// foreach (AuroraEmployeeCompositeType item in auroraEmps)
|
|||
|
// {
|
|||
|
// designation = null;
|
|||
|
|
|||
|
// row = dtRecievedSAPDataDataTable.NewRow();
|
|||
|
// row["BatchNo"] = item.BatchID;
|
|||
|
// row["SuccessfactorID"] = item.SuccessfactorID;
|
|||
|
// row["Name"] = item.LastName + " " + item.FirstName + " " + item.MiddleName;
|
|||
|
// if (!string.IsNullOrEmpty(item.Designation))
|
|||
|
// designation = oDesignations.Find(x => x.Name.ToLower().Trim() == item.Designation.ToLower().Trim());
|
|||
|
// row["Designation"] = designation == null ? string.Empty : designation.Name;
|
|||
|
// department = oDepartments.Find(x => x.Code == item.Department);
|
|||
|
// row["Department"] = department == null ? string.Empty : department.Name;
|
|||
|
|
|||
|
// dtRecievedSAPDataDataTable.Rows.Add(row);
|
|||
|
// }
|
|||
|
// }
|
|||
|
// form.ShowRecievedSAPDataReport(dtRecievedSAPDataDataTable);
|
|||
|
// }
|
|||
|
// }
|
|||
|
//}
|