protected void Page_Load(object sender, EventArgs e)
    {
        if (string.IsNullOrEmpty(Page.User.Identity.Name))
        {
            Response.Redirect("/Login.aspx?ReturnUrl=" + Server.UrlEncode(Request.RawUrl));
        }

        if (!Page.IsPostBack)
        {
            this.ViewState["LoginMemberName"] = Page.User.Identity.Name;
            //会员信息表
            Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel();
            Tz888.BLL.Register.MemberInfoBLL     obj3   = new Tz888.BLL.Register.MemberInfoBLL();
            model3 = obj3.GetModel("LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'");
            this.ZoneSelectControl1.CountryID = model3.CountryCode.ToString().Trim(); //国别
            ZoneSelectControl1.CityID         = model3.CityID.ToString().Trim();      //市
            ZoneSelectControl1.ProvinceID     = model3.ProvinceID.ToString().Trim();  //省
            ZoneSelectControl1.CountyID       = model3.CountyID.ToString().Trim();    //县
            //显示联络人信息
            InitInfoContact();

            BindSetCapital(); // 绑定融资金额

            Xmyxqxx();        //项目有效期限
        }

        //以下是取得上传文件信息
        this.FilesUploadControl1.InfoType  = "Project";
        this.FilesUploadControl1.NoneCount = 5;
        this.FilesUploadControl1.Count     = 5;
    }
    public string getNickName(object obj)
    {
        string log = obj.ToString();

        Tz888.BLL.Register.MemberInfoBLL objLog = new Tz888.BLL.Register.MemberInfoBLL();
        return(objLog.getNickName(log));
    }
Example #3
0
    protected void btnOk_Click(object sender, EventArgs e)
    {
        string zone    = txtTelCountry.Text.ToString().Trim();
        string country = txtTelZoneCode.Text.ToString().Trim();
        string tel     = txtTelNumber.Text.ToString().Trim();
        string phone   = zone + "-" + country + "-" + tel;

        //注册信息
        //Tz888.BLL.Login.LoginInfoBLL objInfo1 = new Tz888.BLL.Login.LoginInfoBLL();
        //登记联系人
        //Tz888.BLL.Register.common objInfo2 = new Tz888.BLL.Register.common();
        //Tz888.Model.Register.OrgContactModel modelInfo2 = new Tz888.Model.Register.OrgContactModel();
        //会员信息表
        Tz888.Model.Register.MemberInfoModel modelInfo3 = new Tz888.Model.Register.MemberInfoModel();
        Tz888.BLL.Register.MemberInfoBLL     objInfo3   = new Tz888.BLL.Register.MemberInfoBLL();
        string LoginName  = this.ViewState["LoginMemberName"].ToString();
        string MemberName = txtCompany.Text.Trim();
        //bool Sex = Convert.ToBoolean(rblSex.SelectedValue);
        string NickName     = lbNickName.Text;
        string Address      = txtAddress.Text;
        string PostCode     = txtPostCode.Text;
        string Mobile       = txtMobile.Text;
        string ManageTypeID = this.ViewState["ManageTypeID"].ToString();

        modelInfo3.LoginName    = LoginName; //登录名
        modelInfo3.CountryCode  = ZoneSelectControl1.CountryID.ToString().Trim();
        modelInfo3.CityID       = ZoneSelectControl1.CityID.ToString().Trim();
        modelInfo3.ProvinceID   = ZoneSelectControl1.ProvinceID.ToString().Trim();
        modelInfo3.CountyID     = ZoneSelectControl1.CountyID.ToString().Trim();
        modelInfo3.MemberName   = txtContactName.Text.Trim();             //联系人姓名
        modelInfo3.Address      = txtAddress.Text;                        //地址
        modelInfo3.Birthday     = DateTime.Now;                           //日期
        modelInfo3.Email        = txtEmail.Text;                          //邮箱
        modelInfo3.Mobile       = txtMobile.Text;                         //手机
        modelInfo3.NickName     = lbNickName.Text;                        //昵称
        modelInfo3.PostCode     = txtPostCode.Text;                       //邮编
        modelInfo3.Tel          = phone.Trim();                           //电话
        modelInfo3.ContactName  = txtCompany.Text.ToString().Trim();      //招商机构名称
        modelInfo3.ContactTitle = txtContactTitle.Text.ToString().Trim(); //职位
        int  int1 = 0;
        long int2 = 0;

        //判断会员信息表里是否己存在,并更新注册表
        if (this.ViewState["tag"].ToString() == "add")
        {
            int1 = objInfo3.MemberMessage_Insert(modelInfo3);
        }
        else if (this.ViewState["tag"].ToString() == "update")
        {
            int1 = objInfo3.MemberMessage_Update(modelInfo3);
        }
        //判断登记联系人表里是否己存在
        //int2 = objInfo2.OrgContactMan_FromMemberMessage(modelInfo2);
        if (int1 > 0)
        {
            Tz888.Common.MessageBox.Show(this.Page, "信息修改成功!");
        }
    }
Example #4
0
    protected void btnOk_Click(object sender, EventArgs e)
    {
        //注册信息
        //Tz888.BLL.Login.LoginInfoBLL objInfo1 = new Tz888.BLL.Login.LoginInfoBLL();
        //登记联系人


        //Tz888.BLL.Register.common objInfo2 = new Tz888.BLL.Register.common();
        //Tz888.Model.Register.OrgContactModel modelInfo2 = new Tz888.Model.Register.OrgContactModel();
        //会员信息表


        Tz888.Model.Register.MemberInfoModel modelInfo3 = new Tz888.Model.Register.MemberInfoModel();
        Tz888.BLL.Register.MemberInfoBLL     objInfo3   = new Tz888.BLL.Register.MemberInfoBLL();

        string LoginName  = this.ViewState["LoginMemberName"].ToString();
        string MemberName = txtCompany.Text.Trim();
        //bool Sex = Convert.ToBoolean(rblSex.SelectedValue);
        string NickName = lbNickName.Text;

        string Address      = txtAddress.Text;
        string PostCode     = txtPostCode.Text;
        string Mobile       = txtMobile.Text;
        string ManageTypeID = this.ViewState["ManageTypeID"].ToString();

        modelInfo3.Address  = txtAddress.Text;
        modelInfo3.Birthday = DateTime.Now;
        modelInfo3.Email    = txtEmail.Text;
        modelInfo3.Mobile   = txtMobile.Text;
        modelInfo3.NickName = lbNickName.Text;
        modelInfo3.PostCode = txtPostCode.Text;

        int  int1 = 0;
        long int2 = 0;


        //判断会员信息表里是否己存在,并更新注册表
        if (this.ViewState["tag"].ToString() == "add")
        {
            int1 = objInfo3.MemberMessage_Insert(modelInfo3);
        }
        else if (this.ViewState["tag"].ToString() == "update")
        {
            int1 = objInfo3.MemberMessage_Update(modelInfo3);
        }


        //判断登记联系人表里是否己存在
        //int2 = objInfo2.OrgContactMan_FromMemberMessage(modelInfo2);

        if (int1 > 0)
        {
            Tz888.Common.MessageBox.Show(this.Page, "信息修改成功!");
        }
    }
Example #5
0
    //初始化联络人信息
    private void InitInfoContact()
    {
        string    loginName = Page.User.Identity.Name;
        DataTable dt1       = obj1.GetLoginInfoList("*", "LoginName='" + loginName + "'", "LoginName");

        Tz888.BLL.Register.common            bll   = new Tz888.BLL.Register.common();
        Tz888.Model.Register.OrgContactModel model = new Tz888.Model.Register.OrgContactModel();

        model = bll.getContactModel(loginName);
        if (model == null)
        {
            return;
        }
        txtCompanyName.Value = model.OrganizationName.Trim();
        txtLinkMan.Value     = model.Name.Trim();
        txtMobile.Value      = model.Mobile.Trim();
        //telArea1.Value = model.TelCountryCode.Trim(); //国际号
        //txtTelStateCode.Value = model.TelStateCode.Trim();  //区号
        //txtTel.Value = model.TelNum.Trim(); //电话号

        txtWebSite.Value = model.Website.Trim();
        txtEmail.Value   = model.Email.Trim();
        txtAddress.Value = model.address.Trim();
        // txtCareer.Value = model.Career.Trim();
        if (dt1.Rows.Count > 0)
        {
            if (dt1.Rows[0]["Tel"] != DBNull.Value && dt1.Rows[0]["Tel"].ToString() != "")
            {
                try
                {
                    string[] tel = dt1.Rows[0]["Tel"].ToString().Split('-');
                    telArea1.Value        = tel[0].ToString();
                    txtTelStateCode.Value = tel[1].ToString();
                    txtTel.Value          = tel[2].ToString();
                }
                catch
                {
                    telArea1.Value        = "+86";
                    txtTelStateCode.Value = "";
                    //因以前数据格式不同原因,没有用‘-’分格
                    txtTel.Value = dt1.Rows[0]["Tel"].ToString();
                }
            }
        }

        Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel();
        Tz888.BLL.Register.MemberInfoBLL     obj3   = new Tz888.BLL.Register.MemberInfoBLL();
        string name = Page.User.Identity.Name;

        model3 = obj3.GetModel(" LoginName='" + name + "'");
        this.ZoneSelectControl1.CountryID = model3.CountryCode.ToString().Trim(); //国别
        ZoneSelectControl1.CityID         = model3.CityID.ToString().Trim();      //市
        ZoneSelectControl1.ProvinceID     = model3.ProvinceID.ToString().Trim();  //省
        ZoneSelectControl1.CountyID       = model3.CountyID.ToString().Trim();    //县
    }
