临时发布20240103
dengyu 12 months ago
parent bb1308e30e
commit f5d82efe34

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig> <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
</PropertyGroup> </PropertyGroup>
<ProjectExtensions> <ProjectExtensions>

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig> <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
</PropertyGroup> </PropertyGroup>
<ProjectExtensions> <ProjectExtensions>
<VisualStudio> <VisualStudio>

@ -2214,20 +2214,22 @@ namespace DSWeb.MvcShipping.Controllers
{ {
// //
if (loglist.Exists(x => x.ACTNAME == "取消扣单")) { if (loglist.Exists(x => x.ACTNAME == "取消扣单" || x.ACTNAME == "放单通知"))
{
var Str = loglist.Where(x => x.ACTNAME == "取消扣单").Max(x => x.OPDATE); var Str = loglist.Where(x => x.ACTNAME == "取消扣单"|| x.ACTNAME == "放单通知").Max(x => x.OPDATE);
var = Convert.ToDateTime(Str); var = Convert.ToDateTime(Str);
if (loglist.Exists(x => x.ACTNAME == "扣单" && Convert.ToDateTime(x.OPDATE)> )) { if (loglist.Exists(x => x.ACTNAME == "扣单" && Convert.ToDateTime(x.OPDATE) > ))
{
//如果有晚于最后一次取消扣单的扣单 那还是扣单状态 //如果有晚于最后一次取消扣单的扣单 那还是扣单状态
result.SetErrorInfo("目前处于扣单状态"); result.SetErrorInfo("目前处于扣单状态");
return result; return result;
} }
} }
else else
{ {
result.SetErrorInfo("目前处于扣单状态"); result.SetErrorInfo("目前处于扣单状态");
return result; return result;
} }

@ -1161,8 +1161,47 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE
return result; return result;
} }
/// <summary>
/// 取消签入
/// </summary>
/// <param name="_List"></param>
/// <param name="USERID"></param>
/// <param name="username"></param>
/// <returns></returns>
public static DBResult UnQR ( List<MsOp_BLISSUEmb> _List, string USERID,string username) //签入_撤回 public static DBResult UnQR ( List<MsOp_BLISSUEmb> _List, string USERID,string username) //签入_撤回
{ {
//20231121 增加判断 防止在未签入的情况下 执行 取消签出动作
//防止多余的 取消签入 影响提单签出状态的判断
//返回true即为可以取消签入
bool (MsOp_BLISSUEmb _p)
{
var condition = $" (BSNO='{_p.GID}' or BSNO in(select linkgid from op_blissuelist_detail where BSNO='{_p.BSNO}'))";
var loglist = Areas.OA.DAL.WorkFlow.WorkLogDAL.GetWorkLog(condition, null);
var count = 0;
var count = 0;
foreach (var log in loglist)
{
if (log.ACTNAME == "提单签入") count++;
if (log.ACTNAME == "取消签入") count--;
if (log.ACTNAME == "提单签出") count++;
if (log.ACTNAME == "取消签出") count--;
}
if (count <= count)
{
return false;
}
else
{
return true;
}
}
//var WorkFlowName = "MsOp_BLISSUE_IN"; //var WorkFlowName = "MsOp_BLISSUE_IN";
Database db = DatabaseFactory.CreateDatabase(); Database db = DatabaseFactory.CreateDatabase();
var result = new DBResult(); var result = new DBResult();
@ -1177,6 +1216,8 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE
foreach (var _bill in _List) foreach (var _bill in _List)
{ {
if (!(_bill)) continue;
//Resultmb WorkResult = WorkFlowDAL.WorkFlowReset(WorkFlowName, _bill.GID, USERID); //Resultmb WorkResult = WorkFlowDAL.WorkFlowReset(WorkFlowName, _bill.GID, USERID);
//if (WorkResult.Success == true) //if (WorkResult.Success == true)
@ -2110,6 +2151,7 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE
foreach (var _bill in _List) foreach (var _bill in _List)
{ {
//Resultmb WorkResult = WorkFlowDAL.WorkFlowReset(WorkFlowName, _bill.GID, USERID); //Resultmb WorkResult = WorkFlowDAL.WorkFlowReset(WorkFlowName, _bill.GID, USERID);
@ -4911,17 +4953,17 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE
} }
else else
{ {
SqlParameter[] updateParms = new SqlParameter[] { SqlParameter[] updateParms = new SqlParameter[] {
new SqlParameter("@FILENAME",SqlDbType.VarChar) new SqlParameter("@FILENAME",SqlDbType.VarChar),
new SqlParameter("@GID",SqlDbType.VarChar)
}; };
updateParms[0].Value = fileEntity.GID; updateParms[1].Value = fileEntity.GID;
updateParms[1].Value = tempBSNO; //updateParms[1].Value = tempBSNO;
updateParms[2].Value = fileEntity.UPLOADEMPLY; //updateParms[2].Value = fileEntity.UPLOADEMPLY;
updateParms[3].Value = fileEntity.UPLOADDATE; //updateParms[3].Value = fileEntity.UPLOADDATE;
updateParms[4].Value = fileEntity.FILENAME; updateParms[0].Value = fileEntity.FILENAME;
//updateParms[5].Value = fileEntity.FILETYPE;
SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, SQL_UPDATE, updateParms); SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, SQL_UPDATE, updateParms);
} }
} }

