74 lines
3.0 KiB
Plaintext
74 lines
3.0 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||
/*
|
||
Author: undefined 2018-05-29
|
||
Content:
|
||
History Log:
|
||
*/
|
||
String userid=CurUser.getUserID();
|
||
String department=CurUser.getOrgID();
|
||
ASObjectModel doTemp = new ASObjectModel("sourceOfFunds");
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||
dwTemp.Style="1"; //--设置为Grid风格--
|
||
dwTemp.ReadOnly = "1"; //只读模式
|
||
dwTemp.setPageSize(10);
|
||
dwTemp.genHTMLObjectWindow("");
|
||
dwTemp.MultiSelect = true;
|
||
doTemp.setLockCount(2);
|
||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||
String sButtons[][] = {
|
||
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||
{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
|
||
{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""},
|
||
{"true","","Button","数据导入","数据导入","importExcel()","","","","btn_icon_import",""},
|
||
{"true","","Button","批量修改","批量修改","MultiUpdate()","","","","btn_icon_detail",""},
|
||
};
|
||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||
<script type="text/javascript">
|
||
function MultiUpdate(){
|
||
var id = getItemValueArray(0,'id');
|
||
if(id.length == 0){
|
||
AsDebug.showMessage("提示:", "请先选择要修改的数据!");
|
||
}else {
|
||
id = JSON.stringify(id).replace(/,/g,"@");
|
||
AsDialog.PopView("/Tenwa/Core/OfficeTemplate/TemplateManager/BFTemplateTest/uppdateMessage.jsp","",
|
||
{width:"850px",height:"170px",title:"批量修改"},function(sparam){
|
||
if(sparam.length>0){
|
||
updateMessage(sparam,id);
|
||
}
|
||
reloadSelf();});
|
||
}
|
||
}
|
||
|
||
function updateMessage(sparam,ids){
|
||
var res=RunJavaMethodTrans("com.tenwa.lease.app.message.UpdateMessageHandler","MultiUpdate","sparam="+sparam+",ids="+ids);
|
||
}
|
||
|
||
function importExcel(){
|
||
var importCondition={};//导入配置
|
||
importCondition["templateNo"]="7148746b2023454c80f86d16d8ae8c75";//导入的模板编号必填
|
||
//增加其他配置参数
|
||
importCondition["inputuserid"]="<%=userid%>";;
|
||
importCondition["inputorgid"]="<%=department%>";
|
||
var sparam=JSON.stringify(importCondition).replace(/,/g,"@");//生成模板的参数据
|
||
AsDialog.PopView("/Tenwa/Core/OfficeTemplate/TemplateManager/BFTemplateTest/uploadExcel.jsp","importparam="+sparam,
|
||
{width:"500px",height:"40px",title:"上传Excel"},function(){
|
||
reloadSelf();});
|
||
|
||
|
||
}
|
||
function newRecord(){
|
||
var sUrl = "/money/sourceOfFundsInfo.jsp";
|
||
AsControl.OpenView(sUrl,'','_self','');
|
||
}
|
||
function viewAndEdit(){
|
||
var sUrl = "/money/sourceOfFundsInfo.jsp";
|
||
var sPara = getItemValue(0,getRow(0),'ID');
|
||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||
alert("参数不能为空!");
|
||
return ;
|
||
}
|
||
AsControl.OpenView(sUrl,'ID=' +sPara ,'_self','');
|
||
}
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |