Example #1
0
 private void SelInver()
 {
     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;
 }
Example #2
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();
                }
            }
        }
    }
Example #3
0
 /// <summary>
 /// 加载用户联系信息
 /// </summary>
 public void InitInfoContact()
 {
     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("8ming");
     this.txtComName.Text     = org.OrganizationName;
     this.txtLinkMan.Text     = org.Name;
     this.txtTelCountry.Text  = org.TelCountryCode;
     this.txtTelZoneCode.Text = org.TelStateCode;
     this.txtTelNumber.Text   = org.TelNum;
     this.txtMobile.Text      = org.Mobile;
     this.txtAddress.Text     = org.address;
     this.txtEmail.Text       = org.Email;
     this.txtPostCode.Text    = org.PostCode;
     this.txtWebSite.Text     = org.Website;
 }