using Prism.Mvvm; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PDF_Master.Helper { public class ErrorCodeHelper : BindableBase { #region 文案 private string _code301 = ""; public string code301 { get { return _code301; } set { SetProperty(ref _code301, value); } } private string _code302 = ""; public string code302 { get { return _code302; } set { SetProperty(ref _code302, value); } } private string _code304 = ""; public string code304 { get { return _code304; } set { SetProperty(ref _code304, value); } } private string _code305 = ""; public string code305 { get { return _code305; } set { SetProperty(ref _code305, value); } } private string _code306 = ""; public string code306 { get { return _code306; } set { SetProperty(ref _code306, value); } } private string _code307 = ""; public string code307 { get { return _code307; } set { SetProperty(ref _code307, value); } } private string _code308 = ""; public string code308 { get { return _code308; } set { SetProperty(ref _code308, value); } } private string _code309 = ""; public string code309 { get { return _code309; } set { SetProperty(ref _code309, value); } } private string _code310 = ""; public string code310 { get { return _code310; } set { SetProperty(ref _code310, value); } } private string _code311 = ""; public string code311 { get { return _code311; } set { SetProperty(ref _code311, value); } } private string _code312 = ""; public string code312 { get { return _code312; } set { SetProperty(ref _code312, value); } } private string _code313 = ""; public string code313 { get { return _code313; } set { SetProperty(ref _code313, value); } } private string _code314 = ""; public string code314 { get { return _code314; } set { SetProperty(ref _code314, value); } } private string _code315 = ""; public string code315 { get { return _code315; } set { SetProperty(ref _code315, value); } } private string _code316 = ""; public string code316 { get { return _code316; } set { SetProperty(ref _code316, value); } } private string _code317 = ""; public string code317 { get { return _code317; } set { SetProperty(ref _code317, value); } } private string _code318 = ""; public string code318 { get { return _code318; } set { SetProperty(ref _code318, value); } } private string _code319 = ""; public string code319 { get { return _code319; } set { SetProperty(ref _code319, value); } } private string _code320 = ""; public string code320 { get { return _code320; } set { SetProperty(ref _code320, value); } } private string _code321 = ""; public string code321 { get { return _code321; } set { SetProperty(ref _code321, value); } } private string _code322 = ""; public string code322 { get { return _code322; } set { SetProperty(ref _code322, value); } } private string _code323 = ""; public string code323 { get { return _code323; } set { SetProperty(ref _code323, value); } } private string _code324 = ""; public string code324 { get { return _code324; } set { SetProperty(ref _code324, value); } } private string _code325 = ""; public string code325 { get { return _code325; } set { SetProperty(ref _code325, value); } } private string _code326 = ""; public string code326 { get { return _code326; } set { SetProperty(ref _code326, value); } } private string _code327 = ""; public string code327 { get { return _code327; } set { SetProperty(ref _code327, value); } } private string _code328 = ""; public string code328 { get { return _code328; } set { SetProperty(ref _code328, value); } } private string _code329 = ""; public string code329 { get { return _code329; } set { SetProperty(ref _code329, value); } } private string _code330 = ""; public string code330 { get { return _code330; } set { SetProperty(ref _code330, value); } } private string _code331 = ""; public string code331 { get { return _code331; } set { SetProperty(ref _code331, value); } } private string _code332 = ""; public string code332 { get { return _code332; } set { SetProperty(ref _code332, value); } } private string _code333 = ""; public string code333 { get { return _code333; } set { SetProperty(ref _code333, value); } } private string _code334 = ""; public string code334 { get { return _code334; } set { SetProperty(ref _code334, value); } } private string _code300 = ""; public string code300 { get { return _code300; } set { SetProperty(ref _code300, value); } } private string _codehad = ""; public string codehad { get { return _codehad; } set { SetProperty(ref _codehad, value); } } public void InitString() { code301 = App.ServiceLoader.GetString("code301"); code302 = App.ServiceLoader.GetString("code302"); code304 = App.ServiceLoader.GetString("code304"); code305 = App.ServiceLoader.GetString("code305"); code306 = App.ServiceLoader.GetString("code306"); code307 = App.ServiceLoader.GetString("code307"); code308 = App.ServiceLoader.GetString("code308"); code309 = App.ServiceLoader.GetString("code309"); code310 = App.ServiceLoader.GetString("code310"); code311 = App.ServiceLoader.GetString("code311"); code312 = App.ServiceLoader.GetString("code312"); code313 = App.ServiceLoader.GetString("code313"); code314 = App.ServiceLoader.GetString("code314"); code315 = App.ServiceLoader.GetString("code315"); code316 = App.ServiceLoader.GetString("code316"); code317 = App.ServiceLoader.GetString("code317"); code318 = App.ServiceLoader.GetString("code318"); code319 = App.ServiceLoader.GetString("code319"); code320 = App.ServiceLoader.GetString("code320"); code321 = App.ServiceLoader.GetString("code321"); code322 = App.ServiceLoader.GetString("code322"); code323 = App.ServiceLoader.GetString("code323"); code324 = App.ServiceLoader.GetString("code324"); code325 = App.ServiceLoader.GetString("code325"); code326 = App.ServiceLoader.GetString("code326"); code327 = App.ServiceLoader.GetString("code327"); code328 = App.ServiceLoader.GetString("code328"); code329 = App.ServiceLoader.GetString("code329"); code330 = App.ServiceLoader.GetString("code330"); code331 = App.ServiceLoader.GetString("code331"); code332 = App.ServiceLoader.GetString("code332"); code333 = App.ServiceLoader.GetString("code333"); code334 = App.ServiceLoader.GetString("code334"); code300 = App.ServiceLoader.GetString("code300"); codehad= App.ServiceLoader.GetString("codehad"); } public string Ercode( string code) { InitString(); if (code == "200") return "success"; else if (code == "301") return code301; else if (code == "302") return code302; else if (code == "304") return code304; else if (code == "305") return code305; else if (code == "306") return code306; else if (code == "307") return code307; else if (code == "308") return code308; else if (code == "309") return code309; else if (code == "310") return code310; else if (code == "311") return code311; else if (code == "312") return code312; else if (code == "313") return code313; else if (code == "314") return code314; else if (code == "315") return code315; else if (code == "316") return code316; else if (code == "317") return code317; else if (code == "318") return code318; else if (code == "319") return code319; else if (code == "320") return code320; else if (code == "321") return code321; else if (code == "322") return code322; else if (code == "323") return code323; else if (code == "324") return code324; else if (code == "325") return code325; else if (code == "326") return code326; else if (code == "327") return code327; else if (code == "codehad") return codehad; else return code300; } #endregion } }