using System; using System.Collections.Generic; using System.Linq; using System.Text; using Ease.Core; using Ease.Core.Model; using System.Data; namespace HRM.BO { #region LetterRequest public class LetterRequest : BasicBaseObject, IworkflowInterface { #region Constructor public LetterRequest() { } #endregion #region Properties public string Name { get; set; } public int EmployeeId { get; set; } public string Designation { get; set; } public string Department { get; set; } public EnumLetterRequestPurpose Purpose { get; set; } public string PurposeName { get; set; } public string AddressLine1 { get; set; } public enumLetterVisaType? VisaType { get; set; } public string? AddressLine2 { get; set; } public string Remarks { get; set; } public string RejectComment { get; set; } public DateTime? FromDate { get; set; } public DateTime? ToDate { get; set; } public int? OrganizationId { get; set; } public EnumLetterOrganizationType OrganizationType { get; set; } public string EmployeeName { get; set; } public int? CountryId { get; set; } public string Nationality { get; set; } public string PassportNo { get; set; } public string AddressLine3 { get; set; } public DateTime? LastWorkingDate { get; set; } public int? SignatoryId { get; set; } public string RecipeintDesignation { get; set; } public EnumLetterRequestApprovalNeeded ApprovalNeeded { get; set; } public EnumLetterRequestStatus LetterRequestStatus { get; set; } public enumwfStatus WfStatus { get; set; } public string CountryToVisit { get; set; } public string ConferenceName { get; set; } public string Organizer { get; set; } public string Hostingcity { get; set; } public string BankEmpDesignation { get; set; } public string Bank { get; set; } public string BankLocation { get; set; } public string Barcode { get; set; } public int ApproverId { get; set; } public DateTime? ApprovalDate { get; set; } public string StatusString { get; set; } public DateTime RequestDate { get; set; } public string SignatoryName { get; set; } public string SignatoryFileName { get; set; } public string SignatoryDeg { get; set; } public string SignatoryEmail { get; set; } public string SignatoryExt { get; set; } public string SignatoryPhone { get; set; } public bool? IsDisgitalSinature { get; set; } public bool? IsWFNeeded { get; set; } public string FromDateString { get; set; } public string ToDateString { get; set; } public string RequestDateString { get; set; } public string LastworkingDateString { get; set; } public string OrganizationTypeString { get; set; } public string Organization { get; set; } public double PFContribution { get; set; } public double PFLoanDeduction { get; set; } public EnumLetterRequestTrip TripType { get; set; } public double GrossSalary { get; set; } public string Currency { get; set; } public int SetupID { get { return 6; } } /// /// this property is used for work flow, which return leave entry id /// public int ObjectID { get { return this.ID; } } public string ObjectDescription { get { string str = ""; //if (true) //{ // str = this.Employee.Name + " has applied for monthly claim " + " on " + Convert.ToDateTime(this.ClaimDate).ToString("dd MMMM yyyy") + ". ";//"of "+ this.ClaimProcessDate.ToString("MMM yyyy") //} return str; } } #region Display Properties public string EmployeeNo { get; set; } #endregion #endregion } #endregion #region ILetterRequestService Service public interface ILetterRequestService { LetterRequest Get(int id); List Get(); List GetByEmployee(int id); DataSet GetLetterRequests(int id); DataSet GetLetterRequestsForApproval(); DataSet GetLetterRequestsForApprovalForSC(); DataSet GetLetterRequestsHistory(string fromDate, string toDate); DataSet GetLetterRequestsHistoryForSc(string fromDate, string toDate); DataSet GetHospital(); DataSet GetGrossItems(int employeeId, DateTime salaryMonth); DataSet GetDivisionOfEmployee(string employeeNo, string divisionOrDept); DataSet GetOrganization(); DataSet GetPendingLetterRequestsForApproval(); DataSet GetOrganizationByOrganizationType(EnumLetterOrganizationType type); int Save(LetterRequest item); void SaveLetters(List letterRequests); void Delete(int id); DataSet GetHospitalInsurance(); DataSet GetHospitalDirectPayment(); DataSet GetRequestedLetterRequestItems(DateTime? fromDate, DateTime? toDate, int empId); DataSet GetLetterRequestForApproval(int id); void ApproveLetterRequest(WFMovementTran approver); void RejectLetterRequest(WFMovementTran approver); } #endregion }