ERPfor众城电脑/Supplier_info.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using CARDAL;

namespace ERPfor众城电脑
{
    public partial class Supplier_info :Office2007Form

    {

        public string flag = "";
        public string pubtext = "";
        public Supplier_info()
        {
            InitializeComponent();
            
        }

        private void Supplier_info_Load(object sender, EventArgs e)
        {

            textBoxX1.Enabled = false;
            textBoxX2.Enabled = false;
            textBoxX3.Enabled = false;
            textBoxX4.Enabled = false;
            textBoxX5.Enabled = false;
            string sql = "SELECT * FROM [ZCERP].[dbo].[ZH_SUPPLIER_INFO]";
            DataBind(sql);

        }
        public void  DataBind (string SQL)
       {
           this.dataGridViewX1.AutoGenerateColumns = false;
           this.dataGridViewX1.DataSource = CARDAL.DbHelp.GetDataTable(SQL);       
       }

        private void toolStripButton1_Click(object sender, EventArgs e)//新增
        {
            textBoxX1.Enabled = true;
            textBoxX2.Enabled = true;
            textBoxX3.Enabled = true;
            textBoxX4.Enabled = true;
            textBoxX5.Enabled = true;
            flag = "add";
            textBoxX1.Text = "";
            textBoxX2.Text = "";
            textBoxX3.Text = "";
            textBoxX4.Text = "";
            textBoxX5.Text = "";


        }

后面还有 110 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。