|
|
@ -487,11 +487,12 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeAutoDuiDAL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//20221122 增加逻辑 如果是已退舱的业务 跳过
|
|
|
|
//20221122 增加逻辑 如果是已退舱的业务 跳过
|
|
|
|
var currbs = cdc.v_op_bs.Where(x => x.MBLNO == _mblno && (x.ISCANCEL == 1 || x.ISCANCEL == 2 || x.ISCANCEL == 4)).ToList();
|
|
|
|
//20221128 改为显示但不对账 在remake当中实现
|
|
|
|
if (currbs != null && currbs.Count > 0)
|
|
|
|
//var currbs = cdc.v_op_bs.Where(x => x.MBLNO == _mblno && (x.ISCANCEL == 1 || x.ISCANCEL == 2 || x.ISCANCEL == 4)).ToList();
|
|
|
|
{
|
|
|
|
//if (currbs != null && currbs.Count > 0)
|
|
|
|
continue;
|
|
|
|
//{
|
|
|
|
}
|
|
|
|
// continue;
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
_Detail.MBLNO = GetMBLNO(_Detail.B_MBLNO);
|
|
|
|
_Detail.MBLNO = GetMBLNO(_Detail.B_MBLNO);
|
|
|
|
var RMBAMOUNT = Convert.ToDecimal(row[_p + 1]);
|
|
|
|
var RMBAMOUNT = Convert.ToDecimal(row[_p + 1]);
|
|
|
@ -796,6 +797,9 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeAutoDuiDAL
|
|
|
|
var LocalDetailList = GetLocalList(head.CUSTOMERNAME,head.GID,head.FEETYPE,head.HAVEDEBIT,head.FEEDC,head.CURR,head.FSTATUS,head.FEEDUITYPE,head.FEEDUITYPECONDIT,head.SALECORP);
|
|
|
|
var LocalDetailList = GetLocalList(head.CUSTOMERNAME,head.GID,head.FEETYPE,head.HAVEDEBIT,head.FEEDC,head.CURR,head.FSTATUS,head.FEEDUITYPE,head.FEEDUITYPECONDIT,head.SALECORP);
|
|
|
|
//var LocalDetailList = DetailList;
|
|
|
|
//var LocalDetailList = DetailList;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var cdc = new CommonDataContext();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//var result = new DBResult();
|
|
|
|
//var result = new DBResult();
|
|
|
|
Database db = DatabaseFactory.CreateDatabase();
|
|
|
|
Database db = DatabaseFactory.CreateDatabase();
|
|
|
|
using (DbConnection connection = db.CreateConnection())
|
|
|
|
using (DbConnection connection = db.CreateConnection())
|
|
|
@ -808,6 +812,17 @@ namespace DSWeb.MvcShipping.DAL.MsChFeeAutoDuiDAL
|
|
|
|
|
|
|
|
|
|
|
|
foreach (CH_FEE_AutoDuiDetailmb _D in DetailList)
|
|
|
|
foreach (CH_FEE_AutoDuiDetailmb _D in DetailList)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
var currbs = cdc.v_op_bs.Where(x => x.MBLNO == _D.MBLNO && (x.ISCANCEL == 1 || x.ISCANCEL == 2 || x.ISCANCEL == 4)).ToList();
|
|
|
|
|
|
|
|
var currbs_Cando = cdc.v_op_bs.Where(x => x.MBLNO == _D.MBLNO && (x.ISCANCEL == null || x.ISCANCEL == 0 )).ToList();
|
|
|
|
|
|
|
|
if (currbs != null && currbs.Count > 0 && (currbs_Cando==null || currbs_Cando.Count==0))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
//增加判断 如果
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_D.REMARK2 = "该业务已退舱";
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_D.B_BSNO == "")
|
|
|
|
if (_D.B_BSNO == "")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_D.REMARK2 = "我方无此提单号";
|
|
|
|
_D.REMARK2 = "我方无此提单号";
|
|
|
|