其他分享
首页 > 其他分享> > ccflow 修改流程默认数据存储模式为数据轨迹模式

ccflow 修改流程默认数据存储模式为数据轨迹模式

作者:互联网

1.文件CCFlow\WF\Admin\CCBPMDesigner\NewFlow.htm 中
       //要返回的json.
        function getNewFlowInfo() {
            return {
                FlowName: $('#TB_FlowName').val(),
                TreeFlowSort: GetQueryString('sort'),
                FlowSort: flowSort,
                DataStoreModel: 1,
                PTable: $('#TB_PTable').val(),
                FlowMark: $('#TB_FlowMark').val(),
                FlowFrmType: $('#DDL_FlowFrmType').val(),
                FrmUrl: $('#TB_URL').val(),
                RunModel: model,
                FlowVersion: 1
            };
        }
改为
       //要返回的json.
        function getNewFlowInfo() {
            return {
                FlowName: $('#TB_FlowName').val(),
                TreeFlowSort: GetQueryString('sort'),
                FlowSort: flowSort,
                DataStoreModel: 0,
                PTable: $('#TB_PTable').val(),
                FlowMark: $('#TB_FlowMark').val(),
                FlowFrmType: $('#DDL_FlowFrmType').val(),
                FrmUrl: $('#TB_URL').val(),
                RunModel: model,
                FlowVersion: 1
            };
        }
2.文件components\bp.wf\httphandler\wf_admin_ccbpmdesigner.cs 中
string flowNo = BP.WF.Template.TemplateGlo.NewFlow(FlowSort, FlowName,
                        Template.DataStoreModel.SpecTable, PTable, FlowMark, FlowVersion);
改为
string flowNo = BP.WF.Template.TemplateGlo.NewFlow(FlowSort, FlowName,
                        (Template.DataStoreModel)DataStoreModel, PTable, FlowMark, FlowVersion);

 

标签:FlowName,val,数据,PTable,模式,DataStoreModel,ccflow,FlowMark,TB
来源: https://www.cnblogs.com/myflow/p/12100179.html