     }
     
     //Cellが選択された際に呼び出される
-    func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
-        
-        print("Num: \(indexPath.row)")
-        
-    }
+//    func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
+//        
+//        print("Num: \(indexPath.row)")
+//        
+//    }
     
     //Cellの総数を返す
     func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {

class ShiftGallery: UIViewController,UICollectionViewDelegate, UICollectionViewDataSource,QLPreviewControllerDataSource{
    
    var myCollectionView : UICollectionView!

    override func viewDidLoad() {
        super.viewDidLoad()
        
        // CollectionViewのレイアウトを生成.
        let layout = UICollectionViewFlowLayout()

        
        myCollectionView.backgroundColor = UIColor.blackColor()
        self.view.addSubview(myCollectionView)
        self.view.addSubview(no_dataimageview)
    }
    
    override func viewDidAppear(animated: Bool) {
        self.myCollectionView.reloadData()
    }
    
    override func viewWillAppear(animated: Bool) {
        if(DBmethod().DBRecordCount(ShiftImportHistoryDB) == 0){
            no_dataimageview.alpha = 1.0
        }else{
            no_dataimageview.alpha = 0.0
        }
    }
    
    override func didReceiveMemoryWarning() {
