金蝶BOS开发中Edit编辑界面和List叙事薄界面需要写的代码
生活随笔
收集整理的這篇文章主要介紹了
金蝶BOS开发中Edit编辑界面和List叙事薄界面需要写的代码
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
本人剛開始從事金蝶EAS開發,對于這個也是剛剛解除,下面是一些學習整理,
EditUI中的代碼
ListUI中的代碼 public class MyBillListUI extends AbstractMyBillListUI {public MyBillListUI() throws Exception{super();this.setUITitle("單據測試");}/***把數據對象加載到當前UI界面相應的控件,針對序事薄沒有用處 */public void loadFields(){super.loadFields(); } /***同步當前UI業務數據到數據對象,針對序事薄沒有用處 */public void storeFields(){super.storeFields();} /***提供序事薄需要打開的編輯界面UI的類名 */protected String getEditUIName() {return MyBillEditUI.class.getName();} /***返回當前業務的遠程或本地業務接口 */protected ICoreBase getBizInterface() throws Exception {return MyBillFactory.getRemoteInstance();} /***由開發人員提供當前table的主鍵字 */ protected String getKeyFieldName() {return "id"; } /***如果業務需要融合某些列,需要提供這些列的key(即融合單據頭) */public String[] getMergeColumnKeys(){String[] mergeColumn = new String[2];mergeColumn[0] = new String("id");mergeColumn[1] = new String("number");return mergeColumn;} /***要在狀態欄顯示當前的單據條數,需要業務返回計算單據條數的字段 */ protected String[] getCountQueryFields(){return new String[] {“id“};} /***可以指定當前窗口的打開模式,默認情況下不用指定* UIFactoryName.MODEL,UIFactoryName.NEWWIN,UIFactoryName.NEWTAB */protected String getEditUIModal(){return UIFactoryName.MODEL;}/***是否需要進行表格排序,業務可以覆蓋返回false,屏蔽點擊單據頭排序動作 */protected boolean isOrderForClickTableHead(){return true;} /***返回不需要排序的表列數組,默認返回null */ protected String[] getNotOrderColumns(){return null;} /***可以在父類的onload后做一些自己的事情 */ public void onLoad() throws Exception {super.onLoad();//如設置滾動條隱藏//this.getMainTable().setScrollStateVertical(KDTStyleConstants.SCROLL_STATE_HIDE);} /***允許構造傳遞給EditUI的UIContext,繼承類實現 */protected void prepareUIContext(UIContext uiContext, ActionEvent e){super.prepareUIContext(uiContext,e);//傳遞自己的上下文參數或其他值uiContext.put(key,value); } /***關閉窗口 */ public boolean destroyWindow() {super.destoryWindow();//做自己的一下銷毀動作} }
EditeUI 類是客戶端編輯界面對應的類
ListUI 類是客戶端敘事簿界面對應的類
轉載于:https://www.cnblogs.com/fyq891014/archive/2012/05/01/4188917.html
總結
以上是生活随笔為你收集整理的金蝶BOS开发中Edit编辑界面和List叙事薄界面需要写的代码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: zencart产品批量维护系统--视频教
- 下一篇: IPSEC非单播流量处理