Example #6
0
    public string dgGetFocuseMe()
    {
        StringWriter   wr     = new StringWriter();
        HtmlTextWriter writer = new HtmlTextWriter(wr);
        StringBuilder  sb     = new StringBuilder();
        //读取用户的身份信息
        string LoginName = Tz888.BLL.Login.LoginInfoBLL.GetCookieContentByCookieType(0);

        if (LoginName.Trim() != "")
        {
            Tz888.BLL.Conn bllComm  = new Tz888.BLL.Conn();
            DataTable      dt       = new DataTable();
            long           CurrPage = 1;
            long           AllCount = 0;
            dt = bllComm.GetList("innerinfocontactTab", "loginName", "*", "ContactName='" + LoginName + "' and groupid = 1", "ContactID", ref CurrPage, 4, ref AllCount);
            if (AllCount > 0)
            {
                sb.Append("<div class='notemsg1'>共有<a href='/helper/InfoCollection.aspx' class='chenglink'><span id='focusme'>" + AllCount.ToString() + "</span></a> 位用户将您添加为好友</div>");
            }
            else
            {
                sb.Append("<div class='notemsg1'>没有新用户将您添加为好友!</div>");
            }


            sb.Append("<table width=100% border=0 cellpadding=0 cellspacing=0 class='none'>");

            Tz888.BLL.Register.MemberInfoBLL member = new Tz888.BLL.Register.MemberInfoBLL();
            sb.Append("<tr>");
            string tdName = "";
            if (dt.Rows.Count > 0)
            {
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    DataTable dtMember = bllComm.GetList("LoginInfoTAB", "*", "LoginName", 1, 1, 0, 1, "LoginName='" + dt.Rows[i]["loginName"].ToString().Trim() + "'");
                    string    headImg  = "";
                    //if (modelMem.HeadPortrait != "")
                    //    headImg = "http://images.topfo.com/" + modelMem.HeadPortrait;
                    //else
                    headImg = "../images/MemberData/nopic.gif";

                    sb.Append("<td width=28%><a target='_blank' href='/Register/MemberMessage_P.aspx?LoginName=" + dtMember.Rows[0]["LoginName"].ToString() + "'><img src='" + headImg + "' border='0' width='50' height='50' /></a></td>");
                    tdName += "<td><a target='_blank' href='/Register/MemberMessage_P.aspx?LoginName=" + dtMember.Rows[0]["LoginName"].ToString() + "'>" + dtMember.Rows[0]["NickName"].ToString() + "</a></td>";
                }
            }
            sb.Append("</tr><tr>");
            sb.Append(tdName);
            sb.Append("</tr></table>");
            sb.Append("<div class='entermail'><a href='helper/FriendManager/FriendAttention.aspx'  class='blue'>&gt;&gt;进入我的关注信息</a></div></div>");
        }
        return(sb.ToString());
    }
Example #7
0
        //发送重设密码邮件
        public void SendResetMail(string url, string name, string pwd, string mail, string validurl, string absimgurl)
        {
            Tz888.BLL.AutoSendMsg            msg    = new Tz888.BLL.AutoSendMsg();
            Tz888.BLL.Register.MemberInfoBLL member = new MemberInfoBLL();

            string content;

            content = msg.DownUrl(url, "GB2312");
            content = content.Replace("$LOGINNAME$", name);
            content = content.Replace("$PassWord$", pwd);
            content = content.Replace("../..", absimgurl);
            content = content.Replace("$CONFIRMURL$", validurl);
            msg.SendEmail(mail, "重设密码以确保您TopFo账号安全", content);
        }
Example #8
0
        //发送找回用户名信件
        public void SendSucceedMail(string url, string name, string mail, string absimgurl)
        {
            Tz888.BLL.Register.MemberInfoBLL member = new MemberInfoBLL();
            Tz888.BLL.Register.LoginInfoBLL  log    = new LoginInfoBLL();
            Tz888.BLL.AutoSendMsg            msg    = new Tz888.BLL.AutoSendMsg();

            string content;

            content = msg.DownUrl(url, "GB2312");
            content = content.Replace("$LOGINNAME$", name);
            content = content.Replace("../..", absimgurl);
            content = content.Replace("$LOGINURL$", absimgurl);
            msg.SendEmail(mail, "成功找回用户名,欢迎登陆TopFo", content);
        }
Example #9
0
    /// <summary>
    /// 加载用户联系信息
    /// </summary>
    public void InitInfoContact()
    {
        string Lname = Page.User.Identity.Name;

        this.ViewState["LoginMemberName"] = Page.User.Identity.Name;
        DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + Lname + "'", "LoginName");

        //会员信息表
        Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel();
        Tz888.BLL.Register.MemberInfoBLL     obj3   = new Tz888.BLL.Register.MemberInfoBLL();
        model3 = obj3.GetModel("LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'");

        this.ZoneSelectControl1.CountryID = model3.CountryCode.ToString().Trim(); //国别
        ZoneSelectControl1.CityID         = model3.CityID.ToString().Trim();      //市
        ZoneSelectControl1.ProvinceID     = model3.ProvinceID.ToString().Trim();  //省
        ZoneSelectControl1.CountyID       = model3.CountyID.ToString().Trim();    //县
        Tz888.Model.Register.OrgContactModel org = new Tz888.Model.Register.OrgContactModel();
        Tz888.BLL.Info.MarchantInfoBLL       mar = new Tz888.BLL.Info.MarchantInfoBLL();
        org = mar.SelLoginName(Page.User.Identity.Name);
        // org = mar.SelLoginName("dishi");
        this.txtCompanyName.Text = org.OrganizationName;
        this.txtName.Text        = org.Name;
        //this.txtPosition.Text = org.Position;
        //this.txtTelCountry.Text = org.TelCountryCode;
        //this.txtTelZoneCode.Text = org.TelStateCode;
        //this.txtTelNumber.Text = org.TelNum;
        this.txtMobile.Text  = org.Mobile;
        this.txtEmail.Text   = org.Email;
        this.txtAddress.Text = org.address;
        if (dt1.Rows.Count > 0)
        {
            if (dt1.Rows[0]["Tel"] != DBNull.Value && dt1.Rows[0]["Tel"].ToString() != "")
            {
                try
                {
                    string[] tel = dt1.Rows[0]["Tel"].ToString().Split('-');
                    txtTelCountry.Text  = tel[0].ToString();
                    txtTelZoneCode.Text = tel[1].ToString();
                    txtTelNumber.Text   = tel[2].ToString();
                }
                catch
                {
                    txtTelCountry.Text  = "+86";
                    txtTelZoneCode.Text = "";
                    //因以前数据格式不同原因,没有用‘-’分格
                    txtTelNumber.Text = dt1.Rows[0]["Tel"].ToString();
                }
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        model2 = new Tz888.Model.Register.MemberInfoModel();
        obj1   = new Tz888.BLL.Login.LoginInfoBLL();                 //注册信息
        obj2   = new Tz888.BLL.Register.MemberInfoBLL();             //会员信息表

        this.ViewState["LoginMemberName"] = Page.User.Identity.Name; //"bettylee";
        this.ViewState["HeadPortrait"]    = "";

        if (!IsPostBack)
        {
            //databind();
            databind2();
        }
    }
Example #11
0
        //发送确认邮件
        public void SendMail(string url, string name, string mail, string validurl, string absimgurl)
        {
            Tz888.BLL.AutoSendMsg            msg    = new Tz888.BLL.AutoSendMsg();
            Tz888.BLL.Register.MemberInfoBLL member = new MemberInfoBLL();

            string nickName = member.getNickName(name);
            string content;

            content = msg.DownUrl(url, "GB2312");
            content = content.Replace("$NICKNAME$", nickName);
            content = content.Replace("$LOGNAME$", name);
            content = content.Replace("$EMAIL$", mail);
            content = content.Replace("$CONFIRMURL$", validurl);
            content = content.Replace("../..", absimgurl);

            msg.SendEmail(mail, "完成验证即可享受TopFo的特色服务", content);
        }
Example #12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     InfoID  = Convert.ToInt64(Request.QueryString["id"]);
     pageurl = Request.QueryString["url"].ToString();
     if (Page.User.Identity.Name == "")
     {
         divLogin.Visible   = true;
         divLoginOk.Visible = false;
     }
     else
     {
         divLogin.Visible   = false;
         divLoginOk.Visible = true;
         Tz888.BLL.Register.MemberInfoBLL regObj = new Tz888.BLL.Register.MemberInfoBLL();
         lblNickName.Text = regObj.getNickName(Page.User.Identity.Name);
     }
     this.btnSend.Attributes.Add("onclick", "loading();");
 }
