Пример #1
0
        /// <summary>
        /// 删除操作
        /// </summary>
        /// <param name="id">删除ID</param>
        /// <returns></returns>
        private bool DeleteData(string id)
        {
            bool b = false;

            if (!String.IsNullOrEmpty(id))
            {
                EyouSoft.BLL.GovStructure.BMeeting BLL = new EyouSoft.BLL.GovStructure.BMeeting();
                b = BLL.DeleteGovMeeting(id.Split(','));
            }
            return(b);
        }
Пример #2
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            string   txtNum       = Utils.GetQueryStringValue("txtNum");                                  //会议编号
            string   txtTitle     = Utils.GetQueryStringValue("txtTitle");                                //会议主题
            DateTime?txtStartTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtStartTime")); //会议时间(始)
            DateTime?txtEndTime   = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtEndTime"));   //会议时间(终)

            //获取分页参数并强转
            pageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"));
            EyouSoft.BLL.GovStructure.BMeeting         BLL   = new EyouSoft.BLL.GovStructure.BMeeting();
            EyouSoft.Model.GovStructure.MSearchMeeting Model = new EyouSoft.Model.GovStructure.MSearchMeeting();
            Model.EndTime   = txtEndTime;
            Model.Number    = txtNum;
            Model.StartTime = txtStartTime;
            Model.Theme     = txtTitle;
            IList <EyouSoft.Model.GovStructure.MGovMeeting> lst = BLL.GetGovMeetingList(this.SiteUserInfo.CompanyId, Model, this.pageSize, this.pageIndex, ref this.recordCount);

            if (null != lst && lst.Count > 0)
            {
                this.RepList.DataSource = lst;
                this.RepList.DataBind();
                if (recordCount <= pageSize)
                {
                    this.ExporPageInfoSelect1.Visible = false;
                }
                else
                {
                    BindPage();
                }
            }
            else
            {
                this.RepList.Controls.Add(new Label()
                {
                    Text = "<tr><td colspan='8' align='center'>对不起,没有相关数据!</td></tr>"
                });
                this.ExporPageInfoSelect1.Visible = false;
            }
        }