using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Data;
|
using System.Drawing;
|
using System.Text;
|
using System.Windows.Forms;
|
using DBUtility;
|
|
namespace SCM
|
{
|
public partial class Xt_Password : Form
|
{
|
public Xt_Password()
|
{
|
InitializeComponent();
|
}
|
public string Czybm;
|
public SCM.WMSWeb.WebService1 oWeb = new SCM.WMSWeb.WebService1();
|
|
private void cmdOK_Click(object sender, EventArgs e)
|
{
|
//ClsCN oCn = new ClsCN();
|
DataSet oDs = new DataSet();
|
//==========
|
if (txtCzymm.Text.Trim() != txtCzyyz.Text.Trim())
|
{
|
MessageBox.Show("2´ÎÃÜÂë²»Ò»Ö£¡", "Ìáʾ");
|
return;
|
}
|
//===========
|
oDs = oWeb.getDataSetBySQL("select Czmm from Gy_Czygl where Czybm='" + Czybm + "'", "Gy_Czygl",ref DBUtility.ClsPub.sExeReturnInfo);
|
if (oDs == null || oDs.Tables[0].Rows.Count == 0)
|
{
|
MessageBox.Show("ûÓÐÕâ¸öÓû§£¬²»ÄÜÐÞ¸ÄÃÜÂ룡", "Ìáʾ");
|
}
|
else
|
{
|
oWeb.getRunProc("update Gy_Czygl set Czmm='" + ClsPub.StrToPsd(txtCzymm.Text.ToString()) + "' where Czybm='" + Czybm + "'", ref DBUtility.ClsPub.sExeReturnInfo);
|
lblError.Text = "* ÃÜÂëÐ޸ijɹ¦£¡";
|
}
|
|
}
|
|
private void Xt_Password_Load(object sender, EventArgs e)
|
{
|
oWeb.Url = ClsPub1.WEBSURL;
|
lblError.Text = "";
|
}
|
|
private void cmdCancel_Click(object sender, EventArgs e)
|
{
|
this.Close();
|
}
|
}
|
}
|