基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,149 @@
|
||||
/***********************
|
||||
* 说明:单据审核界面的附加信息
|
||||
* 创建人:王一帆
|
||||
* 创建日期:2020-04-03
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
***********************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Model;
|
||||
using Lskj.Control.Model;
|
||||
using Lskj.Business.Impl;
|
||||
using DevExpress.XtraTab;
|
||||
using DevExpress.XtraEditors;
|
||||
using DevExpress.Utils;
|
||||
using Lskj.Util;
|
||||
using Lskj.Data;
|
||||
using Lskj.Business;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Diagnostics;
|
||||
using Lskj.Core;
|
||||
|
||||
namespace Lskj.Control
|
||||
{
|
||||
public partial class AuditInformation : BaseForm
|
||||
{
|
||||
public AuditInformation()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 审批流转模型
|
||||
/// </summary>
|
||||
private FlowTypeStepModel _flowTypeStepModel;
|
||||
|
||||
/// <summary>
|
||||
/// 单据审批表模型
|
||||
/// </summary>
|
||||
public BillAuditCommonModel BillAuditComObj;
|
||||
|
||||
public DynamicPubAccraditionPopModel SysModel;
|
||||
/// <summary>
|
||||
/// <para>说明:初始化控件/para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2018-01-09</para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public void InitControl(DynamicPubAccraditionPopModel Model, FlowTypeStepModel _flowTypeStepModel, BillAuditCommonModel BillAuditComObj)
|
||||
{
|
||||
|
||||
WaitForm.ShowForm();
|
||||
try
|
||||
{
|
||||
this._flowTypeStepModel=_flowTypeStepModel;
|
||||
this.BillAuditComObj = BillAuditComObj;
|
||||
this.SysModel = Model;
|
||||
LoadRemindRecord();
|
||||
LoadSignRecord();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message,ex.Message);
|
||||
LogHelper.Instance.WriteError(ex, ResourceKeys.BaseModule);
|
||||
}
|
||||
finally
|
||||
{
|
||||
// 加载完统一显示控件
|
||||
this.TabControl.Visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
#region 加载提醒记录
|
||||
/// <summary>
|
||||
/// <para>说明:加载提醒记录</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-08 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void LoadRemindRecord()
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this._flowTypeStepModel.RemindSelect))
|
||||
{
|
||||
DataTable dt = BaseAuditImpl.GetRemindinRecord(this.BillAuditComObj.FlowStepTable, this.BillAuditComObj.ComfrimTable, this.SysModel.BillDocumentId, this.SysModel.ModuleCode);
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
this.gridRemind.SetReadOnlyColumns(BaseAuditImpl.GetRemindColumn());
|
||||
this.gridRemind.SetGridViewDataSource(dt);
|
||||
this.tabpage_remind.Text = this.tabpage_remind.Text + "(" + dt.Rows.Count + ")";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.TabControl.TabPages.Remove(this.tabpage_remind);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载会签记录
|
||||
/// <summary>
|
||||
/// <para>说明:加载会签记录</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2018-01-08</para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void LoadSignRecord()
|
||||
{
|
||||
DataTable dt = BaseAuditImpl.GetSignRecord(this.BillAuditComObj.ComfrimTable, this.SysModel.BillDocumentId, this.SysModel.ModuleCode);
|
||||
if (dt != null && dt.Rows.Count > 0)
|
||||
{
|
||||
this.gridSign.SetReadOnlyColumns(BaseAuditImpl.GetSignRecordCoulumn());
|
||||
this.gridSign.SetGridViewDataSource(dt);
|
||||
this.tabpage_sign.Text = this.tabpage_sign.Text + "(" + dt.Rows.Count + ")";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.TabControl.TabPages.Remove(this.tabpage_sign);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void AuditInformation_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (TabControl.TabPages.Count() == 0) {
|
||||
this.Close();
|
||||
this.DialogResult = DialogResult.OK;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user