Example #13
0
        //发送成功信件
        public void SendSuccessMail(string url, string name, string mail, string absimgurl)
        {
            Tz888.BLL.Register.MemberInfoBLL member = new MemberInfoBLL();
            Tz888.BLL.Register.LoginInfoBLL  log    = new LoginInfoBLL();
            Tz888.BLL.AutoSendMsg            msg    = new Tz888.BLL.AutoSendMsg();

            string nickName    = member.getNickName(name);
            string managerType = log.GetManagerType(name);
            string content;

            content = msg.DownUrl(url, "GB2312");
            content = content.Replace("$LOGINNAME$", name);
            content = content.Replace("$NICKNAME$", nickName);
            content = content.Replace("$MANAGERTYPE$", managerType);
            content = content.Replace("c" + managerType.Trim(), "");
            content = content.Replace("../..", absimgurl);
            content = content.Replace("$LOGINURL$", absimgurl);
            msg.SendEmail(mail, "验证成功,欢迎加入拓富大家庭", content);
        }
Example #14
0
 protected void Page_Load(object sender, EventArgs e)
 {
     InfoID = Convert.ToInt64(Request.QueryString["id"]);
     if (Page.User.Identity.Name == "")
     {
         divLogin.Visible   = true;
         divLoginOk.Visible = false;
     }
     else
     {
         divLogin.Visible   = false;
         divLoginOk.Visible = true;
         Tz888.BLL.Register.MemberInfoBLL regObj = new Tz888.BLL.Register.MemberInfoBLL();
         lblNickName.Text = regObj.getNickName(Page.User.Identity.Name);
     }
     if (!Page.IsPostBack)
     {
         Tz888.BLL.Conn dal = new Tz888.BLL.Conn();
         int            c   = dal.GetCount("InfoCommentTab", "InfoID", "InfoID=" + InfoID);
         lblCount.Text = c.ToString();
     }
 }
Example #15
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string loginName = "";

        try { loginName = Request.Cookies["topfo.com_CKData"].Value; }
        catch (NullReferenceException exp)
        {
            loginName = "";
        }
        if (loginName.Trim() != "" || loginName != string.Empty)
        {
            Tz888.BLL.Register.MemberInfoBLL logBLL = new Tz888.BLL.Register.MemberInfoBLL();

            nickName = logBLL.getNickName(loginName);
            string email = logBLL.GetEmailByLoginName(loginName);

            txtemail.Text     = email;
            name.Text         = nickName;
            content.InnerText = "  我发现了一个很好的网站,已经成为它的会员了。我觉得它也很适合你,你可以到下面的地址去注册: http://member.topfo.com/Register/Register.aspx ,感受一下它的功能和良好服务。\r" +
                                "  另外,如果你注册的时候在“邀请人”一栏填上我的昵称,还能给我带来500积分哦。我的昵称是“" + nickName + "”,呵呵,快去注册吧! ";
            pnick2.Text = nickName;
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        //btnOk.Attributes.Add("onclick", "return chkPost();");

        //this.ViewState["LoginMemberName"] = Page.User.Identity.Name;
        this.ViewState["LoginMemberName"] = "xiongmaozi";
        this.ViewState["HeadPortrait"]    = "";

        //注册信息
        Tz888.BLL.Login.LoginInfoBLL obj1 = new Tz888.BLL.Login.LoginInfoBLL();
        //登记联系人

        Tz888.BLL.Register.common            obj2   = new Tz888.BLL.Register.common();
        Tz888.Model.Register.OrgContactModel model2 = new Tz888.Model.Register.OrgContactModel();
        //会员信息表
        Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel();
        Tz888.BLL.Register.MemberInfoBLL     obj3   = new Tz888.BLL.Register.MemberInfoBLL();

        model3 = obj3.GetModel("LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'");


        if (!IsPostBack)
        {
            DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'", "LoginName");
            this.ViewState["ManageTypeID"] = dt1.Rows[0]["ManageTypeID"].ToString();
            model2 = obj2.getContactModel(this.ViewState["LoginMemberName"].ToString());
            if (dt1.Rows.Count > 0)
            {
                txtEmail.Text    = dt1.Rows[0]["Email"].ToString();
                lbLoginName.Text = dt1.Rows[0]["LoginName"].ToString();

                if (dt1.Rows[0]["Tel"] != DBNull.Value && dt1.Rows[0]["Tel"].ToString() != "")
                {
                    try
                    {
                        string[] tel = dt1.Rows[0]["Tel"].ToString().Split('-');
                        txtTelCountry.Text  = tel[0].ToString();
                        txtTelZoneCode.Text = tel[1].ToString();
                        txtTelNumber.Text   = tel[2].ToString();
                    }
                    catch
                    {
                        txtTelCountry.Text  = "+86";
                        txtTelZoneCode.Text = "";
                        //因以前数据格式不同原因,没有用‘-’分格
                        txtTelNumber.Text = dt1.Rows[0]["Tel"].ToString();
                    }
                }
                txtNickName.Text     = dt1.Rows[0]["NickName"].ToString();
                txtCompany.Text      = dt1.Rows[0]["CompanyName"].ToString();
                txtContactTitle.Text = dt1.Rows[0]["ContactTitle"].ToString();
                txtContactName.Text  = dt1.Rows[0]["ContactName"].ToString();

                if (model2 != null)
                {
                    txtMobile.Text   = model2.Mobile;
                    txtAddress.Text  = model2.address;
                    txtPostCode.Text = model2.PostCode;
                }

                this.ViewState["tag"] = "update";
            }
            else
            {
                this.ViewState["tag"] = "add";
            }
        }
    }
    protected void btnOk_Click(object sender, EventArgs e)
    {
        //注册信息
        //Tz888.BLL.Login.LoginInfoBLL objInfo1 = new Tz888.BLL.Login.LoginInfoBLL();
        //登记联系人


        //Tz888.BLL.Register.common objInfo2 = new Tz888.BLL.Register.common();
        //Tz888.Model.Register.OrgContactModel modelInfo2 = new Tz888.Model.Register.OrgContactModel();
        //会员信息表


        Tz888.Model.Register.MemberInfoModel modelInfo3 = new Tz888.Model.Register.MemberInfoModel();
        Tz888.BLL.Register.MemberInfoBLL     objInfo3   = new Tz888.BLL.Register.MemberInfoBLL();

        string LoginName  = this.ViewState["LoginMemberName"].ToString();
        string MemberName = txtCompany.Text.Trim();
        //bool Sex = Convert.ToBoolean(rblSex.SelectedValue);
        string NickName = txtNickName.Text;

        string Address      = txtAddress.Text;
        string PostCode     = txtPostCode.Text;
        string Mobile       = txtMobile.Text;
        string ManageTypeID = this.ViewState["ManageTypeID"].ToString();


        ///---------------------------------
        ///design by ww (20090526)
        ///---------------------------------
        modelInfo3.LoginName  = LoginName;
        modelInfo3.MemberName = MemberName;
        modelInfo3.Tel        = txtTelCountry.Text.Trim() + "-" + txtTelZoneCode.Text.Trim() + "-" + txtTelNumber.Text.Trim();
        //modelInfo3.RequirInfo = txtContactTitle.Text;//职位


        modelInfo3.Address    = txtAddress.Text;
        modelInfo3.Birthday   = DateTime.Now;
        modelInfo3.Email      = txtEmail.Text;
        modelInfo3.Mobile     = txtMobile.Text;
        modelInfo3.NickName   = txtNickName.Text;
        modelInfo3.PostCode   = txtPostCode.Text;
        modelInfo3.MemberName = txtContactName.Text;

        int int1 = 0;

        //判断会员信息表里是否己存在,并更新注册表
        if (this.ViewState["tag"].ToString() == "add")
        {
            int1 = objInfo3.MemberMessage_Insert(modelInfo3);
        }
        else if (this.ViewState["tag"].ToString() == "update")
        {
            int1 = objInfo3.MemberMessage_Update(modelInfo3);
        }
        Tz888.BLL.Register.LoginInfoBLL dal1 = new Tz888.BLL.Register.LoginInfoBLL();
        int resultproperty = dal1.UpdateLoginPropertyID(this.ViewState["LoginMemberName"].ToString(), Convert.ToInt32(this.radiotype.SelectedValue), 2003);

        //判断登记联系人表里是否己存在
        //int2 = objInfo2.OrgContactMan_FromMemberMessage(modelInfo2);

        if (int1 > 0 && resultproperty > 0)
        {
            Tz888.Common.MessageBox.Show(this.Page, "信息修改成功!");
        }
    }
    private void BindShow()
    {
        this.ViewState["LoginMemberName"] = "wa";
        this.ViewState["HeadPortrait"]    = "";

        //注册信息
        Tz888.BLL.Login.LoginInfoBLL obj1 = new Tz888.BLL.Login.LoginInfoBLL();
        //登记联系人

        Tz888.BLL.Register.common            obj2   = new Tz888.BLL.Register.common();
        Tz888.Model.Register.OrgContactModel model2 = new Tz888.Model.Register.OrgContactModel();
        //会员信息表
        Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel();
        Tz888.BLL.Register.MemberInfoBLL     obj3   = new Tz888.BLL.Register.MemberInfoBLL();

        model3 = obj3.GetModel("LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'");

        //判断是个人会员还是企业会员
        Tz888.BLL.Register.LoginInfoBLL dal1 = new Tz888.BLL.Register.LoginInfoBLL();

        string propertyid = dal1.GetPropertyID("wa");

        this.radiotype.Items.FindByValue(propertyid.Trim()).Selected = true;
        if (propertyid == "1")
        {
            lbManageType.Text = "项目方 (个人)";
        }
        else
        {
            lbManageType.Text = "项目方 (企业)";
        }

        DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'", "LoginName");

        this.ViewState["ManageTypeID"] = dt1.Rows[0]["ManageTypeID"].ToString();
        model2 = obj2.getContactModel(this.ViewState["LoginMemberName"].ToString());

        if (dt1.Rows.Count > 0)
        {
            txtEmail.Text    = dt1.Rows[0]["Email"].ToString();
            lbLoginName.Text = dt1.Rows[0]["LoginName"].ToString();

            if (dt1.Rows[0]["Tel"] != DBNull.Value && dt1.Rows[0]["Tel"].ToString() != "")
            {
                try
                {
                    string[] tel = dt1.Rows[0]["Tel"].ToString().Split('-');
                    txtTelCountry.Text  = tel[0].ToString();
                    txtTelZoneCode.Text = tel[1].ToString();
                    txtTelNumber.Text   = tel[2].ToString();
                }
                catch
                {
                    txtTelCountry.Text  = "+86";
                    txtTelZoneCode.Text = "";
                    //因以前数据格式不同原因,没有用‘-’分格
                    txtTelNumber.Text = dt1.Rows[0]["Tel"].ToString();
                }
            }
            txtNickName.Text     = dt1.Rows[0]["NickName"].ToString();
            txtCompany.Text      = dt1.Rows[0]["CompanyName"].ToString();
            txtContactTitle.Text = dt1.Rows[0]["ContactTitle"].ToString();
            txtContactName.Text  = dt1.Rows[0]["ContactName"].ToString();

            if (model2 != null)
            {
                txtMobile.Text   = model2.Mobile;
                txtAddress.Text  = model2.address;
                txtPostCode.Text = model2.PostCode;
            }

            ///---------------------------------
            ///design by ww (20090526)
            ///---------------------------------

            if (model3 != null)
            {
                //modelInfo3.Address = txtAddress.Text;
                //modelInfo3.Birthday = DateTime.Now;
                //modelInfo3.Email = txtEmail.Text;
                //modelInfo3.Mobile = txtMobile.Text;
                //modelInfo3.NickName = txtNickName.Text;
                //modelInfo3.PostCode = txtPostCode.Text;
                txtAddress.Text     = model3.Address.ToString();
                txtEmail.Text       = model3.Email.ToString();
                txtMobile.Text      = model3.Mobile.ToString();
                txtNickName.Text    = model3.NickName.ToString();
                txtPostCode.Text    = model3.PostCode.ToString();
                txtContactName.Text = model3.MemberName;
            }


            this.ViewState["tag"] = "update";
        }
        else
        {
            this.ViewState["tag"] = "add";
        }
    }
