丸井供应商桌面条码生成程序
yxj
2021-10-20 bba8650eb94f7b5a7341ab7b6268ef4d9ee62877
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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();
        }
    }
}