扣单按钮动作调整

临时发布20240103
dengyu 1 year ago
parent 96efb5147c
commit c3568db8ec

@ -2319,6 +2319,22 @@ namespace DSWeb.MvcShipping.Controllers
return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose) };
}
public ContentResult UnKD(string USERID, string data, string type) //扣单 取消扣单
{
var cdc = new CommonDataContext();
var user = cdc.VW_user.Where(x => x.USERID == USERID).ToList();
var username = "";
if (user != null && user.Count > 0) {
username = user[0].SHOWNAME;
}
var dataList = JsonConvert.Deserialize<List<MsOp_BLISSUEmb>>(data);
var bsnoList=new List<string>();
bsnoList = dataList.Select(s => s.BSNO).ToList();
var _r = MsOp_BLISSUEDAL.UnKD(bsnoList, USERID, username);
return BasicDataRefDAL.GetContentResult(_r);
}
public ContentResult KD_NoCancel(string USERID, string data, string type) //扣单 不取消扣单
{
var _r1 = SaveList_P(data);

@ -1302,7 +1302,7 @@ Ext.extend(Shipping.MsOp_BLISSUEIndex, Ext.Panel, {
text: "解除扣单", id: "UNLOCKBL", hidden: true,
iconCls: 'btislock',
handler: function (button, event) {
this.onKDClick();
this.onUnKDClick();
},
scope: this
}, {
@ -4376,7 +4376,7 @@ Ext.extend(Shipping.MsOp_BLISSUEIndex, Ext.Panel, {
Ext.Ajax.request({
waitMsg: '正在提交数据...',
url: '/MvcShipping/MsOp_BLISSUE/KD',
url: '/MvcShipping/MsOp_BLISSUE/UnKD',
params: {
USERID: USERID,
data: jsonBody

Loading…
Cancel
Save