新做页面文件清单配置
This commit is contained in:
parent
5096970366
commit
c43bf3b22f
@ -0,0 +1,27 @@
|
||||
<%@page import="com.itextpdf.text.log.SysoCounter"%>
|
||||
<%@ page contentType="text/html; charset=GBK"%><%@
|
||||
include
|
||||
file="/Frame/resources/include/include_begin_info.jspf"%>
|
||||
<%
|
||||
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
||||
if(sPrevUrl == null) sPrevUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileListConfigUrationList.jsp";
|
||||
String sTempletNo = "file_listconfigurationS";//--模板号--
|
||||
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
dwTemp.ReadOnly = "0";//只读模式
|
||||
dwTemp.genHTMLObjectWindow(CurPage.getParameter("ID"));
|
||||
|
||||
String sButtons[][] = {
|
||||
{"true", "All", "Button", "保存","保存所有修改", "saveRecord()", "", "", "", ""},
|
||||
};
|
||||
%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%>
|
||||
<script type="text/javascript">
|
||||
function goBack(){
|
||||
parent.AsDialog.ClosePage();
|
||||
}
|
||||
function saveRecord(sPostEvents) {
|
||||
as_save("myiframe0", "goBack()");
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -0,0 +1,123 @@
|
||||
<%@ page contentType="text/html; charset=GBK"%>
|
||||
<%@ include file="/Frame/resources/include/include_begin_list.jspf"%>
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List01;Describe=定义页面属性;]~*/%>
|
||||
<%
|
||||
String PG_TITLE = "文件清单配置"; // 浏览器窗口标题 <title> PG_TITLE </title>
|
||||
%>
|
||||
<%
|
||||
ASObjectModel doTemp = new ASObjectModel("file_listconfiguration");
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request);
|
||||
dwTemp.Style="1"; //--设置为Grid风格--
|
||||
//dwTemp.MultiSelect = true; //多选
|
||||
dwTemp.ReadOnly = "1"; //只读模式
|
||||
dwTemp.setPageSize(30);
|
||||
dwTemp.genHTMLObjectWindow("");
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
|
||||
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=List04;Describe=定义按钮;]~*/%>
|
||||
<%
|
||||
String sButtons[][] = {
|
||||
{"true","All","Button","新增","新增","newRecord()","","","","btn_icon_add",""},
|
||||
{"true","","Button","修改","修改","viewAndEdit()","","","","btn_icon_edit"},
|
||||
{"true","All","Button","删除","删除","deleteRecord()","","","","btn_icon_delete",""},
|
||||
//{"true","","Button","excel导入","excel导入","importExcel()","","","","btn_icon_import"},
|
||||
//{"true","","Button","模版下载","模版下载","DiscountDownload()","","","","btn_icon_down",""},
|
||||
//{"true","All","Button","下载","下载资料","copy()","","","","btn_icon_generate"},
|
||||
};
|
||||
%>
|
||||
<%/*~END~*/%>
|
||||
<%/*~BEGIN~不可编辑区~[Editable=false;CodeAreaID=List05;Describe=主体页面;]~*/%>
|
||||
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
||||
<%/*~END~*/%>
|
||||
|
||||
<form name=form1 method=post action="<%=sWebRootPath%>/servlet/view/fileTemplateView?CompClientID=<%=sCompClientID%>" target=MyAtt>
|
||||
<div style="display:none">
|
||||
<input id="sqlString" name="sqlString" value="">
|
||||
</div>
|
||||
</form>
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List06;Describe=定义按钮事件;]~*/%>
|
||||
<script type="text/javascript">
|
||||
/*~[Describe=新增记录;InputParam=无;OutPutParam=无;]~*/
|
||||
var Id;
|
||||
var contractNoArray;
|
||||
var batchNoArray;
|
||||
function newRecord(){
|
||||
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileListConfigUrationInfo.jsp";
|
||||
AsDialog.PopView(sUrl,'',"resizable=yes;dialogWidth=850px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(){
|
||||
reloadSelf();},"新增信息");
|
||||
}
|
||||
|
||||
function viewAndEdit(){
|
||||
var sUrl = "/Tenwa/Lease/Flow/Comm/LBAssetTransferRegistration/FileListConfigUrationInfo.jsp";
|
||||
var sPara = getItemValue(0,getRow(0),'ITEMNO');
|
||||
if(typeof(sPara)=="undefined" || sPara.length==0 ){
|
||||
alert("参数不能为空!");
|
||||
return ;
|
||||
}
|
||||
AsDialog.PopView(sUrl,"ID="+sPara,"resizable=yes;dialogWidth=850px;dialogHeight=200px;center:yes;status:no;statusbar:no",function(){reloadSelf();},"修改信息");
|
||||
}
|
||||
|
||||
//excel导入
|
||||
function importExcel(){
|
||||
var importCondition={};//导入配置
|
||||
importCondition["templateNo"]="4f5e73385146431d9aec13d06aae21bf";//导入的模板编号必填s
|
||||
//增加其他配置参数
|
||||
importCondition["inputuserid"]="<%=CurUser.getUserID()%>";
|
||||
importCondition["inputorgid"]="<%=CurUser.getOrgID()%>";
|
||||
var sparam=JSON.stringify(importCondition).replace(/,/g,"@");//生成模板的参数据
|
||||
AsDialog.PopView("/Tenwa/Core/OfficeTemplate/TemplateManager/BFTemplateTest/uploadExcel.jsp","importparam="+sparam,
|
||||
{width:"350px",height:"40px",title:"上传文件下载数据"},function(){
|
||||
reloadSelf();});
|
||||
}
|
||||
//模板下载
|
||||
function DiscountDownload(){
|
||||
var sId="4f5e73385146431d9aec13d06aae21bf";
|
||||
if (typeof(sId)=="undefined" || sId.length==0){
|
||||
return;
|
||||
}else{
|
||||
$("#sqlString").val("save@"+sId);
|
||||
form1.submit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function deleteRecord(){
|
||||
var ownNumber = getItemValue(0,getRow(),'ITEMNO');
|
||||
if(typeof(ownNumber)=="undefined" || ownNumber.length==0 ){
|
||||
alert("请选择一条信息!");
|
||||
return ;
|
||||
}
|
||||
if(confirm('确实要删除吗?')){
|
||||
as_delete(0);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List07;Describe=自定义函数;]~*/%>
|
||||
<script type="text/javascript">
|
||||
//如果没有找到对应记录,则新增一条,并可以设置字段默认值
|
||||
setItemValue(0,0,"INPUTTIME","<%=StringFunction.getTodayNow()%>");
|
||||
setItemValue(0,0,"UPDATETIME","<%=StringFunction.getTodayNow()%>");
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=List08;Describe=页面装载时,进行初始化;]~*/%>
|
||||
<script type="text/javascript">
|
||||
|
||||
//校验文件清单配置代码项编号是否唯一
|
||||
function Uniquenesscheck(){
|
||||
debugger;
|
||||
var ITEMNO = getItemValue(0,0,'ITEMNO');
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.customer.controller.group.CustomerGroupCompanyController","file_repeat","ITEMNO="+ITEMNO);
|
||||
if("false" ==sReturnInfo){
|
||||
AsDebug.alert("提示","代码项编号已存在,请重新输入!!!");
|
||||
return false;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%/*~END~*/%>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -6,6 +6,7 @@ import jbo.app.tenwa.customer.DISTRIBUTOR_GROUP_RELATION;
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_INFO;
|
||||
import jbo.app.tenwa.customer.DISTRIBUTOR_INFO_TEMP;
|
||||
import jbo.com.tenwa.entity.comm.own.COUNTRY_DISTRICT_INFO;
|
||||
import jbo.sys.CODE_LIBRARY;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.BizObjectManager;
|
||||
@ -20,6 +21,8 @@ public class CustomerGroupCompanyController {
|
||||
private String group_no = "";
|
||||
private String DISTRIBUTOR_CODING = "";
|
||||
private String flowunid;
|
||||
private String ITEMNO = "";
|
||||
private String SORTNO = "";
|
||||
|
||||
public String getFlowunid() {
|
||||
return flowunid;
|
||||
@ -182,4 +185,25 @@ public class CustomerGroupCompanyController {
|
||||
}
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public String file_repeat(JBOTransaction tx) throws Exception{
|
||||
BizObjectManager filedc = JBOFactory.getBizObjectManager(CODE_LIBRARY.CLASS_NAME);
|
||||
BizObject dgfc = filedc.createQuery("ITEMNO=:ITEMNO").setParameter("ITEMNO", ITEMNO).getSingleResult(false);
|
||||
if(dgfc == null){
|
||||
return "true";
|
||||
}else{
|
||||
return "false";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user