1.前台<%-- builed by manage.aspx.cmt [ver:2016.56.27] at 2016/10/27 11:56:25 --%><%@ Page Language="C#" AutoEventWireup="True" CodeBehind="SysExceptionLogManage.aspx.cs" ValidateRequest="false" Inherits="HraWeb.SysExceptionLogManage" %><%@ Register Assembly="Trirand.Web" TagPrefix="asp" Namespace="Trirand.Web.UI.WebControls" %>
2.后台using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using HraWeb.Common;using WebApp.Common;using Contract.Domain;using System.Collections;using HRAModel.Sys.Enum;using Framework;namespace HraWeb{ public partial class SysExceptionLogManage : BootStrapManage
{ protected override void Page_Load(object sender, EventArgs e) { jq.ClientSideEvents.LoadComplete = "gridComplete"; //给基类服务接口复制,可不付 //base.svc = Psvc; if (!IsPostBack) { } base.Page_Load(sender, e); } protected override string AddScriptInDoucumentReady() { return ""; } public override void ChangeList(QueryInfo infoList) { foreach (SysExceptionLog log in infoList.List) { if (log.ExceptionDetail.Length > 10) { // log.ExceptionDetail = log.ExceptionDetail.Substring(0, 7) + "...详情"; } } } /// /// 设置查询条件或者语句 /// /// protected override Framework.QueryInfo SetInfo() { info = base.SetInfo(); return info; } /// /// 初始化页面控件 /// protected override void InitPage() { base.InitPage(); // BindDrop(drp_Unit, "SPSW", true); } //private Contract.IService.ISysExceptionLogService psvc; ///// ///// 初始化 ///// //Contract.IService.ISysExceptionLogService Psvc //{ // get // { // if (psvc == null) // { // psvc = ctx.GetObject("SysExceptionLogService") as Contract.IService.ISysExceptionLogService; // } // return psvc; // } //} }}