/*******************************************************************************
* Copyright(c) 2015 DongkeSoft All rights reserved. / Confidential
* 类的信息:
* 1.程序名称:F_PM_3603.cs
* 2.功能描述:查看形式检验结果
* 编辑履历:
* 作者 日期 版本 修改内容
* 李士越 2024/12/23 1.00 查看
*******************************************************************************/
using Dongke.IBOSS.PRD.Basics.BaseResources;
using Dongke.IBOSS.PRD.Client.CommonModule;
using Dongke.IBOSS.PRD.Client.Controls;
using System;
using System.Data;
using System.Windows.Forms;
namespace Dongke.IBOSS.PRD.Client.PMModule
{
///
/// 查看形式检验结果
///
public partial class F_PM_3603 : DKFormBase
{
#region 成员变量
// 窗体的单例模式
private static F_PM_3603 _instance;
// 存储窗口的编辑状态
private Constant.FormMode _editStatus;
///
/// 表格数据
///
private DataTable _dt;
#endregion
#region 构造函数
public F_PM_3603()
{
InitializeComponent();
}
///
/// 构造函数
///
public F_PM_3603(Constant.FormMode editStatus, DataTable dt)
{
InitializeComponent();
this._editStatus = editStatus;
this.Text = "形式检验结果";
this._dt = dt;
}
#endregion
#region 单例模式
///
/// 单例模式,防止重复创建窗体
///
public static F_PM_3603 Instance
{
get
{
if (_instance == null || _instance.IsDisposed)
{
_instance = new F_PM_3603();
}
return _instance;
}
}
#endregion
#region 事件处理
///
/// 窗体加载事件
///
///
///
private void F_PM_3603_Load(object sender, EventArgs e)
{
try
{
//表格赋值
dgvRegisterDetail.DataSource = _dt;
}
catch (Exception ex)
{
// 对异常进行共通处理
ExceptionManager.HandleEventException(this.ToString(),
System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
}
}
///
/// 窗体关闭事件
///
///
///
private void F_PM_3603_FormClosed(object sender, FormClosedEventArgs e)
{
_instance = null;
}
///
/// 关闭事件
///
///
///
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
#endregion
}
}