zoukankan      html  css  js  c++  java
  • PAIP.自定义SELECT BOX COMMBO BOX展现.txt

    PAIP.自定义SELECT BOX COMMBO BOX展现.txt



    1.加入dropdown.mxml

    2.主MXML中,加入以下代码

    private var customerChoose:dropdown_customer_public = new dropdown_customer_public();
    private function openclic_customer():void
    {
    customerChoose.refresh();
    }
    private function showpopupTitleWindow_customer():void
    {
    customerChoose.customer_id_obj = txt_customer_id;
    customerChoose.customer_name_obj = txt_customer_name;
    txt_customer_name.popUp = customerChoose;
    }


    3.dropdown_customer_public.mxml (GRID页面)



    public var customer_id_obj:Object;
    public var customer_name_obj:Object;
    public function initApp():void{
    query();
    }

    private function showSelectitem(oEvent:Event):void{
    customer_id_obj.text=dgd.selectedItem.gf_company_code;
    customer_name_obj.text=dgd.selectedItem.cust_name;
    customer_name_obj.close();
    }

    private function query():void{
    customersBO.queryCustomerList({keyword:txtKeyword.text});
    }

    public function refresh():void{
    if(initialized){
    if(dgd.dataProvider!=null && dgd.dataProvider.length)
    customersBO.queryCustomerList.lastResult.clearResult();
    txtKeyword.text="";
    query();
    dgd.selectedIndex = -1;
    }
    }
    ]]>

    change="showSelectitem(event)">






    borderStyle="solid"/>

    cornerRadius="4" fillColors="[0xFFFFFF, 0x6E8DC4, 0xFFFFFF, 0xEEEEEE]" fontWeight="normal" fillAlphas="[0.6, 0.8, 0.6, 0.6]"

    click="query()"/>

    Powered by Zoundry

  • 相关阅读:
    min-width和width的区别
    组装电脑
    css背景透明,文字不透明
    三十九、前端基础之HTML
    三十八、事务、mysql索引,视图
    三十七、python操作mysql,和navicat
    三十六、单表与多表查询
    三十五、表与表之间的关系
    三十四、字段类型
    三十三、初识数据库及简单命令
  • 原文地址:https://www.cnblogs.com/attilax/p/15200050.html
Copyright © 2011-2022 走看看