|
|
@ -52,8 +52,12 @@ namespace DSWeb.MvcShipping.DAL.MsOpSubSeaOrderDAL
|
|
|
|
}
|
|
|
|
}
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.COMPANYID) as COMPANY ");
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.COMPANYID) as COMPANY ");
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.AGENTID) as AGENT ");
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.AGENTID) as AGENT ");
|
|
|
|
|
|
|
|
strSql.Append(",dbo.F_GetBillDrFeeStatus(B.ORDNO) DRFEESTATUS");
|
|
|
|
|
|
|
|
strSql.Append(",dbo.F_GetBillCrFeeStatus(B.ORDNO) CRFEESTATUS");
|
|
|
|
|
|
|
|
|
|
|
|
strSql.Append(" from op_sub_seaorder B");
|
|
|
|
strSql.Append(" from op_sub_seaorder B");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(strCondition))
|
|
|
|
if (!string.IsNullOrEmpty(strCondition))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
strSql.Append(" where " + strCondition);
|
|
|
|
strSql.Append(" where " + strCondition);
|
|
|
@ -103,8 +107,12 @@ namespace DSWeb.MvcShipping.DAL.MsOpSubSeaOrderDAL
|
|
|
|
}
|
|
|
|
}
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.COMPANYID) as COMPANY ");
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.COMPANYID) as COMPANY ");
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.AGENTID) as AGENT ");
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.AGENTID) as AGENT ");
|
|
|
|
|
|
|
|
strSql.Append(",dbo.F_GetBillDrFeeStatus(B.ORDNO) DRFEESTATUS");
|
|
|
|
|
|
|
|
strSql.Append(",dbo.F_GetBillCrFeeStatus(B.ORDNO) CRFEESTATUS");
|
|
|
|
|
|
|
|
|
|
|
|
strSql.Append(" from op_sub_seaorder B");
|
|
|
|
strSql.Append(" from op_sub_seaorder B");
|
|
|
|
|
|
|
|
strSql.Append(" LEFT JOIN v_op_gain_dr_INV I ON (I.BSNO=B.ORDNO) ");
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(strCondition))
|
|
|
|
if (!string.IsNullOrEmpty(strCondition))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
strSql.Append(" where " + strCondition);
|
|
|
|
strSql.Append(" where " + strCondition);
|
|
|
@ -133,6 +141,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSubSeaOrderDAL
|
|
|
|
strSql.Append(",REMARK,AUDITOPERATOR,AUDITDATE,DPAGE,DLABEL,LINKMAN,BILLTYPE,COMPANYID,AGENTID,SPCHARGE");
|
|
|
|
strSql.Append(",REMARK,AUDITOPERATOR,AUDITDATE,DPAGE,DLABEL,LINKMAN,BILLTYPE,COMPANYID,AGENTID,SPCHARGE");
|
|
|
|
strSql.Append(",SHIPPERCODE,SHIPPERCOUNTRY,SHIPPERTEL,CONSIGNEECODE,CONSIGNEECOUNTRY,CONSIGNEETEL,NOTIFYPARTYCODE,NOTIFYPARTYCOUNTRY,NOTIFYPARTYTEL");
|
|
|
|
strSql.Append(",SHIPPERCODE,SHIPPERCOUNTRY,SHIPPERTEL,CONSIGNEECODE,CONSIGNEECOUNTRY,CONSIGNEETEL,NOTIFYPARTYCODE,NOTIFYPARTYCOUNTRY,NOTIFYPARTYTEL");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ortype == 1)
|
|
|
|
if (ortype == 1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
strSql.Append(",(CASE ORSTATUS WHEN '0' THEN 'RECEIVE' WHEN '1' THEN 'POSTED' WHEN '2' THEN 'REJECTED' else 'ENTRY' end) as ORSTATUSREF ");
|
|
|
|
strSql.Append(",(CASE ORSTATUS WHEN '0' THEN 'RECEIVE' WHEN '1' THEN 'POSTED' WHEN '2' THEN 'REJECTED' else 'ENTRY' end) as ORSTATUSREF ");
|
|
|
@ -144,8 +153,12 @@ namespace DSWeb.MvcShipping.DAL.MsOpSubSeaOrderDAL
|
|
|
|
}
|
|
|
|
}
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.COMPANYID ) as COMPANY ");
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.COMPANYID ) as COMPANY ");
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.AGENTID ) as AGENT ");
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.AGENTID ) as AGENT ");
|
|
|
|
|
|
|
|
strSql.Append(",dbo.F_GetBillDrFeeStatus(B.ORDNO) DRFEESTATUS");
|
|
|
|
|
|
|
|
strSql.Append(",dbo.F_GetBillCrFeeStatus(B.ORDNO) CRFEESTATUS");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
strSql.Append(" from op_sub_seaorder B");
|
|
|
|
strSql.Append(" from op_sub_seaorder B");
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(condition))
|
|
|
|
if (!string.IsNullOrEmpty(condition))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
strSql.Append(" where " + condition);
|
|
|
|
strSql.Append(" where " + condition);
|
|
|
@ -245,6 +258,9 @@ namespace DSWeb.MvcShipping.DAL.MsOpSubSeaOrderDAL
|
|
|
|
data.NOTIFYPARTYCOUNTRY = Convert.ToString(reader["NOTIFYPARTYCOUNTRY"]);//卸货代理
|
|
|
|
data.NOTIFYPARTYCOUNTRY = Convert.ToString(reader["NOTIFYPARTYCOUNTRY"]);//卸货代理
|
|
|
|
data.NOTIFYPARTYTEL = Convert.ToString(reader["NOTIFYPARTYTEL"]);//卸货代理
|
|
|
|
data.NOTIFYPARTYTEL = Convert.ToString(reader["NOTIFYPARTYTEL"]);//卸货代理
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data.DRFEESTATUS = getfeestatus(Convert.ToString(reader["DRFEESTATUS"]));
|
|
|
|
|
|
|
|
data.CRFEESTATUS = getfeestatus(Convert.ToString(reader["CRFEESTATUS"]));
|
|
|
|
|
|
|
|
|
|
|
|
if (reader["SPCHARGE"] != DBNull.Value)
|
|
|
|
if (reader["SPCHARGE"] != DBNull.Value)
|
|
|
|
data.SPCHARGE = Convert.ToBoolean(reader["SPCHARGE"]);
|
|
|
|
data.SPCHARGE = Convert.ToBoolean(reader["SPCHARGE"]);
|
|
|
|
|
|
|
|
|
|
|
@ -255,8 +271,81 @@ namespace DSWeb.MvcShipping.DAL.MsOpSubSeaOrderDAL
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return headList;
|
|
|
|
return headList;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static string getfeestatus(string feestatusint)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var result = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (feestatusint == "0:")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "审核通过";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (feestatusint == "1:")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "录入状态";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (feestatusint == "2:")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "提交审核";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (feestatusint == "8:")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "部分结算";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (feestatusint == "9:")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "结算完毕";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (feestatusint == "")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "未录入";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (feestatusint == "3:")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "申请修改";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (feestatusint == "4:")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "申请删除";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (feestatusint.IndexOf("6:") > -1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "驳回提交";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (feestatusint.IndexOf("7:") > -1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "驳回申请";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (feestatusint.IndexOf("1:") > -1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "部分录入";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (feestatusint.IndexOf("2:") > -1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "部分提交";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (feestatusint.IndexOf("9:") > -1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "部分结算";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (feestatusint.IndexOf("8:") > -1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "部分结算";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (feestatusint.IndexOf("0:") > -1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "部分审核";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (feestatusint.IndexOf("2:") > -1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "部分提交";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region 集装箱
|
|
|
|
#region 集装箱
|
|
|
|
static public List<MsOpSubSeaOrderCtn> GetBodyList(string strCondition)
|
|
|
|
static public List<MsOpSubSeaOrderCtn> GetBodyList(string strCondition)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1993,6 +2082,10 @@ namespace DSWeb.MvcShipping.DAL.MsOpSubSeaOrderDAL
|
|
|
|
strSql.Append(",(CASE ORSTATUS WHEN '0' THEN '引入' WHEN '1' THEN '提交' WHEN '2' THEN '驳回' else '录入' end) as ORSTATUSREF ");
|
|
|
|
strSql.Append(",(CASE ORSTATUS WHEN '0' THEN '引入' WHEN '1' THEN '提交' WHEN '2' THEN '驳回' else '录入' end) as ORSTATUSREF ");
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.COMPANYID ) as COMPANY ");
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.COMPANYID ) as COMPANY ");
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.AGENTID) as AGENT ");
|
|
|
|
strSql.Append(",(SELECT [NAME] from company where GID=B.AGENTID) as AGENT ");
|
|
|
|
|
|
|
|
strSql.Append(",'' DRFEESTATUS");
|
|
|
|
|
|
|
|
strSql.Append(",'' CRFEESTATUS");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
strSql.Append(" from op_sub_seaorder B");
|
|
|
|
strSql.Append(" from op_sub_seaorder B");
|
|
|
|
if (!string.IsNullOrEmpty(strCondition))
|
|
|
|
if (!string.IsNullOrEmpty(strCondition))
|
|
|
|
{
|
|
|
|
{
|
|
|
|