Files
lserp_cs_6.0/插件库/Lskj.MesWorkreport/NumericKeyboard.cs
T
cyf ab56a9bcf7 基线 SVN r240
SVN-Revision: r240
2025-02-06 06:46:06 +00:00

63 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.MesWorkreport
{
public partial class NumericKeyboard : UserControl
{
public TextBox parentTextBox;
public string showTxt;
public NumericKeyboard()
{
InitializeComponent();
}
public event EventHandler OBtnClick;
private void OnBtnClick(object sender, EventArgs e)
{
try
{
Label clickbtn = (Label)sender;
//clickbtn.BackColor = Color.Olive;
string strkey = clickbtn.Text;
if (this.OBtnClick != null)
{
OBtnClick(clickbtn, e);
}
//if (strkey == "退格")
//{
// string strNew = this.lastfocustextbox.Text;
// if (strNew.Length >= 1)
// {
// strNew = strNew.Substring(0, strNew.Length - 1);
// this.lastfocustextbox.Text = strNew;
// this.lastfocustextbox.SelectionStart = this.lastfocustextbox.Text.Length;
// }
// this.lastfocustextbox.Focus();
//}
//else if (strkey == "清除")
//{
// lastfocustextbox.Clear();
//}
//else
//{
// lastfocustextbox.AppendText(strkey);
//}
}
catch (Exception ex)
{
string Message = ErrorMessage.PromptErrorMessage(ex);
MessageUtil.Show(Message, ex.Message);
}
}
}
}