using System.ComponentModel; using System.Reflection; namespace DS.Module.Core; /// /// 多语言配置 /// public static class MultiLanguageConst { /// /// 获取指定字段的描述文本 /// /// 字段名 /// /// 找不到字段时引发 public static string GetDescription(string fieldName) { var fieldInfo = typeof(MultiLanguageConst).GetField(fieldName) ?? throw new ArgumentException($"不存在的常量:{fieldName}", fieldName); var attribute = fieldInfo.GetCustomAttribute(); return attribute?.Description ?? string.Empty; } /// /// 未能获取指定的数据 /// [Description("未能获取指定的数据")] public const string EmptyData = "Empty_Data"; /// /// 查询成功 /// [Description("查询成功")] public const string DataQuerySuccess = "Data_Query_Success"; /// /// 新增成功 /// [Description("新增成功")] public const string DataCreateSuccess = "Data_Create_Success"; /// /// 更新成功 /// [Description("更新成功")] public const string DataUpdateSuccess = "Data_Update_Success"; /// /// 复制成功 /// [Description("复制成功")] public const string DataCopySuccess = "Data_Copy_Success"; /// /// 删除成功 /// [Description("删除成功")] public const string DataDelSuccess = "Data_Del_Success"; /// /// 操作失败 /// [Description("操作失败")] public const string Operation_Failed = "Operation_Failed"; /// /// 更新失败 /// [Description("更新失败")] public const string DataUpdateFailed = "Data_Update_Failed"; /// /// 导入成功 /// [Description("导入成功")] public const string DataImportSuccess = "Data_Import_Success"; /// /// 程序异常 /// [Description("程序异常")] public const string ProgramException = "Program_Exception"; /// /// 请选择数据 /// [Description("请选择数据!")] public const string DataNoSelect = "Data_No_Select"; #region 数据映射 [Description("场站映射信息已存在")] public const string MappingYardExist = "MappingYard_Exist"; [Description("场站映射信息不存在")] public const string MappingYardNotExist = "MappingYard_Not_Exist"; [Description("箱型映射信息已存在")] public const string MappingCtnExist = "MappingCtn_Exist"; [Description("箱型映射信息不存在")] public const string MappingCtnNotExist = "MappingCtn_Not_Exist"; [Description("付款方式映射信息已存在")] public const string MappingFrtExist = "MappingFrt_Exist"; [Description("付款方式映射信息不存在")] public const string MappingFrtNotExist = "MappingFrt_Not_Exist"; [Description("包装映射信息已存在")] public const string MappingPackageExist = "MappingPackage_Exist"; [Description("包装映射信息不存在")] public const string MappingPackageNotExist = "MappingPackage_Not_Exist"; [Description("船司映射信息已存在")] public const string MappingCarrierExist = "MappingCarrier_Exist"; [Description("船司映射信息不存在")] public const string MappingCarrierNotExist = "MappingCarrier_Not_Exist"; [Description("船代映射信息已存在")] public const string MappingForwarderExist = "MappingForwarder_Exist"; [Description("船代映射信息不存在")] public const string MappingForwarderNotExist = "MappingForwarder_Not_Exist"; [Description("签单方式映射信息已存在")] public const string MappingIssueTypeExist = "MappingIssueType_Exist"; [Description("签单方式映射信息不存在")] public const string MappingIssueTypeNotExist = "MappingIssueType_Not_Exist"; [Description("港口映射信息已存在")] public const string MappingPortExist = "MappingPort_Exist"; [Description("港口映射信息不存在")] public const string MappingPortNotExist = "MappingPort_Not_Exist"; [Description("运输条款映射信息已存在")] public const string MappingServiceExist = "MappingService_Exist"; [Description("运输条款映射信息不存在")] public const string MappingServiceNotExist = "MappingService_Not_Exist"; [Description("船名映射信息已存在")] public const string MappingVesselExist = "MappingVessel_Exist"; [Description("船名映射信息不存在")] public const string MappingVesselNotExist = "MappingVessel_Not_Exist"; [Description("船代与港口关系信息已存在")] public const string RelationForwarderAndPortExist = "RelationForwarderAndPort_Exist"; [Description("船代与港口关系信息不存在")] public const string RelationForwarderAndPortNotExist = "RelationForwarderAndPort_Not_Exist"; [Description("航线与港口关系信息已存在")] public const string RelationLaneAndPortExist = "RelationLaneAndPort_Exist"; [Description("航线与港口关系信息不存在")] public const string RelationLaneAndPortNotExist = "RelationLaneAndPort_Not_Exist"; #endregion #region 用户管理 [Description("用户授权数量限制")] public const string UserAuthNumLimit = "User_AuthNum_Limit"; [Description("{0}模块数量超出授权数量{1}")] public const string PerAuthNumLimit = "Permission_AuthNum_Limit"; [Description("用户唯一编码已存在")] public const string UserCodeExist = "UserCode_Exist"; [Description("角色唯一编码已存在")] public const string RoleCodeExist = "RoleCode_Exist"; #endregion [Description("字典类型唯一编码已存在")] public const string DictCodeExist = "DictCode_Exist"; [Description("未配置语言代码:{0}下的字典代码:{1}")] public const string DictCodeLanguageNoConfig = "DictCode_Language_No_Config"; [Description("机构名称已存在")] public const string OrgNameExist = "OrgName_Exist"; [Description("系统参数已存在")] public const string ConfigExist = "Config_Exist"; [Description("银行信息已存在")] public const string BankExist = "Bank_Exist"; [Description("业务参数已存在")] public const string CodeConfigExist = "CodeConfig_Exist"; [Description("系统版本信息已存在")] public const string VersionExist = "Version_Exist"; [Description("系统版本更新已执行")] public const string VersionExecuted = "Version_Executed"; /// /// 权限模块不存在 /// [Description("权限模块不存在")] public const string PermissionNotExist = "Permission_NotExist"; [Description("数据权限已存在")] public const string DataRuleExist = "Data_Rule_Exist"; [Description("系统编码已存在")] public const string SequenceExist = "Sequence_Exist"; [Description("系统编码规则已存在")] public const string SequenceRuleExist = "Sequence_Rule_Exist"; /// /// 非法请求 /// [Description("非法请求")] public const string IllegalRequest = "Illegal_Request"; #region 工作流相关 [Description("工作流实例存在引用的流程模板不能删除")] public const string FlowTemplateDelExistImport = "FlowTemplate_Del_Exist_Import"; [Description("引入的流程模板不存在")] public const string FlowTemplateImportNotExist = "FlowTemplate_Import_NotExist"; /// /// 只能修改【草稿】和【驳回】状态的流程 /// [Description("只能修改【就绪】和【撤销】状态的流程")] public const string FlowEditOnlyReadyAndCancel = "Flow_Edit_Only_ReadyAndCancel"; /// /// 该流程模板已不存在,请重新设计流程 /// [Description("该流程模板不存在")] public const string FlowTemplateNotExist = "FlowTemplate_NotExist"; /// /// 该工作流指定用户非本人 /// [Description("该工作流指定用户非本人")] public const string FlowInstanceAssignUser = "FlowInstance_Assign_User"; /// /// 该工作流指定角色非本人 /// [Description("该工作流指定角色非本人")] public const string FlowInstanceAssignRole = "FlowInstance_Assign_Role"; /// /// 创建工作流实例成功 /// [Description("创建工作流实例成功")] public const string FlowInstanceCreateSuccess = "FlowInstance_Create_Success"; /// /// 工作流实例撤销成功 /// [Description("工作流实例撤销成功")] public const string FlowInstanceCancelSuccess = "FlowInstance_Cancel_Success"; /// /// 工作流实例更新成功 /// [Description("工作流实例更新成功")] public const string FlowInstanceUpdateSuccess = "FlowInstance_Update_Success"; /// /// 工作流实例审批成功 /// [Description("工作流实例审批成功")] public const string FlowInstanceAuditSuccess = "FlowInstance_Audit_Success"; /// /// 工作流实例不存在 /// [Description("工作流实例不存在")] public const string FlowInstanceNotExist = "FlowInstance_NotExist"; /// /// 该工作流审批节点与当前节点不一致 /// [Description("该工作流审批节点与当前节点不一致")] public const string FlowInstanceNodeIdConflict = "FlowInstance_NodeId_Conflict"; /// /// 无法寻找到下一个节点 /// [Description("无法寻找到下一个节点")] public const string FlowInstanceNotFindNextNode = "FlowInstance_NotFind_NextNode"; /// /// 工作流实例已完成 /// [Description("工作流实例已完成")] public const string FlowInstanceFinished = "FlowInstance_Finished"; #endregion #region 基础信息 [Description("商品类型已存在")] public const string CodeGoodsTypeExist = "Code_Goods_Type_Exist"; [Description("商品类型导入无数据")] public const string CodeGoodsTypeImportNoData = "Code_Goods_Type_Import_No_Data"; [Description("存在已导入的商品类型")] public const string CodeGoodsTypeImportAlready = "Code_Goods_Type_Import_Already"; [Description("商品已存在")] public const string CodeGoodsExist = "Code_Goods_Exist"; [Description("商品导入无数据")] public const string CodeGoodsImportNoData = "Code_Goods_Import_No_Data"; [Description("存在已导入的商品")] public const string CodeGoodsImportAlready = "Code_Goods_Import_Already"; [Description("签单方式已存在")] public const string CodeIssueTypeExist = "Code_Issue_Type_Exist"; [Description("签单方式导入无数据")] public const string CodeIssueTypeImportNoData = "Code_Issue_Type_Import_No_Data"; [Description("存在已导入的签单方式")] public const string CodeIssueTypeImportAlready = "Code_Issue_Type_Import_Already"; [Description("包装类型已存在")] public const string CodePackageExist = "Code_Package_Exist"; [Description("包装类型导入无数据")] public const string CodePackageImportNoData = "Code_Package_Import_No_Data"; [Description("存在已导入的包装类型")] public const string CodePackageImportAlready = "Code_Package_Import_Already"; [Description("国家信息已存在")] public const string CodeCountryExist = "Code_Country_Exist"; [Description("国家信息导入无数据")] public const string CodeCountryImportNoData = "Code_Country_Import_No_Data"; [Description("存在已导入的国家信息")] public const string CodeCountryImportAlready = "Code_Country_Import_Already"; [Description("集装箱信息已存在")] public const string CodeCtnExist = "Code_Ctn_Exist"; [Description("集装箱信息导入无数据")] public const string CodeCtnImportNoData = "Code_Ctn_Import_No_Data"; [Description("存在已导入的集装箱信息")] public const string CodeCtnImportAlready = "Code_Ctn_Import_Already"; [Description("对账模板信息已存在")] public const string CheckBillTemplateExist = "CheckBill_Template_Exist"; [Description("工厂信息已存在")] public const string CodeFactoryExist = "Code_Factory_Exist"; [Description("港口信息已存在")] public const string CodePortExist = "Code_Port_Exist"; [Description("港口信息导入无数据")] public const string CodePortImportNoData = "Code_Port_Import_No_Data"; [Description("存在已导入的港口信息")] public const string CodePortImportAlready = "Code_Port_Import_Already"; [Description("船名信息已存在")] public const string CodeVesselExist = "Code_Vessel_Exist"; [Description("船名信息导入无数据")] public const string CodeVesselImportNoData = "Code_Vessel_Import_No_Data"; [Description("存在已导入的船名信息")] public const string CodeVesselImportAlready = "Code_Vessel_Import_Already"; [Description("航次信息已存在")] public const string CodeVoynoExist = "Code_Voyno_Exist"; [Description("航次信息导入无数据")] public const string CodeVoynoImportNoData = "Code_Voyno_Import_No_Data"; [Description("存在已导入的航次信息")] public const string CodeVoynoImportAlready = "Code_Voyno_Import_Already"; [Description("业务来源信息已存在")] public const string CodeSourceExist = "Code_Source_Exist"; [Description("业务来源信息导入无数据")] public const string CodeSourceImportNoData = "Code_Source_Import_No_Data"; [Description("存在已导入的业务来源信息")] public const string CodeSourceImportAlready = "Code_Source_Import_Already"; [Description("业务来源信息明细已存在")] public const string CodeSourceDetailExist = "Code_Source_Detail_Exist"; [Description("业务来源明细信息导入无数据")] public const string CodeSourceDetailImportNoData = "Code_Source_Detail_Import_No_Data"; [Description("存在已导入的业务来源明细信息")] public const string CodeSourceDetailImportAlready = "Code_Source_Detail_Import_Already"; [Description("航线信息已存在")] public const string CodeLaneExist = "Code_Lane_Exist"; [Description("航线信息导入无数据")] public const string CodeLaneImportNoData = "Code_Lane_Import_No_Data"; [Description("存在已导入的航线信息")] public const string CodeLaneImportAlready = "Code_Lane_Import_Already"; [Description("付费方式已存在")] public const string CodeFrtExist = "Code_Frt_Exist"; [Description("付费方式导入无数据")] public const string CodeFrtImportNoData = "Code_Frt_Import_No_Data"; [Description("存在已导入的付费方式")] public const string CodeFrtImportAlready = "Code_Frt_Import_Already"; [Description("运输条款已存在")] public const string CodeServiceExist = "Code_Service_Exist"; [Description("运输条款导入无数据")] public const string CodeServiceImportNoData = "Code_Service_Import_No_Data"; [Description("存在已导入的运输条款")] public const string CodeServiceImportAlready = "Code_Service_Import_Already"; [Description("结算方式已存在")] public const string CodeStlModeExist = "Code_StlMode_Exist"; [Description("结算方式导入无数据")] public const string CodeStlModeImportNoData = "Code_StlMode_Import_No_Data"; [Description("存在已导入的结算方式")] public const string CodeStlModeImportAlready = "Code_StlMode_Import_Already"; [Description("第三方账号已存在")] public const string CodeThirdPartyExist = "Code_Third_Party_Exist"; [Description("表单设置已存在")] public const string FormSetExist = "Form_Set_Exist"; [Description("查询条件设置已存在")] public const string QuerySetExist = "Query_Set_Exist"; [Description("查询条件设置不存在")] public const string QuerySetNotExist = "Query_Set_Not_Exist"; [Description("Edi设置已存在")] public const string EdiSetExist = "Edi_Set_Exist"; [Description("Edi设置不存在")] public const string EdiSetNotExist = "Edi_Set_Not_Exist"; [Description("订单关系人设置已存在")] public const string OrderContactExist = "Order_Contact_Exist"; [Description("订单关系人设置不存在")] public const string OrderContactNotExist = "Order_Contact_Not_Exist"; [Description("用户邮箱设置已存在")] public const string UserEmailExist = "UserEmail_Exist"; [Description("用户邮箱设置不存在")] public const string UserEmailNotExist = "UserEmail_Not_Exist"; [Description("列表字段设置已存在")] public const string ColumnSetExist = "Column_Set_Exist"; [Description("表单复制字段设置已存在")] public const string FormCopyExist = "Form_Copy_Exist"; [Description("客户银行信息已存在")] public const string ClientBankExist = "Client_Bank_Exist"; [Description("客户联系人信息已存在")] public const string ClientContactExist = "Client_Contact_Exist"; [Description("客户合同信息已存在")] public const string ClientContractExist = "Client_Contract_Exist"; [Description("客户收发货人信息已存在")] public const string ClientShipperExist = "Client_Shipper_Exist"; [Description("客户账期信息已存在")] public const string ClientAccountDateExist = "Client_Account_Date_Exist"; [Description("客户信息已存在")] public const string ClientInfoExist = "Client_Info_Exist"; #endregion #region 海运出口 [Description("海运出口信息已存在")] public const string SeaExportExist = "Sea_Export_Exist"; [Description("海运出口信息不存在")] public const string SeaExportNotExist = "Sea_Export_Not_Exist"; [Description("海运出口存在分票信息")] public const string SeaExportPartExist = "Sea_Export_Part_Exist"; [Description("海运出口备注不存在")] public const string SeaExportRemarkNotExist = "Sea_Export_Remark_Not_Exist"; [Description("请先选择场站!")] public const string SeaExportYardCheck = "Sea_Export_Yard_Check"; [Description("海运出口规则引擎校验完成!")] public const string SeaExportRuleEngineFinished = "Sea_Export_RuleEngine_Finished"; [Description("舱单分票件数合计超出限制")] public const string SeaExportPartCtnPKGSLimit = "Sea_Export_PartCtn_PKGS_Limit"; [Description("舱单分票重量合计超出限制")] public const string SeaExportPartCtnKGSLimit = "Sea_Export_PartCtn_KGS_Limit"; [Description("舱单分票件数尺码超出限制")] public const string SeaExportPartCtnCBMLimit = "Sea_Export_PartCtn_CBM_Limit"; [Description("海运出口存在费用信息")] public const string SeaExportFeeExist = "Sea_Export_Fee_Exist"; [Description("海运出口信息业务已锁定")] public const string SeaExportBusinessLock = "Sea_Export_Business_Lock"; [Description("海运出口信息费用已锁定")] public const string SeaExportFeeLock = "Sea_Export_Fee_Lock"; [Description("海运出口信息业务锁定已解锁")] public const string SeaExportBusinessUnLock = "Sea_Export_Business_UnLock"; [Description("海运出口信息费用锁定已解锁")] public const string SeaExportFeeUnLock = "Sea_Export_Fee_UnLock"; [Description("海运出口批量操作未勾选")] public const string SeaExportBatchOpNoSelect = "Sea_Export_Batch_Op_No_Select"; [Description("海运出口批量编辑未勾选")] public const string SeaExportBatchEditNoSelect = "Sea_Export_Batch_Edit_No_Select"; [Description("海运出口信息主提单号已存在")] public const string SeaExportMBLNOExist = "Sea_Export_MBLNO_Exist"; [Description("海运出口信息分提单号已存在")] public const string SeaExportHBLNOExist = "Sea_Export_HBLNO_Exist"; [Description("截港日期不允许小于开船日期")] public const string SeaExportCloseDateLimit = "Sea_Export_CloseDate_Limit"; [Description("截单日期不允许小于开船日期")] public const string SeaExportCloseDocDateLimit = "Sea_Export_CloseDocDate_Limit"; [Description("箱信息不存在")] public const string OpCtnNotExist = "OpCtn_Not_Exist"; [Description("函电信息不存在")] public const string LetterNotExist = "Letter_Not_Exist"; [Description("收发通信息不存在")] public const string ShippingBillTemplateNotExist = "ShippingBill_Template_Not_Exist"; [Description("舱单信息不存在")] public const string ShippingBillNotExist = "ShippingBill_Not_Exist"; [Description("舱单箱信息不存在")] public const string ShippingBillCtnNotExist = "ShippingBill_Ctn_Not_Exist"; [Description("表单设置不存在")] public const string FormSetNotExist = "FormSet_Not_Exist"; [Description("表单复制模板不存在")] public const string FormCopyNotExist = "FormCopy_Not_Exist"; [Description("系统编码规则不存在")] public const string SequenceSetNotExist = "SequenceSet_Not_Exist"; #endregion #region 费用相关 [Description("币别信息已存在")] public const string FeeCurrencyExist = "Fee_Currency_Exist"; [Description("汇率设置已存在")] public const string FeeCurrencyExchangeExist = "Fee_Currency_Exchange_Exist"; [Description("尚未维护币别")] public const string FeeCurrencyNotFound = "Fee_Currency_NotFound"; [Description("费用模板已存在")] public const string FeeTemplateExist = "Fee_Template_Exist"; [Description("费用模板明细已存在")] public const string FeeTemplateDetailExist = "Fee_Template_Detail_Exist"; [Description("费用模板明细不存在")] public const string FeeTemplateDetailNotExist = "Fee_Template_Detail_Not_Exist"; [Description("往来单位固定费用已存在")] public const string FeeCustTemplateDetailExist = "Fee_Cust_Template_Detail_Exist"; [Description("费用代码已存在")] public const string FeeCodeExist = "Fee_Code_Exist"; [Description("费用记录已存在")] public const string FeeRecordExist = "Fee_Record_Exist"; [Description("费用记录不存在")] public const string FeeRecordNotExist = "Fee_Record_NotExist"; [Description("没有找到费用记录")] public const string FeeRecordNone = "Fee_Record_None"; [Description("只能删除状态为‘录入’或‘驳回提交’的费用")] public const string FeeRecordDelete = "Fee_Record_Delete"; [Description("费用已锁定,禁止提交")] public const string FeeLocked = "Fee_Record_Locked"; [Description("费用【{0}】状态不正确")] public const string FeeRecordStatus = "Fee_Record_Status"; [Description("所选项包含正在审批中的费用,无法提交")] public const string FeeRecordIsAuditing = "Fee_Record_IsAuditing"; [Description("当前审批费用包含已结算/部分结算的费用,无法提交")] public const string FeeRecordIsSettled = "Fee_Record_IsSettled"; [Description("未能找到审批模板")] public const string TemplateNotFound = "Template_NotFound"; [Description("以下项:{0} 未在审批状态中,无需撤销")] public const string NoNeedWithdraw = "NoNeed_Withdraw"; [Description("未能获取业务信息")] public const string BusinessNotFound = "Business_NotFound"; [Description("当前业务的费用状态为:{0},无法提交")] public const string BusinessStatusError = "Business_Status_Error"; [Description("当前业务的审批状态不正确")] public const string BusinessAuditStatusError = "Business_AuditStatus_Error"; [Description("不支持的业务类型:{0}")] public const string BusinessNotSupported = "Business_NotSupported"; [Description("提交数据中包含不在审批流程中的项")] public const string NotInFlows = "NotIn_Flows"; [Description("提交数据中包含不在待审批状态的项")] public const string NotInAudit = "NotIn_Audit"; [Description("未能获取审批工作流")] public const string FlowNotFound = "Flow_NotFound"; [Description("所选项包含不属于当前用户权限范围内的审批,禁止提交")] public const string AuditUnauthorization = "Audit_Unauthorized"; [Description("当前暂无待审批的项")] public const string NoAuditItems = "No_Audit_Items"; #endregion #region 申请相关 [Description("费用明细的结算对象有且只能有一个")] public const string DetailCustomerOnlyOne = "Application_Customer_OnlyOne"; [Description("申请单明细每次提交只能对应一条费用记录")] public const string ApplicationRecordOnlyOne = "Application_Record_OnlyOne"; [Description("提交审批时必须包含费用明细")] public const string ApplicationMustHaveDetail = "Application_MustHave_Detail"; [Description("只能提交状态为:未提交/审核驳回的申请单")] public const string ApplicationSaveStatusError = "Application_Save_StatusError"; [Description("提交申请单币别需与原申请单币别一致")] public const string ApplicationSaveCurrencyError = "Application_Save_CurrencyError"; [Description("只能删除状态为‘未提交’或‘驳回’的申请单")] public const string ApplicationDeleteStatusError = "Application_Delete_StatusError"; [Description("申请明细的结算对象需与申请单一致")] public const string ApplicationCustomerDetail = "Application_Customer_Detail"; [Description("申请明细的金额/原始金额不能为零")] public const string AmountCannotBeZero = "Amount_CannotBe_Zero"; [Description("申请明细需要设置原始申请金额")] public const string OriginalAmountCannotBeZero = "OriginalAmount_CannotBe_Zero"; [Description("未能关联明细【{0}】的费用信息")] public const string ApplicationCannotRelateFee = "Application_Cannot_Relate_Fee"; [Description("费用【{0}】的金额已全部申请完毕")] public const string FeeNobalance = "Fee_Nobalance"; [Description("申请单明细【{0}】的申请金额不能超出原费用的金额")] public const string DetailExceedingLimit = "Detail_Exceeding_Limit"; [Description("提交内容包含正在审批中/已审批的申请单")] public const string ApplicationIsAuditing = "Application_IsAuditing"; [Description("提交数据中包含不在待审批状态的申请单")] public const string ApplicationIsNotAuditing = "Application_IsNot_Auditing"; [Description("费用【{0}】的税率与发票申请的税率不一致")] public const string InvoiceRateFee = "Invoice_Rate_Fee"; [Description("模板字段定义文件不存在")] public const string TemplateFileNotFound = "Template_File_NotFound"; [Description("模板")] public const string DefaultTemplateName = "Default_Template_Name"; #endregion #region 结算相关 [Description("结算单已被锁定,禁止提交")] public const string SettlementIsLocked = "Settlement_IsLocked"; [Description("只能选择状态为:审核通过/部分结算的申请")] public const string ApplicationSelectStatusError = "Application_Select_StatusError"; [Description("非原币申请必须指定原始币别")] public const string OriginalCurrencyCanNotNull = "OriginalCurrency_CanNot_Null"; #endregion }