欢迎来到天天文库
浏览记录
ID:9290814
大小:2.31 MB
页数:0页
时间:2018-04-26
《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=
2、"title";this.goodstypelist.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.Dat
3、aTabledt=pdal.GetGoodsInfo(this.pid.Value);if(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.Sel
4、ectedValue=dt.Rows[0]["goodstypeid"].ToString();if(dt.Rows[0]["ishouye"].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.ti
5、jiao.Value="添¬¨ª加¨®";}}protectedvoidaddgoods(objectsender,EventArgse){try{string_localSavedir="/kindeditor/attached/image/"+Server.UrlDecode(Request.Cookies["jianzhan"]["name"])+"/";string_PhylocalSavedir=Server.MapPath(_localSavedir);intresult=0;productpmodel=newproduct(
6、);pmodel.Name=Common.Filter(this.title.Value);pmodel.Pic=Common.Filter(Request.Form["pic"]);pmodel.Content=getRemoteContent(Input.Filter(Request.Form["discription"]),_localSavedir,_PhylocalSavedir,"",true);pmodel.Price=Common.Filter(this.price.Value);pmodel.Goodstypeid=Co
7、mmon.Filter(this.goodstypelist.SelectedValue);pmodel.Ishouye=Common.Filter(this.istop.Value);pmodel.Isuse=Common.Filter(this.isuse.Value);pmodel.Userid=Common.Filter(Request.Cookies["jianzhan"]["id"]);if(this.ac.Value=="edite"){pmodel.Id=int.Parse(Common.Filter(this.pid.V
8、alue));result=pdal.Update(pmodel);}elseif(this.ac.Value=="add"){result=pdal.AddGoods(pmodel);}if
此文档下载收益归作者所有