CyManager/ProductType.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Common;
using BLL;
namespace CyManager
{
public partial class ProductType : Form
{
CProductType p = new CProductType();
List<CProductType> lpt = new List<CProductType>();
public ProductType()
{
InitializeComponent();
}
/// <summary>
/// 查询
/// </summary>
private void ProductTypesQuery()
{
List<CProductType> ProductTypeList = new List<CProductType>();
this.listView1.Items.Clear();//清空
try
{
ProductTypeList= BLLProductType.BLLProductTypeQU();
}
catch (Exception ex)
{
MessageBoxNew.Show("查询产品类型失败!" + ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
foreach (CProductType type in ProductTypeList)
{
ListViewItem lviM = new ListViewItem();
lviM.Text = type.ProductTypeID1.ToString();
this.listView1.Items.Add(lviM);
lviM.SubItems.AddRange(new string[] { type.ProductTypeName1.ToString(),type.Comments1.ToString(),type.CreateUserID1.ToString() });
}
}
private void ProductType_Load(object sender, EventArgs e)
{
ProductTypesQuery();
}
//刷新
private void button1_Click(object sender, EventArgs e)
{
try
{
ProductTypesQuery();
}
catch (Exception ex)
后面还有 77 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。