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.
97 lines
2.6 KiB
97 lines
2.6 KiB
2 years ago
|
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;
|
||
|
using QMAPP.FJC.Entity.Operation;
|
||
|
using QMAPP.Entity;
|
||
|
using QMAPP.ServicesAgent;
|
||
|
using QMAPP.MD.Entity;
|
||
|
using QMAPP.FJC.Entity.Basic;
|
||
|
using QMAPP.WinForm.Common;
|
||
|
using QMAPP.FJC.Entity;
|
||
|
using QMAPP.FJC.Entity.BZD;
|
||
|
|
||
|
namespace QMAPP.WinForm.Forms.Injection
|
||
|
{
|
||
|
public partial class HintMassageForm : Form
|
||
|
{
|
||
|
//获取服务代理
|
||
|
QMAPP.ServicesAgent.ServiceAgent _agent = ClientContext.GetServiceAgent();
|
||
|
|
||
|
List<BZDConfig> _bzdConfig = null;
|
||
|
|
||
|
Product _CurrentProduct = null;
|
||
|
//private OperationForm _parentForm;
|
||
|
//string _Msg = string.Empty;
|
||
|
public HintMassageForm(string Msg)
|
||
|
{
|
||
|
InitializeComponent();
|
||
|
string[] Msg_str = Msg.Split('!');
|
||
|
foreach (var str in Msg_str)
|
||
|
{
|
||
|
label1.Text += str+" \r\n";
|
||
|
}
|
||
|
|
||
|
label1.ForeColor = Color.Red;
|
||
|
infolabel.Text = "";
|
||
|
infolabel.ForeColor = Color.Red;
|
||
|
//_parentForm = parentForm;
|
||
|
}
|
||
|
|
||
|
#region 打印按钮
|
||
|
|
||
|
/// <summary>
|
||
|
/// 打印按钮
|
||
|
/// </summary>
|
||
|
/// <param name="sender"></param>
|
||
|
/// <param name="e"></param>
|
||
|
private void button1_Click(object sender, EventArgs e)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
this.DialogResult = DialogResult.OK;
|
||
|
this.Close();
|
||
|
|
||
|
//string MakeUpBZD = "";
|
||
|
//DataTable dataTable = _agent.InvokeServiceFunction<DataTable>(B9IPCService.BZDConfigBLL_GetAppConfigValue.ToString(), "MakeUpBZD");
|
||
|
//if (dataTable.Rows.Count > 0)
|
||
|
//{
|
||
|
// MakeUpBZD = dataTable.Rows[0]["Value"].ToString();
|
||
|
//}
|
||
|
|
||
|
//if (string.IsNullOrEmpty(MakeUpBZD))
|
||
|
// MakeUpBZD = "admin";
|
||
|
//if (string.IsNullOrEmpty(txtMainCode.Text))
|
||
|
//{
|
||
|
// infolabel.Text = "请输入密码!";
|
||
|
// this.Show();
|
||
|
|
||
|
//}
|
||
|
//if (txtMainCode.Text == MakeUpBZD)
|
||
|
//{
|
||
|
|
||
|
|
||
|
//}
|
||
|
//else
|
||
|
//{
|
||
|
// infolabel.Text = "密码输入错误!";
|
||
|
// this.Show();
|
||
|
|
||
|
//}
|
||
|
|
||
|
}
|
||
|
catch (Exception exception)
|
||
|
{
|
||
|
//MessageBox.Show("打印失败!");
|
||
|
throw;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endregion
|
||
|
|
||
|
}
|
||
|
}
|