<%-- 
Name:成生实体操作基类
Author: winson
ver:3.3
Description: 成生实体集合操作基类
--%>
<%@ CodeTemplate Language="C#" TargetLanguage="C#" Debug="False" Description="成生实体集合操作基类." ResponseEncoding="UTF-8"%>
<%@ Property Name="ProjectName" Type="System.String" Default="Winson" Optional="False" Category="Int" Description="项目名称" %>
<%@ Assembly Name="SchemaExplorer" %>
<%@ Import Namespace="SchemaExplorer" %>
//=============================================================================
// This project was built by Winson.Framework 3.3
//
// Copyright (c) 2007-2009 Winson 
//
// Create Date: <%= DateTime.Now.ToString() %>
//=============================================================================

using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;

namespace <%=ProjectName%>.EntityOP.Base
{
   #region 事件委托
    public delegate void OPEventHandler<T>(T sender, OPEvent arg);

    public class OPEvent : EventArgs
    {
        private string _currbatchid;
        private int _currid;
        private string _customparm;
        private object _entity;
             

        public OPEvent()
        { }

        public OPEvent(int currid)
        {
            _currid = currid;
        }

        public OPEvent(int currid, string customparm)
        {
            _currid = currid;
            _customparm = customparm;
        }

        public OPEvent(string customparm, object entity)
        {
            _customparm = customparm;
            _entity = entity;
        }

        public OPEvent(string currbatchid)
        {
            _currbatchid = currbatchid;
        }

        public OPEvent(string currbatchid, string customparm)
        {
            _currbatchid = currbatchid;
            _customparm = customparm;
        }

        public string CurrBatchId
        {
            get { return _currbatchid; }
        }

        public int CurrId
        {
            get { return _currid; }
        }

        public string CustomParm
        {
            get { return _customparm; }
            set { _customparm = value; }
        }

        public object Entity
        {
            get { return _entity; }
            set { _entity = value; }
        } 
    }
    #endregion
}
