ShenZhenCHJY
dengyu 2 days ago
parent 2a190070c8
commit 1eb39a1fcf

@ -6410,6 +6410,14 @@ namespace DSWeb.Areas.CommMng.DAL
/// <returns></returns>
public static DBResult CheckLogin(HttpSessionStateBase Session)
{
/*
var canlogin = BasicDataRefDAL.CheckLogin(Session);
if (!canlogin.Success)
{
return (ContentResult)canlogin.Data;
}
*/
var result = new DBResult();
if (Convert.ToString(Session["COMPANYID"]).Trim() == "" || Convert.ToString(Session["USERID"]).Trim() == "" || Convert.ToString(Session["CODENAME"]).Trim() == "" || Convert.ToString(Session["SHOWNAME"]).Trim() == "" || Convert.ToString(Session["DEPTNAME"]).Trim() == "")

@ -361,16 +361,17 @@ namespace DSWeb.MvcShipping.Controllers
if ((!string.IsNullOrEmpty(printstr)) && (printstr == "true"))
{
if (!string.IsNullOrEmpty(sortstr))
var sortstring = DatasetSort.Getsortstring(sort);
if (!string.IsNullOrEmpty(sortstring))
{
strSql.Append(" order by " + sortstr);
strSql.Append(" order by " + sortstring);
}
else
{
strSql.Append(" order by CUSTNAME,OPDATE,MBLNO ");
//if (amendstr == "true")
// strSql.Append(" order by F.CUSTOMERNAME,A.OPDATE,B.MBLNO ");
//else strSql.Append(" order by F.CUSTOMERNAME,B.OPDATE,B.MBLNO ");
// strSql.Append(" order by F.CUSTOMERNAME,A.OPDATE ");
//else strSql.Append(" order by F.CUSTOMERNAME,B.OPDATE ");
}

@ -9759,7 +9759,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
if (OpseaeHead.CARRIER == "ONE")
{
_result.Add("PLACERECEIPTCODE", OpseaeDjyOrderHead.PLACERECEIPTID);
_result.Add("PLACERECEIPTCODE", OpseaeHead.PLACERECEIPTID);
_result.Add("ShipInfoJson", OpseaeDjyOrderHead.ShipInfoJson);
_result.Add("bookingAddr", OpseaeDjyOrderHead.bookingAddr);
}
@ -10581,9 +10581,11 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
//var 中远港口EDINAME = "COSCOPORT";
var code = OpseaeDjyOrderHead.PORTLOADID;
var code = OpseaeHead.PORTLOADID;
var code = OpseaeDjyOrderHead.DESTINATIONID;
var code = OpseaeHead.DESTINATIONID;
var code = OpseaeHead.PLACERECEIPTID;
//20240507 如果两港均为空 不进行判断 直接返回true
if (string.IsNullOrWhiteSpace(code) && string.IsNullOrWhiteSpace(code))
@ -10591,11 +10593,13 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
return result.OK();
}
var EDICODEItem = cdc.code_disport_edi.FirstOrDefault(x => x.EDINAME == EDINAME && x.PORTID == code);
var EDICODEItem = cdc.code_disport_edi.FirstOrDefault(x => x.EDINAME == EDINAME && x.PORTID == code);
//var 装货港大简云EDICODEItem = cdc.code_disport_edi.FirstOrDefault(x => x.EDINAME == 大简云EDINAME && x.PORTID == 装货港大简云code);
//var 目的地大简云EDICODEItem = cdc.code_disport_edi.FirstOrDefault(x => x.EDINAME == 大简云EDINAME && x.PORTID == 目的地大简云code);
//var 收货地大简云EDICODEItem = cdc.code_disport_edi.FirstOrDefault(x => x.EDINAME == 大简云EDINAME && x.PORTID == 收货地大简云code);
var ONEcode = "";
var ONEcode = "";
var ONEcode = "";
//var 装货港中远codeItem = cdc.code_disport_edi.FirstOrDefault(x => x.EDINAME == 中远港口代码EDINAME && x.PORTID == 装货港大简云EDICODEItem.EDICODE);
//if (装货港中远codeItem != null)
@ -10615,22 +10619,34 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
if (string.IsNullOrWhiteSpace(ONEcode))
{
ONEcode = GetDjyMapping(EDICODEItem.EDICODE, "PORTLOAD", "ONE");
ONEcode = GetDjyMapping(code, "PORTLOAD", "ONE");
}
if (string.IsNullOrWhiteSpace(ONEcode))
{
ONEcode = GetDjyMapping(EDICODEItem.EDICODE, "PORTDISCHARGE", "ONE");
ONEcode = GetDjyMapping(code, "PORTDISCHARGE", "ONE");
}
if (string.IsNullOrWhiteSpace(ONEcode))
{
ONEcode = GetDjyMapping(code, "PORTLOAD", "ONE");
}
if (string.IsNullOrWhiteSpace(ONEcode))
{
return result.SetErrorInfo($"{装货港大简云EDICODEItem.PORTID} 没有在大简云设置其ONE港口代码");
return result.SetErrorInfo($"{装货港大简云code} 没有在大简云设置其ONE港口代码");
}
if (string.IsNullOrWhiteSpace(ONEcode))
{
return result.SetErrorInfo($"{目的地大简云EDICODEItem.PORTID} 没有在大简云设置其ONE港口代码");
return result.SetErrorInfo($"{目的地大简云code} 没有在大简云设置其ONE港口代码");
}
if (string.IsNullOrWhiteSpace(ONEcode))
{
return result.SetErrorInfo($"{收货地大简云code} 没有在大简云设置其ONE港口代码");
}
//3:从吴广的中远接口依据启运港目的港 当前日期+1 五周 查询船名航次
//20240507 日期改为 ETD-3
var _r1 = GetOneVoyno(ONEcode, ONEcode);
@ -10915,7 +10931,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
var rtn = "";
BasicDataRefDAL.SaveLog(JsonConvert.Serialize(sendParam), "", "查中远船期", "发送");
rtn = WebRequestHelper.DoPost(_IURL, sendParam, 10000);
rtn = WebRequestHelper.DoPost(_IURL, sendParam, 30000);
BasicDataRefDAL.SaveLog(rtn, "", "查中远船期", "返回");
var _r = JsonConvert.Deserialize<>(rtn);
@ -11036,7 +11052,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
var rtn = "";
BasicDataRefDAL.SaveLog(JsonConvert.Serialize(sendParam), "", "查长荣船期", "发送");
rtn = WebRequestHelper.DoPost(_IURL, sendParam, 10000);
rtn = WebRequestHelper.DoPost(_IURL, sendParam, 30000);
BasicDataRefDAL.SaveLog(rtn, "", "查长荣船期", "返回");
var _r = JsonConvert.Deserialize<>(rtn);
@ -11094,7 +11110,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
var rtn = "";
BasicDataRefDAL.SaveLog(JsonConvert.Serialize(sendParam), "", "查ONE船期", "发送");
rtn = WebRequestHelper.DoPost(_IURL, sendParam, 10000);
rtn = WebRequestHelper.DoPost(_IURL, sendParam, 30000);
BasicDataRefDAL.SaveLog(rtn, "", "查ONE船期", "返回");
var _r = JsonConvert.Deserialize<ONE>(rtn);

@ -7292,6 +7292,9 @@ Ext.extend(Shipping.MsRptNoTotalIndex, Ext.Panel, {
sortstr = this.bslistcrsortfield + ' ' + this.bslistcrsortdire;
}
var amendstr = 'false';
if (this.CheckAmend.checked == true) amendstr = 'true';
Ext.Msg.wait('正在组织数据, 请稍侯..');
Ext.Ajax.request({
waitMsg: '正在组织数据...',
@ -7301,7 +7304,8 @@ Ext.extend(Shipping.MsRptNoTotalIndex, Ext.Panel, {
start: 0, limit: this.PageSize,
condition: Crsql,
printstr: 'true',
sortstr: sortstr
sortstr: sortstr,
amendstr: amendstr
},
callback: function (options, success, response) {
if (success) {

@ -15,6 +15,7 @@ using System.Web;
using System.IO;
using System.Globalization;
using System.Web.Script.Serialization;
using DSWeb.Areas.CommMng.DAL;
namespace DSWeb.Areas.TruckMng.Controllers
{
@ -188,6 +189,8 @@ namespace DSWeb.Areas.TruckMng.Controllers
/// <returns></returns>
public ContentResult CertUpload ()
{
var jsonRespose = new JsonResponse { Success = false, Message = "" };
if (Request.Files.Count != 1)
@ -207,6 +210,16 @@ namespace DSWeb.Areas.TruckMng.Controllers
Directory.CreateDirectory(dirPath);
}
String fileExt = Path.GetExtension(imgFile.FileName).ToLower();
string name = Request.Files[0].FileName;
string ext = Path.GetExtension(name).ToLower();
string[] allowExt = new string[] { ".jpg", ".jpeg", ".png", ".gif", ".bmp", ".pdf" };
if (!allowExt.Contains(ext)) {
var result = new DBResult();
result.SetErrorInfo("不允许上传此类文件");
return BasicDataRefDAL.GetContentResult(result);
}
String newFileName = DateTime.Now.ToString("yyyyMMddHHmmss_ffff", DateTimeFormatInfo.InvariantInfo) + fileExt;
String filePath = dirPath + newFileName;
imgFile.SaveAs(filePath);

Loading…
Cancel
Save