Beispiel #1
0
        private void btnViewWFChart_Click(object sender, EventArgs e)
        {
            string workFlowId     = BusinessLogic.ConvertToString(MyParticipantTaskList.Rows[dgvToDoTask.SelectedRows[0].Index][WorkFlowInstanceTable.FieldWorkFlowId]) ?? "";
            string workFlowInsId  = BusinessLogic.ConvertToString(MyParticipantTaskList.Rows[dgvToDoTask.SelectedRows[0].Index][WorkFlowInstanceTable.FieldWorkFlowInsId]) ?? "";
            string title          = BusinessLogic.ConvertToString(MyParticipantTaskList.Rows[dgvToDoTask.SelectedRows[0].Index][WorkFlowInstanceTable.FieldFlowInsCaption]) ?? "";
            var    frmViewWFChart = new FrmViewWorkFlowChart(workFlowId, workFlowInsId, title);

            frmViewWFChart.ShowDialog();
        }
Beispiel #2
0
        private void btnViewWFStatus_Click(object sender, EventArgs e)
        {
            if (dgvWorkFlowMonitor.Rows.Count <= 0 || dgvWorkFlowMonitor.CurrentCell == null)
            {
                return;
            }

            string workFlowId     = BusinessLogic.ConvertToString(DTWorkFlowMonitor.Rows[dgvWorkFlowMonitor.CurrentCell.RowIndex][WorkFlowInstanceTable.FieldWorkFlowId]) ?? "";
            string workFlowInsId  = BusinessLogic.ConvertToString(DTWorkFlowMonitor.Rows[dgvWorkFlowMonitor.CurrentCell.RowIndex][WorkFlowInstanceTable.FieldWorkFlowInsId]) ?? "";
            string title          = BusinessLogic.ConvertToString(DTWorkFlowMonitor.Rows[dgvWorkFlowMonitor.CurrentCell.RowIndex][WorkFlowInstanceTable.FieldFlowInsCaption]) ?? "";
            var    frmViewWFChart = new FrmViewWorkFlowChart(workFlowId, workFlowInsId, title);

            frmViewWFChart.ShowDialog();
        }