XDFZ/StoreManager.cs
(开头部分) 6KB这里只显示每个文件的开头 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 StoreManager : Form
{
string storeNameFlag = "";
public StoreManager()
{
InitializeComponent();
}
private void StoreManager_Load(object sender, EventArgs e)
{
try
{
dataBind();
this.dataGridView1.Columns[2].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
}
catch (Exception ex)
{
MessageBox.Show("系统异常!" + ex.Message);
}
}
private void dataBind()
{
DataTable dt = CommonProxy.GetStore();
this.dataGridView1.DataSource = dt;
}
private void button8_Click(object sender, EventArgs e)
{
try
{
string storeName = this.tStoreNane.Text.Trim();
string address = this.tAddress.Text.Trim();
if (string.IsNullOrEmpty(storeName))
{
MessageBox.Show("请输入仓库名称!");
return;
}
StoreInfo storeInfo = new StoreInfo();
storeInfo.StoreName = storeName;
if (StoreProxy.IsExist(storeInfo))
{
MessageBox.Show("添加失败,仓库[" + storeName + "]已存在!");
return;
}
后面还有 132 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。