更新代码

This commit is contained in:
liuzhao 2018-10-16 10:03:33 +08:00
parent c33d1420c7
commit eff25c1b16
6 changed files with 115 additions and 5 deletions

View File

@ -0,0 +1,31 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
/*
Author: undefined 2018-10-15
Content: 示例详情页面
History Log:
*/
String contract_number = CurPage.getParameter("FlowKey");
String sPrevUrl = CurPage.getParameter("PrevUrl");
if(sPrevUrl == null) sPrevUrl = "";
String sTempletNo = "LBRegisterContractInfoD";//--模板号--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
//doTemp.setColTips("", "测试");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.ReadOnly = "-2";//只读模式
dwTemp.genHTMLObjectWindow(contract_number);
String sButtons[][] = {
//{"true","All","Button","保存","保存所有修改","as_save(0)","","","",""},
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
};
sButtonPosition = "south";
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
<script type="text/javascript">
function returnList(){
AsControl.OpenView("<%=sPrevUrl%>", "","_self","");
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -1,6 +1,7 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><%
String userid = CurPage.getUserId();
String sTempletNo = "LBRegisterContractInfo";//--Ä£°åºÅ--
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
@ -20,7 +21,8 @@
as_save("myiframe0");
}
function selectContract(){
AsDialog.OpenSelector("SelectContractForRegister","","dialogWidth=" + parseInt(window.screen.width * 0.3) + "px dialogHeight=" + parseInt(window.screen.height * 0.4) + "px",function(sReturn){
var userid = "<%=userid%>";
AsDialog.OpenSelector("SelectContractForRegister","userid,"+userid,"dialogWidth=" + parseInt(window.screen.width * 0.4) + "px dialogHeight=" + parseInt(window.screen.height * 0.8) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
return;
}

View File

@ -0,0 +1,55 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><%
/*
Author: undefined 2018-10-15
Content:
History Log:
*/
ASObjectModel doTemp = new ASObjectModel("DayDistribute");
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
dwTemp.Style="1"; //--设置为Grid风格--
dwTemp.ReadOnly = "0"; //只读模式
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","All","Button","保存","保存所有修改","as_save(0)","","","",""},
//{"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 (){
//$("#INPUT_myiframe0_end_day_2_2").style.display="none";
//$("#INPUT_myiframe0_end_day_2_2").style.visibility="hidden";
var ss=document.getElementsByName("INPUT_myiframe0_end_day_2_2");
//ss.style.visibility="hidden";
ss.style.display="none";
});
$("#INPUT_myiframe0_end_day_2_2").blur(function(){
alert("eeee");
$("#INPUT_myiframe0_end_day_2_1").blur[0];
});
function(){
}; */
function newRecord(){
var sUrl = "";
AsControl.OpenView(sUrl,'','_self','');
}
function viewAndEdit(){
var sUrl = "";
var sPara = getItemValue(0,getRow(0),'SerialNo');
if(typeof(sPara)=="undefined" || sPara.length==0 ){
alert("参数不能为空!");
return ;
}
AsControl.OpenView(sUrl,'SerialNo=' +sPara ,'_self','');
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -12,7 +12,7 @@
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
//dwTemp.ReadOnly = "-2";//Ö»¶Áģʽ
dwTemp.ReadOnly = "0";//Ö»¶Áģʽ
dwTemp.genHTMLObjectWindow(CurPage.getParameter("id"));
String sButtons[][] = {

View File

@ -4669,6 +4669,28 @@
</managerProperties>
</manager>
</class>
<class name="DAY_DISTRIBUTE" label="" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="32"/>
<attribute name="role" label="催款员角色" type="STRING" length="32"/>
<attribute name="begin_day" label="开始天数" type="INT" length="10"/>
<attribute name="end_day" label="结束天数" type="INT" length="10"/>
<attribute name="FIELD1" label="FIELD1" type="STRING" length="32"/>
<attribute name="FIELD2" label="FIELD2" type="STRING" length="32"/>
<attribute name="INPUTUSERID" label="INPUTUSERID" type="STRING" length="32"/>
<attribute name="INPUTORGID" label="INPUTORGID" type="STRING" length="32"/>
<attribute name="INPUTTIME" label="INPUTTIME" type="STRING" length="32"/>
<attribute name="UPDATEUSERID" label="UPDATEUSERID" type="STRING" length="32"/>
<attribute name="UPDATEORGID" label="UPDATEORGID" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="UPDATETIME" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="day_distribute" />
<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">

View File

@ -11,8 +11,8 @@ public class RegisterContractInfoHandler extends CommonHandler{
protected void initDisplayForAdd(BizObject bo) throws Exception {
bo.setAttributeValue("SENT_PERSON", this.curUser.getUserName());
bo.setAttributeValue("SENT_DATE", DateAssistant.getToday());
bo.setAttributeValue("INPUTUSERID", this.curUser.getUserID());
bo.setAttributeValue("INPUTTIME", DateAssistant.getTodayNow());
//bo.setAttributeValue("INPUTUSERID", this.curUser.getUserID());
//bo.setAttributeValue("INPUTTIME", DateAssistant.getTodayNow());
super.initDisplayForAdd(bo);
}
}