CyManager/StorehouseType.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
using Common;
using BLL;
namespace CyManager
{
public partial class StorehouseType : UserControl
{
ListViewItem lviCStorehouse = new ListViewItem();
public StorehouseType()
{
InitializeComponent();
}
private void UStorehouseType_Load(object sender, EventArgs e)
{
QueryStorehouseType();
}
/// <summary>
/// 查询仓库类型
/// </summary>
private void QueryStorehouseType()
{
this.lvStorehouse.Items.Clear();
List<CStorehouseType> lst = new List<CStorehouseType>();
try
{
lst = BLLStorehouseType.BLLStorehouseTypeQuery ();
}
catch (Exception)
{
MessageBoxNew.Show("查询仓库类型失败!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
foreach (CStorehouseType st in lst)
{
ListViewItem lvi = new ListViewItem();
lvi.Text = st.CstId1 .ToString();
this.lvStorehouse.Items.Add(lvi);
lvi.SubItems.Add(st.CstName1 );
}
}
private void lvStorehouse_MouseDown(object sender, MouseEventArgs e)
{
lviCStorehouse = this.lvStorehouse.GetItemAt(e.X, e.Y);
if (lviCStorehouse != null)
{
this.tsAddEt.Enabled = false;
this.tsDeEt .Enabled = true ;
this.tsUpEt .Enabled = true;
this.txtSTId.Text = lviCStorehouse.SubItems[0].Text;
this.txtSTName.Text = lviCStorehouse.SubItems[1].Text;
后面还有 105 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。