基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
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 + ",";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user