protected void Free_Sure_Btn_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(ReferUser_Hid.Value)) { function.WriteErrMsg("主办人不能为空"); } if (!SafeSC.Submit_Check(this.ViewState)) { B_OA_Document oaBll = new B_OA_Document(); M_OA_Document oaMod = oaBll.SelReturnModel(AppID); M_MisProcedure proceMod = new B_MisProcedure().SelReturnModel(oaMod.ProID); oaCom.CreateStep(oaMod, proceMod, new OAStepParam() { ReferUser = ReferUser_Hid.Value, CCUser = CCUser_Hid.Value, StepNum = freeBll.GetStep(AppID), StepID = this.StepID }); DataBind(); Free_Div.Visible = false; remind2.Visible = true; switch (Request["s"] ?? "") { case "old": function.Script(this, "PaerntUrl(\"/Office/AffairsList.aspx?view=1\");"); break; default: function.Script(this, "PaerntUrl(\"/Office/Flow/ApplyList.aspx?view=1\");"); break; } } else { Response.Redirect(Request.RawUrl); } }