79 lines
3.0 KiB
C#
79 lines
3.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace HRM.BO
|
|
{
|
|
#region LFA Payment Undo (not tables)
|
|
|
|
/// <summary>One batch of the LFA Payment Undo page.</summary>
|
|
public class LFAPaymentBatch
|
|
{
|
|
public int LFAPaymentID { get; set; }
|
|
public string BatchNumber { get; set; }
|
|
public DateTime SalaryMonth { get; set; }
|
|
public DateTime LFAYear { get; set; }
|
|
public DateTime PaymentDate { get; set; }
|
|
public string Remarks { get; set; }
|
|
public enumwfStatus? WFStatus { get; set; }
|
|
public bool IsTaxUpdated { get; set; }
|
|
public int HeadCount { get; set; }
|
|
public double TotalAmount { get; set; }
|
|
public string CreatedByName { get; set; }
|
|
public DateTime CreationDate { get; set; }
|
|
public string ApprovedByName { get; set; }
|
|
public DateTime? ApprovedDate { get; set; }
|
|
|
|
// approval workflow (WFTYPE 33): the latest step of the batch, if it was ever submitted
|
|
public int? WFMovementTranID { get; set; }
|
|
public int? UniqueNumber { get; set; }
|
|
/// <summary>The batch is back with the person who submitted it (an approver reverted it to them).</summary>
|
|
public bool IsAtInitiator { get; set; }
|
|
/// <summary>Who has to act now, e.g. "Md. Karim [D1004]".</summary>
|
|
public string PendingWith { get; set; }
|
|
|
|
/// <summary>Approval state in words (Not Submitted, Pending Approval, Approved, ...).</summary>
|
|
public string StatusText { get; set; }
|
|
public bool CanUndo { get; set; }
|
|
/// <summary>Why the batch cannot be undone; empty when it can.</summary>
|
|
public string UndoBlockedReason { get; set; }
|
|
}
|
|
|
|
/// <summary>One employee of a batch, on the LFA Payment Undo page.</summary>
|
|
public class LFAPaymentBatchEmployee
|
|
{
|
|
public int LFAPaymentDetailID { get; set; }
|
|
public int EmployeeID { get; set; }
|
|
public string EmployeeNo { get; set; }
|
|
public string Name { get; set; }
|
|
public string DesignationName { get; set; }
|
|
public string DepartmentName { get; set; }
|
|
public DateTime JoiningDate { get; set; }
|
|
public double BasicSalary { get; set; }
|
|
public double Amount { get; set; }
|
|
}
|
|
|
|
/// <summary>What to undo: the whole batch (no DetailIDs) or only these employees of it.</summary>
|
|
public class LFAPaymentUndoRequest
|
|
{
|
|
public LFAPaymentUndoRequest()
|
|
{
|
|
DetailIDs = new List<int>();
|
|
}
|
|
|
|
public int LFAPaymentID { get; set; }
|
|
/// <summary>LFAPaymentDetailIDs of the employees to remove; empty = the whole batch.</summary>
|
|
public List<int> DetailIDs { get; set; }
|
|
}
|
|
|
|
public class LFAPaymentUndoResult
|
|
{
|
|
public bool Undone { get; set; }
|
|
public string Message { get; set; }
|
|
public int RemovedCount { get; set; }
|
|
/// <summary>True when the batch itself was deleted (whole batch, or its last employee).</summary>
|
|
public bool BatchRemoved { get; set; }
|
|
}
|
|
|
|
#endregion
|
|
}
|