@ -1857,6 +1857,7 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
//单证 //单证
this.comboxDoc = Ext.create('DsExt.ux.RefTableCombox', { this.comboxDoc = Ext.create('DsExt.ux.RefTableCombox', {
hidden:true,
fieldLabel: Zi.LAN.DOC, //'单证 单 证', fieldLabel: Zi.LAN.DOC, //'单证 单 证',
store: this.storeDoc, store: this.storeDoc,
forceSelection: true, forceSelection: true,
@ -1984,6 +1985,8 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
proxy: { url: '/CommMng/BasicDataRef/GetCodeLoadportListRm' } proxy: { url: '/CommMng/BasicDataRef/GetCodeLoadportListRm' }
}); });
this.comboxPORTLOAD = Ext.create('DsExt.ux.RefTableCombox', { this.comboxPORTLOAD = Ext.create('DsExt.ux.RefTableCombox', {
hidden: true,
flex: 1,
fieldLabel: Zi.LAN.PORTLOAD, //'装货港', fieldLabel: Zi.LAN.PORTLOAD, //'装货港',
store: this.storeCodeLoadport, store: this.storeCodeLoadport,
name: 'PORTLOAD', name: 'PORTLOAD',
@ -2124,6 +2127,7 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
this.storeISEI = GetPublicStore('ISEI'); this.storeISEI = GetPublicStore('ISEI');
this.comboxISEI = Ext.create('DsExt.ux.RefTableCombox', { this.comboxISEI = Ext.create('DsExt.ux.RefTableCombox', {
hidden:true,
fieldLabel: Zi.LAN.ISEI, //'委托分公司', fieldLabel: Zi.LAN.ISEI, //'委托分公司',
store: this.storeISEI, store: this.storeISEI,
forceSelection: true, forceSelection: true,
@ -2305,15 +2309,50 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
defaultType: 'textfield', defaultType: 'textfield',
items: [ items: [
this.comboxISEI, this.comboxISEI,//hidden 1.2
this.comboxPORTLOAD, this.comboxPORTLOAD,//1
this.comboxDoc, this.comboxDoc,//0.8
//this.comboxISCANCEL, //this.comboxISCANCEL,
//{
// xtype: 'hiddenfield',
// flex: 1.9,
// scope: this
//}
{
fieldLabel: '箱号', //'编号',
name: 'CNTRNO',
labelWidth: 30,
flex: 0.6,
enableKeyEvents: true,
listeners: {
specialkey: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
},
{ {
xtype: 'hiddenfield', xtype: 'hiddenfield',
flex: 1.9, flex: 1,
scope: this scope: this
}, { },
{
xtype: 'hiddenfield',
flex: 1,
scope: this
},
{
xtype: 'hiddenfield',
flex: 1,
scope: this
},
{
xtype: 'hiddenfield',
flex: 1.3,
scope: this
},
{
xtype: 'hidden', xtype: 'hidden',
flex: 0.4, flex: 0.4,
scope: this scope: this
@ -3466,7 +3505,7 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
this.panelTop = new Ext.Panel({ this.panelTop = new Ext.Panel({
layout: "border", layout: "border",
region: "north", region: "north",
height: 96, height: 123,
items: [this.panelBtn, this.formSearch] items: [this.panelBtn, this.formSearch]
}); });
@ -9064,6 +9103,11 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
var ISEI = form.findField('ISEI').getValue(); var ISEI = form.findField('ISEI').getValue();
sql = sql + getAndConSql(sql, ISEI, "ISEI = '" + ISEI + "'"); sql = sql + getAndConSql(sql, ISEI, "ISEI = '" + ISEI + "'");
var CNTRNO = form.findField('CNTRNO').getValue();
sql = sql + getAndConSql(sql, CNTRNO, "exists(select 1 from op_ctn where bsno=B.bsno and cntrno like '%" + CNTRNO + "')");
//var ISCANCEL = form.findField('ISCANCEL').getValue(); //var ISCANCEL = form.findField('ISCANCEL').getValue();
//if (ISCANCEL) { //if (ISCANCEL) {
// if (ISCANCEL == "-1") { // if (ISCANCEL == "-1") {

@ -1608,24 +1608,47 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
scope: this scope: this
}] }]
} }
, {
, { xtype: 'container',
xtype: 'container', layout: 'hbox',
layout: 'hbox', defaultType: 'textfield',
defaultType: 'textfield', items: [
items: [ this.comboxISEI, this.comboxSaleCompany, this.comboxDept
this.comboxISEI, this.comboxSaleCompany, this.comboxDept, { xtype: 'hiddenfield', flex: 2 }, { xtype: 'hiddenfield', flex: 0.8} //, { xtype: 'hiddenfield', flex: 2 }
] , {
}, { fieldLabel: '参考号',
xtype: 'container', name: 'SERVICECONTRACTNO',
layout: 'hbox', enableKeyEvents: true,
defaultType: 'textfield', listeners: {
items: [ specialkey: function (field, e) {
if (e.getKey() == e.ENTER) {
] _this.onRefreshClick();
}
}
} }
}, {
fieldLabel: '箱号',
name: 'CNTRNO',
enableKeyEvents: true,
listeners: {
specialkey: function (field, e) {
if (e.getKey() == e.ENTER) {
_this.onRefreshClick();
}
}
}
}
, { xtype: 'hiddenfield', flex: 0.8 }
]
}, {
xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [
]
}
]//end items(fieldset 1) ]//end items(fieldset 1)
}]//end root items }]//end root items
@ -1833,7 +1856,7 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
this.panelTop = new Ext.Panel({ this.panelTop = new Ext.Panel({
layout: "border", layout: "border",
region: "north", region: "north",
height: 71, height: 105,
items: [this.panelBtn, this.formSearch] items: [this.panelBtn, this.formSearch]
}); });
@ -2804,6 +2827,13 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
var ISEI = form.findField('ISEI').getValue(); var ISEI = form.findField('ISEI').getValue();
sql = sql + getAndConSql(sql, ISEI, "B.ISEI = '" + ISEI + "'"); sql = sql + getAndConSql(sql, ISEI, "B.ISEI = '" + ISEI + "'");
var SERVICECONTRACTNO = form.findField('SERVICECONTRACTNO').getValue();
sql = sql + getAndConSql(sql, SERVICECONTRACTNO, "B.SERVICECONTRACTNO = '" + SERVICECONTRACTNO + "'");
var CNTRNO = form.findField('CNTRNO').getValue();
sql = sql + getAndConSql(sql, CNTRNO, "exists(select 1 from op_ctn where bsno=B.bsno and cntrno like '%" + CNTRNO + "')");
// //代理 // //代理
// var AGENTID = form.findField('AGENTID').getValue(); // var AGENTID = form.findField('AGENTID').getValue();
// sql = sql + getAndConSql(sql, AGENTID, "B.AGENTID='" + AGENTID + "'"); // sql = sql + getAndConSql(sql, AGENTID, "B.AGENTID='" + AGENTID + "'");

@ -3374,7 +3374,6 @@ Ext.extend(Shipping.MsOp_BLISSUEIndex, Ext.Panel, {
} }
this.onQrShow(jsonBody); this.onQrShow(jsonBody);
} }
, onQrShow: function (jsonBody) { , onQrShow: function (jsonBody) {

@ -2969,59 +2969,75 @@ Ext.extend(Shipping.MsOp_BLISSUESPEdit, Ext.Panel, {
, onPostFileClick: function (button, event) { , onPostFileClick: function (button, event) {
var billno = this.formEdit.getForm().findField('GID').value; var billno = this.formEdit.getForm().findField('GID').value;
var bodyDatas = [];
var i;
for (i = 0; i < this.storeDocList.getCount(); i += 1) { if (!billno) {
var memberyf = this.storeDocList.getAt(i); Ext.Msg.show({
bodyDatas.push(memberyf); title: '警告',
msg: '请先保存业务',
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
});
var FILENAME = memberyf.data.FILENAME; return;
if (FILENAME == '') { }
Ext.Msg.show({ title: '警告', else
msg: '文件名称不能为空', {
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
});
return; var bodyDatas = [];
} var i;
}; for (i = 0; i < this.storeDocList.getCount(); i += 1) {
var jsonBody = ConvertRecordsToJsonAll(bodyDatas); var memberyf = this.storeDocList.getAt(i);
bodyDatas.push(memberyf);
var FILENAME = memberyf.data.FILENAME;
if (FILENAME == '') {
Ext.Msg.show({
title: '警告',
msg: '文件名称不能为空',
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
});
_this = this; return;
Ext.Msg.wait('正在保存数据, 请稍侯..'); }
Ext.Ajax.request({
waitMsg: '正在保存数据...', };
url: '/MvcShipping/MsOp_BLISSUE/SaveFile', var jsonBody = ConvertRecordsToJsonAll(bodyDatas);
scope: this,
params: {
bsno: billno, _this = this;
body: jsonBody Ext.Msg.wait('正在保存数据, 请稍侯..');
}, Ext.Ajax.request({
callback: function (options, success, response) { waitMsg: '正在保存数据...',
if (success) { url: '/MvcShipping/MsOp_BLISSUE/SaveFile',
Ext.MessageBox.hide(); scope: this,
var jsonresult = Ext.JSON.decode(response.responseText); params: {
if (jsonresult.Success) { bsno: billno,
for (var i = 0; i < this.storeDocList.getCount(); i += 1) { body: jsonBody
var member = this.storeDocList.getAt(i); },
member.set("PID", billno); callback: function (options, success, response) {
member.commit(); if (success) {
} Ext.MessageBox.hide();
var jsonresult = Ext.JSON.decode(response.responseText);
if (jsonresult.Success) {
for (var i = 0; i < this.storeDocList.getCount(); i += 1) {
var member = this.storeDocList.getAt(i);
member.set("PID", billno);
member.commit();
}
} else {
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK });
}
} else { } else {
Ext.Msg.show({ title: '错误', msg: jsonresult.Message, icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK }); Ext.Msg.show({
title: '请重试',
msg: '服务器响应出错',
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
});
} }
} else {
Ext.Msg.show({ title: '请重试',
msg: '服务器响应出错',
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
});
} }
} });
}); }
} //end save } //end save
, onDelFileClick: function (button, event) { , onDelFileClick: function (button, event) {

@ -90,14 +90,14 @@
<add name="DongShengDB" connectionString="Server=123.234.225.158,26600;Database=shippingwebTEST;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" /> <add name="DongShengDB" connectionString="Server=123.234.225.158,26600;Database=shippingwebTEST;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" />
<add name="sydevzsh" connectionString="Server=123.234.225.158,26600;Database=shippingwebTEST;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" /> <add name="sydevzsh" connectionString="Server=123.234.225.158,26600;Database=shippingwebTEST;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" />
--> -->
<!-- 深圳彩虹捷运 正式库 rainbow admin admin <!-- 深圳彩虹捷运 正式库 rainbow admin admin -->
<add name="DongShengDB" connectionString="Server=119.23.249.201,12356;Database=ShippingWeb_CHJY;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" /> <add name="DongShengDB" connectionString="Server=119.23.249.201,12356;Database=ShippingWeb_CHJY;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" />
<add name="sydevzsh" connectionString="Server=119.23.249.201,12356;Database=ShippingWeb_CHJY;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" /> <add name="sydevzsh" connectionString="Server=119.23.249.201,12356;Database=ShippingWeb_CHJY;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" />
-->
<!-- 深圳彩虹捷运 测试库 CHJY admin 123456 --> <!-- 深圳彩虹捷运 测试库 CHJY admin 123456
<add name="DongShengDB" connectionString="Server=119.23.249.201,12356;Database=1107;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" /> <add name="DongShengDB" connectionString="Server=119.23.249.201,12356;Database=1107;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" />
<add name="sydevzsh" connectionString="Server=119.23.249.201,12356;Database=1107;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" /> <add name="sydevzsh" connectionString="Server=119.23.249.201,12356;Database=1107;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" />
-->
</connectionStrings> </connectionStrings>
<!-- <!--

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig> <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
</PropertyGroup> </PropertyGroup>
<ProjectExtensions> <ProjectExtensions>
<VisualStudio> <VisualStudio>

Loading…
Cancel
Save