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

  • 相关阅读:
    线性表——(2)单向链表
    线性表——(1)顺序表
    UVa 1592 数据库
    UVa 12096 集合栈计算机
    Python 协程
    Python 多线程及进程
    Python 日志(Log)
    Python 函数式编程
    Python基础
    DB2 获取前两天的数据
  • 原文地址:https://www.cnblogs.com/attilax/p/15200050.html
Copyright © 2011-2022 走看看