You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.7 KiB
59 lines
1.7 KiB
using PunchAndWeld.DataSouce;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Configuration;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace PunchAndWeld
|
|
{
|
|
public class BusinessHelper
|
|
{
|
|
/// <summary>
|
|
/// 补打标签后
|
|
/// </summary>
|
|
/// <param name="tb"></param>
|
|
public static void SetRePrint(TextBox tb)
|
|
{
|
|
DialogResult result = MessageBox.Show("是否补打标签?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
|
|
if (result == DialogResult.OK)
|
|
{
|
|
FrmPassWord pass = new FrmPassWord();
|
|
pass.OkBtnClick += (arg1) =>
|
|
{
|
|
if (!string.IsNullOrEmpty(arg1) &&
|
|
arg1.ToLower() == ConfigurationManager.AppSettings["password"].ToLower())
|
|
{
|
|
pass.Close();
|
|
|
|
tb.Text = "";
|
|
tb.Visible = true;
|
|
tb.Focus();
|
|
}
|
|
else
|
|
{
|
|
MessageBox.Show("密码错误,请重新输入!", "提示", MessageBoxButtons.OK);
|
|
return;
|
|
}
|
|
};
|
|
pass.ShowDialog();
|
|
tb.Focus();
|
|
}
|
|
else
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
|
|
public static string GetQLevel(string part)
|
|
{
|
|
string qlevel = ProScreenFunc.SearchQLevel("", part);
|
|
|
|
MESClassLibrary.BLL.Log.LogErrBLL.AddInfo("Qlevel测试,qlevel =" + qlevel, System.Reflection.MethodBase.GetCurrentMethod());
|
|
return qlevel;
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|