protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            Entity.SummarizeEntity model = new Entity.SummarizeEntity();
            model = new JumbotOA.BLL.SummarizeBLL().GetThisWeekModelbByUid(UserId);
            int id = Str2Int(q("id"), 0);

            if (model != null)
            {
                if (model.Suid == id)
                {
                    //修改
                    model.Sutitle = this.txtTitle.Text;
                    model.Sutime  = DateTime.Now;
                    model.Sutext  = this.FCKeditor1.Value;
                    new JumbotOA.BLL.SummarizeBLL().Update(model);
                    FinalMessage("操作成功", "My_Summarize_List.aspx", 0);
                }
                else
                {
                    FinalMessage("操作失败", "My_Summarize_List.aspx", 0);
                }
            }
            else
            {
                FinalMessage("操作失败", "My_Summarize_List.aspx", 0);
            }
        }
 protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
 {
     Entity.SummarizeEntity model = new Entity.SummarizeEntity();
     model = new JumbotOA.BLL.SummarizeBLL().GetThisWeekModelbByUid(UserId);
     int id = Str2Int(q("id"), 0);
     if (model != null)
     {
         if (model.Suid == id)
         {
             //修改
             model.Sutitle = this.txtTitle.Text;
             model.Sutime = DateTime.Now;
             model.Sutext = this.FCKeditor1.Value;
             new JumbotOA.BLL.SummarizeBLL().Update(model);
             FinalMessage("操作成功", "My_Summarize_List.aspx", 0);
         }
         else
         {
             FinalMessage("操作失败", "My_Summarize_List.aspx", 0);
         }
     }
     else
     {
         FinalMessage("操作失败", "My_Summarize_List.aspx", 0);
     }
 }
 //工作总结的绑定
 void BindSummarize(int suid)
 {
     Entity.SummarizeEntity model = new Entity.SummarizeEntity();
     model = new JumbotOA.BLL.SummarizeBLL().GetEntity(suid);
     this.lblTitle.Text = model.Sutitle;
     text = model.Sutext;
 }
 //工作总结的绑定
 void BindSummarize(int suid)
 {
     Entity.SummarizeEntity model = new Entity.SummarizeEntity();
     model = new JumbotOA.BLL.SummarizeBLL().GetEntity(suid);
     this.lblTitle.Text = model.Sutitle;
     text = model.Sutext;
 }
Beispiel #5
0
        protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            Entity.SummarizeEntity model = new Entity.SummarizeEntity();
            model = new JumbotOA.BLL.SummarizeBLL().GetModelbyuid(UserId);
            if (this.hidRecordID.Value == "update")
            {
                //不为空则,修改
                model.Sutitle = this.txtTitle.Text;
                model.Sutime  = DateTime.Today;
                model.Sutext  = this.FCKeditor1.Value;
                new JumbotOA.BLL.SummarizeBLL().Update(model);
                FinalMessage("操作成功", "My_Summarize_List.aspx", 0);
            }

            else
            {
                //插入
                model         = new Entity.SummarizeEntity();
                model.Uid     = UserId;
                model.Sutime  = DateTime.Now;
                model.Sutitle = this.txtTitle.Text;
                model.Sutext  = this.FCKeditor1.Value;
                int i = new JumbotOA.BLL.SummarizeBLL().Add(model);
                if (i > 0)
                {
                    FinalMessage("操作成功", "My_Summarize_List.aspx", 0);
                }
                else
                {
                    System.Web.UI.Page page = (System.Web.UI.Page)System.Web.HttpContext.Current.Handler;
                    page.ClientScript.RegisterStartupScript(page.GetType(), "clientScript", "<script language='javascript'>alert('操作失败!');</script>");
                }
            }
        }
        protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            Entity.SummarizeEntity model = new Entity.SummarizeEntity();
            model = new JumbotOA.BLL.SummarizeBLL().GetModelbyuid(UserId);
            if (this.hidRecordID.Value == "update")
            {
                //不为空则,修改
                model.Sutitle = this.txtTitle.Text;
                model.Sutime = DateTime.Today;
                model.Sutext = this.FCKeditor1.Value;
                new JumbotOA.BLL.SummarizeBLL().Update(model);
                FinalMessage("操作成功", "My_Summarize_List.aspx", 0);
            }

            else
            {
                //插入
                model = new Entity.SummarizeEntity();
                model.Uid = UserId;
                model.Sutime = DateTime.Now;
                model.Sutitle = this.txtTitle.Text;
                model.Sutext = this.FCKeditor1.Value;
                int i = new JumbotOA.BLL.SummarizeBLL().Add(model);
                if (i > 0)
                {
                    FinalMessage("操作成功", "My_Summarize_List.aspx", 0);
                }
                else
                {
                    System.Web.UI.Page page = (System.Web.UI.Page)System.Web.HttpContext.Current.Handler;
                    page.ClientScript.RegisterStartupScript(page.GetType(), "clientScript", "<script language='javascript'>alert('操作失败!');</script>");
                }
            }
        }
 /// <summary>
 /// 工作总结
 /// </summary>
 public void Selectplan(string str)
 {
     int count;
     BLL.SummarizeBLL bll = new JumbotOA.BLL.SummarizeBLL();
     this.Plan_repeater.DataSource = bll.getpage(AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, out count, str);
     this.Plan_repeater.DataBind();
     AspNetPager1.RecordCount = count;
 }
