WinPSI/BM/FrmUnitList.cs

(开头部分) 18KB

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

using PSI.BLL;
using PSI.Common;
using PSI.Models.DModels;
using PSI.Models.UIModels;
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.BM;

namespace WinPSI.BM
{
        public partial class FrmUnitList : Form
        {
                public FrmUnitList()
                {
                        InitializeComponent();
                }
                UnitBLL unitBLL = new UnitBLL();
                UnitTypeBLL utBLL = new UnitTypeBLL();
                string uName = "";//账号
                private void FrmUnitList_Load(object sender, EventArgs e)
                {
                        Action act = () =>
                        {
                                if (this.Tag != null)
                                {
                                        uName = this.Tag.ToString();
                                }
                                txtKeyWords.Clear();
                                LoadTVUnitTypes();//加载单位类别节点树
                                LoadUnitList();//加载所有单位信息
                        };
                        act.TryCatch("单位信息加载异常!");
                }

                /// <summary>
                /// 条件查询单位信息
                /// </summary>
                private void LoadUnitList()
                {
                        string keywords = txtKeyWords.Text.Trim();
                        int uTypeId = 0;
                        if (tvUTypes.SelectedNode != null)
                        {
                                uTypeId = tvUTypes.SelectedNode.Name.GetInt();
                        }
                        PageModel<ViewUnitInfoModel> pageModel = unitBLL.GetUnitList(uTypeId, keywords, chkShowDel.Checked, ucPager1.StartRecord, ucPager1.PageSize);
                        SetColsAndToolBtns(chkShowDel.Checked);//设置工具项的可用与操作列的显示
                        if (pageModel != null)
                        {
                                if (pageModel.ReList.Count > 0)
                                {
后面还有 320 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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