         let username = DBmethod().UserNameGet()
         let staffcellposition = self.StaffCellPositionGet()
         
-        let XLSX = self.AAA()
-        
-        //        let documentPath = XLSX.A
-        //        let spreadsheet = XLSX.B
-        let worksheet = XLSX.C
+        let worksheet = self.SetXLSX()
         
         var userposition = ""
         

    var spreadsheet = BRAOfficeDocumentPackage()
    var worksheet = BRAWorksheet()
    
    func AAA() ->(A: String, B: BRAOfficeDocumentPackage, C: BRAWorksheet){
        
        if(flag){
            documentPath = NSBundle.mainBundle().pathForResource(TEST, ofType: "xlsx")!
            spreadsheet = BRAOfficeDocumentPackage.open(documentPath)
            worksheet = spreadsheet.workbook.worksheets[0] as! BRAWorksheet
            flag = false
            return (documentPath,spreadsheet,worksheet)
        }else{
            return (documentPath,spreadsheet,worksheet)
        }
    
    }

    //返り値は
    //年(和暦)、11日〜月末までの月、1日〜10日までの月
    func JudgeYearAndMonth() -> (year: Int, startcoursmonth: Int, endcoursmonth: Int){
   
        let worksheet = self.SetXLSX()

        let P1String: String = worksheet.cellForCellReference("P1").stringValue()
        let P1NSString = P1String as NSString
