|
<html>
<head>
<title></title>
</head>
<body>
<link rel="stylesheet" type="text/css" href="/CuteFramework/dorado/smartweb2.loadStyleSheet.d?skin=default"></link>
<script language="javascript" src="/CuteFramework/dorado/smartweb2.loadFile.d?file=/skins/default/preferences.js"></script>
<script language="javascript">
var __startTime=new Date();</script>
<script language="javascript" src="/CuteFramework/dorado/smartweb2.loadConst.d?language=cn&country=ZH"></script>
<script language="javascript" src="/CuteFramework/dorado/smartweb2.loadRes.d?res=/utils.js"></script>
<script language="javascript" src="/CuteFramework/dorado/smartweb2.loadRes.d?res=/base.js"></script>
<script language="javascript" src="/CuteFramework/dorado/smartweb2.loadRes.d?res=/control.js"></script>
<script language="javascript">
var __DORADO_VERSION="5.0 070104.1421 (Unregistered)";var __CONTEXT_PATH="/CuteFramework";var __SKIN_PATH="/CuteFramework/dorado/smartweb2.loadFile.d?file=/skins/default";var __DEFAULT_ONVALUE="1";var __DEFAULT_OFFVALUE="0";var __DEFAULT_INT_FORMAT="#";var __DEFAULT_FLOAT_FORMAT="#,###.##";</script>
<script language="javascript">
var __t=new ViewModel(null, "com.wondersgroup.framework.security.web.dorado.group.view.Group~com.wondersgroup.framework.console.view.FrameWorkViewModel");
$$e(__t, "onLoad", function (viewModel) {
buttonAdd.style.display="none";
buttonSave.style.display="none";
buttonDelete.style.display="none";
if (datasetFrameWork.parameters().getValue("FrameWorkOperCustomGroup")=="true")
{
buttonAdd.style.display="";
buttonSave.style.display="";
buttonDelete.style.display="";
}
}
);
function openSelectGroup(){
commandEdit.execute();
}
</script>
<table cellspacing="0" cellpadding="2" width="100%" height="100%" border="0" borderColor="black" style="border-collapse: collapse;">
<tr><td colSpan="3" width="100%" style="">
<TABLE cellspacing="0" cellpadding="0" class="AutoForm" border="0" style="width:100%;"><CAPTION style="display: none">
<DIV id="formcondition_group1_element2_renderer" style="height: 100%; display: none">
<!-- -->
</CAPTION><TR><TD><TABLE width="100%" height="100%" cellspacing="0" cellpadding="0" border="0" style="table-layout: fixed"><TR><TD valign="top" ><FIELDSET id="formcondition_group0" style="width:100%;"><LEGEND></LEGEND><DIV><DIV class="GroupBoxDiv" style="width:100%;height:100%"><TABLE class="InnerTable" width="100%" cellspacing="0" cellpadding="4" border="0" style="table-layout:fixed;">
<COLGROUP>
<COL width="100" ></COL>
<COL width="33%" ></COL>
<COL width="100" ></COL>
<COL width="33%" ></COL>
<COL width="100" ></COL>
<COL width="33%" ></COL>
</COLGROUP>
<TR><TD class="InnerTableLabelCell" align="right" ><label id="formcondition_fieldlabel_name"></label></TD><TD class="InnerTableContentCell" ><input type="text" id="formcondition_editor_name" name="name" style="width:100%;"></TD><TD class="InnerTableContentCell" colSpan="2" ><button id="buttonQuery" style="width:80;"></button></TD><TD class="InnerTableContentCell" colSpan="2" id="formcondition_group1_element2" ></TD></TR>
</TABLE></DIV></DIV></FIELDSET></TD></TR>
</TABLE></TD></TR>
</TABLE>
</td>
</tr>
<tr height="100%"><td width="100%" height="100%" valign="top" style="">
<table cellspacing="0" cellpadding="2" width="100%" height="100%" border="0" borderColor="black" style="border-collapse: collapse;">
<tr><td colSpan="3" width="100%" align="right" style="">
<button id="buttonAdd" style="width:80;"></button>
<button id="buttonSave" style="width:80;"></button>
<button id="buttonDelete" style="width:80;"></button>
</td>
</tr>
<tr height="100%"><td width="100%" height="100%" valign="top" style="">
<div id="tableGroup" style="width:100%;height:100%;"></div>
</td>
</tr>
</table>
</td>
</tr>
<tr><td colSpan="3" width="100%" align="right" style="">
<table id="pagepilotGroup" ></table>
</td>
</tr>
</table>
<xml id="__datasetCondition" style="display: none">
<records possibleCount="0" pageCount="1" loadedPages="1">
</records>
</xml>
<script language="javascript">
var datasetCondition=$$c("Dataset", null, "datasetCondition", "form");var __t=datasetCondition;__t.setPageSize(100);__t.setLoadDataAction("/dorado/smartweb2.RPC.d");__t.setInsertOnEmpty(true);var __f=__t.addField("name",0);__f.setLabel("\u540D\u79F0");var __t=__t.parameters();__t.addParameter("name",1).setValue("name");</script>
<xml id="__datasetGroup" style="display: none">
<records possibleCount="0" pageCount="1" loadedPages="1">
</records>
</xml>
<script language="javascript">
var datasetGroup=$$c("Dataset", null, "datasetGroup", "wrapper");var __t=datasetGroup;__t.setPageSize(10);__t.setLoadDataAction("/dorado/smartweb2.RPC.d");var __f=__t.addField("select",9);__f.setLabel("select");var __f=__t.addField("id",5);__f.setLabel("id");__f.setReadOnly(true);var __f=__t.addField("code",1);__f.setLabel("\u4EE3\u7801");__f.setValueProtected(true);var __v=new RequiredValidator();__v.setErrorMessage("\u5B57\u6BB5 [${field}] \u7684\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");__f.addValidator(__v);var __f=__t.addField("name",1);__f.setLabel("name");var __v=new RequiredValidator();__v.setErrorMessage("\u5B57\u6BB5 [${field}] \u7684\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");__f.addValidator(__v);var __f=__t.addField("description",1);__f.setLabel("description");</script>
<xml id="__datasetFrameWork" style="display: none">
<records possibleCount="0" pageCount="1" loadedPages="1">
</records>
</xml>
<script language="javascript">
var datasetFrameWork=$$c("Dataset", null, "datasetFrameWork", "Custom");var __t=datasetFrameWork;__t.setPageSize(100);__t.setLoadDataAction("/dorado/smartweb2.RPC.d");var __t=__t.parameters();__t.addParameter("FrameWorkOperCustomGroup",9).setValue("true");</script>
<script language="javascript">
var commandQuery=$$c("QueryCommand", null, "commandQuery");var __t=commandQuery;__t.setConditionDataset("datasetCondition");__t.setQueryDataset("datasetGroup");</script>
<script language="javascript">
var commandEdit=$$c("RequestCommand", null, "commandEdit");var __t=commandEdit;__t.setPath("group-maintain.jsp");__t.setDataset("datasetGroup");__t.setParameterFields("id");var __f=__t.getFrame();
__f.setTarget("_self");
$$e(__t, "beforeExecute", function (command) {
if (datasetGroup.getString("id") == "") {
return new DoradoException("请先保存!");
}
}
);
</script>
<script language="javascript">
var commandDelete=$$c("UpdateCommand", null, "commandDelete");var __t=commandDelete;__t.setAction("/update.do?bean=groupDataResolver");__t.setMethod("delete");var __f=__t.addDatasetInfo("datasetGroup", "selected");__f.setDeleteSelectionOnSuccess(true);</script>
<script language="javascript">
var commandSave=$$c("UpdateCommand", null, "commandSave");var __t=commandSave;__t.setAction("/update.do?bean=groupDataResolver");var __f=__t.addDatasetInfo("datasetGroup", "all-change");</script>
<script language="javascript">
var queryDel=$$c("QueryCommand", null, "queryDel");var __t=queryDel;__t.setConditionDataset("datasetCondition");__t.setQueryDataset("datasetGroup");</script>
<script language="javascript">
var __downloadTime=new Date();var __t=$$c("GroupBox", null, "formcondition_group0");__t.setTitle("\u67E5\u8BE2");
__t._initChildren=function(){
var __t=$$c("FieldLabel", null, "formcondition_fieldlabel_name");__t.setDataset("datasetCondition");__t.setField("name");var __t=$$c("TextEditor", null, "formcondition_editor_name", null, "text");__t.setDataset("datasetCondition");__t.setField("name");var __t=$$c("Button", null, "buttonQuery");__t.setValue("\u67E5\u8BE2");__t.setCommand("commandQuery");}
__initFormElementRenderer("formcondition_group1_element2");var __t=$$c("Button", null, "buttonAdd");__t.setValue("\u6CE8\u518C");
$$e(__t, "onClick", function (button) {
datasetGroup.insertRecord();
}
);
var __t=$$c("Button", null, "buttonSave");__t.setValue("\u4FDD\u5B58");__t.setCommand("commandSave");var __t=$$c("Button", null, "buttonDelete");__t.setValue("\u5220\u9664");__t.setCommand("commandDelete");
$$e(__t, "onClick", function (button) {
if (confirm("是否确认删除?")) {
return true;
}
return false;
}
);
var __t=$$c("DataTable", null, "tableGroup");__t.setDataset("datasetGroup");__t.setShowHScrollBar(false);var __t1=__t.addColumn("select");__t1.setField("select");var __t1=__t.addColumn("code");__t1.setField("code");var __t1=__t.addColumn("name");__t1.setLabel("\u540D\u79F0");__t1.setField("name");__t1.setWidth(150);var __t1=__t.addColumn("description");__t1.setLabel("\u63CF\u8FF0");__t1.setField("description");__t1.setWidth(200);var __t1=__t.addColumn("id");__t1.setLabel("\u7EF4\u62A4");__t1.setField("id");__t1.setAlign("center");
$$e(__t1, "onRefresh", function (column, row, cell, value, record) {
var html="<a href=\"#\" onclick=\"javascript:openSelectGroup();\">维护</a>";
cell.innerHTML = html;
cell.record = record;
return false;
}
);
var __t=$$c("PagePilot", null, "pagepilotGroup");__t.setDataset("datasetGroup");</script>
</body>
</html> |
|