public void AddConsultation(FLOW_CONSULTATION_T flowConsultation, SubmitData submitData) { //OracleConnection con = ADOHelper.GetOracleConnection(); SMT.FlowWFService.NewFlow.FlowService s2 = new SMT.FlowWFService.NewFlow.FlowService(); s2.AddConsultation(flowConsultation, submitData); #region 旧代码 //if (strIsFlowEngine.ToLower() == "true") //{ // try // { // flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T = // FlowBLL.GetFLOW_FLOWRECORDMASTER_T(flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FLOWRECORDMASTERID); // FlowEngineService.EngineWcfGlobalFunctionClient FlowEngine = new FlowEngineService.EngineWcfGlobalFunctionClient(); // FlowEngineService.CustomUserMsg[] cs = new FlowEngineService.CustomUserMsg[1]; // FlowEngineService.CustomUserMsg cu = new FlowEngineService.CustomUserMsg(); // cu.FormID = flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FORMID; // cu.UserID = flowConsultation.REPLYUSERID; // cs[0] = cu; // ModelInfo modelinfo = FlowBLL.GetSysCodeByModelCode(submitData.ModelCode); // MessageData tmpMessageData = new MessageData("Flow", modelinfo.SysCode, // flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.CREATECOMPANYID, // submitData.ModelCode, modelinfo.ModelName, submitData.FormID, flowConsultation.FLOW_FLOWRECORDDETAIL_T.STATECODE, flowConsultation.FLOW_FLOWRECORDDETAIL_T.CHECKSTATE, "", "", "", ""); // FlowBLL flowBLL = new FlowBLL(); // StringBuilder FlowResultXml = flowBLL.BuildMessageData(tmpMessageData); // //FlowEngine = new FlowEngineService.EngineWcfGlobalFunctionClient(); // //log = FlowEngine.SaveFlowTriggerData(FlowResultXml.ToString(), submitData.XML); // if (!string.IsNullOrEmpty(flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.BUSINESSOBJECT)) // { // submitData.XML = flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.BUSINESSOBJECT; // } // bool b = FlowEngine.FlowConsultati(cs, "", FlowResultXml.ToString(), submitData.XML); // if (!b) // { // Tracer.Debug("FlowEngineService-FlowConsultati:" + flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FORMID // + "\nsubmitData:" + submitData.XML); // } // FlowBLL bll = new FlowBLL(); // bll.AddConsultation(flowConsultation); // } // catch (Exception ex) // { // Tracer.Debug("AddConsultation: -" + flowConsultation.FLOW_FLOWRECORDDETAIL_T.FLOW_FLOWRECORDMASTER_T.FORMID + "-" + ex.InnerException + ex.Message); // throw ex; // } //} #endregion }