コード例 #1
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();
                }
            }
        }
    }
コード例 #2
0
    //protected void IbtnSubmit_Click(object sender, ImageClickEventArgs e)
    //{
    //    //这里是判断验证码
    //    try//验证验证码
    //    {
    //        if (Session["valationNo"] == null || ImageCode.Text.ToUpper().Trim() != Session["valationNo"].ToString().ToUpper().Trim() || Session["valationNo"].ToString().Trim() == "")
    //        {
    //            Tz888.Common.MessageBox.Show(this.Page, "验证码错误!");
    //            return;
    //        }
    //    }
    //    catch
    //    {
    //        Tz888.Common.MessageBox.Show(this.Page, "未知错误!");
    //    }

    //}

    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);
        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;
    }
コード例 #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;
 }
コード例 #4
0
        /// <summary>
        /// 根据信息类型ID返回DataView
        /// </summary>
        /// <param name="infoTypeID"></param>
        /// <param name="SelectCol"></param>
        /// <param name="Criteria"></param>
        /// <param name="OrderBy"></param>
        /// <param name="CurrentPage"></param>
        /// <param name="PageSize"></param>
        /// <param name="PageCount"></param>
        /// <returns></returns>
        public static DataView GetListByInfoType(string infoTypeID,
                                                 string SelectCol,
                                                 string Criteria,
                                                 string OrderBy,
                                                 ref long CurrentPage,
                                                 long PageSize,
                                                 ref long PageCount)
        {
            if (infoTypeID == "")
            {
                return(null);
            }
            DataView dv = null;

            switch (infoTypeID.Trim())
            {
            case "Merchant":
                Tz888.BLL.Info.MarchantInfoBLL obj6 = new MarchantInfoBLL();
                dv = obj6.GetList(SelectCol, Criteria, OrderBy, ref CurrentPage, PageSize, ref PageCount);
                break;

            case "Capital":
                Tz888.BLL.Info.CapitalInfoBLL obj12 = new CapitalInfoBLL();
                dv = obj12.GetList(SelectCol, Criteria, OrderBy, ref CurrentPage, PageSize, ref PageCount);
                break;

            case "Project":
                Tz888.BLL.Info.ProjectInfoBLL obj13 = new ProjectInfoBLL();
                dv = obj13.GetList(SelectCol, Criteria, OrderBy, ref CurrentPage, PageSize, ref PageCount);
                break;

            default:
                break;
            }
            return(dv);
        }
コード例 #5
0
    protected void IbtnSubmit_Click(object sender, ImageClickEventArgs e)
    {
        //这里是判断验证码
        try//验证验证码
        {
            if (Session["valationNo"] == null || ImageCode.Text.ToUpper().Trim() != Session["valationNo"].ToString().ToUpper().Trim() || Session["valationNo"].ToString().Trim() == "")
            {
                Tz888.Common.MessageBox.Show(this.Page, "验证码错误!");
                //this.imgLoding.Visible = false;
                return;
            }
        }
        catch
        {
            Tz888.Common.MessageBox.Show(this.Page, "未知错误!");
        }

        //结束部分
        //实体部分
        this.imgLoding.Visible = true;
        Tz888.Model.Info.MainInfoModel          mainInfoModel     = new Tz888.Model.Info.MainInfoModel();               //创建主体信息实体
        Tz888.Model.Info.MerchantInfoModel      merchantInfoModel = new Tz888.Model.Info.MerchantInfoModel();           //创建招商信息实体
        Tz888.Model.Info.InfoContactModel       infoContactModel  = new Tz888.Model.Info.InfoContactModel();            //创建信息联系方式主体
        Tz888.Model.Info.ShortInfoModel         shortInfoModel    = new Tz888.Model.Info.ShortInfoModel();              //创建短信息实体
        List <Tz888.Model.Common.IndustryModel> industryModels    = new List <Tz888.Model.Common.IndustryModel>();      //融资行业实体列表
        // List<Tz888.Model.Info.InfoContactManModel> infoContactManModels = new List<Tz888.Model.Info.InfoContactManModel>(); //联系人实体列表
        List <Tz888.Model.Info.InfoResourceModel> infoResourceModels = new List <Tz888.Model.Info.InfoResourceModel>(); //招商信息资源信息实体

        DateTime time_now = DateTime.Now;

        //注意这里是联系方式的重新添加
        //infoContactModel = this.MerchantInfoAddressInfo1.InfoContact;

        industryModels = this.SelectIndustryControl1.IndustryModels;

        #region 招商信息实体赋值
        merchantInfoModel.MerchantTypeID = rblMerchantType.SelectedValue;
        merchantInfoModel.CountryCode    = ZoneSelectControl1.CountryID;
        merchantInfoModel.ProvinceID     = ZoneSelectControl1.ProvinceID;
        merchantInfoModel.CityID         = ZoneSelectControl1.CityID;
        merchantInfoModel.CountyID       = ZoneSelectControl1.CountyID;
        //if (!string.IsNullOrEmpty(MerchantInfoAddressInfo1.Undertaker))
        //    merchantInfoModel.ReceiveOrganization = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(MerchantInfoAddressInfo1.Undertaker);

        for (int i = 0; cblCooperationDemandType.Items.Count > i; i++)
        {
            if (cblCooperationDemandType.Items[i].Selected)
            {
                merchantInfoModel.CooperationDemandType += cblCooperationDemandType.Items[i].Value + ",";
            }
        }

        merchantInfoModel.CapitalCurrency = this.ddlCapitalCurrency.SelectedValue;

        if (!string.IsNullOrEmpty(this.txtCapitalTotal.Text.Trim()))
        {
            merchantInfoModel.CapitalTotal = Convert.ToDecimal(this.txtCapitalTotal.Text.Trim());
        }

        merchantInfoModel.MerchantCurrency = this.ddlMerchantCurrency.SelectedValue;
        merchantInfoModel.MerchantTotal    = this.ddlMerchantTotal.SelectedValue;

        if (!string.IsNullOrEmpty(this.txtZoneAbout.Value.Trim()))
        {
            merchantInfoModel.ZoneAbout = Tz888.Common.Utility.PageValidate.TxtToHtml(this.txtZoneAbout.Value.Trim());
        }

        //这里是2010-06-01新加的招商信息
        if (!string.IsNullOrEmpty(this.txtZoneAboutBrief.Value.Trim()))
        {
            merchantInfoModel.ZoneAboutBrief = Tz888.Common.Utility.PageValidate.TxtToHtml(this.txtZoneAboutBrief.Value.Trim());
        }
        if (!string.IsNullOrEmpty(this.txtBenefit.Value.Trim()))
        {
            merchantInfoModel.Benefit = Tz888.Common.Utility.PageValidate.TxtToHtml(this.txtBenefit.Value.Trim());
        }

        if (!string.IsNullOrEmpty(this.txtEconomicIndicators.Value.Trim()))
        {
            merchantInfoModel.EconomicIndicators = Tz888.Common.Utility.PageValidate.TxtToHtml(this.txtEconomicIndicators.Value.Trim());
        }
        if (!string.IsNullOrEmpty(this.txtInvestmentEnvironment.Value.Trim()))
        {
            merchantInfoModel.InvestmentEnvironment = Tz888.Common.Utility.PageValidate.TxtToHtml(this.txtInvestmentEnvironment.Value.Trim());
        }
        if (!string.IsNullOrEmpty(this.txtProjectStatus.Value.Trim()))
        {
            merchantInfoModel.ProjectStatus = Tz888.Common.Utility.PageValidate.TxtToHtml(this.txtProjectStatus.Value.Trim());
        }
        if (!string.IsNullOrEmpty(this.txtMarket.Value.Trim()))
        {
            merchantInfoModel.Market = Tz888.Common.Utility.PageValidate.TxtToHtml(this.txtMarket.Value.Trim());
        }

        //结束处
        foreach (Tz888.Model.Common.IndustryModel model in industryModels)
        {
            merchantInfoModel.IndustryClassList += model.IndustryBID + ",";
        }

        //2010-06-08以下是对信息完整度的统计
        merchantInfoModel.InformationIntegrity = Tz888.BLL.Info.MarchantInfoBLL.CountInfoInte(merchantInfoModel, infoContactModel);

        #endregion

        if (!string.IsNullOrEmpty(this.txtMerchantTopic.Text.Trim()))
        {
            mainInfoModel.Title = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        }

        mainInfoModel.InfoCode = Tz888.BLL.Info.Common.CreateInfoCode("Merchant", industryModels[0].IndustryBID, this.ZoneSelectControl1.CountryID, DateTime.Now);
        mainInfoModel.publishT = time_now;
        mainInfoModel.Hit      = 0;

        mainInfoModel.IsCore = true;
        //注意这里是添加主信息表与用户登陆表的通过用户名相联系
        mainInfoModel.LoginName          = Page.User.Identity.Name;
        mainInfoModel.InfoOriginRoleName = "0"; //用户角色
        mainInfoModel.GradeID            = "0";
        mainInfoModel.FixPriceID         = "1";
        mainInfoModel.FeeStatus          = 0;

        string keyword = "";
        if (!string.IsNullOrEmpty(this.txtKeyword1.Text.Trim()))
        {
            keyword += this.txtKeyword1.Text.Trim() + ",";
        }
        if (!string.IsNullOrEmpty(this.txtKeyword2.Text.Trim()))
        {
            keyword += this.txtKeyword2.Text.Trim() + ",";
        }
        if (!string.IsNullOrEmpty(this.txtKeyword3.Text.Trim()))
        {
            keyword += this.txtKeyword3.Text.Trim() + ",";
        }
        if (!string.IsNullOrEmpty(keyword))
        {
            mainInfoModel.KeyWord = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(keyword);
        }
        mainInfoModel.Descript = "";
        if (!string.IsNullOrEmpty(this.txtMerchantTopic.Text.Trim()))
        {
            mainInfoModel.DisplayTitle = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        }
        mainInfoModel.FrontDisplayTime  = time_now;
        mainInfoModel.ValidateStartTime = time_now;
        mainInfoModel.ValidateTerm      = Convert.ToInt32(this.rdlValiditeTerm.SelectedValue.Trim());
        mainInfoModel.TemplateID        = "001";
        mainInfoModel.HtmlFile          = "";

        shortInfoModel.ShortInfoControlID = "MerchantIndex1";
        if (!string.IsNullOrEmpty(this.txtMerchantTopic.Text.Trim()))
        {
            shortInfoModel.ShortTitle = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        }
        shortInfoModel.ShortContent = "";
        shortInfoModel.Remark       = "";

        //将已上传的图片从临时目录迁移到正式目录
        //infoResourceModels = Tz888.Common.InfoResourceManage.ImageTransfer("Image", "Merchant", Tz888.Common.ResourceType.Image, Tz888.Common.ResourceProperty.InfoImage, FilesUploadControl1.InfoList);
        infoResourceModels = FilesUploadControl1.InfoList;

        //联系方式赋值
        infoContactModel.OrganizationName = this.txtCompanyName.Text;
        infoContactModel.Name             = this.txtName.Text;
        infoContactModel.Position         = this.txtPosition.Text;
        infoContactModel.TelCountryCode   = this.txtTelCountry.Text;
        infoContactModel.TelStateCode     = this.txtTelZoneCode.Text;
        infoContactModel.TelNum           = this.txtTelNumber.Text;
        infoContactModel.Mobile           = this.txtMobile.Text;
        infoContactModel.Email            = this.txtEmail.Text;
        infoContactModel.Address          = this.txtAddress.Text;

        Tz888.BLL.Info.MarchantInfoBLL marchantObj = new Tz888.BLL.Info.MarchantInfoBLL();
        //插入数据
        long infoID = marchantObj.Insert(mainInfoModel, merchantInfoModel, infoContactModel, shortInfoModel, infoResourceModels);

        if (infoID > 0)
        {
            bool isTof = Page.User.IsInRole("GT1002");
            if (isTof)
            {
                string HtmlFile = Tz888.BLL.Info.Common.createStaticPageFileName("Merchant", mainInfoModel.InfoCode, infoID);
                Tz888.BLL.Info.MainInfoBLL mainBll = new Tz888.BLL.Info.MainInfoBLL();
                mainBll.HasHtmlFile(infoID, HtmlFile);
                string actionMsg = "";
                Tz888.BLL.PageStatic.MerchantPageStatic staticobj = new Tz888.BLL.PageStatic.MerchantPageStatic();
                staticobj.CreateStaticPageMerchant(infoID.ToString(), ref actionMsg);
            }
            Session["valationNo"] = null;
            Response.Redirect("PublishMerchant3.aspx?code=" + Tz888.Common.DEncrypt.DESEncrypt.Encrypt(infoID.ToString() + "|Merchant|" + this.txtMerchantTopic.Text.Trim()));
        }
        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "发布失败!");
        }
    }
