/***********************
* 说明:单据回退选择
* 创建人:龚宇超
* 创建日期: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.PubBillInfo
{
public partial class FrmBackSelect : BaseForm
{
///
/// 选择进度编号
///
public int SelectStepCode;
///
/// 返退意见
///
public string ComfirmMsg;
///
/// 进度编号
///
public string StepCode;
///
/// 单据模型
///
public BillModel BillModelObj;
///
/// 弹出模块
///
public DynamicBillInfoModel SysModel;
///
/// 单据审批表模型
///
private BillAuditCommonModel _billAuditModel;
public FrmBackSelect()
{
InitializeComponent();
}
///
/// 说明:初始化控件/para>
/// 创建人:龚宇超
/// 创建日期:2018-01-09
/// 修改人:
/// 修改日期:
/// 修改备注:
/// 版本:1.0
///
public void InitControl()
{
this._billAuditModel = new BillAuditCommonModel();
this.frmBackSelectEx.SetSelectStepDataSource(BaseAuditImpl.GetBackSelect(this._billAuditModel.SystemTabFlowStep, this.BillModelObj.MasterTable, this._billAuditModel.FlowStepTable, Convert.ToInt32(StepCode), this.BillModelObj.PrimaryKey, this.SysModel.BillDocumentId, this.BillModelObj.MasterPreFix));
this.frmBackSelectEx.BtnOkCallBack += new EventHandler(btnOk_CallBack);
this.frmBackSelectEx.BtnCancelCallBack += new EventHandler(btnCancel_CallBack);
}
///
/// 说明:确定事件/para>
/// 创建人:龚宇超
/// 创建日期:2018-01-09
/// 修改人:
/// 修改日期:
/// 修改备注:
/// 版本:1.0
///
/// The source of the event.
/// The instance containing the event data.
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);
MessageUtil.Show(Message,ex.Message);
}
}
///
/// 说明:取消事件
/// 创建人:龚宇超
/// 创建日期:2018-01-23
/// 修改人:
/// 修改日期:
/// 修改备注:
/// 版本:1.0
///
/// The source of the event.
/// The instance containing the event data.
private void btnCancel_CallBack(object sender, EventArgs e)
{
try
{
this.DialogResult = DialogResult.Cancel;
this.Close();
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message,ex.Message);
}
}
}
}