protected void RadioButtonListJoin_SelectedIndexChanged(object sender, EventArgs e) { ConditionInfo condition = FormFlowBiz.GetCondition(ConditionId); condition.ConditionJoin = RadioButtonListJoin.SelectedValue; FormFlowBiz.UpdateCondition(condition); }
protected void Page_Load(object sender, EventArgs e) { try { string flowId = Request.QueryString["FlowId"]; bool result = FormFlowBiz.DeleteWorkFlowXML(flowId); string fileName = flowId + ".xml"; string path = System.AppDomain.CurrentDomain.BaseDirectory + "FlowDesign\\flows\\"; if (File.Exists(path + fileName)) { File.Delete(path + fileName); } //Return Response.ContentType = "text/html"; Response.Write(result.ToString()); Response.End(); } catch (Exception ex) { SimpleFlow.SystemFramework.Log.WriteLog("FlowDesign_CreateID", ex); } }
private void BindData() { //Bind GridViewCondition GridViewCondition.DataSource = FormFlowBiz.GetConditionSubList(ConditionId).OrderBy(cs => cs.CreateTime); GridViewCondition.DataBind(); //display RadioButtonListJoin if (GridViewCondition.Rows.Count == 0) { RadioButtonListJoin.Enabled = false; RadioButtonListJoin.SelectedIndex = -1; } else { RadioButtonListJoin.SelectedIndex = 0; RadioButtonListJoin.Enabled = true; } //Bind DropDownListField DataTable dt = CommonBiz.GetColumns(string.Format("tb_{0}", FormId)); DropDownListField.DataSource = dt; DropDownListField.DataTextField = "name"; DropDownListField.DataValueField = "name"; DropDownListField.DataBind(); }
protected void GridViewCondition_OnRowDeleting(Object sender, GridViewDeleteEventArgs e) { string conditionSubId = GridViewCondition.DataKeys[e.RowIndex].Value.ToString(); FormFlowBiz.DelConditionSub(conditionSubId); BindData(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ActiveId = Request.QueryString["ActiveId"]; LinksTreeView.Attributes.Add("onclick", "postBackByObject()"); m_UserId = FormFlowBiz.GetOrgParticipant(ActiveId); InitTreeView(); } }
protected void design_form_link_Click(object sender, EventArgs e) { Control button = sender as Control; string form_Id = (button.NamingContainer.FindControl("hidden_form_id") as HiddenField).Value; FormFlowBiz.BuildFlowFile(int.Parse(form_Id)); string url = string.Format("flowdesign//flowdesign.aspx?form_Id={0}", form_Id); Response.Redirect(url); }
protected void Add_Click(object sender, EventArgs e) { ConditionSubInfo cs = new ConditionSubInfo(); cs.ConditionSubId = Guid.NewGuid().ToString("D").ToUpper(); cs.ConditionSubField = DropDownListField.SelectedValue; cs.ConditionSubOperator = DropDownListOperator.SelectedValue; cs.ConditionSubValue = TextBoxValue.Text.Trim(); cs.ConditionId = ConditionId; cs.CreateTime = DateTime.Now; FormFlowBiz.AddConditionSub(cs); BindData(); }
protected void ButtonSave_Click(object sender, EventArgs e) { string userId = string.Empty; if (LinksTreeView.CheckedNodes.Count > 0) { foreach (TreeNode node in LinksTreeView.CheckedNodes) { if (node.ImageUrl == "~/images/man.gif") { userId += node.Value + ";"; } } } FormFlowBiz.SaveOrgParticipant(ActiveId, userId.Trim(';')); }
protected void Page_Load(object sender, EventArgs e) { try { //Save XmlDocument objXmlDoc = new XmlDocument(); objXmlDoc.Load(this.Request.InputStream); bool result = FormFlowBiz.UpdateWorkFlowXML(objXmlDoc.InnerXml); //Return Response.ContentType = "text/html"; Response.Write(result.ToString()); Response.End(); } catch (Exception ex) { SimpleFlow.SystemFramework.Log.WriteLog("FlowDesign_SaveFlow", ex); } }
protected void GridViewCondition_OnRowUpdating(Object sender, GridViewUpdateEventArgs e) { DropDownList DropDownListField = (DropDownList)GridViewCondition.Rows[e.RowIndex].FindControl("DropDownListField"); DropDownList DropDownListOperator = (DropDownList)GridViewCondition.Rows[e.RowIndex].FindControl("DropDownListOperator"); TextBox TextBoxValue = (TextBox)GridViewCondition.Rows[e.RowIndex].FindControl("TextBoxValue"); Label LabelCreateTime = (Label)GridViewCondition.Rows[e.RowIndex].FindControl("LabelCreateTime"); ConditionSubInfo cs = new ConditionSubInfo(); cs.ConditionSubId = GridViewCondition.DataKeys[e.RowIndex].Value.ToString(); cs.ConditionSubField = DropDownListField.SelectedValue; cs.ConditionSubOperator = DropDownListOperator.SelectedValue; cs.ConditionSubValue = TextBoxValue.Text.Trim(); cs.ConditionId = ConditionId; cs.CreateTime = Convert.ToDateTime(LabelCreateTime.Text); FormFlowBiz.UpdateConditionSub(cs); GridViewCondition.EditIndex = -1; BindData(); }