private void cmdFinish_Click(object sender, System.EventArgs e) { String UserName = Request.Cookies["UserName"].Value.ToString(); UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); if(FlowID<=0) { FlowID=df.AddFlow(txtFlowName.Text,txtFlowRemark.Text,UserName,Int32.Parse(dpStyle.Items[dpStyle.SelectedIndex].Value)); if(FlowID>0) { Server.Transfer("ManageFlow.aspx?FlowID=" + FlowID.ToString()); } df = null; } else { if(df.UpdateFlow(FlowID,txtFlowName.Text,txtFlowRemark.Text,UserName,Int32.Parse(dpStyle.Items[dpStyle.SelectedIndex].Value))==0) { Server.Transfer("EditTache.aspx?FlowID=" + FlowID.ToString() + "&StepID=1"); } df = null; Server.Transfer("ManageFlow.aspx?FlowID=" + FlowID.ToString()); } }
private void cmdFinish_Click(object sender, System.EventArgs e) { String UserName = Request.Cookies["UserName"].Value.ToString(); UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow(); if (FlowID <= 0) { FlowID = df.AddFlow(txtFlowName.Text, txtFlowRemark.Text, UserName, Int32.Parse(dpStyle.Items[dpStyle.SelectedIndex].Value)); if (FlowID > 0) { Server.Transfer("ManageFlow.aspx?FlowID=" + FlowID.ToString()); } df = null; } else { if (df.UpdateFlow(FlowID, txtFlowName.Text, txtFlowRemark.Text, UserName, Int32.Parse(dpStyle.Items[dpStyle.SelectedIndex].Value)) == 0) { Server.Transfer("EditTache.aspx?FlowID=" + FlowID.ToString() + "&StepID=1"); } df = null; Server.Transfer("ManageFlow.aspx?FlowID=" + FlowID.ToString()); } }