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.Model; using CY.Infrastructure.Query; using CY.Infrastructure.Common; using CY.BLL.Sys; using System.Text; using CY.BLL.OA; namespace CY.WebForm.Pages.business { //吴辉 //修改自动外协价格 public partial class OutsourceFirmPrice : BasePage { OA_CorporateClientsBLL bll_OA_CorporateClientsBLL = null; //初始化 public OutsourceFirmPrice() { bll_OA_CorporateClientsBLL = new OA_CorporateClientsBLL(); } //页面加载 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindData(); } } //绑定数据 public void BindData() { OA_CorporateClients m_OA_CorporateClients = bll_OA_CorporateClientsBLL.GetModel(Request["keyid"].ToGuid2()); if (m_OA_CorporateClients != null) { this.txtOutRate.Value = (m_OA_CorporateClients.OutRate * 100).ToInt32().ToString2(); } } //提交事件 protected void btn_Submit_Config(object sender, EventArgs e) { OA_CorporateClients m_OA_CorporateClients = bll_OA_CorporateClientsBLL.GetModel(Request["keyid"].ToGuid2()); if (m_OA_CorporateClients != null) { m_OA_CorporateClients.OutRate = this.txtOutRate.Value.ToInt32().ToDouble2() / 100; if (bll_OA_CorporateClientsBLL.UpdateModel(m_OA_CorporateClients)) JavaScript.MessageBox("修改成功", this, true, true); else JavaScript.MessageBox("修改失败", this, true, true); } else JavaScript.MessageBox("修改失败", this, true, true); } } }