/// <summary> /// 写入业务日志 /// </summary> /// <param name="action_type">操作类型</param> /// <param name="remark"></param> /// <returns></returns> public bool AddBusinessLog(string action_type, Model.business_log modelLog) { Model.manager model = GetAdminInfo(); int newId = new BLL.business_log().Add(action_type, modelLog, model.user_name, model.real_name); if (newId > 0) { return(true); } return(false); }
private void RptBind(string _strWhere, string _orderby) { this.page = DTRequest.GetQueryInt("page", 1); this.txtStartTime.Text = this.start_time; this.txtEndTime.Text = this.end_time; txtKeywords.Text = this.keywords; BLL.business_log bll = new BLL.business_log(); this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount); this.rptList.DataBind(); //绑定页码 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("business_log.aspx", "start_time={0}&end_time={1}&keywords={2}&page={3}", this.start_time, this.end_time, this.keywords, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }