JinYeTransportCostsSystem/Base/Tsr_Base_ugoods.cs

(开头部分) 4KB

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

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace JinYeTransportCostsSystem.Base
{
    public partial class Tsr_Base_ugoods : Form
    {
        static bool _changed = true;
        public Tsr_Base_ugoods()
        {
            InitializeComponent();
        }

        private void lb_Exit_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void Tsr_Base_ugoods_Load(object sender, EventArgs e)
        {
            tt_gnum.ReadOnly = false;
            Bind();
        }

        private void Bind()
        {
            Tsr.BLL.FZ_Goods bllUnit = new Tsr.BLL.FZ_Goods();
            DataTable dt = new DataTable();
            dt = bllUnit.GetAllList().Tables[0];
            dataGridView1.DataSource = dt;
        }

        private void lb_New_Click(object sender, EventArgs e)
        {
            tt_gnum.ReadOnly = false;
            _changed = true;
            clear(this);
        }

        private void clear(Control c)
        {
            foreach (Control childControl in c.Controls)
            {
                if (childControl is TextBox)
                    ((TextBox)childControl).Text = "";
                else
                    clear(childControl);
            }
        }

        private void lb_Save_Click(object sender, EventArgs e)
        {
            if (tt_gpinyin.Text != "" && tt_gnum.Text != "" && tt_gname.Text != "")
            {
                    save();
后面还有 86 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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