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.ByDept = 1,
// 按SQL
DeliveryWay.BySQL = 2,
// 按本节点绑定的人员
DeliveryWay.ByBindEmp = 3,
// 由上一步发送人选择
DeliveryWay.BySelected = 4,
// 按表单选择人员
DeliveryWay.ByPreviousNodeFormEmpsField = 5,
// 与上一节点的人员相同
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,
// 按照ccflow的BPM模式处理
DeliveryWay.ByCCFlowBPM = 100
}
//表单模式
if (typeof FormType == "undefined") {
var FormType = {}
//傻瓜表单
FormType.FoolForm = 0,
///
/// 自由表单.
///
FormType.FreeForm = 1,
///
/// 嵌入式表单.
///
FormType.SelfForm = 2,
///
/// SDKForm
///
FormType.SDKForm = 3,
///
/// SL表单
///
FormType.SLForm = 4,
///
/// 表单树
///
FormType.SheetTree = 5,
///
/// 动态表单树
///
FormType.SheetAutoTree = 6,
///
/// 公文表单
///
FormType.WebOffice = 7,
///
/// Excel表单
///
FormType.ExcelForm = 8,
///
/// Word表单
///
FormType.WordForm = 9,
///
/// 傻瓜轨迹表单
///
FormType.FoolTruck = 10,
///
/// 表单库的表单
///
FormType.RefOneFrmTree = 11,
///
/// 禁用(对多表单流程有效)
///
FormType.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
}