Commit 006c0fde by wancheng

js增删更新

parent b70abca8
...@@ -229,7 +229,7 @@ public class ServiceHPKC001 extends ServiceBase { ...@@ -229,7 +229,7 @@ public class ServiceHPKC001 extends ServiceBase {
// 入库单号 // 入库单号
List<String> otherEnterNos = ObjectUtils.listKey(resultRows, "otherEnterNo"); List<String> otherEnterNos = ObjectUtils.listKey(resultRows, "otherEnterNo");
// 锁记录 // 锁记录
HPKCTools.HpKc001.lock(otherEnterNos); HPKCTools.HpKc001. lock(otherEnterNos);
// 查询数据库记录 // 查询数据库记录
Map<String, HPKC001> mapKc001 = HPKCTools.HpKc001.map(otherEnterNos); Map<String, HPKC001> mapKc001 = HPKCTools.HpKc001.map(otherEnterNos);
// 删除数据 // 删除数据
......
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
<!-- 逻辑删除 --> <!-- 逻辑删除 -->
<delete id="delete"> <delete id="delete">
UPDATE FROM ${hpjxSchema}.T_HPPZ012 SET DELETE_FLAG = #deleteFlag# WHERE ID = #id# UPDATE ${hpjxSchema}.T_HPPZ012 SET DELETE_FLAG = #deleteFlag# WHERE ID = #id#
</delete> </delete>
<update id="update"> <update id="update">
......
...@@ -112,6 +112,13 @@ $(function() { ...@@ -112,6 +112,13 @@ $(function() {
} }
} }
}); });
},
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'update'
||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
} }
} }
} }
......
...@@ -9,6 +9,11 @@ $(function () { ...@@ -9,6 +9,11 @@ $(function () {
} }
}], }],
loadComplete: function (grid) { loadComplete: function (grid) {
},
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
} }
} }
} }
......
...@@ -13,6 +13,11 @@ $(function () { ...@@ -13,6 +13,11 @@ $(function () {
}, },
columns: [], columns: [],
loadComplete: function (grid) { loadComplete: function (grid) {
},
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
} }
} }
......
...@@ -10,7 +10,12 @@ $(function () { ...@@ -10,7 +10,12 @@ $(function () {
}], }],
loadComplete: function (grid) { loadComplete: function (grid) {
} }
} },
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
}
} }
// 查询 // 查询
......
...@@ -80,7 +80,14 @@ $(function() { ...@@ -80,7 +80,14 @@ $(function() {
} }
}], }],
loadComplete: function (grid) { loadComplete: function (grid) {
} },
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'update'
||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
}
} }
} }
......
...@@ -186,6 +186,13 @@ $(function() { ...@@ -186,6 +186,13 @@ $(function() {
console.log(e.model.inventCode);*/ console.log(e.model.inventCode);*/
//e.preventDefault(); // 不关闭单元格 //e.preventDefault(); // 不关闭单元格
} }
},
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'update'
||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
} }
} }
} }
......
...@@ -13,6 +13,11 @@ $(function() { ...@@ -13,6 +13,11 @@ $(function() {
} }
}], }],
loadComplete: function (grid) { loadComplete: function (grid) {
},
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
} }
} }
} }
......
...@@ -34,7 +34,14 @@ $(function() { ...@@ -34,7 +34,14 @@ $(function() {
inInfo.set("field", options.field); inInfo.set("field", options.field);
refreshSelect(container, inInfo); refreshSelect(container, inInfo);
} }
}] }],
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'update'
||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
}
} }
}); });
......
...@@ -18,7 +18,14 @@ $(function() { ...@@ -18,7 +18,14 @@ $(function() {
template: function (options) { template: function (options) {
return showUserName(options.updatedBy, options.updatedName); return showUserName(options.updatedBy, options.updatedName);
} }
}] }],
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'update'
||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
}
} }
}); });
......
...@@ -18,7 +18,14 @@ $(function() { ...@@ -18,7 +18,14 @@ $(function() {
template: function (options) { template: function (options) {
return showUserName(options.updatedBy, options.updatedName); return showUserName(options.updatedBy, options.updatedName);
} }
}] }],
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'update'
||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
}
} }
}); });
......
...@@ -18,7 +18,14 @@ $(function() { ...@@ -18,7 +18,14 @@ $(function() {
template: function (options) { template: function (options) {
return showUserName(options.updatedBy, options.updatedName); return showUserName(options.updatedBy, options.updatedName);
} }
}] }],
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'update'
||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
}
} }
}); });
......
...@@ -69,7 +69,14 @@ $(function() { ...@@ -69,7 +69,14 @@ $(function() {
template: "#=textField#" template: "#=textField#"
}); });
} }
}] }],
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'update'
||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
}
} }
}); });
......
...@@ -18,7 +18,14 @@ $(function() { ...@@ -18,7 +18,14 @@ $(function() {
template: function (options) { template: function (options) {
return showUserName(options.updatedBy, options.updatedName); return showUserName(options.updatedBy, options.updatedName);
} }
}] }],
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'update'
||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
}
} }
}); });
......
...@@ -34,6 +34,13 @@ $(function () { ...@@ -34,6 +34,13 @@ $(function () {
// 阻止默认请求,使用自定义删除 // 阻止默认请求,使用自定义删除
e.preventDefault(); e.preventDefault();
deleteFunc(); deleteFunc();
},
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'update'
||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
} }
} }
......
...@@ -116,6 +116,13 @@ $(function () { ...@@ -116,6 +116,13 @@ $(function () {
// 阻止默认请求,使用自定义删除 // 阻止默认请求,使用自定义删除
e.preventDefault(); e.preventDefault();
deleteFunc(); deleteFunc();
},
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'update'
||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
} }
} }
......
...@@ -43,7 +43,14 @@ $(function () { ...@@ -43,7 +43,14 @@ $(function () {
// 阻止后台删除请求,使用自定义删除 // 阻止后台删除请求,使用自定义删除
e.preventDefault(); e.preventDefault();
deleteFunc(); deleteFunc();
} },
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'update'
||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
}
} }
} }
......
...@@ -51,8 +51,8 @@ ...@@ -51,8 +51,8 @@
<EF:EFInput ename="detail-0-actualCompletionTotalWt" cname="完成重量" colWidth="4" readonly="true"/> <EF:EFInput ename="detail-0-actualCompletionTotalWt" cname="完成重量" colWidth="4" readonly="true"/>
</div> </div>
<div class="row"> <div class="row">
<EF:EFDatePicker ename="detail-0-planCompletionDate" cname="计划完成日期" role="date" format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="4" disabled="true" /> <EF:EFDatePicker ename="detail-0-planCompletionDate" cname="计划完成日期" role="date" format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="4" readonly="true" />
<EF:EFDatePicker ename="detail-0-actualCompletionDate" cname="实际完成时间" role="date" format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="4" disabled="true" /> <EF:EFDatePicker ename="detail-0-actualCompletionDate" cname="实际完成时间" role="date" format="yyyy-MM-dd" parseFormats="['yyyyMMdd']" colWidth="4" readonly="true" />
</div> </div>
</EF:EFRegion> </EF:EFRegion>
</EF:EFPage> </EF:EFPage>
...@@ -176,7 +176,13 @@ $(function () { ...@@ -176,7 +176,13 @@ $(function () {
} }
} }
], ],
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'update'
||e.eiInfo.extAttr.methodName == 'insert'
||e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
}
} }
} }
......
...@@ -140,6 +140,11 @@ $(function () { ...@@ -140,6 +140,11 @@ $(function () {
// 阻止默认请求,使用自定义删除 // 阻止默认请求,使用自定义删除
e.preventDefault(); e.preventDefault();
deleteFunc(); deleteFunc();
},
onSuccess: function (e) {
if(e.eiInfo.extAttr.methodName == 'delete' ){
query();
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment