private void ShowInfo(int fc_id) { Tunnel.BLL.Tunnel_flowclass bll = new Tunnel.BLL.Tunnel_flowclass(); Tunnel.Model.Tunnel_flowclass model = bll.GetModel(fc_id); this.TextBox1.Text = model.fc_name; this.TextBox2.Text = model.Fc_desin; }
protected void Button1_Click(object sender, EventArgs e) { Tunnel.Model.Tunnel_flowclass mf = new Tunnel.Model.Tunnel_flowclass(); Tunnel.BLL.Tunnel_flowclass bf = new Tunnel.BLL.Tunnel_flowclass(); mf.fc_id = int.Parse(Tunnel.Data.DESEncrypt.Decrypt(Request.Params["id"])); mf.fc_name = TextBox1.Text.Trim(); mf.Fc_desin = TextBox2.Text; bf.Update(mf); Tunnel.Common.Message.Show("修改成功!", "FlowClass_Manage.aspx"); }
protected void Button1_Click(object sender, EventArgs e) { Tunnel.Model.Tunnel_flowclass mf = new Tunnel.Model.Tunnel_flowclass(); Tunnel.BLL.Tunnel_flowclass bf = new Tunnel.BLL.Tunnel_flowclass(); mf.fc_name = TextBox1.Text.Trim(); mf.Fc_desin = TextBox2.Text; if (bf.Add(mf) > 0) { Tunnel.Common.Message.Show("添加成功!"); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (!string.IsNullOrEmpty(Request.Params["id"])) { string id = Request.Params["id"]; Tunnel.BLL.Tunnel_flowclass bf = new Tunnel.BLL.Tunnel_flowclass(); int deid = int.Parse(Tunnel.Data.DESEncrypt.Decrypt(id)); if (deid == 18) { Tunnel.Common.Message.back("公文为系统默认分类,不能删除!"); } else { bf.Delete(deid); Tunnel.Common.Message.Show("删除成功!"); } } } }