自定义Dialog中对数组的取值

/*

自定义Dialog中对数组的取值

以下为Job

*/

static void xyf_DialogDimension(Args _args)

{

    Dialog          _Dialog = new Dialog("Test Array->Dimension");

    DialogField     dlgDimension;

    Dimension       _Dimension;

    FormDataSource  LedgerTable_ds;

 

;

    dlgDimension = _Dialog.addField(typeId(Dimension),"成本利润中心");

 

 

    dlgDimension.fieldControl(1).visible(false);

    dlgDimension.fieldControl(3).visible(false);

 

 

    /**   Query

    LedgerTable_ds.query().dataSourceTable(tablenum(LedgerTable)).addRange(fieldId2Ext(fieldnum(LedgerTable,

    Dimension),1)).value(QueryValue("DepartmentName"));

    */

    _Dialog.doInit();

    if(_Dialog.run())

    {

        _Dimension = dlgDimension.value();

        info(_Dimension[2]);

 

    }

}

 

 

posted @ 2009-11-11 08:47  Fandy Xie  Views(286)  Comments(0Edit  收藏  举报