Exemplo n.º 1
0
        private void gvFlow_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            var url = "";
            var baseUrl = BP.SystemConfig.AppSettings["BaseUrl"];
            var flow_id = gvFlow.GetRowCellValue(e.RowHandle, gvFlow.Columns["No"]);
            if (e.Column.FieldName.Equals("Map"))
            {
                //this.Hide();
                url = baseUrl + "/WF/Chart.aspx?FK_Flow=" + flow_id + "&DoType=Chart";
            }
            else
            {

                if (e.Button == MouseButtons.Left)
                {
                    if (!gvFlow.IsGroupRow(e.RowHandle))
                    {
                        long workid = BP.WF.Dev2Interface.Node_CreateStartNodeWork(flow_id.ToString(), null, null, WebUser.No, null, 0, null);
                        Work currWork = BP.WF.Dev2Interface.Flow_GetCurrentWork(workid);
                        url = baseUrl + "/WF/MyFlowSmall.aspx?FK_Flow=" + flow_id + "&FK_Node=" + currWork.NodeID + "&userNo=" + BP.Web.WebUser.No + "";
                    }
                }
            }
            FlowBrowserForm f = new FlowBrowserForm(url);
            f.StartPosition = FormStartPosition.CenterScreen;
            f.Tag = "start";
            f.ShowDialog();
        }
Exemplo n.º 2
0
 private void gvFlow_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
 {
     var baseUrl = BP.SystemConfig.AppSettings["BaseUrl"];
     if (e.Button == MouseButtons.Left)
     {
         //this.Hide();
         var flow_id = gvFlow.GetRowCellValue(e.RowHandle, gvFlow.Columns["FK_Flow"]);
         var work_id = gvFlow.GetRowCellValue(e.RowHandle, gvFlow.Columns["WorkID"]);
         var node_id = gvFlow.GetRowCellValue(e.RowHandle, gvFlow.Columns["FK_Node"]);
         BP.WF.Node n = new BP.WF.Node(node_id.ToString());
         var url = "";
         if (n.IsStartNode)
         {
             url = baseUrl + "/WF/MyFlowSmall.aspx?FK_Flow=" + flow_id + "&FK_Node=" + node_id + "&userNo=" + BP.Web.WebUser.No + "";
         }
         else
         {
             url = baseUrl + "/WF/MyFlowSmall.aspx?FK_Flow=" + flow_id + "&FK_Node=" + node_id + "&FID=0&WorkID=" + work_id + "&IsRead=0&userNo=" + BP.Web.WebUser.No + "";
         }
         FlowBrowserForm f = new FlowBrowserForm(url);
         f.StartPosition = FormStartPosition.CenterScreen;
         f.Tag = "process";
         f.ShowDialog();
     }
 }
Exemplo n.º 3
0
        private void gvFlow_RowCellClick(object sender, RowCellClickEventArgs e)
        {
            var url     = "";
            var baseUrl = BP.SystemConfig.AppSettings["BaseUrl"];
            var flow_id = gvFlow.GetRowCellValue(e.RowHandle, gvFlow.Columns["No"]);

            if (e.Column.FieldName.Equals("Map"))
            {
                //this.Hide();
                url = baseUrl + "/WF/Chart.aspx?FK_Flow=" + flow_id + "&DoType=Chart";
            }
            else
            {
                if (e.Button == MouseButtons.Left)
                {
                    if (!gvFlow.IsGroupRow(e.RowHandle))
                    {
                        long workid   = BP.WF.Dev2Interface.Node_CreateStartNodeWork(flow_id.ToString(), null, null, WebUser.No, null, 0, null);
                        Work currWork = BP.WF.Dev2Interface.Flow_GetCurrentWork(workid);
                        url = baseUrl + "/WF/MyFlowSmall.aspx?FK_Flow=" + flow_id + "&FK_Node=" + currWork.NodeID + "&userNo=" + BP.Web.WebUser.No + "";
                    }
                }
            }
            FlowBrowserForm f = new FlowBrowserForm(url);

            f.StartPosition = FormStartPosition.CenterScreen;
            f.Tag           = "start";
            f.ShowDialog();
        }
Exemplo n.º 4
0
        private void gvFlow_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            var baseUrl = BP.SystemConfig.AppSettings["BaseUrl"];

            if (e.Button == MouseButtons.Left)
            {
                //this.Hide();
                var        flow_id = gvFlow.GetRowCellValue(e.RowHandle, gvFlow.Columns["FK_Flow"]);
                var        work_id = gvFlow.GetRowCellValue(e.RowHandle, gvFlow.Columns["WorkID"]);
                var        node_id = gvFlow.GetRowCellValue(e.RowHandle, gvFlow.Columns["FK_Node"]);
                BP.WF.Node n       = new BP.WF.Node(node_id.ToString());
                var        url     = "";
                if (n.IsStartNode)
                {
                    url = baseUrl + "/WF/MyFlowSmall.aspx?FK_Flow=" + flow_id + "&FK_Node=" + node_id + "&userNo=" + BP.Web.WebUser.No + "";
                }
                else
                {
                    url = baseUrl + "/WF/MyFlowSmall.aspx?FK_Flow=" + flow_id + "&FK_Node=" + node_id + "&FID=0&WorkID=" + work_id + "&IsRead=0&userNo=" + BP.Web.WebUser.No + "";
                }
                FlowBrowserForm f = new FlowBrowserForm(url);
                f.StartPosition = FormStartPosition.CenterScreen;
                f.Tag           = "process";
                f.ShowDialog();
            }
        }