public string Limit_Save() { BP.WF.Flow fl = new BP.WF.Flow(this.FK_Flow); fl.StartLimitRole = (StartLimitRole)this.GetRequestValInt("StartLimitRole"); fl.StartLimitPara = this.GetRequestVal("StartLimitPara"); fl.StartLimitAlert = this.GetRequestVal("StartLimitAlert"); fl.Update(); return("保存成功."); }
/// <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 Save() { string flowNo = this.Request.QueryString["FK_Flow"]; BP.WF.Flow fl = new BP.WF.Flow(flowNo); fl.StartLimitAlert = this.TB_Alert.Text; //限制提示信息 if (this.RB_None.Checked) { fl.StartLimitRole = StartLimitRole.None; } if (this.RB_ByTime.Checked) { if (this.DDL_ByTime.SelectedIndex == 0)//一人一天一次 { fl.StartLimitRole = StartLimitRole.Day; fl.StartLimitPara = this.TB_ByTimePara.Text; } if (this.DDL_ByTime.SelectedIndex == 1)//一人一周一次 { fl.StartLimitRole = StartLimitRole.Week; fl.StartLimitPara = this.TB_ByTimePara.Text; } if (this.DDL_ByTime.SelectedIndex == 2)//一人一月一次 { fl.StartLimitRole = StartLimitRole.Month; fl.StartLimitPara = this.TB_ByTimePara.Text; } if (this.DDL_ByTime.SelectedIndex == 3)//一人一季一次 { fl.StartLimitRole = StartLimitRole.JD; fl.StartLimitPara = this.TB_ByTimePara.Text; fl.DirectUpdate(); } if (this.DDL_ByTime.SelectedIndex == 4)//一人一年一次 { fl.StartLimitRole = StartLimitRole.Year; fl.StartLimitPara = this.TB_ByTimePara.Text; } } if (this.RB_ColNotExit.Checked)//按照发起字段不能重复规则 { fl.StartLimitRole = StartLimitRole.ColNotExit; fl.StartLimitPara = this.TB_ColNotExit_Fields.Text; } if (this.RB_SQL.Checked == true) { //字段参数. fl.StartLimitPara = this.TB_SQL_Para.Text; //选择的模式. if (this.DDL_SQL.SelectedIndex == 0) { fl.StartLimitRole = StartLimitRole.ResultIsZero; } if (this.DDL_SQL.SelectedIndex == 1) { fl.StartLimitRole = StartLimitRole.ResultIsNotZero; } } fl.Update(); }