using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using SQLHelper; using DBUtility; namespace BLL { public partial class Xt_Password : Form { public Xt_Password() { InitializeComponent(); } public string Czybm; 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 = oCn.RunProcReturn("select Czmm from Gy_Czygl where Czybm='" + Czybm + "'", "Gy_Czygl"); if (oDs == null || oDs.Tables[0].Rows.Count == 0) { MessageBox.Show("ûÓÐÕâ¸öÓû§£¬²»ÄÜÐÞ¸ÄÃÜÂ룡", "Ìáʾ"); } else { oCn.RunProc("update Gy_Czygl set Czmm='" + ClsPub.StrToPsd(txtCzymm.Text.ToString()) + "' where Czybm='" + Czybm + "'"); lblError.Text = "* ÃÜÂëÐ޸ijɹ¦£¡"; } } private void Xt_Password_Load(object sender, EventArgs e) { lblError.Text = ""; } private void cmdCancel_Click(object sender, EventArgs e) { this.Close(); } } }