|
|
SQL= SELECT NodeID, FK_Flow, FlowName, Name, WhoExeIt, CASE WhoExeIt WHEN 0 THEN '操作员执行' WHEN 1 THEN '机器执行' WHEN 2 THEN '混合执行' WHEN NULL THEN '操作员执行' END "WhoExeItText", ReadReceipts, CASE ReadReceipts WHEN 0 THEN '不回执' WHEN 1 THEN '自动回执' WHEN 2 THEN '由上一节点表单字段决定' WHEN 3 THEN '由SDK开发者参数决定' WHEN NULL THEN '不回执' END "ReadReceiptsText", CancelRole, CASE CancelRole WHEN 0 THEN '上一步可以撤销' WHEN 1 THEN '不能撤销' WHEN 2 THEN '上一步与开始节点可以撤销' WHEN 3 THEN '指定的节点可以撤销' WHEN NULL THEN '上一步可以撤销' END "CancelRoleText", IFNULL( CancelDisWhenRead,0) CancelDisWhenRead, IFNULL( IsOpenOver,0) IsOpenOver, IFNULL( ResetAccepter,0) ResetAccepter, IFNULL( IsSendDraftSubFlow,0) IsSendDraftSubFlow, IFNULL( IsGuestNode,0) IsGuestNode, IFNULL( IsYouLiTai,0) IsYouLiTai, FocusField, FWCSta, FWCAth, DeliveryWay, SelfParas, Step, Tip, RunModel, CASE RunModel WHEN 0 THEN '线形' WHEN 1 THEN '合流' WHEN 2 THEN '分流' WHEN 3 THEN '分合流' WHEN 4 THEN '同表单' WHEN 5 THEN '异表单' WHEN NULL THEN '线形' END "RunModelText", IFNULL( PassRate ,100) PassRate, IFNULL(ThreadIsCanDel,1) ThreadIsCanDel, IFNULL(ThreadIsCanAdd,1) ThreadIsCanAdd, IFNULL( ThreadIsCanShift,0) ThreadIsCanShift, USSWorkIDRole, CASE USSWorkIDRole WHEN 0 THEN '仅生成一个WorkID' WHEN 1 THEN '按接受人生成WorkID' WHEN NULL THEN '仅生成一个WorkID' END "USSWorkIDRoleText", IFNULL( IsSendBackNode,0) IsSendBackNode, IFNULL( AutoJumpRole0,0) AutoJumpRole0, IFNULL( AutoJumpRole1,0) AutoJumpRole1, IFNULL( AutoJumpRole2,0) AutoJumpRole2, IFNULL( WhenNoWorker,0) WhenNoWorker, AutoJumpExp, SkipTime, CASE SkipTime WHEN 0 THEN '上一个节点发送时' WHEN 1 THEN '当前节点工作打开时' WHEN NULL THEN '上一个节点发送时' END "SkipTimeText",IFNULL(SendLab, '发送') SendLab, SendJS,IFNULL(SaveLab, '保存') SaveLab, IFNULL(SaveEnable,1) SaveEnable,IFNULL(CCLab, '抄送') CCLab, CCRole, CASE CCRole WHEN 0 THEN '不能抄送' WHEN 1 THEN '手工抄送' WHEN 2 THEN '自动抄送' WHEN 3 THEN '手工与自动' WHEN 4 THEN '按表单SysCCEmps字段计算' WHEN 5 THEN '在发送前打开抄送窗口' WHEN NULL THEN '不能抄送' END "CCRoleText",IFNULL(QRCodeLab, '二维码') QRCodeLab, QRCodeRole, CASE QRCodeRole WHEN 0 THEN '无' WHEN 1 THEN '查看流程表单-无需权限' WHEN 2 THEN '查看流程表单-需要登录' WHEN 3 THEN '外部账户协作模式处理工作' WHEN NULL THEN '无' END "QRCodeRoleText",IFNULL(ShiftLab, '移交') ShiftLab, IFNULL( ShiftEnable,0) ShiftEnable,IFNULL(DelLab, '删除') DelLab, DelEnable, CASE DelEnable WHEN 0 THEN '不能删除' WHEN 1 THEN '逻辑删除' WHEN 2 THEN '记录日志方式删除' WHEN 3 THEN '彻底删除' WHEN 4 THEN '让用户决定删除方式' WHEN NULL THEN '不能删除' END "DelEnableText",IFNULL(EndFlowLab, '结束流程') EndFlowLab, IFNULL( EndFlowEnable,0) EndFlowEnable,IFNULL(ShowParentFormLab, '查看父流程') ShowParentFormLab, IFNULL( ShowParentFormEnable,0) ShowParentFormEnable,IFNULL(OfficeBtnLab, '打开公文') OfficeBtnLab, OfficeBtnEnable, CASE OfficeBtnEnable WHEN 0 THEN '不可用' WHEN 1 THEN '可编辑' WHEN 2 THEN '不可编辑' WHEN NULL THEN '不可用' END "OfficeBtnEnableText", OfficeFileType, CASE OfficeFileType WHEN 0 THEN 'word文件' WHEN 1 THEN 'WPS文件' WHEN NULL THEN 'word文件' END "OfficeFileTypeText", OfficeBtnLocal, CASE OfficeBtnLocal WHEN 0 THEN '工具栏上' WHEN 1 THEN '表单标签(divID=GovDocFile)' WHEN NULL THEN '工具栏上' END "OfficeBtnLocalText",IFNULL(TrackLab, '轨迹') TrackLab, IFNULL(TrackEnable,1) TrackEnable,IFNULL(HungLab, '挂起') HungLab, IFNULL( HungEnable,0) HungEnable,IFNULL(SearchLab, '查询') SearchLab, IFNULL( SearchEnable,0) SearchEnable,IFNULL(TCLab, '流转自定义') TCLab, IFNULL( TCEnable,0) TCEnable,IFNULL(FrmDBVerLab, '数据版本') FrmDBVerLab, IFNULL( FrmDBVerEnable,0) FrmDBVerEnable, IFNULL( FrmDBVerMyView,0) FrmDBVerMyView, IFNULL( FrmDBVerMyCC,0) FrmDBVerMyCC,IFNULL(FrmDBRemarkLab, '数据批阅') FrmDBRemarkLab, FrmDBRemarkEnable, CASE FrmDBRemarkEnable WHEN 0 THEN '禁用' WHEN 1 THEN '可编辑' WHEN 2 THEN '不可编辑' WHEN NULL THEN '禁用' END "FrmDBRemarkEnableText",IFNULL(PRILab, '重要性') PRILab, PRIEnable, CASE PRIEnable WHEN 0 THEN '不启用' WHEN 1 THEN '只读' WHEN 2 THEN '编辑' WHEN NULL THEN '不启用' END "PRIEnableText",IFNULL(CHLab, '节点时限') CHLab, CHRole, CASE CHRole WHEN 0 THEN '禁用' WHEN 1 THEN '启用' WHEN 2 THEN '只读' WHEN 3 THEN '启用并可以调整流程应完成时间' WHEN NULL THEN '禁用' END "CHRoleText",IFNULL(AllotLab, '分配') AllotLab, IFNULL( AllotEnable,0) AllotEnable,IFNULL(FocusLab, '关注') FocusLab, IFNULL( FocusEnable,0) FocusEnable,IFNULL(ConfirmLab, '确认') ConfirmLab, IFNULL( ConfirmEnable,0) ConfirmEnable,IFNULL(ListLab, '列表') ListLab, IFNULL(ListEnable,1) ListEnable,IFNULL(BatchLab, '批量审核') BatchLab, IFNULL( BatchEnable,0) BatchEnable,IFNULL(NoteLab, '备注') NoteLab, NoteEnable, CASE NoteEnable WHEN 0 THEN '禁用' WHEN 1 THEN '启用' WHEN 2 THEN '只读' WHEN NULL THEN '禁用' END "NoteEnableText",IFNULL(HelpLab, '帮助') HelpLab, HelpRole, CASE HelpRole WHEN 0 THEN '禁用' WHEN 1 THEN '启用' WHEN 2 THEN '强制提示' WHEN 3 THEN '选择性提示' WHEN NULL THEN '禁用' END "HelpRoleText",IFNULL(ScripLab, '小纸条') ScripLab, ScripRole, CASE ScripRole WHEN 0 THEN '禁用' WHEN 1 THEN '按钮启用' WHEN 2 THEN '发送启用' WHEN NULL THEN '禁用' END "ScripRoleText",IFNULL(FlowBBSLab, '评论') FlowBBSLab, FlowBBSRole, CASE FlowBBSRole WHEN 0 THEN '禁用' WHEN 1 THEN '启用' WHEN 2 THEN '只读' WHEN NULL THEN '禁用' END "FlowBBSRoleText",IFNULL(IMLab, '即时通讯') IMLab, IMEnable, CASE IMEnable WHEN 0 THEN '禁用' WHEN 1 THEN '启用' WHEN NULL THEN '禁用' END "IMEnableText",IFNULL(NextLab, '下一条') NextLab, NextRole, CASE NextRole WHEN 0 THEN '禁用' WHEN 1 THEN '相同节点' WHEN 2 THEN '相同流程' WHEN 3 THEN '相同的人' WHEN 4 THEN '不限流程' WHEN NULL THEN '禁用' END "NextRoleText",IFNULL(ThreadLab, '子线程') ThreadLab, IFNULL( ThreadEnable,0) ThreadEnable, ThreadKillRole, CASE ThreadKillRole WHEN 0 THEN '不能删除' WHEN 1 THEN '手工删除' WHEN 2 THEN '自动删除' WHEN NULL THEN '不能删除' END "ThreadKillRoleText",IFNULL(JumpWayLab, '跳转') JumpWayLab, JumpWay, CASE JumpWay WHEN 0 THEN '不能跳转' WHEN 1 THEN '只能向后跳转' WHEN 2 THEN '只能向前跳转' WHEN 3 THEN '任意节点跳转' WHEN 4 THEN '按指定规则跳转' WHEN NULL THEN '不能跳转' END "JumpWayText", JumpToNodes,IFNULL(PressLab, '催办') PressLab, IFNULL(PressEnable,1) PressEnable,IFNULL(ReturnLab, '退回') ReturnLab, ReturnRole, CASE ReturnRole WHEN 0 THEN '不能退回' WHEN 1 THEN '只能退回上一个节点' WHEN 2 THEN '可退回以前任意节点' WHEN 3 THEN '可退回指定的节点' WHEN 4 THEN '由流程图设计的退回路线决定' WHEN NULL THEN '不能退回' END "ReturnRoleText", ReturnAlert, IsBackTracking, CASE IsBackTracking WHEN 0 THEN '不允许原路返回' WHEN 1 THEN '由退回人决定' WHEN 2 THEN '强制原路返回' WHEN NULL THEN '不允许原路返回' END "IsBackTrackingText", IFNULL( IsBackResetAccepter,0) IsBackResetAccepter, IsKillEtcThread, CASE IsKillEtcThread WHEN 0 THEN '不删除其它的子线程' WHEN 1 THEN '删除其它的子线程' WHEN 2 THEN '由子线程退回人决定是否删除' WHEN NULL THEN '不删除其它的子线程' END "IsKillEtcThreadText", IFNULL( ReturnCHEnable,0) ReturnCHEnable, ReturnOneNodeRole, CASE ReturnOneNodeRole WHEN 0 THEN '不启用' WHEN 1 THEN '按照[退回信息填写字段]作为退回意见直接退回' WHEN 2 THEN '按照[审核组件]填写的信息作为退回意见直接退回' WHEN NULL THEN '不启用' END "ReturnOneNodeRoleText", ReturnField, ReturnReasonsItems,IFNULL(PrintHtmlLab, '打印Html') PrintHtmlLab, IFNULL( PrintHtmlEnable,0) PrintHtmlEnable, IFNULL( PrintHtmlMyView,0) PrintHtmlMyView, IFNULL( PrintHtmlMyCC,0) PrintHtmlMyCC,IFNULL(PrintPDFLab, '打印pdf') PrintPDFLab, IFNULL( PrintPDFEnable,0) PrintPDFEnable, IFNULL( PrintPDFMyView,0) PrintPDFMyView, IFNULL( PrintPDFMyCC,0) PrintPDFMyCC, PrintPDFModle, CASE PrintPDFModle WHEN 0 THEN '全部打印' WHEN 1 THEN '单个表单打印(针对树形表单)' WHEN NULL THEN '全部打印' END "PrintPDFModleText", ShuiYinModle,IFNULL(PrintZipLab, '打包下载') PrintZipLab, IFNULL( PrintZipEnable,0) PrintZipEnable, IFNULL( PrintZipMyView,0) PrintZipMyView, IFNULL( PrintZipMyCC,0) PrintZipMyCC,IFNULL(PrintDocLab, '打印单据') PrintDocLab, IFNULL( PrintDocEnable,0) PrintDocEnable,IFNULL(HuiQianLab, '会签') HuiQianLab, HuiQianRole, CASE HuiQianRole WHEN 0 THEN '不启用' WHEN 1 THEN '协作(同事)模式' WHEN 4 THEN '组长(领导)模式' WHEN NULL THEN '不启用' END "HuiQianRoleText",IFNULL(AddLeaderLab, '加主持人') AddLeaderLab, IFNULL( AddLeaderEnable,0) AddLeaderEnable, HuiQianLeaderRole, CASE HuiQianLeaderRole WHEN 0 THEN '只有一个组长' WHEN 1 THEN '最后一个组长发送' WHEN 2 THEN '任意组长可以发送' WHEN NULL THEN '只有一个组长' END "HuiQianLeaderRoleText" FROM WF_Node WHERE (1=1) AND WF_Node.NodeID=@NodeID Exception=Unknown column 'ResetAccepter' in 'field list'
|