首页 > 代码库 > 向列布局手写代码加F7

向列布局手写代码加F7

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