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

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

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
</PropertyGroup>
<ProjectExtensions>
<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);
if (loglist.Exists(x => x.ACTNAME == "扣单" && Convert.ToDateTime(x.OPDATE)> )) {
if (loglist.Exists(x => x.ACTNAME == "扣单" && Convert.ToDateTime(x.OPDATE) > ))
{
//如果有晚于最后一次取消扣单的扣单 那还是扣单状态
result.SetErrorInfo("目前处于扣单状态");
return result;
}
}
}
else
{
{
result.SetErrorInfo("目前处于扣单状态");
return result;
}

@ -1161,8 +1161,47 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE
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) //签入_撤回
{
//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";
Database db = DatabaseFactory.CreateDatabase();
var result = new DBResult();
@ -1177,6 +1216,8 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE
foreach (var _bill in _List)
{
if (!(_bill)) continue;
//Resultmb WorkResult = WorkFlowDAL.WorkFlowReset(WorkFlowName, _bill.GID, USERID);
//if (WorkResult.Success == true)
@ -2110,6 +2151,7 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE
foreach (var _bill in _List)
{
//Resultmb WorkResult = WorkFlowDAL.WorkFlowReset(WorkFlowName, _bill.GID, USERID);
@ -4911,17 +4953,17 @@ namespace DSWeb.Areas.MvcShipping.DAL.MsOp_BLISSUE
}
else
{
SqlParameter[] updateParms = new SqlParameter[] {
new SqlParameter("@FILENAME",SqlDbType.VarChar)
SqlParameter[] updateParms = new SqlParameter[] {
new SqlParameter("@FILENAME",SqlDbType.VarChar),
new SqlParameter("@GID",SqlDbType.VarChar)
};
updateParms[0].Value = fileEntity.GID;
updateParms[1].Value = tempBSNO;
updateParms[2].Value = fileEntity.UPLOADEMPLY;
updateParms[3].Value = fileEntity.UPLOADDATE;
updateParms[4].Value = fileEntity.FILENAME;
updateParms[1].Value = fileEntity.GID;
//updateParms[1].Value = tempBSNO;
//updateParms[2].Value = fileEntity.UPLOADEMPLY;
//updateParms[3].Value = fileEntity.UPLOADDATE;
updateParms[0].Value = fileEntity.FILENAME;
//updateParms[5].Value = fileEntity.FILETYPE;
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', {
hidden:true,
fieldLabel: Zi.LAN.DOC, //'单证 单 证',
store: this.storeDoc,
forceSelection: true,
@ -1984,6 +1985,8 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
proxy: { url: '/CommMng/BasicDataRef/GetCodeLoadportListRm' }
});
this.comboxPORTLOAD = Ext.create('DsExt.ux.RefTableCombox', {
hidden: true,
flex: 1,
fieldLabel: Zi.LAN.PORTLOAD, //'装货港',
store: this.storeCodeLoadport,
name: 'PORTLOAD',
@ -2124,6 +2127,7 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
this.storeISEI = GetPublicStore('ISEI');
this.comboxISEI = Ext.create('DsExt.ux.RefTableCombox', {
hidden:true,
fieldLabel: Zi.LAN.ISEI, //'委托分公司',
store: this.storeISEI,
forceSelection: true,
@ -2305,15 +2309,50 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
defaultType: 'textfield',
items: [
this.comboxISEI,
this.comboxPORTLOAD,
this.comboxDoc,
this.comboxISEI,//hidden 1.2
this.comboxPORTLOAD,//1
this.comboxDoc,//0.8
//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',
flex: 1.9,
flex: 1,
scope: this
}, {
},
{
xtype: 'hiddenfield',
flex: 1,
scope: this
},
{
xtype: 'hiddenfield',
flex: 1,
scope: this
},
{
xtype: 'hiddenfield',
flex: 1.3,
scope: this
},
{
xtype: 'hidden',
flex: 0.4,
scope: this
@ -3466,7 +3505,7 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
this.panelTop = new Ext.Panel({
layout: "border",
region: "north",
height: 96,
height: 123,
items: [this.panelBtn, this.formSearch]
});
@ -9064,6 +9103,11 @@ Ext.extend(Shipping.MsOpSeaeIndex, Ext.Panel, {
var ISEI = form.findField('ISEI').getValue();
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();
//if (ISCANCEL) {
// if (ISCANCEL == "-1") {

@ -1608,24 +1608,47 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
scope: this
}]
}
, {
xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [
this.comboxISEI, this.comboxSaleCompany, this.comboxDept, { xtype: 'hiddenfield', flex: 2 }, { xtype: 'hiddenfield', flex: 0.8}
]
}, {
xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [
]
, {
xtype: 'container',
layout: 'hbox',
defaultType: 'textfield',
items: [
this.comboxISEI, this.comboxSaleCompany, this.comboxDept
//, { xtype: 'hiddenfield', flex: 2 }
, {
fieldLabel: '参考号',
name: 'SERVICECONTRACTNO',
enableKeyEvents: true,
listeners: {
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 root items
@ -1833,7 +1856,7 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
this.panelTop = new Ext.Panel({
layout: "border",
region: "north",
height: 71,
height: 105,
items: [this.panelBtn, this.formSearch]
});
@ -2804,6 +2827,13 @@ Ext.extend(Shipping.MsOpSeaeSaleIndex, Ext.Panel, {
var ISEI = form.findField('ISEI').getValue();
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();
// sql = sql + getAndConSql(sql, AGENTID, "B.AGENTID='" + AGENTID + "'");

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

@ -2969,59 +2969,75 @@ Ext.extend(Shipping.MsOp_BLISSUESPEdit, Ext.Panel, {
, onPostFileClick: function (button, event) {
var billno = this.formEdit.getForm().findField('GID').value;
var bodyDatas = [];
var i;
for (i = 0; i < this.storeDocList.getCount(); i += 1) {
var memberyf = this.storeDocList.getAt(i);
bodyDatas.push(memberyf);
if (!billno) {
Ext.Msg.show({
title: '警告',
msg: '请先保存业务',
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
});
var FILENAME = memberyf.data.FILENAME;
if (FILENAME == '') {
Ext.Msg.show({ title: '警告',
msg: '文件名称不能为空',
icon: Ext.Msg.ERROR, buttons: Ext.Msg.OK
});
return;
}
else
{
return;
}
var bodyDatas = [];
var i;
};
var jsonBody = ConvertRecordsToJsonAll(bodyDatas);
for (i = 0; i < this.storeDocList.getCount(); i += 1) {
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;
Ext.Msg.wait('正在保存数据, 请稍侯..');
Ext.Ajax.request({
waitMsg: '正在保存数据...',
url: '/MvcShipping/MsOp_BLISSUE/SaveFile',
scope: this,
params: {
bsno: billno,
body: jsonBody
},
callback: function (options, success, response) {
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();
}
return;
}
};
var jsonBody = ConvertRecordsToJsonAll(bodyDatas);
_this = this;
Ext.Msg.wait('正在保存数据, 请稍侯..');
Ext.Ajax.request({
waitMsg: '正在保存数据...',
url: '/MvcShipping/MsOp_BLISSUE/SaveFile',
scope: this,
params: {
bsno: billno,
body: jsonBody
},
callback: function (options, success, response) {
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 {
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
, 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="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="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="sydevzsh" connectionString="Server=119.23.249.201,12356;Database=1107;User ID=sa;Password=Ds20040201;Connect Timeout=120000;" providerName="System.Data.SqlClient" />
-->
</connectionStrings>
<!--

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

Loading…
Cancel
Save