化工助剂配方筛选专家系统源码C.doc

上传人:bao****ty 文档编号:132382861 上传时间:2020-05-15 格式:DOC 页数:470 大小:1.78MB
返回 下载 相关 举报
化工助剂配方筛选专家系统源码C.doc_第1页
第1页 / 共470页
化工助剂配方筛选专家系统源码C.doc_第2页
第2页 / 共470页
化工助剂配方筛选专家系统源码C.doc_第3页
第3页 / 共470页
化工助剂配方筛选专家系统源码C.doc_第4页
第4页 / 共470页
化工助剂配方筛选专家系统源码C.doc_第5页
第5页 / 共470页
点击查看更多>>
资源描述

《化工助剂配方筛选专家系统源码C.doc》由会员分享,可在线阅读,更多相关《化工助剂配方筛选专家系统源码C.doc(470页珍藏版)》请在金锄头文库上搜索。

1、using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using TemplateHelper;public partial class template_dabao_Admin_AddGoods : System.Web.UI.Page public string picPath = null; public string discription = ; AProductDAL pdal = new AProductD

2、AL(); private void getdropdownlist() System.Data.DataTable dt = pdal.getdropdownlist(); this.goodstypelist.DataSource = dt; this.goodstypelist.DataTextField = title; this.goodstypelist.DataValueField = IdentID; this.goodstypelist.DataBind(); private void Initial() getdropdownlist(); this.pid.Value =

3、 Request.QueryStringid; this.ac.Value = Request.QueryStringac; protected void addgoods(object sender, EventArgs e) try string _localSavedir = /kindeditor/attached/image/ + Server.UrlDecode(Request.Cookiesjianzhanname) + /; string _PhylocalSavedir = Server.MapPath(_localSavedir); int result = 0; prod

4、uct pmodel = new product(); pmodel.Name = Common.Filter(this.title.Value); pmodel.Pic = Common.Filter(Request.Formpic); pmodel.Content =getRemoteContent(Input.Filter(Request.Formdiscription), _localSavedir, _PhylocalSavedir, , true); pmodel.Price = Common.Filter(this.price.Value); pmodel.Goodstypeid

5、 = Common.Filter(this.goodstypelist.SelectedValue); pmodel.Ishouye = Common.Filter(this.istop.Value); pmodel.Isuse = Common.Filter(this.isuse.Value); pmodel.Userid = Common.Filter(Request.Cookiesjianzhanid); if (this.ac.Value = edite) pmodel.Id = int.Parse(Common.Filter(this.pid.Value); result = pda

6、l.Update(pmodel); else if (this.ac.Value = add) result = pdal.AddGoods(pmodel); if (result 0) this.tipmessage.Text = alert(操作成功|); else this.tipmessage.Text = alert(操作失败); catch (Exception) this.tipmessage.Text = alert(操作失败); public string getRemoteContent(string _Content, string _localSavedir, stri

7、ng _PhylocalSavedir, string o1, bool ReminTF) RemoteResource red = new RemoteResource(_Content, _localSavedir, _PhylocalSavedir, , ReminTF); red.FileExtends = new string gif, jpg, bmp, ico, png, jpeg, swf, rar, zip, cab, doc, rm, ram, wav, mid, mp3, avi, wmv ; red.FetchResource(); return red.Content

8、; using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using TemplateHelper;public partial class template_dabao_Admin_AddMenu : System.Web.UI.Page AMenuDAL mdal = new AMenuDAL(); protected void Page_Load(object sender, EventArgs e) if (!I

9、sPostBack) GetMenuInfo(Request.QueryStringid = null ? -1 : Request.QueryStringid); protected void EditeMenu(object sender, EventArgs e) try TemplateHelper.Menu mmodel = new TemplateHelper.Menu(); mmodel.Id = int.Parse(Common.Filter(this.mid.Value); mmodel.Title = Common.Filter(this.txt_title.Value.T

10、rim(); mmodel.PageName = Common.Filter(this.txt_name.Value.Trim()+.aspx); mmodel.IsMenu = Common.Filter(this.ismenu.Value); int result = mdal.EditeMenu(mmodel); if (result 0) this.tipmessage.Text = alert(操作成功|); else this.tipmessage.Text = alert(操作失败); catch (Exception) this.tipmessage.Text = alert(

11、操作失败); private void GetMenuInfo(string id) System.Data.DataTable dt = mdal.getMenuInfo(id); if (dt.Rows.Count0) this.mid.Value = dt.Rows0id.ToString(); this.txt_title.Value = dt.Rows0title.ToString(); this.txt_name.Value = dt.Rows0pagename.ToString().Replace(.aspx,); if (dt.Rows0ismenu.ToString()=True) this.ismenu.SelectedIndex = 1; else

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 高等教育 > 其它相关文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号