码迷,mamicode.com
首页 > 其他好文 > 详细

向列布局手写代码加F7

时间:2016-10-18 20:29:47      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:

function initBuildingEntryF7(sellId){
            var comId = "buildingEntry";
            var filter = "";
            if(sellId!=null){
                filter = "sellproject.id = ‘"+sellId+"";
            }                

            var options = {
                id: "buildingEntry",
                name: "buildingEntry",
                width: 200,
                height: 26,
                disTl: false,
                subWidgetName: "wafPromptQuick",
                subWidgetOptions: {
                    url: waf.getContextPath() +/dynamicPage.do?inwafpage=true&event=initialize&uipk=com.kingdee.eas.re.sales.fi.CostMarkOutF7Page,
                    ajaxType: "GET",
                    query: "com.kingdee.eas.fdc.sales.app.F7BuildingWebQuery",
                    accessType: "remote",
                    isMulti:true,
                    allowAutoComplete: true,
                    autoChoose:false,
                    autoCompleteItem: "name",
                    displayItem:"name",
                    cu: false,
                    filteritem:filter,
                },
                //onchange:_private.buildingEntryOnChange,
                fieldSeparator:"/",
            };

            var lbOptions = {
                id: comId + "Lb",
                labelAlign: "right",
                caption: "楼栋",
                tagClass: "asstlb"
            };
            var lbDOM = waf.createDOM("labelContainer", lbOptions);
            waf.appendDOM(waf("#layoutCol3"), lbDOM);
            waf.initComponent("labelContainer", lbOptions, lbDOM); 

            var promptBoxDom = waf.createDOM("promptBox", options);
            waf("#"+comId + "Lb").wafLabelContainer("append", promptBoxDom);
            waf.initComponent("promptBox", options, promptBoxDom);
            waf("#" + comId + "Lb_ctrl .ui-f7-frame").css("width", "300px"); 
        }?

技术分享

向列布局手写代码加F7

标签:

原文地址:http://www.cnblogs.com/suruozhong/p/5974755.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!