WinPSI/BM/FrmUnitInfo.cs
(开头部分) 18KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using PSI.BLL;
using PSI.Common;
using PSI.Models.DModels;
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 FrmUnitInfo : Form
{
public FrmUnitInfo()
{
InitializeComponent();
}
private UnitBLL unitBLL = new UnitBLL();
private RegionBLL regionBLL = new RegionBLL();
private UnitTypeBLL utBLL = new UnitTypeBLL();
public event Action ReLoadHandler;//刷新列表页事件
private FInfoModel fModel = null;
private string oldName = "";//修改前的单位名称
public UnitTypeInfoModel uType = null;//单位类别实体
private int oldTypeId = 0;//修改前的类别编号
private void FrmUnitInfo_Load(object sender, EventArgs e)
{
Action act = () =>
{
if (this.Tag != null)
{
fModel = this.Tag as FInfoModel;
}
if (fModel == null)
{
MsgBoxHelper.MsgErrorShow("单位信息初始化失败!");
return;
}
InitUnitProperties();//加载单位性质列表
txtNation.Text =regionBLL.GetRegion(1).RegionName;
InitProvinces();//加载所有的省区域列表
string lblTitleType = "";
switch (fModel.ActType)
{
case 1:
ClearInfo();
lblTitleType = "新增";
break;
case 2:
InitUnitInfo(fModel.FId);
tsbtnClear.Enabled = false;
lblTitleType = "修改";
break;
case 4:
InitUnitInfo(fModel.FId);
后面还有 310 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。