     let staffnumber = DBmethod().StaffNumberGet()
     let mark = "F"
     var number = 6
-
+    
     //ワンクール分のシフトをShiftDetailDBとShiftDBへ記録する
     func ShiftDBOneCoursRegist(importname: String, importpath: String, update: Bool){
-        JudgeMonth()
+        print(JudgeYearAndMonth().year)
+        print(JudgeYearAndMonth().startcoursmonth)
+        print(JudgeYearAndMonth().endcoursmonth)
         
         let documentPath: String = NSBundle.mainBundle().pathForResource("bbb", ofType: "xlsx")!
         let spreadsheet: BRAOfficeDocumentPackage = BRAOfficeDocumentPackage.open(documentPath)

        return staffstring
    }
    
    //
    func JudgeMonth(){
      //  let month = 0
        
        let documentPath: String = NSBundle.mainBundle().pathForResource("bbb", ofType: "xlsx")!
        let spreadsheet: BRAOfficeDocumentPackage = BRAOfficeDocumentPackage.open(documentPath)
        let worksheet: BRAWorksheet = spreadsheet.workbook.worksheets[0] as! BRAWorksheet
        let P1String: String = worksheet.cellForCellReference("P1").stringValue()
        let P1NSString = P1String as NSString
        let position = P1NSString.rangeOfString("月度").location                          //"月度"が出る場所を記録
        let monthfirstcharacter = P1String[P1String.startIndex.advancedBy(position-1)]   //月の最初の文字
        
        if(monthfirstcharacter >= "3" && monthfirstcharacter <= "9"){       //3月度〜9月度ならば
            
        }else{
            
        }
        
        print(P1String[P1String.startIndex.advancedBy(position)])
        
      //  return month
    }
}


                shiftdb.id = DBmethod().SearchShiftDB(importname).id        //取り込みが上書きの場合は使われているidをそのまま使う
                let existshiftdb = DBmethod().SearchShiftDB(importname)
                let newshiftdetaildb = ShiftDetailDB()
                
                newshiftdetaildb.id = existshiftdb.shiftdetail[i].id
                newshiftdetaildb.day = existshiftdb.shiftdetail[i].day
                newshiftdetaildb.staff = TheDayStaffAttendance(i, staffcellpositionarray: staffcellposition, worksheet: worksheet)
