using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using PayRollDAL.DTO.Advance; using PayRollDAL.DTO.DailyAttendance; using PayRollDAL.DTO.Employee; namespace PayRollDAL.DTO.PayProcess { public class PayProcessReport { private int payprocessid; //private EmployeePayProcessReport employee; //private PayPeriodReport payperiod; //private OrganizationUnitReport ou; //private PayConfigurationReport payconfiguration; #region Revison FIELDS private DateTime effectivefrom = Convert.ToDateTime("1800-01-01 00:00:00.000"); private DateTime effectiveto = Convert.ToDateTime("1800-01-01 00:00:00.000"); #endregion #region ATTENDANCE FIELDS (EITHER AS FIELDS OR AS LINKED FIELDS) private double presentdays; private double workeddays; private double totalworkeddays; private double weeklyoffdays; private double totalweeklyoffdays; private double holidays; private double totalholidays; private double leavedays; private double totalleavedays; private double absentdays; private double totalabsentdays; private double paiddays; private double workedhours; private double totalworkedhours; private double leavehours; private double paidhours; private double officialpermissionhours; private double personalpermissionhours; private double earlyin; private double earlyout; private double latein; private double lateout; private double shortagehours; private double extrahours; private double gracehours; private double totalgracehours; private double actualhours; private double othours; private double otfactorhours; private double compensatorywork; private double totalcompensatorywork; private double compensatoryleave; private double totalcompensatoryleave; private double pihours; #endregion #region PAYMENT FIELDS private double paymentbatch; private DateTime paidon; private int paidby; private byte payslipstatus; private string reason; private string remarks; private byte paymode; #endregion #region CONTRACT FIELDS private int contractdetailid; //private int wageruleid; private int ruleid; #endregion //#region WAGE FIELDS //private GcmReport worktype; //private GcmReport worksubtype; //#endregion #region ESIPF FIELDS private double pfemployerpercentage; private double pfemployeractualpercentage; private double fpfemployerpercentage; private double fpfemployeractualpercentage; private double dlipercentage; private double pfemployeepercentage; private double pfemployeeactualpercentage; private double fpfemployeeactualpercentage; private double esiemployerpercentage; private double esiemployeepercentage; private string pfnumber = ""; //16303 added pfnumber and esinumber private string esinumber = ""; private byte ispfapplicable; private byte isesiapplicable; public virtual string PfNumber { get { return pfnumber; } set { pfnumber = value; } } public virtual string EsiNumber { get { return esinumber; } set { esinumber = value; } } //public virtual byte IsPFApplicable //{ // get { return ispfapplicable; } // set { ispfapplicable = value; } //} public virtual byte IsPFApplicable { get { return ispfapplicable; } //IsPFApplicable set { ispfapplicable = value; IsPFApplicableName = ((Gb4EnumDTO.IsPFApplicableName)IsPFApplicable).ToString(); } //IsPFApplicable } private string ispfapplicablename; public virtual string IsPFApplicableName { get { return ispfapplicablename; } //Sex set { ispfapplicablename = value; } //Sex } //public virtual byte IsESIApplicable //{ // get { return isesiapplicable; } // set { isesiapplicable = value; } //} public virtual byte IsESIApplicable { get { return isesiapplicable; } //IsESIApplicable set { isesiapplicable = value; IsESIApplicableName = ((Gb4EnumDTO.IsESIApplicableName)IsESIApplicable).ToString(); } //IsESIApplicable } private string isesiapplicablename; public virtual string IsESIApplicableName { get { return isesiapplicablename; } //Sex set { isesiapplicablename = value; } //Sex } #endregion #region TRAVEL FIELDS private double kmeters; private double employeekmcharges; private double employerkmcharges; private double kmcharges; #endregion #region FINAL SALARY FIGURES private double totalearnings; private double totaldeductions; private double netsalary; #endregion #region ACCOUNT DETAILS // private AccountReport employeeaccount; #endregion #region PERIOD FIELDS private double totaldays; private double workingdays; #endregion private string netsalaryinwords; private string addontype; private int tempbankid; private int tempemployeeid; private string bankname; private string employeecode; private string paymentnumber; // private FullAndFinalRegisterDTO fullandfinalregisterdto; //private List addsettlementdtos; //private List subsettlementdtos; private SettlementRelatedOtherDetailsDTO settlementrelatedotherdetailsdto; private int employeereportsortorder; private string periodfromcode; private string paydatestring; public string PeriodFromCode { get { return periodfromcode; } //name set { periodfromcode = value; } //name } public string PayDateString { get { return paydatestring; } //name set { paydatestring = value; } //name } public virtual int PayProcessId { get { return payprocessid; } set { payprocessid = value; } } //public virtual EmployeePayProcessReport Employee //{ // get { return employee; } // set { employee = value; } //} //public virtual PayPeriodReport PayPeriod //{ // get { return payperiod; } // set { payperiod = value; } //} //public virtual OrganizationUnitReport OU //{ // get { return ou; } // set { ou = value; } //} //public virtual PayConfigurationReport PayConfiguration //{ // get { return payconfiguration; } // set { payconfiguration = value; } //} #region PERIOD FIELDS public virtual double TotalDays { get { return totaldays; } set { totaldays = value; } } public virtual double WorkingDays { get { return workingdays; } set { workingdays = value; } } #endregion #region ATTENDANCE FIELDS (EITHER AS FIELDS OR AS LINKED FIELDS) public virtual double PresentDays { get { return presentdays; } set { presentdays = value; } } public virtual double WorkedDays { get { return workeddays; } set { workeddays = value; } } public virtual double TotalworkedDays { get { return totalworkeddays; } set { totalworkeddays = value; } } public virtual double WeeklyoffDays { get { return weeklyoffdays; } set { weeklyoffdays = value; } } public virtual double TotalweeklyoffDays { get { return weeklyoffdays; } set { totalweeklyoffdays = value; } } public virtual double Holidays { get { return holidays; } set { holidays = value; } } public virtual double TotalHolidays { get { return totalholidays; } set { totalholidays = value; } } public virtual double LeaveDays { get { return leavedays; } set { leavedays = value; } } public virtual double TotalLeaveDays { get { return totalleavedays; } set { totalleavedays = value; } } public virtual double AbsentDays { get { return absentdays; } set { absentdays = value; } } public virtual double TotalAbsentDays { get { return totalabsentdays; } set { totalabsentdays = value; } } public virtual double PaidDays { get { return paiddays; } set { paiddays = value; } } public virtual double WorkedHours { get { return workedhours; } set { workedhours = value; } } public virtual double PiHours { get { return pihours; } set { pihours = value; } } public virtual double TotalWorkedHours { get { return totalworkedhours; } set { totalworkedhours = value; } } public virtual double LeaveHours { get { return leavehours; } set { leavehours = value; } } public virtual double PaidHours { get { return paidhours; } set { paidhours = value; } } public virtual double OfficialPermissionHours { get { return officialpermissionhours; } set { officialpermissionhours = value; } } public virtual double PersonalPermissionHours { get { return personalpermissionhours; } set { personalpermissionhours = value; } } public virtual double EarlyIn { get { return earlyin; } set { earlyin = value; } } public virtual double EarlyOut { get { return earlyout; } set { earlyout = value; } } public virtual double LateIn { get { return latein; } set { latein = value; } } public virtual double LateOut { get { return lateout; } set { lateout = value; } } public virtual double ShortageHours { get { return shortagehours; } set { shortagehours = value; } } public virtual double ExtraHours { get { return extrahours; } set { extrahours = value; } } public virtual double GraceHours { get { return gracehours; } set { gracehours = value; } } public virtual double TotalGraceHours { get { return totalgracehours; } set { totalgracehours = value; } } public virtual double ActualHours { get { return actualhours; } set { actualhours = value; } } public virtual double OtHours { get { return othours; } set { othours = value; } } public virtual double OtfactorHours { get { return otfactorhours; } set { otfactorhours = value; } } public virtual double CompensatoryWork { get { return compensatorywork; } set { compensatorywork = value; } } public virtual double TotalCompensatoryWork { get { return totalcompensatorywork; } set { totalcompensatorywork = value; } } public virtual double CompensatoryLeave { get { return compensatoryleave; } set { compensatoryleave = value; } } public virtual double TotalCompensatoryLeave { get { return totalcompensatoryleave; } set { totalcompensatoryleave = value; } } #endregion #region PAYMENT FIELDS public virtual double PaymentBatch { get { return paymentbatch; } set { paymentbatch = value; } } public virtual DateTime PaidOn { get { return paidon; } set { paidon = value; } } public virtual int PaidBy { get { return paidby; } set { paidby = value; } } private string payslipstatusvalue; public virtual string PaySlipStatusValue { get { return payslipstatusvalue; } set { payslipstatusvalue = value; } } public virtual byte PaySlipStatus { get { return payslipstatus; } //PayMode set { payslipstatus = value; PaySlipStatusValue = ((Gb4EnumDTO.PaySlipStatusValue)PaySlipStatus).ToString(); } //PayMode } public virtual string Reason { get { return reason; } set { reason = value; } } public virtual string Remarks { get { return remarks; } set { remarks = value; } } //public virtual byte PayMode //{ // get { return paymode; } // set { paymode = value; } //} public virtual byte PayMode { get { return paymode; } //PayMode set { paymode = value; PayModeValue = ((Gb4EnumDTO.PayMode)paymode).ToString(); } //PayMode } private string paymodevalue; public virtual string PayModeValue { get { return paymodevalue; } //PayModeValue set { paymodevalue = value; } //PayModeValue } #endregion #region CONTRACT FIELDS public virtual int ContractdetailId { get { return contractdetailid; } set { contractdetailid = value; } } //public virtual int WageRuleId //{ // get { return wageruleid; } // set { wageruleid = value; } //} public virtual int RuleId { get { return ruleid; } set { ruleid = value; } } #endregion //#region WAGE FIELDS //public virtual GcmReport WorkType //{ // get { return worktype; } // set { worktype = value; } //} //public virtual GcmReport WorkSubType //{ // get { return worksubtype; } // set { worksubtype = value; } //} //#endregion #region ESIPF FIELDS public virtual double PFEmployerPercentage { get { return pfemployerpercentage; } set { pfemployerpercentage = value; } } public virtual double PFActualEmployerPercentage { get { return pfemployeractualpercentage; } set { pfemployeractualpercentage = value; } } public virtual double FPFemployerPercentage { get { return fpfemployerpercentage; } set { fpfemployerpercentage = value; } } public virtual double FPFEmployeractualPercentage { get { return fpfemployeractualpercentage; } set { fpfemployeractualpercentage = value; } } public virtual double DLIPercentage { get { return dlipercentage; } set { dlipercentage = value; } } public virtual double PFEmployeePercentage { get { return pfemployeepercentage; } set { pfemployeepercentage = value; } } public virtual double PFEmployeeActualPercentage { get { return pfemployeeactualpercentage; } set { pfemployeeactualpercentage = value; } } public virtual double FPFEmployeeActualPercentage { get { return fpfemployeeactualpercentage; } set { fpfemployeeactualpercentage = value; } } public virtual double ESIEmployerPercentage { get { return esiemployerpercentage; } set { esiemployerpercentage = value; } } public virtual double EsiEmployeepercentage { get { return esiemployeepercentage; } set { esiemployeepercentage = value; } } #endregion #region TRAVEL FIELDS public virtual double Kmeters { get { return kmeters; } set { kmeters = value; } } public virtual double EmployeeKmCharges { get { return employeekmcharges; } set { employeekmcharges = value; } } public virtual double EmployerKmCharges { get { return employerkmcharges; } set { employerkmcharges = value; } } public virtual double Kmcharges { get { return kmcharges; } set { kmcharges = value; } } #endregion #region FINAL SALARY FIGURES public virtual double TotalEarnings { get { return totalearnings; } set { totalearnings = value; } } public virtual double TotalDeductions { get { return totaldeductions; } set { totaldeductions = value; } } public virtual double NetSalary { get { return netsalary; } set { netsalary = value; NetSalaryInWords = ChangeToWords(netsalary, "INR"); } } #endregion #region ACCOUNT DETAILS //public virtual AccountReport EmployeeAccount //{ // get { return employeeaccount; } // set { employeeaccount = value; } //} #endregion #region Revison FIELDS public virtual DateTime EffectiveFrom { get { return effectivefrom; } set { effectivefrom = value; } } public virtual DateTime EffectiveTo { get { return effectiveto; } set { effectiveto = value; } } public virtual string NetSalaryInWords { get { return netsalaryinwords; } set { netsalaryinwords = value; } } public virtual string AddonType { get { return addontype; } set { addontype = value; } } public virtual int TempBankId { get { return tempbankid; } set { tempbankid = value; } } public virtual int TempEmployeeId { get { return tempemployeeid; } set { tempemployeeid = value; } } public virtual string BankName { get { return bankname; } set { bankname = value; } } public virtual string EmployeeCode { get { return employeecode; } set { employeecode = value; } } #endregion //Added by Vikash Not be done in Mapping private double otdays; private double billdays; public double OTDays { get { return otdays; } set { otdays = value; } } public double BillDays { get { return billdays; } set { billdays = value; } } private int slno; public virtual int SlNo { get { return slno; } set { slno = value; } } private object employeewithaddon; public virtual object EmployeeWithAddon { get { return employeewithaddon; } set { employeewithaddon = value; } } private string weightedaverage; public virtual string WeightedAverage { get { return weightedaverage; } set { weightedaverage = value; } } private int monthdays; public virtual int MonthDays { get { return monthdays; } set { monthdays = value; } } public virtual string PaymentNumber { get { return paymentnumber; } set { paymentnumber = value; } } //public virtual FullAndFinalRegisterDTO FullAndFinalRegisterDTO //{ // get { return fullandfinalregisterdto; } // set { fullandfinalregisterdto = value; } //} private List advanceduringpayreportdtos; public virtual List AdvanceDuringPayReportDTOs { get { return advanceduringpayreportdtos; } set { advanceduringpayreportdtos = value; } } private List employeetdscalculationreportdtos; public virtual List EmployeeTDSCalculationReportDTOs { get { return employeetdscalculationreportdtos; } set { employeetdscalculationreportdtos = value; } } public SettlementRelatedOtherDetailsDTO SettlementRelatedOtherDetailsDTO { get { return settlementrelatedotherdetailsdto; } set { settlementrelatedotherdetailsdto = value; } } #region New Field Added by Vikash on 21'st Aug 2019 private int mmdetailid; private string documentnumber; private DateTime documentdate; private int partyid; private string partycode; private string partyname; private int partybranchid; private string partybranchcode; private string partybranchname; private int wageruleid; //private string wagerulecode; //private string wagerulename; private int serviceruleid; private string servicerulecode; private string servicerulename; private int worksubtypeid; private string worksubtypecode; private string worksubtypename; private string wageuom; private int wagecurrencyid; private string wagecurrencycode; private string wagecurrencyname; private int wagepaymentcurrencyid; private string wagepaymentcurrencycode; private string wagepaymentcurrencyname; private string wagepaymentcurrencysymbol; private double currencyconversion; private double wagerate; private int pworktypeid; private string pworktypecode; private string pworktypename; public int MMdetailId { get { return mmdetailid; } set { mmdetailid = value; } } public string DocumentNumber { get { return documentnumber; } set { documentnumber = value; } } public DateTime DocumentDate { get { return documentdate; } set { documentdate = value; } } public int PartyId { get { return partyid; } set { partyid = value; } } public string PartyCode { get { return partycode; } set { partycode = value; } } public string PartyName { get { return partyname; } set { partyname = value; } } public int PartyBranchId { get { return partybranchid; } set { partybranchid = value; } } public string PartyBranchCode { get { return partybranchcode; } set { partybranchcode = value; } } public string PartyBranchName { get { return partybranchname; } set { partybranchname = value; } } public int WageRuleId { get { return wageruleid; } set { wageruleid = value; } } //public string WageRuleCode //{ // get { return wagerulecode; } // set { wagerulecode = value; } //} //public string WageRuleName //{ // get { return wagerulename; } // set { wagerulename = value; } //} public int ServiceRuleId { get { return serviceruleid; } set { serviceruleid = value; } } public string ServiceRuleCode { get { return servicerulecode; } set { servicerulecode = value; } } public string ServiceRuleName { get { return servicerulename; } set { servicerulename = value; } } public int WorkSubTypeId { get { return worksubtypeid; } set { worksubtypeid = value; } } public string WorkSubTypeCode { get { return worksubtypecode; } set { worksubtypecode = value; } } public string WorkSubTypeName { get { return worksubtypename; } set { worksubtypename = value; } } public string WageUOM { get { return wageuom; } set { wageuom = value; } } public int WageCurrencyId { get { return wagecurrencyid; } set { wagecurrencyid = value; } } public string WageCurrencyCode { get { return wagecurrencycode; } set { wagecurrencycode = value; } } public string WageCurrencyName { get { return wagecurrencyname; } set { wagecurrencyname = value; } } public int WagePaymentCurrencyId { get { return wagepaymentcurrencyid; } set { wagepaymentcurrencyid = value; } } public string WagePaymentCurrencyCode { get { return wagepaymentcurrencycode; } set { wagepaymentcurrencycode = value; } } public string WagePaymentCurrencyName { get { return wagepaymentcurrencyname; } set { wagepaymentcurrencyname = value; } } public string WagePaymentCurrencySymbol { get { return wagepaymentcurrencysymbol; } set { wagepaymentcurrencysymbol = value; } } public double CurrencyConversion { get { return currencyconversion; } set { currencyconversion = value; } } public double WageRate { get { return wagerate; } set { wagerate = value; } } public int PWorkTypeId { get { return pworktypeid; } set { pworktypeid = value; } } public string PWorkTypeCode { get { return pworktypecode; } set { pworktypecode = value; } } public string PWorkTypeName { get { return pworktypename; } set { pworktypename = value; } } #endregion private DateTime payprocessfromdate; private DateTime payprocesstodate; private int noofdaysworked; public DateTime PayProcessFromDate { get { return payprocessfromdate; } set { payprocessfromdate = value; } } public DateTime PayProcessToDate { get { return payprocesstodate; } set { payprocesstodate = value; } } public int NoofDaysWorked { get { return noofdaysworked; } set { noofdaysworked = value; } } #region Ptformula private string ptformulavalue; public string PTFormulaValue { get { return ptformulavalue; } set { ptformulavalue = value; } } private string ptcategoryformulavalue; public string PTCategoryFormulaValue { get { return ptcategoryformulavalue; } set { ptcategoryformulavalue = value; } } private string ptgrossformulavalue; public string PTGrossFormulaValue { get { return ptgrossformulavalue; } set { ptgrossformulavalue = value; } } #endregion private string departmentname; public string DepartmentName { get { return departmentname; } set { departmentname = value; } } private int departmentid; public int DepartmentId { get { return departmentid; } set { departmentid = value; } } #region BankDetails private string ibannumber; private int employeebankbranchid; private string employeebankname; private string employeebankbranchname; private string employeebankifsccode; private string employeebankswiftcode; private string bbannumber; private string employeebankremarks; private string bankmobile; private string bankphone; private string bankmail; private string empbankname; private string empbankbranchname; public string IBANNUMBER { get { return ibannumber; } set { ibannumber = value; } } public int EmployeeBankBranchId { get { return employeebankbranchid; } set { employeebankbranchid = value; } } public string EmployeeBankName { get { return employeebankname; } set { employeebankname = value; } } public string EmployeeBankBranchName { get { return employeebankbranchname; } set { employeebankbranchname = value; } } public string EmployeeBankIFSCCode { get { return employeebankifsccode; } set { employeebankifsccode = value; } } public string EmployeeBankSwiftCode { get { return employeebankswiftcode; } set { employeebankswiftcode = value; } } public string BBANNumber { get { return bbannumber; } set { bbannumber = value; } } public string EmployeeBankRemarks { get { return employeebankremarks; } set { employeebankremarks = value; } } public string BankMobile { get { return bankmobile; } set { bankmobile = value; } } public string BankPhone { get { return bankphone; } set { bankphone = value; } } public string BankMail { get { return bankmail; } set { bankmail = value; } } public virtual int EmployeeReportSortOrder { get { return employeereportsortorder; } set { employeereportsortorder = value; } } private string primaryemailid; public string PrimaryEmailId { get { return primaryemailid; } set { primaryemailid = value; } } public string EmpBankName { get { return empbankname; } set { empbankname = value; } } public string EmpBankBranchName { get { return empbankbranchname; } set { empbankbranchname = value; } } #endregion private string percountryname; public string PerCountryName { get { return percountryname; } //Code set { percountryname = value; } //Code } private string totalservice; private string totalyears; private string totalmonths; private string totalservicedays; public string TotalService { get { return totalservice; } set { totalservice = value; } } public string TotalYears { get { return totalyears; } set { totalyears = value; } } public string TotalMonths { get { return totalmonths; } set { totalmonths = value; } } public string TotalServiceDays { get { return totalservicedays; } set { totalservicedays = value; } } private double employeetotal; private double malecount; private double femalecount; public double EmployeeTotal { get { return employeetotal; } set { employeetotal = value; } } public double MaleCount { get { return malecount; } set { malecount = value; } } public double FemaleCount { get { return femalecount; } set { femalecount = value; } } private double netpaymentamount; private string? rvlnetpaymentamountinwords; public double NetPaymentAmount { get { return netpaymentamount; } set { NetPaymentAmount = value; NetSalaryInWords = ChangeToWords(NetPaymentAmount, "INR"); } } public string? RVLNetPaymentAmountInWords { get { return rvlnetpaymentamountinwords; } set { rvlnetpaymentamountinwords = value; } } private string debitaccountno; private string paymenttype; private int accounttype; private string paymentdetails1; public string DebitAccountNo { get { return debitaccountno; } set { debitaccountno = value; } } public string PaymentDetails1 { get { return paymentdetails1; } set { paymentdetails1 = value; } } public string PaymentType { get { return paymenttype; } set { paymenttype = value; } } public int AccountType { get { return accounttype; } set { accounttype = value; } } // private double employeelinewisenetsalary; private string consolidatednetsalaryinwords; //public virtual double EmployeeLineWiseNetSalary //{ // get { return employeelinewisenetsalary; } // set { employeelinewisenetsalary = value; } //} public virtual string ConsolidatedNetSalaryInWords { get { return consolidatednetsalaryinwords; } set { consolidatednetsalaryinwords = value; } } private string organizationname; public virtual string OrganizationName { get { return organizationname; } set { organizationname = value; } } private string sdateofresignation; private string cashrollremarks; public string SDateOfResignation { get { return sdateofresignation; } //Code set { sdateofresignation = value; } //Code } public string CashRollRemarks { get { return cashrollremarks; } //Code set { cashrollremarks = value; } //Code } private byte isinternal; public virtual byte IsInternal { get { return isinternal; } //totalleavehours set { isinternal = value; } //totalleavehours } private string payrevisionnumber; private DateTime payrevisiondate; private string payoucurrencycode; private string payoucurrencyname; public string PayOUCurrencyCode { get { return payoucurrencycode; } //Code set { payoucurrencycode = value; } //Code } public string PayOUCurrencyName { get { return payoucurrencyname; } //Code set { payoucurrencyname = value; } //Code } public string PayRevisionNumber { get { return payrevisionnumber; } //Code set { payrevisionnumber = value; } //Code } public DateTime PayRevisionDate { get { return payrevisiondate; } //Code set { payrevisiondate = value; } //Code } private DateTime payeffectivefrom; private DateTime payeffectiveto; public DateTime PayEffectiveFrom { get { return payeffectivefrom; } set { payeffectivefrom = value; } } public DateTime PayEffectiveTo { get { return payeffectiveto; } set { payeffectiveto = value; } } private string payslipvouchernumber; private DateTime payslipvoucherdate; private decimal payproductionvalue; private int payslipvoucherid; public int PaySlipVoucherId { get { return payslipvoucherid; } //Code set { payslipvoucherid = value; } //Code } public string PaySlipVoucherNumber { get { return payslipvouchernumber; } //Code set { payslipvouchernumber = value; } //Code } public DateTime PaySlipVoucherDate { get { return payslipvoucherdate; } //Code set { payslipvoucherdate = value; } //Code } public decimal PayProductionValue { get { return payproductionvalue; } //Code set { payproductionvalue = value; } //Code } private int ouid; public int OUId { get { return ouid; } set { ouid = value; } } private int locationaddressid; private string locationaddressline1; private string locationaddressline2; private string locationaddressline3; private string locationaddressline4; private string locationaddressline5; private string locationaddresszipcode; public int LocationAddressId { get { return locationaddressid; } set { locationaddressid = value; } } public string LocationAddressLine1 { get { return locationaddressline1; } set { locationaddressline1 = value; } } public string LocationAddressLine2 { get { return locationaddressline2; } set { locationaddressline2 = value; } } public string LocationAddressLine3 { get { return locationaddressline3; } set { locationaddressline3 = value; } } public string LocationAddressLine4 { get { return locationaddressline4; } set { locationaddressline4 = value; } } public string LocationAddressLine5 { get { return locationaddressline5; } set { locationaddressline5 = value; } } public string LocationAddressZipCode { get { return locationaddresszipcode; } set { locationaddresszipcode = value; } } private int workouaddressid; private string workouaddressline1; private string workouaddressline2; private string workouaddressline3; private string workouaddressline4; private string workouaddressline5; private string workouaddresszipcode; public int WorkOUAddressId { get { return workouaddressid; } set { workouaddressid = value; } } public string WorkOUAddressLine1 { get { return workouaddressline1; } set { workouaddressline1 = value; } } public string WorkOUAddressLine2 { get { return workouaddressline2; } set { workouaddressline2 = value; } } public string WorkOUAddressLine3 { get { return workouaddressline3; } set { workouaddressline3 = value; } } public string WorkOUAddressLine4 { get { return workouaddressline4; } set { workouaddressline4 = value; } } public string WorkOUAddressLine5 { get { return workouaddressline5; } set { workouaddressline5 = value; } } public string WorkOUAddressZipCode { get { return workouaddresszipcode; } set { workouaddresszipcode = value; } } private List dailyattendancereportdtos = new List(); public List DailyAttendanceReportDTOs { get { return dailyattendancereportdtos; } //code set { dailyattendancereportdtos = value; } //code } //private List ouaddondtos = new List(); //public List OuAddonDTO //{ // get { return ouaddondtos; } // set { ouaddondtos = value; } //} public static implicit operator int(PayProcessReport v) { throw new NotImplementedException(); } private string ChangeToWords(double amount, string currency) { if (amount == 0) return "Zero Rupees Only"; long rupees = (long)Math.Floor(amount); int paise = (int)Math.Round((amount - rupees) * 100); string words = NumberToWordsIndian(rupees) + " Rupees"; if (paise > 0) { words += " and " + NumberToWordsIndian(paise) + " Paise"; } return words + " Only"; } private string NumberToWordsIndian(long number) { if (number == 0) return "Zero"; if (number < 0) return "Minus " + NumberToWordsIndian(Math.Abs(number)); string words = ""; if ((number / 10000000) > 0) { words += NumberToWordsIndian(number / 10000000) + " Crore "; number %= 10000000; } if ((number / 100000) > 0) { words += NumberToWordsIndian(number / 100000) + " Lakh "; number %= 100000; } if ((number / 1000) > 0) { words += NumberToWordsIndian(number / 1000) + " Thousand "; number %= 1000; } if ((number / 100) > 0) { words += NumberToWordsIndian(number / 100) + " Hundred "; number %= 100; } if (number > 0) { if (words != "") words += "and "; var unitsMap = new[] { "Zero","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten", "Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen" }; var tensMap = new[] { "Zero","Ten","Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety" }; if (number < 20) words += unitsMap[number]; else words += tensMap[number / 10] + ((number % 10) > 0 ? " " + unitsMap[number % 10] : ""); } return words.Trim(); } } }