初始化项目

This commit is contained in:
2025-11-26 17:42:45 +08:00
commit 65ecc68767
2513 changed files with 1313954 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Models.ModelItems
{
public class TBL_Project : ICloneable
{
public int ID { get; set; }
public int ProductTypeID { get; set; }
public string ProjectName { get; set; }
public string Description { get; set; }
public int UserID { get; set; }
public DateTime CreateTime { get; set; }
public DateTime UpdateTime { get; set; }
public DateTime EolDate { get; set; }
public string Remark { get; set; }
public string ImageName { get; set; }
public string PreviewImage { get; set; }
public float Price { get; set; }
public string Currency { get; set; }
public int IsValid{ get; set; }
public int SnType { get; set; }
public object Clone()
{
return this.Clone();
}
public TBL_UTS_Manage_User Clones()
{
return (TBL_UTS_Manage_User)this.Clone();
}
}
}

View File

@@ -0,0 +1,91 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.SqlTypes;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;
using System.Web.Security;
namespace Models.ModelItems
{
#region
[Table("TBL_UTS_Manage_User")]
public class TBL_UTS_Manage_User : ICloneable
{
//用户表 ID 密码 用户名 头像(有默认) 性别 年龄 说明 创建时间 到期时间 默认2个月后) 所属酒店 所属酒店组
[SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
public int ID { get; set; }
[SugarColumn(ColumnDataType = "varchar(50)", IndexGroupNameList = new[] { "Uid_key" })]
public string CompanyID { get; set; }
[SugarColumn(ColumnDataType = "varchar(50)")]
public string UserName { get; set; }
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
public string Password { get; set; }
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true, DefaultValue = "default.png")]
public string Mobile { get; set; } = "defaultboy.png";
[SugarColumn(ColumnDataType = "varchar(255)")]
public string WeiXin { get; set; }
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
public string Email { get; set; }
[SugarColumn(ColumnDataType = "int", IsNullable = true)]
public int? IsValid { get; set; } = 0;
[SugarColumn(ColumnDataType = "int", IsNullable = true)]
public int IsAdmin { get; set; }
[SugarColumn(ColumnDataType = "datetime(3)", IsNullable = true)]
public DateTime CreateTime { get; set; } = DateTime.Now;
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
//public DateTime? EndTime { get; set; } = DateTime.Now.AddMonths(2);
public string BarCode { get; set; }
public object Clone()
{
return this.Clone();
}
public TBL_UTS_Manage_User Clones()
{
return (TBL_UTS_Manage_User)this.Clone();
}
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
public string SetBarCode { get; set; }
[SugarColumn(ColumnDataType = "int", IsNullable = true)]
public DateTime UpdateTime { get; set; }
[SugarColumn(ColumnDataType = "int", IsNullable = true)]
public int? AccountBill { get; set; } = 0;
[SugarColumn(ColumnDataType = "varchar(255)", IsNullable = true)]
public string PlaintextPwd{ get; set; }
/// <summary>
/// 计算密码 Hash值
/// </summary>
/// <param name="password"></param>
/// <param name="entity"></param>
/// <returns></returns>
//public UserInfo ComputePasswordHash()
//{
// this.Pwd = HashCode(this.UserName.ToUpper() + this.Pwd + (this.CreateTime).ToString("yyyy-MM-dd HH:mm:ss"));
// return this;
//}
/// <summary>
/// 获取MD5值
/// </summary>
/// <param name="key">加密的字符串</param>
/// <returns>返回MD5值</returns>
//public string HashCode(string key)
//{
// return FormsAuthentication.HashPasswordForStoringInConfigFile(key, "MD5");
//}
#endregion
}
}