46 lines
1.9 KiB
Plaintext
46 lines
1.9 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||
/*
|
||
Author: undefined 2017-09-18
|
||
Content:
|
||
History Log:
|
||
*/
|
||
|
||
String customer_id=CurPage.getParameter("customerId");
|
||
ASObjectModel doTemp = new ASObjectModel("CustomerQuoteList");
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||
dwTemp.Style="1"; //--设置为Grid风格--
|
||
dwTemp.ReadOnly = "1"; //只读模式
|
||
dwTemp.setPageSize(10);
|
||
dwTemp.genHTMLObjectWindow(customer_id);
|
||
|
||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||
String sButtons[][] = {
|
||
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||
{"true","All","Button","修改","详情","opanCalc()","","","","btn_icon_detail",""},
|
||
{"true","","Button","详情","详情","opanCalc('true')","","","","btn_icon_detail",""},
|
||
{"true","All","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0)","","","","btn_icon_delete",""},
|
||
};
|
||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||
<script type="text/javascript">
|
||
function newRecord(){
|
||
var sUrl = "/Tenwa/Customer/Quote/CustomerQuoteInfo.jsp";
|
||
AsControl.OpenView(sUrl,'customer_id=<%=customer_id%>','_self','');
|
||
}
|
||
function opanCalc(p){
|
||
var quot=getItemValue(0,getRow(0),"quot_id");
|
||
var productid=getItemValue(0,getRow(0),"product_id");
|
||
var customerid=getItemValue(0,getRow(0),"customerid");
|
||
var param="FlowUnid="+customerid+"&plannumber="+quot+"&ProductId="+productid+"&calType=quoted_price";
|
||
if(quot==undefined){
|
||
alert("请选择一条记录");
|
||
return ;
|
||
|
||
}
|
||
if('true'==p){
|
||
param+='&RightType=ReadOnly';
|
||
}
|
||
AsControl.OpenView("/Accounting/LoanSimulation/LoanBasicInfo.jsp",param,'_self','');
|
||
}
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |