Example #1
0
        public string GetCountyList(string CityID)
        {
            Tz888.BLL.Common.ZoneSelectBLL bll = new Tz888.BLL.Common.ZoneSelectBLL();
            DataView dv = bll.GetCountyList(CityID);

            string str = "|县级地区";

            if (dv == null)
            {
                return(str);
            }
            for (int m = 0; m < dv.Table.Rows.Count; m++)
            {
                try
                {
                    str += "," + dv[m]["CountyID"].ToString().Trim() + "|" + dv[m]["CountyName"].ToString().Trim();
                }
                catch
                {
                    //continue
                }
            }
            //str=str.Substring(1,str.Length-1);
            return(str);
        }
Example #2
0
        public string GetCityList(string ProvinceID)
        {
            Tz888.BLL.Common.ZoneSelectBLL bll = new Tz888.BLL.Common.ZoneSelectBLL();
            DataView dv = bll.GetCityList(ProvinceID);

            string str = "|地级市";

            if (dv == null)
            {
                return(str);
            }
            for (int m = 0; m < dv.Table.Rows.Count; m++)
            {
                str += "," + dv[m]["CityID"].ToString().Trim() + "|" + dv[m]["CityName"].ToString().Trim();
            }
            //str=str.Substring(1,str.Length-1);
            return(str);
        }
Example #3
0
        public string GetCountryList()
        {
            Tz888.BLL.Common.ZoneSelectBLL bll = new Tz888.BLL.Common.ZoneSelectBLL();
            DataView dv = new DataView();

            try
            {
                dv = bll.GetCountryList();
            }
            catch
            {
            }
            string str = ",";

            for (int m = 0; m < dv.Table.Rows.Count; m++)
            {
                str += "," + dv[m]["CountryCode"].ToString().Trim() + "|" + dv[m]["CountryName"].ToString().Trim();
            }
            return(str);
        }
Example #4
0
    public string SetAddress(object str1, object str2, object str3, object str4)
    {
        Tz888.BLL.Common.ZoneSelectBLL objZone = new Tz888.BLL.Common.ZoneSelectBLL();
        string s1 = ""; if (str1.ToString() != "")
        {
            s1 = objZone.GetCountryNameByCode(str1.ToString().Trim());
        }
        string s2 = ""; if (str2.ToString() != "")
        {
            s2 = objZone.GetProvinceNameByCode(str2.ToString().Trim());
        }
        string s3 = ""; if (str3.ToString() != "")
        {
            s3 = objZone.GetCityNameByCode(str3.ToString().Trim());
        }
        string s4 = ""; if (str4.ToString() != "")
        {
            s4 = objZone.GetCountyNameByCode(str4.ToString().Trim());
        }

        string str = s1 + " " + s2 + " " + s3 + " " + s4;

        return(str);
    }
