639945df2f
SVN-Revision: r292
116 lines
3.9 KiB
C#
116 lines
3.9 KiB
C#
/***********************
|
|
* 说明:单据回退选择
|
|
* 创建人:龚宇超
|
|
* 创建日期:2018-01-09
|
|
* 修改人:
|
|
* 修改日期:
|
|
* 修改备注:
|
|
* 版本: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.Control;
|
|
using Lskj.Model;
|
|
using Lskj.Business.Impl;
|
|
using Lskj.Control.Model;
|
|
|
|
namespace Lskj.PubAccraditation
|
|
{
|
|
public partial class FrmBackSelect : BaseForm
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
/// 选择进度编号
|
|
/// </summary>
|
|
public int SelectStepCode;
|
|
/// <summary>
|
|
/// 返退意见
|
|
/// </summary>
|
|
public string ComfirmMsg;
|
|
/// <summary>
|
|
/// 单据模型
|
|
/// </summary>
|
|
public BillModel BillModelObj;
|
|
/// <summary>
|
|
/// 弹出模块
|
|
/// </summary>
|
|
public DynamicPubAccraditionPopModel SysModel;
|
|
/// <summary>
|
|
/// 单据审批表模型
|
|
/// </summary>
|
|
private BillAuditCommonModel _billAuditModel;
|
|
|
|
public FrmBackSelectEx FrmBackSelectEx { get { return this.frmBackSelectEx; } }
|
|
public FrmBackSelect()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>说明:初始化控件/para>
|
|
/// <para>创建人:龚宇超</para>
|
|
/// <para>创建日期:2018-01-09</para>
|
|
/// <para>修改人:</para>
|
|
/// <para>修改日期:</para>
|
|
/// <para>修改备注:</para>
|
|
/// <para>版本:1.0</para>
|
|
/// </summary>
|
|
public void InitControl()
|
|
{
|
|
this._billAuditModel = new BillAuditCommonModel();
|
|
this.frmBackSelectEx.SetSelectStepDataSource(BaseAuditImpl.GetBackSelect(this._billAuditModel.SystemTabFlowStep, this.BillModelObj.MasterTable, this._billAuditModel.FlowStepTable, Convert.ToInt32(SysModel.StepCode), this.BillModelObj.PrimaryKey, this.SysModel.BillDocumentId, this.BillModelObj.MasterPreFix));
|
|
this.frmBackSelectEx.BtnOkCallBack += new EventHandler(btnOk_CallBack);
|
|
this.frmBackSelectEx.BtnCancelCallBack += new EventHandler(btnCancel_CallBack);
|
|
}
|
|
|
|
|
|
public void InitControlSpecial()
|
|
{
|
|
try
|
|
{
|
|
this._billAuditModel = new BillAuditCommonModel();
|
|
|
|
this.frmBackSelectEx.SetSelectStepDataSource(BaseAuditImpl.GetBackSelect());
|
|
this.frmBackSelectEx.BtnOkCallBack += new EventHandler(btnOk_CallBack);
|
|
this.frmBackSelectEx.BtnCancelCallBack += new EventHandler(btnCancel_CallBack);
|
|
this.frmBackSelectEx.StepSelection.TextEdit.SelectedIndex = 0;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
string Message = ErrorMessage.PromptErrorMessage(ex);
|
|
MessageUtil.Show(Message, ex.Message);
|
|
}
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>说明:确定事件/para>
|
|
/// <para>创建人:龚宇超</para>
|
|
/// <para>创建日期:2018-01-09</para>
|
|
/// <para>修改人:</para>
|
|
/// <para>修改日期:</para>
|
|
/// <para>修改备注:</para>
|
|
/// <para>版本:1.0</para>
|
|
/// </summary>
|
|
/// <param name="sender">The source of the event.</param>
|
|
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
|
private void btnOk_CallBack(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
this.ComfirmMsg = this.frmBackSelectEx.ComfirmMsg;
|
|
this.SelectStepCode = this.frmBackSelectEx.SelectStepCode;
|
|
this.DialogResult = DialogResult.OK;
|
|
this.Close();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
string Message = ErrorMessage.PromptErrorMessage(ex);
|
|
|