コード例 #6
0
    protected void btnSend_Click(object sender, EventArgs e)
    {
        Tz888.Model.Info.MerchantSetModel model = new Tz888.Model.Info.MerchantSetModel();

        model.InfoContactModel     = this.MerchantInfoAddressInfo1.InfoContact;
        model.InfoContactManModels = this.MerchantInfoAddressInfo1.InfoContactMans;

        #region 招商信息实体
        model.MerchantInfoModel.MerchantTypeID = this.rblMerchantType.SelectedValue;
        model.MerchantInfoModel.CountryCode    = this.ZoneSelectControl1.CountryID;
        model.MerchantInfoModel.ProvinceID     = this.ZoneSelectControl1.ProvinceID;
        model.MerchantInfoModel.CityID         = this.ZoneSelectControl1.CityID;
        model.MerchantInfoModel.CountyID       = this.ZoneSelectControl1.CountyID;

        model.MerchantInfoModel.IndustryClassList = this.SelectIndustryControl1.IndustryString;
        model.MerchantInfoModel.CapitalCurrency   = this.ddlCapitalCurrency.SelectedValue;
        try
        {
            model.MerchantInfoModel.CapitalTotal = Convert.ToDecimal(this.txtCapitalTotal.Text.Trim());
        }
        catch
        {
            model.MerchantInfoModel.CapitalTotal = 0;
        }
        model.MerchantInfoModel.MerchantCurrency = this.ddlMerchantCurrency.SelectedValue;
        model.MerchantInfoModel.MerchantTotal    = this.ddlMerchantTotal.SelectedValue;
        model.MerchantInfoModel.ZoneAbout        = Tz888.Common.Utility.PageValidate.TxtToHtml(this.txtZoneAbout.Value.ToString());
        model.MerchantInfoModel.ZoneAboutBrief   = Tz888.Common.Utility.PageValidate.TxtToHtml(this.txtZoneAboutBrf.Value.Trim());
        try
        {
            model.MerchantInfoModel.ReceiveOrganization = this.MerchantInfoAddressInfo1.Undertaker.Trim();
        }
        catch {}

        model.MerchantInfoModel.CooperationDemandType = "";

        for (int i = 0; cblCooperationDemandType.Items.Count > i; i++)
        {
            if (cblCooperationDemandType.Items[i].Selected)
            {
                model.MerchantInfoModel.CooperationDemandType += cblCooperationDemandType.Items[i].Value + ",";
            }
        }

        #endregion

        model.MainInfoModel.InfoID = Convert.ToInt64(this.ViewState["InfoID"]);
        if (!string.IsNullOrEmpty(this.txtMerchantTopic.Text.Trim()))
        {
            model.MainInfoModel.Title = this.txtMerchantTopic.Text.Trim();
        }
        model.MainInfoModel.publishT = Convert.ToDateTime(this.ViewState["PublishT"]);

        model.MainInfoModel.LoginName = ViewState["UserName"].ToString();

        model.MainInfoModel.ApproveTime = DateTime.Now;
        model.MainInfoModel.ApproveBy   = Session["loginName"].ToString();

        string keyword = "";
        if (!string.IsNullOrEmpty(this.txtKeyword1.Text.Trim()))
        {
            keyword += this.txtKeyword1.Text.Trim() + ",";
        }
        if (!string.IsNullOrEmpty(this.txtKeyword2.Text.Trim()))
        {
            keyword += this.txtKeyword2.Text.Trim() + ",";
        }
        if (!string.IsNullOrEmpty(this.txtKeyword3.Text.Trim()))
        {
            keyword += this.txtKeyword3.Text.Trim() + ",";
        }

        model.MainInfoModel.KeyWord           = keyword;
        model.MainInfoModel.Descript          = this.txtDescript.Text.Trim();
        model.MainInfoModel.DisplayTitle      = this.txtDisplayTitle.Text.Trim();
        model.MainInfoModel.FrontDisplayTime  = Convert.ToDateTime(ViewState["FrontDisplayTime"]);
        model.MainInfoModel.ValidateStartTime = Convert.ToDateTime(ViewState["ValidateStartTime"]);
        model.MainInfoModel.ValidateTerm      = Convert.ToInt32(this.ddlValiditeTerm.SelectedValue.Trim());
        model.MainInfoModel.TemplateID        = "001";
        model.MainInfoModel.HtmlFile          = ViewState["HtmlFile"].ToString();

        model.ShortInfoModel.ShortInfoControlID = Convert.ToString(ViewState["ShortInfoControlID"]);
        model.ShortInfoModel.ShortTitle         = this.txtShortTitle.Text.Trim();

        model.ShortInfoModel.ShortContent = this.txtShortContent.Text.Trim();
        model.ShortInfoModel.Remark       = "";

        byte AuditingOrigin = Convert.ToByte(ViewState["AuditingStatus"]);
        byte AuditingStatus = 0;

        if (this.rdAudit.Checked)
        {
            AuditingStatus = 0;
        }
        if (this.rdPass.Checked)
        {
            AuditingStatus = 1;
        }
        if (this.rdNopass.Checked)
        {
            AuditingStatus = 2;
        }

        model.MainInfoModel.AuditingStatus = AuditingStatus;

        List <Tz888.Model.Info.InfoResourceModel> infoResourceModels = Tz888.Common.InfoResourceManage.ImageTransfer("Image", "Merchant", Tz888.Common.ResourceType.Image, Tz888.Common.ResourceProperty.InfoImage, ImageUploadControl1.InfoList);
        if (infoResourceModels != null)
        {
            model.InfoResourceModels.AddRange(infoResourceModels);
        }

        string actionMsg   = "";
        string InfoCode    = ViewState["InfoCode"].ToString();
        string strHtmlFile = ViewState["HtmlFile"].ToString();
        bool   IsSuccess;
        long   InfoID  = Convert.ToInt64(ViewState["InfoID"]);
        bool   HasDone = false;
        bool   AllHasDone;

        Tz888.BLL.Info.MarchantInfoBLL merchantBll = new Tz888.BLL.Info.MarchantInfoBLL();
        Tz888.BLL.Info.MainInfoBLL     mainBll     = new Tz888.BLL.Info.MainInfoBLL();

        AllHasDone = merchantBll.Update(model);

        #region 定价
        HasDone = mainBll.HasFixPrice(InfoID, "1", Session["loginName"].ToString());
        if (!HasDone)
        {
            AllHasDone = false;//修改失败
        }
        #endregion

        #region 审核

        string AuditingRemark = "";


        Tz888.Model.Info.InfoAuditModel auditModel = new Tz888.Model.Info.InfoAuditModel();

        switch (AuditingOrigin)
        {
        case 0:
            switch (AuditingStatus)
            {
            case 0:
                break;

            case 1:
                AuditingRemark = "未审核->审核通过";

                #region 写入操作记录
                //需要生成文件
                strHtmlFile = Tz888.BLL.Info.Common.createStaticPageFileName(theInfoType, InfoCode, InfoID);
                //更改审核状态,同时记录操作
                HasDone = mainBll.HasAuditing(InfoID, AuditingStatus, true, Convert.ToInt32(this.tbHits.Text.Trim()), model.MainInfoModel.LoginName,
                                              AuditingRemark, strHtmlFile, "", 0, 0);

                if (!HasDone)
                {
                    AllHasDone = false;
                }
                #endregion

                #region 写入信息审核记录
                auditModel                = new Tz888.Model.Info.InfoAuditModel();
                auditModel.InfoID         = model.MainInfoModel.InfoID;
                auditModel.InfoTypeID     = theInfoType;
                auditModel.LoginName      = model.MainInfoModel.LoginName;
                auditModel.PostDate       = System.DateTime.Now;
                auditModel.Title          = model.MainInfoModel.Title;
                auditModel.FeedbackStatus = 0;         //0,可修改|1,即将删除
                auditModel.FeedBackNote   = "";
                auditModel.AuditStatus    = AuditingStatus;
                auditModel.AuditingDate   = System.DateTime.Now;
                auditModel.AuditingBy     = Session["LoginName"].ToString();
                auditModel.AuditingRemark = AuditingRemark;
                auditModel.Memo           = "";
                HasDone = mainBll.InfoAuditNote(auditModel);
                #endregion

                #region 生成静态化文件
                Tz888.BLL.PageStatic.MerchantPageStatic staticobj = new Tz888.BLL.PageStatic.MerchantPageStatic();
                IsSuccess = staticobj.CreateStaticPageMerchant(model.MainInfoModel.InfoID.ToString(), ref actionMsg);
                //if (!IsSuccess)
                //    AllHasDone = false;
                #endregion

                break;

            case 2:
                AuditingRemark = "未审核->审核未通过";

                #region 写入操作记录
                HasDone = mainBll.HasAuditing(InfoID, AuditingStatus, true, Convert.ToInt32(this.tbHits.Text.Trim()), model.MainInfoModel.LoginName,
                                              AuditingRemark, "", "", 0, 0);

                if (!HasDone)
                {
                    AllHasDone = false;
                }

                #endregion

                #region 写入信息审核记录
                auditModel                = new Tz888.Model.Info.InfoAuditModel();
                auditModel.InfoID         = model.MainInfoModel.InfoID;
                auditModel.InfoTypeID     = theInfoType;
                auditModel.LoginName      = model.MainInfoModel.LoginName;
                auditModel.PostDate       = System.DateTime.Now;
                auditModel.Title          = model.MainInfoModel.Title;
                auditModel.FeedbackStatus = Convert.ToInt32(this.rblFeedbackStatus.SelectedValue.Trim());
                auditModel.FeedBackNote   = this.tbAuditingRemark.Text.Trim();
                auditModel.AuditStatus    = AuditingStatus;
                auditModel.AuditingDate   = System.DateTime.Now;
                auditModel.AuditingBy     = Session["LoginName"].ToString();
                auditModel.AuditingRemark = AuditingRemark;
                auditModel.Memo           = "";
                HasDone = mainBll.InfoAuditNote(auditModel);

                if (!HasDone)
                {
                    AllHasDone = false;
                }
                #endregion

                break;

            default:
                break;
            }
            break;

        case 1:
            switch (AuditingStatus)
            {
            case 0:
                AuditingRemark = "审核通过->未审核";

                #region 写入操作记录
                //更改审核状态,同时记录操作
                HasDone = mainBll.HasAuditing(InfoID, AuditingStatus, true, Convert.ToInt32(this.tbHits.Text.Trim()), model.MainInfoModel.LoginName,
                                              AuditingRemark, "", "", 0, 0);
                if (!HasDone)
                {
                    AllHasDone = false;
                }
                #endregion

                #region 写入信息审核记录
                auditModel                = new Tz888.Model.Info.InfoAuditModel();
                auditModel.InfoID         = model.MainInfoModel.InfoID;
                auditModel.InfoTypeID     = theInfoType;
                auditModel.LoginName      = model.MainInfoModel.LoginName;
                auditModel.PostDate       = System.DateTime.Now;
                auditModel.Title          = model.MainInfoModel.Title;
                auditModel.FeedbackStatus = 0;
                auditModel.FeedBackNote   = "";
                auditModel.AuditStatus    = AuditingStatus;
                auditModel.AuditingDate   = System.DateTime.Now;
                auditModel.AuditingBy     = Session["LoginName"].ToString();
                auditModel.AuditingRemark = AuditingRemark;
                auditModel.Memo           = "";
                HasDone = mainBll.InfoAuditNote(auditModel);

                if (!HasDone)
                {
                    AllHasDone = false;
                }
                #endregion

                #region  除已生成的文件

                //删除静态化文件

                #endregion

                break;

            case 1:
                #region 生成静态化文件
                Tz888.BLL.PageStatic.MerchantPageStatic staticobj = new Tz888.BLL.PageStatic.MerchantPageStatic();
                IsSuccess = staticobj.CreateStaticPageMerchant(model.MainInfoModel.InfoID.ToString(), ref actionMsg);
                //if (!IsSuccess)
                //    AllHasDone = false;
                #endregion
                break;

            case 2:
                AuditingRemark = "审核通过->审核未通过";

                #region 写入操作记录
                //更改审核状态,同时记录操作
                HasDone = mainBll.HasAuditing(InfoID, AuditingStatus, true, Convert.ToInt32(this.tbHits.Text.Trim()), model.MainInfoModel.LoginName,
                                              AuditingRemark, "", "", 0, 0);
                if (!HasDone)
                {
                    AllHasDone = false;
                }
                #endregion

                #region 写入信息审核记录
                auditModel                = new Tz888.Model.Info.InfoAuditModel();
                auditModel.InfoID         = model.MainInfoModel.InfoID;
                auditModel.InfoTypeID     = theInfoType;
                auditModel.LoginName      = model.MainInfoModel.LoginName;
                auditModel.PostDate       = System.DateTime.Now;
                auditModel.Title          = model.MainInfoModel.Title;
                auditModel.FeedbackStatus = Convert.ToInt32(this.rblFeedbackStatus.SelectedValue.Trim());
                auditModel.FeedBackNote   = this.tbAuditingRemark.Text.Trim();
                auditModel.AuditStatus    = AuditingStatus;
                auditModel.AuditingDate   = System.DateTime.Now;
                auditModel.AuditingBy     = Session["LoginName"].ToString();
                auditModel.AuditingRemark = AuditingRemark;
                auditModel.Memo           = "";
                HasDone = mainBll.InfoAuditNote(auditModel);

                if (!HasDone)
                {
                    AllHasDone = false;
                }
                #endregion

                #region  除已生成的文件

                //删除静态化文件

                #endregion

                break;

            default:
                break;
            }
            break;

        case 2:
            switch (AuditingOrigin)
            {
            case 0:
                AuditingRemark = "审核未通过->未审核";

                #region 写入操作记录
                HasDone = mainBll.HasAuditing(InfoID, AuditingStatus, true, Convert.ToInt32(this.tbHits.Text.Trim()), model.MainInfoModel.LoginName,
                                              AuditingRemark, "", "", 0, 0);

                if (!HasDone)
                {
                    AllHasDone = false;
                }
                #endregion

                #region 写入信息审核记录
                auditModel                = new Tz888.Model.Info.InfoAuditModel();
                auditModel.InfoID         = model.MainInfoModel.InfoID;
                auditModel.InfoTypeID     = theInfoType;
                auditModel.LoginName      = model.MainInfoModel.LoginName;
                auditModel.PostDate       = System.DateTime.Now;
                auditModel.Title          = model.MainInfoModel.Title;
                auditModel.FeedbackStatus = 0;
                auditModel.FeedBackNote   = "";
                auditModel.AuditStatus    = AuditingStatus;
                auditModel.AuditingDate   = System.DateTime.Now;
                auditModel.AuditingBy     = Session["LoginName"].ToString();
                auditModel.AuditingRemark = AuditingRemark;
                auditModel.Memo           = "";
                HasDone = mainBll.InfoAuditNote(auditModel);

                if (!HasDone)
                {
                    AllHasDone = false;
                }
                #endregion

                break;

            case 1:
                AuditingRemark = "审核未通过->审核通过";

                #region 写入操作记录
                strHtmlFile = Tz888.BLL.Info.Common.createStaticPageFileName(theInfoType, InfoCode, InfoID);

                HasDone = mainBll.HasAuditing(InfoID, AuditingStatus, true, Convert.ToInt32(this.tbHits.Text.Trim()), model.MainInfoModel.LoginName,
                                              AuditingRemark, strHtmlFile, "", 0, 0);

                if (!HasDone)
                {
                    AllHasDone = false;
                }
                #endregion

                #region 写入信息审核记录
                auditModel                = new Tz888.Model.Info.InfoAuditModel();
                auditModel.InfoID         = model.MainInfoModel.InfoID;
                auditModel.InfoTypeID     = theInfoType;
                auditModel.LoginName      = model.MainInfoModel.LoginName;
                auditModel.PostDate       = System.DateTime.Now;
                auditModel.Title          = model.MainInfoModel.Title;
                auditModel.FeedbackStatus = 0;
                auditModel.FeedBackNote   = "";
                auditModel.AuditStatus    = AuditingStatus;
                auditModel.AuditingDate   = System.DateTime.Now;
                auditModel.AuditingBy     = Session["LoginName"].ToString();
                auditModel.AuditingRemark = AuditingRemark;
                auditModel.Memo           = "";
                HasDone = mainBll.InfoAuditNote(auditModel);

                if (!HasDone)
                {
                    AllHasDone = false;
                }
                #endregion

                #region 生成静态化文件
                Tz888.BLL.PageStatic.MerchantPageStatic staticobj = new Tz888.BLL.PageStatic.MerchantPageStatic();
                IsSuccess = staticobj.CreateStaticPageMerchant(model.MainInfoModel.InfoID.ToString(), ref actionMsg);

                //if (!IsSuccess)
                //    AllHasDone = false;
                #endregion

                break;

            case 2:
                break;

            default:
                break;
            }
            break;

        default:
            break;
        }

        #endregion

        #region 邮件通知

        #endregion

        if (AllHasDone)
        {
            string theUrlReferrer = ViewState["strPrePage"].ToString();
            Response.Redirect("ModifyStatus.aspx?InfoID=" + InfoID.ToString() + "&Type=" + theInfoType + "&PrePage=" + theUrlReferrer + "&msg=" + actionMsg);
        }
        else
        {
            Response.Write("<script>alert('变更失败!');history.back(-1);</script>");
        }
    }
