jbo新增字段和表

修改弹框样式
增加时间操作人等入库自动添加功能
This commit is contained in:
zhangjun 2019-05-31 10:00:17 +08:00
parent 3a82ab8a6c
commit b11a3fa5b7
3 changed files with 53 additions and 80 deletions

View File

@ -72,7 +72,7 @@
function newRecord(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileDownloadImportInfo.jsp";
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=800px;dialogHeight=300px;center:yes;status:no;statusbar:no",function(){
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=850px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(){
reloadSelf();},"新增信息");
}
@ -84,7 +84,7 @@
alert("参数不能为空!");
return ;
}
AsDialog.PopView(sUrl,"ID="+sPara,"resizable=yes;dialogWidth=800px;dialogHeight=300px;center:yes;status:no;statusbar:no",function(){reloadSelf();},"修改信息");
AsDialog.PopView(sUrl,"ID="+sPara,"resizable=yes;dialogWidth=850px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(){reloadSelf();},"修改信息");
}
//excel导入
@ -125,6 +125,13 @@
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
<script type="text/javascript">
//如果没有找到对应记录,则新增一条,并可以设置字段默认值
setItemValue(0,0,"INPUTUSERID","<%=CurUser.getUserName()%>");
setItemValue(0,0,"INPUTORGID","<%=CurUser.getOrgName()%>");
setItemValue(0,0,"INPUTTIME","<%=StringFunction.getTodayNow()%>");
setItemValue(0,0,"UPDATEUSERID","<%=CurUser.getUserName()%>");
setItemValue(0,0,"UPDATEORGID","<%=CurUser.getOrgName()%>");
setItemValue(0,0,"UPDATETIME","<%=StringFunction.getTodayNow()%>");
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>

View File

@ -20,9 +20,9 @@
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
<%
String sButtons[][] = {
/* {"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
//{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
{"true","","Button","修改","修改","viewAndEdit()","","","","btn_icon_edit"},
{"true","All","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""}, */
//{"true","All","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""},
{"true","","Button","excel导入","excel导入","importExcel()","","","","btn_icon_import"},
{"true","","Button","模版下载","模版下载","DiscountDownload()","","","","btn_icon_down",""},
/* {"true","All","Button","生成租金计划","生成租金计划","createPlan()","","","","btn_icon_generate"},
@ -42,79 +42,6 @@
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
<script type="text/javascript">
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
function copyPath(){
var contractNoArray=getItemValueArray(0,"CONTRACT_NO");
if(typeof(contractNoArray)=="undefined"||contractNoArray==null||contractNoArray==""){alert("请选择数据");return;}
var contractNos = contractNoArray.join("@");
var sUrl = "/Tenwa/Core/FlowManager/CopyFileToOther.jsp";
var param = "contractNos="+contractNos;
AsControl.RunJsp(sUrl,param,function(result){
if(result=="SUCCESS"){
}
alert("拷贝成功!!");
});
//本地测试数据
//var contractNos="BQAP(AH)201904230002";
/* var sparam = "contractNos="+contractNos;
var result=RunJavaMethod("com.tenwa.reckon.copydata.FileCopyToOtherPath","copyFile",sparam);
if(result=="SUCCESS"){
alert("拷贝成功!!");
}else{
alert(result);
} */
}
//生成数据
function createPlan(){
var Id = getItemValueArray(0,"ID");
var CONTRACT_NO = getItemValueArray(0,"CONTRACT_NO");
var number = 0;
var faile_no="";
if(typeof(Id)=="undefined"||Id==null||Id==""){alert("请选择数据");return;}
for(var i=0;i<Id.length;i++){
var param={};
var tempParam={};
var sparam="";
//模板号
param["templateNo"]="8c0b32eefcf349e5b5f76d898df0bbbb";
//生成文件关联关系
tempParam["OBJECTTYPE"]="租金支付表导出";
tempParam["CONTRACT_NO"]=CONTRACT_NO[i];
//tempParam["contract_id"]=Id[i];
//生成模板固定参数
tempParam["CurUserId"]="<%=CurUser.getUserID()%>";
tempParam["CurOrgId"]="<%=CurUser.getOrgID()%>";
tempParam["fileSavePath"]="<%=CurConfig.getConfigure("FileSavePath")%>";
param["templateParam"]=JSON.stringify(tempParam).replace(/,/g,"@");//生成模板的参数据
for(var key in param){
if(sparam.length>0){sparam+=",";}
sparam+=key+"="+param[key];
}
var result=RunJavaMethodTrans("com.tenwa.officetempalte.action.CreateOfficeAction","createOfficeByTemplate",sparam);
if(result=="success"){
number++;
}else{
faile_no+=CONTRACT_NO[i]+";";
}
}
if(Id.length==0){
alert("请先选择数据!!!");
return;
}else if(number==0){
alert("生成失败!!!");
}else if(number==Id.length){
alert("生成成功!!!");
}else{
alert("部分生成成功!!!"+faile_no+"生成失败!!!");
}
reloadSelf();
}
function newRecord(){
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/Introductionofrepairvehiclemodelsinfo.jsp";
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=800px;dialogHeight=300px;center:yes;status:no;statusbar:no",function(){
@ -129,7 +56,7 @@
alert("参数不能为空!");
return ;
}
AsDialog.PopView(sUrl,"ID="+sPara,"resizable=yes;dialogWidth=800px;dialogHeight=300px;center:yes;status:no;statusbar:no",function(){reloadSelf();},"修改信息");
AsDialog.PopView(sUrl,"ID="+sPara,"resizable=yes;dialogWidth=850px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(){reloadSelf();},"修改信息");
}
//excel导入
@ -170,6 +97,13 @@
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
<script type="text/javascript">
//如果没有找到对应记录,则新增一条,并可以设置字段默认值
setItemValue(0,0,"INPUTUSERID","<%=CurUser.getUserName()%>");
setItemValue(0,0,"INPUTORGID","<%=CurUser.getOrgName()%>");
setItemValue(0,0,"INPUTTIME","<%=StringFunction.getTodayNow()%>");
setItemValue(0,0,"UPDATEUSERID","<%=CurUser.getUserName()%>");
setItemValue(0,0,"UPDATEORGID","<%=CurUser.getOrgName()%>");
setItemValue(0,0,"UPDATETIME","<%=StringFunction.getTodayNow()%>");
</script>
<%/*~END~*/%>
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>

