WinPSI/BM/FrmStoreList.cs

(开头部分) 17KB

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

using PSI.BLL;
using PSI.Common;
using PSI.Models.DModels;
using PSI.Models.VModels;
using WinPSI.FModels;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinPSI.BM
{
        public partial class FrmStoreList : Form
        {
                StoreBLL storeBLL = new StoreBLL();
                StoreTypeBLL stBLL = new StoreTypeBLL();
                public FrmStoreList()
                {
                        InitializeComponent();
                }
                string uName = "";//账号
                private void FrmStoreList_Load(object sender, EventArgs e)
                {
                        Action act = () =>
                        {
                                if (this.Tag != null)
                                {
                                        uName = this.Tag.ToString();
                                }
                                txtKeyWords.Clear();
                                LoadTVStoreTypes();//加载仓库类别节点树
                                LoadStoreList();//加载所有仓库信息
                        };
                        act.TryCatch("仓库信息加载异常!");
                }

                /// <summary>
                /// 加载所有仓库信息
                /// </summary>
                private void LoadStoreList()
                {
                        string keywords = txtKeyWords.Text.Trim();
                        int sTypeId = 0;
                        if (tvSTypes.SelectedNode != null)
                        {
                                sTypeId = tvSTypes.SelectedNode.Name.GetInt();
                        }
                        List<ViewStoreInfoModel> storeList = storeBLL.LoadStoreList(sTypeId, keywords, chkShowDel.Checked);
                        SetColsAndToolBtns(chkShowDel.Checked);//设置工具项的可用与操作列的显示
                       if(storeList.Count >0)
                        {
                                tsbtnInfo.Enabled = true;
                                dgvStoreList.AutoGenerateColumns = false;
                                dgvStoreList.DataSource = storeList;
                        }
后面还有 303 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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