|
|
@ -3027,6 +3027,10 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
{ |
|
|
|
string suffix = Path.GetExtension(fileName); |
|
|
|
var provider = new FileExtensionContentTypeProvider(); |
|
|
|
if (suffix.ToUpper().Trim() == ".MSG") |
|
|
|
{ |
|
|
|
return "application/octet-stream"; |
|
|
|
} |
|
|
|
var contentType = provider.Mappings[suffix]; |
|
|
|
return contentType; |
|
|
|
}); |
|
|
@ -7757,12 +7761,12 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
else if (AppSetting.Setting.Location == "9000" || AppSetting.Setting.Location == "0S08") |
|
|
|
{ |
|
|
|
|
|
|
|
if (recordNumber.Length != 10 ) |
|
|
|
if (recordNumber.Length != 10) |
|
|
|
{ |
|
|
|
_msg = "箱號:" + boxNo + " recordNumber 必須為10碼且為50000開頭,RecordNumber format error<br>"; |
|
|
|
|
|
|
|
} |
|
|
|
else if ( !recordNumber.StartsWith("50000")) |
|
|
|
else if (!recordNumber.StartsWith("50000")) |
|
|
|
{ |
|
|
|
_msg = "箱號:" + boxNo + " recordNumber 必須為10碼且為50000開頭,RecordNumber format error<br>"; |
|
|
|
|
|
|
@ -7967,7 +7971,7 @@ namespace AMESCoreStudio.Web.Controllers |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
return new Result() { success = false, msg = "箱號:"+ boxNo + "沒有序號資料" }; |
|
|
|
return new Result() { success = false, msg = "箱號:" + boxNo + "沒有序號資料" }; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|