View File

@ -5382,7 +5382,7 @@
</manager>
</class>
<!-- 清障车车型导入下载页面jbo -->
<!-- 商用车车型导入下载页面jbo -->
<class name="li_cardata_commercial" label="清障车车型导入" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="32"/>
@ -5392,7 +5392,12 @@
<attribute name="the_guided" label="指导价" type="STRING" length="32"/>
<attribute name="vehicle_type" label="车辆类型" type="STRING" length="64"/>
<attribute name="level" label="级别" type="STRING" length="32"/>
<attribute name="inupttime" label="登记时间" type="STRING" length="32"/>
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -5410,6 +5415,12 @@
<attribute name="cars" label="车系" type="STRING" length="32"/>
<attribute name="models" label="车型" type="STRING" length="32"/>
<attribute name="the_guided" label="指导价" type="STRING" length="32"/>
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -5419,5 +5430,26 @@
</manager>
</class>
<!-- 经销商自动代偿配置页面jbo -->
<class name="lb_automatic_compensatory" label="经销商自动代偿配置" keyAttributes="ID">
<attributes>
<attribute name="ID" label="标识" type="STRING" length="32"/>
<attribute name="distributor_no" label="经销商id" type="STRING" length="32"/>
<attribute name="days_Number" label="天数" type="STRING" length="32"/>
<attribute name="INPUTUSERID" label="登记人" type="STRING" length="32"/>
<attribute name="INPUTORGID" label="登记部门" type="STRING" length="32"/>
<attribute name="INPUTTIME" label="登记时间" type="STRING" length="32"/>
<attribute name="UPDATEUSERID" label="更新人" type="STRING" length="32"/>
<attribute name="UPDATEORGID" label="更新部门" type="STRING" length="32"/>
<attribute name="UPDATETIME" label="更新时间" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
<property name="table" value="lb_automatic_compensatory" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
</package>
</jbo>