CyManager/Depot.cs

(开头部分) 7KB

这里只显示每个文件的开头 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 BLL;
using Common;
namespace CyManager
{
    public partial class Depot : Form
    {
        private int p;//创建人编号
        CDepotStandard cs;
        int orderId;
        public ListViewItem lviDepot = new ListViewItem();
        public Depot()
        {
            InitializeComponent();
        }

        public Depot(int p)
        {
            
            InitializeComponent();
            this.p = p;
        }
        /// <summary>
        /// 库存查询
        /// </summary>
        public void DepotQuery()
        {
            List<CDepot> CDepotList = new List<CDepot>();
            this.listView1.Items.Clear();//清空
            try
            {
                CDepotList = BLLDepot.BLLDepotQuery();

            }
            catch (Exception ex)
            {
                MessageBoxNew.Show("查询商品类型失败!" + ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            foreach (CDepot cDepot in CDepotList)
            {
                ListViewItem lviM = new ListViewItem();
                lviM.Text = cDepot.OrderID.ToString();
                //cDepot.ProductName=BLLProduct.BLLProductNameQuery(Convert.ToInt32(cDepot.ProductID));
                
                //lviM.SubItems.AddRange(new string[] { cDepot.OrderNO, cDepot.StoreID, cDepot.CreateUserID, cDepot.userName, cDepot.CreateDateTime, cDepot.ProductID, cDepot.ProductName,cDepot.Qty11 });
                lviM.SubItems.AddRange(new string[] { cDepot.OrderNO, cDepot.StoreID, cDepot.ProductName, cDepot.Qty11.ToString(), cDepot.ProductPrice, cDepot.CreateUserID, cDepot.Summoney, cDepot.CreateDateTime });
                this.listView1.Items.Add(lviM);
            }
        }

      
        public void DepotQuery2()
后面还有 174 行代码,购买后查看完整代码

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

AI 解读 AI

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

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