Example #19
0
    protected void btnOk_Click(object sender, EventArgs e)
    {
        //注册信息
        Tz888.BLL.Login.LoginInfoBLL objInfo1 = new Tz888.BLL.Login.LoginInfoBLL();
        //登记联系人


        Tz888.BLL.Register.common            objInfo2   = new Tz888.BLL.Register.common();
        Tz888.Model.Register.OrgContactModel modelInfo2 = new Tz888.Model.Register.OrgContactModel();
        //会员信息表


        Tz888.Model.Register.MemberInfoModel modelInfo3 = new Tz888.Model.Register.MemberInfoModel();
        Tz888.BLL.Register.MemberInfoBLL     objInfo3   = new Tz888.BLL.Register.MemberInfoBLL();

        #region  信息赋值



        string LoginName  = this.ViewState["LoginMemberName"].ToString();
        string MemberName = txtMemberName.Text.Trim();
        bool   Sex        = Convert.ToBoolean(rblSex.SelectedValue);
        string NickName   = lbNickName.Text;

        string Address      = txtAddress.Text;
        string PostCode     = txtPostCode.Text;
        string Mobile       = txtMobile.Text;
        string ManageTypeID = this.ViewState["ManageTypeID"].ToString();

        #region 注册信息
        modelInfo3.MemberID          = 0;
        modelInfo3.LoginName         = this.ViewState["LoginMemberName"].ToString();
        modelInfo3.MemberName        = MemberName;
        modelInfo3.Sex               = Sex;
        modelInfo3.NickName          = NickName;
        modelInfo3.Birthday          = DateTime.Now;
        modelInfo3.CertificateID     = "";
        modelInfo3.CertificateNumber = "";
        modelInfo3.CountryCode       = "";
        modelInfo3.ProvinceID        = "";
        modelInfo3.CountyID          = "";
        modelInfo3.Address           = Address;
        modelInfo3.PostCode          = PostCode;
        modelInfo3.Tel               = txtTelCountry.Text + "-" + txtTelZoneCode.Text + "-" + txtTelNumber.Text;
        modelInfo3.Mobile            = txtMobile.Text;
        modelInfo3.FAX               = txtFaxCountry.Text + "-" + txtFaxZoneCode.Text + "-" + txtFaxNumber.Text;
        modelInfo3.Email             = txtEmail.Text;
        modelInfo3.IsSecurity        = false;
        modelInfo3.ManageTypeID      = ManageTypeID;

        string strRequirInfo = "";
        foreach (ListItem li in ChkLstRequirInfo.Items)
        {
            if (li.Selected && li.Enabled)
            {
                strRequirInfo = strRequirInfo + li.Value.ToString().Trim() + ",";
            }
        }
        if (strRequirInfo == "")
        {
            Tz888.Common.MessageBox.Show(this.Page, "请选择您的用户意向。");
        }
        modelInfo3.RequirInfo = strRequirInfo;

        modelInfo3.RequirInfoDesc = "";

        //保存头像
        string Pic1 = "";
        try
        {
            string[] UploadImgFileName = FileUploader1.SaveImages("MemberHead");

            if (UploadImgFileName.Length > 0)
            {
                Pic1 = UploadImgFileName[0];
            }
        }
        catch (Exception aa) {
            //// Response.Write(aa.ToString());
            //return;
        }
        if (this.ViewState["HeadPortrait"] != null && this.ViewState["HeadPortrait"].ToString() != "")
        {
            modelInfo3.HeadPortrait = Pic1 != "" ? Pic1 : this.ViewState["HeadPortrait"].ToString();
        }
        else
        {
            modelInfo3.HeadPortrait = Pic1 != "" ? Pic1 : "";
        }

        this.ViewState["HeadPortrait"] = modelInfo3.HeadPortrait;

        //  Response.Write(Session["HeadPortrait"].ToString());

        FileUploader1.Img        = ConfigurationManager.AppSettings["ImageDomain"].ToString() + "/" + modelInfo3.HeadPortrait;
        FileUploader1.ButtonName = "修改";
        FileUploader1.MaxPics    = 1;
        FileUploader1.IsUp       = "0";//是否通过控件上传

        #endregion

        #region 公司登记信息
        modelInfo2.ContactID        = 0;
        modelInfo2.LoginName        = this.ViewState["LoginMemberName"].ToString();
        modelInfo2.OrganizationName = txtOrganizationName.Text;
        modelInfo2.Name             = LoginName;
        modelInfo2.Career           = tbCareer.Text;
        modelInfo2.TelCountryCode   = txtTelCountry.Text;
        modelInfo2.TelStateCode     = txtTelZoneCode.Text;
        modelInfo2.TelNum           = txtTelNumber.Text;
        modelInfo2.FaxCountryCode   = txtFaxCountry.Text;
        modelInfo2.FaxStateCode     = txtFaxZoneCode.Text;
        modelInfo2.FaxNum           = txtFaxNumber.Text;
        modelInfo2.Email            = txtEmail.Text;
        modelInfo2.Mobile           = txtMobile.Text;
        modelInfo2.address          = txtAddress.Text;
        modelInfo2.PostCode         = txtPostCode.Text;
        modelInfo2.Website          = txtWebSite.Text;
        modelInfo2.IsDel            = false;
        modelInfo2.remark           = "";

        #endregion
        #endregion

        int  int1 = 0;
        long int2 = 0;


        //判断会员信息表里是否己存在,并更新注册表
        if (this.ViewState["tag"].ToString() == "add")
        {
            int1 = objInfo3.MemberMessage_Insert(modelInfo3);
        }
        else if (this.ViewState["tag"].ToString() == "update")
        {
            int1 = objInfo3.MemberMessage_Update(modelInfo3);
        }


        //判断登记联系人表里是否己存在
        int2 = objInfo2.OrgContactMan_FromMemberMessage(modelInfo2);

        if (int1 > 0 && int2 > 0)
        {
            Tz888.Common.MessageBox.Show(this.Page, "信息修改成功!");
        }
    }
