/// <summary> /// create by niuyy /// 根据枚举及值得到枚举的描述 /// </summary> /// <param name="msgType">枚举类型</param> /// <param name="messageID">枚举值</param> /// <returns></returns> static string GetMessageIT(AppEnumName msgType, string messageID) { switch (msgType) { case AppEnumName.NoEnumName: return _FormWordsIT[messageID]; break; case AppEnumName.PromotionType: return _PromotionTypeIT[messageID]; case AppEnumName.PromotionConditionType: return _PromotionConditionTypeIT[messageID]; case AppEnumName.PromConditionFitType: return _PromConditionFitTypeIT[messageID]; case AppEnumName.GiftsType: return _GiftsTypeIT[messageID]; case AppEnumName.OperType: return _OperTypeIDIT[messageID]; case AppEnumName.PaymentKind: if (messageID == "5") return "邮局付款"; return _PaymentKindIT[messageID]; case AppEnumName.PostType: return _PostTypeIT[messageID]; case AppEnumName.OrdersStatus: return _OrdersStatusIT[messageID]; case AppEnumName.AccStatus: return _AccStatusIT[messageID]; case AppEnumName.ArticleQuestionStatus: return _ArticleQuestionStatusIT[messageID]; case AppEnumName.NotifyType: return _NotifyTypeIT[messageID]; case AppEnumName.WebSiteType: return _WebSiteTypeIT[messageID]; case AppEnumName.UnionAccountType: return _UnionAccountTypeIT[messageID]; case AppEnumName.CooperationType: return _CooperationTypeIT[messageID]; case AppEnumName.ChannelType: return _ChannelTypeIT[messageID]; case AppEnumName.ArticleQuestionType: return _ArticleQuestionTypeIT[messageID]; case AppEnumName.PayStatus: return _PayStatusIT[messageID]; case AppEnumName.EGiftStatus: return _EGiftStatusIT[messageID]; case AppEnumName.ProductType: return _ProductTypeIT[messageID]; case AppEnumName.ReStatus: return _ReStatusIT[messageID]; case AppEnumName.RecomProKind: return _RecomProKindIT[messageID]; case AppEnumName.StoreInStatus: return _StoreInStatusIT[messageID]; case AppEnumName.CostMode: return _CostModeIT[messageID]; case AppEnumName.ShipOrderStatus: return _ShipOrderStatusIT[messageID]; case AppEnumName.StoreOutType: return _StoreOutTypeIT[messageID]; case AppEnumName.StoreInType: return _StoreInTypeIT[messageID]; case AppEnumName.DefType: return _DefTypeIT[messageID]; case AppEnumName.TBOrdStatus: return _TBOrdStatusIT[messageID]; case AppEnumName.TBCarryType: return _TBCarryTypeIT[messageID]; case AppEnumName.FunctionID: return _FunctionIDIT[messageID]; case AppEnumName.CusNumType: return _CusNumTypeIT[messageID]; case AppEnumName.CusChatType: return _CusChatTypeIT[messageID]; case AppEnumName.ReMoneyStatus: return _ReMoneyStatusIT[messageID]; case AppEnumName.StoreHouseProperty: return _StoreHousePropertyIT[messageID]; case AppEnumName.ProSortRule: return _ProSortRuleIT[messageID]; case AppEnumName.TemperaAttr: return _TemperaAttrIT[messageID]; case AppEnumName.CarrySheetStatus: return _CarrySheetStatusIT[messageID]; case AppEnumName.AlertSourceType: return _AlertSourceTypeIT[messageID]; case AppEnumName.POType: return _POTypeIT[messageID]; case AppEnumName.SalePriceStatus: return _SalePriceStatusIT[messageID]; case AppEnumName.CusCateConditionType: return _CusCateConditionTypeIT[messageID]; default: return "暂时还未初始化数据,应该在SystemFramework.MsgConfig类中初始化!"; } }
/// <summary> /// create by niuyy /// 根据语言版本得到下拉框中的项 /// </summary> /// <param name="lang">语言版本</param> /// <param name="msgType">枚举类型</param> /// <returns></returns> public static Dictionary<string, string> GetSelectOption(AppLanguage lang, AppEnumName msgType) { switch (lang) { case AppLanguage.CN: switch (msgType) { case AppEnumName.NoEnumName: return _FormWordsCN; case AppEnumName.FieldName: case AppEnumName.Country: break; case AppEnumName.PromotionType: return _PromotionTypeCN; case AppEnumName.OperType: return _OperTypeIDCN; case AppEnumName.SnsOperType: break; case AppEnumName.PromotionConditionType: return _PromotionConditionTypeCN; case AppEnumName.PromConditionFitType: return _PromConditionFitTypeCN; case AppEnumName.PromConditionGiftsType: return _GiftsTypeCN; case AppEnumName.PaymentKind: return _PaymentKindCN; case AppEnumName.PostType: return _PostTypeCN; case AppEnumName.OrdersStatus: return _OrdersStatusCN; case AppEnumName.AccStatus: return _AccStatusCN; case AppEnumName.ArticleQuestionStatus: return _ArticleQuestionStatusCN; case AppEnumName.NotifyType: return _NotifyTypeCN; case AppEnumName.WebSiteType: return _WebSiteTypeCN; case AppEnumName.UnionAccountType: return _UnionAccountTypeCN; case AppEnumName.CooperationType: return _CooperationTypeCN; case AppEnumName.ChannelType: return _ChannelTypeCN; case AppEnumName.ArticleQuestionType: return _ArticleQuestionTypeCN; case AppEnumName.EGiftStatus: return _EGiftStatusCN; case AppEnumName.ProductType: return _ProductTypeCN; case AppEnumName.OrderType: return _OrderTypeCN; case AppEnumName.CusVerifyStatus: return _CusVerifyStatusCN; case AppEnumName.ReStatus: return _ReStatusCN; case AppEnumName.StoreInStatus: return _StoreInStatusCN; case AppEnumName.CostMode: return _CostModeCN; case AppEnumName.ShipOrderStatus: return _ShipOrderStatusCN; case AppEnumName.StoreOutType: return _StoreOutTypeCN; case AppEnumName.StoreInType: return _StoreInTypeCN; case AppEnumName.DefType: return _DefTypeCN; case AppEnumName.TBOrdStatus: return _TBOrdStatusCN; case AppEnumName.TBCarryType: return _TBCarryTypeCN; case AppEnumName.FunctionID: return _FunctionIDCN; case AppEnumName.CusNumType: return _CusNumTypeCN; case AppEnumName.CusChatType: return _CusChatTypeCN; case AppEnumName.ReMoneyStatus: return _ReMoneyStatusCN; case AppEnumName.StoreHouseProperty: return _StoreHousePropertyCN; case AppEnumName.PuchaseCheckCondition: return _PuchaseCheckConditionCN; case AppEnumName.CheckStatus: return _CheckStatusCN; case AppEnumName.CheckoutPoint: return _CheckoutPointCN; case AppEnumName.ProSortRule: return _ProSortRuleCN; case AppEnumName.TemperaAttr: return _TemperaAttrCN; case AppEnumName.PurchaseReturnType: return _PurchaseReturnTypeCN; case AppEnumName.CarrySheetStatus: return _CarrySheetStatusCN; case AppEnumName.AlertSourceType: return _AlertSourceTypeCN; case AppEnumName.POType: return _POTypeCN; case AppEnumName.SalePriceStatus: return _SalePriceStatusCN; case AppEnumName.StockDealStatus: return _StockDealStatusCN; case AppEnumName.PayStatus: return _PayStatusCN; case AppEnumName.CusCateConditionType: return _CusCateConditionTypeCN; case AppEnumName.ProPromCataID: return _ProPromCataIDCN; case AppEnumName.TousuType: return _TousuTypeCN; case AppEnumName.packageType: return _PackageTypeCN; case AppEnumName.BakTemplateType: return _BakTemplateTypeCN; case AppEnumName.BalanceType: return _BalanceTypeCN; case AppEnumName.BalanceStatus: return _BalanceStatusCN; case AppEnumName.ProvNavLinkType: return _ProvNavLinkTypeCN; case AppEnumName.ReAmountStatus: return _ReAmountStatusCN; } break; case AppLanguage.EN: switch (msgType) { case AppEnumName.NoEnumName: return _FormWordsEN; case AppEnumName.FieldName: case AppEnumName.Country: break; case AppEnumName.PromotionType: return _PromotionTypeEN; case AppEnumName.OperType: return _OperTypeIDEN; case AppEnumName.SnsOperType: break; case AppEnumName.PromotionConditionType: return _PromotionConditionTypeEN; case AppEnumName.PromConditionFitType: return _PromConditionFitTypeEN; case AppEnumName.PromConditionGiftsType: return _GiftsTypeEN; case AppEnumName.PaymentKind: return _PaymentKindEN; case AppEnumName.PostType: return _PostTypeEN; case AppEnumName.OrdersStatus: return _OrdersStatusEN; case AppEnumName.AccStatus: return _AccStatusEN; case AppEnumName.ArticleQuestionStatus: return _ArticleQuestionStatusEN; case AppEnumName.NotifyType: return _NotifyTypeEN; case AppEnumName.WebSiteType: return _WebSiteTypeEN; case AppEnumName.UnionAccountType: return _UnionAccountTypeEN; case AppEnumName.CooperationType: return _CooperationTypeEN; case AppEnumName.ChannelType: return _ChannelTypeEN; case AppEnumName.ArticleQuestionType: return _ArticleQuestionTypeEN; case AppEnumName.EGiftStatus: return _EGiftStatusEN; case AppEnumName.ProductType: return _ProductTypeEN; case AppEnumName.ReStatus: return _ReStatusEN; case AppEnumName.StoreInStatus: return _StoreInStatusEN; case AppEnumName.CostMode: return _CostModeEN; case AppEnumName.ShipOrderStatus: return _ShipOrderStatusEN; case AppEnumName.StoreOutType: return _StoreOutTypeEN; case AppEnumName.StoreInType: return _StoreInTypeEN; case AppEnumName.DefType: return _DefTypeEN; case AppEnumName.TBOrdStatus: return _TBOrdStatusEN; case AppEnumName.TBCarryType: return _TBCarryTypeEN; case AppEnumName.FunctionID: return _FunctionIDEN; case AppEnumName.CusNumType: return _CusNumTypeEN; case AppEnumName.CusChatType: return _CusChatTypeEN; case AppEnumName.ReMoneyStatus: return _ReMoneyStatusEN; case AppEnumName.StoreHouseProperty: return _StoreHousePropertyEN; case AppEnumName.CheckoutPoint: return _CheckoutPointEN; case AppEnumName.ProSortRule: return _ProSortRuleEN; case AppEnumName.TemperaAttr: return _TemperaAttrEN; case AppEnumName.PurchaseReturnType: return _PurchaseReturnTypeEN; case AppEnumName.PuchaseCheckCondition: return _PuchaseCheckConditionEN; case AppEnumName.CarrySheetStatus: return _CarrySheetStatusEN; case AppEnumName.AlertSourceType: return _AlertSourceTypeEN; case AppEnumName.POType: return _POTypeEN; case AppEnumName.SalePriceStatus: return _SalePriceStatusEN; case AppEnumName.StockDealStatus: return _StockDealStatusEN; case AppEnumName.CusCateConditionType: return _CusCateConditionTypeEN; } break; case AppLanguage.FR: switch (msgType) { case AppEnumName.NoEnumName: return _FormWordsFR; case AppEnumName.FieldName: case AppEnumName.Country: break; case AppEnumName.PromotionType: return _PromotionTypeFR; case AppEnumName.OperType: return _OperTypeIDFR; case AppEnumName.SnsOperType: break; case AppEnumName.PromotionConditionType: return _PromotionConditionTypeFR; case AppEnumName.PromConditionFitType: return _PromConditionFitTypeFR; case AppEnumName.PromConditionGiftsType: return _GiftsTypeFR; case AppEnumName.PaymentKind: return _PaymentKindFR; case AppEnumName.PostType: return _PostTypeFR; case AppEnumName.OrdersStatus: return _OrdersStatusFR; case AppEnumName.AccStatus: return _AccStatusFR; case AppEnumName.ArticleQuestionStatus: return _ArticleQuestionStatusFR; case AppEnumName.NotifyType: return _NotifyTypeFR; case AppEnumName.WebSiteType: return _WebSiteTypeFR; case AppEnumName.UnionAccountType: return _UnionAccountTypeFR; case AppEnumName.CooperationType: return _CooperationTypeFR; case AppEnumName.ChannelType: return _ChannelTypeFR; case AppEnumName.ArticleQuestionType: return _ArticleQuestionTypeFR; case AppEnumName.EGiftStatus: return _EGiftStatusFR; case AppEnumName.ProductType: return _ProductTypeFR; case AppEnumName.ReStatus: return _ReStatusFR; case AppEnumName.StoreInStatus: return _StoreInStatusFR; case AppEnumName.CostMode: return _CostModeFR; case AppEnumName.ShipOrderStatus: return _ShipOrderStatusFR; case AppEnumName.StoreOutType: return _StoreOutTypeFR; case AppEnumName.StoreInType: return _StoreInTypeFR; case AppEnumName.DefType: return _DefTypeFR; case AppEnumName.TBOrdStatus: return _TBOrdStatusFR; case AppEnumName.TBCarryType: return _TBCarryTypeFR; case AppEnumName.FunctionID: return _FunctionIDFR; case AppEnumName.CusNumType: return _CusNumTypeFR; case AppEnumName.CusChatType: return _CusChatTypeFR; case AppEnumName.ReMoneyStatus: return _ReMoneyStatusFR; case AppEnumName.StoreHouseProperty: return _StoreHousePropertyFR; case AppEnumName.CheckoutPoint: return _CheckoutPointFR; case AppEnumName.ProSortRule: return _ProSortRuleFR; case AppEnumName.TemperaAttr: return _TemperaAttrFR; case AppEnumName.PurchaseReturnType: return _PurchaseReturnTypeFR; case AppEnumName.PuchaseCheckCondition: return _PuchaseCheckConditionFR; case AppEnumName.CarrySheetStatus: return _CarrySheetStatusFR; case AppEnumName.AlertSourceType: return _AlertSourceTypeFR; case AppEnumName.POType: return _POTypeFR; case AppEnumName.SalePriceStatus: return _SalePriceStatusFR; case AppEnumName.CusCateConditionType: return _CusCateConditionTypeFR; } break; case AppLanguage.GE: switch (msgType) { case AppEnumName.NoEnumName: return _FormWordsGE; case AppEnumName.FieldName: case AppEnumName.Country: break; case AppEnumName.PromotionType: return _PromotionTypeGE; case AppEnumName.OperType: return _OperTypeIDGE; case AppEnumName.SnsOperType: break; case AppEnumName.PromotionConditionType: return _PromotionConditionTypeGE; case AppEnumName.PromConditionFitType: return _PromConditionFitTypeGE; case AppEnumName.PromConditionGiftsType: return _GiftsTypeGE; case AppEnumName.PaymentKind: return _PaymentKindGE; case AppEnumName.PostType: return _PostTypeGE; case AppEnumName.OrdersStatus: return _OrdersStatusGE; case AppEnumName.AccStatus: return _AccStatusGE; case AppEnumName.ArticleQuestionStatus: return _ArticleQuestionStatusGE; case AppEnumName.NotifyType: return _NotifyTypeGE; case AppEnumName.WebSiteType: return _WebSiteTypeGE; case AppEnumName.UnionAccountType: return _UnionAccountTypeGE; case AppEnumName.CooperationType: return _CooperationTypeGE; case AppEnumName.ChannelType: return _ChannelTypeGE; case AppEnumName.ArticleQuestionType: return _ArticleQuestionTypeGE; case AppEnumName.EGiftStatus: return _EGiftStatusGE; case AppEnumName.ProductType: return _ProductTypeGE; case AppEnumName.ReStatus: return _ReStatusGE; case AppEnumName.StoreInStatus: return _StoreInStatusGE; case AppEnumName.CostMode: return _CostModeGE; case AppEnumName.ShipOrderStatus: return _ShipOrderStatusGE; case AppEnumName.StoreOutType: return _StoreOutTypeGE; case AppEnumName.StoreInType: return _StoreInTypeGE; case AppEnumName.DefType: return _DefTypeGE; case AppEnumName.TBOrdStatus: return _TBOrdStatusGE; case AppEnumName.TBCarryType: return _TBCarryTypeGE; case AppEnumName.FunctionID: return _FunctionIDGE; case AppEnumName.CusNumType: return _CusNumTypeGE; case AppEnumName.CusChatType: return _CusChatTypeGE; case AppEnumName.ReMoneyStatus: return _ReMoneyStatusGE; case AppEnumName.StoreHouseProperty: return _StoreHousePropertyGE; case AppEnumName.CheckoutPoint: return _CheckoutPointGE; case AppEnumName.ProSortRule: return _ProSortRuleGE; case AppEnumName.TemperaAttr: return _TemperaAttrGE; case AppEnumName.PurchaseReturnType: return _PurchaseReturnTypeGE; case AppEnumName.PuchaseCheckCondition: return _PuchaseCheckConditionGE; case AppEnumName.CarrySheetStatus: return _CarrySheetStatusGE; case AppEnumName.AlertSourceType: return _AlertSourceTypeGE; case AppEnumName.POType: return _POTypeGE; case AppEnumName.SalePriceStatus: return _SalePriceStatusGE; case AppEnumName.CusCateConditionType: return _CusCateConditionTypeGE; } break; case AppLanguage.IT: switch (msgType) { case AppEnumName.NoEnumName: return _FormWordsIT; case AppEnumName.FieldName: case AppEnumName.Country: break; case AppEnumName.PromotionType: return _PromotionTypeIT; case AppEnumName.OperType: return _OperTypeIDIT; case AppEnumName.SnsOperType: break; case AppEnumName.PromotionConditionType: return _PromotionConditionTypeIT; case AppEnumName.PromConditionFitType: return _PromConditionFitTypeIT; case AppEnumName.PromConditionGiftsType: return _GiftsTypeIT; case AppEnumName.PaymentKind: return _PaymentKindIT; case AppEnumName.PostType: return _PostTypeIT; case AppEnumName.OrdersStatus: return _OrdersStatusIT; case AppEnumName.AccStatus: return _AccStatusIT; case AppEnumName.ArticleQuestionStatus: return _ArticleQuestionStatusIT; case AppEnumName.NotifyType: return _NotifyTypeIT; case AppEnumName.WebSiteType: return _WebSiteTypeIT; case AppEnumName.UnionAccountType: return _UnionAccountTypeIT; case AppEnumName.CooperationType: return _CooperationTypeIT; case AppEnumName.ChannelType: return _ChannelTypeIT; case AppEnumName.ArticleQuestionType: return _ArticleQuestionTypeIT; case AppEnumName.EGiftStatus: return _EGiftStatusIT; case AppEnumName.ProductType: return _ProductTypeIT; case AppEnumName.ReStatus: return _ReStatusIT; case AppEnumName.StoreInStatus: return _StoreInStatusIT; case AppEnumName.CostMode: return _CostModeIT; case AppEnumName.ShipOrderStatus: return _ShipOrderStatusIT; case AppEnumName.StoreOutType: return _StoreOutTypeIT; case AppEnumName.StoreInType: return _StoreInTypeIT; case AppEnumName.DefType: return _DefTypeIT; case AppEnumName.TBOrdStatus: return _TBOrdStatusIT; case AppEnumName.TBCarryType: return _TBCarryTypeIT; case AppEnumName.FunctionID: return _FunctionIDIT; case AppEnumName.CusNumType: return _CusNumTypeIT; case AppEnumName.CusChatType: return _CusChatTypeIT; case AppEnumName.ReMoneyStatus: return _ReMoneyStatusIT; case AppEnumName.StoreHouseProperty: return _StoreHousePropertyIT; case AppEnumName.CheckoutPoint: return _CheckoutPointIT; case AppEnumName.ProSortRule: return _ProSortRuleIT; case AppEnumName.TemperaAttr: return _TemperaAttrIT; case AppEnumName.PurchaseReturnType: return _PurchaseReturnTypeIT; case AppEnumName.PuchaseCheckCondition: return _PuchaseCheckConditionIT; case AppEnumName.CarrySheetStatus: return _CarrySheetStatusIT; case AppEnumName.AlertSourceType: return _AlertSourceTypeIT; case AppEnumName.POType: return _POTypeIT; case AppEnumName.SalePriceStatus: return _SalePriceStatusIT; case AppEnumName.CusCateConditionType: return _CusCateConditionTypeIT; case AppEnumName.ServiceStatus: return _ServiceStatusCN; } break; } return null; }
/*public static string GetMessage(AppLanguage lang, Internationalization interType, ZKEShop.DataAccess.UserDataList field) { string revalue = ""; try { switch (lang) { case AppLanguage.CN: revalue = GetMessageCN(interType, field.DataListID.ToString()); break; case AppLanguage.EN: revalue = GetMessageEN(interType, field.DataListID.ToString()); break; case AppLanguage.FR: revalue = GetMessageFR(interType, field.DataListID.ToString()); break; case AppLanguage.GE: revalue = GetMessageGE(interType, field.DataListID.ToString()); break; case AppLanguage.IT: revalue = GetMessageIT(interType, field.DataListID.ToString()); break; } } catch { return "错误节点位置:" + Enum.GetName(typeof(ZKEShop.Common.Internationalization), interType) + "-" + field.DataListID.ToString(); //return "错误错误错误" + messageID.ToString(); } if (revalue == field.DataListID.ToString()) { revalue = field.FieldText; } return revalue; }*/ /// <summary> /// create by niuyy /// 根据枚举及值得到枚举的描述 /// </summary> /// <param name="msgType">枚举类型</param> /// <param name="messageID">枚举值</param> /// <returns></returns> static string GetMessageCN(AppEnumName msgType, string messageID) { try { switch (msgType) { case AppEnumName.NoEnumName: return _FormWordsCN[messageID]; break; case AppEnumName.PromotionType: return _PromotionTypeCN[messageID]; case AppEnumName.PromotionConditionType: return _PromotionConditionTypeCN[messageID]; case AppEnumName.PromConditionFitType: return _PromConditionFitTypeCN[messageID]; case AppEnumName.GiftsType: return _GiftsTypeCN[messageID]; case AppEnumName.OperType: return _OperTypeIDCN[messageID]; case AppEnumName.PaymentKind: if (messageID == "5") return "邮局付款"; return _PaymentKindCN[messageID]; case AppEnumName.PostType: return _PostTypeCN[messageID]; case AppEnumName.OrdersStatus: return _OrdersStatusCN[messageID]; case AppEnumName.AccStatus: return _AccStatusCN[messageID]; case AppEnumName.ArticleQuestionStatus: return _ArticleQuestionStatusCN[messageID]; case AppEnumName.NotifyType: return _NotifyTypeCN[messageID]; case AppEnumName.WebSiteType: return _WebSiteTypeCN[messageID]; case AppEnumName.UnionAccountType: return _UnionAccountTypeCN[messageID]; case AppEnumName.CooperationType: return _CooperationTypeCN[messageID]; case AppEnumName.ChannelType: return _ChannelTypeCN[messageID]; case AppEnumName.ArticleQuestionType: return _ArticleQuestionTypeCN[messageID]; case AppEnumName.PayStatus: return _PayStatusCN[messageID]; case AppEnumName.EGiftStatus: return _EGiftStatusCN[messageID]; case AppEnumName.ProductType: return _ProductTypeCN[messageID]; case AppEnumName.OrderType: return _OrderTypeCN[messageID]; case AppEnumName.CusVerifyStatus: return _CusVerifyStatusCN[messageID]; case AppEnumName.ReStatus: return _ReStatusCN[messageID]; case AppEnumName.RecomProKind: return _RecomProKindCN[messageID]; case AppEnumName.StoreInStatus: return _StoreInStatusCN[messageID]; case AppEnumName.CostMode: return _CostModeCN[messageID]; case AppEnumName.ShipOrderStatus: return _ShipOrderStatusCN[messageID]; case AppEnumName.StoreOutType: return _StoreOutTypeCN[messageID]; case AppEnumName.StoreInType: return _StoreInTypeCN[messageID]; case AppEnumName.DefType: return _DefTypeCN[messageID]; case AppEnumName.TBOrdStatus: return _TBOrdStatusCN[messageID]; case AppEnumName.TBCarryType: return _TBCarryTypeCN[messageID]; case AppEnumName.FunctionID: return _FunctionIDCN[messageID]; case AppEnumName.CusNumType: return _CusNumTypeCN[messageID]; case AppEnumName.CusChatType: return _CusChatTypeCN[messageID]; case AppEnumName.ReMoneyStatus: return _ReMoneyStatusCN[messageID]; case AppEnumName.StoreHouseProperty: return _StoreHousePropertyCN[messageID]; case AppEnumName.PuchaseCheckCondition: return _PuchaseCheckConditionCN[messageID]; case AppEnumName.CheckStatus: return _CheckStatusCN[messageID]; case AppEnumName.CheckoutPoint: return _CheckoutPointCN[messageID]; case AppEnumName.ProSortRule: return _ProSortRuleCN[messageID]; case AppEnumName.TemperaAttr: return _TemperaAttrCN[messageID]; case AppEnumName.PurchaseReturnType: return _PurchaseReturnTypeCN[messageID]; case AppEnumName.CarrySheetStatus: return _CarrySheetStatusCN[messageID]; case AppEnumName.AlertSourceType: return _AlertSourceTypeCN[messageID]; case AppEnumName.POType: return _POTypeCN[messageID]; case AppEnumName.SalePriceStatus: return _SalePriceStatusCN[messageID]; case AppEnumName.StockDealStatus: return _StockDealStatusCN[messageID]; case AppEnumName.CusCateConditionType: return _CusCateConditionTypeCN[messageID]; case AppEnumName.ProPromCataID: return _ProPromCataIDCN[messageID]; case AppEnumName.TousuType: return _TousuTypeCN[messageID]; case AppEnumName.packageType: return _PackageTypeCN[messageID]; case AppEnumName.BakTemplateType: return _BakTemplateTypeCN[messageID]; case AppEnumName.BalanceStatus: return _BalanceStatusCN[messageID]; case AppEnumName.ProvNavLinkType: return _ProvNavLinkTypeCN[messageID]; case AppEnumName.ReAmountStatus: return _ReAmountStatusCN[messageID]; case AppEnumName.ChargeType: return _ChargeTypeCN[messageID]; default: return "暂时还未初始化数据,应该在SystemFramework.MsgConfig类中初始化!"; } } catch (Exception) { } return messageID; }
/// <summary> /// create by niuyy /// 根据语言版本,枚举类型,枚举值返回枚举描述 /// </summary> /// <param name="lang">语言版本</param> /// <param name="msgType">枚举类型</param> /// <param name="messageID">枚举值</param> /// <returns></returns> public static string GetMessage(AppLanguage lang, AppEnumName msgType, string messageID) { switch (lang) { case AppLanguage.CN: return GetMessageCN(msgType, messageID); case AppLanguage.EN: return GetMessageEN(msgType, messageID); case AppLanguage.FR: return GetMessageFR(msgType, messageID); case AppLanguage.GE: return GetMessageGE(msgType, messageID); case AppLanguage.IT: return GetMessageIT(msgType, messageID); } return ""; }