protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BP.WF.Template.FlowSheet en = new BP.WF.Template.FlowSheet(FK_Flow); BP.WF.FlowRunWay frw = en.FlowRunWay; switch (frw) { case FlowRunWay.HandWork: this.RB_HandWork.Checked = true; break; case FlowRunWay.SpecEmp: this.RB_SpecEmp.Checked = true; this.TB_SpecEmp.Text = en.RunObj; break; case FlowRunWay.DataModel: this.TB_DataModel.Text = en.RunObj; this.RB_DataModel.Checked = true; break; case FlowRunWay.InsertModel: this.RB_InsertModel.Checked = true; break; default: break; } } }
/// <summary> /// 回滚流程数据 /// </summary> /// <returns></returns> private string ReturnFlowData() { try { string FK_Flow = getUTF8ToString("FK_Flow"); string WorkID = getUTF8ToString("WorkID"); string remark = getUTF8ToString("Remark"); long lWorkID = string.IsNullOrEmpty(WorkID) ? 0 : long.Parse(WorkID); BP.WF.Template.FlowSheet flowSheet = new BP.WF.Template.FlowSheet(FK_Flow); string returnInfo = flowSheet.DoRebackFlowData(lWorkID, int.Parse(FK_Flow + "01"), remark); returnInfo = returnInfo.Replace("@", "<br/>"); return(returnInfo); } catch (Exception ex) { return(ex.Message); } }