Example #20
0
    protected void Page_Load(object sender, EventArgs e)
    {
        btnOk.Attributes.Add("onclick", "return chkPost();");

        this.ViewState["LoginMemberName"] = Page.User.Identity.Name;
        this.ViewState["HeadPortrait"]    = "";

        //注册信息
        Tz888.BLL.Login.LoginInfoBLL obj1 = new Tz888.BLL.Login.LoginInfoBLL();
        //登记联系人

        Tz888.BLL.Register.common            obj2   = new Tz888.BLL.Register.common();
        Tz888.Model.Register.OrgContactModel model2 = new Tz888.Model.Register.OrgContactModel();
        //会员信息表

        Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel();
        Tz888.BLL.Register.MemberInfoBLL     obj3   = new Tz888.BLL.Register.MemberInfoBLL();

        model3 = obj3.GetModel("LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'");

        ////头像
        //if (model3 != null)
        //{
        //    rblSex.SelectedValue = model3.Sex.ToString();
        //    if (model3.HeadPortrait != "" && model3.HeadPortrait != null)
        //    {
        //        FileUploader1.Img = ConfigurationManager.AppSettings["ImageDomain"].ToString() + "/" + model3.HeadPortrait;
        //        FileUploader1.ButtonName = "修改";
        //        FileUploader1.MaxPics = 0;
        //        FileUploader1.IsUp = "0";//是否通过控件上传
        //        //  this.ViewState["HeadPortrait"] = model3.HeadPortrait;
        //        this.ViewState["HeadPortrait"] = model3.HeadPortrait;
        //    }
        //    else
        //    {
        //        FileUploader1.Img = "../images/MemberData/nopic.gif";
        //        FileUploader1.ButtonName = "修改";
        //        FileUploader1.MaxPics = 1;
        //        FileUploader1.IsUp = "0";//是否通过控件上传
        //    }
        //}

        if (!IsPostBack)
        {
            DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'", "LoginName");
            model2 = obj2.getContactModel(this.ViewState["LoginMemberName"].ToString());
            if (dt1.Rows.Count > 0)
            {
                #region 信息绑定
                txtEmail.Text    = dt1.Rows[0]["Email"].ToString();
                lbLoginName.Text = dt1.Rows[0]["LoginName"].ToString();

                switch (dt1.Rows[0]["ManageTypeID"].ToString().Trim())
                {
                case "1001":
                    lbManageType.Text = "个人会员";
                    ChkLstRequirInfo.Items[0].Enabled = false;
                    Label1.Text            = "公司网址";
                    hlView.NavigateUrl     = "MemberMessage_P.aspx?LoginName=" + this.ViewState["LoginMemberName"].ToString();
                    HyperLink1.NavigateUrl = "MemberMessage_P.aspx?LoginName=" + this.ViewState["LoginMemberName"].ToString();
                    break;

                case "1003":
                    lbManageType.Text = "企业会员";
                    ChkLstRequirInfo.Items[0].Enabled = false;
                    Label1.Text            = "公司网址";
                    hlView.NavigateUrl     = "MemberMessage_E.aspx?LoginName=" + this.ViewState["LoginMemberName"].ToString();
                    HyperLink1.NavigateUrl = "MemberMessage_E.aspx?LoginName=" + this.ViewState["LoginMemberName"].ToString();
                    break;

                case "1004":
                    lbManageType.Text = "政府会员";
                    ChkLstRequirInfo.Items[1].Enabled = false;
                    ChkLstRequirInfo.Items[2].Enabled = false;
                    ChkLstRequirInfo.Items[3].Enabled = false;
                    ChkLstRequirInfo.Items[4].Enabled = false;
                    ChkLstRequirInfo.Items[5].Enabled = false;
                    Label1.Text            = "机构网址";
                    hlView.NavigateUrl     = "MemberMessage_G.aspx?LoginName=" + this.ViewState["LoginMemberName"].ToString();
                    HyperLink1.NavigateUrl = "MemberMessage_G.aspx?LoginName=" + this.ViewState["LoginMemberName"].ToString();
                    break;

                default:
                    break;
                }
                this.ViewState["ManageTypeID"] = dt1.Rows[0]["ManageTypeID"].ToString();
                string[] code = dt1.Rows[0]["RequirInfo"].ToString().Split(new char[] { ',' }, 6);
                foreach (ListItem li in ChkLstRequirInfo.Items)
                {
                    for (int i = 0; i < code.Length; i++)
                    {
                        if (li.Value == code[i].Trim())
                        {
                            li.Selected = true;
                        }
                    }
                }

                if (dt1.Rows[0]["Tel"] != "")
                {
                    try
                    {
                        string[] tel = dt1.Rows[0]["Tel"].ToString().Split('-');
                        txtTelCountry.Text  = tel[0].ToString();
                        txtTelZoneCode.Text = tel[1].ToString();
                        txtTelNumber.Text   = tel[2].ToString();
                    }
                    catch
                    {
                        txtTelCountry.Text  = "+86";
                        txtTelZoneCode.Text = "";
                        txtTelNumber.Text   = dt1.Rows[0]["Tel"].ToString();//因以前数据格式不同原因,没有用‘-’分格
                    }
                }


                lbNickName.Text    = dt1.Rows[0]["NickName"].ToString();
                txtMemberName.Text = dt1.Rows[0]["RealName"].ToString();


                //公司,机构登记    公司网址
                if (Page.User.IsInRole("MT1004"))//机构
                {
                    Tz888.BLL.Register.GovernmentRegisterBLL obj = new Tz888.BLL.Register.GovernmentRegisterBLL();
                    DataTable dtGov = obj.getGovernmentModel(this.ViewState["LoginMemberName"].ToString());
                    if (dtGov == null)
                    {
                        Label2.Text = "<span class='hui'> 您还没有登记您的机构信息<a href='/Register/GovernmentRegister.aspx'>立即登记</a></span>";
                        Label3.Text = "<span class='hui'>如果您的机构还没有网站</span><a href='http://co.topfo.com/manager/intro.aspx' target='blank'>请点此建立您的网上展厅</a>";
                    }
                    else
                    {
                        Label3.Text = "<span class='hui'>您的展厅地址为:www." + dtGov.Rows[0]["ExhibitionHall"].ToString().Trim() + ".co.tz888.cn <span class='hui'>,如果您的公司还没有网站,可用此网址。</span> ";
                    }
                }
                else if (Page.User.IsInRole("MT1003")) //企业
                {
                    Tz888.BLL.Register.EnterpriseRegisterBLL obj = new Tz888.BLL.Register.EnterpriseRegisterBLL();
                    DataTable dtEnt = obj.getEnterpriseModel(this.ViewState["LoginMemberName"].ToString());
                    if (dtEnt == null)
                    {
                        Label2.Text = "<span class='hui'> 您还没有登记您的公司信息<a href='/Register/EnterpriseRegister.aspx'>立即登记</a></span>";
                        Label3.Text = "<span class='hui'>如果您的公司还没有网站</span><a href='http://co.topfo.com/Manager/intro.aspx' target='blank'>请点此建立您的网上展厅</a>";
                    }
                    else
                    {
                        Label3.Text = "<span class='hui'>您的展厅地址为:www." + dtEnt.Rows[0]["ExhibitionHall"].ToString().Trim() + ".co.tz888.cn <span class='hui'>,如果您的公司还没有网站,可用此网址。</span> ";
                    }
                }
                else if (Page.User.IsInRole("MT1001")) //个人
                {
                    Label2.Text = "";
                }



                if (model2 != null)
                {
                    txtOrganizationName.Text = model2.OrganizationName;
                    txtMobile.Text           = model2.Mobile;
                    txtFaxCountry.Text       = model2.FaxCountryCode;
                    txtFaxZoneCode.Text      = model2.FaxStateCode;
                    txtFaxNumber.Text        = model2.FaxNum;
                    txtAddress.Text          = model2.address;
                    txtPostCode.Text         = model2.PostCode;
                }
                else
                {
                }

                #endregion

                this.ViewState["tag"] = "update";
            }
            else
            {
                this.ViewState["tag"] = "add";
            }
        }
        //会员是否存在
        AjaxPro.Utility.RegisterTypeForAjax(typeof(Tz888.Common.Ajax.AjaxMethod));
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        //btnOk.Attributes.Add("onclick", "return chkPost();");

        this.ViewState["LoginMemberName"] = Page.User.Identity.Name;
        this.ViewState["HeadPortrait"]    = "";

        //注册信息
        Tz888.BLL.Login.LoginInfoBLL obj1 = new Tz888.BLL.Login.LoginInfoBLL();
        //登记联系人

        Tz888.BLL.Register.common            obj2   = new Tz888.BLL.Register.common();
        Tz888.Model.Register.OrgContactModel model2 = new Tz888.Model.Register.OrgContactModel();
        //会员信息表
        Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel();
        Tz888.BLL.Register.MemberInfoBLL     obj3   = new Tz888.BLL.Register.MemberInfoBLL();

        model3 = obj3.GetModel("LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'");

        //判断是个人会员还是企业会员
        Tz888.BLL.Register.LoginInfoBLL dal1 = new Tz888.BLL.Register.LoginInfoBLL();
        string propertyid = dal1.GetPropertyID(Page.User.Identity.Name.Trim());

        if (propertyid == "1")
        {
            lbManageType.Text = "项目方 (个人)";
        }
        if (!IsPostBack)
        {
            DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'", "LoginName");
            this.ViewState["ManageTypeID"] = dt1.Rows[0]["ManageTypeID"].ToString();
            model2 = obj2.getContactModel(this.ViewState["LoginMemberName"].ToString());

            if (dt1.Rows.Count > 0)
            {
                txtEmail.Text    = dt1.Rows[0]["Email"].ToString();
                lbLoginName.Text = dt1.Rows[0]["LoginName"].ToString();

                if (dt1.Rows[0]["Tel"] != DBNull.Value && dt1.Rows[0]["Tel"].ToString() != "")
                {
                    try
                    {
                        string[] tel = dt1.Rows[0]["Tel"].ToString().Split('-');
                        txtTelCountry.Text  = tel[0].ToString();
                        txtTelZoneCode.Text = tel[1].ToString();
                        txtTelNumber.Text   = tel[2].ToString();
                    }
                    catch
                    {
                        txtTelCountry.Text  = "+86";
                        txtTelZoneCode.Text = "";
                        //因以前数据格式不同原因,没有用‘-’分格
                        txtTelNumber.Text = dt1.Rows[0]["Tel"].ToString();
                    }
                }
                lbNickName.Text      = dt1.Rows[0]["NickName"].ToString();
                txtCompany.Text      = dt1.Rows[0]["CompanyName"].ToString();
                txtContactTitle.Text = dt1.Rows[0]["ContactTitle"].ToString();
                txtContactName.Text  = dt1.Rows[0]["ContactName"].ToString();

                if (model2 != null)
                {
                    txtMobile.Text   = model2.Mobile;
                    txtAddress.Text  = model2.address;
                    txtPostCode.Text = model2.PostCode;
                }

                ///---------------------------------
                ///design by ww (20090526)
                ///---------------------------------

                if (model3 != null)
                {
                    //modelInfo3.Address = txtAddress.Text;
                    //modelInfo3.Birthday = DateTime.Now;
                    //modelInfo3.Email = txtEmail.Text;
                    //modelInfo3.Mobile = txtMobile.Text;
                    //modelInfo3.NickName = lbNickName.Text;
                    //modelInfo3.PostCode = txtPostCode.Text;
                    txtAddress.Text     = model3.Address.ToString();
                    txtEmail.Text       = model3.Email.ToString();
                    txtMobile.Text      = model3.Mobile.ToString();
                    lbNickName.Text     = model3.NickName.ToString();
                    txtPostCode.Text    = model3.PostCode.ToString();
                    txtContactName.Text = model3.MemberName;
                }


                this.ViewState["tag"] = "update";
            }
            else
            {
                this.ViewState["tag"] = "add";
            }
        }
    }
