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

nimeijian 2019-12-26

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);

相关推荐