CyManager/AddGysfrm.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using BLL;
namespace CyManager
{
    public partial class AddGysfrm : Form
    {
        public event Del addgys;
        public AddGysfrm()
        {
            InitializeComponent();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {

        }

        private void btnOK_Click_1(object sender, EventArgs e)
        {
            if (this.txtName.Text.Equals(""))
            {
                MessageBoxNew.Show("请输入供应商名称!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                this.txtName.Focus();
            }
            else if (this.txtLinker.Text.Equals(""))
            {
                MessageBoxNew.Show("请输入联系人!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                this.txtLinker.Focus();
            }
            else if (this.txtAddress.Text.Equals(""))
            {
                MessageBoxNew.Show("请输入联系人地址!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                this.txtAddress.Focus();
            }
            else if (this.txtTel.Text.Equals(""))
            {
                MessageBoxNew.Show("请输入联系人电话!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                this.txtTel.Focus();
            }
            else
            {
                BLLMenus.InsertNewGys(txtName.Text.Trim(), txtLinker.Text.Trim(), txtTel.Text.Trim(), txtAddress.Text.Trim(), txtremark.Text.Trim());
                this.addgys();//调用事件
                this.Close();
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}

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

AI 解读 AI

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

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