using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CY.Model; using CY.Infrastructure.Common; using CY.BLL.Info; using CY.BLL; namespace CY.WebForm.Pages.member { //吴辉 //企业网站信息-公司简介 public partial class FirmDescripe : BasePage { Info_FirmBLL _Info_FirmBLL = null; public FirmDescripe() { _Info_FirmBLL = new Info_FirmBLL(); } protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { InitialData(); } } protected void InitialData() { Info_Firm model = _Info_FirmBLL.selectSingleModel(CurrentUser.MemberId); if (model != null) { this.txtFirmInroduce.Value = model.FirmInroduce; } } protected void btn_Submit_Click(object sender, EventArgs e) { Info_Firm m_Info_Firm = _Info_FirmBLL.selectSingleModel(CurrentUser.MemberId); if (m_Info_Firm == null) { m_Info_Firm = new Info_Firm(); m_Info_Firm.bussinessScope = ""; m_Info_Firm.firmInfoBottom = ""; m_Info_Firm.FrimContactInfo = ""; m_Info_Firm.firmLogo = ""; m_Info_Firm.firmLogo1 = ""; } m_Info_Firm.FirmInroduce= this.txtFirmInroduce.Value; if (m_Info_Firm != null) { if (_Info_FirmBLL.UpdateModel(m_Info_Firm)) JavaScript.MessageBox("保存成功", this); else JavaScript.MessageBox("保存失败", this); } else { if (_Info_FirmBLL.InsertModel(m_Info_Firm)) JavaScript.MessageBox("保存成功", this); else JavaScript.MessageBox("保存失败", this); } } } }