Example #22
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //btnOk.Attributes.Add("onclick", "return chkPost();");

        this.ViewState["LoginMemberName"] = "262734254ee"; //Page.User.Identity.Name;
        this.ViewState["HeadPortrait"]    = "";
        //注册信息
        Tz888.BLL.Login.LoginInfoBLL obj1 = new Tz888.BLL.Login.LoginInfoBLL();
        //登记联系人
        Tz888.BLL.Register.common            obj2   = new Tz888.BLL.Register.common();
        Tz888.Model.Register.OrgContactModel model2 = new Tz888.Model.Register.OrgContactModel();
        //会员信息表
        Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel();
        Tz888.BLL.Register.MemberInfoBLL     obj3   = new Tz888.BLL.Register.MemberInfoBLL();
        model3 = obj3.GetModel("LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'");
        if (!IsPostBack)
        {
            #region 加载获取信息
            this.ZoneSelectControl1.CountryID = model3.CountryCode.ToString().Trim(); //国别
            ZoneSelectControl1.CityID         = model3.CityID.ToString().Trim();      //市
            ZoneSelectControl1.ProvinceID     = model3.ProvinceID.ToString().Trim();  //省
            ZoneSelectControl1.CountyID       = model3.CountyID.ToString().Trim();    //县
            txtAddress.Text     = model3.Address.ToString();                          //联系地址
            txtEmail.Text       = model3.Email.ToString();                            //邮箱
            txtContactName.Text = model3.MemberName.ToString();                       //联系人姓名
            txtMobile.Text      = model3.Mobile.ToString();                           //手机号码
            txtPostCode.Text    = model3.PostCode.ToString().Trim();                  //邮编
            txtNickName.Text    = model3.NickName.ToString();                         //昵称
            DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + this.ViewState["LoginMemberName"].ToString() + "'", "LoginName");
            this.ViewState["ManageTypeID"] = dt1.Rows[0]["ManageTypeID"].ToString();
            model2 = obj2.getContactModel(this.ViewState["LoginMemberName"].ToString());
            if (dt1.Rows.Count > 0)
            {
                //txtEmail.Text = dt1.Rows[0]["Email"].ToString();
                lbLoginName.Text = dt1.Rows[0]["LoginName"].ToString().Trim();

                if (dt1.Rows[0]["Tel"] != DBNull.Value && dt1.Rows[0]["Tel"].ToString() != "")
                {
                    try
                    {
                        string[] tel = dt1.Rows[0]["Tel"].ToString().Split('-');
                        txtTelCountry.Text  = tel[0].ToString();
                        txtTelZoneCode.Text = tel[1].ToString();
                        txtTelNumber.Text   = tel[2].ToString();
                    }
                    catch
                    {
                        txtTelCountry.Text  = "+86";
                        txtTelZoneCode.Text = "";
                        //因以前数据格式不同原因,没有用‘-’分格
                        txtTelNumber.Text = dt1.Rows[0]["Tel"].ToString();
                    }
                }
                lbManageType.Text    = ShenFen(dt1.Rows[0]["ManageTypeID"].ToString().Trim());
                txtCompany.Text      = dt1.Rows[0]["CompanyName"].ToString();
                txtContactTitle.Text = dt1.Rows[0]["ContactTitle"].ToString();

                if (model2 != null)
                {
                    txtCompany.Text = model2.OrganizationName;
                }

                this.ViewState["tag"] = "update";
            }
            else
            {
                this.ViewState["tag"] = "add";
            }
            #endregion
        }
    }
