AIR版的通讯簿(二十三)

private function lfWay(item:Object,column:DataGridColumn):String{
    var theValue:String=item[column.dataField]
    var result:String="";
    for each(var item:Object in useWayList){
     if(item.id==theValue){
      result=item.label;
      break;
     }
    }
    return result;
   }
   private function deleteResult(event:SQLEvent):void{
    queryList();
    Alert.show("删除成功!","提示");
   }
   private function printIt():void{
    var printObj:FlexPrintJob=new FlexPrintJob();
    if(printObj.start()){
     printObj.addObject(myDg,FlexPrintJobScaleType.SHOW_ALL);
     printObj.send();
    }
   }
   private function lfDate(item:Object,column:DataGridColumn):String{
    return DateField.dateToString(item[column.dataField],"YYYY-MM-DD");
   }
   private function showChart():void{
    mainBox.selectedChild=chartBox;
   }
   private function lfDateCat(axis:CategoryAxis,item:Object):String{
    var result:String=DateField.dateToString(item[axis.categoryField],"YYYY-MM-DD");
    return result;
   }
   private function lfWayCat(axis:CategoryAxis,item:Object):String{
    var result:String="";
    var str:String=item[axis.categoryField];
    for each(var item:Object in useWayList){
     if(item.id==str){
      result=item.label;
      break;
     }
    }
    return result;
   }
  ]]>
 </mx:Script>

你可能感兴趣的:(AIR版的通讯簿(二十三))