private void InitWebControls()
 {
     ShowShop.BLL.SystemInfo.ArticleChannel bll = new ShowShop.BLL.SystemInfo.ArticleChannel();
     string channelid = ChangeHope.WebPage.PageRequest.GetQueryString("channelid");
     bll.GetDropList(this.ddlChannel, channelid);
     bll = null;
     ChangeHope.WebPage.WebControl.Validate(this.txtName, "频道名称,频道下面可以设置子频道,频道名称设置为4~10个字符", "isnull_4_10", "必填", "该项为必填项");
     ChangeHope.WebPage.WebControl.Validate(this.txtProjectName, "比如是文章的话,项目就是文章或者新闻或者通讯等", "isnull", "必填", "该项为必填项");
     ChangeHope.WebPage.WebControl.Validate(this.txtProjectUtil, "该频道的文章的单位,比如是文章的话就是X篇,通讯的话就是X条等", "isnull", "必填", "该项为必填项");
     ChangeHope.WebPage.WebControl.Validate(this.txtTemplate, "该频道的网页模板,按照要求制定,选择文件夹", "isnull", "必填", "该项为必填项");
     ChangeHope.WebPage.WebControl.Validate(this.txtMeteKey, "该频道的文章的单位,比如是文章的话就是X篇,通讯的话就是X条等", "isnull", "必填", "该项为必填项");
     ChangeHope.WebPage.WebControl.Validate(this.txtMeteDescription, "该频道的文章的单位,比如是文章的话就是X篇,通讯的话就是X条等", "isnull", "必填", "该项为必填项");
     this.ckbType.Items[0].Attributes.Add("onclick", "changetype(this.value)");
     this.ckbType.Items[1].Attributes.Add("onclick","changetype(this.value)");
     this.ckbType.Items[2].Attributes.Add("onclick","changetype(this.value)");
     this.Form.Attributes.Add("onsubmit", "return CheckForm();");
     GetMemberRank();
 }
Exemplo n.º 2
0
 protected void BindChannel()
 {
     ShowShop.BLL.SystemInfo.ArticleChannel bll = new ShowShop.BLL.SystemInfo.ArticleChannel();
     string channelid = string.Empty;
     bll.GetDropList(this.w_d_Channel, channelid);
 }
        /// <summary>
        /// 验证
        /// </summary>
        private void InitWebControl()
        {
            ShowShop.Common.SysParameter sp = new ShowShop.Common.SysParameter();
            this.txtContentRegion1.Attributes.Add("readonly", "readonly");
            this.txtContentRegion1.Attributes.Add("onclick", "selectFile('Productclass',new Array(" + this.hfcConentRegion1.ClientID + "," + this.txtContentRegion1.ClientID + "),310,450,'" + sp.DummyPaht + "');");
            ChangeHope.WebPage.WebControl.Validate(this.txtField, "输入导航的名称", "isnull", "必填", "该项为必填项");
            ChangeHope.WebPage.WebControl.Validate(this.txtSort, "输入数字将作为显示的排列顺序", "isint", "必填", "该项为必填项");
            this.Form.Attributes.Add("onsubmit", "return CheckForm()");
            this.txtContentRegion1.Attributes.Add("readonly", "readonly");

            ShowShop.Common.SysParameter sp2 = new ShowShop.Common.SysParameter();
            this.txtContentRegion2.Attributes.Add("readonly", "readonly");
            this.txtContentRegion2.Attributes.Add("onclick", "selectFile('Productclass',new Array(" + this.hfcContentRegion2.ClientID + "," + this.txtContentRegion2.ClientID + "),310,450,'" + sp2.DummyPaht + "');");
            this.Form.Attributes.Add("onsubmit", "return CheckForm()");
            this.txtContentRegion2.Attributes.Add("readonly", "readonly");

            bllarticle= new ShowShop.BLL.SystemInfo.ArticleChannel();
            string channelid = ChangeHope.WebPage.PageRequest.GetQueryString("channelid");
            bllarticle.GetDropList(this.ddlContentRegion3, channelid);

            //ShowShop.Common.SysParameter sp3 = new ShowShop.Common.SysParameter();
            //this.ddlContentRegion3.Attributes.Add("readonly", "readonly");
            //this.ddlContentRegion3.Attributes.Add("onclick", "selectFile('Productclass',new Array(" + this.hfcContentRegion3.ClientID + "," + this.ddlContentRegion3.ClientID + "),310,450,'" + sp3.DummyPaht + "');");

            this.Form.Attributes.Add("onsubmit", "return CheckForm()");
            this.ddlContentRegion3.Attributes.Add("readonly", "readonly");
        }