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.
DS7/DSWeb/Areas/MvcShipping/Models/MsOp_BLISSUE/MsOp_BLISSUE.cs

1022 lines
28 KiB
C#

using System;
using HcUtility.Core;
using Newtonsoft.Json;
using org.hamcrest.core;
namespace DSWeb.MvcShipping.Models.MsOp_BLISSUE
{
[JsonObject]
public class MsOp_BLISSUEmb : ModelObjectBillHead
{
#region 读写属性
private string _GID = string.Empty;
private string _BSNO = string.Empty;
private string _BLNO = string.Empty;
private string _MBLNO = string.Empty;
private string _HBLNO = string.Empty;
private string _ZDFD = string.Empty;
private string _BLNAME = string.Empty;
private string _BLSTATUS = string.Empty;
private string _BLORDERNO = string.Empty;
private string _ISSUETYPE = string.Empty;
private string _OPNAME = string.Empty;
private string _OPTIME = string.Empty;
private string _BSINKNO = string.Empty;
private string _REMARK = string.Empty;
private string _DELFLAG = string.Empty;
private string _EXPRESSCORP = string.Empty;
private string _EXPRESSNO = string.Empty;
private string _ISADD = string.Empty;
private string _PUTSINGLETIME = string.Empty;
private string _PUTSINGLE = string.Empty;
private string _PAYTIME = string.Empty;
private string _PAYRMB = string.Empty;
private string _PAYUSD = string.Empty;
private string _BLTYPE = string.Empty;
private string _CUSTNO = string.Empty;
private string _CUSTOMERNAME = string.Empty;
private string _SALE = string.Empty;
private string _ACCTYPE ="";
private string _ETD = string.Empty;
private string _STLDATE = string.Empty;
private string _STLNAME ="";
private string _CARRIER = string.Empty;
private string _VESSEL = string.Empty;
private string _VOYNO = string.Empty;
private string _PORTLOAD = string.Empty;
private string _PORTDISCHARGE = string.Empty;
private string _OP = string.Empty;
private string _CUSTSERVICE = string.Empty;
private string _DOC = string.Empty;
private string _BLISSUESTATUS = string.Empty;
private string _TSFD = string.Empty;
private string _XYTS = string.Empty;
private string _CQTS = string.Empty;
private string _SJTS = string.Empty;
private string _RMBNODR = string.Empty;
private string _USDNODR = string.Empty;
private string _TTLNODR = string.Empty;
private string _TTLDR = string.Empty;
private string _OPLBNAME = string.Empty;
private string _SPREMARK = string.Empty;
private string _ISVESSELPROVE = string.Empty;
private string _VESSELPROVETIME = string.Empty;
private string _VESSELPROVEREMARK = string.Empty;
private string _ISQR = string.Empty;
private string _CUSTCARGOAFTER = string.Empty;
private string _ISCHAOQI = string.Empty;
private string _MNGBLSTATUS = string.Empty;
private string _QRDATE = string.Empty;
private string _QCDATE = string.Empty;
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string BSNO
{
get { return _BSNO; }
set { _BSNO = value; }
}
[ModelDB]
public string BLNO
{
get { return _BLNO; }
set { _BLNO = value; }
}
public string MBLNO
{
get { return _MBLNO; }
set { _MBLNO = value; }
}
public string HBLNO
{
get { return _HBLNO; }
set { _HBLNO = value; }
}
public string ZDFD
{
get { return _ZDFD; }
set { _ZDFD = value; }
}
[ModelDB]
public string BLNAME
{
get { return _BLNAME; }
set { _BLNAME = value; }
}
[ModelDB]
public string BLSTATUS
{
get { return _BLSTATUS; }
set { _BLSTATUS = value; }
}
[ModelDB]
public string BLORDERNO
{
get { return _BLORDERNO; }
set { _BLORDERNO = value; }
}
[ModelDB]
public string ISSUETYPE
{
get { return _ISSUETYPE; }
set { _ISSUETYPE = value; }
}
[ModelDB]
public string OPNAME
{
get { return _OPNAME; }
set { _OPNAME = value; }
}
[ModelDB]
public string OPTIME
{
get { return _OPTIME; }
set { _OPTIME = value; }
}
[ModelDB]
public string BSINKNO
{
get { return _BSINKNO; }
set { _BSINKNO = value; }
}
[ModelDB]
public string REMARK
{
get { return _REMARK; }
set { _REMARK = value; }
}
[ModelDB]
public string DELFLAG
{
get { return _DELFLAG; }
set { _DELFLAG = value; }
}
[ModelDB]
public string EXPRESSCORP
{
get { return _EXPRESSCORP; }
set { _EXPRESSCORP = value; }
}
[ModelDB]
public string EXPRESSNO
{
get { return _EXPRESSNO; }
set { _EXPRESSNO = value; }
}
[ModelDB]
public string ISADD
{
get { return _ISADD; }
set { _ISADD = value; }
}
[ModelDB]
public string PUTSINGLETIME
{
get { return _PUTSINGLETIME; }
set { _PUTSINGLETIME = value; }
}
[ModelDB]
public string PUTSINGLE
{
get { return _PUTSINGLE; }
set { _PUTSINGLE = value; }
}
[ModelDB]
public string PAYTIME
{
get { return _PAYTIME; }
set { _PAYTIME = value; }
}
[ModelDB]
public string PAYRMB
{
get { return _PAYRMB; }
set { _PAYRMB = value; }
}
[ModelDB]
public string PAYUSD
{
get { return _PAYUSD; }
set { _PAYUSD = value; }
}
public string BLTYPE
{
get { return _BLTYPE; }
set { _BLTYPE = value; }
}
public string CUSTNO
{
get { return _CUSTNO; }
set { _CUSTNO = value; }
}
public string CUSTOMERNAME
{
get { return _CUSTOMERNAME; }
set { _CUSTOMERNAME = value; }
}
public string SALE
{
get { return _SALE; }
set { _SALE = value; }
}
public string ACCTYPE
{
get { return _ACCTYPE; }
set { _ACCTYPE = value; }
}
public string ETD
{
get { return _ETD; }
set { _ETD = value; }
}
public string STLDATE
{
get { return _STLDATE; }
set { _STLDATE = value; }
}
public string STLNAME
{
get { return _STLNAME; }
set { _STLNAME = value; }
}
public string CARRIER
{
get { return _CARRIER; }
set { _CARRIER = value; }
}
public string VESSEL
{
get { return _VESSEL; }
set { _VESSEL = value; }
}
public string VOYNO
{
get { return _VOYNO; }
set { _VOYNO = value; }
}
public string PORTLOAD
{
get { return _PORTLOAD; }
set { _PORTLOAD = value; }
}
public string PORTDISCHARGE
{
get { return _PORTDISCHARGE; }
set { _PORTDISCHARGE = value; }
}
public string OP
{
get { return _OP; }
set { _OP = value; }
}
public string CUSTSERVICE
{
get { return _CUSTSERVICE; }
set { _CUSTSERVICE = value; }
}
public string DOC
{
get { return _DOC; }
set { _DOC = value; }
}
public string BLISSUESTATUS
{
get { return _BLISSUESTATUS; }
set { _BLISSUESTATUS = value; }
}
public string TSFD
{
get { return _TSFD; }
set { _TSFD = value; }
}
public string XYTS
{
get { return _XYTS; }
set { _XYTS = value; }
}
public string CQTS
{
get { return _CQTS; }
set { _CQTS = value; }
}
public string SJTS
{
get { return _SJTS; }
set { _SJTS = value; }
}
public string RMBNODR
{
get { return _RMBNODR; }
set { _RMBNODR = value; }
}
public string USDNODR
{
get { return _USDNODR; }
set { _USDNODR = value; }
}
public string TTLNODR
{
get { return _TTLNODR; }
set { _TTLNODR = value; }
}
public string TTLDR
{
get { return _TTLDR; }
set { _TTLDR = value; }
}
public string OPLBNAME
{
get { return _OPLBNAME; }
set { _OPLBNAME = value; }
}
public string SPREMARK
{
get { return _SPREMARK; }
set { _SPREMARK = value; }
}
public string ISVESSELPROVE
{
get { return _ISVESSELPROVE; }
set { _ISVESSELPROVE = value; }
}
public string VESSELPROVETIME
{
get { return _VESSELPROVETIME; }
set { _VESSELPROVETIME = value; }
}
public string VESSELPROVEREMARK
{
get { return _VESSELPROVEREMARK; }
set { _VESSELPROVEREMARK = value; }
}
public string ISQR
{
get { return _ISQR; }
set { _ISQR = value; }
}
public string MNGBLSTATUS
{
get { return _MNGBLSTATUS; }
set { _MNGBLSTATUS = value; }
}
public string CUSTCARGOAFTER
{
get { return _CUSTCARGOAFTER; }
set { _CUSTCARGOAFTER = value; }
}
public string ISCHAOQI
{
get { return _ISCHAOQI; }
set { _ISCHAOQI = value; }
}
public string QRDATE
{
get { return _QRDATE; }
set { _QRDATE = value; }
}
public string QCDATE
{
get { return _QCDATE; }
set { _QCDATE = value; }
}
#endregion
public string ISGAIQIAN { get; set; }
public string ISSUEPLACE { get; set; }
public string SPSQREMARK { get; set; }
public string OPSTATUS { get; set; }
public MsOp_BLISSUEmb ( )
{
TableName = "Op_BLISSUE";
}
override public string GetBillNoFieldName()
{
return "BSNO";
}
/// <summary>
/// 对{ SWB}允许直接签出
///
/// 电放 目放 改为不允许
/// </summary>
/// <returns></returns>
public bool () {
//如果 ISSUETYPE = 电放 目放 SWB 则返回true
//ISSUETYPE == "电放" || ISSUETYPE == "目放" ||
if ( ISSUETYPE == "SWB") {
return true;
}
return false;
}
public bool ()
{
var ttlnodr = TTLNODR;
if (TTLNODR == "") ttlnodr = "0";
if (//System.DateTime.Now >= Convert.ToDateTime(_p.STLDATE) &&
Convert.ToDecimal(ttlnodr) > 0
)
{
return true;
}
return false;
}
public bool ()
{
if (string.IsNullOrWhiteSpace(STLDATE)) {
return false;
}
var ttlnodr = TTLNODR;
if (TTLNODR == "") ttlnodr = "0";
if (System.DateTime.Now >= Convert.ToDateTime(STLDATE) &&
Convert.ToDecimal(ttlnodr) > 0
)
{
return true;
}
return false;
}
}
[JsonObject]
public class MsOp_BLISSUEListmb : ModelObjectBillHead
{
#region 读写属性
private string _GID = string.Empty;
private string _BLSTATUS = string.Empty;
private string _MNGBLSTATUS = string.Empty;
private string _BSNO = string.Empty;
private string _OPNAME = string.Empty;
private string _OPTIME = string.Empty;
private string _REMARK = string.Empty;
private string _DELFLAG = string.Empty;
private string _CUSTOMERNAME = string.Empty;
private string _MBLNO = string.Empty;
private string _HBLNO = string.Empty;
private string _ETD = string.Empty;
private string _VESSEL = string.Empty;
private string _VOYNO = string.Empty;
private string _RMBNODR = string.Empty;
private string _USDNODR = string.Empty;
private string _TTLNODR = string.Empty;
private string _BL_BLSTATUS = string.Empty;
private decimal _TimeMark = 0;
private string _SPREMARK = string.Empty;
private string _CUSTCARGOAFTER = string.Empty;
private string _ISCHAOQI = string.Empty;
private string _STLNAME = string.Empty;
private string _SALE = string.Empty;
private string _SALEDEPT = string.Empty;
private string _SALECORPID = string.Empty;
private string _ISDEPTARREARS = string.Empty;
private string _MAXARREARS = string.Empty;
private string _DEPTTTLDR = string.Empty;
private string _DEPTTTLNODR = string.Empty;
private string _COMMITREMARK = string.Empty;
private string _AUDITOR = string.Empty;
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string BLSTATUS
{
get { return _BLSTATUS; }
set { _BLSTATUS = value; }
}
[ModelDB]
public string MNGBLSTATUS
{
get { return _MNGBLSTATUS; }
set { _MNGBLSTATUS = value; }
}
[ModelDB]
public string BSNO
{
get { return _BSNO; }
set { _BSNO = value; }
}
[ModelDB]
public string OPNAME
{
get { return _OPNAME; }
set { _OPNAME = value; }
}
[ModelDB]
public string OPTIME
{
get { return _OPTIME; }
set { _OPTIME = value; }
}
[ModelDB]
public string REMARK
{
get { return _REMARK; }
set { _REMARK = value; }
}
[ModelDB]
public string DELFLAG
{
get { return _DELFLAG; }
set { _DELFLAG = value; }
}
[ModelDB]
public string CUSTOMERNAME
{
get { return _CUSTOMERNAME; }
set { _CUSTOMERNAME = value; }
}
[ModelDB]
public string CUSTCARGOAFTER
{
get { return _CUSTCARGOAFTER; }
set { _CUSTCARGOAFTER = value; }
}
[ModelDB]
public string STLNAME
{
get { return _STLNAME; }
set { _STLNAME = value; }
}
[ModelDB]
public string SALE
{
get { return _SALE; }
set { _SALE = value; }
}
[ModelDB]
public string SALEDEPT
{
get { return _SALEDEPT; }
set { _SALEDEPT = value; }
}
[ModelDB]
public string SALECORPID
{
get { return _SALECORPID; }
set { _SALECORPID = value; }
}
[ModelDB]
public string ISDEPTARREARS
{
get { return _ISDEPTARREARS; }
set { _ISDEPTARREARS = value; }
}
public string MBLNO
{
get { return _MBLNO; }
set { _MBLNO = value; }
}
public string HBLNO
{
get { return _HBLNO; }
set { _HBLNO = value; }
}
public string ETD
{
get { return _ETD; }
set { _ETD = value; }
}
public string VESSEL
{
get { return _VESSEL; }
set { _VESSEL = value; }
}
public string VOYNO
{
get { return _VOYNO; }
set { _VOYNO = value; }
}
public string RMBNODR
{
get { return _RMBNODR; }
set { _RMBNODR = value; }
}
public string USDNODR
{
get { return _USDNODR; }
set { _USDNODR = value; }
}
public string TTLNODR
{
get { return _TTLNODR; }
set { _TTLNODR = value; }
}
public string BL_BLSTATUS
{
get { return _BL_BLSTATUS; }
set { _BL_BLSTATUS = value; }
}
public decimal TimeMark
{
get { return _TimeMark; }
set { _TimeMark = value; }
}
public string SPREMARK
{
get { return _SPREMARK; }
set { _SPREMARK = value; }
}
public string MAXARREARS
{
get { return _MAXARREARS; }
set { _MAXARREARS = value; }
}
public string DEPTTTLNODR
{
get { return _DEPTTTLNODR; }
set { _DEPTTTLNODR = value; }
}
public string DEPTTTLDR
{
get { return _DEPTTTLDR; }
set { _DEPTTTLDR = value; }
}
[ModelDB]
public string COMMITREMARK
{
get { return _COMMITREMARK; }
set { _COMMITREMARK = value; }
}
[ModelDB]
public string ISCHAOQI
{
get { return _ISCHAOQI; }
set { _ISCHAOQI = value; }
}
public string OP { get; set; }
[ModelDB]
public string AUDITOR
{
get { return _AUDITOR; }
set { _AUDITOR = value; }
}
public string RMBNODR_ALL { get; set; }
public string USDNODR_ALL { get; set; }
public string TTLNODR_ALL { get; set; }
#endregion
public MsOp_BLISSUEListmb ( )
{
TableName = "Op_BLISSUEList";
}
override public string GetBillNoFieldName ( )
{
return "GID";
}
}
[JsonObject]
public class MsOp_BLISSUEList_Detailmb : ModelObjectBillBody
{
#region 读写属性
private string _GID = string.Empty;
private string _LINKGID = string.Empty;
private string _BSNO = string.Empty;
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string LINKGID
{
get { return _LINKGID; }
set { _LINKGID = value; }
}
[ModelDB]
public string BSNO
{
get { return _BSNO; }
set { _BSNO = value; }
}
#endregion
public MsOp_BLISSUEList_Detailmb ( )
{
TableName = "Op_BLISSUEList_Detail";
}
override public string GetBillNoFieldName ( )
{
return "LINKGID";
}
}
[JsonObject]
public class BLINFOLIST : ModelObjectBillBody
{
private string _InfoText = string.Empty;
private string _RMBNODR ="";
private string _USDNODR = "";
private string _TTLNODR = "";
public string INFOTEXT //用于显示业务信息文本
{
get { return _InfoText; }
set { _InfoText = value; }
}
public string RMBNODR
{
get { return _RMBNODR; }
set { _RMBNODR = value; }
}
public string USDNODR
{
get { return _USDNODR; }
set { _USDNODR = value; }
}
public string TTLNODR
{
get { return _TTLNODR; }
set { _TTLNODR = value; }
}
public string RMBNODR_YQC { get; set; }
public string USDNODR_YQC { get; set; }
public string TTLNODR_YQC { get; set; }
public string RMBNODR_WQC { get; set; }
public string USDNODR_WQC { get; set; }
public string TTLNODR_WQC { get; set; }
}
[JsonObject]
public class BLINFOmb : ModelObjectBillBody
{
private string _InfoText = string.Empty;
private string _InACCDATE = string.Empty;
private string _QF = string.Empty;
private string _XYED = string.Empty;
private string _HXYW = string.Empty;
private string _CanISSUE = string.Empty;
private decimal _RMBNODR = 0M;
private decimal _USDNODR = 0M;
private decimal _TTLNODR = 0M;
private decimal _RMBNODR_All = 0M;
private decimal _USDNODR_All = 0M;
private decimal _TTLNODR_All = 0M;
private decimal _ZLRMBNODR_All = 0M;
private decimal _ZLUSDNODR_All = 0M;
private decimal _ZLTTLNODR_All = 0M;
private string _STLDATE = string.Empty;
private string _ = string.Empty;
private string _ = string.Empty;
private string _ = string.Empty;
private string _ = string.Empty;
private string _ = string.Empty;
private string _ = string.Empty;
private string _IS = string.Empty;
private string _IS = string.Empty;
private string _IS = string.Empty;
private string _IS = string.Empty;
private string _NUMTYPE = string.Empty;
public string NUMTYPE //用于表示此条数据为 total 提单签出 未签出 //total的一定有 提单签出/未签出 不是一定两条都有
{
get { return _NUMTYPE; }
set { _NUMTYPE = value; }
}
[ModelDB]
public string InfoText //用于显示业务信息文本
{
get { return _InfoText; }
set { _InfoText = value; }
}
[ModelDB]
public string InACCDATE //是否在帐期以内
{
get { return _InACCDATE; }
set { _InACCDATE = value; }
}
[ModelDB]
public string QF //是否欠费
{
get { return _QF; }
set { _QF = value; }
}
[ModelDB]
public string XYED //是否在信用额度内
{
get { return _XYED; }
set { _XYED = value; }
}
[ModelDB]
public string HXYW //是否有后续业务
{
get { return _HXYW; }
set { _HXYW = value; }
}
[ModelDB]
public string CanISSUE //是否允许放单
{
get { return _CanISSUE; }
set { _CanISSUE = value; }
}
public decimal RMBNODR
{
get { return _RMBNODR; }
set { _RMBNODR = value; }
}
public decimal USDNODR
{
get { return _USDNODR; }
set { _USDNODR = value; }
}
public decimal TTLNODR
{
get { return _TTLNODR; }
set { _TTLNODR = value; }
}
public decimal RMBNODR_All
{
get { return _RMBNODR_All; }
set { _RMBNODR_All = value; }
}
public decimal USDNODR_All
{
get { return _USDNODR_All; }
set { _USDNODR_All = value; }
}
public decimal TTLNODR_All
{
get { return _TTLNODR_All; }
set { _TTLNODR_All = value; }
}
public decimal ZLRMBNODR_All
{
get { return _ZLRMBNODR_All; }
set { _ZLRMBNODR_All = value; }
}
public decimal ZLUSDNODR_All
{
get { return _ZLUSDNODR_All; }
set { _ZLUSDNODR_All = value; }
}
public decimal ZLTTLNODR_All
{
get { return _ZLTTLNODR_All; }
set { _ZLTTLNODR_All = value; }
}
public string STLDATE
{
get { return _STLDATE; }
set { _STLDATE = value; }
}
public string
{
get { return _; }
set { _ = value; }
}
public string
{
get { return _; }
set { _ = value; }
}
public string
{
get { return _; }
set { _ = value; }
}
public string
{
get { return _; }
set { _ = value; }
}
public string
{
get { return _; }
set { _ = value; }
}
public string
{
get { return _; }
set { _ = value; }
}
public string IS
{
get { return _IS; }
set { _IS = value; }
}
public string IS
{
get { return _IS; }
set { _IS = value; }
}
public string IS
{
get { return _IS; }
set { _IS = value; }
}
public string IS
{
get { return _IS; }
set { _IS = value; }
}
}
public struct BLSTATUSTYPE
{
public const string = "提单签入";
public const string = "扣单";
public const string = "可放单";
public const string = "提单签出";
public const string = "已放货";
public const string = "取消扣单";
/// <summary>
/// 是否可以撤销签入
/// </summary>
/// <param name="BLSTATUS"></param>
/// <returns></returns>
public static bool CanUnQR(string BLSTATUS)
{
if (BLSTATUS == BLSTATUSTYPE. || BLSTATUS == BLSTATUSTYPE. )
{
return true;
}
else
{
return false;
}
}
/// <summary>
/// 不需要执行放单通知动作 可放单
/// </summary>
/// <param name="BLSTATUS"></param>
/// <returns></returns>
public static bool NoNeedFangDan(string BLSTATUS)
{
if ( BLSTATUS == BLSTATUSTYPE. || BLSTATUS == BLSTATUSTYPE.)
{//BLSTATUS == BLSTATUSTYPE.提单签出||BLSTATUS == BLSTATUSTYPE.提单签入 ||
return true;
}
else
{
return false;
}
}
public static bool CanUNFDTZ(string BLSTATUS)
{
if (BLSTATUS == BLSTATUSTYPE. || BLSTATUS == BLSTATUSTYPE.)
{//BLSTATUS == BLSTATUSTYPE.提单签入 ||
return true;
}
else
{
return false;
}
}
public static bool (string BLSTATUS) {
if (BLSTATUS == BLSTATUSTYPE. || BLSTATUS == BLSTATUSTYPE.)
{
return true;
}
else
{
return false;
}
}
}
}