DS7_JinGang
dengyu 1 year ago
parent 4ec392f719
commit 6b51dffe96

@ -17,6 +17,7 @@
<add key="DS7connStr" value="Data Source=115.29.138.217,18866;Initial Catalog=ShippingWeb;Persist Security Info=True;User ID=sa;Password=Asde875621" /> <add key="DS7connStr" value="Data Source=115.29.138.217,18866;Initial Catalog=ShippingWeb;Persist Security Info=True;User ID=sa;Password=Asde875621" />
<add key="OAconnStr" value="Data Source=117.78.44.211,1433;Initial Catalog=ecology;Persist Security Info=True;User ID=OA01;Password=oa123456@" /> <add key="OAconnStr" value="Data Source=117.78.44.211,1433;Initial Catalog=ecology;Persist Security Info=True;User ID=OA01;Password=oa123456@" />
<add key="DS7URL" value="http://115.29.138.217:8090/Account/Chfee_payapplication/AuditListAcceptOA" /> <add key="DS7URL" value="http://115.29.138.217:8090/Account/Chfee_payapplication/AuditListAcceptOA" />
<add key="workflowid" value="227" />
--> -->
<!-- 服务器地址 金港定时读取报关业务--> <!-- 服务器地址 金港定时读取报关业务-->
<add key="DS7connStr" value="Data Source=47.104.253.169,62356;Initial Catalog=ShippingWeb_JGZHWL;Persist Security Info=True;User ID=sa;Password=Ds20040201" /> <add key="DS7connStr" value="Data Source=47.104.253.169,62356;Initial Catalog=ShippingWeb_JGZHWL;Persist Security Info=True;User ID=sa;Password=Ds20040201" />

@ -15,6 +15,7 @@
<Deterministic>true</Deterministic> <Deterministic>true</Deterministic>
<NuGetPackageImportStamp> <NuGetPackageImportStamp>
</NuGetPackageImportStamp> </NuGetPackageImportStamp>
<IsWebBootstrapper>false</IsWebBootstrapper>
<PublishUrl>publish\</PublishUrl> <PublishUrl>publish\</PublishUrl>
<Install>true</Install> <Install>true</Install>
<InstallFrom>Disk</InstallFrom> <InstallFrom>Disk</InstallFrom>
@ -27,7 +28,6 @@
<MapFileExtensions>true</MapFileExtensions> <MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision> <ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust> <UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled> <BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup> </PropertyGroup>

@ -31,7 +31,7 @@ namespace DSWeb.Service.Output
string OAconnStr = ConfigurationManager.AppSettings["OAconnStr"]; string OAconnStr = ConfigurationManager.AppSettings["OAconnStr"];
string DS7connStr = ConfigurationManager.AppSettings["DS7connStr"]; string DS7connStr = ConfigurationManager.AppSettings["DS7connStr"];
string DS7URL = ConfigurationManager.AppSettings["DS7URL"]; string DS7URL = ConfigurationManager.AppSettings["DS7URL"];
string workflowid = ConfigurationManager.AppSettings["workflowid"];
public void Execute(IJobExecutionContext context) public void Execute(IJobExecutionContext context)
{ {
@ -94,8 +94,9 @@ namespace DSWeb.Service.Output
log.Debug(idList.ToList()); log.Debug(idList.ToList());
var _workflowid = Convert.ToInt32(workflowid);
//从dc1中寻找这些id的业务的审核结果 //从dc1中寻找这些id的业务的审核结果
var List = dc1.view_pjrequestbas.Where(x => x.workflowid == 79 && x.currentnodetype == "3" && idList.Contains(x.requestid.ToString())).ToList(); var List = dc1.view_pjrequestbas.Where(x => x.workflowid == _workflowid && x.currentnodetype == "3" && idList.Contains(x.requestid.ToString())).ToList();
//var AuditGidlistStr = ""; //var AuditGidlistStr = "";

@ -232,6 +232,7 @@ namespace DSWeb.SoftMng.BLL {
//model.ApplyType = string.IsNullOrWhiteSpace(dr["ApplyType"].ToString()) ? 1 : (int)dr["ApplyType"]; //model.ApplyType = string.IsNullOrWhiteSpace(dr["ApplyType"].ToString()) ? 1 : (int)dr["ApplyType"];
if (dr["ApplyType"].ToString() != "") if (dr["ApplyType"].ToString() != "")
model.ApplyType = int.Parse(dr["ApplyType"].ToString()); model.ApplyType = int.Parse(dr["ApplyType"].ToString());
//model.ApplyType_Text = dr["ApplyType_Text"].ToString(); //model.ApplyType_Text = dr["ApplyType_Text"].ToString();
model.NoteS= dr["NoteS"].ToString(); model.NoteS= dr["NoteS"].ToString();
model.MarkNo= dr["MarkNo"].ToString(); model.MarkNo= dr["MarkNo"].ToString();

@ -403,7 +403,7 @@ namespace DSWeb.SoftMng.Controllers
} }
/// <summary> /// <summary>
/// 对应 单一窗口 提交 按钮 /// 对应 单一窗口 提交、复核 按钮
/// </summary> /// </summary>
/// <param name="billGID"></param> /// <param name="billGID"></param>
/// <param name="billState"></param> /// <param name="billState"></param>
@ -1417,6 +1417,10 @@ namespace DSWeb.SoftMng.Controllers
//用declist.FirstQty 的合计 与 dechead.NetWt 比对 如不一致则提示 //用declist.FirstQty 的合计 与 dechead.NetWt 比对 如不一致则提示
//头表没有金额合计 放弃 //头表没有金额合计 放弃
} }
//if (checktype == "原产国") {
// //对比
//}
return result; return result;

