username@email.com
2025-05-12 ae6e40362a745caef9ead36f81f38313fb8c2c66
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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 FirmContactUs : BasePage
    {
        Info_FirmBLL _Info_FirmBLL = null;
        public FirmContactUs()
        {
            _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.txtFrimContactInfo.Value = model.FrimContactInfo;
            }
        }
 
        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.FirmInroduce = "";
                m_Info_Firm.firmLogo = "";
                m_Info_Firm.firmLogo1 = "";
            }
            m_Info_Firm.FrimContactInfo= this.txtFrimContactInfo.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);
            }
        }
    }
}