62 lines
2.6 KiB
Plaintext
62 lines
2.6 KiB
Plaintext
<%@page import="com.amarsoft.app.base.util.ObjectWindowHelper"%>
|
|
<%@page import="com.amarsoft.app.base.businessobject.*"%>
|
|
<%@ page contentType="text/html; charset=GBK"%>
|
|
<%@include file="/Frame/resources/include/include_begin_list.jspf"%>
|
|
<%
|
|
|
|
String xmlFile = CurPage.getParameter("XMLFile");
|
|
String xmlTags = CurPage.getParameter("XMLTags");
|
|
String keys = CurPage.getParameter("Keys");
|
|
String PG_TITLE = "产品组件参数定义";
|
|
|
|
ASObjectWindow dwTemp = ObjectWindowHelper.createObjectWindow_List("PRD_ComponentParameterList", BusinessObject.createBusinessObject(), CurPage, request);
|
|
|
|
ASDataObject doTemp=dwTemp.getDataObject();
|
|
|
|
doTemp.setBusinessProcess("com.amarsoft.app.als.businessobject.web.XMLBusinessObjectProcessor");
|
|
dwTemp.ReadOnly = "0"; //设置是否只读 1:只读 0:可写
|
|
dwTemp.genHTMLObjectWindow("");
|
|
|
|
String sButtons[][] = {
|
|
{"true","","Button","新增","新增","importParameters(0)","","","","",""},
|
|
{"true","","Button","保存","保存","as_save(0,'parent.openRule()')","","","","",""},
|
|
{"true","","Button","删除","删除","if(confirm('确实要删除吗?')) as_delete(0,'parent.openRule()')","","","","",""}
|
|
};
|
|
%>
|
|
<%@include file="/Frame/resources/include/ui/include_list.jspf"%>
|
|
<script type="text/javascript">
|
|
|
|
function importParameters(dwname){
|
|
var type = parent.getItemValue(0,0,"Type");
|
|
|
|
var xmlFile = "{$ARE.PRD_HOME}/etc/app/component/component-parameter-config.xml";
|
|
var xmlTags = "Parameter|| COMPONENTTYPE like \\'"+type+"\\'";
|
|
var keys = "ParameterID";
|
|
var process = "com.amarsoft.app.als.businessobject.web.XMLBusinessObjectProcessor";
|
|
|
|
var inputParameterString="{'XMLFile':'"+xmlFile+"','XMLTags':'"+xmlTags+"','Keys':'"+keys+"','BusinessProcess':'"+process+"'}";
|
|
AsDialog.SelectGridValue("PRD_ParameterList", inputParameterString, "PARAMETERID@PARAMETERNAME", "", true,"",function(parameterIDString){
|
|
if(!parameterIDString || parameterIDString == "_CANCEL_" || parameterIDString == "_CLEAR_")
|
|
return ;
|
|
|
|
var position= getRowCount(0);
|
|
var parameterArray = parameterIDString.split("~");
|
|
|
|
for(var i = 0; i < parameterArray.length; i ++)
|
|
{
|
|
as_add(dwname);
|
|
setItemValue(dwname,position+i,'PARAMETERID',parameterArray[i].split("@")[0]);
|
|
setItemValue(dwname,position+i,'PARAMETERNAME',parameterArray[i].split("@")[1]);
|
|
setItemValue(dwname,position+i,'DISPLAYNAME',parameterArray[i].split("@")[1]);
|
|
}
|
|
});
|
|
};
|
|
|
|
$(document).ready(function(){
|
|
//非数据库表数据操作,请加入以下代码
|
|
for(var i=0;i<DZ[0][1].length;i++){
|
|
TableFactory.ColKeyIndexs[TableFactory.ColKeyIndexs.length] = i;
|
|
}
|
|
});
|
|
</script>
|
|
<%@include file="/Frame/resources/include/include_end.jspf"%> |