public static string GetReportLanguage(ReportLanguage value) { switch (value) { case ReportLanguage.ChineseSimplified: return(Constants.ReportLanguage.ChineseSimplified); case ReportLanguage.ChineseTraditional: return(Constants.ReportLanguage.ChineseTraditional); case ReportLanguage.English: return(Constants.ReportLanguage.English); case ReportLanguage.French: return(Constants.ReportLanguage.French); case ReportLanguage.Japanese: return(Constants.ReportLanguage.Japanese); case ReportLanguage.Russian: return(Constants.ReportLanguage.Russian); case ReportLanguage.Spanish: return(Constants.ReportLanguage.Spanish); } throw new ArgumentOutOfRangeException("value"); }
//public TaxationFormProcess(ArrayList TaxEmpList, int TaxFormID, string TaxFormType, string NameOfSignature) // :this(TaxEmpList,TaxFormID,TaxFormType,NameOfSignature,ReportLanguage.English) //{ //} public TaxationFormProcess(DatabaseConnection dbConn, ArrayList TaxEmpList, int TaxFormID, string TaxFormType, string NameOfSignature, ReportLanguage reportLanguage) : base(dbConn) { this.TaxEmpList = TaxEmpList; this.TaxFormID = TaxFormID; this.TaxFormType = TaxFormType; this.NameOfSignature = NameOfSignature; this.reportLanguage = reportLanguage; }