コード例 #7
0
    private void LoadInfo(long InfoID)
    {
        Tz888.BLL.Info.MarchantInfoBLL    bll   = new Tz888.BLL.Info.MarchantInfoBLL();
        Tz888.Model.Info.MerchantSetModel model = bll.GetIntegrityModel(InfoID);

        try
        {
            this.rblMerchantType.SelectedValue = model.MerchantInfoModel.MerchantTypeID.Trim();
        }
        catch { }
        this.txtMerchantTopic.Text = model.MainInfoModel.Title;
        if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountryCode))
        {
            this.ZoneSelectControl1.CountryID = model.MerchantInfoModel.CountryCode.Trim();
        }
        if (!string.IsNullOrEmpty(model.MerchantInfoModel.ProvinceID))
        {
            this.ZoneSelectControl1.ProvinceID = model.MerchantInfoModel.ProvinceID.Trim();
        }
        if (!string.IsNullOrEmpty(model.MerchantInfoModel.CityID))
        {
            this.ZoneSelectControl1.CityID = model.MerchantInfoModel.CityID.Trim();
        }
        if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountyID))
        {
            this.ZoneSelectControl1.CountyID = model.MerchantInfoModel.CountyID.Trim();
        }
        this.SelectIndustryControl1.IndustryString = model.MerchantInfoModel.IndustryClassList.Trim();

        string CooperationDemandType = model.MerchantInfoModel.CooperationDemandType.Trim();
        string CooperationDemandTypeItems;

        for (int i = 0; i < cblCooperationDemandType.Items.Count; i++)
        {
            CooperationDemandTypeItems = cblCooperationDemandType.Items[i].Value;
            //CooperationDemandTypeItems += ",";
            if (CooperationDemandType.IndexOf(CooperationDemandTypeItems) != -1)
            {
                cblCooperationDemandType.Items[i].Selected = true;
            }
        }

        this.ddlCapitalCurrency.SelectedValue = model.MerchantInfoModel.CapitalCurrency;
        decimal CapitalTotal = Convert.ToDecimal(model.MerchantInfoModel.CapitalTotal);

        if (CapitalTotal > 0)
        {
            this.txtCapitalTotal.Text = CapitalTotal.ToString();
        }
        this.ddlMerchantCurrency.SelectedValue = model.MerchantInfoModel.MerchantCurrency;
        this.ddlMerchantTotal.SelectedValue    = model.MerchantInfoModel.MerchantTotal;

        this.txtZoneAbout.Value    = Tz888.Common.Utility.PageValidate.HtmlToTxt(model.MerchantInfoModel.ZoneAbout.Trim());
        this.txtZoneAboutBrf.Value = Tz888.Common.Utility.PageValidate.HtmlToTxt(model.MerchantInfoModel.ZoneAboutBrief.Trim());

        if (!string.IsNullOrEmpty(model.MainInfoModel.KeyWord.Trim()))
        {
            string[] keys = model.MainInfoModel.KeyWord.Trim().Split(',');
            for (int i = 0; i < keys.Length; i++)
            {
                string key = keys[i].ToString().Trim();
                switch (i)
                {
                case 0:
                    this.txtKeyword1.Text = key;
                    break;

                case 1:
                    this.txtKeyword2.Text = key;
                    break;

                case 2:
                    this.txtKeyword3.Text = key;
                    break;

                default:
                    break;
                }
            }
        }

        this.ddlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString();

        this.ImageUploadControl1.InfoList = model.InfoResourceModels;

        this.MerchantInfoAddressInfo1.InfoContact     = model.InfoContactModel;
        this.MerchantInfoAddressInfo1.InfoContactMans = model.InfoContactManModels;
        this.MerchantInfoAddressInfo1.Undertaker      = model.MerchantInfoModel.ReceiveOrganization.Trim();

        this.txtDescript.Text     = model.MainInfoModel.Descript;
        this.txtDisplayTitle.Text = model.MainInfoModel.DisplayTitle;

        this.txtShortTitle.Text         = model.ShortInfoModel.ShortTitle;
        this.txtShortContent.Text       = model.ShortInfoModel.ShortContent;
        ViewState["ShortInfoControlID"] = model.ShortInfoModel.ShortInfoControlID;

        this.tbHits.Text = model.MainInfoModel.Hit.ToString();

        if (model.MainInfoModel.AuditingStatus == 0)
        {
            this.rdAudit.Checked = true;
        }
        if (model.MainInfoModel.AuditingStatus == 1)
        {
            this.rdPass.Checked = true;
        }
        if (model.MainInfoModel.AuditingStatus == 2)
        {
            this.rdNopass.Checked = true;
        }

        if (Request.UrlReferrer != null)
        {
            ViewState["strPrePage"] = Request.UrlReferrer.ToString();
        }
        else
        {
            ViewState["strPrePage"] = "";
        }
        ViewState["UserName"]          = model.MainInfoModel.LoginName;
        ViewState["InfoID"]            = model.MainInfoModel.InfoID;
        ViewState["InfoCode"]          = model.MainInfoModel.InfoCode;
        ViewState["PublishT"]          = model.MainInfoModel.publishT;
        ViewState["FrontDisplayTime"]  = model.MainInfoModel.FrontDisplayTime;
        ViewState["ValidateStartTime"] = model.MainInfoModel.ValidateStartTime;
        ViewState["AuditingStatus"]    = model.MainInfoModel.AuditingStatus;
        ViewState["HtmlFile"]          = model.MainInfoModel.HtmlFile;

        ViewState["ShortInfoControlID"] = model.ShortInfoModel.ShortInfoControlID;

        Tz888.Common.MessageBox.ResponseScript(this.Page, "ConAudit(" + model.MainInfoModel.AuditingStatus + ")");
    }
