租赁系统版本配置列表;
去debugger
This commit is contained in:
parent
8a576b8014
commit
4c249f5fa9
@ -82,7 +82,6 @@
|
||||
/*~[Describe=±£´æ¼Ç¼;InputParam=ÎÞ;OutPutParam=ÎÞ;]~*/
|
||||
|
||||
function saveRecord(){
|
||||
debugger;
|
||||
var ids="<%=ids%>";
|
||||
ids=ids.replace(/,/ig,"@");
|
||||
var ASSETTRANSFERER=getItemValue(0,getRow(0),"ASSETTRANSFERER");
|
||||
|
||||
45
WebContent/Version/VersionInfo.jsp
Normal file
45
WebContent/Version/VersionInfo.jsp
Normal file
@ -0,0 +1,45 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||
include
|
||||
file="/Frame/resources/include/include_begin_info.jspf"%>
|
||||
<%
|
||||
//获得参数
|
||||
String id = CurPage.getParameter("id");
|
||||
if (id == null)
|
||||
id = "";
|
||||
|
||||
String sUserID = CurPage.getParameter("UserID");
|
||||
if (sUserID == null)
|
||||
sUserID = "";
|
||||
|
||||
java.util.Date dateNow = new java.util.Date();
|
||||
SimpleDateFormat sdfTemp = new SimpleDateFormat(
|
||||
"yyyy/MM/dd");
|
||||
String date = sdfTemp.format(dateNow);
|
||||
|
||||
ASObjectModel doTemp = new ASObjectModel("VERSION_INFO");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,
|
||||
request);
|
||||
dwTemp.Style = "2"; //设置DW风格 1:Grid 2:Freeform
|
||||
dwTemp.ReadOnly = "0"; //设置是否只读 1:只读 0:可写
|
||||
dwTemp.genHTMLObjectWindow(id);
|
||||
|
||||
String sButtons[][] = {{"true", "All", "Button", "保存",
|
||||
"保存所有修改", "saveRecord()", "", "", "", "btn_icon_save"},};
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
function goBack(){
|
||||
parent.AsDialog.ClosePage();
|
||||
}
|
||||
|
||||
function saveRecord(sPostEvents) {
|
||||
if ("<%=id%>" == "") {
|
||||
setItemValue(0,0,"CREATE_DATE", "<%=date%>");
|
||||
setItemValue(0,0,"CREATOR", "<%=CurUser.getUserID()%>");
|
||||
}
|
||||
setItemValue(0,0,"MODIFY_DATE", "<%=date%>");
|
||||
setItemValue(0,0,"MODIFICATOR", "<%=CurUser.getUserID()%>");
|
||||
as_save("myiframe0", "goBack()");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
62
WebContent/Version/VersionList.jsp
Normal file
62
WebContent/Version/VersionList.jsp
Normal file
@ -0,0 +1,62 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||
include
|
||||
file="/Frame/resources/include/include_begin_list.jspf"%>
|
||||
<%
|
||||
ASObjectModel doTemp = new ASObjectModel("VERSION_LIST");
|
||||
doTemp.setLockCount(2); //锁定两列
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
|
||||
dwTemp.Style="1"; //设置为Grid风格
|
||||
dwTemp.ReadOnly = "1";//编辑模式
|
||||
dwTemp.setPageSize(10);
|
||||
dwTemp.ConvertCode2Title = "1";
|
||||
dwTemp.genHTMLObjectWindow("");
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true","","Button","新增应用","新增一个版本","newRecord()","","","","btn_icon_add"},
|
||||
{"true","","Button","应用信息","查看版本信息","viewAndEdit()","","","","btn_icon_detail"},
|
||||
{"true","","Button","删除该应用","删除该版本","if(confirm('确实要删除吗?'))as_delete(0,'')","","","","btn_icon_delete"},
|
||||
};
|
||||
%><%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
$("#ATTACHMENT").attr("type","file");
|
||||
$("#myiframe0").attr("enctype","multipart/form-data");
|
||||
var params={};
|
||||
params["usreid"]="<%=CurUser.getUserID()%>";
|
||||
var sparma="";
|
||||
for(var key in params){
|
||||
sparma=sparma+"<input type=\"text\" name=\""+key+"\" value=\""+params[key]+"\">"
|
||||
}
|
||||
hideItem(0,"FILENAME");
|
||||
$("#ATTACHMENT").append(sparma);
|
||||
$("#myiframe0").attr("action", "");
|
||||
$("#myiframe0").attr("method","post");
|
||||
});
|
||||
|
||||
function newRecord() {
|
||||
var sUrl = "/Version/VersionInfo.jsp";
|
||||
AsDialog.PopView(sUrl, "", "dialogWidth=600px;dialogHeight=450px;",
|
||||
function(message) {
|
||||
reloadSelf();
|
||||
}, "新增一个版本");
|
||||
}
|
||||
|
||||
function viewAndEdit() {
|
||||
var sUrl = "/Version/VersionInfo.jsp";
|
||||
var id = getItemValue(0, getRow(0), 'id');
|
||||
if (id == "" || typeof(id) == "undefined") {
|
||||
alert("请选上传的版本!");
|
||||
return false;
|
||||
}
|
||||
AsDialog.PopView(sUrl, "id=" + id,
|
||||
"dialogWidth=600px;dialogHeight=450px;", function(message) {
|
||||
reloadSelf();
|
||||
}, "新增一个版本");
|
||||
}
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -4717,6 +4717,25 @@
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
<class name="VERSION" label="租赁系统版本配置表" keyAttributes="ID">
|
||||
<attributes>
|
||||
<attribute name="ID" label="ID" type="STRING" length="96"/>
|
||||
<attribute name="VERSION_DESC" label="VERSION_DESC" type="STRING" length="765"/>
|
||||
<attribute name="UP_DATE" label="UP_DATE" type="STRING" length="60"/>
|
||||
<attribute name="IS_NEW" label="IS_NEW" type="STRING" length="30"/>
|
||||
<attribute name="CREATE_DATE" label="CREATE_DATE" type="STRING" length="60"/>
|
||||
<attribute name="MODIFY_DATE" label="MODIFY_DATE" type="STRING" length="60"/>
|
||||
<attribute name="MODIFICATOR" label="MODIFICATOR" type="STRING" length="96"/>
|
||||
<attribute name="VERSION_CODE" label="VERSION_CODE" type="STRING" length="765"/>
|
||||
<attribute name="VERSION_NAME" label="VERSION_NAME" type="STRING" length="765"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="version" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
</package>
|
||||
<package name="jbo.com.tenwa.lease.carbrand" >
|
||||
<class name="LB_CLAIMS_BOOK_DETAIL" label="索赔申请书详情表" keyAttributes="ID">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user