/// <summary>
        /// 分页
        /// </summary>
        public void Selectinfo(string str)
        {
            int count;

            BLL.CallinfoBLL bll = new Daiv_OA.BLL.CallinfoBLL();
            this.Repeater_Callinfo.DataSource = bll.getpage(AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, out count, str);
            this.Repeater_Callinfo.DataBind();
            AspNetPager1.RecordCount = count;
        }
Example #2
0
        void Bind_Callinfo()
        {
            int id = Str2Int(q("id"), 0);

            Entity.CallinfoEntity model = new Entity.CallinfoEntity();
            model = new Daiv_OA.BLL.CallinfoBLL().GetEntity(id);

            this.lblTitle.Text    = model.Title;
            this.lblAddtime.Text  = model.Addtime.ToString();
            this.lblUnit.Text     = model.Unit;
            this.lblUserinfo.Text = model.Userinfo;
            this.lblReply.Text    = model.Reply;
            text = model.Remark;
        }
        void Bind_Callinfo()
        {
            int id = Str2Int(q("id"), 0);

            Entity.CallinfoEntity model = new Entity.CallinfoEntity();
            model = new Daiv_OA.BLL.CallinfoBLL().GetEntity(id);
            if (model.Uid != UserId)
            {
                FinalMessage("请勿违规操作", "", 100);
            }
            this.lblTitle.Text    = model.Title;
            this.lblAddtime.Text  = model.Addtime.ToString();
            this.lblUnit.Text     = model.Unit;
            this.lblUserinfo.Text = model.Userinfo;
            this.lblReply.Text    = model.Reply;
            text = model.Remark;
        }
        protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            Entity.CallinfoEntity callinfo = new Entity.CallinfoEntity();
            callinfo.Uid      = UserId;
            callinfo.Addtime  = Convert.ToDateTime(this.txtAddtime.Text);
            callinfo.Title    = this.txtTitle.Text;
            callinfo.Unit     = this.txtUnit.Text;
            callinfo.Reply    = this.txtReply.Text;
            callinfo.Userinfo = this.txtUserinfo.Text;
            callinfo.Remark   = this.kindeditor.Value;
            int i = new Daiv_OA.BLL.CallinfoBLL().Add(callinfo);

            if (i > 0)
            {
                FinalMessage("操作成功", "My_Callinfo_List.aspx", 0);
            }
            else
            {
                FinalMessage("操作失败", "My_Callinfo_List.aspx", 0);
            }
        }