72 lines
2.7 KiB
Plaintext
72 lines
2.7 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%>
|
||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
|
||
/*
|
||
Author: undefined 2018-05-27
|
||
Content:
|
||
History Log:
|
||
*/
|
||
String sFlowUnid = CurPage.getParameter("FlowUnid");
|
||
String ProjectName = CurPage.getParameter("ProjectName");
|
||
String id = CurPage.getParameter("ProjectId");
|
||
|
||
String DistributorNo = CurPage.getParameter("DistributorNo");
|
||
|
||
String types = CurPage.getParameter("PhaseNo");
|
||
ASObjectModel doTemp = new ASObjectModel("DMarginChargeInfo_TempList");
|
||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||
dwTemp.Style="1"; //--设置为Grid风格--
|
||
dwTemp.ReadOnly = "1"; //只读模式
|
||
dwTemp.setPageSize(10);
|
||
dwTemp.genHTMLObjectWindow(sFlowUnid);
|
||
|
||
String flag ="true";
|
||
if("0020".equals(types)){
|
||
flag ="false";
|
||
}
|
||
|
||
|
||
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格
|
||
String sButtons[][] = {
|
||
{flag,"All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||
{flag,"","Button","详情","查看/修改详情","view()","","","","btn_icon_detail"},
|
||
{flag,"","Button","修改","修改","viewAndEdit()","","","","btn_icon_detail",""},
|
||
{flag,"","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 = "/DealerDeposit/DMarginChargeInfo_Temp.jsp";
|
||
var param = '<%=ProjectName%>';
|
||
<%-- AsControl.OpenView(sUrl,"id=<%=id%>&FlowUnid=<%=sFlowUnid %>&ProjectName="+param,'_self',''); --%>
|
||
|
||
var DistributorNo='DistributorNo=<%=DistributorNo%>';
|
||
AsControl.OpenView(sUrl,"id=<%=id%>&FlowUnid=<%=sFlowUnid %>&ProjectName="+param+"&"+DistributorNo,'_self','');
|
||
}
|
||
|
||
|
||
//详情
|
||
function view(){
|
||
var sUrl = "/DealerDeposit/DMarginChargeInfo_Temp.jsp";
|
||
var ID = getItemValue(0,getRow(0),'ID');
|
||
//var id = getItemValue(0,getRow(0),'id');
|
||
var param = '<%=ProjectName%>';
|
||
if(typeof(ID)=="undefined" || ID.length==0 ){
|
||
alert("请选择一条信息!");
|
||
return ;
|
||
}
|
||
AsControl.OpenView(sUrl,'ID='+ID+'&rightType=ReadOnly&ProjectName='+param,"_self","");
|
||
}
|
||
|
||
function viewAndEdit(){
|
||
var sUrl = "/DealerDeposit/DMarginChargeInfo_Temp.jsp";
|
||
var sPara = getItemValue(0,getRow(0),'ID');
|
||
var param = '<%=ProjectName%>';
|
||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||
alert("参数不能为空!");
|
||
return ;
|
||
}
|
||
AsControl.OpenView(sUrl,"ID="+sPara+"&FlowUnid=<%=sFlowUnid %>&ProjectName="+param,'_self','');
|
||
|
||
}
|
||
</script>
|
||
<%@ include file="/Frame/resources/include/include_end.jspf"%> |