/// <summary> /// 流程修改数据显示 /// </summary> void editbind() { try { Tunnel.BLL.Tunnel_flow bf = new Tunnel.BLL.Tunnel_flow(); Tunnel.Model.Tunnel_flow mf = new Tunnel.Model.Tunnel_flow(); mf = bf.GetModel(int.Parse(Request.Params["editid"])); if (mf.f_sort != 0 && tfc.Exists(mf.f_sort)) { DropDownList1.SelectedValue = mf.f_sort.ToString(); } if (mf.f_bum != 0 && bt.Exists(mf.f_bum)) { DropDownList2.SelectedValue = mf.f_bum.ToString(); } if (mf.f_form != 0 && btf.Exists(mf.f_form)) { DropDownList4.SelectedValue = mf.f_form.ToString(); } TextBox1.Text = mf.f_name; TextBox2.Text = mf.f_depict; RadioButtonList1.SelectedValue = mf.f_isfile.ToString(); RadioButtonList2.SelectedValue = mf.f_state.ToString(); //RadioButtonList3.SelectedValue = mf.f_stype.ToString(); } catch { Tunnel.Common.Message.back("不正确的ID!"); } }