@ -20,6 +20,7 @@ using HcUtility.Core;
using DSWeb.SoftMng.BLL; using DSWeb.SoftMng.BLL;
using System.Xml.Serialization; using System.Xml.Serialization;
using System.IO; using System.IO;
using DSWeb.Areas.Import.DAL.audit;
// ReSharper disable once CheckNamespace // ReSharper disable once CheckNamespace
namespace DSWeb.SoftMng.DAL namespace DSWeb.SoftMng.DAL
{ {
@ -176,6 +177,7 @@ namespace DSWeb.SoftMng.DAL
new SqlParameter("@BillState", SqlDbType.Char,1), new SqlParameter("@BillState", SqlDbType.Char,1),
new SqlParameter("@ClientSeqNo", SqlDbType.NVarChar,18), new SqlParameter("@ClientSeqNo", SqlDbType.NVarChar,18),
new SqlParameter("@ApplyType", SqlDbType.TinyInt,4) new SqlParameter("@ApplyType", SqlDbType.TinyInt,4)
}; };
@ -302,6 +304,7 @@ namespace DSWeb.SoftMng.DAL
parameters[120].Value = model.BillState ?? (Object)DBNull.Value; parameters[120].Value = model.BillState ?? (Object)DBNull.Value;
parameters[121].Value = model.ClientSeqNo ?? (Object)DBNull.Value; parameters[121].Value = model.ClientSeqNo ?? (Object)DBNull.Value;
parameters[122].Value = model.ApplyType ?? (Object)DBNull.Value; parameters[122].Value = model.ApplyType ?? (Object)DBNull.Value;
//parameters[123].Value = model.ApplyType_Text ?? (Object)DBNull.Value; //parameters[123].Value = model.ApplyType_Text ?? (Object)DBNull.Value;
return DbHelperSQL.ExecuteSql(strSql.ToString(),parameters); return DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
} }
@ -311,12 +314,24 @@ namespace DSWeb.SoftMng.DAL
/// </summary> /// </summary>
public int UpdateBillState(string gid,string state,string reason) public int UpdateBillState(string gid,string state,string reason)
{ {
StringBuilder strSql = new StringBuilder(); /*
this.storeBillState.add({ "FSTATUS": "N", "NAME": "新建" });
this.storeBillState.add({ "FSTATUS": "S", "NAME": "审核" });
this.storeBillState.add({ "FSTATUS": "P", "NAME": "复核" });
this.storeBillState.add({ "FSTATUS": "L", "NAME": "已上传" });
this.storeBillState.add({ "FSTATUS": "R", "NAME": "驳回提交" });
this.storeBillState.add({ "FSTATUS": "", "NAME": "全部" });
*/
StringBuilder strSql = new StringBuilder();
strSql.Append("update DecHead set "); strSql.Append("update DecHead set ");
strSql.Append(" BillState = '" + state + "'"); strSql.Append(" BillState = '" + state + "'");
if (state=="R") if (state=="R")
strSql.Append(",RejectReason='" + reason + "'"); strSql.Append(",RejectReason='" + reason + "'");
if (state == "P")//20230831 如果复核完成 增加记录复核时间
strSql.Append(",AuditDate=getdate()");
strSql.Append(" where GID = '"+gid+"' "); strSql.Append(" where GID = '"+gid+"' ");
return DbHelperSQL.ExecuteSql(strSql.ToString()); return DbHelperSQL.ExecuteSql(strSql.ToString());
} }
@ -451,6 +466,7 @@ namespace DSWeb.SoftMng.DAL
strSql.Append(" Insp_cert = @Insp_cert,"); strSql.Append(" Insp_cert = @Insp_cert,");
strSql.Append(" BillState = @BillState"); strSql.Append(" BillState = @BillState");
strSql.Append(" ,ApplyType = @ApplyType"); strSql.Append(" ,ApplyType = @ApplyType");
//strSql.Append(" ApplyType_Text = @ApplyType_Text"); //strSql.Append(" ApplyType_Text = @ApplyType_Text");
strSql.Append(" where GID=@GID "); strSql.Append(" where GID=@GID ");
SqlParameter[] parameters = { SqlParameter[] parameters = {
@ -700,6 +716,7 @@ namespace DSWeb.SoftMng.DAL
parameters[119].Value = model.Insp_cert??(Object)DBNull.Value; parameters[119].Value = model.Insp_cert??(Object)DBNull.Value;
parameters[120].Value = model.BillState ?? (Object)DBNull.Value; parameters[120].Value = model.BillState ?? (Object)DBNull.Value;
parameters[121].Value = model.ApplyType ?? (Object)DBNull.Value; parameters[121].Value = model.ApplyType ?? (Object)DBNull.Value;
//parameters[122].Value = model.ApplyType_Text ?? (Object)DBNull.Value; //parameters[122].Value = model.ApplyType_Text ?? (Object)DBNull.Value;
return DbHelperSQL.ExecuteSql(strSql.ToString(),parameters); return DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
} }
@ -833,7 +850,7 @@ namespace DSWeb.SoftMng.DAL
} }
*/ */
var strSql = new StringBuilder(); var strSql = new StringBuilder();
strSql.Append("select d.GID, d.BSNO,d.IEFlag,d.Type,d.EdiId,d.Risk,d.CopCode,d.CopName,d.PDate,d.TypistNo,d.InputerName,d.PartenerID,d.TgdNo, d.DataSource,d.DeclTrnRel,d.ChkSurety,d.CopCodeScc,d.CheckFlow,d.TaxAaminMark,d.EntyPortCode,d.BLNo,d.BillType,d.ApprNo,d.CustomMaster, d.CustomMaster_Text,d.AgentStatus,d.SeqNo,d.PreEntryId,d.EntryId,d.IEPort,d.IEPort_Text,d.ManualNo,d.ContrNo,d.IEDate,d.DDate,d.TradeCoScc, d.TradeCode,d.TradeCiqCode,d.TradeName,d.OverseasConsignorCode,d.OverseasConsignorCname,d.OverseasConsignorEname,d.OverseasConsignorAddr, d.OverseasConsigneeCode,d.OverseasConsigneeEname,d.DomesticConsigneeEname,d.EdiRemark2,d.EdiRemark,d.OwnerCodeScc,d.OwnerCode,d. OwnerCiqCode,d.OwnerName,d.AgentCodeScc,d.AgentCode,d.DeclCiqCode,d.AgentName,d.TrafMode,d.TrafMode_Text,d.TrafName,d.NativeVoyageNo, d.BillNo,d.TradeMode,d.TradeMode_Text,d.CutMode,d.CutMode_Text,d.LicenseNo,d.TradeCountry,d.TradeCountry_Text,d.DistinatePort, d.DistinatePort_Text,d.TransMode,d.TransMode_Text,d.FeeMark,d.FeeRate,d.FeeCurr,d.FeeCurr_Text,d.InsurMark,d.InsurRate,d.InsurCurr, d.InsurCurr_Text,d.OtherMark,d.OtherRate,d.OtherCurr,d.OtherCurr_Text,d.PackNo,d.WrapType,d.WrapType_Text,d.GrossWet,d.NetWt,d.TradeAreaCode,d.TradeAreaCode_Text,d.ContaCount,d.AttaDocuCdstr,d.GoodsPlace,d.DespPortCode,d.DespPortCode_Text,d.EntryType,d.EntryType_Text,d.NoteS, d.MarkNo,d.OrgCode,d.OrgCode_Text,d.VsaOrgCode,d.VsaOrgCode_Text,d.InspOrgCode,d.InspOrgCode_Text,d.PurpOrgCode,d.PurpOrgCode_Text, d.CorrelationNo,d.CorrelationReasonFlag,d.CorrelationReasonFlag_Text,d.DespDate,d.CmplDschrgDt,d.OrigBoxFlag,d.SpecDeclFlag, d.SpecDeclFlag_Text,d.PromiseItmes,d.DeclareName,d.NoOtherPack,d.Insp_cert,d.BillState,o.CUSTNO,o.CUSTOMNO,o.MBLNO,o.CUSTOMERNAME,o.VESSEL,o.VOYNO,o.ETD,o.ETA ,d.ClientSeqNo ,d.ApplyType "); strSql.Append("select d.GID, d.BSNO,d.IEFlag,d.Type,d.EdiId,d.Risk,d.CopCode,d.CopName,d.PDate,d.TypistNo,d.InputerName,d.PartenerID,d.TgdNo, d.DataSource,d.DeclTrnRel,d.ChkSurety,d.CopCodeScc,d.CheckFlow,d.TaxAaminMark,d.EntyPortCode,d.BLNo,d.BillType,d.ApprNo,d.CustomMaster, d.CustomMaster_Text,d.AgentStatus,d.SeqNo,d.PreEntryId,d.EntryId,d.IEPort,d.IEPort_Text,d.ManualNo,d.ContrNo,d.IEDate,d.DDate,d.TradeCoScc, d.TradeCode,d.TradeCiqCode,d.TradeName,d.OverseasConsignorCode,d.OverseasConsignorCname,d.OverseasConsignorEname,d.OverseasConsignorAddr, d.OverseasConsigneeCode,d.OverseasConsigneeEname,d.DomesticConsigneeEname,d.EdiRemark2,d.EdiRemark,d.OwnerCodeScc,d.OwnerCode,d. OwnerCiqCode,d.OwnerName,d.AgentCodeScc,d.AgentCode,d.DeclCiqCode,d.AgentName,d.TrafMode,d.TrafMode_Text,d.TrafName,d.NativeVoyageNo, d.BillNo,d.TradeMode,d.TradeMode_Text,d.CutMode,d.CutMode_Text,d.LicenseNo,d.TradeCountry,d.TradeCountry_Text,d.DistinatePort, d.DistinatePort_Text,d.TransMode,d.TransMode_Text,d.FeeMark,d.FeeRate,d.FeeCurr,d.FeeCurr_Text,d.InsurMark,d.InsurRate,d.InsurCurr, d.InsurCurr_Text,d.OtherMark,d.OtherRate,d.OtherCurr,d.OtherCurr_Text,d.PackNo,d.WrapType,d.WrapType_Text,d.GrossWet,d.NetWt,d.TradeAreaCode,d.TradeAreaCode_Text,d.ContaCount,d.AttaDocuCdstr,d.GoodsPlace,d.DespPortCode,d.DespPortCode_Text,d.EntryType,d.EntryType_Text,d.NoteS, d.MarkNo,d.OrgCode,d.OrgCode_Text,d.VsaOrgCode,d.VsaOrgCode_Text,d.InspOrgCode,d.InspOrgCode_Text,d.PurpOrgCode,d.PurpOrgCode_Text, d.CorrelationNo,d.CorrelationReasonFlag,d.CorrelationReasonFlag_Text,d.DespDate,d.CmplDschrgDt,d.OrigBoxFlag,d.SpecDeclFlag, d.SpecDeclFlag_Text,d.PromiseItmes,d.DeclareName,d.NoOtherPack,d.Insp_cert,d.BillState,o.CUSTNO,o.CUSTOMNO,o.MBLNO,o.CUSTOMERNAME,o.VESSEL,o.VOYNO,o.ETD,o.ETA ,d.ClientSeqNo ,d.ApplyType ,d.AuditDate ");
strSql.Append(",s.COMPOP,s.COMPTIME from DecHead d inner join op_apply o on o.bsno = d.BSNO "); strSql.Append(",s.COMPOP,s.COMPTIME from DecHead d inner join op_apply o on o.bsno = d.BSNO ");
strSql.Append(" left join (SELECT [ST_ID],[BSNO],[STATUS],[ISCOMP],[COMPTIME],[COMPOP],[REMARK],[INPUTBY],[INPUTTIME],[ORDNO],[STATUS_OPSEAE],[STTYPE],[ISOPEN] from ("); strSql.Append(" left join (SELECT [ST_ID],[BSNO],[STATUS],[ISCOMP],[COMPTIME],[COMPOP],[REMARK],[INPUTBY],[INPUTTIME],[ORDNO],[STATUS_OPSEAE],[STTYPE],[ISOPEN] from (");
strSql.Append("SELECT [ST_ID],[BSNO],[STATUS],[ISCOMP],[COMPTIME],[COMPOP],[REMARK],[INPUTBY],[INPUTTIME],[ORDNO],[STATUS_OPSEAE],[STTYPE],[ISOPEN], row_number() over(partition by BSNO ORDER BY INPUTTIME desc) as rowno"); strSql.Append("SELECT [ST_ID],[BSNO],[STATUS],[ISCOMP],[COMPTIME],[COMPOP],[REMARK],[INPUTBY],[INPUTTIME],[ORDNO],[STATUS_OPSEAE],[STTYPE],[ISOPEN], row_number() over(partition by BSNO ORDER BY INPUTTIME desc) as rowno");
@ -1936,6 +1953,10 @@ namespace DSWeb.SoftMng.DAL
{ {
model.COMPTIME = Convert.ToDateTime(row["COMPTIME"]).ToString("yyyy-MM-dd hh:mm:ss"); model.COMPTIME = Convert.ToDateTime(row["COMPTIME"]).ToString("yyyy-MM-dd hh:mm:ss");
} }
if (row["AuditDate"] != DBNull.Value)
{
model.AuditDate = Convert.ToDateTime(row["AuditDate"]).ToString("yyyy-MM-dd hh:mm:ss");
}
} }
headList.Add(model); headList.Add(model);
} }

