/***********************
* 说明:返退意见
* 创建人:龚宇超
* 创建日期:2018-01-10
* 修改人:
* 修改日期:
* 修改备注:
* 版本: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 Lskj.Model;
using Lskj.Business.Impl;
using Lskj.Data;
using Lskj.Business;
namespace Lskj.Control
{
///
/// Class frmBackSelectEx.
///
public partial class FrmBackSelectEx : UserControl
{
public LabelComboxEdit StepSelection { get { return this.combox_returnStep; } }
public FrmBackSelectEx()
{
InitializeComponent();
}
#region 公共变量
///
/// 选中步骤
///
public int SelectStepCode;
///
/// 返退意见
///
public string ComfirmMsg;
///
/// 键值
///
public string PrimaryValue;
///
/// 进度编号
///
public string StepCode;
///
/// 意见框
///
public LabelRemarkEdit LabelAdvice { get { return this.txt_advice; } }
///
/// 说明:审批表格双击弹出模块审批回调
/// 创建人:龚宇超
/// 创建日期:2017-12-21
/// 修改人:
/// 修改日期:
/// 修改备注:
/// 版本:1.0
///
public event EventHandler BtnOkCallBack;
///
/// 说明:取消按钮回
/// 创建人:龚宇超
/// 创建日期:2017-01-23
/// 修改人:
/// 修改日期:
/// 修改备注:
/// 版本:1.0
///
public event EventHandler BtnCancelCallBack;
#endregion
///
/// 设置返退步骤源
///
/// The dt.
public void SetSelectStepDataSource(DataTable dt)
{
this.combox_returnStep.ValueMember = "stepCode";
this.combox_returnStep.TextField = "stepName";
this.combox_returnStep.ValueField = "stepCode";
this.combox_returnStep.SetDataSource(dt);
if (SystemInfo.Instance.FallbackDefaultSelection)
{
this.combox_returnStep.EditText = "0";
}
}
///
/// 说明:确定操作/para>
/// 创建人:龚宇超
/// 创建日期:2017-12-25
/// 修改人:
/// 修改日期:
/// 修改备注:
/// 版本:1.0
///
/// The source of the event.
/// The instance containing the event data.
private void btnOk_Click(object sender, EventArgs e)
{
try {
if (string.IsNullOrEmpty(this.combox_returnStep.EditText))
{
MessageUtil.Show(ResourceKeys.SelectReturnStep);
return;
}
if (string.IsNullOrWhiteSpace(this.txt_advice.EditText))
{
MessageUtil.Show(ResourceKeys.InputReturnAdvice);
return;
}
this.SelectStepCode = Convert.ToInt32(this.combox_returnStep.EditValue);
this.ComfirmMsg = this.txt_advice.EditText;
if (BtnOkCallBack != null) BtnOkCallBack(sender, e);
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show("选择