|
@@ -0,0 +1,28 @@
|
|
|
+shr.defineClass("shr.compensation.tax.taxUnit.TaxUnitListEx", shr.compensation.tax.taxUnit.TaxUnitList, {
|
|
|
+ initalizeDOM: function () {
|
|
|
+ shr.compensation.tax.taxUnit.TaxUnitListEx.superClass.initalizeDOM.call(this);
|
|
|
+ },
|
|
|
+
|
|
|
+ businessAegistrationAction: function () {
|
|
|
+ var billIds = $('#grid').jqGrid("getSelectedRows");
|
|
|
+ if (billIds.length == 1) {
|
|
|
+ var id = billIds[0];
|
|
|
+ var url = shr.getContextPath() + "/dynamic.do?handler=com.kingdee.eas.custom.shuiyou.TaxUnitListHandlerEx&method=businessAegistration";
|
|
|
+ url+='&id='+id
|
|
|
+ $.ajax({
|
|
|
+ url: url,
|
|
|
+ async: false,
|
|
|
+ success: function (response) {
|
|
|
+ console.log(response)
|
|
|
+ }
|
|
|
+ , error: function (response) {
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else if (billIds.length == 0) {
|
|
|
+ shr.showError({
|
|
|
+ hideAfter: 5,
|
|
|
+ message: "请至少x选中一行!"
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+});
|