/// <summary> /// 保存. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void BtnSave_Click(object sender, EventArgs e) { BP.WF.Flow en = new BP.WF.Flow(this.FK_Flow); en.No = this.FK_Flow; en.RetrieveFromDBSources(); if (this.RB_None.Checked) { en.StartGuideWay = BP.WF.Template.StartGuideWay.None; } if (this.RB_ByHistoryUrl.Checked) { en.StartGuidePara1 = this.TB_ByHistoryUrl.Value; en.StartGuidePara2 = ""; en.StartGuideWay = BP.WF.Template.StartGuideWay.ByHistoryUrl; } if (this.RB_SelfUrl.Checked) { en.StartGuidePara1 = this.TB_SelfURL.Value; en.StartGuidePara2 = ""; en.StartGuideWay = BP.WF.Template.StartGuideWay.BySelfUrl; } //单条模式. if (this.RB_BySQLOne.Checked) { en.StartGuidePara1 = this.TB_BySQLOne1.Value; //查询语句. en.StartGuidePara2 = this.TB_BySQLOne2.Value; //列表语句. en.StartGuideWay = BP.WF.Template.StartGuideWay.BySQLOne; } //多条-子父流程-合卷审批. if (this.RB_SubFlow.Checked) { en.StartGuidePara1 = this.TB_SubFlow1.Value; //查询语句. en.StartGuidePara2 = this.TB_SubFlow2.Value; //列表语句. en.StartGuideWay = BP.WF.Template.StartGuideWay.SubFlowGuide; } BP.WF.Template.FrmNodes fns = new BP.WF.Template.FrmNodes(int.Parse(this.FK_Flow + "01")); if (fns.Count >= 2) { if (this.RB_FrmList.Checked) { en.StartGuideWay = BP.WF.Template.StartGuideWay.ByFrms; } } en.Update(); en.DirectUpdate(); }
protected void Page_Load(object sender, EventArgs e) { if (this.IsPostBack == false) { BP.WF.Flow en = new BP.WF.Flow(this.FK_Flow); en.No = this.FK_Flow; en.RetrieveFromDBSources(); switch (en.StartGuideWay) { case BP.WF.Template.StartGuideWay.None: //无 this.RB_None.Checked = true; break; case BP.WF.Template.StartGuideWay.ByHistoryUrl: //从开始节点Copy数据 this.RB_ByHistoryUrl.Checked = true; this.TB_ByHistoryUrl.Value = en.StartGuidePara1; break; case BP.WF.Template.StartGuideWay.BySelfUrl: //按自定义的Url this.RB_SelfUrl.Checked = true; this.TB_SelfURL.Value = en.StartGuidePara1; break; case BP.WF.Template.StartGuideWay.BySQLOne: //按照参数. this.RB_BySQLOne.Checked = true; this.TB_BySQLOne1.Value = en.StartGuidePara1; this.TB_BySQLOne2.Value = en.StartGuidePara2; break; case BP.WF.Template.StartGuideWay.ByFrms: this.RB_FrmList.Checked = true; break; case BP.WF.Template.StartGuideWay.SubFlowGuide: //子父流程多条模式- 合卷审批. this.RB_SubFlow.Checked = true; this.TB_SubFlow1.Value = en.StartGuidePara1; this.TB_SubFlow2.Value = en.StartGuidePara2; break; default: break; } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string flowNo = this.Request.QueryString["FK_Flow"]; BP.WF.Flow fl = new BP.WF.Flow(); fl.No = flowNo; fl.RetrieveFromDBSources(); this.TB_Alert.Text = fl.StartLimitAlert; //限制规则提示. switch (fl.StartLimitRole) { case StartLimitRole.None: //不限制. this.RB_None.Checked = true; break; case StartLimitRole.Day: //天. this.RB_ByTime.Checked = true; this.DDL_ByTime.SelectedValue = "0"; this.TB_Alert.Text = fl.StartLimitAlert; this.TB_ByTimePara.Text = fl.StartLimitPara; break; case StartLimitRole.Week: //周. this.RB_ByTime.Checked = true; this.DDL_ByTime.SelectedValue = "1"; this.TB_Alert.Text = fl.StartLimitAlert; this.TB_ByTimePara.Text = fl.StartLimitPara; break; case StartLimitRole.Month: //月份. this.RB_ByTime.Checked = true; this.DDL_ByTime.SelectedValue = "2"; this.TB_Alert.Text = fl.StartLimitAlert; this.TB_ByTimePara.Text = fl.StartLimitPara; break; case StartLimitRole.JD: //月份. this.RB_ByTime.Checked = true; this.DDL_ByTime.SelectedValue = "3"; this.TB_Alert.Text = fl.StartLimitAlert; this.TB_ByTimePara.Text = fl.StartLimitPara; break; case StartLimitRole.Year: //年度. this.RB_ByTime.Checked = true; this.DDL_ByTime.SelectedValue = "4"; this.TB_Alert.Text = fl.StartLimitAlert; this.TB_ByTimePara.Text = fl.StartLimitPara; break; case StartLimitRole.ColNotExit: //发起的列不能重复,(多个列可以用逗号分开). this.RB_ColNotExit.Checked = true; this.TB_ColNotExit_Fields.Text = fl.StartLimitPara; break; case StartLimitRole.ResultIsZero: //小于等于0. this.RB_SQL.Checked = true; this.DDL_SQL.SelectedIndex = 0; this.TB_SQL_Para.Text = fl.StartLimitPara; break; case StartLimitRole.ResultIsNotZero: //大于 0 . this.RB_SQL.Checked = true; this.DDL_SQL.SelectedIndex = 1; this.TB_SQL_Para.Text = fl.StartLimitPara; break; default: break; } } }