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

  • 相关阅读:
    File类总结
    MyBatis框架一级缓存与二级缓存
    SpringMVC运行原理总结
    SpringMVC:详述拦截器
    SpringMVC:自定义视图及其执行过程
    详述ThreadLocal
    浅析MVC中的数据流动
    error: gpg failed to sign the data 的一个解决办法
    保险业务核心系统设计参考
    奇怪的404
  • 原文地址:https://www.cnblogs.com/attilax/p/15200050.html
Copyright © 2011-2022 走看看