Beispiel #8
0
        /// <summary>
        /// 工作总结
        /// </summary>
        public void Selectplan(string str)
        {
            int count;

            BLL.SummarizeBLL bll = new JumbotOA.BLL.SummarizeBLL();
            this.Plan_repeater.DataSource = bll.getpage(AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, out count, str);
            this.Plan_repeater.DataBind();
            AspNetPager1.RecordCount = count;
        }
Beispiel #9
0
 //工作总结的绑定
 void BindSummarize(int suid)
 {
     Entity.SummarizeEntity model = new Entity.SummarizeEntity();
     model = new JumbotOA.BLL.SummarizeBLL().GetEntity(suid);
     if (model.Uid != UserId)
     {
         FinalMessage("请勿违规操作", "", 100);
     }
     this.lblTitle.Text = model.Sutitle;
     text = model.Sutext;
 }
 //工作总结的绑定
 void BindSummarize(int suid)
 {
     Entity.SummarizeEntity model = new Entity.SummarizeEntity();
     model = new JumbotOA.BLL.SummarizeBLL().GetEntity(suid);
     if (model.Uid != UserId)
     {
         FinalMessage("请勿违规操作", "", 100);
     }
     this.lblTitle.Text = model.Sutitle;
     text = model.Sutext;
 }
 /// <summary>
 /// 锁定非本周的工作总结
 /// </summary>
 private void LockSummarize()
 {
     string _password = q("password");
     if (_password != System.Configuration.ConfigurationManager.AppSettings["AutoTask:Password"])
     {
         this._response = "密码错误";
         return;
     }
     int _doCount = new JumbotOA.BLL.SummarizeBLL().LockSummarize();
     if (_doCount > 0)
         this._response = "有" + _doCount + "个工作总结被锁定";
     else
         this._response = "没有工作总结被锁定";
 }
Beispiel #12
0
        /// <summary>
        /// 锁定非本周的工作总结
        /// </summary>
        private void LockSummarize()
        {
            string _password = q("password");

            if (_password != System.Configuration.ConfigurationManager.AppSettings["AutoTask:Password"])
            {
                this._response = "密码错误";
                return;
            }
            int _doCount = new JumbotOA.BLL.SummarizeBLL().LockSummarize();

            if (_doCount > 0)
            {
                this._response = "有" + _doCount + "个工作总结被锁定";
            }
            else
            {
                this._response = "没有工作总结被锁定";
            }
        }
 //工作总结绑定
 void Sumbind()
 {
     Entity.SummarizeEntity model = new Entity.SummarizeEntity();
     int id = Str2Int(q("id"), 0);
     model = new JumbotOA.BLL.SummarizeBLL().GetThisWeekModelbByUid(UserId);
     if (model != null)
     {
         if (model.Suid == id)
         {
             this.txtTitle.Text = model.Sutitle;
             this.FCKeditor1.Value = model.Sutext;
         }
         else
         {
             FinalMessage("绑定失败", "My_Summarize_List.aspx", 0);
         }
     }
     else
     {
         FinalMessage("绑定失败", "My_Summarize_List.aspx", 0);
     }
 }
        //工作总结绑定
        void Sumbind()
        {
            Entity.SummarizeEntity model = new Entity.SummarizeEntity();
            int id = Str2Int(q("id"), 0);

            model = new JumbotOA.BLL.SummarizeBLL().GetThisWeekModelbByUid(UserId);
            if (model != null)
            {
                if (model.Suid == id)
                {
                    this.txtTitle.Text    = model.Sutitle;
                    this.FCKeditor1.Value = model.Sutext;
                }
                else
                {
                    FinalMessage("绑定失败", "My_Summarize_List.aspx", 0);
                }
            }
            else
            {
                FinalMessage("绑定失败", "My_Summarize_List.aspx", 0);
            }
        }