作者 朱兆平

分单FHL国际转运状态识别并入库,取消分单海关状态跟随主单

... ... @@ -179,11 +179,11 @@ namespace CustomsCargoSystem.ExchangeDataStorageService
public void StartServiceThread_IMF(object obj)
{
try
{
string connectionString = ConnectionString;
while (IsThreadNeedRun)
{
try
{
string text = "";
string[] files = Directory.GetFiles(IMFMsgPath, "*.txt");
for (int i = 0; i < files.Length; i++)
... ... @@ -260,10 +260,10 @@ namespace CustomsCargoSystem.ExchangeDataStorageService
}
}
}
Thread.Sleep(500);
}
}catch(IOException e){
Log.WriteLog("9systemlog", e.ToString());
Log.WriteLog("9systemlog", e.ToString()+"IOerror");
}
Thread.Sleep(500);
}
}
... ... @@ -1162,6 +1162,11 @@ namespace CustomsCargoSystem.ExchangeDataStorageService
{
text8 = text10;
}
//分单国际转运判定
string org_domint = "", des_domint = "";
CustomsCargoSystem.Data.OriginManifestMaster.get_t_flt_fsl_domint(connectionString, originatingstation_bill, destinationstation_bill, out org_domint, out des_domint);
//国际转运
if (org_domint == des_domint && des_domint == "1") { cUSTOMSSTATUS = "002"; }
IEnumerable<CustomsCargoSystem.Model.OriginManifestMaster> originManifestMasterFromWayBillNoMaster = CustomsCargoSystem.Data.OriginManifestMaster.GetOriginManifestMasterFromWayBillNoMaster(connectionString, wayBillNoMaster);
if (originManifestMasterFromWayBillNoMaster.Count() > 0)
{
... ... @@ -1170,7 +1175,8 @@ namespace CustomsCargoSystem.ExchangeDataStorageService
{
IEnumerable<CustomsCargoSystem.Model.OriginManifestSecondary> originManifestSecondaryTureOrFalse = CustomsCargoSystem.Data.OriginManifestMaster.GetOriginManifestSecondaryTureOrFalse(connectionString, wayBillNoMaster, wayBillNoSecondary);
string customsCode = originManifestMaster.CustomsCode;
cUSTOMSSTATUS = originManifestMaster.CustomsStatus;
//取消分单海关状态跟着主单走
//cUSTOMSSTATUS = originManifestMaster.CustomsStatus;
CustomsCargoSystem.Model.OriginManifestSecondary originManifestSecondary = new CustomsCargoSystem.Model.OriginManifestSecondary();
originManifestSecondary.AutoID = Guid.NewGuid().ToString();
originManifestSecondary.WayBillNoMaster = wayBillNoMaster;
... ...