@ -1149,7 +1149,6 @@ namespace DSWeb.SoftMng.Model{
set { _ApplyType = value; } set { _ApplyType = value; }
} }
//private string _ApplyType_Text; //private string _ApplyType_Text;
//public string ApplyType_Text //public string ApplyType_Text
//{ //{
@ -2344,6 +2343,8 @@ namespace DSWeb.SoftMng.Model{
public string COMPTIME { get; set; } public string COMPTIME { get; set; }
public string AuditDate { get; set; }
} }
/// <summary> /// <summary>

@ -1922,7 +1922,7 @@ $('[data-method="submit"]').on("click", function ()
} }
}); });
break; break;
case "submit"://提交 case "submit"://审核
if ($("#formMain").valid()) { if ($("#formMain").valid()) {
//报关单表头信息 //报关单表头信息
$("#BillState").removeAttr("disabled"); $("#BillState").removeAttr("disabled");
@ -1965,7 +1965,7 @@ $('[data-method="submit"]').on("click", function ()
} }
break; break;
case "audit":// case "audit"://
if ($("#formMain").valid()) { if ($("#formMain").valid()) {
//报关单表头信息 //报关单表头信息
$("#BillState").removeAttr("disabled"); $("#BillState").removeAttr("disabled");

@ -165,6 +165,11 @@ Ext.extend(Shipping.SingleIndex, Ext.Panel, {
dataIndex: 'COMPTIME', dataIndex: 'COMPTIME',
header: '提交时间', header: '提交时间',
width: 120 width: 120
}, {
sortable: true,
dataIndex: 'AuditDate',
header: '复核时间',
width: 120
}]; }];
this.girdcolums = this.columns; this.girdcolums = this.columns;
this.girdcolums = DsTruck.GetGridPanel(USERID, this.formname, this.girdcolums, 1, true); this.girdcolums = DsTruck.GetGridPanel(USERID, this.formname, this.girdcolums, 1, true);

@ -27,6 +27,7 @@
{ name: 'COMPTIME', type: 'string' },//航次 { name: 'COMPTIME', type: 'string' },//航次
{ name: 'ETD', type: 'string' },//开船日期 { name: 'ETD', type: 'string' },//开船日期
{ name: 'ETA', type: 'string' }//到港日期 { name: 'ETA', type: 'string' }//到港日期
, { name: 'AuditDate', type: 'string' }
] ]

Loading…
Cancel
Save