采购退货申请单、发货通知单关闭
This commit is contained in:
parent
ac249ccdaa
commit
ba77003686
|
|
@ -30,6 +30,7 @@ public class PmPurRefundApplyListPlugin extends AbstractListPlugin {
|
|||
//标准单据列表模板为bos_list,需使用该模板中的控件标识(如工具栏标识toolbarap)进行监听。
|
||||
// 列表插件继承AbstractListPlugin时,底层已默认注册工具栏监听,无需重复注册
|
||||
}
|
||||
|
||||
@Override
|
||||
public void beforeItemClick(BeforeItemClickEvent evt) {
|
||||
super.beforeItemClick(evt);
|
||||
|
|
@ -46,11 +47,11 @@ public class PmPurRefundApplyListPlugin extends AbstractListPlugin {
|
|||
DynamicObject dataEntity = BusinessDataServiceHelper.loadSingle("pm_purrefundapplybill", "id,billno,tqq9_isclose",
|
||||
new QFilter[]{new QFilter("billno", QCP.in, billnoList)});
|
||||
if (null != dataEntity) {
|
||||
/* boolean tqq9_isclose = dataEntity.getBoolean("tqq9_isclose");
|
||||
boolean tqq9_isclose = dataEntity.getBoolean("tqq9_isclose");
|
||||
if (tqq9_isclose) {
|
||||
this.getView().showMessage("该单据已关闭");
|
||||
evt.setCancel(true);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public class SmDeliverNoticeListPlugin extends AbstractListPlugin {
|
|||
public void beforeItemClick(BeforeItemClickEvent evt) {
|
||||
super.beforeItemClick(evt);
|
||||
String itemKey = evt.getItemKey();
|
||||
/*if ("tqq9_close".equals(itemKey)) {
|
||||
if ("tqq9_close".equals(itemKey)) {
|
||||
BillList billList = this.getControl("billlistap");
|
||||
ListSelectedRowCollection selectedRows = billList.getSelectedRows();
|
||||
List<String> billnoList = selectedRows.stream().map(ListSelectedRow::getBillNo).distinct().collect(Collectors.toList());
|
||||
|
|
@ -53,7 +53,7 @@ public class SmDeliverNoticeListPlugin extends AbstractListPlugin {
|
|||
}
|
||||
}
|
||||
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -53,7 +53,9 @@ public class BillCloseCancelUtils {
|
|||
String flag = response.getString("flag");
|
||||
String code = response.getString("code");
|
||||
message = response.getString("message");
|
||||
|
||||
if ("0".equals(code) || "200".equals(code)) {
|
||||
message = "关闭成功";
|
||||
}
|
||||
LCLogServiceImpl lcLogService = new LCLogServiceImpl();
|
||||
lcLogService.savelog(entityName, ttx_mainUrl, true, code.equals("200"), xmlBuilder.toString(), result);
|
||||
lcLogService.isSuccess(entityType, billNo, "billno", label, code.equals("200"));
|
||||
|
|
@ -93,6 +95,9 @@ public class BillCloseCancelUtils {
|
|||
if (null != rootNode) {
|
||||
message = String.valueOf(rootNode.get("message"));
|
||||
String code = String.valueOf(rootNode.get("code"));
|
||||
if ("0".equals(code) || "200".equals(code)) {
|
||||
message = "关闭成功";
|
||||
}
|
||||
LCLogServiceImpl lcLogService = new LCLogServiceImpl();
|
||||
lcLogService.savelog(entityName, url, true, code.equals("0"), bjjsonBody, result);
|
||||
lcLogService.isSuccess(entityType, billNo, "billno", label, code.equals("0"));
|
||||
|
|
@ -127,11 +132,13 @@ public class BillCloseCancelUtils {
|
|||
if (null != rootNode) {
|
||||
message = String.valueOf(rootNode.get("message"));
|
||||
String code = String.valueOf(rootNode.get("code"));
|
||||
if ("0".equals(code) || "200".equals(code)) {
|
||||
message = "关闭成功";
|
||||
}
|
||||
LCLogServiceImpl lcLogService = new LCLogServiceImpl();
|
||||
lcLogService.savelog(entityName, url, true, code.equals("0"), bjjsonBody, result);
|
||||
lcLogService.isSuccess(entityType, billNo, "billno", label, code.equals("0"));
|
||||
}
|
||||
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
|
@ -139,7 +146,6 @@ public class BillCloseCancelUtils {
|
|||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 北广 其他出库申请单取消
|
||||
*
|
||||
|
|
@ -157,8 +163,8 @@ public class BillCloseCancelUtils {
|
|||
String method;//其他出库撤销
|
||||
if ("DBCK".equals(orderType)) {
|
||||
method = "/api/WMS/Cancel_TransVouch";//调拨出库撤销
|
||||
bj_map.put("cTVCode",billNo);
|
||||
}else {
|
||||
bj_map.put("cTVCode", billNo);
|
||||
} else {
|
||||
method = "/api/WMS/Cancel_OtherVouchOut";
|
||||
bj_map.put("cOVCode", billNo);
|
||||
}
|
||||
|
|
@ -171,6 +177,9 @@ public class BillCloseCancelUtils {
|
|||
if (null != rootNode) {
|
||||
message = String.valueOf(rootNode.get("message"));
|
||||
String code = String.valueOf(rootNode.get("code"));
|
||||
if ("0".equals(code) || "200".equals(code)) {
|
||||
message = "关闭成功";
|
||||
}
|
||||
LCLogServiceImpl lcLogService = new LCLogServiceImpl();
|
||||
lcLogService.savelog(entityName, url, true, code.equals("0"), bjjsonBody, result);
|
||||
lcLogService.isSuccess(entityType, billNo, "billno", label, code.equals("0"));
|
||||
|
|
@ -205,6 +214,9 @@ public class BillCloseCancelUtils {
|
|||
if (null != rootNode) {
|
||||
message = String.valueOf(rootNode.get("message"));
|
||||
String code = String.valueOf(rootNode.get("code"));
|
||||
if ("0".equals(code) || "200".equals(code)) {
|
||||
message = "关闭成功";
|
||||
}
|
||||
LCLogServiceImpl lcLogService = new LCLogServiceImpl();
|
||||
lcLogService.savelog(entityName, url, true, code.equals("0"), bjjsonBody, result);
|
||||
lcLogService.isSuccess(entityType, billNo, "billno", label, code.equals("0"));
|
||||
|
|
@ -240,6 +252,9 @@ public class BillCloseCancelUtils {
|
|||
if (null != rootNode) {
|
||||
message = String.valueOf(rootNode.get("message"));
|
||||
String code = String.valueOf(rootNode.get("code"));
|
||||
if ("0".equals(code) || "200".equals(code)) {
|
||||
message = "关闭成功";
|
||||
}
|
||||
LCLogServiceImpl lcLogService = new LCLogServiceImpl();
|
||||
lcLogService.savelog(entityName, url, true, code.equals("0"), bjjsonBody, result);
|
||||
lcLogService.isSuccess(entityType, billNo, "billno", label, code.equals("0"));
|
||||
|
|
|
|||
Loading…
Reference in New Issue