using DevExpress.XtraEditors;
using DevExpress.XtraGrid.Views.Grid;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Lskj.PubPower
{
///
/// 查询条件执行前
///
/// 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 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 e.
public delegate void OnScanCodeCallBackEventHandler(ScanCodeArgs e);
///
/// 查询事件参数
///
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 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 ScanCodeArgs
{
///
/// 提示信息
///
public string TipMsg;
///
/// 条码值
///
public string ScanCode;
///
/// 是否取消执行
///
public bool CancelFlag;
}
}