You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
208 lines
5.9 KiB
C#
208 lines
5.9 KiB
C#
using DSWeb.Common.DB;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Data.Entity;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace DSWeb.Common.DB
|
|
{
|
|
public class CompanyDataContext : DbContext
|
|
{
|
|
public CompanyDataContext(string conn) : base(conn)
|
|
{
|
|
|
|
}
|
|
|
|
public CompanyDataContext() : base("DongShengDB")
|
|
{
|
|
|
|
}
|
|
|
|
public DbSet<CompanyNew> CompanyNew { get; set; }
|
|
public DbSet<User> Users { get; set; }
|
|
public DbSet<UserBaseinfo> UserBases { get; set; }
|
|
|
|
public DbSet<UserErpCode> UserErpCode { get; set; }
|
|
public DbSet<CompanyJoinApply> JoinApplies { get; set; }
|
|
public DbSet<UserAction> UserActions { get; set; }
|
|
public DbSet<UserAuthorityRange> UserAuthorityRanges { get; set; }
|
|
public DbSet<CompanyBank> Banks { get; set; }
|
|
|
|
public DbSet<UserCompany> UserCompany { get; set; }
|
|
public DbSet<UserUserAttribute> UserUserAttribute { get; set; }
|
|
|
|
public DbSet<CustPrice> Cust_Price { get; set; }
|
|
public DbSet<CustFee> Cust_Fee { get; set; }
|
|
public DbSet<CustCZ> Cust_CZ { get; set; }
|
|
public DbSet<CustBalance> Cust_Balance { get; set; }
|
|
|
|
public DbSet<InfoClient> InfoClients { get; set; }
|
|
|
|
public DbSet<AuthVirtualModule> VirtualModules { get; set; }
|
|
public DbSet<AuthUserVirtualModule> UserVirtualModules { get; set; }
|
|
|
|
public DbSet<CodeGoodsInvTemplate> GoodsInvTemplate { get; set; }
|
|
public DbSet<CodeGoodsInv> GoodsInvs { get; set; }
|
|
|
|
|
|
public DbSet<CompanyNewParam> Params { get; set; }
|
|
public DbSet<CompanyNewParamItem> ParamItems { get; set; }
|
|
public DbSet<CompanyNewParamValue> ParamValues { get; set; }
|
|
|
|
//公章
|
|
public DbSet<CompanyNewSeal> Seals { get; set; }
|
|
}
|
|
|
|
//公司
|
|
[Table("company_new")]
|
|
public class CompanyNew
|
|
{
|
|
public const string AuditStatusNotSubmit = "NotSubmit";
|
|
public const string AuditStatusAuditing = "Auditing";
|
|
public const string AuditStatusSuccess = "Success";
|
|
public const string AuditStatusReject = "Reject";
|
|
|
|
[Key]
|
|
public string CompId { get; set; }
|
|
public string CompName { get; set; }
|
|
public string SourceName { get; set; }
|
|
public int AlertMinValue { get; set; }
|
|
public string AuditStatus { get; set; }
|
|
public string AuditText { get; set; }
|
|
public string AdminUser { get; set; }
|
|
public string AdminShowName { get; set; }
|
|
public string Address { get; set; }
|
|
public string Tel { get; set; }
|
|
public string TaxCode { get; set; }
|
|
/// <summary>
|
|
/// 海关登记号
|
|
/// </summary>
|
|
public string CustomsCode { get; set; }
|
|
public string BankName { get; set; }
|
|
public string BankAccount { get; set; }
|
|
public string LicenceImage { get; set; }
|
|
public string InvoiceSystem { get; set; }
|
|
public string InvoiceApi { get; set; }
|
|
|
|
public string EmailShowName { get; set; }
|
|
|
|
public bool MinValueSMS { get; set; }
|
|
public bool MinValueEmail { get; set; }
|
|
public string MinValueEmailAddr { get; set; }
|
|
|
|
/// <summary>
|
|
/// 英文名
|
|
/// </summary>
|
|
public string EnName { get; set; }
|
|
|
|
//logo图片路径
|
|
public string LogoPath { get; set; }
|
|
|
|
/// <summary>
|
|
/// 舱单传输人备案号
|
|
/// </summary>
|
|
public string CangdanCode { get; set; }
|
|
|
|
}
|
|
|
|
//公司参数
|
|
[Table("company_new_param")]
|
|
public class CompanyNewParam
|
|
{
|
|
[Key]
|
|
public string ParaCode { get; set; }
|
|
public string ParaName { get; set; }
|
|
public string Remark { get; set; }
|
|
}
|
|
|
|
//公司参数项
|
|
[Table("company_new_param_item")]
|
|
public class CompanyNewParamItem
|
|
{
|
|
[Key, Column(Order = 0)]
|
|
public string ParaCode { get; set; }
|
|
[Key, Column(Order = 1)]
|
|
public string ItemCode { get; set; }
|
|
public string ItemName { get; set; }
|
|
public string Remark { get; set; }
|
|
}
|
|
|
|
//公司参数值
|
|
[Table("company_new_param_value")]
|
|
public class CompanyNewParamValue
|
|
{
|
|
[Key, Column(Order = 0)]
|
|
public string ParaCode { get; set; }
|
|
[Key, Column(Order = 1)]
|
|
public string CompId { get; set; }
|
|
public string ItemCode { get; set; }
|
|
public string Remark { get; set; }
|
|
}
|
|
|
|
[Table("user_userattribute")]
|
|
public class UserUserAttribute
|
|
{
|
|
[Key]
|
|
[MaxLength(36)]
|
|
public string GID { get; set; }
|
|
|
|
[MaxLength(36)]
|
|
public string USERID { get; set; }
|
|
|
|
[MaxLength(36)]
|
|
public string ATTRIBUTEID { get; set; }
|
|
|
|
[MaxLength(100)]
|
|
public string VALUE { get; set; }
|
|
|
|
}
|
|
|
|
//公司印章
|
|
[Table("company_new_seal")]
|
|
public class CompanyNewSeal
|
|
{
|
|
/// <summary>
|
|
/// 公章
|
|
/// </summary>
|
|
public const string CompanyNewSealTypePublic = "Public";
|
|
|
|
/// <summary>
|
|
/// 财务章
|
|
/// </summary>
|
|
public const string CompanyNewSealTypeFinance = "Finance";
|
|
|
|
/// <summary>
|
|
/// 业务章
|
|
/// </summary>
|
|
public const string CompanyNewSealTypeBusiness = "Business";
|
|
|
|
[MaxLength(40), Key]
|
|
public string GID { get; set; }
|
|
|
|
[MaxLength(40)]
|
|
public string CompId { get; set; }
|
|
|
|
[MaxLength(20)]
|
|
public string SealType { get; set; }
|
|
|
|
[MaxLength(150)]
|
|
public string PicPath { get; set; }
|
|
|
|
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
[MaxLength(40)]
|
|
public string CreateUser { get; set; }
|
|
|
|
|
|
public DateTime? ModifyTime { get; set; }
|
|
|
|
[MaxLength(40)]
|
|
public string ModifyUser { get; set; }
|
|
|
|
|
|
}
|
|
} |