156 lines
5.1 KiB
C#
156 lines
5.1 KiB
C#
/***********************
|
|
* 说明:返退意见
|
|
* 创建人:龚宇超
|
|
* 创建日期: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
|
|
{
|
|
/// <summary>
|
|
/// Class frmBackSelectEx.
|
|
/// </summary>
|
|
public partial class FrmBackSelectEx : UserControl
|
|
{
|
|
|
|
public LabelComboxEdit StepSelection { get { return this.combox_returnStep; } }
|
|
|
|
public FrmBackSelectEx()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
#region 公共变量
|
|
/// <summary>
|
|
/// 选中步骤
|
|
/// </summary>
|
|
public int SelectStepCode;
|
|
/// <summary>
|
|
/// 返退意见
|
|
/// </summary>
|
|
public string ComfirmMsg;
|
|
/// <summary>
|
|
/// 键值
|
|
/// </summary>
|
|
public string PrimaryValue;
|
|
/// <summary>
|
|
/// 进度编号
|
|
/// </summary>
|
|
public string StepCode;
|
|
/// <summary>
|
|
/// 意见框
|
|
/// </summary>
|
|
public LabelRemarkEdit LabelAdvice { get { return this.txt_advice; } }
|
|
/// <summary>
|
|
/// <para>说明:审批表格双击弹出模块审批回调</para>
|
|
/// <para>创建人:龚宇超</para>
|
|
/// <para>创建日期:2017-12-21 </para>
|
|
/// <para>修改人:</para>
|
|
/// <para>修改日期:</para>
|
|
/// <para>修改备注:</para>
|
|
/// <para>版本:1.0</para>
|
|
/// </summary>
|
|
public event EventHandler BtnOkCallBack;
|
|
/// <summary>
|
|
/// <para>说明:取消按钮回</para>
|
|
/// <para>创建人:龚宇超</para>
|
|
/// <para>创建日期:2017-01-23 </para>
|
|
/// <para>修改人:</para>
|
|
/// <para>修改日期:</para>
|
|
/// <para>修改备注:</para>
|
|
/// <para>版本:1.0</para>
|
|
/// </summary>
|
|
public event EventHandler BtnCancelCallBack;
|
|
#endregion
|
|
/// <summary>
|
|
/// 设置返退步骤源
|
|
/// </summary>
|
|
/// <param name="dt">The dt.</param>
|
|
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";
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
/// <para>说明:确定操作/para>
|
|
/// <para>创建人:龚宇超</para>
|
|
/// <para>创建日期:2017-12-25</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_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("选择反退步骤确定操作出错!" + Message);
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
/// <para>说明:取消操作/para>
|
|
/// <para>创建人:龚宇超</para>
|
|
/// <para>创建日期:2017-01-23</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 btnCancel_Click(object sender, EventArgs e)
|
|
{
|
|
try {
|
|
if (BtnCancelCallBack != null) BtnCancelCallBack(sender, e);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
string Message = ErrorMessage.PromptErrorMessage(ex);
|
|
MessageUtil.Show(Message,ex.Message);
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|