CashierSystem/Frm_UserInfo.cs

(开头部分) 7KB

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

using Common;
using Model;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;

namespace CashierSystem
{
    public partial class Frm_UserInfo : Form
    {
         Frm_UserInfo()
        {
            InitializeComponent();
        }
        public string _ModelName = "UserInfo";
        public int entityId = int.MaxValue;
        public static List<string> _Tags;
        //表名, lab1 ,lab2 ,lab3
        private static Frm_UserInfo _form;
        public static Frm_UserInfo Create(List<string> tags = null)
        {
            _Tags = null;
            if (_form == null)
            {
                _form = new Frm_UserInfo();
                _Tags = tags;
            }
            else
            {
                Frm_UserInfo._Tags = tags;
            }
            return _form;
        }


        public void InIt()
        {
            entityId = int.MaxValue;
            txtUserName.Text = "";
            txtPwd.Text = "";
            txtRmark.Text = "";

            if (_Tags != null)
            {
                //添加数据
                if (_Tags.Count == 0)
                {

                    this.Text = "添加";
                }
                //修改 3 为id
                else if (_Tags.Count == 3)
                {
                    this.Text = "修改,非超级管理员仅能修改登录用户信息";
后面还有 162 行代码,解锁后查看完整代码

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

AI 解读

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

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