Example #23
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ///------------------------------
        ///--design by AdSystem_20090620
        ///------------------------------
        bool   isBuy     = false;
        string viewid    = "0";
        string loginName = "";

        if (Request.QueryString["v"] != null && Request.QueryString["v"].ToString() != "")
        {
            viewid = Request.QueryString["v"].ToString().Trim();
        }
        if (Request.QueryString["LoginName"] != null && Request.QueryString["LoginName"].ToString() != "")
        {
            loginName = Request.QueryString["LoginName"].ToString().Trim();
        }
        AdSystem.Logic loc = new AdSystem.Logic();
        isBuy = loc.ViewInfo_IsBuy(Convert.ToInt64(viewid), loginName);
        if (!isBuy)
        {
            Response.Write("<script language=javascript>alert('您没有查看的权限,查询此信息需要花费1元,请先购买!');window.close();</script>");
            return;
        }



        //要传的值 ManageTypeID = 1001  LoginName
        if (Request.QueryString["LoginName"] != null)
        {
            // ManageTypeID=Request.QueryString["ManageTypeID"] ;
            LoginName = Request.QueryString["LoginName"].ToString().Trim();
            //注册信息
            Tz888.BLL.Login.LoginInfoBLL obj1 = new Tz888.BLL.Login.LoginInfoBLL();
            //登记联系人

            Tz888.BLL.Register.common            obj2   = new Tz888.BLL.Register.common();
            Tz888.Model.Register.OrgContactModel model2 = new Tz888.Model.Register.OrgContactModel();
            //会员信息表

            Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel();
            Tz888.BLL.Register.MemberInfoBLL     obj3   = new Tz888.BLL.Register.MemberInfoBLL();
            //会员登陆信息
            Tz888.SQLServerDAL.Conn obj4 = new Tz888.SQLServerDAL.Conn();
            // DataTable dt4 = obj4.GetList("LoginLogTab", "LoginTime", "LoginTime", 1, 1, 1, 1, "LoginName='"+LoginName+"'");
            //会员发布信息
            //  DataTable dt5 = obj4.GetList("MainInfoViw", "Title,PublishT,HtmlFile", "PublishT", 1000, 1, 0, 1, "LoginName='" + LoginName + "' ");

            DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + LoginName + "'", "LoginName");
            model2 = obj2.getContactModel(LoginName);

            model3 = obj3.GetModel("LoginName='" + LoginName + "'");

            if (dt1.Rows.Count > 0)
            {
                #region 信息绑定
                lbRealName.Text        = dt1.Rows[0]["RealName"].ToString() == "" ? dt1.Rows[0]["NickName"].ToString() : dt1.Rows[0]["RealName"].ToString();;
                lbLoginName.Text       = dt1.Rows[0]["LoginName"].ToString();
                lbNickName.Text        = dt1.Rows[0]["NickName"].ToString();
                lblNickName2.Text      = dt1.Rows[0]["NickName"].ToString();
                HyperLink1.NavigateUrl = "http://member.topfo.com/helper/FriendManager/FriendFore.aspx?name=" + lbLoginName.Text;
                HyperLink2.NavigateUrl = "http://member.topfo.com/InnerInfo/SendView.aspx?name=" + lbNickName.Text;
                switch (dt1.Rows[0]["ManageTypeID"].ToString().Trim())
                {
                case "1001":
                    lbManageType.Text = "个人会员";
                    break;

                case "1003":
                    lbManageType.Text = "企业会员";
                    break;

                case "1004":
                    lbManageType.Text = "政府会员";
                    break;

                default:
                    break;
                }
                switch (dt1.Rows[0]["MemberGradeID"].ToString().Trim())
                {
                case "1001":
                    GradeDiv.Visible = false;
                    break;

                case "1002":
                    GradeDiv.Visible = true;
                    break;

                default:
                    break;
                }

                string   req       = dt1.Rows[0]["RequirInfo"].ToString().Trim();
                string[] strReq    = req.Split(',');
                string   strRequar = "";
                for (int i = 0; i < strReq.Length; i++)
                {
                    switch (strReq[i].Trim())
                    {
                    case "1001":
                        strRequar += "政府招商 ";
                        break;

                    case "1002":
                        strRequar += "企业招商 ";
                        break;

                    case "1003":
                        strRequar += "项目融资 ";
                        break;

                    case "1004":
                        strRequar += "项目投资 ";
                        break;

                    case "1005":
                        strRequar += "创业合作 ";
                        break;

                    case "1006":
                        strRequar += "产品供求 ";
                        break;

                    default:
                        break;
                    }
                }

                lbRequar.Text = strRequar;//会员意向

                lbRegTime.Text = dt1.Rows[0]["RegisterTime"].ToString();
            }

            if (model2 != null)
            {
                lbCareer.Text           = model2.Career;
                lbOrganizationName.Text = model2.OrganizationName != "" ? model2.OrganizationName : "暂无";

                lbtAddress.Text = model2.address != "" ? model2.address : "暂无";

                lbSite.Text = model2.Website != "" ? model2.Website : "暂无";
            }

            int rowCount = Convert.ToInt32(obj4.GetList("LoginLogTab", "LoginTime", "LoginTime", 1, 1, 1, 1, "LoginName='" + LoginName + "'").Rows[0][0]);
            if (rowCount > 0)
            {
                DataTable dt4 = obj4.GetList("LoginLogTab", "LoginTime", "LoginTime", 1, 1, 0, 1, "LoginName='" + LoginName + "'");
                lbLoginCount.Text = rowCount.ToString();
                lbLoginB.Text     = dt4.Rows[0]["LoginTime"].ToString();
            }
            else
            {
                lbLoginCount.Text = "1";
                lbLoginB.Text     = DateTime.Now.ToShortDateString();
            }

            lbPublishCount.Text = obj4.GetList("MainInfoViw", "Title,PublishT,HtmlFile", "PublishT", 1, 1, 1, 1, "LoginName='" + LoginName + "' ").Rows[0][0].ToString();
            if (model3 != null)
            {
                lbSex.Text = model3.Sex ? "(女)" : "(男)";
                try
                {
                    imgHead.ImageUrl = model3.HeadPortrait.ToString() != "" ? ConfigurationManager.AppSettings["ImageDomain"].ToString() + "/" + model3.HeadPortrait.ToString() : @"../images/publish/noneimg.gif";
                }
                catch { imgHead.ImageUrl = @"../images/publish/noneimg.gif"; }
                lbTel.Text   = model3.Tel;
                lbMoble.Text = model3.Mobile;
                lbFax.Text   = model3.FAX;
            }
            else
            {
                imgHead.ImageUrl = @"../images/publish/noneimg.gif";
            }
        }
        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "请求出错");
        }
        #endregion
    }