コード例 #8
0
    /// <summary>
    /// 修改事件
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        Tz888.Model.Info.MerchantSetModel model = new Tz888.Model.Info.MerchantSetModel();

        //model.InfoContactModel = this.MerchantInfoAddressInfo1.InfoContact; //用户控件
        //model.InfoContactManModels = this.MerchantInfoAddressInfo1.InfoContactMans;

        #region 招商信息实体
        // model.InfoContactModel.Position=this
        model.MerchantInfoModel.MerchantTypeID    = "";// this.rblMerchantType.SelectedValue;
        model.MerchantInfoModel.CountryCode       = this.ZoneSelectControl1.CountryID;
        model.MerchantInfoModel.ProvinceID        = this.ZoneSelectControl1.ProvinceID;
        model.MerchantInfoModel.CityID            = this.ZoneSelectControl1.CityID;
        model.MerchantInfoModel.CountyID          = this.ZoneSelectControl1.CountyID;
        model.MerchantInfoModel.IndustryClassList = this.SelectIndustryControl1.IndustryString;
        model.MerchantInfoModel.CapitalCurrency   = this.ddlCapitalCurrency.SelectedValue;
        model.MerchantInfoModel.CapitalTotal      = Convert.ToDecimal(this.txtCapitalTotal.Text.Trim());
        model.MerchantInfoModel.MerchantCurrency  = ""; //this.ddlMerchantCurrency.SelectedValue;
        model.MerchantInfoModel.MerchantTotal     = ""; //this.ddlMerchantTotal.SelectedValue;


        //项目现状及规划
        model.MerchantInfoModel.ProjectStatus = "";// txtProjectStatus.Text;
        //项目优势及市场分析
        model.MerchantInfoModel.Market = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        //地方经济指标描述
        model.MerchantInfoModel.EconomicIndicators = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        //投资环境描述
        model.MerchantInfoModel.InvestmentEnvironment = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        //经济效益分析
        model.MerchantInfoModel.Benefit = Tz888.Common.Utility.PageValidate.TxtToHtml("");

        model.MerchantInfoModel.ZoneAbout = Tz888.Common.Utility.PageValidate.TxtToHtml(Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtZoneAbout.Value.ToString()));
        if (ViewState["ZoneAboutBrief"] != null)
        {
            model.MerchantInfoModel.ZoneAboutBrief = ViewState["ZoneAboutBrief"].ToString();
        }
        //if (!string.IsNullOrEmpty(model.MerchantInfoModel.ReceiveOrganization))
        //    this.MerchantInfoAddressInfo1.Undertaker = model.MerchantInfoModel.ReceiveOrganization.Trim();
        //else
        //this.MerchantInfoAddressInfo1.Undertaker = "";
        ViewState["ZoneAboutBrief"] = model.MerchantInfoModel.ZoneAboutBrief;

        model.MerchantInfoModel.CooperationDemandType = "";

        //for (int i = 0; cblCooperationDemandType.Items.Count > i; i++)
        //{
        //    if (cblCooperationDemandType.Items[i].Selected)
        //    {
        //        model.MerchantInfoModel.CooperationDemandType += cblCooperationDemandType.Items[i].Value + ",";
        //    }
        //}
        #endregion
        model.MainInfoModel.InfoID = Convert.ToInt64(this.ViewState["InfoID"]);
        if (!string.IsNullOrEmpty(this.txtMerchantTopic.Text.Trim()))
        {
            model.MainInfoModel.Title = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        }
        model.MainInfoModel.publishT = Convert.ToDateTime(this.ViewState["PublishT"]);

        model.MainInfoModel.LoginName = ""; //用户名称

        string keyword = "";
        //if (!string.IsNullOrEmpty(this.txtKeyword1.Text.Trim()))
        //    keyword += this.txtKeyword1.Text.Trim() + ",";
        //if (!string.IsNullOrEmpty(this.txtKeyword2.Text.Trim()))
        //    keyword += this.txtKeyword2.Text.Trim() + ",";
        //if (!string.IsNullOrEmpty(this.txtKeyword3.Text.Trim()))
        //    keyword += this.txtKeyword3.Text.Trim() + ",";

        model.MainInfoModel.KeyWord           = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(keyword);
        model.MainInfoModel.Descript          = "";
        model.MainInfoModel.DisplayTitle      = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        model.MainInfoModel.FrontDisplayTime  = System.DateTime.Now;
        model.MainInfoModel.ValidateStartTime = System.DateTime.Now;
        //model.MainInfoModel.ValidateTerm = Convert.ToInt32(this.ddlValiditeTerm.SelectedValue.Trim());
        //项目有效期限
        model.MainInfoModel.ValidateTerm = Convert.ToInt32(this.rdlValiditeTerm.SelectedValue.Trim());

        model.MainInfoModel.TemplateID = "001";
        model.MainInfoModel.HtmlFile   = ViewState["HtmlFile"].ToString();

        model.ShortInfoModel.ShortInfoControlID = Convert.ToString(ViewState["ShortInfoControlID"]);
        if (ViewState["ShortTitle"] != null)
        {
            model.ShortInfoModel.ShortTitle = ViewState["ShortTitle"].ToString();
        }
        if (ViewState["ShortContent"] != null)
        {
            model.ShortInfoModel.ShortContent = ViewState["ShortContent"].ToString();
        }

        model.ShortInfoModel.Remark = "";

        model.InfoContactModel.Address          = txtAddress.Text.ToString().Trim();
        model.InfoContactModel.Email            = txtEmail.Text.ToString().Trim();
        model.InfoContactModel.Mobile           = txtMobile.Text.ToString().Trim();
        model.InfoContactModel.OrganizationName = txtCompanyName.Text.ToString().Trim();
        model.InfoContactModel.Name             = txtName.Text.ToString().Trim();
        model.InfoContactModel.TelCountryCode   = txtTelCountry.Text.ToString().Trim();
        model.InfoContactModel.TelStateCode     = txtTelZoneCode.Text.ToString().Trim();
        model.InfoContactModel.TelNum           = txtTelNumber.Text.ToString().Trim();


        List <Tz888.Model.Info.InfoResourceModel> infoResourceModels;
        infoResourceModels = FilesUploadControl1.InfoList;
        //List<Tz888.Model.Info.InfoResourceModel> infoResourceModels = Tz888.Common.InfoResourceManage.ImageTransfer("Image", "Merchant", Tz888.Common.ResourceType.Image, Tz888.Common.ResourceProperty.InfoImage, FilesUploadControl1.InfoList);
        if (infoResourceModels != null)
        {
            model.InfoResourceModels.AddRange(infoResourceModels);
        }

        Tz888.BLL.Info.MarchantInfoBLL bll = new Tz888.BLL.Info.MarchantInfoBLL();
        if (bll.Update(model))
        {
            bool isTof = Page.User.IsInRole("GT1002");
            if (isTof)
            {
                if (string.IsNullOrEmpty(model.MainInfoModel.HtmlFile.Trim()))
                {
                    model.MainInfoModel.HtmlFile = Tz888.BLL.Info.Common.createStaticPageFileName("Merchant", model.MainInfoModel.InfoCode, model.MainInfoModel.InfoID);
                }
                Tz888.BLL.Info.MainInfoBLL mainBll = new Tz888.BLL.Info.MainInfoBLL();
                mainBll.HasHtmlFile(model.MainInfoModel.InfoID, model.MainInfoModel.HtmlFile);
                string actionMsg = "";
                Tz888.BLL.PageStatic.MerchantPageStatic staticobj = new Tz888.BLL.PageStatic.MerchantPageStatic();
                staticobj.CreateStaticPageMerchant(model.MainInfoModel.InfoID.ToString(), ref actionMsg);
            }
            Tz888.Common.MessageBox.ShowAndRedirect(this.Page, "修改信息成功!", "./ResourceManage_Audit.aspx");
        }
        else
        {
            Tz888.Common.MessageBox.ShowAndRedirect(this.Page, "修改信息失败!", "./ResourceManage_Audit.aspx");
        }
    }
コード例 #9
0
    private void LoadInfo(long InfoID)
    {
        Tz888.BLL.Conn dal = new Tz888.BLL.Conn();
        DataTable      dt  = dal.GetList("dicttab", "*", "idictvalue", 10, 1, 0, 0, " cdicttype='xmyxqxx' ");

        this.rdlValiditeTerm.DataTextField  = "cdictname";
        this.rdlValiditeTerm.DataValueField = "idictvalue";
        this.rdlValiditeTerm.DataSource     = dt;
        this.rdlValiditeTerm.DataBind();
        //2010-07-28 以上绑定项目有效期限


        Tz888.BLL.Info.MarchantInfoBLL    bll   = new Tz888.BLL.Info.MarchantInfoBLL();
        Tz888.Model.Info.MerchantSetModel model = bll.GetIntegrityModel(InfoID);



        //this.rblMerchantType.SelectedValue = "2"; //model.MerchantInfoModel.MerchantTypeID.Trim();
        this.txtMerchantTopic.Text = model.MainInfoModel.Title;
        if (model.MerchantInfoModel != null)
        {
            if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountryCode.Trim()))
            {
                this.ZoneSelectControl1.CountryID = model.MerchantInfoModel.CountryCode.Trim();
            }
            if (!string.IsNullOrEmpty(model.MerchantInfoModel.ProvinceID.Trim()))
            {
                this.ZoneSelectControl1.ProvinceID = model.MerchantInfoModel.ProvinceID.Trim();
            }
            if (!string.IsNullOrEmpty(model.MerchantInfoModel.CityID.Trim()))
            {
                this.ZoneSelectControl1.CityID = model.MerchantInfoModel.CityID.Trim();
            }
            if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountyID.Trim()))
            {
                this.ZoneSelectControl1.CountyID = model.MerchantInfoModel.CountyID.Trim();
            }
            this.SelectIndustryControl1.IndustryString = model.MerchantInfoModel.IndustryClassList.Trim();
            string CooperationDemandType = model.MerchantInfoModel.CooperationDemandType.Trim();
            #region 2010-06-11 新增字段的读取

            ////项目现状及规划
            //txtProjectStatus.Text = model.MerchantInfoModel.ProjectStatus;
            ////项目优势及市场分析
            //txtMarket.Text = model.MerchantInfoModel.Market;
            ////地方经济指标描述
            //txtEconomicIndicators.Text = model.MerchantInfoModel.EconomicIndicators;
            //////投资环境描述
            //txtInvestmentEnvironment.Text = model.MerchantInfoModel.InvestmentEnvironment;
            ////经济效益分析
            //txtBenefit.Text = model.MerchantInfoModel.Benefit;
            this.ddlCapitalCurrency.SelectedValue = model.MerchantInfoModel.CapitalCurrency;
            this.txtCapitalTotal.Text             = Convert.ToString(model.MerchantInfoModel.CapitalTotal);
            //this.ddlMerchantCurrency.SelectedValue = model.MerchantInfoModel.MerchantCurrency;
            //this.ddlMerchantTotal.SelectedValue = model.MerchantInfoModel.MerchantTotal;
            this.txtZoneAbout.Value = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(Tz888.Common.Utility.PageValidate.HtmlToTxt(model.MerchantInfoModel.ZoneAbout.Trim()));
            //if (!string.IsNullOrEmpty(model.MerchantInfoModel.ReceiveOrganization))
            //    this.MerchantInfoAddressInfo1.Undertaker = model.MerchantInfoModel.ReceiveOrganization.Trim();
            //else
            //    this.MerchantInfoAddressInfo1.Undertaker = "";
            txtAddress.Text             = model.InfoContactModel.Address;
            txtEmail.Text               = model.InfoContactModel.Email;
            txtMobile.Text              = model.InfoContactModel.Mobile;
            txtCompanyName.Text         = model.InfoContactModel.OrganizationName;
            txtName.Text                = model.InfoContactModel.Name;
            txtTelCountry.Text          = model.InfoContactModel.TelCountryCode;
            txtTelZoneCode.Text         = model.InfoContactModel.TelStateCode;
            txtTelNumber.Text           = model.InfoContactModel.TelNum;
            ViewState["ZoneAboutBrief"] = model.MerchantInfoModel.ZoneAboutBrief;
        }

        string[] cooType = model.MerchantInfoModel.CooperationDemandType.ToString().Split(new char[] { ',' });
        //for (int i = 0; i < cooType.Length; i++)//3,4,5,6,7,8,
        //{
        //    switch (cooType[i])
        //    {
        //        case"3":
        //            cblCooperationDemandType.Items[0].Selected = true;
        //            break;
        //        case"4":
        //            cblCooperationDemandType.Items[1].Selected = true;
        //            break;
        //        case"5":
        //            cblCooperationDemandType.Items[2].Selected = true;
        //            break;
        //        case"6":
        //            cblCooperationDemandType.Items[3].Selected = true;
        //            break;
        //        case "7":
        //            cblCooperationDemandType.Items[4].Selected = true;
        //            break;
        //        case "8":
        //            cblCooperationDemandType.Items[5].Selected = true;
        //            break;
        //        default:
        //            break;
        //    }
        //}
        //string CooperationDemandTypeItems;
        //for (int i = 0; i < cblCooperationDemandType.Items.Count; i++)
        //{
        //    CooperationDemandTypeItems = cblCooperationDemandType.Items[i].Value;
        //    //CooperationDemandTypeItems += ",";
        //    if (CooperationDemandTypeItems.IndexOf(CooperationDemandTypeItems) != -1)
        //        cblCooperationDemandType.Items[i].Selected = true;
        //}

        #endregion

        //if (!string.IsNullOrEmpty(model.MainInfoModel.KeyWord.Trim()))
        //{
        //    string[] keys = model.MainInfoModel.KeyWord.Trim().Split(',');
        //    for (int i = 0; i < keys.Length; i++)
        //    {
        //        string key = keys[i].ToString().Trim();
        //        switch (i)
        //        {
        //            case 0:
        //                this.txtKeyword1.Text = key;
        //                break;
        //            case 1:
        //                this.txtKeyword2.Text = key;
        //                break;
        //            case 2:
        //                this.txtKeyword3.Text = key;
        //                break;
        //            default:
        //                break;
        //        }
        //    }
        //}
        // this.ddlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString();
        //07-28项目有效期限
        this.rdlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString();

        this.FilesUploadControl1.InfoList = model.InfoResourceModels;
        this.FilesUploadControl1.InfoType = "Merchant";

        //this.MerchantInfoAddressInfo1.InfoContact = model.InfoContactModel; //控件
        //this.MerchantInfoAddressInfo1.infoContact = model.InfoContactManModels;
        if (Request.UrlReferrer != null)
        {
            ViewState["strPrePage"] = Request.UrlReferrer.ToString();
        }
        else
        {
            ViewState["strPrePage"] = "";
        }
        ViewState["InfoID"]   = model.MainInfoModel.InfoID;
        ViewState["PublishT"] = model.MainInfoModel.publishT;

        ViewState["AuditingStatus"] = model.MainInfoModel.AuditingStatus;
        ViewState["HtmlFile"]       = model.MainInfoModel.HtmlFile;
        if (model.ShortInfoModel != null)
        {
            ViewState["ShortTitle"]         = model.ShortInfoModel.ShortTitle;
            ViewState["ShortContent"]       = model.ShortInfoModel.ShortContent;
            ViewState["ShortInfoControlID"] = model.ShortInfoModel.ShortInfoControlID;
        }
    }
