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
{
///
///扫码内容
///
public string ScanningContent = string.Empty;
public FrmCode()
{
InitializeComponent();
}
///
/// 确认审批
///
///
///
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);
}
}
///
/// 取消审批
///
///
///
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 + ",";
}
}
}
}