Ejemplo n.º 1
0
 private void InitDDL()
 {
     this.ddlTITLECOLOR.DataSource     = RentalHouse.GetSTONETYPE("ST_PROTYPE");
     this.ddlTITLECOLOR.DataTextField  = "VVALUE";
     this.ddlTITLECOLOR.DataValueField = "CODE";
     this.ddlTITLECOLOR.DataBind();
 }
Ejemplo n.º 2
0
 private void DdlDataBind()
 {
     this.TxtCARCOLOR.DataSource     = RentalHouse.GetSTONETYPE("ST_PROTYPE");
     this.TxtCARCOLOR.DataTextField  = "VVALUE";
     this.TxtCARCOLOR.DataValueField = "CODE";
     this.TxtCARCOLOR.DataBind();
     this.TxtCARCOLOR.Items.Insert(0, new ListItem("全部", "null"));
 }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //产品类型
         this.ddlTITLECOLOR.DataSource     = RentalHouse.GetSTONETYPE("ST_PROTYPE");
         this.ddlTITLECOLOR.DataTextField  = "VVALUE";
         this.ddlTITLECOLOR.DataValueField = "CODE";
         this.ddlTITLECOLOR.DataBind();
         lbReqId.Value = UtFunction.GetInnerSnByType("SZ");
     }
 }
Ejemplo n.º 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                Int32 recordcount;
                TopHtml.InnerHtml            = BaseClass.ShowStaticLabel("Label=WEB_网站顶部", "curr=6").ToString();
                footor.InnerHtml             = BaseClass.ShowStaticLabel("Label=WEB_网站底部").ToString();
                helponlineleftShow.InnerHtml = BaseClass.ShowListLabelNoPageIn("Label=WEB_产品类型列表", "ServiceCode=001").ToString();


                if (Request.QueryString["PROID"] != null)
                {
                    string strCategoryID = Request.QueryString["PROID"].Trim();
                    if (strCategoryID != "" && !SQLToolAction.SQLValidateCheck(strCategoryID) && SQLToolAction.IsNum(strCategoryID))
                    {
                        hidproid.Value   = strCategoryID;
                        lbName.InnerText = RentalHouse.GetST_PROTYPE(hidproid.Value);
                    }
                    else
                    {
                        Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script type='text/JavaScript'>alert('传入参数异常!');history.back(-1);</script>");
                    }
                }
                else
                {
                    lbName.InnerText = "全部类型";
                }
                HelpOnlineBind();
            }
            catch (Exception EX)
            {
                throw;
            }
        }
    }
Ejemplo n.º 5
0
    private void NewsInfoBind()
    {
        string ID = Request.QueryString["ID"];
        int    i  = 0;

        if (int.TryParse(ID, out i))
        {
            T_PRODUCTEntity FM = new T_PRODUCTEntity();
            FM.ID = int.Parse(ID);
            FM.Retrieve();
            if (FM.IsPersistent)
            {
                newstitle.InnerHtml = "<span style='color: #000000';font-size:18px;font-family:SimSun'>" + FM.PRONAME + "</span>";

                nodename.InnerText  = FM.PRONAME;
                newsinfo.InnerHtml  = " 发布人:" + FM.MEMBERID + " 发布时间: " + FM.INSERTTIME.ToString() + " 点击率: " + FM.HITS.ToString();
                newsinfo1.InnerHtml = "产品品牌:" + FM.BAND.ToString() + "<br />" + " 产品类型:" + RentalHouse.GetST_PROTYPE(FM.PROTYPE) + "<br />";

                newscontent.InnerHtml = FM.INTRODUCE;
                FM.HITS = FM.HITS + 1;
                FM.Save();
            }

            string    PicSql = "select * from T_PRODUCTPIC where PROID='" + FM.PROID + "'";
            DataTable PicDt  = PersistenceLayer.Query.ProcessSql(PicSql, Names.DBName);
            if (PicDt.Rows.Count > 0)
            {
                for (int j = 0; j < PicDt.Rows.Count; j++)
                {
                    newsimage.InnerHtml += "<image src='" + SiteInfo.VirtualPath() + "\\uploadfile\\PictureSite\\" + PicDt.Rows[j]["PICURL"].ToString() + "' />";
                }
            }
        }
    }