Example #24
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ///------------------------------
        ///--design by AdSystem_20090620
        ///------------------------------
        bool   isBuy     = false;
        string viewid    = "0";
        string loginName = "";

        if (Request.QueryString["v"] != null && Request.QueryString["v"].ToString() != "")
        {
            viewid = Request.QueryString["v"].ToString().Trim();
        }
        if (Request.QueryString["LoginName"] != null && Request.QueryString["LoginName"].ToString() != "")
        {
            loginName = Request.QueryString["LoginName"].ToString().Trim();
        }
        AdSystem.Logic loc = new AdSystem.Logic();
        isBuy = loc.ViewInfo_IsBuy(Convert.ToInt64(viewid), loginName);
        if (!isBuy)
        {
            Response.Write("<script language=javascript>alert('您没有查看的权限,查询此信息需要花费1元,请先购买!');window.close();</script>");
            return;
        }


        //要传的值 ManageTypeID = 1003  LoginName
        if (Request.QueryString["LoginName"] != null)
        {
            LoginName = Request.QueryString["LoginName"].ToString();
            //注册信息
            Tz888.BLL.Login.LoginInfoBLL obj1 = new Tz888.BLL.Login.LoginInfoBLL();
            DataTable dt1 = obj1.GetLoginInfoList("*", "LoginName='" + LoginName + "'", "LoginName");
            //登记联系人

            Tz888.BLL.Register.common            obj2   = new Tz888.BLL.Register.common();
            Tz888.Model.Register.OrgContactModel model2 = new Tz888.Model.Register.OrgContactModel();
            model2 = obj2.getContactModel(LoginName);
            //会员信息表

            Tz888.Model.Register.MemberInfoModel model3 = new Tz888.Model.Register.MemberInfoModel();
            Tz888.BLL.Register.MemberInfoBLL     obj3   = new Tz888.BLL.Register.MemberInfoBLL();
            model3 = obj3.GetModel("LoginName='" + LoginName + "'");
            //会员登陆信息
            Tz888.SQLServerDAL.Conn obj4 = new Tz888.SQLServerDAL.Conn();
            // DataTable dt4 = obj4.GetList("LoginLogTab", "LoginTime", "LoginTime", 10000, 1, 0, 1, "LoginName='" + LoginName + "'");
            //会员发布信息
            // DataTable dt5 = obj4.GetList("MainInfoViw", "Title,PublishT,HtmlFile", "PublishT", 1000, 1, 0, 1, "LoginName='" + LoginName + "'");
            //公司登记信息
            Tz888.BLL.Register.EnterpriseRegisterBLL obj6 = new Tz888.BLL.Register.EnterpriseRegisterBLL();
            DataTable dt6 = obj6.getEnterpriseModel(LoginName);
            //公司附加信息
            // DataTable dt7 = obj4.GetList("MemberResourceTab", "*", "LoginName", 1, 1, 0, 1, "LoginName='kittycat'");

            if (dt1 != null)
            {
                #region 信息绑定
                lbRealName.Text        = dt1.Rows[0]["RealName"].ToString() == "" ? dt1.Rows[0]["NickName"].ToString() : dt1.Rows[0]["RealName"].ToString();
                lbLoginName.Text       = dt1.Rows[0]["LoginName"].ToString();
                lbNickName.Text        = dt1.Rows[0]["NickName"].ToString();
                lblNickName2.Text      = dt1.Rows[0]["NickName"].ToString();
                HyperLink1.NavigateUrl = "http://member.topfo.com/helper/FriendManager/FriendFore.aspx?name=" + lbLoginName.Text;
                HyperLink2.NavigateUrl = "http://member.topfo.com/InnerInfo/SendView.aspx?name=" + lbNickName.Text;

                switch (dt1.Rows[0]["ManageTypeID"].ToString().Trim())
                {
                case "1001":
                    lbManageType.Text = "个人会员";
                    break;

                case "1003":
                    lbManageType.Text = "企业会员";
                    break;

                case "1004":
                    lbManageType.Text = "政府会员";
                    break;

                default:
                    break;
                }
                switch (dt1.Rows[0]["MemberGradeID"].ToString().Trim())
                {
                case "1001":
                    GradeDiv.Visible = false;
                    break;

                case "1002":
                    GradeDiv.Visible = true;
                    break;

                default:
                    GradeDiv.Visible = false;
                    break;
                }
                string   req       = dt1.Rows[0]["RequirInfo"].ToString();
                string[] strReq    = req.Split(',');
                string   strRequar = "";
                for (int i = 0; i < strReq.Length; i++)
                {
                    switch (strReq[i].Trim())
                    {
                    case "1001":
                        strRequar += "政府招商 ";
                        break;

                    case "1002":
                        strRequar += "企业招商 ";
                        break;

                    case "1003":
                        strRequar += "项目融资 ";
                        break;

                    case "1004":
                        strRequar += "项目投资 ";
                        break;

                    case "1005":
                        strRequar += "创业合作 ";
                        break;

                    case "1006":
                        strRequar += "产品供求 ";
                        break;

                    default:
                        break;
                    }
                }

                lbRequar.Text = strRequar;//会员意向

                lbRegTime.Text = dt1.Rows[0]["RegisterTime"].ToString();


                if (model3 != null)
                {
                    lbSex.Text       = model3.Sex ? "(女)" : "(男)";
                    imgHead.ImageUrl = model3.HeadPortrait.ToString() != "" ? ConfigurationManager.AppSettings["ImageDomain"].ToString() + "/" + model3.HeadPortrait.ToString() : "../images/MemberData/nopic.gif";
                }

                if (model2 != null)
                {
                    lbCareer.Text           = model2.Career;
                    lbOrganizationName.Text = model2.OrganizationName != "" ? model2.OrganizationName : "暂无";

                    lbtAddress.Text = model2.address != "" ? model2.address : "暂无";

                    string tel = model2.TelCountryCode + model2.TelStateCode + model2.TelNum;
                    lbTel.Text = tel != "" ? tel : "暂无";

                    lbMoble.Text = model2.Mobile != "" ? model2.Mobile : "暂无";

                    string fax = model2.FaxCountryCode + model2.FaxStateCode + model2.FaxNum;
                    lbFax.Text = fax != "" ? fax : "暂无";

                    lbSite.Text = model2.Website != "" ? model2.Website : "暂无";
                }

                int rowCount = Convert.ToInt32(obj4.GetList("LoginLogTab", "LoginTime", "LoginTime", 1, 1, 1, 1, "LoginName='" + LoginName + "'").Rows[0][0]);

                if (rowCount > 0)
                {
                    DataTable dt4 = obj4.GetList("LoginLogTab", "LoginTime", "LoginTime", 1, 1, 0, 1, "LoginName='" + LoginName + "'");
                    lbLoginCount.Text = rowCount.ToString();
                    lbLoginB.Text     = dt4.Rows[0]["LoginTime"].ToString();
                }
                else
                {
                    lbLoginCount.Text = "1";
                    lbLoginB.Text     = DateTime.Now.ToShortDateString();
                }

                lbPublishCount.Text = obj4.GetList("MainInfoViw", "Title,PublishT,HtmlFile", "PublishT", 1, 1, 1, 1, "LoginName='" + LoginName + "' ").Rows[0][0].ToString();

                if (dt6 != null)
                {
                    string strMP       = dt6.Rows[0]["MainProduct"].ToString();
                    string MainProduct = "";
                    if (strMP.Trim() != "")
                    {
                        MainProduct = strMP.Remove(strMP.Length - 1);
                    }
                    lbMainProduct.Text = MainProduct != "" ? MainProduct : "暂无";
                    string   str     = dt6.Rows[0]["Industrylist"].ToString();
                    string[] strList = str.Split(',');
                    Tz888.BLL.Common.IndustryBLL obj7 = new Tz888.BLL.Common.IndustryBLL();
                    string strIndustry = "";
                    for (int i = 0; i < strList.Length; i++)
                    {
                        if (strList[i] != "")
                        {
                            strIndustry += obj7.GetNameByID(strList[i]) + " ";
                        }
                    }
                    lbIndustryModels.Text = strIndustry != "" ? strIndustry : "暂无";

                    //  2已审核(已审基本信息),0未审核、1审核通过、3审核不通过、4退款
                    if (dt6.Rows[0]["AuditingStatus"].ToString() == "1")
                    {
                        //查询认证信息
                        DataTable ddt6 = obj4.GetList("OrgAuditTab", "*", "AuditingDate", 1, 1, 0, 1, "LoginName='" + LoginName + "'");

                        lbAuditingStatus.Text = ddt6.Rows[0]["AuditingDate"].ToString() + "通过认证";
                    }
                    else
                    {
                        lbAuditingStatus.Text = "暂未通过认证";
                    }

                    lbExhibitionHall.Text = dt6.Rows[0]["ExhibitionHall"].ToString() != "" ? "http://www." + dt6.Rows[0]["ExhibitionHall"].ToString() + ".co.tz888.cn " : "暂无";
                }
                /// 资源类型
                /// 0 -其他文档
                /// 1 -图片
                /// 2 -视频
                /// <summary>
                /// 资源性质
                /// 0 --其他
                /// 1--立项批文
                ///2--商业计划书

                ///3 --项目视频展播
                /// 附:(公司登记附件 4-8)

                ///4营业执照
                ///5税务登记证(国税)
                ///6税务登记证(地税)
                ///7荣誉和证书

                ///8其它
                if (Page.User.IsInRole("GT1001"))   //普通会员

                {
                    spanRM.Visible = false;
                }
                else
                {
                    DataTable dtmr4 = obj4.GetList("MemberResourceTab", "*", "LoginName", 1, 1, 0, 1, "LoginName='" + LoginName + "' AND ResourceType=4");
                    if (dtmr4 != null)
                    {
                        lbResourceType4.Text = dtmr4.Rows.Count == 0 ? "暂无" : dtmr4.Rows.Count + "张己上传";
                    }
                    else
                    {
                        lbResourceType4.Text = "暂无";
                    }
                    DataTable dtmr56 = obj4.GetList("MemberResourceTab", "*", "LoginName", 1, 1, 0, 1, "LoginName='" + LoginName + "' AND ResourceType=5 OR ResourceType=6");
                    if (dtmr56 != null)
                    {
                        lbResourceType56.Text = dtmr56.Rows.Count == 0 ? "暂无" : dtmr4.Rows.Count + "张己上传";
                    }
                    else
                    {
                        lbResourceType56.Text = "暂无";
                    }

                    DataTable dtmr7 = obj4.GetList("MemberResourceTab", "*", "LoginName", 1, 1, 0, 1, "LoginName='" + LoginName + "' AND ResourceType=7");
                    if (dtmr7 != null)
                    {
                        lbResourceType7.Text = dtmr7.Rows.Count == 0 ? "暂无" : dtmr4.Rows.Count + "张己上传";
                    }
                    else
                    {
                        lbResourceType7.Text = "暂无";
                    }
                }
            }

            #endregion
        }
        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "请求出错");
        }
    }