删除接口
parent
7d38163c83
commit
e275a8a27c
|
@ -202,33 +202,7 @@ public class MdCusOtherController extends BaseController {
|
|||
j.setMsg(message);
|
||||
return j;
|
||||
}
|
||||
@RequestMapping(params = "doGet")
|
||||
@ResponseBody
|
||||
public AjaxJson dogetfromother(String formDate, HttpServletRequest request) {
|
||||
String message = null;
|
||||
AjaxJson j = new AjaxJson();
|
||||
message = "读取成功";
|
||||
try {
|
||||
if ("UAS".equals(ResourceUtil.getConfigByName("interfacetype"))){
|
||||
if(StringUtil.isEmpty(formDate)){
|
||||
formDate = "2011-01-01";
|
||||
}
|
||||
wmIntUtil.getCus(formDate);
|
||||
}
|
||||
if ("DSC".equals(ResourceUtil.getConfigByName("interfacetype"))){
|
||||
dscUtil.updateCusFromDsc();
|
||||
}
|
||||
systemService.addLog(message, Globals.Log_Type_UPDATE,
|
||||
Globals.Log_Leavel_INFO);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
message = "读取失败";
|
||||
throw new BusinessException(e.getMessage());
|
||||
}
|
||||
j.setMsg(message);
|
||||
return j;
|
||||
}
|
||||
/**
|
||||
/**
|
||||
* 更新第三方客户
|
||||
*
|
||||
* @param ids
|
||||
|
|
|
@ -64,46 +64,16 @@
|
|||
<t:dgToolBar title="批量删除" icon="icon-remove" url="mdCusOtherController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
|
||||
<t:dgToolBar title="查看" width="700" icon="icon-search" url="mdCusOtherController.do?goUpdate" funname="detail"></t:dgToolBar>
|
||||
<t:dgToolBar title="导入" icon="icon-put" funname="ImportXls"></t:dgToolBar>
|
||||
<t:dgToolBar operationCode="uasimpcus" title="第三方系统导入" icon="icon-put" funname="otherimp"></t:dgToolBar>
|
||||
|
||||
<t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
|
||||
<t:dgToolBar title="模板下载" icon="icon-putout" funname="ExportXlsByT"></t:dgToolBar>
|
||||
</t:datagrid>
|
||||
<div name="searchColums1" style="float: left; padding-left: 0px;padding-top: 5px;">
|
||||
<%--<input type="text" name="batchbin" style="width: 100px; height: 30px;">--%>
|
||||
日期:<input type="text" name="batchdate" class="form-control" onClick="WdatePicker()" style="width: 100px; height: 30px;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src = "webpage/com/zzjee/md/mdCusOtherList.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
});
|
||||
function otherimp() {
|
||||
var batchdate;
|
||||
batchdate = $('input[name="batchdate"]').attr("value");
|
||||
|
||||
var url = "mdCusOtherController.do?doGet&formDate="+batchdate;
|
||||
$.ajax({
|
||||
async : false,
|
||||
cache : false,
|
||||
type : 'POST',
|
||||
url : url,// 请求的action路径
|
||||
error : function() {// 请求失败处理函数
|
||||
},
|
||||
success : function(data) {
|
||||
var d = $.parseJSON(data);
|
||||
if (d.success) {
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
tip("获取成功");
|
||||
$('#mdCusOtherList').datagrid('reload',{});
|
||||
|
||||
}
|
||||
|
||||
|
||||
//导入
|
||||
function ImportXls() {
|
||||
|
|
Loading…
Reference in New Issue