Esempio n. 1
0
        private void ShowInfo(int Id)
        {
            Maticsoft.BLL.News   bll   = new Maticsoft.BLL.News();
            Maticsoft.Model.News model = bll.GetModel(Id);

            this.lblName.Text = model.Name;
            BLL.NewsType   BLLNewsType   = new BLL.NewsType();
            Model.NewsType ModelNewsType = BLLNewsType.GetModel((int)model.Fk_NewsType_Id);

            this.lblContents.Text = model.Contents;
            BLL.Users   BLLUsers   = new BLL.Users();
            Model.Users ModelUsers = BLLUsers.GetModel((int)model.Fk_Users_Id);
            this.lblFk_Users_Id.Text = ModelUsers.Name;
            this.lblAddTime.Text     = model.AddTime.ToString();
            if (Session["LoginUser"] == null)
            {
                lblUser.Text = "匿名";
            }
            else
            {
                BLL.Users   bllleaveuser   = new BLL.Users();
                Model.Users modelleaveuser = bllleaveuser.GetModel((int)Session["LoginUser"]);
                lblUser.Text = modelleaveuser.TrueName;
            }
        }
Esempio n. 2
0
 private void ShowInfo(int Id)
 {
     Maticsoft.BLL.News   bll   = new Maticsoft.BLL.News();
     Maticsoft.Model.News model = bll.GetModel(Id);
     this.lblId.Text   = model.Id.ToString();
     this.txtName.Text = model.Name;
     this.ddlFk_NewsType_Id.SelectedValue = model.Fk_NewsType_Id.ToString();
     this.txtContents.Text             = model.Contents;
     this.ddlFk_Users_Id.SelectedValue = model.Fk_Users_Id.ToString();
     this.txtAddTime.Text = model.AddTime.ToString();
 }
Esempio n. 3
0
 private void ShowInfo(int Id)
 {
     Maticsoft.BLL.News   bll   = new Maticsoft.BLL.News();
     Maticsoft.Model.News model = bll.GetModel(Id);
     this.lblId.Text   = model.Id.ToString();
     this.lblName.Text = model.Name;
     BLL.NewsType   BLLNewsType   = new BLL.NewsType();
     Model.NewsType ModelNewsType = BLLNewsType.GetModel((int)model.Fk_NewsType_Id);
     this.lblFk_NewsType_Id.Text = ModelNewsType.Name;
     this.lblContents.Text       = model.Contents;
     BLL.Users   BLLUsers   = new BLL.Users();
     Model.Users ModelUsers = BLLUsers.GetModel((int)model.Fk_Users_Id);
     this.lblFk_Users_Id.Text = ModelUsers.Name;
     this.lblAddTime.Text     = model.AddTime.ToString();
 }
Esempio n. 4
0
 private void ShowInfo(int ID)
 {
     Maticsoft.BLL.News   bll   = new Maticsoft.BLL.News();
     Maticsoft.Model.News model = bll.GetModel(ID);
     this.lblID.Text         = model.ID.ToString();
     this.lblTitle.Text      = model.Title;
     this.lblContent.Text    = model.Content;
     this.lblTime.Text       = model.Time.ToString();
     this.lblAttachment.Text = model.Attachment;
     this.lblGroupID.Text    = model.GroupID.ToString();
     this.lblIsOpen.Text     = model.IsOpen?"是":"否";
     this.lblClick.Text      = model.Click.ToString();
     this.lblNo.Text         = model.No.ToString();
     this.lblMark.Text       = model.Mark.ToString();
     this.lblS1.Text         = model.S1;
 }
Esempio n. 5
0
 private void ShowInfo(int ID)
 {
     Maticsoft.BLL.News   bll   = new Maticsoft.BLL.News();
     Maticsoft.Model.News model = bll.GetModel(ID);
     this.lblID.Text         = model.ID.ToString();
     this.txtTitle.Text      = model.Title;
     this.txtContent.Text    = model.Content;
     this.txtTime.Text       = model.Time.ToString();
     this.txtAttachment.Text = model.Attachment;
     this.txtGroupID.Text    = model.GroupID.ToString();
     this.chkIsOpen.Checked  = model.IsOpen;
     this.txtClick.Text      = model.Click.ToString();
     this.lblNo.Text         = model.No.ToString();
     this.txtMark.Text       = model.Mark.ToString();
     this.txtS1.Text         = model.S1;
 }