欢迎来到天天文库
浏览记录
ID:15517309
大小:2.31 MB
页数:471页
时间:2018-08-03
《rfid门禁管理系统源码c》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、usingSystem;usingSystem.Collections.Generic;usingSystem.Web;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingTemplateHelper;privatevoidgetdropdownlist(){System.Data.DataTabledt=pdal.getdropdownlist();this.goodstypelist.DataSource=dt;this.goodstypelist.DataTextField="title";this.goodstype
2、list.DataValueField="IdentID";this.goodstypelist.DataBind();}privatevoidInitial(){getdropdownlist();this.pid.Value=Request.QueryString["id"];this.ac.Value=Request.QueryString["ac"];if(this.ac.Value=="edite"){this.tijiao.Value="编À¨¤辑-";System.Data.DataTabledt=pdal.GetGoodsInfo(this.pid.Value);i
3、f(dt.Rows.Count>0){this.title.Value=dt.Rows[0]["name"].ToString();this.picPath=dt.Rows[0]["pic"].ToString();this.discription=dt.Rows[0]["content"].ToString();this.price.Value=dt.Rows[0]["price"].ToString();this.goodstypelist.SelectedValue=dt.Rows[0]["goodstypeid"].ToString();if(dt.Rows[0]["ish
4、ouye"].ToString()=="True"){this.istop.SelectedIndex=1;}else{this.istop.SelectedIndex=0;}if(dt.Rows[0]["isuse"].ToString()=="True"){this.isuse.SelectedIndex=1;}else{this.isuse.SelectedIndex=0;}}}else{this.tijiao.Value="添¬¨ª加¨®";}}protectedvoidaddgoods(objectsender,EventArgse){try{string_localSa
5、vedir="/kindeditor/attached/image/"+Server.UrlDecode(Request.Cookies["jianzhan"]["name"])+"/";string_PhylocalSavedir=Server.MapPath(_localSavedir);intresult=0;productpmodel=newproduct();pmodel.Name=Common.Filter(this.title.Value);pmodel.Pic=Common.Filter(Request.Form["pic"]);pmodel.Content=get
6、RemoteContent(Input.Filter(Request.Form["discription"]),_localSavedir,_PhylocalSavedir,"",true);pmodel.Price=Common.Filter(this.price.Value);pmodel.Goodstypeid=Common.Filter(this.goodstypelist.SelectedValue);pmodel.Ishouye=Common.Filter(this.istop.Value);pmodel.Isuse=Common.Filter(this.isuse.V
7、alue);pmodel.Userid=Common.Filter(Request.Cookies["jianzhan"]["id"]);if(this.ac.Value=="edite"){pmodel.Id=int.Parse(Common.Filter(this.pid.Value));result=pdal.Update(pmodel);}elseif(this.ac.Value=="add"){result=pdal.AddGoods(pmodel);}if
此文档下载收益归作者所有