     }
     
     override func viewWillAppear(animated: Bool) {
-        
-        if(DBmethod().DBRecordCount(ShiftImportHistoryDB) == 0){
-            no_dataimageview.alpha = 1.0
-        }else{
-            no_dataimageview.alpha = 0.0
-        }
         
         shiftlist.removeAll()
         selectedCells.removeAll()

        closebutton.addTarget(self, action: "TapCloseButton:", forControlEvents: .TouchUpInside)
        closebutton.setTitleColor(UIColor(red: 0, green: 122/255, blue: 1, alpha: 1.0), forState: .Normal)
        
        myCollectionView.addSubview(no_dataimageview)
        myCollectionView.addSubview(closeview)
        myCollectionView.addSubview(closebutton)
        

    }
    
    var myCollectionView: UICollectionView!
    
    func SetUpCollectionView(){
        
        // CollectionViewのレイアウトを生成.
        let layout = UICollectionViewFlowLayout()
