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.
308 lines
10 KiB
C#
308 lines
10 KiB
C#
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
|
|
{
|
|
[Table("Op_SeaPrice_Contract")]
|
|
public class Op_SeaPrice_Contract
|
|
{
|
|
|
|
public const string _CSTATUS = "3100";
|
|
|
|
public Op_SeaPrice_Contract()
|
|
{
|
|
//this.GID = Guid.NewGuid().ToString().Replace("-", "");
|
|
CSTATUS = _CSTATUS;
|
|
CREATETIME = DateTime.Now;
|
|
}
|
|
|
|
[Key]
|
|
public string BSNO { get; set; }
|
|
public string CONTRACTNO { get; set; }
|
|
public string CARRIER { get; set; }
|
|
public DateTime? EFFECTIVEDATE { get; set; }
|
|
public DateTime? VALIDDATE { get; set; }
|
|
public string CREATOR { get; set; }
|
|
public DateTime? CREATETIME { get; set; }
|
|
public string REMARK { get; set; }
|
|
public string CSTATUS { get; set; }
|
|
public void savecopy(Op_SeaPrice_Contract Newhead)
|
|
{
|
|
BSNO = Newhead.BSNO;
|
|
CONTRACTNO = Newhead.CONTRACTNO;
|
|
CARRIER = Newhead.CARRIER;
|
|
EFFECTIVEDATE = Newhead.EFFECTIVEDATE;
|
|
VALIDDATE = Newhead.VALIDDATE;
|
|
REMARK = Newhead.REMARK;
|
|
CSTATUS = Newhead.CSTATUS;
|
|
}
|
|
}
|
|
|
|
[Table("Op_SeaPrice_Contract_Way")]
|
|
public class Op_SeaPrice_Contract_Way
|
|
{
|
|
public Op_SeaPrice_Contract_Way()
|
|
{
|
|
}
|
|
|
|
[Key]
|
|
public int ID { get; set; }
|
|
public string BSNO { get; set; }
|
|
public string PODLOAD { get; set; }
|
|
public string PORTDISCHARGE { get; set; }
|
|
public string VIA { get; set; }
|
|
public string VIA2 { get; set; }
|
|
public string ETD { get; set; }
|
|
public int TT { get; set; }
|
|
|
|
public void savecopy(Op_SeaPrice_Contract_Way NewWay)
|
|
{
|
|
BSNO = NewWay.BSNO;
|
|
PODLOAD = NewWay.PODLOAD;
|
|
PORTDISCHARGE = NewWay.PORTDISCHARGE;
|
|
VIA = NewWay.VIA;
|
|
VIA2 = NewWay.VIA2;
|
|
ETD = NewWay.ETD;
|
|
TT = NewWay.TT;
|
|
}
|
|
}
|
|
|
|
[Table("Op_SeaPrice_Contract_Detail")]
|
|
public class Op_SeaPrice_Contract_Detail
|
|
{
|
|
public Op_SeaPrice_Contract_Detail()
|
|
{
|
|
GID = Guid.NewGuid().ToString();
|
|
}
|
|
|
|
[Key]
|
|
public string GID { get; set; }
|
|
public string BSNO { get; set; }
|
|
public int SEQUENCE { get; set; }
|
|
public string FEENAME { get; set; }
|
|
public string PODLOAD { get; set; }
|
|
public string PORTDISCHARGE { get; set; }
|
|
public string VIA { get; set; }
|
|
public string VIA2 { get; set; }
|
|
public decimal CTN0 { get; set; }
|
|
public decimal CTN1 { get; set; }
|
|
public decimal CTN2 { get; set; }
|
|
public decimal CTN3 { get; set; }
|
|
public decimal CTN4 { get; set; }
|
|
|
|
public void savecopy(Op_SeaPrice_Contract_Detail NewDetail)
|
|
{
|
|
//GID = NewWay.GID;
|
|
BSNO = NewDetail.BSNO;
|
|
SEQUENCE = NewDetail.SEQUENCE;
|
|
FEENAME = NewDetail.FEENAME;
|
|
PODLOAD = NewDetail.PODLOAD;
|
|
PORTDISCHARGE = NewDetail.PORTDISCHARGE;
|
|
VIA = NewDetail.VIA;
|
|
VIA2 = NewDetail.VIA2;
|
|
CTN0 = NewDetail.CTN0;
|
|
CTN1 = NewDetail.CTN1;
|
|
CTN2 = NewDetail.CTN2;
|
|
CTN3 = NewDetail.CTN3;
|
|
CTN4 = NewDetail.CTN4;
|
|
}
|
|
}
|
|
|
|
|
|
[Table("Op_SeaPrice_Contract_PortDetention")]
|
|
public class Op_SeaPrice_Contract_PortDetention
|
|
{
|
|
public Op_SeaPrice_Contract_PortDetention()
|
|
{
|
|
|
|
}
|
|
|
|
[Key]
|
|
public int? ID { get; set; }
|
|
public string BSNO { get; set; }
|
|
public string PORTDISCHARGE { get; set; }
|
|
public decimal? CTN0 { get; set; }
|
|
public decimal? CTN1 { get; set; }
|
|
public decimal? CTN2 { get; set; }
|
|
public decimal? CTN3 { get; set; }
|
|
public decimal? CTN4 { get; set; }
|
|
|
|
public void savecopy(Op_SeaPrice_Contract_PortDetention NewDetail)
|
|
{
|
|
//GID = NewWay.GID;
|
|
BSNO = NewDetail.BSNO;
|
|
PORTDISCHARGE = NewDetail.PORTDISCHARGE;
|
|
CTN0 = NewDetail.CTN0;
|
|
CTN1 = NewDetail.CTN1;
|
|
CTN2 = NewDetail.CTN2;
|
|
CTN3 = NewDetail.CTN3;
|
|
CTN4 = NewDetail.CTN4;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
[Table("Op_SeaPrice_Quotation")]
|
|
public class Op_SeaPrice_Quotation
|
|
{
|
|
public Op_SeaPrice_Quotation()
|
|
{
|
|
|
|
}
|
|
|
|
[Key]
|
|
public string BSNO { get; set; }
|
|
public string CUSTOMERNAME { get; set; }
|
|
public DateTime? EFFECTIVEDATE { get; set; }
|
|
public DateTime? VALIDDATE { get; set; }
|
|
public string CREATOR { get; set; }
|
|
public DateTime? CREATETIME { get; set; }
|
|
public string PDFURL { get; set; }
|
|
public string REMARK { get; set; }
|
|
|
|
public void savecopy(Op_SeaPrice_Quotation NewDetail)
|
|
{
|
|
//GID = NewWay.GID;
|
|
BSNO = NewDetail.BSNO;
|
|
CUSTOMERNAME = NewDetail.CUSTOMERNAME;
|
|
EFFECTIVEDATE = NewDetail.EFFECTIVEDATE;
|
|
VALIDDATE = NewDetail.VALIDDATE;
|
|
CREATOR = NewDetail.CREATOR;
|
|
CREATETIME = NewDetail.CREATETIME;
|
|
PDFURL = NewDetail.PDFURL;
|
|
REMARK = NewDetail.REMARK;
|
|
}
|
|
|
|
}
|
|
|
|
[Table("Op_SeaPrice_Quotation_Detail")]
|
|
public class Op_SeaPrice_Quotation_Detail
|
|
{
|
|
public Op_SeaPrice_Quotation_Detail()
|
|
{
|
|
|
|
}
|
|
|
|
[Key]
|
|
public string GID { get; set; }
|
|
public string BSNO { get; set; }
|
|
public int SEQUENCE { get; set; }
|
|
public string LANE { get; set; }
|
|
public string PODLOAD { get; set; }
|
|
public string PORTDISCHARGE { get; set; }
|
|
public string CARRIER { get; set; }
|
|
public string VIA { get; set; }
|
|
public string ETD { get; set; }
|
|
public string TT { get; set; }
|
|
public DateTime? EFFECTIVEDATE { get; set; }
|
|
public DateTime? VALIDDATE { get; set; }
|
|
|
|
public string COMMODITY { get; set; }
|
|
public string REMARK { get; set; }
|
|
public string INPUTBY { get; set; }
|
|
public DateTime? INPUTTIME { get; set; }
|
|
public string MODIFIEDUSER { get; set; }
|
|
public DateTime? MODIFYTIME { get; set; }
|
|
public string FEE0 { get; set; }
|
|
public string FEE1 { get; set; }
|
|
public string FEE2 { get; set; }
|
|
public string FEE3 { get; set; }
|
|
public string FEE4 { get; set; }
|
|
public decimal? CTN00 { get; set; }
|
|
public decimal? CTN10 { get; set; }
|
|
public decimal? CTN20 { get; set; }
|
|
public decimal? CTN30 { get; set; }
|
|
public decimal? CTN40 { get; set; }
|
|
public decimal? CTN50 { get; set; }
|
|
public decimal? CTN60 { get; set; }
|
|
public decimal? CTN70 { get; set; }
|
|
public decimal? CTN80 { get; set; }
|
|
public decimal? CTN90 { get; set; }
|
|
public decimal? CTN01 { get; set; }
|
|
public decimal? CTN11 { get; set; }
|
|
public decimal? CTN21 { get; set; }
|
|
public decimal? CTN31 { get; set; }
|
|
public decimal? CTN41 { get; set; }
|
|
public decimal? CTN51 { get; set; }
|
|
public decimal? CTN61 { get; set; }
|
|
public decimal? CTN71 { get; set; }
|
|
public decimal? CTN81 { get; set; }
|
|
public decimal? CTN91 { get; set; }
|
|
public decimal? CTN02 { get; set; }
|
|
public decimal? CTN12 { get; set; }
|
|
public decimal? CTN22 { get; set; }
|
|
public decimal? CTN32 { get; set; }
|
|
public decimal? CTN42 { get; set; }
|
|
public decimal? CTN52 { get; set; }
|
|
public decimal? CTN62 { get; set; }
|
|
public decimal? CTN72 { get; set; }
|
|
public decimal? CTN82 { get; set; }
|
|
public decimal? CTN92 { get; set; }
|
|
public decimal? CTN03 { get; set; }
|
|
public decimal? CTN13 { get; set; }
|
|
public decimal? CTN23 { get; set; }
|
|
public decimal? CTN33 { get; set; }
|
|
public decimal? CTN43 { get; set; }
|
|
public decimal? CTN53 { get; set; }
|
|
public decimal? CTN63 { get; set; }
|
|
public decimal? CTN73 { get; set; }
|
|
public decimal? CTN83 { get; set; }
|
|
public decimal? CTN93 { get; set; }
|
|
public decimal? CTN04 { get; set; }
|
|
public decimal? CTN14 { get; set; }
|
|
public decimal? CTN24 { get; set; }
|
|
public decimal? CTN34 { get; set; }
|
|
public decimal? CTN44 { get; set; }
|
|
public decimal? CTN54 { get; set; }
|
|
public decimal? CTN64 { get; set; }
|
|
public decimal? CTN74 { get; set; }
|
|
public decimal? CTN84 { get; set; }
|
|
public decimal? CTN94 { get; set; }
|
|
public string PORTDISCHARGEID { get; set; }
|
|
public string CONTRACTNO { get; set; }
|
|
public string VIA2 { get; set; }
|
|
public string CTN0DETENTION { get; set; }
|
|
public string CTN1DETENTION { get; set; }
|
|
public string CTN2DETENTION { get; set; }
|
|
public string CTN3DETENTION { get; set; }
|
|
public string CTN4DETENTION { get; set; }
|
|
//public void savecopy(Op_SeaPrice_Quotation_Detail NewDetail)
|
|
//{
|
|
// object MvcShipping.Helper.AutoMapperHelper.MapTo<Op_SeaPrice_Quotation_Detail, Op_SeaPrice_Quotation_Detail>(NewDetail);
|
|
// GID = NewDetail.GID;
|
|
// BSNO = NewDetail.BSNO;
|
|
// CUSTOMERNAME = NewDetail.CUSTOMERNAME;
|
|
// EFFECTIVEDATE = NewDetail.EFFECTIVEDATE;
|
|
// VALIDDATE = NewDetail.VALIDDATE;
|
|
// CREATOR = NewDetail.CREATOR;
|
|
// CREATETIME = NewDetail.CREATETIME;
|
|
// PDFURL = NewDetail.PDFURL;
|
|
// REMARK = NewDetail.REMARK;
|
|
//}
|
|
}
|
|
|
|
[Table("Op_SeaPrice_Quotation_ZaFeiList")]
|
|
public class Op_SeaPrice_Quotation_ZaFeiList
|
|
{
|
|
public Op_SeaPrice_Quotation_ZaFeiList()
|
|
{
|
|
|
|
}
|
|
|
|
[Key]
|
|
public int? ID { get; set; }
|
|
public string BSNO { get; set; }
|
|
public int? SEQUENCE { get; set; }
|
|
public string FEENAME { get; set; }
|
|
public string CURRENCY { get; set; }
|
|
public decimal? AMOUNT { get; set; }
|
|
|
|
public bool NEEDHIDE { get; set; }
|
|
public string UNIT { get; set; }
|
|
}
|
|
|
|
} |