From 2a19ea616341a32ded1ede8e16e56fba91758583 Mon Sep 17 00:00:00 2001 From: lisy <linlangsur163@163.com> Date: 星期四, 27 七月 2023 11:52:35 +0800 Subject: [PATCH] 前端代码去除其他语言 --- cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/acrossCity.js | 8 cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/sysCouponActivity_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tSysSensitiveWords/tSysSensitiveWords.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tCarModel/tCarModel_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tLine/tLine.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tNotices/tNotices_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tUserRedPacketRecord/tUserRedPacketRecord.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tVoice/tbVoice_info.js | 30 cloud-server-management/src/main/webapp/static/modular/system/tChatSetPage/tbChatSetPage.js | 8 cloud-server-management/src/main/webapp/static/modular/flowable/expense/expense_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/sysCouponActivity.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tLine/tLine_info.js | 30 cloud-server-management/src/main/webapp/static/modular/system/tOrderCrossCity/tOrderCrossCity_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriver.js | 8 cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/tUser.js | 24 cloud-server-management/src/main/webapp/WEB-INF/view/system/tUserRedPacketRecord/tUserRedPacketRecord.html | 8 cloud-server-management/src/main/webapp/static/modular/system/tOrderLogistics/tOrderLogistics_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tSmsrecord/tSmsrecord.js | 24 cloud-server-management/src/main/webapp/static/modular/system/userCouponRecord/userCouponRecord.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tChatSetPage/tbChatSetPage_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tCar/carInsuranceInfo.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tOrderEvaluate/tOrderEvaluate.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tVersionManagement/tVersionManagement.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tCarBrand/tCarBrand_info.js | 32 cloud-server-management/src/main/webapp/static/modular/flowable/process/process_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tUserRedPacketRecord/tUserRedPacketRecord_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/report/couponStatistics.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tOrderLogistics/tOrderLogistics.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tOpenCity/tOpenCity.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tSystemPrice/tSystemPrice.js | 8 cloud-server-management/src/main/webapp/static/modular/system/user/user.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tOrderCrossCity/tOrderCrossCity.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/tServerCarmodel_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tOrderPrivateCar/tOrderPrivateCar.js | 8 cloud-server-management/src/main/webapp/static/modular/system/driverActivity/yesDriver.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/charter_info.js | 30 cloud-server-management/src/main/webapp/static/modular/system/tSysSensitiveWords/tSysSensitiveWords_info.js | 16 cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriverVerify.js | 8 cloud-server-management/src/main/webapp/static/modular/system/driverActivityHistory/driverActivityHistory.js | 24 cloud-server-management/src/main/webapp/static/modular/system/notice/notice.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tComplaint/tComplaint.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompany.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tNotices/tNotices.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tFeedback/tFeedback.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tDriver/yesDriver_selectCar.js | 16 cloud-server-management/src/main/webapp/static/modular/system/tReassign/smallPieceLogistics.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tUserLargeCoupon/tUserLargeCoupon.js | 16 cloud-server-management/src/main/webapp/static/modular/system/tCompany/franchisee_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tAdvertisement/tAdvertisement_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tIntegralGoods/tIntegralGoods.js | 8 cloud-server-management/src/main/webapp/static/modular/system/sysCouponRecord/sysCouponRecord_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tAdvertisement/tAdvertisement.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tVerified/tVerified.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tMotorModel/tMotorModel_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompanyAudit_info.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tCar/tCar.js | 8 cloud-server-management/src/main/webapp/static/modular/system/userActivity/sysRedPacketRecord.js | 24 cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/sysCouponRecord.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tDriver/yesDriver_info.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tCompany/franchisee.js | 8 cloud-server-management/src/main/webapp/static/modular/system/userActivity/sysCouponRecord.js | 56 - cloud-server-management/src/main/webapp/static/modular/system/tGuidePage/tbGuidePage_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriverVerify_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tOrderPrivateCar/tOrderPrivateCar_info.js | 32 cloud-server-management/src/main/webapp/WEB-INF/view/system/driverActivity/driverActivity.html | 8 cloud-server-management/src/main/webapp/static/modular/system/tAgreement/tAgreement.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompanyAudit.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tSystemPrice/tSystemPriceService.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tbBanner/tbBanner_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/log/login_log.js | 8 cloud-server-management/src/main/webapp/static/modular/system/sysCouponRecord/sysCouponRecord.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/acrossCity_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tReassign/selectPrivateCarDriver.js | 14 cloud-server-management/src/main/webapp/static/modular/system/tUserLargeCoupon/tUserLargeCoupon_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/report/operationalData.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tSystemPrice/tSystemPrice_info.js | 30 cloud-server-management/src/main/webapp/static/modular/system/tFeedback/userFeedback.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tVerified/tVerified_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompany_info.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tOrderCharter/tOrderCharter.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tOrderTaxi/selectDriver.js | 14 cloud-server-management/src/main/webapp/static/modular/system/tReassign/selectCrossDriver.js | 14 cloud-server-management/src/main/webapp/static/modular/system/tUser/tUser_info.js | 48 cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/tServerCarmodel.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tReassign/tReassign_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tOrderTaxi/tOrderTaxi_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/userActivity/userActivity.js | 72 - cloud-server-management/src/main/webapp/static/modular/system/tOrderCharteredCar/tOrderCharteredCar.js | 8 cloud-server-management/src/main/webapp/static/modular/system/notice/notice_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tDispatch/tDispatch_info.js | 30 cloud-server-management/src/main/webapp/static/modular/system/tIntegralGoods/tIntegralGoods_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/dict/dict.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tWithout/tWithout.js | 8 cloud-server-management/src/main/webapp/static/modular/system/dict/dict_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tCarBrand/tCarBrand.js | 8 cloud-server-management/src/main/webapp/static/modular/system/sysRedPacketRecord/sysRedPacketRecord.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tCity/tCity_info.js | 16 cloud-server-management/src/main/webapp/static/modular/system/tCar/carInsurance.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tSmsrecord/tSmsrecord_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tCarModel/tCarModel.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tGuidePage/tbGuidePage.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tProblem/tProblem.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tInvoice/tInvoice.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tIntegralOrder/tIntegralOrder.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tNotices/system.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tReassign/selectSmallDriver.js | 14 cloud-server-management/src/main/webapp/static/modular/system/tStartPage/tbStartPage_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tOpenCity/tOpenCity_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/log/log.js | 8 cloud-server-management/src/main/webapp/WEB-INF/view/system/userCouponRecord/userCouponRecord.html | 8 cloud-server-management/src/main/webapp/static/modular/system/tMotorModel/tMotorModel.js | 8 cloud-server-management/src/main/webapp/static/modular/system/userActivity/userActivity_info.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tReassign/tReassign.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/charter.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tNotices/system_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition_info.js | 16 cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriver_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/report/couponStatisticsInfo.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tStartPage/tbStartPage.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tUserExit/tbUserExit_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tOrderTaxi/tOrderTaxi.js | 8 cloud-server-management/src/main/webapp/static/modular/system/driverActivity/driverActivity_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tAgreement/tAgreement_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tHotAddress/tbHotAddress.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tUserExit/tbUserExit.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tHotAddress/tbHotAddress_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tVersionManagement/tVersionManagement_info.js | 24 cloud-server-management/src/main/webapp/static/modular/system/tReassign/tCross.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tbBanner/tbBanner.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tDriver/yesDriver.js | 8 cloud-server-management/src/main/webapp/static/modular/system/user/user_info.js | 48 cloud-server-management/src/main/webapp/WEB-INF/view/system/userActivity/userActivity.html | 8 cloud-server-management/src/main/webapp/static/modular/system/driverActivity/driverActivity.js | 80 - cloud-server-management/src/main/webapp/static/modular/system/tOrderEvaluate/tOrderEvaluate_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tInvoice/tInvoice_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tDispatch/tDispatch.js | 8 cloud-server-management/src/main/webapp/static/modular/system/tVoice/tbVoice.js | 8 cloud-server-management/src/main/webapp/static/modular/system/sysRedPacketRecord/sysRedPacketRecord_info.js | 32 cloud-server-management/src/main/webapp/static/modular/system/tCar/tCar_info.js | 16 141 files changed, 349 insertions(+), 2,529 deletions(-) diff --git a/cloud-server-management/src/main/webapp/WEB-INF/view/system/driverActivity/driverActivity.html b/cloud-server-management/src/main/webapp/WEB-INF/view/system/driverActivity/driverActivity.html index 7be6ea8..34c718a 100644 --- a/cloud-server-management/src/main/webapp/WEB-INF/view/system/driverActivity/driverActivity.html +++ b/cloud-server-management/src/main/webapp/WEB-INF/view/system/driverActivity/driverActivity.html @@ -4,15 +4,7 @@ <div class="ibox float-e-margins"> <div class="ibox-title"> - @if(language==1){ <h5>管理</h5> - @} - @if(language==2){ - <h5>Administration</h5> - @} - @if(language==3){ - <h5>Administrasi</h5> - @} </div> <div class="ibox-content"> <div class="row row-lg"> diff --git a/cloud-server-management/src/main/webapp/WEB-INF/view/system/tUserRedPacketRecord/tUserRedPacketRecord.html b/cloud-server-management/src/main/webapp/WEB-INF/view/system/tUserRedPacketRecord/tUserRedPacketRecord.html index aa88119..8edb91d 100644 --- a/cloud-server-management/src/main/webapp/WEB-INF/view/system/tUserRedPacketRecord/tUserRedPacketRecord.html +++ b/cloud-server-management/src/main/webapp/WEB-INF/view/system/tUserRedPacketRecord/tUserRedPacketRecord.html @@ -4,15 +4,7 @@ <div class="ibox float-e-margins"> <div class="ibox-title"> - @if(language==1){ <h5>管理</h5> - @} - @if(language==2){ - <h5>Administration</h5> - @} - @if(language==3){ - <h5>Administrasi</h5> - @} </div> <div class="ibox-content"> <div class="row row-lg"> diff --git a/cloud-server-management/src/main/webapp/WEB-INF/view/system/userActivity/userActivity.html b/cloud-server-management/src/main/webapp/WEB-INF/view/system/userActivity/userActivity.html index fba9272..5fd1584 100644 --- a/cloud-server-management/src/main/webapp/WEB-INF/view/system/userActivity/userActivity.html +++ b/cloud-server-management/src/main/webapp/WEB-INF/view/system/userActivity/userActivity.html @@ -6,15 +6,7 @@ <input hidden id="id" value="${id}"> <div class="ibox-title"> - @if(language==1){ <h5>管理</h5> - @} - @if(language==2){ - <h5>Administration</h5> - @} - @if(language==3){ - <h5>Administrasi</h5> - @} </div> <div class="ibox-content"> <div class="row row-lg"> diff --git a/cloud-server-management/src/main/webapp/WEB-INF/view/system/userCouponRecord/userCouponRecord.html b/cloud-server-management/src/main/webapp/WEB-INF/view/system/userCouponRecord/userCouponRecord.html index f414954..54f4fb8 100644 --- a/cloud-server-management/src/main/webapp/WEB-INF/view/system/userCouponRecord/userCouponRecord.html +++ b/cloud-server-management/src/main/webapp/WEB-INF/view/system/userCouponRecord/userCouponRecord.html @@ -4,15 +4,7 @@ <div class="ibox float-e-margins"> <div class="ibox-title"> - @if(language==1){ <h5>管理</h5> - @} - @if(language==2){ - <h5>Administration</h5> - @} - @if(language==3){ - <h5>Administrasi</h5> - @} </div> <div class="ibox-content"> <div class="row row-lg"> diff --git a/cloud-server-management/src/main/webapp/static/modular/flowable/expense/expense_info.js b/cloud-server-management/src/main/webapp/static/modular/flowable/expense/expense_info.js index fb7ea67..1e9b018 100644 --- a/cloud-server-management/src/main/webapp/static/modular/flowable/expense/expense_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/flowable/expense/expense_info.js @@ -61,23 +61,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/expense/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.Expense.table.refresh(); ExpenseInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.expenseInfoData); ajax.start(); @@ -93,23 +81,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/expense/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.Expense.table.refresh(); ExpenseInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.expenseInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/flowable/process/process_info.js b/cloud-server-management/src/main/webapp/static/modular/flowable/process/process_info.js index fb7ea67..1e9b018 100644 --- a/cloud-server-management/src/main/webapp/static/modular/flowable/process/process_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/flowable/process/process_info.js @@ -61,23 +61,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/expense/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.Expense.table.refresh(); ExpenseInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.expenseInfoData); ajax.start(); @@ -93,23 +81,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/expense/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.Expense.table.refresh(); ExpenseInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.expenseInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/dict/dict.js b/cloud-server-management/src/main/webapp/static/modular/system/dict/dict.js index 52a750f..e5b81d9 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/dict/dict.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/dict/dict.js @@ -26,13 +26,7 @@ Dict.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if (selected.length == 0) { - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; } else { diff --git a/cloud-server-management/src/main/webapp/static/modular/system/dict/dict_info.js b/cloud-server-management/src/main/webapp/static/modular/system/dict/dict_info.js index 62b817f..5f2cfdf 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/dict/dict_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/dict/dict_info.js @@ -84,23 +84,11 @@ this.collectData(); //提交信息 var ajax = new $ax(Feng.ctxPath + "/dict/add", function (data) { - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.Dict.table.refresh(); DictInfoDlg.close(); }, function (data) { - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set('dictName',this.dictName); ajax.set('dictCode',this.dictCode); @@ -115,23 +103,11 @@ DictInfoDlg.editSubmit = function () { this.collectData(); var ajax = new $ax(Feng.ctxPath + "/dict/update", function (data) { - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.Dict.table.refresh(); DictInfoDlg.close(); }, function (data) { - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set('dictId',$("#dictId").val()); ajax.set('dictName',this.dictName); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/driverActivity/driverActivity.js b/cloud-server-management/src/main/webapp/static/modular/system/driverActivity/driverActivity.js index 027a6aa..3270b6d 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/driverActivity/driverActivity.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/driverActivity/driverActivity.js @@ -109,13 +109,7 @@ DriverActivity.check = function (type) { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ //验证类型null删除,1=审核,2=编辑,3=启动/暂停 @@ -123,40 +117,16 @@ DriverActivity.seItem = selected[0]; return true; }else if(type==3 && selected[0].status!=3 && selected[0].status!=4){ - if(language==1){ - Feng.info("当前状态不能暂停/启动!"); - }else if(language==2){ - Feng.info("The current state cannot be suspended/ started!"); - }else { - Feng.info("Keadaan saat ini tidak dapat ditangguhkan/ dimulai!"); - } + Feng.info("当前状态不能暂停/启动!"); return false; }else if(type==3 && selected[0].status==3 && (selected[0].startTime>new Date() || new Date()>selected[0].endTime)){ - if(language==1){ - Feng.info("当前状态不能暂停/启动!"); - }else if(language==2){ - Feng.info("The current state cannot be suspended/ started!"); - }else { - Feng.info("Keadaan saat ini tidak dapat ditangguhkan/ dimulai!"); - } + Feng.info("当前状态不能暂停/启动!"); return false; }else if(type==1 && selected[0].status!=1){ - if(language==1){ - Feng.info("当前状态不能审核!"); - }else if(language==2){ - Feng.info("The current status cannot be audited!"); - }else { - Feng.info("Status saat ini tidak dapat diaudisikan!"); - } + Feng.info("当前状态不能审核!"); return false; }else if(type==2 && selected[0].status!=2){ - if(language==1){ - Feng.info("当前状态不能编辑!"); - }else if(language==2){ - Feng.info("The current status cannot be edited!"); - }else { - Feng.info("Status saat ini tidak dapat diedit!"); - } + Feng.info("当前状态不能编辑!"); return false; } DriverActivity.seItem = selected[0]; @@ -201,13 +171,7 @@ if (this.check(null)) { if(a == 2 &&DriverActivity.seItem.status!=1){ - if(language==1){ - Feng.info("请在待审核状态下操作") - }else if(language==2){ - Feng.info("Please operate in the pending state") - }else { - Feng.info("Silakan beroperasi dalam keadaan menunggu") - } + Feng.info("请在待审核状态下操作") return; } @@ -229,22 +193,10 @@ DriverActivity.delete = function () { if (this.check()) { var ajax = new $ax(Feng.ctxPath + "/driverActivity/delete", function (data) { - if(language==1){ - Feng.success("删除成功!"); - }else if(language==2){ - Feng.success("Delete succeeded!"); - }else { - Feng.success("Hapus berhasil!"); - } + Feng.success("删除成功!"); DriverActivity.table.refresh(); }, function (data) { - if(language==1){ - Feng.error("删除失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Delete failed!" + data.responseJSON.message + "!"); - }else { - Feng.error("Hapus gagal!" + data.responseJSON.message + "!"); - } + Feng.error("删除失败!" + data.responseJSON.message + "!"); }); ajax.set("driverActivityId",this.seItem.id); ajax.start(); @@ -257,23 +209,11 @@ DriverActivity.updateStatus = function () { if (this.check(3)) { var ajax = new $ax(Feng.ctxPath + "/driverActivity/updateStatus", function (data) { - if(language==1){ - Feng.success("启动/暂停成功!"); - }else if(language==2){ - Feng.success("Start/pause successfully!"); - }else { - Feng.success("Mulai/berhenti dengan sukses!"); - } + Feng.success("启动/暂停成功!"); DriverActivity.table.refresh(); }, function (data) { - if(language==1){ - Feng.success("启动/暂停失败!"); - }else if(language==2){ - Feng.success("Failed to start/pause!"); - }else { - Feng.success("Gagal memulai/berhenti!"); - } + Feng.success("启动/暂停失败!"); }); ajax.set("id",this.seItem.id); ajax.set("status",this.seItem.status==3?4:3); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/driverActivity/driverActivity_info.js b/cloud-server-management/src/main/webapp/static/modular/system/driverActivity/driverActivity_info.js index 369705c..caf84c3 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/driverActivity/driverActivity_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/driverActivity/driverActivity_info.js @@ -317,23 +317,11 @@ // 提交信息 var ajax = new $ax(Feng.ctxPath + "/driverActivity/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.DriverActivity.table.refresh(); DriverActivityInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set("name",name); ajax.set("createTime",createTime); @@ -584,23 +572,11 @@ // 提交信息 var ajax = new $ax(Feng.ctxPath + "/driverActivity/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.DriverActivity.table.refresh(); DriverActivityInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set("name",name); ajax.set("createTime",createTime); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/driverActivity/yesDriver.js b/cloud-server-management/src/main/webapp/static/modular/system/driverActivity/yesDriver.js index 303c8b7..f3bffa4 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/driverActivity/yesDriver.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/driverActivity/yesDriver.js @@ -167,13 +167,7 @@ YesDriver.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ @@ -234,13 +228,7 @@ YesDriver.selectUserOpt = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if (selected.length == 0) { - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; } @@ -250,13 +238,7 @@ var nickName = selected[0].driverName; var phone = selected[0].phone; if ("" == id || null == id || undefined == id){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return ; } diff --git a/cloud-server-management/src/main/webapp/static/modular/system/driverActivityHistory/driverActivityHistory.js b/cloud-server-management/src/main/webapp/static/modular/system/driverActivityHistory/driverActivityHistory.js index 5554ce9..0c74c6a 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/driverActivityHistory/driverActivityHistory.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/driverActivityHistory/driverActivityHistory.js @@ -47,13 +47,7 @@ DriverActivityHistory.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ @@ -100,22 +94,10 @@ DriverActivityHistory.delete = function () { if (this.check()) { var ajax = new $ax(Feng.ctxPath + "/driverActivityHistory/delete", function (data) { - if(language==1){ - Feng.success("删除成功!"); - }else if(language==2){ - Feng.success("Delete succeeded!"); - }else { - Feng.success("Hapus berhasil!"); - } + Feng.success("删除成功!"); DriverActivityHistory.table.refresh(); }, function (data) { - if(language==1){ - Feng.error("删除失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Delete failed!" + data.responseJSON.message + "!"); - }else { - Feng.error("Hapus gagal!" + data.responseJSON.message + "!"); - } + Feng.error("删除失败!" + data.responseJSON.message + "!"); }); ajax.set("driverActivityHistoryId",this.seItem.id); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/log/log.js b/cloud-server-management/src/main/webapp/static/modular/system/log/log.js index 1531b0e..0293f37 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/log/log.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/log/log.js @@ -31,13 +31,7 @@ OptLog.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ diff --git a/cloud-server-management/src/main/webapp/static/modular/system/log/login_log.js b/cloud-server-management/src/main/webapp/static/modular/system/log/login_log.js index baaf59d..5aac181 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/log/login_log.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/log/login_log.js @@ -28,13 +28,7 @@ LoginLog.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if (selected.length == 0) { - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; } else { diff --git a/cloud-server-management/src/main/webapp/static/modular/system/notice/notice.js b/cloud-server-management/src/main/webapp/static/modular/system/notice/notice.js index a36c088..7b3083f 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/notice/notice.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/notice/notice.js @@ -28,13 +28,7 @@ Notice.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if (selected.length == 0) { - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; } else { diff --git a/cloud-server-management/src/main/webapp/static/modular/system/notice/notice_info.js b/cloud-server-management/src/main/webapp/static/modular/system/notice/notice_info.js index 85ee2f9..bd120e8 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/notice/notice_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/notice/notice_info.js @@ -82,23 +82,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/notice/add", function (data) { - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.Notice.table.refresh(); NoticeInfoDlg.close(); }, function (data) { - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.noticeInfoData); ajax.start(); @@ -118,23 +106,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/notice/update", function (data) { - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.Notice.table.refresh(); NoticeInfoDlg.close(); }, function (data) { - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.noticeInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/report/couponStatistics.js b/cloud-server-management/src/main/webapp/static/modular/system/report/couponStatistics.js index e7c2052..5cf904b 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/report/couponStatistics.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/report/couponStatistics.js @@ -42,13 +42,7 @@ CouponStatistics.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ diff --git a/cloud-server-management/src/main/webapp/static/modular/system/report/couponStatisticsInfo.js b/cloud-server-management/src/main/webapp/static/modular/system/report/couponStatisticsInfo.js index 779e170..6525339 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/report/couponStatisticsInfo.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/report/couponStatisticsInfo.js @@ -18,13 +18,7 @@ CouponStatisticsInfo.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ diff --git a/cloud-server-management/src/main/webapp/static/modular/system/report/operationalData.js b/cloud-server-management/src/main/webapp/static/modular/system/report/operationalData.js index 6608e43..55454fd 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/report/operationalData.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/report/operationalData.js @@ -44,13 +44,7 @@ OperationalData.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ diff --git a/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/sysCouponActivity.js b/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/sysCouponActivity.js index 4b9d8b6..a28a830 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/sysCouponActivity.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/sysCouponActivity.js @@ -131,13 +131,7 @@ SysCouponActivity.check = function (type) { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ @@ -147,13 +141,7 @@ return true; }else if(type==1 && selected[0].status!=1){ - if(language==1){ - Feng.info("当前状态不能审核!"); - }else if(language==2){ - Feng.info("The current status cannot be audited!"); - }else { - Feng.info("Status saat ini tidak dapat diaudisikan!"); - } + Feng.info("当前状态不能审核!"); return false; }else if(type==2 && selected[0].status!=2){ var companyId = $("#companyId").val() @@ -168,13 +156,7 @@ } } - if(language==1){ - Feng.info("当前状态不能编辑!"); - }else if(language==2){ - Feng.info("The current status cannot be edited!"); - }else { - Feng.info("Status saat ini tidak dapat diedit!"); - } + Feng.info("当前状态不能编辑!"); return false; } diff --git a/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/sysCouponActivity_info.js b/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/sysCouponActivity_info.js index 0597d01..510883e 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/sysCouponActivity_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/sysCouponActivity_info.js @@ -153,23 +153,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/sysCouponActivity/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.SysCouponActivity.table.refresh(); SysCouponActivityInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.sysCouponActivityInfoData); ajax.set("activityId",activityId); @@ -224,23 +212,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/sysCouponActivity/update", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.SysCouponActivity.table.refresh(); SysCouponActivityInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.sysCouponActivityInfoData); ajax.set("activityId",activityId); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/sysCouponRecord.js b/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/sysCouponRecord.js index 2a440f6..624c084 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/sysCouponRecord.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/sysCouponRecord.js @@ -108,13 +108,7 @@ SysCouponRecord.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ @@ -136,13 +130,7 @@ SysCouponRecord.selectCouponOpt = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if (selected.length == 0) { - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; } var id = selected[0].id; @@ -150,13 +138,7 @@ var couponType = selected[0].couponType; var money = selected[0].money; if ("" == id || null == id || undefined == id){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - }return ; + Feng.info("请先选中表格中的某一记录!");return ; } var obj = $("#obj").val(); window.parent.SysCouponActivityInfoDlg.selectCouponOpt(id,couponUseType,couponType,money); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/tUser.js b/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/tUser.js index eca00b8..283c0dd 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/tUser.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/sysCouponActivity/tUser.js @@ -198,13 +198,7 @@ TUser.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TUser.seItem = selected[0]; @@ -224,13 +218,7 @@ TUser.selectUserOpt = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if (selected.length == 0) { - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; } var id = selected[0].id; @@ -239,13 +227,7 @@ var nickName = selected[0].nickName; var phone = selected[0].phone; if ("" == id || null == id || undefined == id){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return ; } var obj = $("#obj").val(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/sysCouponRecord/sysCouponRecord.js b/cloud-server-management/src/main/webapp/static/modular/system/sysCouponRecord/sysCouponRecord.js index 382fc89..6017c1b 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/sysCouponRecord/sysCouponRecord.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/sysCouponRecord/sysCouponRecord.js @@ -142,13 +142,7 @@ SysCouponRecord.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ SysCouponRecord.seItem = selected[0]; @@ -175,13 +169,7 @@ SysCouponRecord.audit = function () { if (this.check()) { if(SysCouponRecord.seItem.status!=1){ - if(language==1){ - Feng.info("请在待审核状态下操作") - }else if(language==2){ - Feng.info("Please operate in the pending state") - }else { - Feng.info("Silakan beroperasi dalam keadaan menunggu") - } + Feng.info("请在待审核状态下操作") return; } var index = layer.open({ @@ -219,22 +207,10 @@ SysCouponRecord.delete = function () { if (this.check()) { var ajax = new $ax(Feng.ctxPath + "/sysCouponRecord/delete", function (data) { - if(language==1){ - Feng.success("删除成功!"); - }else if(language==2){ - Feng.success("Delete succeeded!"); - }else { - Feng.success("Hapus berhasil!"); - } + Feng.success("删除成功!"); SysCouponRecord.table.refresh(); }, function (data) { - if(language==1){ - Feng.error("删除失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Delete failed!" + data.responseJSON.message + "!"); - }else { - Feng.error("Hapus gagal!" + data.responseJSON.message + "!"); - } + Feng.error("删除失败!" + data.responseJSON.message + "!"); }); ajax.set("sysCouponRecordId",this.seItem.id); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/sysCouponRecord/sysCouponRecord_info.js b/cloud-server-management/src/main/webapp/static/modular/system/sysCouponRecord/sysCouponRecord_info.js index aa8c45b..69d6bd1 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/sysCouponRecord/sysCouponRecord_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/sysCouponRecord/sysCouponRecord_info.js @@ -168,23 +168,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/sysCouponRecord/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.SysCouponRecord.table.refresh(); SysCouponRecordInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.sysCouponRecordInfoData); ajax.set("language",$("#yy").val()); @@ -201,23 +189,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/sysCouponRecord/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.SysCouponRecord.table.refresh(); SysCouponRecordInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.sysCouponRecordInfoData); ajax.set("language",$("#yy").val()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/sysRedPacketRecord/sysRedPacketRecord.js b/cloud-server-management/src/main/webapp/static/modular/system/sysRedPacketRecord/sysRedPacketRecord.js index c560c63..393baff 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/sysRedPacketRecord/sysRedPacketRecord.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/sysRedPacketRecord/sysRedPacketRecord.js @@ -65,13 +65,7 @@ SysRedPacketRecord.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ SysRedPacketRecord.seItem = selected[0]; @@ -117,22 +111,10 @@ SysRedPacketRecord.delete = function () { if (this.check()) { var ajax = new $ax(Feng.ctxPath + "/sysRedPacketRecord/delete", function (data) { - if(language==1){ - Feng.success("删除成功!"); - }else if(language==2){ - Feng.success("Delete succeeded!"); - }else { - Feng.success("Hapus berhasil!"); - } + Feng.success("删除成功!"); SysRedPacketRecord.table.refresh(); }, function (data) { - if(language==1){ - Feng.error("删除失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Delete failed!" + data.responseJSON.message + "!"); - }else { - Feng.error("Hapus gagal!" + data.responseJSON.message + "!"); - } + Feng.error("删除失败!" + data.responseJSON.message + "!"); }); ajax.set("sysRedPacketRecordId",this.seItem.id); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/sysRedPacketRecord/sysRedPacketRecord_info.js b/cloud-server-management/src/main/webapp/static/modular/system/sysRedPacketRecord/sysRedPacketRecord_info.js index 8085d25..f1ff67b 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/sysRedPacketRecord/sysRedPacketRecord_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/sysRedPacketRecord/sysRedPacketRecord_info.js @@ -177,23 +177,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/sysRedPacketRecord/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.SysRedPacketRecord.table.refresh(); SysRedPacketRecordInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.sysRedPacketRecordInfoData); ajax.start(); @@ -209,23 +197,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/sysRedPacketRecord/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.SysRedPacketRecord.table.refresh(); SysRedPacketRecordInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.sysRedPacketRecordInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tAdvertisement/tAdvertisement.js b/cloud-server-management/src/main/webapp/static/modular/system/tAdvertisement/tAdvertisement.js index 6123fcb..e2fc99c 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tAdvertisement/tAdvertisement.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tAdvertisement/tAdvertisement.js @@ -179,13 +179,7 @@ TAdvertisement.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TAdvertisement.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tAdvertisement/tAdvertisement_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tAdvertisement/tAdvertisement_info.js index d3b2cc7..59dbc84 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tAdvertisement/tAdvertisement_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tAdvertisement/tAdvertisement_info.js @@ -187,23 +187,11 @@ var ajax = new $ax(Feng.ctxPath + "/tAdvertisement/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TAdvertisement.table.refresh(); TAdvertisementInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tAdvertisementInfoData); ajax.set("cityId",twoId); @@ -235,23 +223,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tAdvertisement/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TAdvertisement.table.refresh(); TAdvertisementInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tAdvertisementInfoData); ajax.set("cityId",twoId); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tAgreement/tAgreement.js b/cloud-server-management/src/main/webapp/static/modular/system/tAgreement/tAgreement.js index 6aef4dc..b241c90 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tAgreement/tAgreement.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tAgreement/tAgreement.js @@ -32,13 +32,7 @@ TAgreement.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TAgreement.seItem = selected[0]; @@ -84,22 +78,10 @@ TAgreement.delete = function () { if (this.check()) { var ajax = new $ax(Feng.ctxPath + "/tAgreement/delete", function (data) { - if(language==1){ - Feng.success("删除成功!"); - }else if(language==2){ - Feng.success("Delete succeeded!"); - }else { - Feng.success("Hapus berhasil!"); - } + Feng.success("删除成功!"); TAgreement.table.refresh(); }, function (data) { - if(language==1){ - Feng.error("删除失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Delete failed!" + data.responseJSON.message + "!"); - }else { - Feng.error("Hapus gagal!" + data.responseJSON.message + "!"); - } + Feng.error("删除失败!" + data.responseJSON.message + "!"); }); ajax.set("tAgreementId",this.seItem.id); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tAgreement/tAgreement_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tAgreement/tAgreement_info.js index 58d48eb..74f2a09 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tAgreement/tAgreement_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tAgreement/tAgreement_info.js @@ -66,23 +66,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tAgreement/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TAgreement.table.refresh(); TAgreementInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tAgreementInfoData); ajax.start(); @@ -98,23 +86,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tAgreement/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TAgreement.table.refresh(); TAgreementInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tAgreementInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCar/carInsurance.js b/cloud-server-management/src/main/webapp/static/modular/system/tCar/carInsurance.js index dce62b5..b9a14a5 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCar/carInsurance.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCar/carInsurance.js @@ -30,13 +30,7 @@ CarInsurance.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ CarInsurance.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCar/carInsuranceInfo.js b/cloud-server-management/src/main/webapp/static/modular/system/tCar/carInsuranceInfo.js index 7969a43..2c9bbf0 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCar/carInsuranceInfo.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCar/carInsuranceInfo.js @@ -47,23 +47,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tCar/saveCarInsurance", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.CarInsurance.table.refresh(); CarInsuranceInfo.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tCarInfoData); ajax.setData({ @@ -93,13 +81,7 @@ $('#insurEff').val(s.insurEff.split(" ")[0]); $('#insurExp').val(s.insurExp.split(" ")[0]); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tCarInfoData); ajax.setData({ diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCar/tCar.js b/cloud-server-management/src/main/webapp/static/modular/system/tCar/tCar.js index 113051a..78b3dc7 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCar/tCar.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCar/tCar.js @@ -171,13 +171,7 @@ TCar.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TCar.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCar/tCar_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tCar/tCar_info.js index 0a2aa88..53f4389 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCar/tCar_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCar/tCar_info.js @@ -232,13 +232,7 @@ } },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tCarInfoData); ajax.set("serverBox",serverBox.toString()); @@ -344,13 +338,7 @@ Feng.error(data.msg); } },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tCarInfoData); ajax.set("serverBox",serverBox.toString()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCarBrand/tCarBrand.js b/cloud-server-management/src/main/webapp/static/modular/system/tCarBrand/tCarBrand.js index 74414bf..75fb9af 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCarBrand/tCarBrand.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCarBrand/tCarBrand.js @@ -91,13 +91,7 @@ TCarBrand.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TCarBrand.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCarBrand/tCarBrand_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tCarBrand/tCarBrand_info.js index 3d40fe4..b1d4d46 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCarBrand/tCarBrand_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCarBrand/tCarBrand_info.js @@ -123,23 +123,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tCarBrand/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TCarBrand.table.refresh(); TCarBrandInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tCarBrandInfoData); ajax.set("language",$("#yy").val()); @@ -169,23 +157,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tCarBrand/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TCarBrand.table.refresh(); TCarBrandInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tCarBrandInfoData); ajax.set("language",$("#yy").val()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCarModel/tCarModel.js b/cloud-server-management/src/main/webapp/static/modular/system/tCarModel/tCarModel.js index 6165ca7..b1bf0fc 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCarModel/tCarModel.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCarModel/tCarModel.js @@ -88,13 +88,7 @@ TCarModel.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TCarModel.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCarModel/tCarModel_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tCarModel/tCarModel_info.js index c9a8ec6..b636a33 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCarModel/tCarModel_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCarModel/tCarModel_info.js @@ -106,23 +106,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tCarModel/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TCarModel.table.refresh(); TCarModelInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tCarModelInfoData); ajax.set("language",$("#yy").val()); @@ -141,23 +129,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tCarModel/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TCarModel.table.refresh(); TCarModelInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tCarModelInfoData); ajax.set("language",$("#yy").val()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tChatSetPage/tbChatSetPage.js b/cloud-server-management/src/main/webapp/static/modular/system/tChatSetPage/tbChatSetPage.js index bbfb04f..d4ec1c8 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tChatSetPage/tbChatSetPage.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tChatSetPage/tbChatSetPage.js @@ -81,13 +81,7 @@ TChatSetPage.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TChatSetPage.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tChatSetPage/tbChatSetPage_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tChatSetPage/tbChatSetPage_info.js index c9fc79f..9e445e8 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tChatSetPage/tbChatSetPage_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tChatSetPage/tbChatSetPage_info.js @@ -90,23 +90,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/TChatSet/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TChatSetPage.table.refresh(); TbChatSetPageDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set("type",type); ajax.set("content",content); @@ -149,23 +137,11 @@ let yy = $("#yy").val() //提交信息 var ajax = new $ax(Feng.ctxPath + "/TChatSet/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TChatSetPage.table.refresh(); TbChatSetPageDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set("id",id); ajax.set("type",type); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCity/tCity_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tCity/tCity_info.js index 400699d..28372a8 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCity/tCity_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCity/tCity_info.js @@ -133,13 +133,7 @@ } },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tCarInfoData); ajax.set("provinceCode",pCode); @@ -229,13 +223,7 @@ Feng.error(data.msg); } },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tCarInfoData); ajax.set("serverBox",serverBox.toString()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCompany/franchisee.js b/cloud-server-management/src/main/webapp/static/modular/system/tCompany/franchisee.js index 3627f86..b8b0847 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCompany/franchisee.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCompany/franchisee.js @@ -165,13 +165,7 @@ Franchisee.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ Franchisee.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCompany/franchisee_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tCompany/franchisee_info.js index c1f589c..55ed1e9 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCompany/franchisee_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCompany/franchisee_info.js @@ -342,23 +342,11 @@ } return; } - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.Franchisee.table.refresh(); FranchiseeInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(FranchiseeInfoDlg.franchiseeInfoData); if (checkbox1){ @@ -598,23 +586,11 @@ } return; } - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.Franchisee.table.refresh(); FranchiseeInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(FranchiseeInfoDlg.franchiseeInfoData); if (checkbox1){ diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompany.js b/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompany.js index f3b0cda..6faacbe 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompany.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompany.js @@ -185,13 +185,7 @@ TCompany.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TCompany.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompanyAudit.js b/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompanyAudit.js index 4a56e3e..7025932 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompanyAudit.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompanyAudit.js @@ -214,13 +214,7 @@ TCompanyAudit.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TCompanyAudit.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompanyAudit_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompanyAudit_info.js index f6de12d..c50ae52 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompanyAudit_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompanyAudit_info.js @@ -271,13 +271,7 @@ } return; } - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TCompanyAudit.table.refresh(); TCompanyAuditInfoDlg.close(); },function(data){ @@ -503,23 +497,11 @@ } return; } - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TCompanyAudit.table.refresh(); TCompanyAuditInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(TCompanyAuditInfoDlg.tCompanyAuditInfoData); if (checkbox1){ diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompany_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompany_info.js index 739c3f1..e44f8b2 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompany_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCompany/tCompany_info.js @@ -319,13 +319,7 @@ } return; } - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TCompany.table.refresh(); TCompanyInfoDlg.close(); },function(data){ @@ -551,23 +545,11 @@ } return; } - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TCompany.table.refresh(); TCompanyInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(TCompanyInfoDlg.tCompanyInfoData); if (checkbox1){ diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition_info.js index 0b9bddd..d649158 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetition_info.js @@ -232,13 +232,7 @@ } },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tCarInfoData); ajax.set("serverBox",serverBox.toString()); @@ -344,13 +338,7 @@ Feng.error(data.msg); } },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tCarInfoData); ajax.set("serverBox",serverBox.toString()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tComplaint/tComplaint.js b/cloud-server-management/src/main/webapp/static/modular/system/tComplaint/tComplaint.js index 67802ac..296696a 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tComplaint/tComplaint.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tComplaint/tComplaint.js @@ -129,13 +129,7 @@ TComplaint.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TComplaint.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tDispatch/tDispatch.js b/cloud-server-management/src/main/webapp/static/modular/system/tDispatch/tDispatch.js index c5c3850..da0ef7e 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tDispatch/tDispatch.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tDispatch/tDispatch.js @@ -94,13 +94,7 @@ TDispatch.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TDispatch.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tDispatch/tDispatch_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tDispatch/tDispatch_info.js index 5d9d283..765e9da 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tDispatch/tDispatch_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tDispatch/tDispatch_info.js @@ -156,24 +156,12 @@ Feng.error(data.message); return ; } else { - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TDispatch.table.refresh(); TDispatchInfoDlg.close(); } },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tDispatchInfoData); if (1 == roleType){ @@ -211,24 +199,12 @@ Feng.error(data.message); return ; } else { - if(language==1){ Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } window.parent.TDispatch.table.refresh(); TDispatchInfoDlg.close(); } },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tDispatchInfoData); if (1 == roleType){ diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriver.js b/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriver.js index 6c34a14..8d4bdf6 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriver.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriver.js @@ -247,13 +247,7 @@ TDriver.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TDriver.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriverVerify.js b/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriverVerify.js index ac820a9..c3c33a1 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriverVerify.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriverVerify.js @@ -182,13 +182,7 @@ TDriverVerify.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TDriverVerify.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriverVerify_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriverVerify_info.js index d3164c9..82d14a1 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriverVerify_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriverVerify_info.js @@ -192,23 +192,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tDriverVerify/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TDriverVerify.table.refresh(); TDriverVerifyInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tDriverVerifyInfoData); ajax.start(); @@ -224,23 +212,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tDriverVerify/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TDriverVerify.table.refresh(); TDriverVerifyInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tDriverVerifyInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriver_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriver_info.js index dd4893d..00ea22d 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriver_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tDriver/tDriver_info.js @@ -149,23 +149,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tDriver/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TDriver.table.refresh(); TDriverInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tDriverInfoData); ajax.start(); @@ -181,23 +169,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tDriver/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TDriver.table.refresh(); TDriverInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tDriverInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tDriver/yesDriver.js b/cloud-server-management/src/main/webapp/static/modular/system/tDriver/yesDriver.js index c7e51be..e7e8674 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tDriver/yesDriver.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tDriver/yesDriver.js @@ -173,13 +173,7 @@ YesDriver.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ YesDriver.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tDriver/yesDriver_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tDriver/yesDriver_info.js index 814c5d3..cd5f610 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tDriver/yesDriver_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tDriver/yesDriver_info.js @@ -335,13 +335,7 @@ return; } - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.YesDriver.table.refresh(); YesDriverInfoDlg.close(); },function(data){ @@ -479,23 +473,11 @@ } return; } - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.YesDriver.table.refresh(); YesDriverInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.yesDriverInfoData); ajax.set("serverBox",serverBox.toString()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tDriver/yesDriver_selectCar.js b/cloud-server-management/src/main/webapp/static/modular/system/tDriver/yesDriver_selectCar.js index a5f94b9..842684b 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tDriver/yesDriver_selectCar.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tDriver/yesDriver_selectCar.js @@ -88,13 +88,7 @@ SelectCar.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ SelectCar.seItem = selected[0]; @@ -144,13 +138,7 @@ SelectCar.selectCarOpt = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if (selected.length == 0) { - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; } //提交信息 diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tFeedback/tFeedback.js b/cloud-server-management/src/main/webapp/static/modular/system/tFeedback/tFeedback.js index 11678f3..9043474 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tFeedback/tFeedback.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tFeedback/tFeedback.js @@ -156,13 +156,7 @@ TFeedback.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TFeedback.seItem = selected[0]; @@ -204,22 +198,10 @@ TFeedback.delete = function () { if (this.check()) { var ajax = new $ax(Feng.ctxPath + "/tFeedback/delete", function (data) { - if(language==1){ - Feng.success("删除成功!"); - }else if(language==2){ - Feng.success("Delete succeeded!"); - }else { - Feng.success("Hapus berhasil!"); - } + Feng.success("删除成功!"); TFeedback.table.refresh(); }, function (data) { - if(language==1){ - Feng.error("删除失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Delete failed!" + data.responseJSON.message + "!"); - }else { - Feng.error("Hapus gagal!" + data.responseJSON.message + "!"); - } + Feng.error("删除失败!" + data.responseJSON.message + "!"); }); ajax.set("tFeedbackId",this.seItem.id); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tFeedback/userFeedback.js b/cloud-server-management/src/main/webapp/static/modular/system/tFeedback/userFeedback.js index a94680e..fd87f0e 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tFeedback/userFeedback.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tFeedback/userFeedback.js @@ -165,13 +165,7 @@ TUserFeedback.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TUserFeedback.seItem = selected[0]; @@ -212,22 +206,10 @@ TUserFeedback.delete = function () { if (this.check()) { var ajax = new $ax(Feng.ctxPath + "/tFeedback/delete", function (data) { - if(language==1){ - Feng.success("删除成功!"); - }else if(language==2){ - Feng.success("Delete succeeded!"); - }else { - Feng.success("Hapus berhasil!"); - } + Feng.success("删除成功!"); TUserFeedback.table.refresh(); }, function (data) { - if(language==1){ - Feng.error("删除失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Delete failed!" + data.responseJSON.message + "!"); - }else { - Feng.error("Hapus gagal!" + data.responseJSON.message + "!"); - } + Feng.error("删除失败!" + data.responseJSON.message + "!"); }); ajax.set("tFeedbackId",this.seItem.id); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tGuidePage/tbGuidePage.js b/cloud-server-management/src/main/webapp/static/modular/system/tGuidePage/tbGuidePage.js index 5ca1a4f..6737808 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tGuidePage/tbGuidePage.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tGuidePage/tbGuidePage.js @@ -94,13 +94,7 @@ TGuidePage.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TGuidePage.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tGuidePage/tbGuidePage_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tGuidePage/tbGuidePage_info.js index 712422e..76d8385 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tGuidePage/tbGuidePage_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tGuidePage/tbGuidePage_info.js @@ -120,23 +120,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/TGuidePage/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TGuidePage.table.refresh(); TbGuidePageDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set("type",type); ajax.set("sort",sort); @@ -164,23 +152,11 @@ let img = $("#image").val() //提交信息 var ajax = new $ax(Feng.ctxPath + "/TGuidePage/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TGuidePage.table.refresh(); TbGuidePageDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set("type",type); ajax.set("name",name); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tHotAddress/tbHotAddress.js b/cloud-server-management/src/main/webapp/static/modular/system/tHotAddress/tbHotAddress.js index 6fffc95..653b8a2 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tHotAddress/tbHotAddress.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tHotAddress/tbHotAddress.js @@ -77,13 +77,7 @@ THotAddress.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ THotAddress.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tHotAddress/tbHotAddress_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tHotAddress/tbHotAddress_info.js index b40c3a0..36fe844 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tHotAddress/tbHotAddress_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tHotAddress/tbHotAddress_info.js @@ -115,23 +115,11 @@ let sort = $("#sort").val() //提交信息 var ajax = new $ax(Feng.ctxPath + "/THotAddress/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.THotAddress.table.refresh(); TbHotAddressDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set("cityId",cityId); ajax.set("cityId1",cityId1); @@ -171,23 +159,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/THotAddress/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.THotAddress.table.refresh(); TbHotAddressDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set("cityId",cityId); ajax.set("cityId1",cityId1); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tIntegralGoods/tIntegralGoods.js b/cloud-server-management/src/main/webapp/static/modular/system/tIntegralGoods/tIntegralGoods.js index be2b0b7..763274e 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tIntegralGoods/tIntegralGoods.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tIntegralGoods/tIntegralGoods.js @@ -75,13 +75,7 @@ TIntegralGoods.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TIntegralGoods.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tIntegralGoods/tIntegralGoods_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tIntegralGoods/tIntegralGoods_info.js index 8add1a2..f56f145 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tIntegralGoods/tIntegralGoods_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tIntegralGoods/tIntegralGoods_info.js @@ -104,23 +104,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tIntegralGoods/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TIntegralGoods.table.refresh(); TIntegralGoodsInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tIntegralGoodsInfoData); ajax.start(); @@ -143,23 +131,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tIntegralGoods/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TIntegralGoods.table.refresh(); TIntegralGoodsInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tIntegralGoodsInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tIntegralOrder/tIntegralOrder.js b/cloud-server-management/src/main/webapp/static/modular/system/tIntegralOrder/tIntegralOrder.js index 562eef7..521b9f8 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tIntegralOrder/tIntegralOrder.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tIntegralOrder/tIntegralOrder.js @@ -132,13 +132,7 @@ TIntegralOrder.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TIntegralOrder.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tInvoice/tInvoice.js b/cloud-server-management/src/main/webapp/static/modular/system/tInvoice/tInvoice.js index 814844f..34e27d6 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tInvoice/tInvoice.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tInvoice/tInvoice.js @@ -139,13 +139,7 @@ TInvoice.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TInvoice.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tInvoice/tInvoice_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tInvoice/tInvoice_info.js index 83b9441..3912952 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tInvoice/tInvoice_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tInvoice/tInvoice_info.js @@ -71,23 +71,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tInvoice/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TInvoice.table.refresh(); TInvoiceInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tInvoiceInfoData); ajax.start(); @@ -103,23 +91,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tInvoice/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TInvoice.table.refresh(); TInvoiceInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tInvoiceInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tLine/tLine.js b/cloud-server-management/src/main/webapp/static/modular/system/tLine/tLine.js index 8ccafdb..014bf88 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tLine/tLine.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tLine/tLine.js @@ -92,13 +92,7 @@ TLine.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TLine.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tLine/tLine_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tLine/tLine_info.js index 844c462..b93d874 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tLine/tLine_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tLine/tLine_info.js @@ -151,26 +151,14 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tLine/add", function(data){ if(data.status == 200){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TLine.table.refresh(); TLineInfoDlg.close(); }else{ Feng.error(data.msg); } },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tLineInfoData); ajax.set("startSiteId",startSiteId); @@ -223,26 +211,14 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tLine/update", function(data){ if(data.status == 200){ - if(language==1){ Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } window.parent.TLine.table.refresh(); TLineInfoDlg.close(); }else{ Feng.error(data.msg); } },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tLineInfoData); ajax.set("startSiteId",startSiteId); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tMotorModel/tMotorModel.js b/cloud-server-management/src/main/webapp/static/modular/system/tMotorModel/tMotorModel.js index 4d1f8a1..7d54bfc 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tMotorModel/tMotorModel.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tMotorModel/tMotorModel.js @@ -105,13 +105,7 @@ TMotorModel.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TMotorModel.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tMotorModel/tMotorModel_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tMotorModel/tMotorModel_info.js index 2654563..3777927 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tMotorModel/tMotorModel_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tMotorModel/tMotorModel_info.js @@ -105,23 +105,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tMotorModel/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TMotorModel.table.refresh(); TMotorModelInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tMotorModelInfoData); ajax.set("img",$("#image").val()); @@ -142,23 +130,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tMotorModel/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TMotorModel.table.refresh(); TMotorModelInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tMotorModelInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tNotices/system.js b/cloud-server-management/src/main/webapp/static/modular/system/tNotices/system.js index 9777eff..ff99172 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tNotices/system.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tNotices/system.js @@ -91,13 +91,7 @@ System.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ System.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tNotices/system_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tNotices/system_info.js index f4b2e02..48d513d 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tNotices/system_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tNotices/system_info.js @@ -128,23 +128,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tNotices/addSystem", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.System.table.refresh(); SystemInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(SystemInfoDlg.tSystemInfoData); var serverBox1 = $('#serverBox1').prop('checked'); @@ -186,23 +174,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tNotices/updateSystem", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.System.table.refresh(); SystemInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(SystemInfoDlg.tSystemInfoData); ajax.set("language",$("#yy").val()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tNotices/tNotices.js b/cloud-server-management/src/main/webapp/static/modular/system/tNotices/tNotices.js index 2e2c2b4..e80ce37 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tNotices/tNotices.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tNotices/tNotices.js @@ -90,13 +90,7 @@ TNotices.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TNotices.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tNotices/tNotices_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tNotices/tNotices_info.js index e1b9bd1..3858c8d 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tNotices/tNotices_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tNotices/tNotices_info.js @@ -114,23 +114,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tNotices/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TNotices.table.refresh(); TNoticesInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tNoticesInfoData); ajax.set("language",$("#yy").val()); @@ -149,23 +137,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tNotices/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TNotices.table.refresh(); TNoticesInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tNoticesInfoData); ajax.set("language",$("#yy").val()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tOpenCity/tOpenCity.js b/cloud-server-management/src/main/webapp/static/modular/system/tOpenCity/tOpenCity.js index 97f2ba1..f74534a 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tOpenCity/tOpenCity.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tOpenCity/tOpenCity.js @@ -102,13 +102,7 @@ TOpenCity.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TOpenCity.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tOpenCity/tOpenCity_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tOpenCity/tOpenCity_info.js index a15932e..3eb605a 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tOpenCity/tOpenCity_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tOpenCity/tOpenCity_info.js @@ -135,23 +135,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tOpenCity/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TOpenCity.table.refresh(); TOpenCityInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tOpenCityInfoData); ajax.set("content",JSON.stringify(content_latLng)); @@ -202,23 +190,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tOpenCity/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TOpenCity.table.refresh(); TOpenCityInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tOpenCityInfoData); ajax.set("content",JSON.stringify(content_latLng)); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tOrderCharter/tOrderCharter.js b/cloud-server-management/src/main/webapp/static/modular/system/tOrderCharter/tOrderCharter.js index f078ea8..a12dbb1 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tOrderCharter/tOrderCharter.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tOrderCharter/tOrderCharter.js @@ -124,13 +124,7 @@ TOrderCharter.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TOrderCharter.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tOrderCharteredCar/tOrderCharteredCar.js b/cloud-server-management/src/main/webapp/static/modular/system/tOrderCharteredCar/tOrderCharteredCar.js index 60f5ed4..4a7db14 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tOrderCharteredCar/tOrderCharteredCar.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tOrderCharteredCar/tOrderCharteredCar.js @@ -118,13 +118,7 @@ TOrderCharteredCar.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TOrderCharteredCar.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tOrderCrossCity/tOrderCrossCity.js b/cloud-server-management/src/main/webapp/static/modular/system/tOrderCrossCity/tOrderCrossCity.js index 13bde73..0d265e2 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tOrderCrossCity/tOrderCrossCity.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tOrderCrossCity/tOrderCrossCity.js @@ -227,13 +227,7 @@ TOrderCrossCity.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TOrderCrossCity.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tOrderCrossCity/tOrderCrossCity_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tOrderCrossCity/tOrderCrossCity_info.js index 2df2411..837c6b4 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tOrderCrossCity/tOrderCrossCity_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tOrderCrossCity/tOrderCrossCity_info.js @@ -112,23 +112,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tOrderCrossCity/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TOrderCrossCity.table.refresh(); TOrderCrossCityInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tOrderCrossCityInfoData); ajax.start(); @@ -144,23 +132,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tOrderCrossCity/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TOrderCrossCity.table.refresh(); TOrderCrossCityInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tOrderCrossCityInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tOrderEvaluate/tOrderEvaluate.js b/cloud-server-management/src/main/webapp/static/modular/system/tOrderEvaluate/tOrderEvaluate.js index 418d9da..09f8cd8 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tOrderEvaluate/tOrderEvaluate.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tOrderEvaluate/tOrderEvaluate.js @@ -111,13 +111,7 @@ TOrderEvaluate.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TOrderEvaluate.seItem = selected[0]; @@ -163,22 +157,10 @@ TOrderEvaluate.delete = function () { if (this.check()) { var ajax = new $ax(Feng.ctxPath + "/tOrderEvaluate/delete", function (data) { - if(language==1){ - Feng.success("删除成功!"); - }else if(language==2){ - Feng.success("Delete succeeded!"); - }else { - Feng.success("Hapus berhasil!"); - } + Feng.success("删除成功!"); TOrderEvaluate.table.refresh(); }, function (data) { - if(language==1){ - Feng.error("删除失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Delete failed!" + data.responseJSON.message + "!"); - }else { - Feng.error("Hapus gagal!" + data.responseJSON.message + "!"); - } + Feng.error("删除失败!" + data.responseJSON.message + "!"); }); ajax.set("tOrderEvaluateId",this.seItem.id); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tOrderEvaluate/tOrderEvaluate_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tOrderEvaluate/tOrderEvaluate_info.js index 3578924..f0674f4 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tOrderEvaluate/tOrderEvaluate_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tOrderEvaluate/tOrderEvaluate_info.js @@ -65,23 +65,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tOrderEvaluate/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TOrderEvaluate.table.refresh(); TOrderEvaluateInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tOrderEvaluateInfoData); ajax.start(); @@ -97,23 +85,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tOrderEvaluate/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TOrderEvaluate.table.refresh(); TOrderEvaluateInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tOrderEvaluateInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tOrderLogistics/tOrderLogistics.js b/cloud-server-management/src/main/webapp/static/modular/system/tOrderLogistics/tOrderLogistics.js index 33edc09..3370204 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tOrderLogistics/tOrderLogistics.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tOrderLogistics/tOrderLogistics.js @@ -267,13 +267,7 @@ TOrderLogistics.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TOrderLogistics.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tOrderLogistics/tOrderLogistics_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tOrderLogistics/tOrderLogistics_info.js index 68a2973..98e3265 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tOrderLogistics/tOrderLogistics_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tOrderLogistics/tOrderLogistics_info.js @@ -115,23 +115,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tOrderLogistics/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TOrderLogistics.table.refresh(); TOrderLogisticsInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tOrderLogisticsInfoData); ajax.start(); @@ -147,23 +135,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tOrderLogistics/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TOrderLogistics.table.refresh(); TOrderLogisticsInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tOrderLogisticsInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tOrderPrivateCar/tOrderPrivateCar.js b/cloud-server-management/src/main/webapp/static/modular/system/tOrderPrivateCar/tOrderPrivateCar.js index c2e43a1..9cf24be 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tOrderPrivateCar/tOrderPrivateCar.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tOrderPrivateCar/tOrderPrivateCar.js @@ -270,13 +270,7 @@ TOrderPrivateCar.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TOrderPrivateCar.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tOrderPrivateCar/tOrderPrivateCar_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tOrderPrivateCar/tOrderPrivateCar_info.js index 659f116..861550a 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tOrderPrivateCar/tOrderPrivateCar_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tOrderPrivateCar/tOrderPrivateCar_info.js @@ -122,23 +122,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tOrderPrivateCar/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TOrderPrivateCar.table.refresh(); TOrderPrivateCarInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tOrderPrivateCarInfoData); ajax.start(); @@ -154,23 +142,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tOrderPrivateCar/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TOrderPrivateCar.table.refresh(); TOrderPrivateCarInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tOrderPrivateCarInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tOrderTaxi/selectDriver.js b/cloud-server-management/src/main/webapp/static/modular/system/tOrderTaxi/selectDriver.js index 28aaa16..034c8bc 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tOrderTaxi/selectDriver.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tOrderTaxi/selectDriver.js @@ -87,13 +87,7 @@ SelectDriver.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ SelectDriver.seItem = selected[0]; @@ -147,13 +141,7 @@ window.parent.TOrderTaxi.table.refresh(); SelectDriver.close(); },function(data){ - if(language==1){ Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } }); ajax.set("orderId",$("#id").val()); ajax.set("driverId",SelectDriver.seItem.id); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tOrderTaxi/tOrderTaxi.js b/cloud-server-management/src/main/webapp/static/modular/system/tOrderTaxi/tOrderTaxi.js index 19e76cb..043a7f7 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tOrderTaxi/tOrderTaxi.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tOrderTaxi/tOrderTaxi.js @@ -211,13 +211,7 @@ TOrderTaxi.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TOrderTaxi.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tOrderTaxi/tOrderTaxi_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tOrderTaxi/tOrderTaxi_info.js index fb2c504..49c2922 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tOrderTaxi/tOrderTaxi_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tOrderTaxi/tOrderTaxi_info.js @@ -108,23 +108,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tOrderTaxi/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TOrderTaxi.table.refresh(); TOrderTaxiInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tOrderTaxiInfoData); ajax.start(); @@ -140,23 +128,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tOrderTaxi/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TOrderTaxi.table.refresh(); TOrderTaxiInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tOrderTaxiInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tProblem/tProblem.js b/cloud-server-management/src/main/webapp/static/modular/system/tProblem/tProblem.js index 1822132..c87b7ad 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tProblem/tProblem.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tProblem/tProblem.js @@ -165,13 +165,7 @@ TProblem.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TProblem.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tReassign/selectCrossDriver.js b/cloud-server-management/src/main/webapp/static/modular/system/tReassign/selectCrossDriver.js index e85a159..8ac6845 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tReassign/selectCrossDriver.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tReassign/selectCrossDriver.js @@ -87,13 +87,7 @@ SelectCrossDriver.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ SelectCrossDriver.seItem = selected[0]; @@ -152,13 +146,7 @@ SelectCrossDriver.close(); layer.closeAll() },function(data){ - if(language==1){ Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } layer.closeAll() }); ajax.set("orderId",$("#id").val()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tReassign/selectPrivateCarDriver.js b/cloud-server-management/src/main/webapp/static/modular/system/tReassign/selectPrivateCarDriver.js index 22b2763..147f235 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tReassign/selectPrivateCarDriver.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tReassign/selectPrivateCarDriver.js @@ -87,13 +87,7 @@ SelectPrivateCarDriver.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ SelectPrivateCarDriver.seItem = selected[0]; @@ -152,13 +146,7 @@ SelectPrivateCarDriver.close(); layer.closeAll() },function(data){ - if(language==1){ Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } layer.closeAll() }); ajax.set("orderId",$("#id").val()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tReassign/selectSmallDriver.js b/cloud-server-management/src/main/webapp/static/modular/system/tReassign/selectSmallDriver.js index c22812e..909b8f4 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tReassign/selectSmallDriver.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tReassign/selectSmallDriver.js @@ -87,13 +87,7 @@ SelectPrivateCarDriver.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ SelectPrivateCarDriver.seItem = selected[0]; @@ -152,13 +146,7 @@ SelectPrivateCarDriver.close(); layer.closeAll() },function(data){ - if(language==1){ Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } layer.closeAll() }); ajax.set("orderId",$("#id").val()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tReassign/smallPieceLogistics.js b/cloud-server-management/src/main/webapp/static/modular/system/tReassign/smallPieceLogistics.js index fa4e122..c79c585 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tReassign/smallPieceLogistics.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tReassign/smallPieceLogistics.js @@ -223,13 +223,7 @@ TReassign.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TReassign.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tReassign/tCross.js b/cloud-server-management/src/main/webapp/static/modular/system/tReassign/tCross.js index b736187..ac1b634 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tReassign/tCross.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tReassign/tCross.js @@ -223,13 +223,7 @@ TCross.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TCross.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tReassign/tReassign.js b/cloud-server-management/src/main/webapp/static/modular/system/tReassign/tReassign.js index a9180f5..c8c3e5c 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tReassign/tReassign.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tReassign/tReassign.js @@ -223,13 +223,7 @@ TReassign.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TReassign.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tReassign/tReassign_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tReassign/tReassign_info.js index bf73938..c5f4b38 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tReassign/tReassign_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tReassign/tReassign_info.js @@ -73,23 +73,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tReassign/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TReassign.table.refresh(); TReassignInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tReassignInfoData); ajax.start(); @@ -105,23 +93,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tReassign/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TReassign.table.refresh(); TReassignInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tReassignInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/acrossCity.js b/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/acrossCity.js index 3e609c7..b5732f4 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/acrossCity.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/acrossCity.js @@ -66,13 +66,7 @@ TAcrossCity.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TAcrossCity.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/acrossCity_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/acrossCity_info.js index b8b789e..28992ea 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/acrossCity_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/acrossCity_info.js @@ -91,24 +91,12 @@ Feng.error(data.message); return; }else{ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TAcrossCity.table.refresh(); TAcrossCityInfoDlg.close(); } },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tServerCarmodelInfoData); ajax.start(); @@ -131,24 +119,12 @@ Feng.error(data.message); return; }else{ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TAcrossCity.table.refresh(); TAcrossCityInfoDlg.close(); } },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tServerCarmodelInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/charter.js b/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/charter.js index 360c024..6b5c0ae 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/charter.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/charter.js @@ -75,13 +75,7 @@ TCharter.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TCharter.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/charter_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/charter_info.js index 915ab4a..9dce138 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/charter_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/charter_info.js @@ -119,24 +119,12 @@ Feng.error(data.message); return; }else{ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TCharter.table.refresh(); TCharterInfoDlg.close(); } },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tServerCarmodelInfoData); ajax.set("price",one+"-"+two); @@ -161,24 +149,12 @@ Feng.error(data.message); return; }else{ - if(language==1){ Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } window.parent.TCharter.table.refresh(); TCharterInfoDlg.close(); } },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tServerCarmodelInfoData); ajax.set("price",one+"-"+two); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/tServerCarmodel.js b/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/tServerCarmodel.js index 0c98a0a..098afd3 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/tServerCarmodel.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/tServerCarmodel.js @@ -66,13 +66,7 @@ TServerCarmodel.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TServerCarmodel.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/tServerCarmodel_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/tServerCarmodel_info.js index a3e21e5..123ee3b 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/tServerCarmodel_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tServerCarmodel/tServerCarmodel_info.js @@ -91,24 +91,12 @@ Feng.error(data.message); return; }else{ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TServerCarmodel.table.refresh(); TServerCarmodelInfoDlg.close(); } },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tServerCarmodelInfoData); ajax.start(); @@ -124,23 +112,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tServerCarmodel/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TServerCarmodel.table.refresh(); TServerCarmodelInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tServerCarmodelInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js b/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js index 098489c..f6ed3b6 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite.js @@ -95,13 +95,7 @@ TSite.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TSite.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite_info.js index b553748..6b6928f 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tSite/tSite_info.js @@ -125,26 +125,14 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tSite/add", function(data){ if(data.status == 200){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TSite.table.refresh(); TSiteInfoDlg.close(); }else{ Feng.error(data.msg); } },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set("name",name); ajax.set("provinceCode",provinceCode); @@ -201,23 +189,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tSite/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TSite.table.refresh(); TSiteInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set("id",$("#id").val()); ajax.set("name",name); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tSmsrecord/tSmsrecord.js b/cloud-server-management/src/main/webapp/static/modular/system/tSmsrecord/tSmsrecord.js index 46b91fa..7b1781e 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tSmsrecord/tSmsrecord.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tSmsrecord/tSmsrecord.js @@ -78,13 +78,7 @@ TSmsrecord.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TSmsrecord.seItem = selected[0]; @@ -130,22 +124,10 @@ TSmsrecord.delete = function () { if (this.check()) { var ajax = new $ax(Feng.ctxPath + "/tSmsrecord/delete", function (data) { - if(language==1){ - Feng.success("删除成功!"); - }else if(language==2){ - Feng.success("Delete succeeded!"); - }else { - Feng.success("Hapus berhasil!"); - } + Feng.success("删除成功!"); TSmsrecord.table.refresh(); }, function (data) { - if(language==1){ - Feng.error("删除失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Delete failed!" + data.responseJSON.message + "!"); - }else { - Feng.error("Hapus gagal!" + data.responseJSON.message + "!"); - } + Feng.error("删除失败!" + data.responseJSON.message + "!"); }); ajax.set("tSmsrecordId",this.seItem.id); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tSmsrecord/tSmsrecord_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tSmsrecord/tSmsrecord_info.js index 53ad8ec..f6ff282 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tSmsrecord/tSmsrecord_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tSmsrecord/tSmsrecord_info.js @@ -63,23 +63,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tSmsrecord/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TSmsrecord.table.refresh(); TSmsrecordInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tSmsrecordInfoData); ajax.start(); @@ -95,23 +83,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tSmsrecord/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TSmsrecord.table.refresh(); TSmsrecordInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tSmsrecordInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tStartPage/tbStartPage.js b/cloud-server-management/src/main/webapp/static/modular/system/tStartPage/tbStartPage.js index dbe2718..3db341b 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tStartPage/tbStartPage.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tStartPage/tbStartPage.js @@ -85,13 +85,7 @@ TStartPage.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tStartPage/tbStartPage_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tStartPage/tbStartPage_info.js index 5272829..5b12e9e 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tStartPage/tbStartPage_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tStartPage/tbStartPage_info.js @@ -79,23 +79,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/TStartPage/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TbBanner.table.refresh(); TbStartPageDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set("usePort",usePort); ajax.set("name",name); @@ -117,23 +105,11 @@ console.log(img) //提交信息 var ajax = new $ax(Feng.ctxPath + "/TStartPage/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TStartPage.table.refresh(); TbStartPageDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set("type",type); ajax.set("name",name); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tSysSensitiveWords/tSysSensitiveWords.js b/cloud-server-management/src/main/webapp/static/modular/system/tSysSensitiveWords/tSysSensitiveWords.js index 2a842d5..9603fdf 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tSysSensitiveWords/tSysSensitiveWords.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tSysSensitiveWords/tSysSensitiveWords.js @@ -58,13 +58,7 @@ TSysSensitiveWords.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TSysSensitiveWords.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tSysSensitiveWords/tSysSensitiveWords_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tSysSensitiveWords/tSysSensitiveWords_info.js index 58e2fba..fa231fc 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tSysSensitiveWords/tSysSensitiveWords_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tSysSensitiveWords/tSysSensitiveWords_info.js @@ -98,23 +98,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tSysSensitiveWords/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TSysSensitiveWords.table.refresh(); TSysSensitiveWordsInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tSysSensitiveWordsInfoData); ajax.set("language",$("#yy").val()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tSystemPrice/tSystemPrice.js b/cloud-server-management/src/main/webapp/static/modular/system/tSystemPrice/tSystemPrice.js index 21924fc..711e7a5 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tSystemPrice/tSystemPrice.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tSystemPrice/tSystemPrice.js @@ -85,13 +85,7 @@ TSystemPrice.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TSystemPrice.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tSystemPrice/tSystemPriceService.js b/cloud-server-management/src/main/webapp/static/modular/system/tSystemPrice/tSystemPriceService.js index e6f8b6f..39b5503 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tSystemPrice/tSystemPriceService.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tSystemPrice/tSystemPriceService.js @@ -133,13 +133,7 @@ TSystemPrice.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TSystemPrice.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tSystemPrice/tSystemPrice_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tSystemPrice/tSystemPrice_info.js index 2262323..1b27e82 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tSystemPrice/tSystemPrice_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tSystemPrice/tSystemPrice_info.js @@ -597,24 +597,12 @@ Feng.error(data.message); return; }else{ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TSystemPrice.table.refresh(); TSystemPriceInfoDlg.close(); } },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set("openCityId",openCityId); ajax.set("serverCarModelId",serverCarModelId); @@ -819,24 +807,12 @@ Feng.error(data.message); return; }else { - if(language==1){ Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } window.parent.TSystemPrice.table.refresh(); TSystemPriceInfoDlg.close(); } },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set("openCityId",openCityId); ajax.set("serverCarModelId",serverCarModelId); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tUser/tUser_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tUser/tUser_info.js index 612effc..d542f2a 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tUser/tUser_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tUser/tUser_info.js @@ -155,23 +155,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tUser/updateBalance", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TUser.table.refresh(); TUserInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set("tUserId",$("#tUserId").val()); ajax.set("updateType",$("#updateType").val()); @@ -191,23 +179,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tUser/updatePassword", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TUser.table.refresh(); TUserInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set("tUserId",$("#tUserId").val()); ajax.set("password",$("#password").val()); @@ -226,23 +202,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tUser/optUser", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TUser.table.refresh(); TUserInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set("tUserId",$("#tUserId").val()); ajax.set("optType",$("#optType").val()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tUserExit/tbUserExit.js b/cloud-server-management/src/main/webapp/static/modular/system/tUserExit/tbUserExit.js index 799e2ab..7804a7a 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tUserExit/tbUserExit.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tUserExit/tbUserExit.js @@ -77,13 +77,7 @@ TUserExit.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tUserExit/tbUserExit_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tUserExit/tbUserExit_info.js index 6b4098d..63c5ea8 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tUserExit/tbUserExit_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tUserExit/tbUserExit_info.js @@ -70,23 +70,11 @@ console.log(url) //提交信息 var ajax = new $ax(Feng.ctxPath + "/TUserExit/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TUserExit.table.refresh(); TbUserExitDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set("userType",userType); @@ -105,24 +93,12 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tbBanner/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TbBanner.table.refresh(); TbUserExitDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tbUserExitData); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tUserLargeCoupon/tUserLargeCoupon.js b/cloud-server-management/src/main/webapp/static/modular/system/tUserLargeCoupon/tUserLargeCoupon.js index 03c4686..e49ee6c 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tUserLargeCoupon/tUserLargeCoupon.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tUserLargeCoupon/tUserLargeCoupon.js @@ -132,13 +132,7 @@ TCarModel.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TCarModel.seItem = selected[0]; @@ -148,13 +142,7 @@ TCarModel.audit = function () { if (this.check()) { if(TCarModel.seItem.state!=1){ - if(language==1){ - Feng.info("请在待审核状态下操作") - }else if(language==2){ - Feng.info("Please operate in the pending state") - }else { - Feng.info("Silakan beroperasi dalam keadaan menunggu") - } + Feng.info("请在待审核状态下操作") return; } var index = layer.open({ diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tUserLargeCoupon/tUserLargeCoupon_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tUserLargeCoupon/tUserLargeCoupon_info.js index f4a576f..05f512d 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tUserLargeCoupon/tUserLargeCoupon_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tUserLargeCoupon/tUserLargeCoupon_info.js @@ -141,23 +141,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tUserLarge/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TCarModel.table.refresh(); TCarModelInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tCarModelInfoData); ajax.set("type",obj); @@ -178,23 +166,11 @@ } //提交信息 var ajax = new $ax(Feng.ctxPath + "/tCarModel/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TCarModel.table.refresh(); TCarModelInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tCarModelInfoData); ajax.set("language",$("#yy").val()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tUserRedPacketRecord/tUserRedPacketRecord.js b/cloud-server-management/src/main/webapp/static/modular/system/tUserRedPacketRecord/tUserRedPacketRecord.js index 09102ba..7c8a571 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tUserRedPacketRecord/tUserRedPacketRecord.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tUserRedPacketRecord/tUserRedPacketRecord.js @@ -65,13 +65,7 @@ TUserRedPacketRecord.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TUserRedPacketRecord.seItem = selected[0]; @@ -117,22 +111,10 @@ TUserRedPacketRecord.delete = function () { if (this.check()) { var ajax = new $ax(Feng.ctxPath + "/tUserRedPacketRecord/delete", function (data) { - if(language==1){ - Feng.success("删除成功!"); - }else if(language==2){ - Feng.success("Delete succeeded!"); - }else { - Feng.success("Hapus berhasil!"); - } + Feng.success("删除成功!"); TUserRedPacketRecord.table.refresh(); }, function (data) { - if(language==1){ - Feng.error("删除失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Delete failed!" + data.responseJSON.message + "!"); - }else { - Feng.error("Hapus gagal!" + data.responseJSON.message + "!"); - } + Feng.error("删除失败!" + data.responseJSON.message + "!"); }); ajax.set("tUserRedPacketRecordId",this.seItem.id); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tUserRedPacketRecord/tUserRedPacketRecord_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tUserRedPacketRecord/tUserRedPacketRecord_info.js index 8d53433..8b473bf 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tUserRedPacketRecord/tUserRedPacketRecord_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tUserRedPacketRecord/tUserRedPacketRecord_info.js @@ -67,23 +67,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tUserRedPacketRecord/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TUserRedPacketRecord.table.refresh(); TUserRedPacketRecordInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tUserRedPacketRecordInfoData); ajax.start(); @@ -99,23 +87,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tUserRedPacketRecord/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TUserRedPacketRecord.table.refresh(); TUserRedPacketRecordInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tUserRedPacketRecordInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tVerified/tVerified.js b/cloud-server-management/src/main/webapp/static/modular/system/tVerified/tVerified.js index 7b35443..48cad46 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tVerified/tVerified.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tVerified/tVerified.js @@ -106,13 +106,7 @@ TVerified.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TVerified.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tVerified/tVerified_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tVerified/tVerified_info.js index 7847bde..11d4801 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tVerified/tVerified_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tVerified/tVerified_info.js @@ -65,23 +65,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tVerified/add", function(data){ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TVerified.table.refresh(); TVerifiedInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tVerifiedInfoData); ajax.start(); @@ -97,23 +85,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tVerified/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TVerified.table.refresh(); TVerifiedInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tVerifiedInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tVersionManagement/tVersionManagement.js b/cloud-server-management/src/main/webapp/static/modular/system/tVersionManagement/tVersionManagement.js index f1e753c..be65c18 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tVersionManagement/tVersionManagement.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tVersionManagement/tVersionManagement.js @@ -194,13 +194,7 @@ TVersionManagement.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TVersionManagement.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tVersionManagement/tVersionManagement_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tVersionManagement/tVersionManagement_info.js index ed2efc1..30186ae 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tVersionManagement/tVersionManagement_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tVersionManagement/tVersionManagement_info.js @@ -117,24 +117,12 @@ return; }else{ - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TVersionManagement.table.refresh(); TVersionManagementInfoDlg.close(); } },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tVersionManagementInfoData); ajax.set("mandatory",mandatory); @@ -152,13 +140,7 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tVersionManagement/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TVersionManagement.table.refresh(); TVersionManagementInfoDlg.close(); },function(data){ diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tVoice/tbVoice.js b/cloud-server-management/src/main/webapp/static/modular/system/tVoice/tbVoice.js index d6dfa12..ec023e2 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tVoice/tbVoice.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tVoice/tbVoice.js @@ -146,13 +146,7 @@ TVoice.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TVoice.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tVoice/tbVoice_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tVoice/tbVoice_info.js index 78b6e87..6cf9595 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tVoice/tbVoice_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tVoice/tbVoice_info.js @@ -116,24 +116,12 @@ return false; } else { - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.TVoice.table.refresh(); TbVoiceDlg.close(); } }, function (data) { - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set("userType", userType); ajax.set("url", sfFile); @@ -218,24 +206,12 @@ } return false; } else { - if(language==1){ Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } window.parent.TVoice.table.refresh(); TbVoiceDlg.close(); } }, function (data) { - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set("id", id); ajax.set("userType", userType); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tWithout/tWithout.js b/cloud-server-management/src/main/webapp/static/modular/system/tWithout/tWithout.js index 78b2df9..d67d57e 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tWithout/tWithout.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tWithout/tWithout.js @@ -39,13 +39,7 @@ TLine.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TLine.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tbBanner/tbBanner.js b/cloud-server-management/src/main/webapp/static/modular/system/tbBanner/tbBanner.js index a2ff28e..3776702 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tbBanner/tbBanner.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tbBanner/tbBanner.js @@ -106,13 +106,7 @@ TbBanner.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ TbBanner.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tbBanner/tbBanner_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tbBanner/tbBanner_info.js index 76b1363..6f23b03 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tbBanner/tbBanner_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tbBanner/tbBanner_info.js @@ -111,24 +111,12 @@ } }else { - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); } window.parent.TbBanner.table.refresh(); TbBannerInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set("usePort",usePort); ajax.set("name",name); @@ -147,23 +135,11 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/tbBanner/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.TbBanner.table.refresh(); TbBannerInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.tbBannerInfoData); ajax.start(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/user/user.js b/cloud-server-management/src/main/webapp/static/modular/system/user/user.js index 6b1ae9d..43f8c47 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/user/user.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/user/user.js @@ -119,13 +119,7 @@ MgrUser.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if (selected.length == 0) { - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; } else { MgrUser.seItem = selected[0]; diff --git a/cloud-server-management/src/main/webapp/static/modular/system/user/user_info.js b/cloud-server-management/src/main/webapp/static/modular/system/user/user_info.js index 0a0cf46..21e9c30 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/user/user_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/user/user_info.js @@ -254,26 +254,14 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/mgr/add", function (data) { - if(language==1){ - Feng.success("添加成功!"); - }else if(language==2){ - Feng.success("Successfully added!"); - }else { - Feng.success("Sangat berhasil ditambah!"); - } + Feng.success("添加成功!"); window.parent.MgrUser.table.refresh(); UserInfoDlg.close(); $(".img-circle").each(function () { $(this).attr("src",Feng.ctxPath+$("#avatar").val()); }) }, function (data) { - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set(this.userInfoData); ajax.start(); @@ -317,13 +305,7 @@ //提交信息 var ajax = new $ax(Feng.ctxPath + "/mgr/edit", function (data) { - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); if (window.parent.MgrUser != undefined) { window.parent.MgrUser.table.refresh(); UserInfoDlg.close(); @@ -334,13 +316,7 @@ window.parent.$("#userNameTab").text($("#name").val()); }, function (data) { - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set(this.userInfoData); ajax.start(); @@ -376,21 +352,9 @@ return } var ajax = new $ax(Feng.ctxPath + "/mgr/changePwd", function (data) { - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); }, function (data) { - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set("oldPwd"); ajax.set("newPwd"); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/userActivity/sysCouponRecord.js b/cloud-server-management/src/main/webapp/static/modular/system/userActivity/sysCouponRecord.js index 1530629..e4c1b4e 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/userActivity/sysCouponRecord.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/userActivity/sysCouponRecord.js @@ -81,13 +81,7 @@ SysCouponRecord.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ SysCouponRecord.seItem = selected[0]; @@ -126,13 +120,7 @@ SysCouponRecord.selectCouponOpt = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if (selected.length == 0) { - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; } var id = selected[0].id; @@ -141,13 +129,7 @@ var money = selected[0].money; var name = selected[0].name; if ("" == id || null == id || undefined == id){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return ; } var obj = $("#obj").val(); @@ -162,13 +144,7 @@ SysCouponRecord.selectCouponOpt1 = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if (selected.length == 0) { - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; } var id = selected[0].id; @@ -177,13 +153,7 @@ var money = selected[0].money; var name = selected[0].name; if ("" == id || null == id || undefined == id){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return ; } var obj = $("#obj").val(); @@ -196,26 +166,14 @@ SysCouponRecord.selectCouponOpt2 = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if (selected.length == 0) { - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; } var id = selected[0].id; var money = selected[0].money; var couponUseType = selected[0].couponUseType; if ("" == id || null == id || undefined == id){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return ; } var obj = $("#obj").val(); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/userActivity/sysRedPacketRecord.js b/cloud-server-management/src/main/webapp/static/modular/system/userActivity/sysRedPacketRecord.js index 32f31e3..05fffc5 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/userActivity/sysRedPacketRecord.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/userActivity/sysRedPacketRecord.js @@ -47,13 +47,7 @@ SysRedPacketRecord.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ SysRedPacketRecord.seItem = selected[0]; @@ -72,13 +66,7 @@ SysRedPacketRecord.selectRedOpt = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if (selected.length == 0) { - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; } var id = selected[0].id; @@ -89,13 +77,7 @@ var endMoney = selected[0].endMoney; var effective = selected[0].effective; if ("" == id || null == id || undefined == id){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); } var obj = $("#obj").val(); window.parent.UserActivityInfoDlg.selectRedOpt(id,type,totalMoney,money,startMoney,endMoney,effective); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/userActivity/userActivity.js b/cloud-server-management/src/main/webapp/static/modular/system/userActivity/userActivity.js index f50b346..86ff061 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/userActivity/userActivity.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/userActivity/userActivity.js @@ -106,13 +106,7 @@ UserActivity.check = function (type) { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ @@ -121,42 +115,18 @@ UserActivity.seItem = selected[0]; return true; }else if(type==3 && selected[0].status!=3 && selected[0].status!=4){ - if(language==1){ - Feng.info("当前状态不能暂停/启动!"); - }else if(language==2){ - Feng.info("The current state cannot be suspended/ started!"); - }else { - Feng.info("Keadaan saat ini tidak dapat ditangguhkan/ dimulai!"); - } + Feng.info("当前状态不能暂停/启动!"); return false; }else if(type==3 && selected[0].status==3 && (selected[0].startTime>new Date() || new Date()>selected[0].endTime)){ - if(language==1){ - Feng.info("当前状态不能暂停/启动!"); - }else if(language==2){ - Feng.info("The current state cannot be suspended/ started!"); - }else { - Feng.info("Keadaan saat ini tidak dapat ditangguhkan/ dimulai!"); - } + Feng.info("当前状态不能暂停/启动!"); return false; }else if(type==1 && selected[0].status!=1){ - if(language==1){ - Feng.info("当前状态不能审核!"); - }else if(language==2){ - Feng.info("The current status cannot be audited!"); - }else { - Feng.info("Status saat ini tidak dapat diaudisikan!"); - } + Feng.info("当前状态不能审核!"); return false; }else if(type==2 && selected[0].status!=2){ - if(language==1){ - Feng.info("当前状态不能编辑!"); - }else if(language==2){ - Feng.info("The current status cannot be edited!"); - }else { - Feng.info("Status saat ini tidak dapat diedit!"); - } + Feng.info("当前状态不能编辑!"); return false; } @@ -230,22 +200,10 @@ UserActivity.delete = function () { if (this.check()) { var ajax = new $ax(Feng.ctxPath + "/userActivity/delete", function (data) { - if(language==1){ - Feng.success("删除成功!"); - }else if(language==2){ - Feng.success("Delete succeeded!"); - }else { - Feng.success("Hapus berhasil!"); - } + Feng.success("删除成功!"); UserActivity.table.refresh(); }, function (data) { - if(language==1){ - Feng.error("删除失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Delete failed!" + data.responseJSON.message + "!"); - }else { - Feng.error("Hapus gagal!" + data.responseJSON.message + "!"); - } + Feng.error("删除失败!" + data.responseJSON.message + "!"); }); ajax.set("userActivityId",this.seItem.id); ajax.start(); @@ -257,23 +215,11 @@ UserActivity.updateStatus = function () { if (this.check(3)) { var ajax = new $ax(Feng.ctxPath + "/userActivity/updateStatus", function (data) { - if(language==1){ - Feng.success("启动/暂停成功!"); - }else if(language==2){ - Feng.success("Start/pause successfully!"); - }else { - Feng.success("Mulai/berhenti dengan sukses!"); - } + Feng.success("启动/暂停成功!"); UserActivity.table.refresh(); }, function (data) { - if(language==1){ - Feng.success("启动/暂停失败!"); - }else if(language==2){ - Feng.success("Failed to start/pause!"); - }else { - Feng.success("Gagal memulai/berhenti!"); - } + Feng.success("启动/暂停失败!"); }); ajax.set("id",this.seItem.id); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/userActivity/userActivity_info.js b/cloud-server-management/src/main/webapp/static/modular/system/userActivity/userActivity_info.js index 7d31e0a..f06f63a 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/userActivity/userActivity_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/userActivity/userActivity_info.js @@ -234,13 +234,7 @@ UserActivityInfoDlg.close(); } },function(data){ - if(language==1){ - Feng.error("添加失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to add!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal menambah!" + data.responseJSON.message + "!"); - } + Feng.error("添加失败!" + data.responseJSON.message + "!"); }); ajax.set("name",$("#name").val()); ajax.set("startTime",$("#startTime").val()); @@ -404,23 +398,11 @@ var elem3 = document.querySelector('.js-switch4'); //提交信息 var ajax = new $ax(Feng.ctxPath + "/userActivity/update", function(data){ - if(language==1){ - Feng.success("修改成功!"); - }else if(language==2){ - Feng.success("Modify successfully!"); - }else { - Feng.success("Mengubah dengan sukses!"); - } + Feng.success("修改成功!"); window.parent.UserActivity.table.refresh(); UserActivityInfoDlg.close(); },function(data){ - if(language==1){ - Feng.error("修改失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Fail to modify!" + data.responseJSON.message + "!"); - }else { - Feng.error("Gagal mengubah!" + data.responseJSON.message + "!");; - } + Feng.error("修改失败!" + data.responseJSON.message + "!"); }); ajax.set("id",$("#id").val()); ajax.set("name",$("#name").val()); diff --git a/cloud-server-management/src/main/webapp/static/modular/system/userCouponRecord/userCouponRecord.js b/cloud-server-management/src/main/webapp/static/modular/system/userCouponRecord/userCouponRecord.js index 0b82f0f..89f7907 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/userCouponRecord/userCouponRecord.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/userCouponRecord/userCouponRecord.js @@ -108,13 +108,7 @@ UserCouponRecord.check = function () { var selected = $('#' + this.id).bootstrapTable('getSelections'); if(selected.length == 0){ - if(language==1){ - Feng.info("请先选中表格中的某一记录!"); - }else if(language==2){ - Feng.info("Please select 条记录 in the table first!"); - }else { - Feng.info("Pilih catatan di tabel terlebih dahulu!"); - } + Feng.info("请先选中表格中的某一记录!"); return false; }else{ UserCouponRecord.seItem = selected[0]; @@ -160,22 +154,10 @@ UserCouponRecord.delete = function () { if (this.check()) { var ajax = new $ax(Feng.ctxPath + "/userCouponRecord/delete", function (data) { - if(language==1){ - Feng.success("删除成功!"); - }else if(language==2){ - Feng.success("Delete succeeded!"); - }else { - Feng.success("Hapus berhasil!"); - } + Feng.success("删除成功!"); UserCouponRecord.table.refresh(); }, function (data) { - if(language==1){ - Feng.error("删除失败!" + data.responseJSON.message + "!"); - }else if(language==2){ - Feng.error("Delete failed!" + data.responseJSON.message + "!"); - }else { - Feng.error("Hapus gagal!" + data.responseJSON.message + "!"); - } + Feng.error("删除失败!" + data.responseJSON.message + "!"); }); ajax.set("userCouponRecordId",this.seItem.id); ajax.start(); -- Gitblit v1.7.1