コード例 #10
0
    private void LoadInfo(long InfoID)
    {
        Tz888.BLL.Info.MarchantInfoBLL    bll   = new Tz888.BLL.Info.MarchantInfoBLL();
        Tz888.Model.Info.MerchantSetModel model = bll.GetIntegrityModel(InfoID);

        this.rblMerchantType.SelectedValue = "2"; //model.MerchantInfoModel.MerchantTypeID.Trim();
        this.txtMerchantTopic.Text         = model.MainInfoModel.Title;
        if (model.MerchantInfoModel != null)
        {
            if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountryCode.Trim()))
            {
                this.ZoneSelectControl1.CountryID = model.MerchantInfoModel.CountryCode.Trim();
            }
            if (!string.IsNullOrEmpty(model.MerchantInfoModel.ProvinceID.Trim()))
            {
                this.ZoneSelectControl1.ProvinceID = model.MerchantInfoModel.ProvinceID.Trim();
            }
            if (!string.IsNullOrEmpty(model.MerchantInfoModel.CityID.Trim()))
            {
                this.ZoneSelectControl1.CityID = model.MerchantInfoModel.CityID.Trim();
            }
            if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountyID.Trim()))
            {
                this.ZoneSelectControl1.CountyID = model.MerchantInfoModel.CountyID.Trim();
            }
            this.SelectIndustryControl1.IndustryString = model.MerchantInfoModel.IndustryClassList.Trim();
            string CooperationDemandType = model.MerchantInfoModel.CooperationDemandType.Trim();
            #region 2010-06-11 新增字段的读取

            //项目现状及规划
            txtProjectStatus.Text = model.MerchantInfoModel.ProjectStatus;
            //项目优势及市场分析
            txtMarket.Text = model.MerchantInfoModel.Market;
            //地方经济指标描述
            txtEconomicIndicators.Text = model.MerchantInfoModel.EconomicIndicators;
            ////投资环境描述
            txtInvestmentEnvironment.Text = model.MerchantInfoModel.InvestmentEnvironment;
            //经济效益分析
            txtBenefit.Text = model.MerchantInfoModel.Benefit;
            this.ddlCapitalCurrency.SelectedValue  = model.MerchantInfoModel.CapitalCurrency;
            this.txtCapitalTotal.Text              = Convert.ToString(model.MerchantInfoModel.CapitalTotal);
            this.ddlMerchantCurrency.SelectedValue = model.MerchantInfoModel.MerchantCurrency;
            this.ddlMerchantTotal.SelectedValue    = model.MerchantInfoModel.MerchantTotal;
            this.txtZoneAbout.Value = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(Tz888.Common.Utility.PageValidate.HtmlToTxt(model.MerchantInfoModel.ZoneAbout.Trim()));
            if (!string.IsNullOrEmpty(model.MerchantInfoModel.ReceiveOrganization))
            {
                this.MerchantInfoAddressInfo1.Undertaker = model.MerchantInfoModel.ReceiveOrganization.Trim();
            }
            else
            {
                this.MerchantInfoAddressInfo1.Undertaker = "";
            }
            ViewState["ZoneAboutBrief"] = model.MerchantInfoModel.ZoneAboutBrief;
        }
        string[] cooType = model.MerchantInfoModel.CooperationDemandType.ToString().Split(new char[] { ',' });
        for (int i = 0; i < cooType.Length; i++)//3,4,5,6,7,8,
        {
            switch (cooType[i])
            {
            case "3":
                cblCooperationDemandType.Items[0].Selected = true;
                break;

            case "4":
                cblCooperationDemandType.Items[1].Selected = true;
                break;

            case "5":
                cblCooperationDemandType.Items[2].Selected = true;
                break;

            case "6":
                cblCooperationDemandType.Items[3].Selected = true;
                break;

            case "7":
                cblCooperationDemandType.Items[4].Selected = true;
                break;

            case "8":
                cblCooperationDemandType.Items[5].Selected = true;
                break;

            default:
                break;
            }
        }
        //string CooperationDemandTypeItems;
        //for (int i = 0; i < cblCooperationDemandType.Items.Count; i++)
        //{
        //    CooperationDemandTypeItems = cblCooperationDemandType.Items[i].Value;
        //    //CooperationDemandTypeItems += ",";
        //    if (CooperationDemandTypeItems.IndexOf(CooperationDemandTypeItems) != -1)
        //        cblCooperationDemandType.Items[i].Selected = true;
        //}

        #endregion

        if (!string.IsNullOrEmpty(model.MainInfoModel.KeyWord.Trim()))
        {
            string[] keys = model.MainInfoModel.KeyWord.Trim().Split(',');
            for (int i = 0; i < keys.Length; i++)
            {
                string key = keys[i].ToString().Trim();
                switch (i)
                {
                case 0:
                    this.txtKeyword1.Text = key;
                    break;

                case 1:
                    this.txtKeyword2.Text = key;
                    break;

                case 2:
                    this.txtKeyword3.Text = key;
                    break;

                default:
                    break;
                }
            }
        }
        this.ddlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString();

        this.FilesUploadControl1.InfoList = model.InfoResourceModels;
        this.FilesUploadControl1.InfoType = "Merchant";

        this.MerchantInfoAddressInfo1.InfoContact = model.InfoContactModel; //控件
        //this.MerchantInfoAddressInfo1.infoContact = model.InfoContactManModels;
        if (Request.UrlReferrer != null)
        {
            ViewState["strPrePage"] = Request.UrlReferrer.ToString();
        }
        else
        {
            ViewState["strPrePage"] = "";
        }
        ViewState["InfoID"]   = model.MainInfoModel.InfoID;
        ViewState["PublishT"] = model.MainInfoModel.publishT;

        ViewState["AuditingStatus"] = model.MainInfoModel.AuditingStatus;
        ViewState["HtmlFile"]       = model.MainInfoModel.HtmlFile;
        if (model.ShortInfoModel != null)
        {
            ViewState["ShortTitle"]         = model.ShortInfoModel.ShortTitle;
            ViewState["ShortContent"]       = model.ShortInfoModel.ShortContent;
            ViewState["ShortInfoControlID"] = model.ShortInfoModel.ShortInfoControlID;
        }
    }
