yangle
2023-03-03 c2a9a460e38c7c196fe98a94e29e6330eac3626f
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
 
namespace OAM
{
    public partial class frmsysGG : Form
    {
        public frmsysGG()
        {
            InitializeComponent();
        }
 
        private void cmdOK_Click(object sender, EventArgs e)
        {
            SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
            oCn.RunProc("Update  oa_sysGG set " +
                    "sdesc= '" + txtsdesc.Text.Trim() + "' Where ID = 1", ref DBUtility.ClsPub.sExeReturnInfo);
            MessageBox.Show("¹«¸æÐ޸ijɹ¦");
            this.Close();
        }
        public void Display()
        {
            SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
 
            try
            {
                //²éѯ±í
                DataSet Ds;
                Ds = oCn.RunProcReturn("Select * from oa_sysGG Where ID=1", "oa_sysGG");
                txtsdesc.Text = Ds.Tables[0].Rows[0]["sdesc"].ToString().Trim();
                return;
            }
            catch (Exception e)
            {
                return;
            }
 
        }
        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Enabled = false;
            Display();
        }
 
        private void cmdCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}