|
@@ -0,0 +1,150 @@
|
|
|
+import 'package:fis_i18n/types.dart';
|
|
|
+
|
|
|
+/// 组织模块
|
|
|
+class OrganizationModule extends ModuleBase {
|
|
|
+ OrganizationModule._({
|
|
|
+ required this.upperOrg,
|
|
|
+ required this.orgName,
|
|
|
+ required this.orgLogo,
|
|
|
+ required this.serveObj,
|
|
|
+ required this.locatedArea,
|
|
|
+ required this.avatar,
|
|
|
+ required this.nickName,
|
|
|
+ required this.positionIdentity,
|
|
|
+ required this.workTitle,
|
|
|
+ required this.orgNameInputTip,
|
|
|
+ required this.areaSelectionTip,
|
|
|
+ required this.orgSelectionTip,
|
|
|
+ required this.modifyWorkTitle,
|
|
|
+ required this.addWorkTitle,
|
|
|
+ required this.workTitleName,
|
|
|
+ required this.basicInfo,
|
|
|
+ required this.orgStructureInfo,
|
|
|
+ required this.department,
|
|
|
+ required this.orgStructure,
|
|
|
+ required this.editOrgStructure,
|
|
|
+ required this.addOrgStructure,
|
|
|
+ required this.departmentName,
|
|
|
+ required this.selectDepartmentTip,
|
|
|
+ required this.selectWorkPostIdentify,
|
|
|
+ required this.workTitleSelectionTip,
|
|
|
+ required this.loadOrgInfoFailedTip,
|
|
|
+ });
|
|
|
+
|
|
|
+ static const ModuleName = "organization";
|
|
|
+
|
|
|
+ factory OrganizationModule(Map<String, dynamic> map) {
|
|
|
+ return OrganizationModule._(
|
|
|
+ upperOrg: map.pick("upperOrg"),
|
|
|
+ orgName: map.pick("orgName"),
|
|
|
+ orgLogo: map.pick("orgLogo"),
|
|
|
+ serveObj: map.pick("serveObj"),
|
|
|
+ locatedArea: map.pick("locatedArea"),
|
|
|
+ avatar: map.pick("avatar"),
|
|
|
+ nickName: map.pick("nickName"),
|
|
|
+ positionIdentity: map.pick("positionIdentity"),
|
|
|
+ workTitle: map.pick("workTitle"),
|
|
|
+ orgNameInputTip: map.pick("orgNameInputTip"),
|
|
|
+ areaSelectionTip: map.pick("areaSelectionTip"),
|
|
|
+ orgSelectionTip: map.pick("orgSelectionTip"),
|
|
|
+ modifyWorkTitle: map.pick("modifyWorkTitle"),
|
|
|
+ addWorkTitle: map.pick("addWorkTitle"),
|
|
|
+ workTitleName: map.pick("workTitleName"),
|
|
|
+ basicInfo: map.pick("basicInfo"),
|
|
|
+ orgStructureInfo: map.pick("orgStructureInfo"),
|
|
|
+ department: map.pick("department"),
|
|
|
+ orgStructure: map.pick("orgStructure"),
|
|
|
+ editOrgStructure: map.pick("editOrgStructure"),
|
|
|
+ addOrgStructure: map.pick("addOrgStructure"),
|
|
|
+ departmentName: map.pick("departmentName"),
|
|
|
+ selectDepartmentTip: map.pick("selectDepartmentTip"),
|
|
|
+ selectWorkPostIdentify: map.pick("selectWorkPostIdentify"),
|
|
|
+ workTitleSelectionTip: map.pick("workTitleSelectionTip"),
|
|
|
+ loadOrgInfoFailedTip: map.pick("loadOrgInfoFailedTip"),
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ /// 上级机构
|
|
|
+ final FTrStr upperOrg;
|
|
|
+
|
|
|
+ /// 机构名称
|
|
|
+ final FTrStr orgName;
|
|
|
+
|
|
|
+ /// 机构标志
|
|
|
+ final FTrStr orgLogo;
|
|
|
+
|
|
|
+ /// 服务对象
|
|
|
+ final FTrStr serveObj;
|
|
|
+
|
|
|
+ /// 所属地区
|
|
|
+ final FTrStr locatedArea;
|
|
|
+
|
|
|
+ /// 头像
|
|
|
+ final FTrStr avatar;
|
|
|
+
|
|
|
+ /// 昵称
|
|
|
+ final FTrStr nickName;
|
|
|
+
|
|
|
+ /// 岗位身份
|
|
|
+ final FTrStr positionIdentity;
|
|
|
+
|
|
|
+ /// 职称
|
|
|
+ final FTrStr workTitle;
|
|
|
+
|
|
|
+ /// 请输入机构名
|
|
|
+ final FTrStr orgNameInputTip;
|
|
|
+
|
|
|
+ /// 选择地区
|
|
|
+ final FTrStr areaSelectionTip;
|
|
|
+
|
|
|
+ /// 选择机构
|
|
|
+ final FTrStr orgSelectionTip;
|
|
|
+
|
|
|
+ /// 修改职称
|
|
|
+ final FTrStr modifyWorkTitle;
|
|
|
+
|
|
|
+ /// 添加职称
|
|
|
+ final FTrStr addWorkTitle;
|
|
|
+
|
|
|
+ /// 职称名称
|
|
|
+ final FTrStr workTitleName;
|
|
|
+
|
|
|
+ /// 基础信息
|
|
|
+ final FTrStr basicInfo;
|
|
|
+
|
|
|
+ /// 组织架构信息
|
|
|
+ final FTrStr orgStructureInfo;
|
|
|
+
|
|
|
+ /// 部门
|
|
|
+ final FTrStr department;
|
|
|
+
|
|
|
+ /// 组织架构
|
|
|
+ final FTrStr orgStructure;
|
|
|
+
|
|
|
+ /// 修改组织架构
|
|
|
+ final FTrStr editOrgStructure;
|
|
|
+
|
|
|
+ /// 添加组织架构
|
|
|
+ final FTrStr addOrgStructure;
|
|
|
+
|
|
|
+ /// 部门名称
|
|
|
+ final FTrStr departmentName;
|
|
|
+
|
|
|
+ /// 请选择部门
|
|
|
+ final FTrStr selectDepartmentTip;
|
|
|
+
|
|
|
+ /// 请选择岗位身份
|
|
|
+ final FTrStr selectWorkPostIdentify;
|
|
|
+
|
|
|
+ /// 请选择职称
|
|
|
+ final FTrStr workTitleSelectionTip;
|
|
|
+
|
|
|
+ /// 加载组织信息失败!
|
|
|
+ final FTrStr loadOrgInfoFailedTip;
|
|
|
+
|
|
|
+ @override
|
|
|
+ getProp(String propName) {
|
|
|
+ // TODO: implement getProp
|
|
|
+ throw UnimplementedError();
|
|
|
+ }
|
|
|
+}
|