コード例 #11
0
    private void LoadInfo(long InfoID)
    {
        Tz888.BLL.Conn dal = new Tz888.BLL.Conn();
        DataTable      dt  = dal.GetList("dicttab", "*", "idictvalue", 10, 1, 0, 0, " cdicttype='xmyxqxx' ");

        this.rdlValiditeTerm.DataTextField  = "cdictname";
        this.rdlValiditeTerm.DataValueField = "idictvalue";
        this.rdlValiditeTerm.DataSource     = dt;
        this.rdlValiditeTerm.DataBind();
        //2010-07-28 以上绑定项目有效期限


        Tz888.BLL.Info.MarchantInfoBLL    bll   = new Tz888.BLL.Info.MarchantInfoBLL();
        Tz888.Model.Info.MerchantSetModel model = bll.GetIntegrityModel(Convert.ToInt64(InfoID));



        //07-28项目有效期限
        this.rdlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString();

        this.txtMerchantTopic.Text = model.MainInfoModel.Title;
        if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountryCode))
        {
            this.ZoneSelectControl1.CountryID = model.MerchantInfoModel.CountryCode.Trim();
        }
        if (!string.IsNullOrEmpty(model.MerchantInfoModel.ProvinceID))
        {
            this.ZoneSelectControl1.ProvinceID = model.MerchantInfoModel.ProvinceID.Trim();
        }
        if (!string.IsNullOrEmpty(model.MerchantInfoModel.CityID))
        {
            this.ZoneSelectControl1.CityID = model.MerchantInfoModel.CityID.Trim();
        }
        if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountyID))
        {
            this.ZoneSelectControl1.CountyID = model.MerchantInfoModel.CountyID.Trim();
        }
        this.SelectIndustryControl1.IndustryString = model.MerchantInfoModel.IndustryClassList.Trim();

        string CooperationDemandType = model.MerchantInfoModel.CooperationDemandType.Trim();

        txtHuiBao.Text        = Convert.ToString(model.MerchantInfoModel.Merchanreturns);
        txtAddress.Text       = model.InfoContactModel.Address;          //地址
        txtEmail.Text         = model.InfoContactModel.Email;            //邮箱
        txtMobile.Text        = model.InfoContactModel.Mobile;           //手机
        txtCompanyName.Text   = model.InfoContactModel.OrganizationName; //联系人
        txtName.Text          = model.InfoContactModel.Name;
        txtTelCountry.Text    = model.InfoContactModel.TelCountryCode;
        txtTelZoneCode.Text   = model.InfoContactModel.TelStateCode;
        txtTelNumber.Text     = model.InfoContactModel.TelNum;
        txtKeord.Text         = model.MainInfoModel.KeyWord;      //网页关键字
        txtWtitle.Text        = model.MainInfoModel.DisplayTitle; //网页标题
        this.txtDescript.Text = model.MainInfoModel.Descript;     //网页描述
        this.ddlCapitalCurrency.SelectedValue = model.MerchantInfoModel.CapitalCurrency;
        decimal CapitalTotal = Convert.ToDecimal(model.MerchantInfoModel.CapitalTotal);

        if (CapitalTotal > 0)
        {
            this.txtCapitalTotal.Text = CapitalTotal.ToString();
        }


        this.txtZoneAbout.Value = model.MerchantInfoModel.ZoneAbout;

        if (model.MainInfoModel.IsVip == 1)
        {
            chkIsVip.Checked = true;
        }
        txtIsVipAbout.Text = model.MerchantInfoModel.VipAbout.Trim();


        //this.ddlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString();

        this.FilesUploadControl1.InfoList = model.InfoResourceModels;


        int FixPriceID = Convert.ToInt32(model.MainInfoModel.FixPriceID.Trim());

        if (FixPriceID > 1)
        {
            chkIsPoint.Checked = true;
            spShowPoint.Attributes.Add("style", "display:''");
        }
        else
        {
            rbFree.Checked = true;
            spShowPoint.Attributes.Add("style", "display:none");
        }
        this.txtPointCount.Text = model.MainInfoModel.MainPointCount.ToString();

        //ViewState["ShortInfoControlID"] = model.ShortInfoModel.ShortInfoControlID;

        this.tbHits.Text = model.MainInfoModel.Hit.ToString();

        if (model.MainInfoModel.AuditingStatus == 0)
        {
            this.rdAudit.Checked = true;
        }
        //Page.ClientScript.RegisterStartupScript(this.GetType(), "myKey", " ConAudit(0);", true);
        if (model.MainInfoModel.AuditingStatus == 1)
        {
            this.rdPass.Checked = true;
        }
        //Page.ClientScript.RegisterStartupScript(this.GetType(), "myKey", " ConAudit(1);", true);


        if (model.MainInfoModel.AuditingStatus == 2)
        {
            this.rdNopass.Checked = true;
        }
        //Page.ClientScript.RegisterStartupScript(this.GetType(), "myKey", " ConAudit(2);", true);

        if (Request.UrlReferrer != null)
        {
            ViewState["strPrePage"] = Request.UrlReferrer.ToString();
        }
        else
        {
            ViewState["strPrePage"] = "";
        }
        lginName = model.MainInfoModel.LoginName;
        ViewState["UserName"] = model.MainInfoModel.LoginName;
        ViewState["InfoID"]   = model.MainInfoModel.InfoID;
        //ViewState["InfoCode"] = model.MainInfoModel.InfoCode;
        ViewState["PublishT"] = model.MainInfoModel.publishT;
        //ViewState["FrontDisplayTime"] = model.MainInfoModel.FrontDisplayTime;
        //ViewState["ValidateStartTime"] = model.MainInfoModel.ValidateStartTime;
        ViewState["AuditingStatus"] = model.MainInfoModel.AuditingStatus;
        //ViewState["HtmlFile"] = model.MainInfoModel.HtmlFile;
        //ViewState["ShortInfoControlID"] = model.ShortInfoModel.ShortInfoControlID;
    }
コード例 #12
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        long _infoID = Convert.ToInt32(Request["infoID"].ToString());

        Tz888.Model.Info.MerchantSetModel model = new Tz888.Model.Info.MerchantSetModel();
        #region 招商信息实体
        model.MerchantInfoModel.MerchantTypeID    = "";// this.rblMerchantType.SelectedValue;
        model.MerchantInfoModel.CountryCode       = this.ZoneSelectControl1.CountryID;
        model.MerchantInfoModel.ProvinceID        = this.ZoneSelectControl1.ProvinceID;
        model.MerchantInfoModel.CityID            = this.ZoneSelectControl1.CityID;
        model.MerchantInfoModel.CountyID          = this.ZoneSelectControl1.CountyID;
        model.MerchantInfoModel.IndustryClassList = this.SelectIndustryControl1.IndustryString;
        model.MerchantInfoModel.CapitalCurrency   = this.ddlCapitalCurrency.SelectedValue;
        model.MerchantInfoModel.CapitalTotal      = Convert.ToDecimal(this.txtCapitalTotal.Text.Trim());
        model.MerchantInfoModel.MerchantCurrency  = ""; //this.ddlMerchantCurrency.SelectedValue;
        model.MerchantInfoModel.MerchantTotal     = ""; //this.ddlMerchantTotal.SelectedValue;
        model.MerchantInfoModel.Merchanreturns    = Convert.ToInt32(this.txtHuiBao.Text.Trim());
        //项目现状及规划
        model.MerchantInfoModel.ProjectStatus = "";// txtProjectStatus.Text;
        //项目优势及市场分析
        model.MerchantInfoModel.Market = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        //地方经济指标描述
        model.MerchantInfoModel.EconomicIndicators = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        //投资环境描述
        model.MerchantInfoModel.InvestmentEnvironment = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        //经济效益分析
        model.MerchantInfoModel.Benefit = Tz888.Common.Utility.PageValidate.TxtToHtml("");

        model.MerchantInfoModel.ZoneAbout = Tz888.Common.Utility.PageValidate.TxtToHtml(Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtZoneAbout.Value.ToString()));
        if (ViewState["ZoneAboutBrief"] != null)
        {
            model.MerchantInfoModel.ZoneAboutBrief = ViewState["ZoneAboutBrief"].ToString();
        }

        ViewState["ZoneAboutBrief"] = model.MerchantInfoModel.ZoneAboutBrief;

        model.MerchantInfoModel.CooperationDemandType = "";


        #endregion
        model.MainInfoModel.InfoID = Convert.ToInt64(this.ViewState["InfoID"]);
        if (!string.IsNullOrEmpty(this.txtMerchantTopic.Text.Trim()))
        {
            model.MainInfoModel.Title = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        }
        model.MainInfoModel.publishT = Convert.ToDateTime(this.ViewState["PublishT"]);

        model.MainInfoModel.LoginName = ViewState["UserName"].ToString();//用户名称
        if (chkIsPoint.Checked == true)
        {
            model.MainInfoModel.FixPriceID     = "2";
            model.MainInfoModel.MainPointCount = Convert.ToInt32(txtPointCount.Text.Trim());
        }
        else
        {
            model.MainInfoModel.MainPointCount = 0;
            model.MainInfoModel.FixPriceID     = "1";
        }

        string keyword = "";

        byte AuditingOrigin = Convert.ToByte(ViewState["AuditingStatus"]);
        byte AuditingStatus = 0;
        if (rdAudit.Checked == true)
        {
            AuditingStatus = 0;

            model.MainInfoModel.HtmlFile = "";
        }
        if (rdPass.Checked == true)
        {
            AuditingStatus = 1;

            model.MainInfoModel.HtmlFile = "Merchant/" + DateTime.Now.ToString("yyyyMM") + "/Merchant" + DateTime.Now.ToString("yyyyMMdd") + "_" + _infoID + ".shtml";
        }
        if (rdNopass.Checked == true)
        {
            AuditingStatus = 2;

            model.MainInfoModel.HtmlFile = "";
        }
        model.MainInfoModel.AuditingStatus = AuditingStatus;
        //招商重大投资商机设置
        Tz888.BLL.MerchantOppor objOppor = new Tz888.BLL.MerchantOppor();
        if (chkIsVip.Checked)
        {
            objOppor.IsVip(_infoID, 1, txtIsVipAbout.Text.Trim());
        }
        else
        {
            objOppor.IsVip(_infoID, 0, "");
        }
        model.MainInfoModel.Hit = Convert.ToInt32(tbHits.Text.ToString().Trim());
        string KeyWord      = this.txtKeord.Text.ToString().Trim();    //关键字
        string DisplayTitle = this.txtWtitle.Text.Trim();              //网页标题
        string Descript     = this.txtDescript.Text.ToString().Trim(); //网页描述
        model.MainInfoModel.KeyWord      = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(KeyWord);
        model.MainInfoModel.DisplayTitle = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(DisplayTitle);
        model.MainInfoModel.Descript     = txtDescript.Text.ToString().Trim();

        model.MainInfoModel.FrontDisplayTime  = System.DateTime.Now;
        model.MainInfoModel.ValidateStartTime = System.DateTime.Now;

        //项目有效期限
        model.MainInfoModel.ValidateTerm = Convert.ToInt32(this.rdlValiditeTerm.SelectedValue.Trim());
        model.MainInfoModel.InfoTypeID   = "Merchant";
        model.MainInfoModel.TemplateID   = "001";


        model.ShortInfoModel.ShortInfoControlID = "";// Convert.ToString(ViewState["ShortInfoControlID"]);
        //if (ViewState["ShortTitle"] != null)
        //{
        //    model.ShortInfoModel.ShortTitle = ViewState["ShortTitle"].ToString();
        //}
        //if (ViewState["ShortContent"] != null)
        //{
        model.ShortInfoModel.ShortContent = ""; //ViewState["ShortContent"].ToString();
        //}


        model.InfoContactModel.Address          = txtAddress.Text.ToString().Trim();
        model.InfoContactModel.Email            = txtEmail.Text.ToString().Trim();
        model.InfoContactModel.Mobile           = txtMobile.Text.ToString().Trim();
        model.InfoContactModel.OrganizationName = txtCompanyName.Text.ToString().Trim();
        model.InfoContactModel.Name             = txtName.Text.ToString().Trim();
        model.InfoContactModel.TelCountryCode   = txtTelCountry.Text.ToString().Trim();
        model.InfoContactModel.TelStateCode     = txtTelZoneCode.Text.ToString().Trim();
        model.InfoContactModel.TelNum           = txtTelNumber.Text.ToString().Trim();


        //List<Tz888.Model.Info.InfoResourceModel> infoResourceModels;
        //infoResourceModels = FilesUploadControl1.InfoList;
        ////List<Tz888.Model.Info.InfoResourceModel> infoResourceModels = Tz888.Common.InfoResourceManage.ImageTransfer("Image", "Merchant", Tz888.Common.ResourceType.Image, Tz888.Common.ResourceProperty.InfoImage, FilesUploadControl1.InfoList);
        //if (infoResourceModels != null)
        //    model.InfoResourceModels.AddRange(infoResourceModels);

        //修改附件
        Tz888.BLL.Info.InfoResourceBLL obj2 = new Tz888.BLL.Info.InfoResourceBLL();
        obj2.DeleteByInfoID(long.Parse(this.ViewState["InfoID"].ToString()));
        List <Tz888.Model.Info.InfoResourceModel> infoResourceModels = new List <Tz888.Model.Info.InfoResourceModel>();
        infoResourceModels = this.FilesUploadControl1.InfoList;
        if (infoResourceModels != null)
        {
            model.InfoResourceModels.AddRange(infoResourceModels);
        }
        if (infoResourceModels != null)
        {
            foreach (Tz888.Model.Info.InfoResourceModel ResModel in infoResourceModels)
            {
                ResModel.InfoID = long.Parse(this.ViewState["InfoID"].ToString());
                obj2.Insert(ResModel);
            }
        }
        Tz888.BLL.Info.InfoAuditMailBLL MailBll = new Tz888.BLL.Info.InfoAuditMailBLL();
        Tz888.BLL.Info.MarchantInfoBLL  bll     = new Tz888.BLL.Info.MarchantInfoBLL();
        if (bll.UpdateMerchantSet(model))
        {
            string AuditingRemark = "";
            Tz888.Model.Info.InfoAuditModel auditModel = new Tz888.Model.Info.InfoAuditModel();
            #region 写入信息审核记录
            auditModel = new Tz888.Model.Info.InfoAuditModel();

            auditModel.InfoID       = model.MainInfoModel.InfoID;
            auditModel.InfoTypeID   = theInfoType;
            auditModel.LoginName    = ViewState["UserName"].ToString();
            auditModel.PostDate     = System.DateTime.Now;
            auditModel.Title        = model.MainInfoModel.Title;
            auditModel.AuditingDate = System.DateTime.Now;
            auditModel.AuditingBy   = Page.User.Identity.Name;
            auditModel.Memo         = "";
            switch (AuditingOrigin)
            {
            case 0:
                switch (AuditingStatus)
                {
                case 0:
                    break;

                case 1:
                    AuditingRemark            = "未审核->审核通过";
                    auditModel.FeedBackNote   = "";
                    auditModel.AuditStatus    = AuditingStatus;
                    auditModel.AuditingRemark = AuditingRemark;

                    auditModel.FeedbackStatus = 0;         //0,可修改|1,即将删除
                    break;

                case 2:
                    AuditingRemark = "未审核->审核未通过";

                    auditModel.AuditStatus    = AuditingStatus;
                    auditModel.AuditingRemark = AuditingRemark;
                    auditModel.FeedbackStatus = Convert.ToInt32(this.rblFeedbackStatus.SelectedValue.Trim());         //0,可修改|1,即将删除
                    auditModel.FeedBackNote   = tbAuditingRemark.Text.ToString().Trim();


                    break;

                default:
                    break;
                }
                break;

            case 1:
                switch (AuditingStatus)
                {
                case 0:
                    AuditingRemark            = "审核通过->未审核";
                    auditModel.FeedBackNote   = "";
                    auditModel.AuditStatus    = AuditingStatus;
                    auditModel.AuditingRemark = AuditingRemark;
                    auditModel.FeedbackStatus = 0;
                    break;

                case 1:
                    AuditingRemark = "审核通过->审核通过(修改)";
                    bool c = mainBll.HasAuditing(_infoID, AuditingStatus, true, Convert.ToInt32(this.tbHits.Text.Trim()), model.MainInfoModel.LoginName,
                                                 AuditingRemark, model.MainInfoModel.HtmlFile, "", 0, 0);
                    break;

                case 2:
                    AuditingRemark            = "审核通过->审核未通过";
                    auditModel.AuditStatus    = AuditingStatus;
                    auditModel.AuditingRemark = AuditingRemark;
                    auditModel.FeedBackNote   = this.tbAuditingRemark.Text.Trim();
                    auditModel.FeedbackStatus = Convert.ToInt32(this.rblFeedbackStatus.SelectedValue.Trim());

                    break;

                default:
                    break;
                }
                break;

            case 2:
                switch (AuditingOrigin)
                {
                case 0:
                    AuditingRemark            = "审核未通过->未审核";
                    auditModel.FeedbackStatus = 0;
                    auditModel.FeedBackNote   = "";
                    auditModel.AuditStatus    = AuditingStatus;
                    auditModel.AuditingRemark = AuditingRemark;
                    break;

                case 1:
                    AuditingRemark            = "审核未通过->审核通过";
                    auditModel.FeedbackStatus = 0;
                    auditModel.FeedBackNote   = "";
                    auditModel.AuditStatus    = AuditingStatus;
                    auditModel.AuditingRemark = AuditingRemark;
                    break;

                case 2:
                    AuditingRemark            = "审核通过->审核未通过";
                    auditModel.FeedBackNote   = this.tbAuditingRemark.Text.Trim();
                    auditModel.AuditStatus    = AuditingStatus;
                    auditModel.AuditingRemark = AuditingRemark;
                    auditModel.FeedbackStatus = Convert.ToInt32(this.rblFeedbackStatus.SelectedValue.Trim());
                    break;

                default:
                    break;
                }
                break;

            default:
                break;
            }
            bool b = mainBll.InfoAuditNote(auditModel);
            if (b)
            {
                if (model.MainInfoModel.AuditingStatus == 1)
                {
                    int num = page.ModifyHtmlFile(Convert.ToInt32(_infoID));
                    if (num >= 0)
                    {
                        page = page.objGetMerchantInfoByInfoID(_infoID);                       //根ID获取信息
                        string IsVip   = Mercahrstatic.SelIsVip();                             //查询为重大商机的信息
                        string Idstuny = page.SelectLndus(model.MerchantInfoModel.ProvinceID); //根据区域查询信息
                        int    sum     = page.StaticHtml(Convert.ToInt32(_infoID), page.Title, page.PublishT, page.AreaName, page.Content, page.IndustryCarveOutID, page.MerchantNameTotal, page.ValidateID, Idstuny, IsVip, KeyWord, DisplayTitle, Descript, page.Merchanreturns);
                    }
                    else
                    {
                        this.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('生成静态页面失败!');location.href='MerchantManage.aspx'", true);
                    }
                }
                Response.Redirect("MerchantManage.aspx");
            }
            else
            {
                this.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('审核信息失败!');location.href='MerchantManage.aspx'", true);
            }

            #endregion
        }
        else
        {
            this.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('审核信息失败!');location.href='MerchantManage.aspx'", true);
        }
    }
