using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Data;
|
using System.Drawing;
|
using System.Text;
|
using System.Windows.Forms;
|
|
namespace WarM
|
{
|
public partial class FrmPassWord : Form
|
{
|
public FrmPassWord()
|
{
|
InitializeComponent();
|
}
|
|
public int isOK=0;
|
|
private void FrmPassWord_Load(object sender, EventArgs e)
|
{
|
|
}
|
|
private void cmdCancel_Click(object sender, EventArgs e)
|
{
|
isOK = 0;
|
this.Hide();
|
}
|
|
private void FrmPassWord_Activated(object sender, EventArgs e)
|
{
|
isOK = 0;
|
}
|
|
private void cmdOK_Click(object sender, EventArgs e)
|
{
|
DAL.ClsGy_SupTarget_View oSup = new DAL.ClsGy_SupTarget_View();
|
if (oSup.GetInfoByNumber("1"))
|
{
|
|
}
|
else
|
{
|
MessageBox.Show("ûÓÐÉèÖÃÃÜÂë!");
|
return;
|
}
|
if (oSup.omodel.HName==txtHPassword.Text)
|
{
|
isOK = 1;
|
this.Hide();
|
}
|
else
|
{
|
MessageBox.Show("´íÎóÃÜÂë!");
|
}
|
}
|
}
|
}
|