/******************************
* 说明:顶部为表格、底部为多标签内容模版(适用于基础档案上下模版、报表上下模版、单据审批模版)
* 创建人:龚宇超
* 创建日期:2017-11-21
* 修改人:
* 修改日期:
* 修改备注:
* 版本:1.0.0.0
******************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraTab;
using Lskj.Model;
using Lskj.Data;
using Lskj.Control.Model;
using DevExpress.XtraEditors;
using Lskj.Business.Impl;
using Lskj.Util;
using DevExpress.XtraGrid.Views.Grid;
using Lskj.Business;
using DevExpress.Utils;
using System.Diagnostics;
using Lskj.Core;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Collections;
using DevExpress.XtraGrid.Columns;
namespace Lskj.Control
{
///
/// 顶部为表格、底部为多标签内容模版
///
public partial class ModuleGridDetailEx : UserControl
{
///
/// 系统模块实体对象
///
/// The system model.
public ModuleModel SysModel { get; private set; }
///
/// 调用动态链接库默认传递参数对象
///
public DynamicModel Model { get; private set; }
///
/// Gets or sets a value indicating whether [visible detail panel].
///
/// true if [visible detail panel]; otherwise, false.
public bool VisibleDetailPanel
{
get
{
return this.scc_container.PanelVisibility == SplitPanelVisibility.Both;
}
set
{
this.scc_container.PanelVisibility = value ? SplitPanelVisibility.Both : SplitPanelVisibility.Panel1;
}
}
///
/// 是否为拖拽明细模式
///
public bool IsDragDetail;
///
/// 底部多标签表格数据
///
public List GridDetailList;
///
/// 左边查询条件
///
public MyControl _leftGridSearchObj;
///
/// 查询条件
///
/// The search object.
public MyControl SearchObj { get { return this.mg_control.SearchObj; } }
///
/// 顶部表格控件
///
public ModuleGridEx ModuleGridObj { get { return this.mg_control; } }
///
/// 底部多标签控件
///
public XtraTabControl TabObj { get { return this.tcButtom.TabControlObj; } }
///
/// 多标签,标签内容包含表格和图表
///
public TabControlEx TcButtom { get { return this.tcButtom; } }
///
/// 底部容器
///
/// The container object.
public PanelControl BottomPanel { get { return this.pl_bottom; } }
///
/// 是否只刷新当前选中明细
///
/// The container object.
public bool RefreshDetail = false;
///
/// 右键执行后是否刷新全部明细
///
/// The container object.
public bool callRefreshDetail = false;
///
/// 是否已经执行行改变事件并刷新明细数据
///
public bool isFocusedRowChanged = true;
///
/// 高效验证后,取消切换选中行
///
public bool CancelSwitchingRow = false;
///
/// 上一次选中行
///
public int LastFocusedRowHandle;
///
/// 主表格行点击事件回调
///
public event EventHandler OnGridViewRowClickCallBack;
///
/// 是否为主表汇总模式
///
public bool IsDynamicDetailType = false;
public ModuleGridDetailEx()
{
InitializeComponent();
}
///
/// 说明:初始化控件
/// 创建人:龚宇超
/// 创建日期:2017-11-21
/// 修改人:
/// 修改日期:
/// 修改备注:
/// 版本:1.0
///
/// The menu row.
public void InitializeControl(ModuleModel sysModel, DynamicModel dyncModel)
{
try
{
if (sysModel != null && dyncModel != null)
{
this.SysModel = sysModel;//系统模块实体对象
this.Model = dyncModel;//调用动态链接库默认传递参数对象
Console.WriteLine(DateTime.Now);
Dictionary