コード例 #13
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        //结束部分
        //实体部分
        // this.imgLoding.Visible = true;
        Tz888.Model.Info.MainInfoModel              mainInfoModel        = new Tz888.Model.Info.MainInfoModel();              //创建主体信息实体
        Tz888.Model.Info.MerchantInfoModel          merchantInfoModel    = new Tz888.Model.Info.MerchantInfoModel();          //创建招商信息实体
        Tz888.Model.Info.InfoContactModel           infoContactModel     = new Tz888.Model.Info.InfoContactModel();           //创建信息联系方式主体
        Tz888.Model.Info.ShortInfoModel             shortInfoModel       = new Tz888.Model.Info.ShortInfoModel();             //创建短信息实体
        List <Tz888.Model.Common.IndustryModel>     industryModels       = new List <Tz888.Model.Common.IndustryModel>();     //融资行业实体列表
        List <Tz888.Model.Info.InfoContactManModel> infoContactManModels = new List <Tz888.Model.Info.InfoContactManModel>(); //联系人实体列表
        List <Tz888.Model.Info.InfoResourceModel>   infoResourceModels   = new List <Tz888.Model.Info.InfoResourceModel>();   //招商信息资源信息实体

        DateTime time_now = DateTime.Now;

        industryModels = this.SelectIndustryControl1.IndustryModels;
        //这里是多个联系方式的添加


        #region 招商信息实体赋值
        merchantInfoModel.MerchantTypeID = "";// rblMerchantType.SelectedValue;
        merchantInfoModel.CountryCode    = ZoneSelectControl1.CountryID;
        merchantInfoModel.ProvinceID     = ZoneSelectControl1.ProvinceID;
        merchantInfoModel.CityID         = ZoneSelectControl1.CityID;
        merchantInfoModel.CountyID       = ZoneSelectControl1.CountyID;

        //联系方式赋值
        infoContactModel.OrganizationName = this.txtCompanyName.Text;
        infoContactModel.Name             = this.txtName.Text;
        infoContactModel.Position         = "";// this.txtPosition.Text;
        infoContactModel.TelCountryCode   = this.txtTelCountry.Text;
        infoContactModel.TelStateCode     = this.txtTelZoneCode.Text;
        infoContactModel.TelNum           = this.txtTelNumber.Text;
        infoContactModel.Mobile           = this.txtMobile.Text;
        infoContactModel.Email            = this.txtEmail.Text;
        infoContactModel.Address          = this.txtAddress.Text;

        merchantInfoModel.CooperationDemandType = "";
        merchantInfoModel.CapitalCurrency       = this.ddlCapitalCurrency.SelectedValue;

        if (!string.IsNullOrEmpty(this.txtCapitalTotal.Text.Trim()))
        {
            merchantInfoModel.CapitalTotal = Convert.ToDecimal(this.txtCapitalTotal.Text.Trim());
        }

        merchantInfoModel.MerchantCurrency = ""; // this.ddlMerchantCurrency.SelectedValue;
        merchantInfoModel.MerchantTotal    = ""; // this.ddlMerchantTotal.SelectedValue;

        if (!string.IsNullOrEmpty(this.txtZoneAbout.Value.Trim()))
        {
            merchantInfoModel.ZoneAbout = Tz888.Common.Utility.PageValidate.TxtToHtml(this.txtZoneAbout.Value.Trim());
        }

        //这里是2010-06-01新加的招商信息
        //if (!string.IsNullOrEmpty(this.txtZoneAboutBrief.Value.Trim()))
        merchantInfoModel.ZoneAboutBrief = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        // if (!string.IsNullOrEmpty(this.txtBenefit.Value.Trim()))
        merchantInfoModel.Benefit = Tz888.Common.Utility.PageValidate.TxtToHtml("");

        // if (!string.IsNullOrEmpty(this.txtEconomicIndicators.Value.Trim()))
        merchantInfoModel.EconomicIndicators = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        //if (!string.IsNullOrEmpty(this.txtInvestmentEnvironment.Value.Trim()))
        merchantInfoModel.InvestmentEnvironment = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        //if (!string.IsNullOrEmpty(this.txtProjectStatus.Value.Trim()))
        merchantInfoModel.ProjectStatus = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        //  if (!string.IsNullOrEmpty(this.txtMarket.Value.Trim()))

        merchantInfoModel.Market = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        //merchantInfoModel.Merchanreturns = Convert.ToInt32(this.txtHuiBao.Text.Trim());//回报率
        if (txtHuiBao.Text.ToString().Trim() == "")
        {
            merchantInfoModel.Merchanreturns = 0;
        }
        else
        {
            merchantInfoModel.Merchanreturns = Convert.ToInt32(this.txtHuiBao.Text.Trim());
        }
        //结束处
        foreach (Tz888.Model.Common.IndustryModel model in industryModels)
        {
            merchantInfoModel.IndustryClassList += model.IndustryBID + ",";
        }

        //2010-06-08以下是对信息完整度的统计
        merchantInfoModel.InformationIntegrity = Tz888.BLL.Info.MarchantInfoBLL.CountInfoInte(merchantInfoModel, infoContactModel);

        #endregion

        if (!string.IsNullOrEmpty(this.txtMerchantTopic.Text.Trim()))
        {
            mainInfoModel.Title = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        }

        mainInfoModel.InfoCode = Tz888.BLL.Info.Common.CreateInfoCode("Merchant", industryModels[0].IndustryBID, this.ZoneSelectControl1.CountryID, DateTime.Now);
        mainInfoModel.publishT = time_now;
        mainInfoModel.Hit      = Convert.ToInt32(tbHits.Text.Trim());

        mainInfoModel.IsCore = true;
        //注意这里是添加主信息表与用户登陆表的通过用户名相联系
        //mainInfoModel.LoginName = "111111";
        mainInfoModel.LoginName          = bp.LoginName;
        mainInfoModel.InfoOriginRoleName = "0"; //用户角色
        mainInfoModel.GradeID            = "0";
        if (chkIsPoint.Checked == true)
        {
            mainInfoModel.FixPriceID     = "2";
            mainInfoModel.MainPointCount = Convert.ToInt32(txtPointCount.Text.Trim());
        }
        else
        {
            mainInfoModel.MainPointCount = 0;
            mainInfoModel.FixPriceID     = "1";
        }
        mainInfoModel.FeeStatus = 0;
        mainInfoModel.KeyWord   = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        mainInfoModel.Descript  = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        if (!string.IsNullOrEmpty(this.txtMerchantTopic.Text.Trim()))
        {
            mainInfoModel.DisplayTitle = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        }
        mainInfoModel.FrontDisplayTime  = time_now;
        mainInfoModel.ValidateStartTime = time_now;
        mainInfoModel.ValidateTerm      = Convert.ToInt32(this.rdlValiditeTerm.SelectedValue.Trim());
        mainInfoModel.TemplateID        = "001";
        byte AuditingStatus = 0;

        if (rdAudit.Checked == true)
        {
            AuditingStatus = 0;
        }
        if (rdPass.Checked == true)
        {
            AuditingStatus = 1;
        }
        if (rdNopass.Checked == true)
        {
            AuditingStatus = 2;
        }
        mainInfoModel.AuditingStatus      = AuditingStatus;
        mainInfoModel.HtmlFile            = Tz888.Common.Utility.PageValidate.TxtToHtml("");
        shortInfoModel.ShortInfoControlID = "MerchantIndex1";
        if (!string.IsNullOrEmpty(this.txtMerchantTopic.Text.Trim()))
        {
            shortInfoModel.ShortTitle = Tz888.Common.Utility.PageValidate.FiltrateHTMLTag(this.txtMerchantTopic.Text.Trim());
        }
        shortInfoModel.ShortContent = "";
        shortInfoModel.Remark       = "";

        //将已上传的图片从临时目录迁移到正式目录
        //infoResourceModels = Tz888.Common.InfoResourceManage.ImageTransfer("Image", "Merchant", Tz888.Common.ResourceType.Image, Tz888.Common.ResourceProperty.InfoImage, FilesUploadControl1.InfoList);
        infoResourceModels = FilesUploadControl1.InfoList;

        Tz888.BLL.Info.MarchantInfoBLL marchantObj = new Tz888.BLL.Info.MarchantInfoBLL();
        //插入数据
        long infoID = marchantObj.Insert(mainInfoModel, merchantInfoModel, infoContactModel, shortInfoModel, infoResourceModels);
        if (infoID > 0)
        {
            if (rdPass.Checked == true)
            {
                Tz888.Model.Info.MerchantSetModel model = new Tz888.Model.Info.MerchantSetModel();

                string url = "Merchant/" + DateTime.Now.ToString("yyyyMM") + "/Merchant" + DateTime.Now.ToString("yyyyMMdd") + "_" + infoID + ".shtml";
                merstatic.UpdateUrl(url, infoID);

                page = page.objGetMerchantInfoByInfoID(infoID);                   //根ID获取信息
                string IsVip   = Mercahrstatic.SelIsVip();                        //查询为重大商机的信息
                string Idstuny = page.SelectLndus(ZoneSelectControl1.ProvinceID); //根据区域查询信息
                int    sum     = page.StaticHtml(Convert.ToInt32(infoID), page.Title, page.PublishT, page.AreaName, page.Content, page.IndustryCarveOutID, page.MerchantNameTotal, page.ValidateID, Idstuny, IsVip, page.Title, page.Title, page.Title, page.Merchanreturns);
            }
            //招商重大投资商机设置
            Tz888.BLL.MerchantOppor objOppor = new Tz888.BLL.MerchantOppor();
            if (chkIsVip.Checked)
            {
                objOppor.IsVip(infoID, 1, txtIsVipAbout.Text.Trim());
            }
            else
            {
                objOppor.IsVip(infoID, 0, "");
            }
            Response.Redirect("MerchantManage.aspx");
        }
        else
        {
            Tz888.Common.MessageBox.Show(this.Page, "发布失败!");
        }
    }
