List Form表單常用功能

2021-08-13 05:36:55 字數 1293 閱讀 7541

1、非樹狀的,繼承abstractlistplugin

2、 listview獲取當前實體id

billlist list = this.getcontrol(billlistid);

string billentityid = list.getentityid();

3、list獲取當前選中行:listselectedrowcollection

billlist billlist = this.getcontrol(billlistid);

billlist.getselectedrows()

4、獲取listselectedrow裡的id

string pk = listselectedrow.getprimarykeyvalue().tostring()

5、//獲取listview是否選中資料

ilistview listview = (ilistview) getview();

boolean hasnoseldata = "focus".equals(this.getparameter().get("listdelscope"))? listview.getfocusrow() < 0 : listview.getselectedrows().size() == 0;

6、//列表頁面設定過濾條件 在initialize方法裡設定

billlist list = this.getcontrol("billlistap");

listshowparameter showparam = (listshowparameter) this.getview().getformshowparameter();

listfilterparameter listfilterparameter = showparam.getlistfilterparameter();

string qfilterstr = listfilterparameter.getqfilter();

if (stringutils.isnotempty(qfilterstr))  else 

//設定排序

list.setorderby("bizdate desc,billno desc");

7、//審核後重新整理頁面

public void afterdooperation(afterdooperationeventargs e)  }

8、//列表介面呼叫檢視事件

ilistview listview = (ilistview) this.getview();

listview.invokeoperation("view");

html表單簡介和常用功能

乙個功能完整的表單結構應該包含3部分 包含框 輸入框和提交按鈕。form元素表示表單的意思,與table元素一樣,form元素也是乙個包含框,它包含了所有的表單域元素。form元素負責資料的處理任務,包括對各個表單域的資料採集 打包和傳送到指定的伺服器端目標檔案中。input是乙個表單域物件,也可以...

表單的幾個基本常用功能

片段1 在表單中禁用 回車鍵 form keypress function e 片段2 清除所有的表單資料 function clearform form 片段3 將表單中的按鈕禁用 somebutton attr disabled true 啟動按鈕 submit button removeatt...

SAP常用功能

1 sap外觀 幫助圖示右側的按鈕是customizing of local layout 定製本地布局 按鈕,可以用它來變更sap gui顯示介面的風格。2 sap導航 1 在sap print list視窗裡,如果不想在保持期內儲存系統假離線請求,在print screen list 列印頁面列...