using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CY.BLL; using CY.Infrastructure.DESEncrypt; using CY.Config; using CY.Infrastructure.Common; namespace CY.WebForm.Pages.sysInquiry { //吴辉 //特殊纸张价格设置 public partial class SpecialPaperConfig : BasePage { //页面加载 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.txtLinerboard.Value = WebInfo.Instance.Linerboard.ToString2(); this.txtSuperPaper.Value = WebInfo.Instance.SuperPaper.ToString2(); } } //表单提交 protected void btn_Submit_Config(object sender, EventArgs e) { try { WebInfo.Instance.SuperPaper = (float)this.txtSuperPaper.Value.ToDouble2(); WebInfo.Instance.Linerboard = (float)this.txtLinerboard.Value.ToDouble2(); WebInfo.Instance.Update(); } catch (Exception ex) { PAGEHandleException(ex); JavaScript.MessageBox("操作失败", this); } JavaScript.MessageBox("操作成功", this); } } }