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.

477 lines
15 KiB
C#

10 months ago
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
namespace DSWeb.Areas.Dispatch.DB_Wx
{
[Table("user")]
public class UserInfo
{
[Key]
public string GID { get; set; }
public string SHOWNAME { get; set; }
public string CODENAME { get; set; }
public string PASSWORD { get; set; }
public string OPENID { get; set; }
}
[Table("vw_user")]
public class vw_user
{
[Key]
public string USERID { get; set; }
public string SHOWNAME { get; set; }
public string CODENAME { get; set; }
public string companyname { get; set; }
public string COMPANYID { get; set; }
public string Role_Id { get; set; }
}
[Table("Sys_Role_Core")]
public class Sys_Role_Core
{
[Key]
public string Role_Id { get; set; }
//public string RoleName { get; set; }
public bool LimitCompanyRange { get; set; }
public string RoleName { get; set; }
}
[Table("VW_OP_WMS_IN_DO")]
public class VW_OP_WMS_IN_DO {
[Key]
public Guid WMSDOID { get; set; }
public string BSNO { get; set; }
public string CUSTOMERNAME { get; set; }
public string GOODSNAME { get; set; }
public string MBLNO { get; set; }
public string BILLSTATUS { get; set; }
//public DateTime DODATE { get; set; }
public string CORPID { get; set; }
//public string CUSTOMNO { get; set; }
//public decimal? KGS { get; set; }
//public decimal? NETWEIGHT { get; set; }
//public decimal? CBM { get; set; }
//public decimal? PKGS { get; set; }
//public string STORAREUNIT { get; set; }
//public decimal? STORAREUNITCOUNT { get; set; }
//public string RULEUNIT { get; set; }
//public decimal? RULEUNITCOUNT { get; set; }
//public string REMARK { get; set; }
}
[Table("VW_OP_WMS_IN_DO_GOODS")]
public class VW_OP_WMS_IN_DO_GOODS
{
[Key]
public Guid WMSDODETAILID { get; set; }
public Guid WMSDOID { get; set; }
public string CNTRNO { get; set; }
public decimal? PKGS { get; set; }
public decimal? KGS { get; set; }
public decimal? CBM { get; set; }
public decimal? NETWEIGHT { get; set; }
}
public class IMG
{
[Key]
public Guid GID { get; set; }
public string IMGPATH { get; set; }
}
[Table("INFO_FILES")]
public class INFO_FILES
{
[Key]
public Guid GID { get; set; }
public Guid PID { get; set; }
public string FILENAME { get; set; }
public string FILETYPE { get; set; }
public string UPLOADEMPLY { get; set; }
public string UPLOADDATE { get; set; }
public string PWORKTYPE { get; set; }
public Guid? CreateID { get; set; }
public DateTime? CreateDate { get; set; }
public string Creator { get; set; }
public Guid? ModifyID { get; set; }
public DateTime? ModifyDate { get; set; }
public string Modifier { get; set; }
public string PBSNO { get; set; }
public string MBLNO { get; set; }
public string CNTRNO { get; set; }
public string IMGPATH { get; set; }
public string CORPID { get; set; }
public INFO_FILES() { }
public INFO_FILES(Guid pid, string pworktype, string mblno, string cntrno)
{
GID = Guid.NewGuid();
PID = pid;
PWORKTYPE = pworktype;
FILETYPE = pworktype;
MBLNO = mblno;
CNTRNO = cntrno;
}
public void setuser(vw_user vw_user) {
UPLOADEMPLY = vw_user.SHOWNAME;
CORPID = vw_user.COMPANYID;
ModifyID = new Guid(vw_user.USERID);
Modifier = vw_user.SHOWNAME;
ModifyDate = DateTime.Now;
CreateID = new Guid(vw_user.USERID);
Creator = vw_user.SHOWNAME;
CreateDate = DateTime.Now;
}
}
[Table("VW_INFO_FILES")]
public class VW_INFO_FILES
{
[Key]
public Guid GID { get; set; }
public Guid PID { get; set; }
public string FILENAME { get; set; }
public string FILETYPE { get; set; }
public string UPLOADEMPLY { get; set; }
public string UPLOADDATE { get; set; }
public string IMGPATH { get; set; }
public string PWORKTYPE { get; set; }
public string PBSNO { get; set; }
public string MBLNO { get; set; }
public string CNTRNO { get; set; }
public string CORPID { get; set; }
public string Modifier { get; set; }
public Guid ModifyID { get; set; }
public DateTime ModifyDate { get; set; }
}
public class INFO_FILES_TEMP {
[Key]
public Guid GID { get; set; }
public string CNTRNO { get; set; }
public List<IMG> IMGPATHLIST { get; set; }
public String ModifyDate { get; set; }
}
public class INFO_FILES_TEMP2: INFO_FILES_TEMP
{
public string MBLNO { get; set; }
public string PWORKTYPE { get; set; }
public string Modifier { get; set; }
//new public String ModifyDate { get; set; }
}
public class VW_OP_WMS_AREAGOODS {
[Key]
public Guid WMSID { get; set; }
public string MBLNO { get; set; }
public string CNTRNO { get; set; }
public string CUSTOMERNAME { get; set; }
public decimal? PKGS { get; set; }
public string STORAGEUNIT { get; set; }
public decimal? STORAGEUNITCOUNT { get; set; }
public string CORPID { get; set; }
public string STOREHOUSENAME { get; set; }
public string AREANAME { get; set; }
}
public class OP_WMS_OUT_DO {
[Key]
public Guid WMSDOID { get; set; }
public string WMSNO { get; set; }
public string MBLNO { get; set; }
public string CORPID { get; set; }
public string BILLSTATUS { get; set; }
public string CUSTOMERNAME { get; set; }
public DateTime? DODATE { get; set; }
public string REMARK { get; set; }
public string TRUCKNO { get; set; }
}
public class VW_OP_WMS_OUT_DO
{
[Key]
public Guid WMSDOID { get; set; }
public string WMSNO { get; set; }
public string MBLNO { get; set; }
public string CORPID { get; set; }
public string BILLSTATUS { get; set; }
public string CUSTOMERNAME { get; set; }
public DateTime? DODATE { get; set; }
public string REMARK { get; set; }
public string TRUCKNO { get; set; }
public string CNTRNO { get; set; }
}
#region 虎鲸箱管 相关表
/// <summary>
/// 客户注册的表
/// </summary>
[Table("tb_User")]
public class tb_User {
public int Id { get; set; }
public Guid Gid { get; set; }
public string LoginName { get; set; }
public string Password { get; set; }
public string NickName { get; set; }
public string Email { get; set; }
public int UserType { get; set; }
public string CustomerName { get; set; }
public int Status { get; set; }
}
/// <summary>
/// 虎鲸箱管主表
/// </summary>
[Table("OP_YARD_CTNMNG")]
public class OP_YARD_CTNMNG
{
[Key]
public Guid GID { get; set; }
public string AppointType { get; set; }
public Guid BlockTrainOrderGid { get; set; }
public string ACCDATE { get; set; }
public string BSNO { get; set; }
public string CUSTOMERNAME { get; set; }
public string TRUCKNO { get; set; }
public DateTime? ENTERDATE { get; set; }
public DateTime? ENTERDATE_ACTUAL { get; set; }
public string BILLSTATUS { get; set; }
public string BILLSTATUS_CUST { get; set; }
public Guid? OPID { get; set; }
public string BILLTYPE { get; set; }
public string OP { get; set; }
public string OPADDRESS { get; set; }
public Guid? MANAGEOP { get; set; }
public Guid? STORAGEOP { get; set; }
public Guid? PORTOP { get; set; }
public Guid? TRAINOP { get; set; }
public string REMARK { get; set; }
public string BSSOURCE { get; set; }
public string BSSOURCEDETAIL { get; set; }
public string CORPID { get; set; }
public Guid? CreateID { get; set; }
public string Creator { get; set; }
public DateTime? CreateDate { get; set; }
public Guid? ModifyID { get; set; }
public string Modifier { get; set; }
public DateTime? ModifyDate { get; set; }
public int? DAYS { get; set; }
public decimal? CCF { get; set; }
public string TRUCKNO_IN { get; set; }
public string TRUCKNO_OUT { get; set; }
public int? BondType { get; set; }
public string ENTERDATE_STR
{
get {
if (ENTERDATE == null) return "";
return ((DateTime)ENTERDATE).ToString("yyyy-MM-dd");
}
}
public string ENTERDATE_ACTUAL_STR
{
get
{
if (ENTERDATE_ACTUAL == null) return "";
return ((DateTime)ENTERDATE_ACTUAL).ToString("yyyy-MM-dd");
}
}
public string AppointType_STR
{
get
{
if (AppointType == "yard") return "堆场预约";
if (AppointType == "bond") return "保税预约";
return "";
}
}
public string BondType_STR
{
get
{
if (BondType == 1) return "保税自主派车";
if (BondType == 2) return "保税委托派车";
return "";
}
}
}
/// <summary>
/// 虎鲸箱管业务从表
/// </summary>
[Table("OP_YARD_CTNMNG_WORK")]
public class OP_YARD_CTNMNG_WORK
{
[Key]
public Guid GID { get; set; }
public Guid BSNO { get; set; }
public byte ORDERNO { get; set; }
public string WORKTYPE { get; set; }
public string TRUCKNO { get; set; }
public Guid? OP { get; set; }
public DateTime? DODATE { get; set; }
public string WORKSTATUS { get; set; }
public string IMGPATH { get; set; }
public string REMARK { get; set; }
public Guid? ModifyID { get; set; }
public string Modifier { get; set; }
public DateTime? ModifyDate { get; set; }
}
[Table("tb_BlockTrainOrder")]
public class tb_BlockTrainOrder
{
[Key]
public Guid Gid { get; set; }
public Int64 Id { get; set; }
public string Customer { get; set; }
public Guid? BlockTrainGid { get; set; }
public string TrainOrderType { get; set; }
public string OrderType { get; set; }
public string BaoguanInfo { get; set; }
public string IEFlag { get; set; }
public string GoodsManage { get; set; }
public string SendStation { get; set; }
public string ConsigneeName { get; set; }
public string ConsigneeCountry { get; set; }
public string ConsigneeStation { get; set; }
public string AgentPort { get; set; }
public string AppointStatus { get; set; }
public string GoodsInfo { get; set; }
public string BaoguanStatus { get; set; }
public string BoxStatus { get; set; }
public string BoxType { get; set; }
public string BoxAttr { get; set; }
public string BoxCode { get; set; }
public int? GoodCount { get; set; }
public decimal? BoxWeigth { get; set; }
public decimal? BoxWeigthTare { get; set; }
public Int16? Iswhole { get; set; }
public Int16? IsNonFe { get; set; }
public string TradeName { get; set; }
public string TradeLastName { get; set; }
public string OriginAddr { get; set; }
public Int16? SendIsProvince { get; set; }
public decimal? MoneyUsd { get; set; }
public string CustomsSeal { get; set; }
public string TrainNo { get; set; }
public string BillDemandNo { get; set; }
public string BillInternatNo { get; set; }
public decimal? FeeIn { get; set; }
public decimal? FeeOut { get; set; }
public string CurrencyOut { get; set; }
public string SubsidyType { get; set; }
public decimal? SubsidyMoney { get; set; }
public string Remark { get; set; }
public Int16? IsLock { get; set; }
public Guid? NewestYardOrderGid { get; set; }
public Int64? UpTime { get; set; }
public Int64? AddTime { get; set; }
public Int16? Status { get; set; }
}
[Table("VW_OP_YARD_CTNMNG_STOREAREA_CANUSE")]
public class VW_OP_YARD_CTNMNG_STOREAREA_CANUSE
{
[Key]
public string AREACODE { get; set; }
public string AREANAME { get; set; }
}
[Table("VW_OP_YARD_CTNMNG_HUJINGWXHeadList")]
public class VW_OP_YARD_CTNMNG_HUJINGWXHeadList
{
[Key]
public Guid GID { get; set; }
public string AppointType { get; set; }
public Guid? BlockTrainOrderGid { get; set; }
public string ACCDATE { get; set; }
public string BILLSTATUS { get; set; }
public string BILLSTATUS_CUST { get; set; }
public string BILLTYPE { get; set; }
public string BSNO { get; set; }
public string BSSOURCE { get; set; }
public string BSSOURCEDETAIL { get; set; }
public decimal? CCF { get; set; }
public string CORPID { get; set; }
public DateTime? CreateDate { get; set; }
public Guid? CreateID { get; set; }
public string Creator { get; set; }
public string CUSTOMERNAME { get; set; }
public int? DAYS { get; set; }
public DateTime? ENTERDATE { get; set; }
public DateTime? OutDate { get; set; }
public Guid? MANAGEOP { get; set; }
public string Modifier { get; set; }
public DateTime? ModifyDate { get; set; }
public Guid? ModifyID { get; set; }
public string OP { get; set; }
public string OPADDRESS { get; set; }
public Guid? OPID { get; set; }
public Guid? PORTOP { get; set; }
public string REMARK { get; set; }
public Guid? STORAGEOP { get; set; }
public DateTime? ENTERDATE_ACTUAL { get; set; }
public Guid? TRAINOP { get; set; }
public string TRUCKNO { get; set; }
public string TRUCKNO_IN { get; set; }
public string TRUCKNO_OUT { get; set; }
public string LOADPORT { get; set; }
public string LinkTel { get; set; }
public int? BondType { get; set; }
public string BoxCode { get; set; }
public DateTime? SendTime { get; set; }
public string AREACODE { get; set; }
public string AREANAME { get; set; }
}
#endregion
}