Beispiel #1
0
 /// <summary>
 /// 初始化
 /// </summary>
 private void DataInit()
 {
     //获取分页参数并强转
     pageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"));
     EyouSoft.BLL.GovStructure.BOpinion         BLL   = new EyouSoft.BLL.GovStructure.BOpinion();
     EyouSoft.Model.GovStructure.MSearchOpinion Model = new EyouSoft.Model.GovStructure.MSearchOpinion();
     Model.Title         = Utils.GetQueryStringValue("txtTitle");                                  //标题
     Model.Submit        = Utils.GetQueryStringValue(this.SellsSelect1.ClientID + "_txtSellName"); //提交人
     Model.SubmitTime    = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtTime"));        //提交时间
     Model.OpinionUserId = Utils.GetQueryStringValue(this.SellsSelect2.ClientID + "_hideSellID");  //接收人
     Model.ProcessTime   = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtHandleTime"));  //处理时间
     Model.Status        = Utils.GetQueryStringValue("selState");                                  //处理状态
     //IList<EyouSoft.Model.GovStructure.MGovOpinion> lst = BLL.GetGovOpinionList(this.SiteUserInfo.CompanyId, Model, this.pageSize, this.pageIndex, ref this.recordCount);
     //if (null != lst && lst.Count > 0)
     //{
     //    this.RepList.DataSource = lst;
     //    this.RepList.DataBind();
     //    BindPage();
     //}
     //else
     //{
     //    this.RepList.Controls.Add(new Label() { Text = "<tr><td colspan='7' align='center'>对不起,没有相关数据!</td></tr>" });
     //    this.ExporPageInfoSelect1.Visible = false;
     //    this.ExporPageInfoSelect2.Visible = false;
     //}
 }
Beispiel #2
0
        /// <summary>
        /// 删除操作
        /// </summary>
        /// <param name="id">删除ID</param>
        /// <returns></returns>
        private string DeleteData(string id)
        {
            bool b = false;

            if (!String.IsNullOrEmpty(id))
            {
                EyouSoft.BLL.GovStructure.BOpinion BLL = new EyouSoft.BLL.GovStructure.BOpinion();
                b = BLL.DeleteGovOpinion(id.Split(','));
            }
            return(b ? "1" : "失败!");
        }