Open page
<Form action = "$ {ctx}/ims/addInvoiceInfo. action "method =" post "class =" pageForm required-validate "onsubmit =" return validateCallback (this, dialogAjaxDone); ">
Onsubmit = "return validateCallback (this, dialogAjaxDone);" pop-up
Onsubmit = "return validateCallback (this, navTabAjaxDone);" Open the tag
Paging
<Form id = "pagerForm" rel = "invoice_invalid_div" method = "post" action = "$ {ctx}/ims/invoice/findInvoiceInfoList. action">
<Tangs: pagesHead pageNum = "1" numPerPage = "$ {pager. numPerPage} "orderField =" $ {pager. orderField} "orderValue =" $ {pager. orderValue} "/>
Rel = "invoice_invalid_div" Refresh DIV
<Tangs: pagesBoot targetType = "navDiv" numPerPage = "$ {pager. numPerPage} "totalCount =" $ {pager. totalCount} "pageNumShown =" 90 "currentPage =" $ {pager. currentPage} "/>
TargetType = "navDiv" Refresh DIV
TargetType = "navTab" refresh the page
Page Data Retrieval
<S: iterator value = "exchangeInfo. excDetailInfo" id = "excDetail" status = "status">
Serial number
<S: property value = '# status. Index'/>
Retrieve Data
$ {ExcDetail. gunNo} or <s: property value = '# excDetail. gunno'/>
Take Parameters
HttpServletRequest request = ServletActionContext. getRequest ();
String rid = request. getParameter ("roleid ");
<Input type = "hidden" id = "roleid" name = "roleid" value = "$ {param. roleid}"/>
Retrieve array data on the page
<S: iterator value = "groupselect" status = "status">
<Tr target = "groupid" rel = "<s: property value =" groupselect [# status. index] [0] "/>">
<TD> <input type = "checkbox" group = "ID" class = "checkboxctrl" Checked = "checked"> </TD>
<TD> <s: property value = "groupselect [# status. Index] [1]"/> </TD>
<TD> <s: property value = "groupselect [# status. Index] [2]"/> </TD>
</Tr>
</S: iterator>
List Data Conversion Value
Actionlist = actionservice. find ("select M. resourceid,. actionname from actioninfo A, menuresourcesinfo m where. actionid = m. actionid and. status = 0 and M. status = 0 and M. menuid = "+ menuid +" "); // query function menu
Iterator iter = actionlist. iterator ();
For (; ITER. hasnext ();)
{
Object [] Ob = (object []) ITER. Next ();
String name = ob [1]. tostring ();
String id = ob [0]. tostring ();
}
// Obtain an ID from the two tables
List <menusinfo> menlist = menusinfoservice. find ("select M. menuid from menusinfo M, rightsforrolesinfo R where M. menuid = R. rightid and M. status = 0 and R. status = 0 and R. righttype = 0 and R. roleid = "+ roleid + "");
Int Len = menlist. Size ();
String [] arr = (string []) menlist. toarray (New String [menlist. Size ()]);
For (INT I = 0; I <Len; I ++)
{
String GETID = arr [I]. tostring ();
Menumap. put (getid, getid );
}
// Directly retrieve data
For (MenusInfo m: milist)
{
String name = m. getCname (); // retrieve data
}