void Msgbind()
 {
     int id = Str2Int(q("id"), 0);
     Entity.PlacardEntity model = new Entity.PlacardEntity();
     model = new JumbotOA.BLL.PlacardBLL().GetEntity(id);
     this.lblTitle.Text = model.Ptitle;
     text = model.Ptext;
 }
 /// <summary>
 /// 分页
 /// </summary>
 public void Selectinfo(string str)
 {
     int count;
     BLL.PlacardBLL bll = new JumbotOA.BLL.PlacardBLL();
     this.Repeater_Placard.DataSource = bll.getpage(AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, out count, str);
     this.Repeater_Placard.DataBind();
     AspNetPager1.RecordCount = count;
 }
Ejemplo n.º 3
0
        void Msgbind()
        {
            int id = Str2Int(q("id"), 0);

            Entity.PlacardEntity model = new Entity.PlacardEntity();
            model = new JumbotOA.BLL.PlacardBLL().GetEntity(id);
            this.lblTitle.Text = model.Ptitle;
            text = model.Ptext;
        }
Ejemplo n.º 4
0
 //判断是否是发布任务的本人
 void MyValidate()
 {
     JumbotOA.Entity.PlacardEntity placardEntity = new JumbotOA.Entity.PlacardEntity();
     placardEntity = new JumbotOA.BLL.PlacardBLL().GetEntity(Str2Int(q("id")));
     if (UserName != placardEntity.Pauthor)
     {
         FinalMessage("该通知公告你无权修改", "", 1);
     }
 }
Ejemplo n.º 5
0
        /// <summary>
        /// 分页
        /// </summary>
        public void Selectinfo(string str)
        {
            int count;

            BLL.PlacardBLL bll = new JumbotOA.BLL.PlacardBLL();
            this.Repeater_Placard.DataSource = bll.getpage(AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, out count, str);
            this.Repeater_Placard.DataBind();
            AspNetPager1.RecordCount = count;
        }
 //添加信息
 protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
 {
     Entity.PlacardEntity model = new Entity.PlacardEntity();
     model.Pauthor = UserName;
     model.Ptitle = this.txtTitle.Text;
     model.Pdate = DateTime.Now;
     model.Ptext = this.FCKeditor1.Value;
     int i = new JumbotOA.BLL.PlacardBLL().Add(model);
     if (i > 0)
     {
         JumbotOA.BLL.UserBLL user = new JumbotOA.BLL.UserBLL();
         DataTable dt=user.GetList("").Tables[0];
         string aa = "";
         for (int j = 0; j <dt.Rows.Count ; j++)
         {
             aa += dt.Rows[j]["Uid"].ToString()+",";
         }
         JumbotOA.BLL.OA_SysMessageIn.ADDsysMessage(1, "," + aa, "[新通知]" + txtTitle.Text, JumbotOA.Utils.Strings.Left(JumbotOA.Utils.Strings.delhtml(FCKeditor1.Value.ToString()), 53), "My_Placard_Show.aspx?id=" + i.ToString());
         aa = "";
         string addtype = "添加通知公告";
         Addlog(addtype);
     }
 }
Ejemplo n.º 7
0
        //添加信息
        protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            Entity.PlacardEntity model = new Entity.PlacardEntity();
            model.Pauthor = UserName;
            model.Ptitle  = this.txtTitle.Text;
            model.Pdate   = DateTime.Now;
            model.Ptext   = this.FCKeditor1.Value;
            int i = new JumbotOA.BLL.PlacardBLL().Add(model);

            if (i > 0)
            {
                JumbotOA.BLL.UserBLL user = new JumbotOA.BLL.UserBLL();
                DataTable            dt   = user.GetList("").Tables[0];
                string aa = "";
                for (int j = 0; j < dt.Rows.Count; j++)
                {
                    aa += dt.Rows[j]["Uid"].ToString() + ",";
                }
                JumbotOA.BLL.OA_SysMessageIn.ADDsysMessage(1, "," + aa, "[新通知]" + txtTitle.Text, JumbotOA.Utils.Strings.Left(JumbotOA.Utils.Strings.delhtml(FCKeditor1.Value.ToString()), 53), "My_Placard_Show.aspx?id=" + i.ToString());
                aa = "";
                string addtype = "添加通知公告";
                Addlog(addtype);
            }
        }
 //判断是否是发布任务的本人
 void MyValidate()
 {
     JumbotOA.Entity.PlacardEntity placardEntity = new JumbotOA.Entity.PlacardEntity();
     placardEntity = new JumbotOA.BLL.PlacardBLL().GetEntity(Str2Int(q("id")));
     if (UserName != placardEntity.Pauthor)
     {
         FinalMessage("该通知公告你无权修改", "", 1);
     }
 }