コード例 #14
0
    private void LoadInfo(long InfoID)
    {
        Tz888.BLL.Info.MarchantInfoBLL    bll   = new Tz888.BLL.Info.MarchantInfoBLL();
        Tz888.Model.Info.MerchantSetModel model = bll.GetIntegrityModel(InfoID);

        this.rblMerchantType.SelectedValue = model.MerchantInfoModel.MerchantTypeID.Trim();
        this.txtMerchantTopic.Text         = model.MainInfoModel.Title;
        if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountryCode.Trim()))
        {
            this.ZoneSelectControl1.CountryID = model.MerchantInfoModel.CountryCode.Trim();
        }
        if (!string.IsNullOrEmpty(model.MerchantInfoModel.ProvinceID.Trim()))
        {
            this.ZoneSelectControl1.ProvinceID = model.MerchantInfoModel.ProvinceID.Trim();
        }
        if (!string.IsNullOrEmpty(model.MerchantInfoModel.CityID.Trim()))
        {
            this.ZoneSelectControl1.CityID = model.MerchantInfoModel.CityID.Trim();
        }
        if (!string.IsNullOrEmpty(model.MerchantInfoModel.CountyID.Trim()))
        {
            this.ZoneSelectControl1.CountyID = model.MerchantInfoModel.CountyID.Trim();
        }
        this.SelectIndustryControl1.IndustryString = model.MerchantInfoModel.IndustryClassList.Trim();

        string CooperationDemandType = model.MerchantInfoModel.CooperationDemandType.Trim();
        string CooperationDemandTypeItems;

        for (int i = 0; i < cblCooperationDemandType.Items.Count; i++)
        {
            CooperationDemandTypeItems = cblCooperationDemandType.Items[i].Value;
            //CooperationDemandTypeItems += ",";
            if (CooperationDemandType.IndexOf(CooperationDemandTypeItems) != -1)
            {
                cblCooperationDemandType.Items[i].Selected = true;
            }
        }

        this.ddlCapitalCurrency.SelectedValue  = model.MerchantInfoModel.CapitalCurrency;
        this.txtCapitalTotal.Text              = Convert.ToString(model.MerchantInfoModel.CapitalTotal);
        this.ddlMerchantCurrency.SelectedValue = model.MerchantInfoModel.MerchantCurrency;
        this.ddlMerchantTotal.SelectedValue    = model.MerchantInfoModel.MerchantTotal;

        this.txtZoneAbout.Value = model.MerchantInfoModel.ZoneAbout.Trim();

        if (!string.IsNullOrEmpty(model.MainInfoModel.KeyWord.Trim()))
        {
            string[] keys = model.MainInfoModel.KeyWord.Trim().Split(',');
            for (int i = 0; i < keys.Length; i++)
            {
                string key = keys[i].ToString().Trim();
                switch (i)
                {
                case 0:
                    this.txtKeyword1.Text = key;
                    break;

                case 1:
                    this.txtKeyword2.Text = key;
                    break;

                case 2:
                    this.txtKeyword3.Text = key;
                    break;

                default:
                    break;
                }
            }
        }

        this.ddlValiditeTerm.SelectedValue = model.MainInfoModel.ValidateTerm.ToString();

        this.ImageUploadControl1.InfoList  = model.InfoResourceModels;
        this.ImageUploadControl1.InfoType  = "Merchant";
        this.ImageUploadControl1.NoneCount = 3;
        this.ImageUploadControl1.Count     = 5;

        this.MerchantInfoAddressInfo1.InfoContact = model.InfoContactModel;
        //this.MerchantInfoAddressInfo1.InfoContactMans = model.InfoContactManModels;
        this.MerchantInfoAddressInfo1.Undertaker = model.MerchantInfoModel.ReceiveOrganization.Trim();


        if (Request.UrlReferrer != null)
        {
            ViewState["strPrePage"] = Request.UrlReferrer.ToString();
        }
        else
        {
            ViewState["strPrePage"] = "";
        }
        ViewState["InfoID"]         = model.MainInfoModel.InfoID;
        ViewState["PublishT"]       = model.MainInfoModel.publishT;
        ViewState["ZoneAboutBrief"] = model.MerchantInfoModel.ZoneAboutBrief;
        ViewState["AuditingStatus"] = model.MainInfoModel.AuditingStatus;
        ViewState["HtmlFile"]       = model.MainInfoModel.HtmlFile;

        ViewState["ShortTitle"]         = model.ShortInfoModel.ShortTitle;
        ViewState["ShortContent"]       = model.ShortInfoModel.ShortContent;
        ViewState["ShortInfoControlID"] = model.ShortInfoModel.ShortInfoControlID;
    }
コード例 #15
0
    protected void btnUpdate_Click(object sender, EventArgs e)
    {
        Tz888.Model.Info.MerchantSetModel model = new Tz888.Model.Info.MerchantSetModel();

        model.InfoContactModel = this.MerchantInfoAddressInfo1.InfoContact;
        //  model.InfoContactManModels = this.MerchantInfoAddressInfo1.InfoContactMans;

        #region 招商信息实体
        model.MerchantInfoModel.MerchantTypeID = this.rblMerchantType.SelectedValue;
        model.MerchantInfoModel.CountryCode    = this.ZoneSelectControl1.CountryID;
        model.MerchantInfoModel.ProvinceID     = this.ZoneSelectControl1.ProvinceID;
        model.MerchantInfoModel.CityID         = this.ZoneSelectControl1.CityID;
        model.MerchantInfoModel.CountyID       = this.ZoneSelectControl1.CountyID;

        model.MerchantInfoModel.IndustryClassList = this.SelectIndustryControl1.IndustryString;
        model.MerchantInfoModel.CapitalCurrency   = this.ddlCapitalCurrency.SelectedValue;
        model.MerchantInfoModel.CapitalTotal      = Convert.ToDecimal(this.txtCapitalTotal.Text.Trim());
        model.MerchantInfoModel.MerchantCurrency  = this.ddlMerchantCurrency.SelectedValue;
        model.MerchantInfoModel.MerchantTotal     = this.ddlMerchantTotal.SelectedValue;
        model.MerchantInfoModel.ZoneAbout         = this.txtZoneAbout.Value.ToString();
        model.MerchantInfoModel.ZoneAboutBrief    = ViewState["ZoneAboutBrief"].ToString();
        if (MerchantInfoAddressInfo1.Undertaker != null)
        {
            model.MerchantInfoModel.ReceiveOrganization = this.MerchantInfoAddressInfo1.Undertaker.Trim();
        }

        model.MerchantInfoModel.CooperationDemandType = "";

        for (int i = 0; cblCooperationDemandType.Items.Count > i; i++)
        {
            if (cblCooperationDemandType.Items[i].Selected)
            {
                model.MerchantInfoModel.CooperationDemandType += cblCooperationDemandType.Items[i].Value + ",";
            }
        }

        #endregion

        model.MainInfoModel.InfoID = Convert.ToInt64(this.ViewState["InfoID"]);
        if (!string.IsNullOrEmpty(this.txtMerchantTopic.Text.Trim()))
        {
            model.MainInfoModel.Title = this.txtMerchantTopic.Text.Trim();
        }
        model.MainInfoModel.publishT = Convert.ToDateTime(this.ViewState["PublishT"]);

        model.MainInfoModel.LoginName = ""; //用户名称

        string keyword = "";
        if (!string.IsNullOrEmpty(this.txtKeyword1.Text.Trim()))
        {
            keyword += this.txtKeyword1.Text.Trim() + ",";
        }
        if (!string.IsNullOrEmpty(this.txtKeyword2.Text.Trim()))
        {
            keyword += this.txtKeyword2.Text.Trim() + ",";
        }
        if (!string.IsNullOrEmpty(this.txtKeyword3.Text.Trim()))
        {
            keyword += this.txtKeyword3.Text.Trim() + ",";
        }

        model.MainInfoModel.KeyWord           = keyword;
        model.MainInfoModel.Descript          = "";
        model.MainInfoModel.DisplayTitle      = this.txtMerchantTopic.Text.Trim();
        model.MainInfoModel.FrontDisplayTime  = System.DateTime.Now;
        model.MainInfoModel.ValidateStartTime = System.DateTime.Now.AddDays(1);
        model.MainInfoModel.ValidateTerm      = Convert.ToInt32(this.ddlValiditeTerm.SelectedValue.Trim());
        model.MainInfoModel.TemplateID        = "001";
        model.MainInfoModel.HtmlFile          = ViewState["HtmlFile"].ToString();

        model.ShortInfoModel.ShortInfoControlID = Convert.ToString(ViewState["ShortInfoControlID"]);
        model.ShortInfoModel.ShortTitle         = ViewState["ShortTitle"].ToString();
        model.ShortInfoModel.ShortContent       = ViewState["ShortContent"].ToString();
        model.ShortInfoModel.Remark             = "";

        List <Tz888.Model.Info.InfoResourceModel> infoResourceModels = Tz888.Common.InfoResourceManage.ImageTransfer("Image", "Merchant", Tz888.Common.ResourceType.Image, Tz888.Common.ResourceProperty.InfoImage, ImageUploadControl1.InfoList);
        if (infoResourceModels != null)
        {
            model.InfoResourceModels.AddRange(infoResourceModels);
        }

        Tz888.BLL.Info.MarchantInfoBLL bll = new Tz888.BLL.Info.MarchantInfoBLL();

        if (bll.Update(model))
        {
            Tz888.Common.MessageBox.ShowAndRedirect(this.Page, "修改信息成功!", Request.Url.ToString());
        }
        else
        {
            Tz888.Common.MessageBox.ShowAndRedirect(this.Page, "修改信息失败!", Request.Url.ToString());
        }
    }