Example #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        this.ViewState["MemberLoginName"] = Page.User.Identity.Name;
        Tz888.BLL.Register.GovernmentRegisterBLL obj = new Tz888.BLL.Register.GovernmentRegisterBLL();

        if (Page.User.IsInRole("MT1003"))
        {
            Response.Redirect("EnterpriseRegisterResult.aspx");
        }

        if (Page.User.IsInRole("MT1001"))
        {
            Tz888.Common.MessageBox.Show(this.Page, "对不起,您是个人会员,不能进行杨机构登记!");
            return;
        }

        if (Page.User.IsInRole("GT1001"))
        {
            divReg.Style.Add("display", "block");
        }
        if (Page.User.IsInRole("GT1002") || Page.User.IsInRole("MT1003"))
        {
            divReg.Style.Add("display", "none");
        }

        /*登记审核状态(待审核0 已发布上网1 未通过审核2 己删除3 )
         *  FeedbackStatus  反馈状态(0 可修改 1 将删除)*/
        DataTable dt = obj.getGovernmentModel(Page.User.Identity.Name);

        if (dt == null)
        {
            Response.Redirect("GovernmentRegister.aspx");
            return;
        }
        else if (dt.Rows.Count > 0)
        {
            //判断登记信息是的审核状态(AuditingStatus)1:审核状态:   2已审核(已审基本信息),0未审核、1审核通过、

            //3审核不通过、4退款(注意:审核为拓富通会员后不出现在此列表),付费状态和审核状态无关。

            switch (Convert.ToInt32(dt.Rows[0]["AuditingStatus"]))
            {
            case 0:
                lbMessage.Text = "您的机构资料还在审核过程中...";
                break;

            case 1:
                //基本信息
                lbMessage.Text = "您的机构资料己审核通过!";
                break;

            case 2:
                lbMessage.Text = "您的机构资料审核没有通过!";
                //审核信息
                Tz888.BLL.Conn objStatus = new Tz888.BLL.Conn();
                DataTable      dtStatus  = objStatus.GetList("OrgAuditTab", "*", "AuditingDate", 1, 1, 0, 1, "LoginName='" + Page.User.Identity.Name + "'");

                if (dtStatus.Rows.Count > 0)
                {
                    switch (dtStatus.Rows[0]["FeedbackStatus"].ToString())     //0即将删除 1可修改 2己发布

                    {
                    case "2":
                        lbFeedbackStatus.Text = "状态:即将删除";
                        lbResult.Text         = "原因:" + dtStatus.Rows[0]["AuditingRemark"].ToString();
                        break;

                    case "1":
                        lbFeedbackStatus.Text = "状态:可修改";
                        lbResult.Text         = "原因:" + dtStatus.Rows[0]["AuditingRemark"] + "<a href='GovernmentRegister.aspx'>马上去修改</a>";
                        break;

                    default:
                        break;
                    }
                }
                break;

            default:
                break;
            }

            lbOrgName.Text          = dt.Rows[0]["GovernmentName"].ToString();
            lbComAboutBrief.Text    = dt.Rows[0]["GovAbout"].ToString();
            lbMerchantTypeName.Text = dt.Rows[0]["MerchantTypeName"].ToString();
            // lbRegisterDate.Text = Convert.ToDateTime(dt.Rows[0]["EnrolDate"]).ToShortDateString();

            string CountryName = ""; string ProvinceName = ""; string CountyName = ""; string CityName = "";
            try
            {
                Tz888.BLL.Common.ZoneSelectBLL objZone = new Tz888.BLL.Common.ZoneSelectBLL();
                CountryName  = objZone.GetCountryNameByCode(dt.Rows[0]["CountryCode"].ToString().Trim());
                ProvinceName = objZone.GetProvinceNameByCode(dt.Rows[0]["ProvinceID"].ToString().Trim());
                CountyName   = objZone.GetCountyNameByCode(dt.Rows[0]["CountyID"].ToString().Trim());
                CityName     = objZone.GetCityNameByCode(dt.Rows[0]["CityID"].ToString().Trim());
            }
            catch { }
            lbZone.Text = (CountryName != "" ? CountryName : "") + " " + (ProvinceName != "" ? ProvinceName : "") + " " + (CountyName != "" ? CountyName : "") + " " + (CityName != "" ? CityName : "");

            //联系信息
            lbLinkMan.Text = dt.Rows[0]["Name"].ToString() != ""?dt.Rows[0]["Name"].ToString():"没有提供";
            lbMail.Text    = dt.Rows[0]["Email"].ToString() != ""?dt.Rows[0]["Email"].ToString():"没有提供";
            lbSite.Text    = dt.Rows[0]["Website"].ToString() != "" ? dt.Rows[0]["Website"].ToString() : "没有提供";
            lbTel.Text     = dt.Rows[0]["TelCountryCode"].ToString() + "-" + dt.Rows[0]["TelStateCode"].ToString() + "-" + dt.Rows[0]["TelNum"].ToString();
            lbFax.Text     = dt.Rows[0]["FaxCountryCode"].ToString() + "-" + dt.Rows[0]["FaxStateCode"].ToString() + "-" + dt.Rows[0]["FaxNum"].ToString();
            lbMobile.Text  = dt.Rows[0]["Mobile"].ToString() != ""?dt.Rows[0]["Mobile"].ToString():"没有提供";
            lbAddress.Text = dt.Rows[0]["address"].ToString() != ""?dt.Rows[0]["address"].ToString():"没有提供";

            //图片信息
            Tz888.BLL.Conn objResource = new Tz888.BLL.Conn();
            DataTable      dtResource  = objResource.GetList("MemberResourceTab", "*", "ResourceID", 1, 1, 0, 1, "LoginName='" + this.ViewState["MemberLoginName"].ToString() + "' AND ResourceProperty=0");
            if (dtResource != null && dtResource.Rows.Count > 0)
            {
                FileUploader1.Img        = Tz888.Common.Common.GetImageDomain() + "/" + dtResource.Rows[0]["ResourceAddr"].ToString();//ConfigurationManager.AppSettings["ImageDomain"].ToString()
                FileUploader1.ButtonName = "";
            }
            else
            {
                FileUploader1.Img        = @"../images/publish/noneimg.gif";
                FileUploader1.ButtonName = "添加";
                FileUploader1.IsUp       = "1";
                FileUploader1.InfoType   = "GovernmentRegister";
            }
        }
        else //没有进行公司登记
        {
            Response.Redirect("GovernmentRegister.aspx");
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Page.User.Identity.Name == null || Page.User.Identity.Name.Trim() == "")
        {
            Response.Redirect("../Login.aspx?ReturnUrl=" + Server.UrlEncode(Request.RawUrl));
        }

        //根据会员类型转向不同的登记页面

        if (Page.User.IsInRole("MT1004"))
        {
            Response.Redirect("GovernmentRegisterResult.aspx"); //机构
        }
        else if (Page.User.IsInRole("MT1001"))                  //个人
        {
            Tz888.Common.MessageBox.Show(this.Page, "对不起,个人会员不能进行登记!");
            if (Page.User.IsInRole("GT1001"))
            {
                Response.Write("index.aspx");
            }
            else
            {
                Response.Write("indexTop.aspx");
            }
        }

        Tz888.BLL.Register.EnterpriseRegisterBLL obj = new EnterpriseRegisterBLL();
        this.ViewState["MemberLoginName"] = Page.User.Identity.Name;

        /*登记审核状态(待审核0 已发布上网1 未通过审核2 己删除3 )
         *  FeedbackStatus  反馈状态(0 可修改 1 将删除)*/

        if (Page.User.IsInRole("GT1001"))
        {
            divReg.InnerHtml = " <strong>重要提示:</strong>请确保您发布的公司资料真实有效,由于发布虚假信息产生的任何责任," +
                               "由发布者自行承担! 想让您的公司介绍排在普通会员的前面被更多用户关注吗?点此<a href='VIPMemberRegister_In.aspx'>申请拓富通</a>" +
                               " 0755-82210116 82212980 在线客服";
        }

        if (Page.User.IsInRole("GT1002"))
        {
            divReg.InnerHtml = "";
        }

        DataTable dt = obj.getEnterpriseModel(this.ViewState["MemberLoginName"].ToString());

        if (dt == null)
        {
            Response.Redirect("EnterpriseRegister.aspx");
            return;
        }
        else if (dt.Rows.Count > 0)
        {
            //判断登记信息是的审核状态(AuditingStatus)1:审核状态:   2已审核(已审基本信息),0未审核、1审核通过、

            //3审核不通过、4退款(注意:审核为拓富通会员后不出现在此列表),付费状态和审核状态无关。

            switch (Convert.ToInt32(dt.Rows[0]["AuditingStatus"]))
            {
            case 0:
                lbMessage.Text = "您的公司资料还在审核过程中...";
                break;

            case 1:
                //基本信息
                lbMessage.Text = "您的公司资料己审核通过!";
                break;

            case 2:
                //审核信息
                lbMessage.Text = "您的公司资料审核没有通过!";
                Tz888.SQLServerDAL.Conn objStatus = new Tz888.SQLServerDAL.Conn();
                DataTable dtStatus = objStatus.GetList("OrgAuditTab", "*", "AuditingDate", 1, 1, 0, 1, "LoginName='" + this.ViewState["MemberLoginName"].ToString() + "'");
                if (dtStatus.Rows.Count > 0)
                {
                    switch (dtStatus.Rows[0]["FeedbackStatus"].ToString())    //0即将删除 1可修改 2己发布

                    {
                    case "2":
                        lbFeedbackStatus.Text = "状态:即将删除";
                        lbResult.Text         = "原因:" + dtStatus.Rows[0]["AuditingRemark"].ToString();
                        break;

                    case "1":
                        lbFeedbackStatus.Text = "状态:可修改";
                        lbResult.Text         = "原因:" + dtStatus.Rows[0]["AuditingRemark"] + "<a href='EnterpriseRegister.aspx'>马上去修改</a>";
                        break;

                    default:
                        break;
                    }
                }
                break;

            default:
                break;
            }


            lbOrgName.Text       = dt.Rows[0]["EnterpriseName"].ToString();
            lbComAboutBrief.Text = dt.Rows[0]["ComAbout"].ToString();



            string   str     = dt.Rows[0]["Industrylist"].ToString().Trim();
            string[] strList = str.Split(',');
            Tz888.BLL.Common.IndustryBLL obj7 = new Tz888.BLL.Common.IndustryBLL();
            string strIndustry = "";
            // Response.Write(str);
            for (int i = 0; i < strList.Length; i++)
            {
                if (strList[i] != "")
                {
                    strIndustry += obj7.GetNameByID(strList[i].Trim());
                }
            }
            lbindustry.Text = strIndustry != "" ? strIndustry : "暂无";

            lbMainProduct.Text  = dt.Rows[0]["MainProduct"].ToString();
            lbManageType.Text   = dt.Rows[0]["SetComTypeName"].ToString();
            lbRegisterDate.Text = Convert.ToDateTime(dt.Rows[0]["RegisterDate"]).ToShortDateString();

            string CountryName = ""; string ProvinceName = ""; string CountyName = ""; string CityName = "";
            try
            {
                Tz888.BLL.Common.ZoneSelectBLL objZone = new Tz888.BLL.Common.ZoneSelectBLL();
                CountryName  = objZone.GetCountyNameByCode(dt.Rows[0]["CountryCode"].ToString());
                ProvinceName = objZone.GetProvinceNameByCode(dt.Rows[0]["ProvinceID"].ToString());
                CountyName   = objZone.GetCountyNameByCode(dt.Rows[0]["CountyID"].ToString());
                CityName     = objZone.GetCityNameByCode(dt.Rows[0]["CityID"].ToString());
            }
            catch { }
            lbZone.Text       = (CountryName != "" ? CountryName : "") + "" + (ProvinceName != "" ? ProvinceName : "") + "" + (CountyName != "" ? CountyName : "") + "" + (CityName != "" ? CityName : "");
            lbRegCapital.Text = dt.Rows[0]["RegCapital"].ToString() + "(万)" + dt.Rows[0]["currency"].ToString();

            //联系信息
            lbLinkMan.Text = dt.Rows[0]["Name"].ToString() != "" ? dt.Rows[0]["Name"].ToString() : "没有提供";
            lbMail.Text    = dt.Rows[0]["Email"].ToString() != "" ? dt.Rows[0]["Email"].ToString() : "没有提供";
            lbSite.Text    = dt.Rows[0]["Website"].ToString() != "" ? dt.Rows[0]["Website"].ToString() : "没有提供";
            lbTel.Text     = dt.Rows[0]["TelCountryCode"].ToString() + "-" + dt.Rows[0]["TelStateCode"].ToString() + "-" + dt.Rows[0]["TelNum"].ToString();
            lbFax.Text     = dt.Rows[0]["FaxCountryCode"].ToString() + "-" + dt.Rows[0]["FaxStateCode"].ToString() + "-" + dt.Rows[0]["FaxNum"].ToString();
            lbMobile.Text  = dt.Rows[0]["Mobile"].ToString() != "" ? dt.Rows[0]["Mobile"].ToString() : "没有提供";
            lbAddress.Text = dt.Rows[0]["address"].ToString() != "" ? dt.Rows[0]["address"].ToString() : "没有提供";

            //图片信息
            Tz888.SQLServerDAL.Conn objResource = new Tz888.SQLServerDAL.Conn();
            DataTable dtResource = objResource.GetList("MemberResourceTab", "*", "ResourceID", 1, 1, 0, 1, "LoginName='" + this.ViewState["MemberLoginName"].ToString() + "' AND ResourceProperty=0");
            if (dtResource != null && dtResource.Rows.Count > 0)
            {
                FileUploader1.Img        = Tz888.Common.Common.GetImageDomain() + "/" + dtResource.Rows[0]["ResourceAddr"].ToString();//ConfigurationManager.AppSettings["ImageDomain"].ToString()
                FileUploader1.ButtonName = "";
            }
            else
            {
                FileUploader1.Img        = @"../images/publish/noneimg.gif";
                FileUploader1.ButtonName = "添加";
                FileUploader1.IsUp       = "1";//是否通过控件上传
                FileUploader1.InfoType   = "EnterpriseRegister";
                //Response.Write("<Script>document.all('ButAdd').onclick();</script>");
            }
        }
        else //没有进行公司登记
        {
            Response.Redirect("EnterpriseRegister.aspx");
        }
    }