<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    西沙璞玉
    愛不容易
    posts - 0,comments - 4,trackbacks - 0

    1,spring與struts集成
    2,spring注入用注解方式
    3,hibernate事務的管理
    4,hbm文件自動生成
    5,ant  built
    6,ext前端。

     

    success:true,data:{"userId":10063,"username":"46","email":"0@163.com","department":{},"accessionTime":"2012-04-19","status":1,"title":0,"fullname":"劉巖","delFlag":0}}


    回顧

    app.js  
     入口函數 等頁面加載完畢    Ext.onReady(App.init);  點擊入口  App.clickNode   Nodeid不能隨便命名 item  id=“Nodeid”
    App.import.js  加載哪個js

    出差管理功能開發。


    同一個action里都是一個session

    屬性不需要全部加載
    transient protected //不序列化這個屬性,不加載這個屬性,
    用注解方式@expose
    Gson gson=GsonBuilder().exclude...日期格式化 

    或者把hibernate延遲加載去掉

    用標簽@expose會循環實例化,可在一邊去掉這個標簽,或者用下面這個方法
    延遲加載不好搞,要用下面這個

    JSONSerializer json = JsonUtil.getJSONSerializer("createtime");  flexjson


    oa是默認目錄,變成ent  要手動改兩個地方 Form.js.vm View.js.vm
    url:_ctxpath+"/ent/$..."

    app.import.js.vm也要改

    select instance_name from v$instance     查sid


    ResumeView.edit = function(id) {
     var tabs = Ext.getCmp('centerTabPanel');
     var ResumeFormPanel = Ext.getCmp('ResumeFormPanel');
     if (ResumeFormPanel != null) {
      tabs.remove('ResumeFormPanel');
     }
     ResumeFormPanel = new ResumeForm(id);
     tabs.add(ResumeFormPanel);
     tabs.activate(ResumeFormPanel);
    }


    ResumeForm.js里面返回一個panel
    var panel = new Ext.Panel({
        id : 'ResumeFormPanel',
        iconCls : 'menu-resume',
        title : '簡歷詳細信息',
        width : 500,
        tbar : toolbar,
        height : 420,
        modal : true,
        layout : 'anchor',
        plain : true,
        bodyStyle : 'padding:5px;',
        buttonAlign : 'center',
        items : [this.setup()]
       });
     return panel;

     

    AppUserView.edit = function(userId, username) {
     App.clickTopTab('UserFormPanel_'+userId,{userId:userId,username:username});
    };

    App.MyDesktopClickTopTab=function(id,params,precall,callback){
     if(precall!=null){
      precall.call(this);
     }
     var tabs = Ext.getCmp('centerTabPanel');
     var tabItem = tabs.getItem(id);
     
     if (tabItem == null) {
      $ImportJs(id, function(view) {
       tabItem = tabs.add(view);
       tabs.activate(tabItem);
      },params);
     }else {
      tabs.remove(tabItem);
      var str='new ' + id ;
      if(params!=null){
       str+='(params);';
      }else{
       str+='();';
      }
      var view= eval(str);
      tabItem = tabs.add(view);
      tabs.activate(tabItem);
     }
    };

    apply及applyIf方法都是用于實現把一個對象中的屬性應用于另外一個對象中,相當于屬性拷貝。不同的是apply將會覆蓋目標對象中的屬性,而applyIf只拷貝目標對象中沒有而源對象中有的屬性。


    UserFormPanel=Ext.extend(Ext.FormPanel,{
     constructor:function(conf){
      Ext.applyIf(this,conf);
      this.userId=this.userId?this.userId:'';


    通過帶參數的構造函數接值

    創建外鍵,,,

    ALTER TABLE PartOrder
     ADD CONSTRAINT PartOrder_Customer_FK
        FOREIGN KEY (CustomerID)
        REFERENCES Customer(CustomerID);


    他的name屬性對應的是displayfield,而hiddenName對應的則是valuefield

    檔案管理:
     name : 'empProfileForm.socialInsuranceCode',(由josn映射到當前id)
     mapping : 'socialInsuranceCode'

     fieldLabel : '社會保險號',                 name : 'empProfile.socialInsuranceCode',(由id找到form的name)
     id : 'empProfileForm.socialInsuranceCode',
     xtype:'numberfield'

            private EmpProfile empProfile;(用這個對象 對應前臺數據。)

    出差管理:

           preName : 'empEvection'  與后臺對象對應

     fieldLabel : '用戶名',(這里定義id是多余的)
     //id:'empEvection.userName',
     name : 'empEvection.userName',
     maxLength : 8

           private EmpEvection empEvection;

    posted on 2012-05-04 13:42 @趙 閱讀(262) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    哥哥最近不是很忙
    主站蜘蛛池模板: 亚洲阿v天堂在线| 成人永久免费高清| 亚洲网站在线观看| 久久国产免费一区| 亚洲AV日韩精品久久久久久| 热99RE久久精品这里都是精品免费| 国产美女亚洲精品久久久综合| 在线免费观看伊人三级电影| 亚洲成AV人片在线观看WWW| 性无码免费一区二区三区在线| 亚洲狠狠久久综合一区77777| 99久久免费观看| 日本亚洲色大成网站www久久| 在线成人a毛片免费播放| 爱情岛论坛亚洲品质自拍视频网站| 成人亚洲综合天堂| 国产在线精品观看免费观看| 伊人久久综在合线亚洲2019| 青娱分类视频精品免费2| 亚洲国产成人手机在线观看| AV在线亚洲男人的天堂| 99爱在线精品视频免费观看9| 亚洲人成网站在线观看播放动漫| 免费无码成人AV片在线在线播放| 国产成人精品日本亚洲语音| 国产gv天堂亚洲国产gv刚刚碰| 最近中文字幕大全中文字幕免费| 亚洲中文字幕无码mv| 亚洲天堂免费在线视频| 最近2019中文字幕免费直播| 亚洲精品动漫免费二区| 亚洲成AV人在线观看天堂无码| 在线v片免费观看视频| 一级做a爰黑人又硬又粗免费看51社区国产精品视| MM131亚洲国产美女久久| 19禁啪啪无遮挡免费网站| 美女被暴羞羞免费视频| 亚洲午夜视频在线观看| 四虎影视免费永久在线观看| 全免费a级毛片免费看| 无码色偷偷亚洲国内自拍|