ab56a9bcf7
SVN-Revision: r240
77 lines
1.9 KiB
C#
77 lines
1.9 KiB
C#
using Lskj.Business.Impl;
|
|
using Lskj.Control;
|
|
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;
|
|
|
|
namespace Lskj.SweepCode
|
|
{
|
|
public partial class FrmCode : BaseForm
|
|
{
|
|
/// <summary>
|
|
///扫码内容
|
|
/// </summary>
|
|
public string ScanningContent = string.Empty;
|
|
|
|
public FrmCode()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 确认审批
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
private void btnOkClick(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
ScanningContent = txt_advice.Text.TrimEnd(','); ;
|
|
this.DialogResult = DialogResult.OK;
|
|
this.Close();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
string Message = ErrorMessage.PromptErrorMessage(ex);
|
|
MessageUtil.Show( Message);
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
/// 取消审批
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
private void btnCancelClick(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
this.DialogResult = DialogResult.Cancel;
|
|
this.Close();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
string Message = ErrorMessage.PromptErrorMessage(ex);
|
|
MessageUtil.Show( Message);
|
|
}
|
|
|
|
}
|
|
|
|
private void txt_advice_KeyDown(object sender, KeyEventArgs e)
|
|
{
|
|
if (e.KeyCode == Keys.Enter)
|
|
{
|
|
string content = txt_advice.Text;
|
|
txt_advice.Text = content + ",";
|
|
}
|
|
}
|
|
}
|
|
}
|