贴息管理;车系信息管理

This commit is contained in:
linxiaoping 2018-06-10 18:33:54 +08:00
parent 3ca03e1064
commit 4992ac876a
5 changed files with 247 additions and 0 deletions

View File

@ -0,0 +1,76 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-06-07
Content: 示例详情页面
History Log:
*/
String id = CurPage.getParameter("id");
String product_id = CurPage.getParameter("product_id");
String name = CurUser.getUserName();
String orgName = CurUser.getOrgName();
/* Date d = new Date();
System.out.print(d); */
/* if(sPrevUrl == null) sPrevUrl = ""; */
String sTempletNo = "LB_PRODUCT_CAR_INFO";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
/* doTemp.setColTips("", "测试"); */
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("product_id"));
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","save()","","","",""},
{"true","All","Button","返回","返回列表","returnList()","","","",""}
};
/* sButtonPosition = "south"; */
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
var name = setItemValue(0,getRow(),"inputuserid",'<%=name%>');
var orgName = setItemValue(0,getRow(),"inputorgid",'<%=orgName%>');
<%-- var time = setItemValue(0,getRow(),"inputtime",'<%=new Date()%>'); --%>
function save(){
as_save("myiframe0","returnList()");
}
function returnList(){
var product_id = "<%=product_id%>";
AsControl.OpenView("/Tenwa/Lease/App/Interface/CarInfo/LbProductCarList.jsp", "product_id="+product_id,"_self","");
}
function selProduct(){
AsDialog.OpenSelector("selectProduct","","dialogWidth=" + parseInt(window.screen.width * 0.3) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
return;
}
sReturn = sReturn.split("@");//返回值
setItemValue(0,0,"ID", sReturn[0]);//设置页面上面的值
setItemValue(0,0,"PRODUCT_ID", sReturn[1]);
setItemValue(0,0,"SERIALNO", sReturn[2]);
},"请选择产品")
}
/* function selBrandse(){
AsDialog.OpenSelector("selectBrandse","","dialogWidth=" + parseInt(window.screen.width * 0.3) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
return;
}
sReturn = sReturn.split("@");//返回值
setItemValue(0,0,"ID", sReturn[0]);//设置页面上面的值
setItemValue(0,0,"BRANDID", sReturn[1]);
setItemValue(0,0,"SERIESNAME", sReturn[2]);
},"请选择车系")
} */
function selModel(){
AsDialog.OpenSelector("selectModel","","dialogWidth=" + parseInt(window.screen.width * 0.3) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
return;//ID,seriesid,modelid@modelname
}
sReturn = sReturn.split("@");//返回值
setItemValue(0,0,"id", sReturn[0]);//设置页面上面的值
setItemValue(0,0,"brandid", sReturn[1]);
setItemValue(0,0,"modelid", sReturn[2]);
setItemValue(0,0,"modelname", sReturn[3]);//id@brandid@seriesid@modelid@modelname
},"请选择车系")
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,50 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-06-05
Content:
History Log:
*/
String product_id = CurPage.getParameter("product_id");
ASObjectModel doTemp = new ASObjectModel("LB_PRODUCT_CAR_LIST");
if (""!=product_id || null==product_id){
doTemp.appendJboWhere("lpi.product_id='"+product_id+"'");
}
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
//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,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
{"true","","Button","返回","返回","returnList()","","","","btn_icon_return",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
var sUrl = "/Tenwa/Lease/App/Interface/CarInfo/LbProductCarInfo.jsp";
var param = "<%=product_id%>";
AsControl.OpenView(sUrl,'product_id='+param,'_self','');//'id='+param+'&product_id='+sPara
/* document.getElementById("UPDATEUSERID").style.display="none"; */
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/App/Interface/CarInfo/LbProductCarInfo.jsp";
var sPara = "<%=product_id%>";//getItemValue(0,getRow(0),'product_id');
var sPara2 = getItemValue(0,getRow(0),'id');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'product_id=' +sPara+'&id='+sPara2,'_self','');
}
function returnList(){
AsControl.OpenView('/Tenwa/Lease/App/Interface/CarInfo/LbProductInfoList.jsp','' ,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,39 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-06-06
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("LB_PRODUCT_INFO_LIST");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
//0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标CSS层叠样式 10、风格
String sButtons[][] = {
//{"true","","Button","详情","详情","viewAndEdit()","","","","btn_icon_detail",""},
//{"true","","Button","删除","删除","if(confirm('确实要删除吗?'))as_delete(0,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/App/Interface/CarInfo/LbProductCarList.jsp";
var sPara = getItemValue(0,getRow(0),'id');
var sPara2 = getItemValue(0,getRow(0),'product_id');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'id='+sPara+'&product_id=' +sPara2 ,'_self','');
}
function afterSearch(){
for(var i=0;i<getRowCount(0);i++){
getObj(0,i,"PRODUCT_ID").innerHTML='<a class="box" onclick="javascript:viewAndEdit()" style={color:#000;text-decoration:underline;}><font color="blue">'+getObj(0,i,"PRODUCT_ID").innerHTML+'</font></a>';
}
}
afterSearch();
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -0,0 +1,37 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-06-09
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("LB_PRODUCT_SALVAGE");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "1"; //只读模式
dwTemp.setPageSize(10);
dwTemp.genHTMLObjectWindow("");
//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,'alert(getRowCount(0))')","","","","btn_icon_delete",""},
};
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
<script type="text/javascript">
function newRecord(){
var sUrl = "/Tenwa/Lease/App/Interface/CarInfo/LbProductSalvageInfo.jsp";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "/Tenwa/Lease/App/Interface/CarInfo/LbProductSalvageInfo.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"%>

View File

@ -0,0 +1,45 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-06-09
Content: 示例详情页面
History Log:
*/
String sPrevUrl = CurPage.getParameter("id");
/* if(sPrevUrl == null) sPrevUrl = ""; */
String sTempletNo = "LB_PRODUCT_SALVAGE_INFO";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
/* doTemp.setColTips("", "测试"); */
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
String sButtons[][] = {
{"true","All","Button","保存","保存所有修改","save()","","","",""},
{"true","All","Button","返回","返回列表","returnList()","","","",""}
};
/* sButtonPosition = "south"; */
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function save(){
as_save("myiframe0","returnList()");
}
function returnList(){
AsControl.OpenView("/Tenwa/Lease/App/Interface/CarInfo/LbProductSalvage.jsp", "","_self","");
}
function selProduct(){
AsDialog.OpenSelector("selProduct","ProductType,1,TypeNo,0005","dialogWidth=" + parseInt(window.screen.width * 0.3) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
return;
}
sReturn = sReturn.split("@");//返回值
alert(sReturn);
setItemValue(0,0,"ID", sReturn[0]);//设置页面上面的值
setItemValue(0,0,"PRODUCT_ID", sReturn[1]);
setItemValue(0,0,"SERIALNO", sReturn[2]);
},"请选择产品")
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>