Ejemplo n.º 1
0
        private void ShowInfo(int Id)
        {
            Navigation011.Para_Str = "id=" + Id;
            Maticsoft.BLL.NewsManage.News bll = new Maticsoft.BLL.NewsManage.News();
            Maticsoft.Model.NewsManage.News model = bll.GetModel(Id);
            this.lblNewsId.Text = model.NewsId.ToString();
            this.lblHeading.Text = model.Heading;
            this.lblFocus.Text = model.Focus;
            this.lblFrequency.Text = model.Frequency.ToString();
            if (model.Dormancy == "True")
            {
                this.lblDormancy.Text = "ÐÝÃß";
            }
            else
            {
                this.lblDormancy.Text = "·¢²¼";
            }

            lblistop.Text = model.IsTop == 1 ? "ÊÇ" : "·ñ";


            this.lblIssueDate.Text = model.IssueDate.ToString();
            this.lblContent.Text = model.Content;
            Maticsoft.BLL.NewsManage.NewsClass bllc = new Maticsoft.BLL.NewsManage.NewsClass();
            this.lblClass.Text = bllc.GetModel(model.ClassId).ClassDesc;



        }
Ejemplo n.º 2
0
        private void ShowInfo(int Id)
        {
            Navigation011.Para_Str = "id=" + Id;
            Maticsoft.BLL.NewsManage.News   bll   = new Maticsoft.BLL.NewsManage.News();
            Maticsoft.Model.NewsManage.News model = bll.GetModel(Id);
            this.lblNewsId.Text    = model.NewsId.ToString();
            this.lblHeading.Text   = model.Heading;
            this.lblFocus.Text     = model.Focus;
            this.lblFrequency.Text = model.Frequency.ToString();
            if (model.Dormancy == "True")
            {
                this.lblDormancy.Text = "·¢²¼";
            }
            else
            {
                this.lblDormancy.Text = "ÐÝÃß";
            }

            lblistop.Text = model.IsTop == 1 ? "ÊÇ" : "·ñ";


            this.lblIssueDate.Text = model.IssueDate.ToString();
            this.lblContent.Text   = model.Content;
            Maticsoft.BLL.NewsManage.NewsClass bllc = new Maticsoft.BLL.NewsManage.NewsClass();
            this.lblClass.Text = bllc.GetModel(model.ClassId).ClassDesc;
        }
Ejemplo n.º 3
0
        private void ShowInfo(int Id)
        {
            Navigation011.Para_Str = "id=" + Id;
            Maticsoft.BLL.NewsManage.News bll = new Maticsoft.BLL.NewsManage.News();
            Maticsoft.Model.NewsManage.News model = bll.GetModel(Id);

            Session["news"] = model;
            lblNewsId.Text = model.NewsId.ToString();
            this.txtHeading.Text = model.Heading;
            this.FreeTextBox1.Text = model.Content;
        }
Ejemplo n.º 4
0
        private void ShowInfo(int Id)
        {
            Navigation011.Para_Str = "id=" + Id;
            Maticsoft.BLL.NewsManage.News   bll   = new Maticsoft.BLL.NewsManage.News();
            Maticsoft.Model.NewsManage.News model = bll.GetModel(Id);

            Session["news"]        = model;
            lblNewsId.Text         = model.NewsId.ToString();
            this.txtHeading.Text   = model.Heading;
            this.FreeTextBox1.Text = model.Content;
        }
Ejemplo n.º 5
0
        private void ShowInfo(int Id)
        {
            Navigation011.Para_Str = "id=" + Id;
            Maticsoft.BLL.NewsManage.News   bll   = new Maticsoft.BLL.NewsManage.News();
            Maticsoft.Model.NewsManage.News model = bll.GetModel(Id);

            Session["news"] = model;
            lblNewsId.Text  = model.NewsId.ToString();
            for (int i = 0; i < this.dropNewsClass.Items.Count; i++)
            {
                if (this.dropNewsClass.Items[i].Value == model.ClassId.ToString())
                {
                    this.dropNewsClass.Items[i].Selected = true;
                }
            }

            this.txtHeading.Text      = model.Heading;
            this.txtFocus.Text        = model.Focus;
            this.txtIssueDate.Text    = model.IssueDate.ToString();
            this.chkIsTop.Checked     = (model.IsTop == 1);
            this.chkIsLimited.Checked = (model.IsLimited == 1);
            if (model.Dormancy.ToString().ToLower() == "true")
            {
                this.chkDormancy.Checked = false;
            }
            else
            {
                this.chkDormancy.Checked = true;
            }

            //			if(news.Opened.ToString().ToLower()=="true")
            //			{
            //				this.radlistOpened.SelectedIndex=1;
            //			}
            //			else
            //			{
            //				this.radlistOpened.SelectedIndex=0;
            //			}

            //this.FreeTextBox1.Text = model.Content;
            this.ck_modify.Text = model.Content;
        }
Ejemplo n.º 6
0
        private void ShowInfo(int Id)
        {
            Navigation011.Para_Str = "id=" + Id;
            Maticsoft.BLL.NewsManage.News bll = new Maticsoft.BLL.NewsManage.News();
            Maticsoft.Model.NewsManage.News model = bll.GetModel(Id);

            Session["news"] = model;
            lblNewsId.Text = model.NewsId.ToString();
            for (int i = 0; i < this.dropNewsClass.Items.Count; i++)
            {
                if (this.dropNewsClass.Items[i].Value == model.ClassId.ToString())
                {
                    this.dropNewsClass.Items[i].Selected = true;
                }
            }

            this.txtHeading.Text = model.Heading;
            this.txtFocus.Text = model.Focus;
            this.txtIssueDate.Text = model.IssueDate.ToString();
            this.chkIsTop.Checked = (model.IsTop == 1);
            this.chkIsLimited.Checked = (model.IsLimited == 1);
            if (model.Dormancy.ToString().ToLower() == "true")
            {
                this.chkDormancy.Checked = false;
            }
            else
            {
                this.chkDormancy.Checked = true;
            }

            //			if(news.Opened.ToString().ToLower()=="true")
            //			{
            //				this.radlistOpened.SelectedIndex=1;
            //			}
            //			else
            //			{
            //				this.radlistOpened.SelectedIndex=0;
            //			}

            //this.FreeTextBox1.Text = model.Content;
            this.ck_modify.Text = model.Content;


        }