/****************************** * 说明:自定义委托 * 创建人:龚宇超 * 创建日期:2017-11-10 * 修改人: * 修改日期: * 修改备注: * 版本:1.0.0.0 ******************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using DevExpress.XtraGrid.Views.Grid; using System.Windows.Forms; using System.Data; using Lskj.Model; using Lskj.Control.Model; using DevExpress.XtraEditors; using DevExpress.XtraTreeList; using DevExpress.XtraTreeList.Nodes; using DevExpress.XtraGrid.Views.BandedGrid; namespace Lskj.Control { /// /// 查询条件执行前验证(高效验证) /// /// The sender. /// The e. public delegate bool PreSearchVerification(object sender, SearchArgs e); /// /// 查询条件执行前 /// /// The sender. /// The e. public delegate void SearchEventHandler(object sender, SearchArgs e); /// /// 表格拖拽树节点完成后调用 /// /// The sender. /// The e. public delegate void GridDragTreeCompleteEventHandler(object sender, GridDragTreeArgs e); /// /// 表格拖拽树表格节点完成后调用 /// /// The sender. /// The e. public delegate void GridDragTreeGridCompleteEventHandler(object sender, GridDragTreeGridArgs e); /// /// 树表格拖拽表格节点完成后调用 /// /// The sender. /// The e. public delegate void TreeGridDragGridCompleteEventHandler(object sender, TreeGridDragGridArgs e); /// /// 树表格拖拽表格节点完成后调用 /// /// The sender. /// The e. public delegate void TreeGridDragTreeGridCompleteEventHandler(object sender, TreeGridDragTreeGridArgs e); /// /// 多表格拖拽表格完成后调用 /// /// The sender. /// The e. public delegate void BandedGridFragGridCompleteEventHandler(object sender, BandedGridDragGridArgs e); /// /// 表格拖拽表格完成后调用 /// /// The sender. /// The e. public delegate void GridFragGridCompleteEventHandler(object sender, GridDragGridArgs e); /// /// 表格拖拽控件完成后调用 /// /// The sender. /// The e. public delegate void GridFragControlCompleteEventHandler(object sender, GridDragControlArgs e); /// /// 表格拖拽文本框完成后调用 /// /// The sender. /// The e. public delegate void GridFragMemoEditCompleteEventHandler(object sender, GridDragMemoArgs e); /// /// 审批搜索回调 /// /// The sender. /// The e. public delegate void BtnSearchGridFinishEventHandler(object sender, BtnSearchGridFinishArgs e); /// /// 常用工具执行前委托 /// /// The e. public delegate void CommonToolApplyEventHandler(ApplyArgs e); /// /// 常用工具动态连接库执行后委托 /// /// The e. public delegate void CommonToolAfterDynamicLinkEventHandler(object sender, ApplyArgs e); /// /// 扫码回调函数 /// /// The e. public delegate void OnScanCodeCallBackEventHandler(ScanCodeArgs e); /// /// 右键参数替换前委托 /// /// /// public delegate void BeforeHandleParamsEventHandler(object sender, HandleParamsArgs e); /// /// 右键执行存储过程执行成功后返回值 /// /// /// public delegate void StoredProcedureAfterExecute(string text); #region 总事件委托 /// /// /// /// /// 1新增,2为修改,3为删除,4=作废,5=作废恢复 /// public delegate void ModuleDataChangeHandler(ModuleModel module, ActionType aType, BaseResponse response); /// /// Delegate ModuleStateChangeHandler /// /// The module. /// Type of the execute.1:提交 2:撤回 /// The response. public delegate void ModuleStateChangeHandler(ModuleModel module, ActionType aType, BaseResponse response); #endregion /// /// 查询事件参数 /// public class SearchArgs { /// /// 代表事件后续操作是否继续执行 /// /// true:继续执行,false 不执行 public bool Continue = true; } /// /// 表格拖拽树事件参数 /// public class GridDragTreeArgs { /// /// 表格对象 /// public GridView GridViewObj; /// /// 树对象 /// public TreeView TreeViewObj; /// /// 表格拖动选中行数据 /// public DataRow[] GridViewSelectRows; /// /// 拖动目标树选中节点 /// public TreeNode SelectTreeNode; } /// /// 表格拖拽树表格事件参数 /// public class GridDragTreeGridArgs { /// /// 表格对象 /// public GridView GridViewObj; /// /// 树对象 /// public TreeList TreeListObj; /// /// 表格拖动选中行数据 /// public DataRow[] GridViewSelectRows; /// /// 拖动目标树之前节点 /// public TreeListNode BeforeTreeNode; /// /// 拖动目标树选中节点 /// public TreeListNode SelectTreeNode; } /// /// 树表格拖拽表格事件参数 /// public class TreeGridDragGridArgs { /// /// 表格对象 /// public GridView GridViewObj; /// /// 树对象 /// public TreeList TreeListObj; /// /// 表格拖动选中行数据 /// public DataRow[] GridViewSelectRows; /// /// 拖动目标选中行 /// public DataRow SelectGridRow; } /// /// 树表格拖拽表格事件参数 /// public class TreeGridDragTreeGridArgs { /// /// 来源树表格 /// public TreeList SourceTreeList; /// /// 目标树表格 /// public TreeList TargetTreeList; /// /// 表格拖动选中行数据 /// public DataRow[] GridViewSelectRows; /// /// 拖动目标选中行 /// public DataRow SelectGridRow; /// /// 拖动目标树选中节点 /// public TreeListNode SelectTreeNode; } /// /// 多表格拖拽表格事件参数 /// public class BandedGridDragGridArgs { /// /// 源表格对象 /// public BandedGridView SourceGridViewObj; /// /// 目标表格 /// public GridView TargetGridViewObj; /// /// 表格拖动选中行数据 /// public DataRow[] GridViewSelectRows; /// /// 拖动目标选中行 /// public DataRow SelectGridRow; } /// /// 表格拖拽表格事件参数 /// public class GridDragGridArgs { /// /// 源表格对象 /// public GridView SourceGridViewObj; /// /// 目标表格 /// public GridView TargetGridViewObj; /// /// 表格拖动选中行数据 /// public DataRow[] GridViewSelectRows; /// /// 拖动目标选中行 /// public DataRow SelectGridRow; } /// /// 表格拖拽表格事件参数 /// public class GridDragMemoArgs { /// /// 源表格对象 /// public GridView SourceGridViewObj; /// /// 目标控件 /// public MemoEdit TargetMemoEditObj; /// /// 表格拖动选中行数据 /// public DataRow[] GridViewSelectRows; } public class GridDragControlArgs { /// /// 源表格对象 /// public GridView SourceGridViewObj; /// /// 目标控件 /// public System.Windows.Forms.Control TargetControlObj; /// /// 表格拖动选中行数据 /// public DataRow[] GridViewSelectRows; /// /// 拖动目标选中行 /// public DataRow SelectGridRow; } /// /// 完成数据查询 /// public class BtnSearchGridFinishArgs { /// ///基本查询条件 /// public BaseAccraditationModel BaseModel; /// ///取消标记 /// public bool CancelFlag; /// ///查询拼接条件 /// public string Cond; } /// /// 常用工具执行参数 /// public class ApplyArgs { /// /// 常用工具对象 /// public GridRightMenuModel MemuModel; /// /// 是否取消标识 /// public bool CancelFlag; /// /// 执行动态链接库窗口后返回的Model /// public FormDialogModel DialogModel; } /// /// 常用工具执行参数 ///