⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user.cs

📁 简单的cI真的是很简单 你想要就下载吧
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class User
{//Minter
    // 注:   User类暂时定义这些 有需要再加



    private int orgID;//组织ID
    private int employeeID;//雇员编号
    //private int reportsTo;
    private string loginName=string.Empty;
    private string firstName = string.Empty;
    private string lastName = string.Empty;
    //private string password;
    //**********权限**********
    private bool canCreateOrder;
    private bool canReplayRequire;
    private bool canInputTransportInfo;
    private bool canConfirmReceive;
    private bool canCloseOrder;
    //************************
    public int OrgID
    {
        get { return orgID; }
        set { orgID = value; }
    }

    public int EmployeeID
    {
        get { return employeeID; }
        set { employeeID = value; }
    }

    public string LoginName
    {
        get
        {
            return this.loginName;
        }
        set
        {
            this.loginName = value;
        }
    }
    public string FirstName
    {
        get
        {
            return this.firstName;
        }
        set
        {
            this.firstName = value;
        }
    }

    public string LastName
    {
        get
        {
            return this.lastName;
        }
        set
        {
            this.lastName = value;
        }
    }
    //public string Password
    //{
    //    get
    //    {
    //        return this.password;
    //    }
    //    set
    //    {
    //        this.password = value;
    //    }
    //}

    public bool CanCreateOrder
    {
        get
        {
            return this.canCreateOrder;
        }
        set
        {
            this.canCreateOrder = value;
        }
    }

    public bool CanReplayRequire
    {
        get
        {
            return this.canReplayRequire;
        }
        set
        {
            this.canReplayRequire = value;
        }
    }

    public bool CanInputTransportInfo
    {
        get
        {
            return this.canInputTransportInfo;
        }
        set
        {
            this.canInputTransportInfo = value;
        }
    }

    public bool CanConfirmReceive
    {
        get
        {
            return this.canConfirmReceive;
        }
        set
        {
            this.canConfirmReceive = value;
        }
    }

    public bool CanCloseOrder
    {
        get
        {
            return this.canCloseOrder;
        }
        set
        {
            this.canCloseOrder = value;
        }
    }
    bool isAdmin;
    public bool IsAdmin
    {
        get
        {
            if (orgID == 0)//如果是上海总部的  或者拥有5种权限,就赋予管理员权限
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        set
        {
            this.isAdmin = value;
        }
    }

    public User()
    {

    }
    public User(int orgID, int employeeID, string loginName,
                             bool canCreateOrder, bool canReplayRequire,
                             bool canInputTransportInfo, bool canConfirmReceive, bool canCloseOrder)
    {
        this.orgID = orgID;
        this.employeeID = employeeID;
        this.loginName = loginName;
        this.canCreateOrder = canCreateOrder;
        this.canReplayRequire = canReplayRequire;
        this.canInputTransportInfo = canInputTransportInfo;
        this.canConfirmReceive = canConfirmReceive;
        this.canCloseOrder = canCloseOrder;
    }
}


    //public class Employees
    //{
    //    private int employeeID;
    //    private string firstName;
    //    private string lastName;
    //    private string title;
    //    private DateTime birthDate;
    //    private DateTime hireDate;
    //    private string address;
    //    private string city;
    //    private string notes;
    //    private int reportsTo;
    //    private int orgID;
    //    private int isActive;
    //    private string loginName;
    //    private string password;

    //    public string FirstName
    //    {
    //        get
    //        {
    //            return this.firstName;
    //        }
    //        set
    //        {
    //            this.firstName = value;
    //        }
    //    }

    //    public string LastName
    //    {
    //        get
    //        {
    //            return this.lastName;
    //        }
    //        set
    //        {
    //            this.lastName = value;
    //        }
    //    }

    //    public string Title
    //    {
    //        get
    //        {
    //            return this.title;
    //        }
    //        set
    //        {
    //            this.title = value;
    //        }
    //    }

    //    public DateTime BirthDate
    //    {
    //        get
    //        {
    //            return this.birthDate;
    //        }
    //        set
    //        {
    //            this.birthDate = value;
    //        }
    //    }

    //    public DateTime HireDate
    //    {
    //        get
    //        {
    //            return this.hireDate;
    //        }
    //        set
    //        {
    //            this.hireDate = value;
    //        }
    //    }

    //    public string Address
    //    {
    //        get
    //        {
    //            return this.address;
    //        }
    //        set
    //        {
    //            this.address = value;
    //        }
    //    }

    //    public string City
    //    {
    //        get
    //        {
    //            return this.city;
    //        }
    //        set
    //        {
    //            this.city = value;
    //        }
    //    }

    //    public string Notes
    //    {
    //        get
    //        {
    //            return this.notes;
    //        }
    //        set
    //        {
    //            this.notes = value;
    //        }
    //    }

    //    public int ReportsTo
    //    {
    //        get
    //        {
    //            return this.reportsTo;
    //        }
    //        set
    //        {
    //            this.reportsTo = value;
    //        }
    //    }

    //    public int OrgID
    //    {
    //        get
    //        {
    //            return this.orgID;
    //        }
    //        set
    //        {
    //            this.orgID = value;
    //        }
    //    }

    //    public int IsActive
    //    {
    //        get
    //        {
    //            return this.isActive;
    //        }
    //        set
    //        {
    //            this.isActive = value;
    //        }
    //    }

    //    public string LoginName
    //    {
    //        get
    //        {
    //            return this.loginName;
    //        }
    //        set
    //        {
    //            this.loginName = value;
    //        }
    //    }

    //    public string Password
    //    {
    //        get
    //        {
    //            return this.password;
    //        }
    //        set
    //        {
    //            this.password = value;
    //        }
    //    }

    //    public int EmployeeID
    //    {
    //        get
    //        {
    //            return this.employeeID;
    //        }
    //        set
    //        {
    //            this.employeeID = value;
    //        }
    //    }
    //}
    //public class Organizations
    //{
    //    private int regionID;
    //    private int orgID;
    //    private string orgName;
    //    private int isSubOrg;
    //    private int reportTo;
    //    private int canCreateOrder;
    //    private int canReplayRequire;
    //    private int canInputTransportInfo;
    //    private int canConfirmReceive;
    //    private int canCloseOrder;

    //    public int RegionID
    //    {
    //        get
    //        {
    //            return this.regionID;
    //        }
    //        set
    //        {
    //            this.regionID = value;
    //        }
    //    }

    //    public int OrgID
    //    {
    //        get
    //        {
    //            return this.orgID;
    //        }
    //        set
    //        {
    //            this.orgID = value;
    //        }
    //    }

    //    public string OrgName
    //    {
    //        get
    //        {
    //            return this.orgName;
    //        }
    //        set
    //        {
    //            this.orgName = value;
    //        }
    //    }

    //    public int IsSubOrg
    //    {
    //        get
    //        {
    //            return this.isSubOrg;
    //        }
    //        set
    //        {
    //            this.isSubOrg = value;
    //        }
    //    }

    //    public int ReportTo
    //    {
    //        get
    //        {
    //            return this.reportTo;
    //        }
    //        set
    //        {
    //            this.reportTo = value;
    //        }
    //    }

    //    public int CanCreateOrder
    //    {
    //        get
    //        {
    //            return this.canCreateOrder;
    //        }
    //        set
    //        {
    //            this.canCreateOrder = value;
    //        }
    //    }

    //    public int CanReplayRequire
    //    {
    //        get
    //        {
    //            return this.canReplayRequire;
    //        }
    //        set
    //        {
    //            this.canReplayRequire = value;
    //        }
    //    }

    //    public int CanInputTransportInfo
    //    {
    //        get
    //        {
    //            return this.canInputTransportInfo;
    //        }
    //        set
    //        {
    //            this.canInputTransportInfo = value;
    //        }
    //    }

    //    public int CanConfirmReceive
    //    {
    //        get
    //        {
    //            return this.canConfirmReceive;
    //        }
    //        set
    //        {
    //            this.canConfirmReceive = value;
    //        }
    //    }

    //    public int CanCloseOrder
    //    {
    //        get
    //        {
    //            return this.canCloseOrder;
    //        }
    //        set
    //        {
    //            this.canCloseOrder = value;
    //        }
    //    }
    //}


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -