918博天堂

Server : Microsoft-IIS/10.0
System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586
User : jxgj ( 0)
PHP Version : 7.0.33
Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server
Directory :  D:/tmp_aspnet/root/87401a0c/944f02a0/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : D:/tmp_aspnet/root/87401a0c/944f02a0/App_Web_8ky3z1un.19.cs
?#pragma checksum "D:\wwwroot\cnhbclw\wwwroot\search\Online.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "BA118EBA365848F4C873C80F869A2EA2"

#line 1 "D:\wwwroot\cnhbclw\wwwroot\search\Online.aspx.cs"
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Search_Online : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Base.BasePage.GetCookie("UserID") == "")
            {
                Response.Redirect("../Login/Login.aspx", true);
                return;
            }
            else
            {
                Bind();
            }
        }
    }

    /// <summary>
    /// 数据绑定
    /// </summary>
    private void Bind()
    {
        string strUserID = Base.BasePage.GetCookie("UserID");
        UserInfo.TUserInfo tu = new UserInfo.TUserInfo();
        UserInfo.IUserInfo ru=new UserInfo.RUserInfo();
        if (string.IsNullOrEmpty( strUserID))
        {
            Response.Redirect("../login/Login.aspx", true);
            return;
        }

        if (!Base.Common.CheckNum(strUserID))
        {
            Response.Redirect("../default.aspx",true);
            return;
        }
        this.ViewState["UserID"] = strUserID;
        tu = ru.GateItem(int.Parse(strUserID));
        this.txtName.Text = tu.LinkName.ToString();
        this.txtTel.Text = tu.Tel_International.ToString() + tu.Tel_DistrictNumber.ToString() + tu.Tel_Telephone.ToString() + tu.Tel_Ext.ToString();
        this.txtPhone.Text = tu.MobilePhone.ToString();
       
    }
    protected void butSave_Click(object sender, EventArgs e)
    {
        try
        {
            Message.TMessage tmg = new Message.TMessage();
            tmg.SendUserID = int.Parse(this.ViewState["UserID"].ToString());
            tmg.Title = this.txtTitle.Text;                                          //留言标题
            tmg.Info =  this.txtInfo.ToString();                                      //留言内容
            tmg.Date = DateTime.Now;                                                 //留言功夫
            string strParama = "a";
            strParama = Request.QueryString["id"].ToString();                             //接管者
            if (!Base.Common.CheckNum(strParama))
            {
                Base.BasePage.ShowMessage("该公司不存在!", "../default.aspx");
            }
            tmg.Nature = "Company";                                                   //关于哪方面的留言

            Message.RMessage rmg = new Message.RMessage();
            rmg.Insert(tmg, strParama);
            Base.BasePage.ShowMessage("发送成功!", "../default.aspx");
        }
        catch
        {
            Base.BasePage.ShowMessage("发送失败!请沉新发送");
        }
    }
}


#line default
#line hidden