XDFZ/SupplyManager.cs

(开头部分) 7KB

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

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

namespace XDFZ
{
    public partial class SupplyManager : Form
    {
        string supplyNameFlag = "";
        public SupplyManager()
        {
            InitializeComponent();
        }

        private void SupplyManager_Load(object sender, EventArgs e)
        {
            try
            {
                dataBind();
            }
            catch (Exception ex)
            {
                MessageBox.Show("系统异常!" + ex.Message);
            }
        }

        private void dataBind()
        {
            DataTable dt = CommonProxy.GetSupply();
            this.dataGridView1.DataSource = dt;
        }


        private void button8_Click(object sender, EventArgs e)
        {
            try
            {
                string supName = this.tSupplyNane.Text.Trim();
                string reaName = this.tRelaName.Text.Trim();
                string telNo = this.tTel.Text.Trim();
                if (string.IsNullOrEmpty(supName))
                {
                    MessageBox.Show("请输入供应商名称!");
                    return;
                }

                #region -> 当手机号不空时,校验手机号格式

                //if (!string.IsNullOrEmpty(telNo))
                //{
                //    string regStrPhone_yd = @"^1(3[4-9]|5[012789]|8[789])\d{8}$";
                //    string regStrPhone_dx = @"^18[09]\d{8}$";
                //    string regStrPhone_lt = @"^1(3[0-2]|5[56]|8[56])\d{8}$";
后面还有 154 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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