WinPSI/BM/FrmChooseStores.cs

(开头部分) 9KB

这里只显示每个文件的开头 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;
using WinPSI.Stock;
using WinPSI.Perchase;
using WinPSI.Sale;
using WinPSI.QM;

namespace WinPSI.BM
{
        public partial class FrmChooseStores : Form
        {
                public FrmChooseStores()
                {
                        InitializeComponent();
                }
                private StoreBLL storeBLL = new StoreBLL();
                private StoreTypeBLL stBLL = new StoreTypeBLL();
                public event  Action SetStore;//设置选择的仓库
                private string typeName = "";
                private string uName = "";
                ChooseModel cModel = null;//信息页面到选择仓库页面的实体
                private void FrmChooseStores_Load(object sender, EventArgs e)
                {
                        Action act = () =>
                        {
                                if (this.Tag != null)
                                {
                                        cModel = this.Tag as ChooseModel;
                                        typeName = cModel.TypeCode;
                                        uName = cModel.UName;
                                }
                                if(string.IsNullOrEmpty(uName))
                                {
                                        btnAdd.Enabled = false;
                                }
                                LoadTvSTypes();//仓库类别信息 treeView
                                LoadStoreList();//条件查询仓库列表
                        };
                        act.TryCatch("加载仓库信息出现异常");
                }

                /// <summary>
                /// 加载仓库列表
                /// </summary>
                private void LoadStoreList()
                {
                        string keywords = txtKeyWords.Text.Trim();
                        //仓库类别编号
后面还有 142 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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