//根据用户ID和业务实例ID得到流程模板 public string GetFlowTemplate(int BusinessUseCaseId, int UserID) { string FlowTemplate = ""; AuthorizationDS.FlowParticipantConfigureDataTable table = FowParticipantConfigureTA.GetFlowTemplateNameByUseCaseAndUserID(BusinessUseCaseId, UserID); if (table.Rows.Count > 0) { FlowTemplate = table[0].FlowTemplateName; } return(FlowTemplate); }
public void InsertFlowParticipantConfigure(string FlowTemplateName, string FlowName, int FormTypeId) { AuthorizationDS.FlowParticipantConfigureDataTable tbFlow = new AuthorizationDS.FlowParticipantConfigureDataTable(); AuthorizationDS.FlowParticipantConfigureRow rowFlow = tbFlow.NewFlowParticipantConfigureRow(); rowFlow.FlowTemplateName = FlowTemplateName; rowFlow.FlowName = FlowName; rowFlow.FormTypeId = FormTypeId; tbFlow.AddFlowParticipantConfigureRow(rowFlow); FlowParticipantConfigureTA.Update(tbFlow); }