if (typeof RunModel == "undefined") { var RunModel = {} // 普通 RunModel.Ordinary = 0, // 合流 RunModel.HL = 1, // 分流 RunModel.FL = 2, // 分合流 RunModel.FHL = 3, // 子线程 RunModel.SubThread = 4 } function getRunModelName(keyValue) { switch (keyValue) { case 0: return "Ordinary"; case 1: return "HL"; case 2: return "FL"; case 3: return "FHL"; case 4: return "SubThread"; default: return "Ordinary"; } } //投递方式 if (typeof DeliveryWay == "undefined") { var DeliveryWay = {} // 按岗位(以部门为纬度) DeliveryWay.ByStation = 0, //在指定的部门里按照岗位计算. DeliveryWay.FindSpecDeptEmpsInStationlist = 19, // 按部门 DeliveryWay.ByDept = 1, // 按SQL DeliveryWay.BySQL = 2, // 按本节点绑定的人员 DeliveryWay.ByBindEmp = 3, // 由上一步发送人选择 DeliveryWay.BySelected = 4, //所有人员都可以发起 DeliveryWay.BySelected_1 = 41, // 按表单选择人员 DeliveryWay.ByPreviousNodeFormEmpsField = 5, DeliveryWay.ByPreviousNodeFormDepts = 52, //按表单选择岗位 DeliveryWay.ByPreviousNodeFormStationsAI = 53, DeliveryWay.ByPreviousNodeFormStationsOnly = 54, //选择其他组织的联络员 DeliveryWay.BySelectEmpByOfficer = 55, //按表单选择部门 // 与上一节点的人员相同 DeliveryWay.ByPreviousNodeEmp = 6, // 与开始节点的人员相同 DeliveryWay.ByStarter = 7, // 与指定节点的人员相同 DeliveryWay.BySpecNodeEmp = 8, // 按岗位与部门交集计算 DeliveryWay.ByDeptAndStation = 9, // 按岗位计算(以部门集合为纬度) DeliveryWay.ByStationAndEmpDept = 10, // 按指定节点的人员或者指定字段作为人员的岗位计算 DeliveryWay.BySpecNodeEmpStation = 11, // 按SQL确定子线程接受人与数据源 DeliveryWay.BySQLAsSubThreadEmpsAndData = 12, // 按明细表确定子线程接受人 DeliveryWay.ByDtlAsSubThreadEmps = 13, // 仅按岗位计算 DeliveryWay.ByStationOnly = 14, // FEE计算 DeliveryWay.ByFEE = 15, // 按绑定部门计算,该部门一人处理标识该工作结束(子线程) DeliveryWay.BySetDeptAsSubthread = 16, // 按SQL模版计算 DeliveryWay.BySQLTemplate = 17, // 从人员到人员 DeliveryWay.ByFromEmpToEmp = 18, //找本部门范围内的岗位集合里面的人员 DeliveryWay.FindSpecDeptEmps = 19, //按项目组内的岗位计算 DeliveryWay.ByStationForPrj = 20, //由上一节点发送人通过“人员选择器”选择接受人 DeliveryWay.BySelectedForPrj = 21, DeliveryWay.BySelectedOrgs = 22, //找部门负责人 DeliveryWay.ByDeptLeader = 23, //找直属领导. DeliveryWay.ByEmpLeader = 50, //找分管领导 - ShipLeader ccflow不负责维护. DeliveryWay.ByDeptShipLeader = 28, //按照用户组计算(全集团) DeliveryWay.ByTeamOrgOnly = 24, //仅按用户组计算. DeliveryWay.ByTeamOnly = 25, // 按照用户组计算(本部门范围内) DeliveryWay.ByTeamDeptOnly = 26, //按照集团模式的选择人接收器. 2020.06 for xinxizhongxin. DeliveryWay.BySelectedEmpsOrgModel = 43, //按照自定义url. DeliveryWay.BySelfUrl = 44, //按API/URL DeliveryWay.ByAPIUrl = 45, //发送人的上级部门的负责人 DeliveryWay.BySenderParentDeptLeader = 46, //发送人上级部门指定的岗位 DeliveryWay.BySenderParentDeptStations = 47, //外部用户可以发起 DeliveryWay.ByGuest = 51, // 按照ccflow的BPM模式处理 DeliveryWay.ByCCFlowBPM = 100 } //选择人接受范围限定规则. if (typeof SelectorModel == "undefined") { var SelectorModel = {} SelectorModel.Station = 0, SelectorModel.Dept = 1, SelectorModel.Emp = 2, SelectorModel.SQL = 3, SelectorModel.SQLTemplate = 4, SelectorModel.GenerUserSelecter = 5, SelectorModel.DeptAndStation = 6, SelectorModel.Url = 7, SelectorModel.AccepterOfDeptStationEmp = 8, SelectorModel.AccepterOfDeptStationOfCurrentOper = 9, SelectorModel.TeamOrgOnly = 10, SelectorModel.TeamOnly = 11, SelectorModel.TeamDeptOnly = 12, SelectorModel.ByStationAI = 13, SelectorModel.ByWebAPI = 14, SelectorModel.ByMyDeptEmps = 15 } //发送阻塞规则. if (typeof BlockModel == "undefined") { var BlockModel = {} /// /// 不阻塞 /// BlockModel.None = 0, /// /// 当前节点的有未完成的子线程 /// BlockModel.CurrNodeAll = 1, /// /// 按照约定的格式阻塞. /// BlockModel.SpecSubFlow = 2, /// /// 按照配置的sql阻塞,返回大于等于1表示阻塞,否则不阻塞. /// BlockModel.BySQL = 3, /// /// 按照表达式阻塞,表达式类似方向条件的表达式. /// BlockModel.ByExp = 4, /// /// 为父流程时,指定的子流程未运行到指定节点,则阻塞 /// BlockModel.SpecSubFlowNode = 5, /// /// 为平级子流程时,指定的子流程未运行到指定节点,则阻塞 /// BlockModel.SameLevelSubFlow = 6, /// /// 其他选项设置 /// BlockModel.ByOtherBlock = 7 } //流程设计模式. if (typeof FlowDevModel == "undefined") { var FlowDevModel = {} /// /// 专业模式 /// FlowDevModel.Prefessional = 0, /// /// 极简模式 /// FlowDevModel.JiJian = 1, /// /// 累加模式 /// FlowDevModel.FoolTruck = 2, /// /// 绑定单表单 /// FlowDevModel.RefOneFrmTree = 3, /// /// 绑定多表单 /// FlowDevModel.FrmTree = 4, /// /// SDK表单 /// FlowDevModel.SDKFrm = 5, /// /// 嵌入式表单 /// FlowDevModel.SelfFrm = 6, /// /// 物联网流程 /// FlowDevModel.InternetOfThings = 7, /// /// 决策树流程 /// FlowDevModel.Tree = 8 } //多人处理规则. if (typeof TodolistModel == "undefined") { var TodolistModel = {} /// /// 抢办(谁抢到谁来办理,办理完后其他人就不能办理.) /// TodolistModel.QiangBan = 0, /// /// 协作(没有处理顺序,接受的人都要去处理,由最后一个人发送到下一个节点) /// TodolistModel.Teamup = 1, /// /// 队列(按照顺序处理,有最后一个人发送到下一个节点) /// TodolistModel.Order = 2, /// /// 共享模式(需要申请,申请后才能执行) /// TodolistModel.Sharing = 3, /// /// 协作组长模式 /// TodolistModel.TeamupGroupLeader = 4 } //考核规则. if (typeof CHWay == "undefined") { var CHWay = {} /// /// 不考核 /// CHWay.None = 0, /// /// 按照时效考核 /// CHWay.ByTime = 1, /// /// 按工作量考核 /// CHWay.ByWorkNum = 2, /// /// 是否是考核质量点 /// CHWay.IsQuality = 3 } //超时处理规则. if (typeof OvertimeRole == "undefined") { var OvertimeRole = {} /// /// 不设置 /// OvertimeRole.None = 0, /// /// 自动向下运动 /// OvertimeRole.AutoDown = 1, /// /// 跳转到指定节点 /// OvertimeRole.JumpToNode = 2, /// /// 移交给指定的人员 /// OvertimeRole.TurnToEmp = 3, /// /// 给指定的人员发送消息 /// OvertimeRole.SendMessageToEmp = 4, /// /// 删除流程 /// OvertimeRole.DeleteFlow = 5, /// /// 执行SQL /// OvertimeRole.RunSql = 6 } //批处理规则 if (typeof BatchRole == "undefined") { var BatchRole = {} /// 不处理 BatchRole.None = 0, /// 审核组件模式 BatchRole.WorkCheckModel = 1, /// 审核字段分组模式 BatchRole.Group = 2, //自定义. BatchRole.Self = 3 } //发送后转向 if (typeof TurnToDeal == "undefined") { var TurnToDeal = {} /// /// 提示CCFlow默认信息 /// TurnToDeal.CCFlowMsg = 0, /// /// 提示指定信息 /// TurnToDeal.SpecMsg = 1, /// /// 转向指定的URL /// TurnToDeal.SpecUrl = 2, /// /// 发送后关闭 /// TurnToDeal.TurntoClose = 3, /// /// 按条件转向 /// TurnToDeal.TurnToByCond = 4 } //导入 if (typeof Imp == "undefined") { var Imp = {} /// /// 本地导入 /// Imp.localhostImp = 0, /// /// 节点表单导入 /// Imp.NodeFrmImp = 1, /// /// 其他流程导入 /// Imp.FlowFrmImp = 2, /// /// 表单库导入 /// Imp.FrmLibraryImp = 4, /// /// 外部数据源导入 /// Imp.ExternalDataSourseImp = 5, /// /// 导出表单模板 /// Imp.ExportFrm = 6, /// /// WebAPI导入 /// Imp.WebAPIImp = 7 } //方向条件控制 if (typeof DirCondModel == "undefined") { var DirCondModel = {} /// /// 按照方向条件计算的 /// DirCondModel.ByLineCond = 0, /// /// 主观选择:下拉框模式 /// DirCondModel.ByDDLSelected = 2, /// /// 由连接线控制 /// DirCondModel.ByPopSelect = 1, /// /// 主观选择: 按钮模式 /// DirCondModel.ByButtonSelected = 3 } //流程计划时间 if (typeof SDTOfFlow == "undefined") { var SDTOfFlow = {} /// /// 不使用 /// SDTOfFlow.None = 0, /// /// 按照节点表单的日期计算 /// SDTOfFlow.NodeFrmDT = 1, /// /// 按照sql计算 /// SDTOfFlow.SQLDT = 2, /// /// 按照所有节点的时间之和计算 /// SDTOfFlow.NodeSumDT = 3, /// /// 按照规定的天数计算 /// SDTOfFlow.DaysDT = 4 ///// ///// 按照时间规则计算 ///// //SDTOfFlow.TimeDT = 5, ///// ///// 为子流程时的规则 ///// //SDTOfFlow.ChildFlowDT = 6, ///// ///// 按照发起字段不能重复规则 ///// //SDTOfFlow.AttrNonredundant = 7 } //发起限制规则 if (typeof StartLimitRole == "undefined") { var StartLimitRole = {} /// /// 不限制 /// StartLimitRole.None = 0, /// /// 一人一天一次 /// StartLimitRole.Day = 1, /// /// 一人一周一次 /// StartLimitRole.Week = 2, /// /// 一人一月一次 /// StartLimitRole.Month = 3, /// /// 一人一季度一次 /// StartLimitRole.JD = 4, /// /// 一人一年一次 /// StartLimitRole.Year = 5, /// /// 发起的列不能重复,(多个列可以用逗号分开) /// StartLimitRole.ColNotExit = 6, /// /// 设置的SQL数据源为空,或者返回结果为零时可以启动. /// StartLimitRole.ResultIsZero = 7, /// /// 设置的SQL数据源为空,或者返回结果为零时不可以启动. /// StartLimitRole.ResultIsNotZero = 8, /// /// 为子流程时仅仅只能被调用1次. /// StartLimitRole.OnlyOneSubFlow = 9 } //自动发起 if (typeof AutoStart == "undefined") { var AutoStart = {} /// /// 手工启动(默认) /// AutoStart.None = 0, /// /// 按照指定的人员 /// AutoStart.ByDesignee = 1, /// /// 数据集按时启动 /// AutoStart.ByTineData = 2, /// /// 触发试启动 /// AutoStart.ByTrigger = 3, AutoStart.ByDesigneeAdv = 4, AutoStart.ByDesigneeAdminSendTo02Node = 5 } //前置导航 if (typeof StartGuideWay == "undefined") { var StartGuideWay = {} //傻瓜表单 StartGuideWay.None = 0, /// /// SQL单条模式. /// StartGuideWay.BySQLOne = 1, /// /// 按系统的URL-(子父流程)多条模式. /// StartGuideWay.SubFlowGuide = 2, /// /// 按系统的URL-(实体记录)单条模式 /// StartGuideWay.BySystemUrlOneEntity = 3, /// /// 按系统的URL-(实体记录)多条模式 /// StartGuideWay.SubFlowGuideEntity = 4, /// /// 历史数据 /// StartGuideWay.ByHistoryUrl = 5, /// /// SQL多条模式 /// StartGuideWay.BySQLMulti = 6, /// /// 按自定义的Url /// StartGuideWay.BySelfUrl = 7, /// /// 按照用户选择的表单 /// StartGuideWay.ByFrms = 8, /// /// 父子流程模式 /// StartGuideWay.ByParentFlowModel = 9, /// /// 子流程实例列表模式-多条 /// StartGuideWay.ByChildFlowModel = 10 } //流程表单模式 if (typeof FlowFrmType == "undefined") { var FlowFrmType = {} //完整版-2019年更早版本 FlowFrmType.Ver2019Earlier = 0, /// /// 开发者表单. /// FlowFrmType.DeveloperFrm = 1, /// /// 傻瓜表单. /// FlowFrmType.FoolFrm = 2, /// /// 自定义(嵌入)表单 /// FlowFrmType.SelfFrm = 3, /// /// SDK表单 /// FlowFrmType.SDKFrm = 4 } //表单应用类型. if (typeof EntityType == "undefined") { var EntityType = {} //独立表单 EntityType.SingleFrm = 0, /// /// 单据. /// EntityType.FrmBill = 1, /// /// 实体. /// EntityType.FrmDict = 2, /// /// 实体树 /// EntityType.EntityTree = 3 } //表单类型 if (typeof FrmType == "undefined") { var FrmType = {} //傻瓜表单 FrmType.FoolForm = 0, /// /// 自由表单. /// FrmType.FreeForm = 1, /// /// Url. /// FrmType.Url = 3, /// /// Word类型表单 /// FrmType.WordFrm = 4, /// /// VSTOExccel模式 /// FrmType.VSTOForExcel = 6, /// /// 实体类 /// FrmType.SheetAutoTree = 7, /// /// 开发者表单 /// FrmType.Develop = 8, /// /// 章节表单 /// FrmType.ChapterFrm = 9 } //节点表单方案 if (typeof FormSlnType == "undefined") { var FormSlnType = {} //傻瓜表单 FormSlnType.FoolForm = 0, /// /// 自由表单. /// FormSlnType.FreeForm = 1, /// /// 嵌入式表单. /// FormSlnType.SelfForm = 2, /// /// SDKForm /// FormSlnType.SDKForm = 3, /// /// SL表单 /// FormSlnType.SLForm = 4, /// /// 表单树 /// FormSlnType.SheetTree = 5, /// /// 动态表单树 /// FormSlnType.SheetAutoTree = 6, /// /// 公文表单 /// FormSlnType.WebOffice = 7, /// /// Excel表单 /// FormSlnType.ExcelForm = 8, /// /// Word表单 /// FormSlnType.WordForm = 9, /// /// 傻瓜轨迹表单 /// FormSlnType.FoolTruck = 10, /// /// 表单库的表单 /// FormSlnType.RefOneFrmTree = 11, /// /// 开发者表单 /// FormSlnType.Developer = 12, /// /// 智能SDK表单 /// FormSlnType.SDKFormSmart = 13, /// /// 章节表单 /// FormSlnType.ChapterFrm = 14, /// /// 禁用(对多表单流程有效) /// FormSlnType.DisableIt = 100 } /// 公文工作模式 if (typeof WebOfficeWorkModel == "undefined") { var WebOfficeWorkModel = {} /// /// 不启用 /// WebOfficeWorkModel.None = 0, /// /// 按钮方式启用 /// WebOfficeWorkModel.Button = 1, /// /// 表单在前 /// WebOfficeWorkModel.FrmFirst = 2, /// /// 文件在前 /// WebOfficeWorkModel.WordFirst = 3 } ///条件数据源 if (typeof ConnDataFrom == "undefined") { var ConnDataFrom = {} /// /// 表单数据 /// ConnDataFrom.NodeForm = 0, /// /// 岗位数据 /// ConnDataFrom.Stas = 1, /// /// Depts /// ConnDataFrom.Depts = 2, /// /// 按sql计算. /// ConnDataFrom.SQL = 3, /// /// 按参数 /// ConnDataFrom.Paras = 4, /// /// 按Url. /// ConnDataFrom.Url = 5, /// /// 按sql模版计算. /// ConnDataFrom.SQLTemplate = 6, /// /// 独立表单 /// ConnDataFrom.StandAloneFrm = 7 } /// /// 条件类型 /// if (typeof CondType == "undefined") { var CondType = {} /// /// 节点完成条件 /// CondType.Node = 0, /// /// 流程条件 /// CondType.Flow = 1, /// /// 方向条件 /// CondType.Dir = 2, /// /// 启动子流程 /// CondType.SubFlow = 3 } // if (typeof RefMethodType == "undefined") { var RefMethodType = {} /// /// 功能 /// RefMethodType.Func = 0, /// /// 模态窗口打开 /// RefMethodType.LinkModel = 1, /// /// 新窗口打开 /// RefMethodType.LinkeWinOpen = 2, /// /// 右侧窗口打开 /// RefMethodType.RightFrameOpen = 3 } /// /// 文件展现方式 /// if (typeof FileShowWay == "undefined") { var FileShowWay = {} /// /// 表格 /// FileShowWay.Table = 0, /// /// 图片 /// FileShowWay.Pict = 1, /// /// 自由模式 /// FileShowWay.Free = 2 } /// /// 附件删除规则 /// if (typeof AthDeleteWay == "undefined") { var AthDeleteWay = {} /// /// 不删除 0 /// AthDeleteWay.None = 0, /// /// 删除所有 1 /// AthDeleteWay.DelAll = 1, /// /// 只删除自己上传 2 /// AthDeleteWay.DelSelf = 2 } /// /// 子流程启动模式 /// if (typeof SubFlowStartModel == "undefined") { var SubFlowStartModel = {} /// /// 单独启动 0 /// SubFlowStartModel.Single = 0, /// /// 简单列表模式批量发起 1 /// SubFlowStartModel.Simple = 1, /// /// 分组模式 2 /// SubFlowStartModel.Group = 2, //树模式. SubFlowStartModel.Tree = 3 } /// /// 子流程显示模式 /// if (typeof SubFlowShowModel == "undefined") { var SubFlowShowModel = {} /// /// 表格模式 0 /// SubFlowShowModel.Table = 0, /// /// 列表模式 1 /// SubFlowShowModel.List = 1 } /// /// 表单启用规则 /// if (typeof BindFrmsNodeEnableRole == "undefined") { var BindFrmsNodeEnableRole = {} /// /// 表格模式 0 /// BindFrmsNodeEnableRole.None = 0, /// /// 列表模式 1 /// BindFrmsNodeEnableRole.ByData = 1, BindFrmsNodeEnableRole.ByPara = 1, BindFrmsNodeEnableRole.ByExp = 1, BindFrmsNodeEnableRole.BySQL = 1, BindFrmsNodeEnableRole.ByData = 1, BindFrmsNodeEnableRole.ByDat1a = 1, BindFrmsNodeEnableRole.ByDa3ta = 1 } if (typeof TemplateFileModel == "undefined") { var TemplateFileModel = {} /// /// 旧版本的rtf模版格式 /// TemplateFileModel.RTF = 0, /// /// VSTo的Word模板方式 /// TemplateFileModel.VSTOForWord = 1, /// /// VSTO的Excel模板方式 /// TemplateFileModel.VSTOForExcel = 2, /// /// WPS的模板方式 /// TemplateFileModel.WPS = 3 }