Explorar o código

20170223

change function mark
Ray Zhang %!s(int64=9) %!d(string=hai) anos
pai
achega
e1b56fc412
Modificáronse 26 ficheiros con 2016 adicións e 111 borrados
  1. BIN=BIN
      Ants Contract/AntsContract.xcworkspace/xcuserdata/Ray.xcuserdatad/UserInterfaceState.xcuserstate
  2. 513 66
      Ants Contract/AntsContract.xcworkspace/xcuserdata/Ray.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
  3. 53 37
      Ants Contract/AntsContract.xcworkspace/xcuserdata/Ray.xcuserdatad/xcdebugger/Expressions.xcexplist
  4. 187 2
      Ants Contract/AntsContract/AntsContract/Base.lproj/Main.storyboard
  5. 12 0
      Ants Contract/Granite Expo eSign/Granite Expo eSign.xcodeproj/project.pbxproj
  6. 23 0
      Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/file_icon.imageset/Contents.json
  7. BIN=BIN
      Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/file_icon.imageset/ducument.png
  8. BIN=BIN
      Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/file_icon.imageset/ducument@2x.png
  9. BIN=BIN
      Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/file_icon.imageset/ducument@3x.png
  10. 23 0
      Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/note_icon.imageset/Contents.json
  11. BIN=BIN
      Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/note_icon.imageset/note.png
  12. BIN=BIN
      Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/note_icon.imageset/note@2x.png
  13. BIN=BIN
      Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/note_icon.imageset/note@3x.png
  14. 23 0
      Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/picture_icon.imageset/Contents.json
  15. BIN=BIN
      Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/picture_icon.imageset/picuture.png
  16. BIN=BIN
      Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/picture_icon.imageset/picuture@2x.png
  17. BIN=BIN
      Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/picture_icon.imageset/picuture@3x.png
  18. 15 6
      Ants Contract/Granite Expo eSign/Granite Expo eSign/config.h
  19. 4 0
      Ants Contract/common/ACNetwork.h
  20. 38 0
      Ants Contract/common/ACNetwork.m
  21. 9 0
      Ants Contract/common/DocListTableViewCell.h
  22. 19 0
      Ants Contract/common/DocnotesViewController.h
  23. 122 0
      Ants Contract/common/DocnotesViewController.m
  24. 225 0
      Ants Contract/common/DocumentListViewController.m
  25. 19 0
      Ants Contract/common/ExtDocumentsViewController.h
  26. 731 0
      Ants Contract/common/ExtDocumentsViewController.m

BIN=BIN
Ants Contract/AntsContract.xcworkspace/xcuserdata/Ray.xcuserdatad/UserInterfaceState.xcuserstate


+ 513 - 66
Ants Contract/AntsContract.xcworkspace/xcuserdata/Ray.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -122,11 +122,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508233450.398477"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "690"
-            endingLineNumber = "690"
+            startingLineNumber = "725"
+            endingLineNumber = "725"
             landmarkName = "-startAirPrintWithData:"
             landmarkName = "-startAirPrintWithData:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -138,11 +138,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508233450.398477"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "821"
-            endingLineNumber = "821"
+            startingLineNumber = "856"
+            endingLineNumber = "856"
             landmarkName = "-printInteractionController:choosePaper:"
             landmarkName = "-printInteractionController:choosePaper:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -154,11 +154,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508302461.893532"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "836"
-            endingLineNumber = "836"
+            startingLineNumber = "871"
+            endingLineNumber = "871"
             landmarkName = "-printInteractionControllerWillPresentPrinterOptions:"
             landmarkName = "-printInteractionControllerWillPresentPrinterOptions:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -170,11 +170,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508302461.893532"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "840"
-            endingLineNumber = "840"
+            startingLineNumber = "875"
+            endingLineNumber = "875"
             landmarkName = "-printInteractionControllerDidPresentPrinterOptions:"
             landmarkName = "-printInteractionControllerDidPresentPrinterOptions:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -186,11 +186,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508302461.893532"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "844"
-            endingLineNumber = "844"
+            startingLineNumber = "879"
+            endingLineNumber = "879"
             landmarkName = "-printInteractionControllerWillDismissPrinterOptions:"
             landmarkName = "-printInteractionControllerWillDismissPrinterOptions:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -202,11 +202,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508302461.893532"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "848"
-            endingLineNumber = "848"
+            startingLineNumber = "883"
+            endingLineNumber = "883"
             landmarkName = "-printInteractionControllerDidDismissPrinterOptions:"
             landmarkName = "-printInteractionControllerDidDismissPrinterOptions:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -218,11 +218,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508302461.893532"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "853"
-            endingLineNumber = "853"
+            startingLineNumber = "888"
+            endingLineNumber = "888"
             landmarkName = "-printInteractionControllerWillStartJob:"
             landmarkName = "-printInteractionControllerWillStartJob:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -234,11 +234,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508302461.893532"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "867"
-            endingLineNumber = "867"
+            startingLineNumber = "902"
+            endingLineNumber = "902"
             landmarkName = "-printInteractionControllerDidFinishJob:"
             landmarkName = "-printInteractionControllerDidFinishJob:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -250,11 +250,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508233450.398477"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "609"
-            endingLineNumber = "609"
+            startingLineNumber = "635"
+            endingLineNumber = "635"
             landmarkName = "-documentInteractionControllerDidDismissOptionsMenu:"
             landmarkName = "-documentInteractionControllerDidDismissOptionsMenu:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -266,11 +266,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508233450.398477"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "616"
-            endingLineNumber = "616"
+            startingLineNumber = "642"
+            endingLineNumber = "642"
             landmarkName = "-previewDocumentWithURL:"
             landmarkName = "-previewDocumentWithURL:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -282,11 +282,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508233450.398477"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "624"
-            endingLineNumber = "624"
+            startingLineNumber = "650"
+            endingLineNumber = "650"
             landmarkName = "-documentInteractionControllerDidEndPreview:"
             landmarkName = "-documentInteractionControllerDidEndPreview:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -298,11 +298,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508233450.398477"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "628"
-            endingLineNumber = "628"
+            startingLineNumber = "654"
+            endingLineNumber = "654"
             landmarkName = "-documentInteractionControllerViewControllerForPreview:"
             landmarkName = "-documentInteractionControllerViewControllerForPreview:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -314,11 +314,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508233450.398477"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "632"
-            endingLineNumber = "632"
+            startingLineNumber = "658"
+            endingLineNumber = "658"
             landmarkName = "-documentInteractionControllerRectForPreview:"
             landmarkName = "-documentInteractionControllerRectForPreview:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -330,11 +330,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508233450.398477"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "636"
-            endingLineNumber = "636"
+            startingLineNumber = "662"
+            endingLineNumber = "662"
             landmarkName = "-documentInteractionControllerViewForPreview:"
             landmarkName = "-documentInteractionControllerViewForPreview:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -346,11 +346,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508233450.398477"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "640"
-            endingLineNumber = "640"
+            startingLineNumber = "666"
+            endingLineNumber = "666"
             landmarkName = "-documentInteractionController:willBeginSendingToApplication:"
             landmarkName = "-documentInteractionController:willBeginSendingToApplication:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -362,11 +362,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508233450.398477"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "448"
-            endingLineNumber = "448"
+            startingLineNumber = "474"
+            endingLineNumber = "474"
             landmarkName = "-onActionClick:"
             landmarkName = "-onActionClick:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -378,11 +378,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508233450.398477"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "824"
-            endingLineNumber = "824"
+            startingLineNumber = "859"
+            endingLineNumber = "859"
             landmarkName = "-printInteractionController:choosePaper:"
             landmarkName = "-printInteractionController:choosePaper:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -394,11 +394,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508302461.893532"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "830"
-            endingLineNumber = "830"
+            startingLineNumber = "865"
+            endingLineNumber = "865"
             landmarkName = "-printInteractionController:choosePaper:"
             landmarkName = "-printInteractionController:choosePaper:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -426,11 +426,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508233450.398477"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "369"
-            endingLineNumber = "369"
+            startingLineNumber = "395"
+            endingLineNumber = "395"
             landmarkName = "-onPrintClick:"
             landmarkName = "-onPrintClick:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -442,11 +442,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508233450.398477"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "380"
-            endingLineNumber = "380"
+            startingLineNumber = "406"
+            endingLineNumber = "406"
             landmarkName = "-onPrintClick:"
             landmarkName = "-onPrintClick:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -458,11 +458,11 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508233549.471075"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "820"
-            endingLineNumber = "820"
+            startingLineNumber = "855"
+            endingLineNumber = "855"
             landmarkName = "-printInteractionController:choosePaper:"
             landmarkName = "-printInteractionController:choosePaper:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
@@ -474,14 +474,461 @@
             ignoreCount = "0"
             ignoreCount = "0"
             continueAfterRunningActions = "No"
             continueAfterRunningActions = "No"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
             filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
-            timestampString = "508302461.893532"
+            timestampString = "510042809.648098"
             startingColumnNumber = "9223372036854775807"
             startingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
             endingColumnNumber = "9223372036854775807"
-            startingLineNumber = "831"
-            endingLineNumber = "831"
+            startingLineNumber = "866"
+            endingLineNumber = "866"
             landmarkName = "-printInteractionController:choosePaper:"
             landmarkName = "-printInteractionController:choosePaper:"
             landmarkType = "7">
             landmarkType = "7">
          </BreakpointContent>
          </BreakpointContent>
       </BreakpointProxy>
       </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/ACNetwork.m"
+            timestampString = "509871057.746608"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "103"
+            endingLineNumber = "103"
+            landmarkName = "+get_json:parameters:file:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/ACNetwork.m"
+            timestampString = "509879358.565086"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "102"
+            endingLineNumber = "102"
+            landmarkName = "+get_json:parameters:file:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/DocumentListViewController.m"
+            timestampString = "509945420.022045"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "700"
+            endingLineNumber = "700"
+            landmarkName = "-tableView:cellForRowAtIndexPath:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/DocumentListViewController.m"
+            timestampString = "509945420.022045"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "740"
+            endingLineNumber = "740"
+            landmarkName = "-tableView:cellForRowAtIndexPath:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/DocumentListViewController.m"
+            timestampString = "509945420.022045"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "682"
+            endingLineNumber = "682"
+            landmarkName = "-tableView:cellForRowAtIndexPath:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/DocumentListViewController.m"
+            timestampString = "509945420.022045"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "656"
+            endingLineNumber = "656"
+            landmarkName = "-tableView:cellForRowAtIndexPath:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/DocumentListViewController.m"
+            timestampString = "509945420.022045"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "689"
+            endingLineNumber = "689"
+            landmarkName = "-tableView:cellForRowAtIndexPath:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/DocumentListViewController.m"
+            timestampString = "509962964.368565"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "951"
+            endingLineNumber = "951"
+            landmarkName = "-tableView:editActionsForRowAtIndexPath:"
+            landmarkType = "7">
+            <Locations>
+               <Location
+                  shouldBeEnabled = "No"
+                  ignoreCount = "0"
+                  continueAfterRunningActions = "No"
+                  symbolName = "-[DocumentListViewController tableView:editActionsForRowAtIndexPath:]"
+                  moduleName = "Granite Expo eSign"
+                  usesParentBreakpointCondition = "Yes"
+                  urlString = "file:///Users/ray/Documents/CODE_ERPSuiteIOS/Ants%20Contract/common/DocumentListViewController.m"
+                  timestampString = "509956773.03435"
+                  startingColumnNumber = "9223372036854775807"
+                  endingColumnNumber = "9223372036854775807"
+                  startingLineNumber = "949"
+                  endingLineNumber = "949"
+                  offsetFromSymbolStart = "352">
+               </Location>
+               <Location
+                  shouldBeEnabled = "No"
+                  ignoreCount = "0"
+                  continueAfterRunningActions = "No"
+                  symbolName = "__69-[DocumentListViewController tableView:editActionsForRowAtIndexPath:]_block_invoke"
+                  moduleName = "Granite Expo eSign"
+                  usesParentBreakpointCondition = "Yes"
+                  urlString = "file:///Users/ray/Documents/CODE_ERPSuiteIOS/Ants%20Contract/common/DocumentListViewController.m"
+                  timestampString = "509956773.036408"
+                  startingColumnNumber = "9223372036854775807"
+                  endingColumnNumber = "9223372036854775807"
+                  startingLineNumber = "949"
+                  endingLineNumber = "949"
+                  offsetFromSymbolStart = "24">
+               </Location>
+            </Locations>
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/DocumentListViewController.m"
+            timestampString = "509962964.368565"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "994"
+            endingLineNumber = "994"
+            landmarkName = "-tableView:editActionsForRowAtIndexPath:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/ExtDocumentsViewController.m"
+            timestampString = "509965264.95504"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "313"
+            endingLineNumber = "313"
+            landmarkName = "-tableView:cellForRowAtIndexPath:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/ExtDocumentsViewController.m"
+            timestampString = "509965264.95504"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "288"
+            endingLineNumber = "288"
+            landmarkName = "-numberOfSectionsInTableView:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/ExtDocumentsViewController.m"
+            timestampString = "509965264.95504"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "299"
+            endingLineNumber = "299"
+            landmarkName = "-tableView:numberOfRowsInSection:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/ExtDocumentsViewController.m"
+            timestampString = "509965264.95504"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "320"
+            endingLineNumber = "320"
+            landmarkName = "-tableView:cellForRowAtIndexPath:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/ExtDocumentsViewController.m"
+            timestampString = "509965264.95504"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "325"
+            endingLineNumber = "325"
+            landmarkName = "-tableView:cellForRowAtIndexPath:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/ExtDocumentsViewController.m"
+            timestampString = "509965264.95504"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "323"
+            endingLineNumber = "323"
+            landmarkName = "-tableView:cellForRowAtIndexPath:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "common/ExtDocumentsViewController.m"
+            timestampString = "509965264.95504"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "314"
+            endingLineNumber = "314"
+            landmarkName = "-tableView:cellForRowAtIndexPath:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
+            timestampString = "510040071.948842"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "34"
+            endingLineNumber = "34"
+            landmarkName = "-viewDidLoad"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
+            timestampString = "510041189.821733"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "195"
+            endingLineNumber = "195"
+            landmarkName = "-loadcontent"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "Yes"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
+            timestampString = "510041380.933118"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "229"
+            endingLineNumber = "229"
+            landmarkName = "-loadcontent"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "Yes"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
+            timestampString = "510041544.232356"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "252"
+            endingLineNumber = "252"
+            landmarkName = "-loadcontent"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "Yes"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
+            timestampString = "510042809.648098"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "306"
+            endingLineNumber = "306"
+            landmarkName = "-loadcontent"
+            landmarkType = "7">
+            <Locations>
+               <Location
+                  shouldBeEnabled = "Yes"
+                  ignoreCount = "0"
+                  continueAfterRunningActions = "No"
+                  symbolName = "__32-[PDFViewController loadcontent]_block_invoke_2"
+                  moduleName = "Granite Expo eSign"
+                  usesParentBreakpointCondition = "Yes"
+                  urlString = "file:///Users/ray/Documents/CODE_ERPSuiteIOS/RedAnt%20ERP%20Mobile/common/Functions/PDF+Web/PDFViewController.m"
+                  timestampString = "510042715.284395"
+                  startingColumnNumber = "9223372036854775807"
+                  endingColumnNumber = "9223372036854775807"
+                  startingLineNumber = "315"
+                  endingLineNumber = "315"
+                  offsetFromSymbolStart = "1828">
+               </Location>
+               <Location
+                  shouldBeEnabled = "Yes"
+                  ignoreCount = "0"
+                  continueAfterRunningActions = "No"
+                  symbolName = "__copy_helper_block_"
+                  moduleName = "Granite Expo eSign"
+                  usesParentBreakpointCondition = "Yes"
+                  urlString = "file:///Users/ray/Documents/CODE_ERPSuiteIOS/RedAnt%20ERP%20Mobile/common/Functions/PDF+Web/PDFViewController.m"
+                  timestampString = "510042715.287164"
+                  startingColumnNumber = "9223372036854775807"
+                  endingColumnNumber = "9223372036854775807"
+                  startingLineNumber = "315"
+                  endingLineNumber = "315"
+                  offsetFromSymbolStart = "116">
+               </Location>
+               <Location
+                  shouldBeEnabled = "Yes"
+                  ignoreCount = "0"
+                  continueAfterRunningActions = "No"
+                  symbolName = "__destroy_helper_block_"
+                  moduleName = "Granite Expo eSign"
+                  usesParentBreakpointCondition = "Yes"
+                  urlString = "file:///Users/ray/Documents/CODE_ERPSuiteIOS/RedAnt%20ERP%20Mobile/common/Functions/PDF+Web/PDFViewController.m"
+                  timestampString = "510042715.289767"
+                  startingColumnNumber = "9223372036854775807"
+                  endingColumnNumber = "9223372036854775807"
+                  startingLineNumber = "315"
+                  endingLineNumber = "315"
+                  offsetFromSymbolStart = "64">
+               </Location>
+            </Locations>
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "Yes"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
+            timestampString = "510042809.648098"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "673"
+            endingLineNumber = "673"
+            landmarkName = "-webViewDidFinishLoad:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            shouldBeEnabled = "Yes"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "../RedAnt ERP Mobile/common/Functions/PDF+Web/PDFViewController.m"
+            timestampString = "510042809.648098"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "686"
+            endingLineNumber = "686"
+            landmarkName = "-webView:didFailLoadWithError:"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
    </Breakpoints>
    </Breakpoints>
 </Bucket>
 </Bucket>

+ 53 - 37
Ants Contract/AntsContract.xcworkspace/xcuserdata/Ray.xcuserdatad/xcdebugger/Expressions.xcexplist

@@ -3,29 +3,43 @@
    version = "1.0">
    version = "1.0">
    <ContextStates>
    <ContextStates>
       <ContextState
       <ContextState
-         contextName = "-[PageViewController viewDidLoad]:PageViewController.m">
+         contextName = "+[ACNetwork get_json:parameters:]:ACNetwork.m">
+         <PersistentStrings>
+            <PersistentString
+               value = "[e aes256_encrypt:@&quot;usai2010&quot;]">
+            </PersistentString>
+         </PersistentStrings>
       </ContextState>
       </ContextState>
       <ContextState
       <ContextState
-         contextName = "-[PageViewController textViewDidChangeSelection:]:PageViewController.m">
+         contextName = "-[PageViewController initControl]:PageViewController.m">
          <PersistentStrings>
          <PersistentStrings>
             <PersistentString
             <PersistentString
-               value = "textView.text">
+               value = "self.editControlView.bounds">
+            </PersistentString>
+            <PersistentString
+               value = "self.editControlView.frame">
             </PersistentString>
             </PersistentString>
          </PersistentStrings>
          </PersistentStrings>
       </ContextState>
       </ContextState>
       <ContextState
       <ContextState
-         contextName = "-[DocumentPageViewController createDemoView:]:DocumentPageViewController.m">
+         contextName = "+[ACNetwork prepare_addtional_params:]:ACNetwork.m">
+      </ContextState>
+      <ContextState
+         contextName = "-[PDFViewController onActionClick:]:PDFViewController.m">
+      </ContextState>
+      <ContextState
+         contextName = "-[PageViewController textViewDidEndEditing:]:PageViewController.m">
          <PersistentStrings>
          <PersistentStrings>
             <PersistentString
             <PersistentString
-               value = "lineLabel.text">
+               value = "f6-f7">
             </PersistentString>
             </PersistentString>
          </PersistentStrings>
          </PersistentStrings>
       </ContextState>
       </ContextState>
       <ContextState
       <ContextState
-         contextName = "-[SignatureViewController viewDidLoad]:SignatureViewController.m">
+         contextName = "-[DocumentPageViewController createDemoView:]:DocumentPageViewController.m">
          <PersistentStrings>
          <PersistentStrings>
             <PersistentString
             <PersistentString
-               value = "self.signature_ratio">
+               value = "lineLabel.text">
             </PersistentString>
             </PersistentString>
          </PersistentStrings>
          </PersistentStrings>
       </ContextState>
       </ContextState>
@@ -41,24 +55,21 @@
          </PersistentStrings>
          </PersistentStrings>
       </ContextState>
       </ContextState>
       <ContextState
       <ContextState
-         contextName = "-[PageViewController initControl]:PageViewController.m">
+         contextName = "__41-[PageViewController CheckButtonClicked:]_block_invoke:PageViewController.m">
          <PersistentStrings>
          <PersistentStrings>
             <PersistentString
             <PersistentString
-               value = "self.editControlView.bounds">
+               value = "self.controlTemplate">
             </PersistentString>
             </PersistentString>
             <PersistentString
             <PersistentString
-               value = "self.editControlView.frame">
+               value = "[NSNumber numberWithBool:[val_condition boolValue]]">
             </PersistentString>
             </PersistentString>
          </PersistentStrings>
          </PersistentStrings>
       </ContextState>
       </ContextState>
       <ContextState
       <ContextState
-         contextName = "-[PDFPageView MyDisplayPDFPage:index:]:PDFPageView.m">
+         contextName = "-[PageViewController textView:shouldChangeTextInRange:replacementText:]:PageViewController.m">
          <PersistentStrings>
          <PersistentStrings>
             <PersistentString
             <PersistentString
-               value = "92.5714416*0.952380955">
-            </PersistentString>
-            <PersistentString
-               value = "(self.frame.size.width-mediabox.size.width*scale)/2">
+               value = " [decimalString floatValue]">
             </PersistentString>
             </PersistentString>
          </PersistentStrings>
          </PersistentStrings>
       </ContextState>
       </ContextState>
@@ -66,51 +77,51 @@
          contextName = "-[PDFViewController loadcontent]:PDFViewController.m">
          contextName = "-[PDFViewController loadcontent]:PDFViewController.m">
       </ContextState>
       </ContextState>
       <ContextState
       <ContextState
-         contextName = "-[PageViewController keyboardWillShow:]:PageViewController.m">
+         contextName = "__32-[PDFViewController loadcontent]_block_invoke:PDFViewController.m">
+      </ContextState>
+      <ContextState
+         contextName = "-[PageViewController addCheck:destView:index:]:PageViewController.m">
          <PersistentStrings>
          <PersistentStrings>
             <PersistentString
             <PersistentString
-               value = "self.hotTextView">
+               value = "item[0][0]">
             </PersistentString>
             </PersistentString>
          </PersistentStrings>
          </PersistentStrings>
       </ContextState>
       </ContextState>
       <ContextState
       <ContextState
-         contextName = "__41-[PageViewController CheckButtonClicked:]_block_invoke:PageViewController.m">
+         contextName = "-[ExtDocumentsViewController tableView:cellForRowAtIndexPath:]:ExtDocumentsViewController.m">
          <PersistentStrings>
          <PersistentStrings>
             <PersistentString
             <PersistentString
-               value = "self.controlTemplate">
-            </PersistentString>
-            <PersistentString
-               value = "[NSNumber numberWithBool:[val_condition boolValue]]">
+               value = "cell.imageView.frame.size">
             </PersistentString>
             </PersistentString>
          </PersistentStrings>
          </PersistentStrings>
       </ContextState>
       </ContextState>
       <ContextState
       <ContextState
-         contextName = "-[PDFViewController onActionClick:]:PDFViewController.m">
-      </ContextState>
-      <ContextState
-         contextName = "-[PageViewController scaleControl:from:to:]:PageViewController.m">
+         contextName = "-[PDFPageView MyDisplayPDFPage:index:]:PDFPageView.m">
          <PersistentStrings>
          <PersistentStrings>
             <PersistentString
             <PersistentString
-               value = "twindowsize.width/2-(fwindowsize.width/2-(frame.origin.x+frame.size.width))*a-width;">
+               value = "92.5714416*0.952380955">
+            </PersistentString>
+            <PersistentString
+               value = "(self.frame.size.width-mediabox.size.width*scale)/2">
             </PersistentString>
             </PersistentString>
          </PersistentStrings>
          </PersistentStrings>
       </ContextState>
       </ContextState>
       <ContextState
       <ContextState
-         contextName = "-[PageViewController textView:shouldChangeTextInRange:replacementText:]:PageViewController.m">
+         contextName = "-[SignatureViewController viewDidLoad]:SignatureViewController.m">
          <PersistentStrings>
          <PersistentStrings>
             <PersistentString
             <PersistentString
-               value = " [decimalString floatValue]">
+               value = "self.signature_ratio">
             </PersistentString>
             </PersistentString>
          </PersistentStrings>
          </PersistentStrings>
       </ContextState>
       </ContextState>
       <ContextState
       <ContextState
-         contextName = "__32-[PDFViewController loadcontent]_block_invoke:PDFViewController.m">
+         contextName = "-[PageViewController viewDidLoad]:PageViewController.m">
       </ContextState>
       </ContextState>
       <ContextState
       <ContextState
-         contextName = "+[ACNetwork get_json:parameters:]:ACNetwork.m">
+         contextName = "-[PageViewController scaleControl:from:to:]:PageViewController.m">
          <PersistentStrings>
          <PersistentStrings>
             <PersistentString
             <PersistentString
-               value = "[e aes256_encrypt:@&quot;usai2010&quot;]">
+               value = "twindowsize.width/2-(fwindowsize.width/2-(frame.origin.x+frame.size.width))*a-width;">
             </PersistentString>
             </PersistentString>
          </PersistentStrings>
          </PersistentStrings>
       </ContextState>
       </ContextState>
@@ -118,23 +129,28 @@
          contextName = "-[PageViewController addTextView:destView:index:]:PageViewController.m">
          contextName = "-[PageViewController addTextView:destView:index:]:PageViewController.m">
       </ContextState>
       </ContextState>
       <ContextState
       <ContextState
-         contextName = "-[PageViewController textViewDidEndEditing:]:PageViewController.m">
+         contextName = "__32-[PDFViewController loadcontent]_block_invoke_2:PDFViewController.m">
          <PersistentStrings>
          <PersistentStrings>
             <PersistentString
             <PersistentString
-               value = "f6-f7">
+               value = "urlResponse.MIMEType">
             </PersistentString>
             </PersistentString>
          </PersistentStrings>
          </PersistentStrings>
       </ContextState>
       </ContextState>
       <ContextState
       <ContextState
-         contextName = "-[PageViewController addCheck:destView:index:]:PageViewController.m">
+         contextName = "-[PageViewController textViewDidChangeSelection:]:PageViewController.m">
          <PersistentStrings>
          <PersistentStrings>
             <PersistentString
             <PersistentString
-               value = "item[0][0]">
+               value = "textView.text">
             </PersistentString>
             </PersistentString>
          </PersistentStrings>
          </PersistentStrings>
       </ContextState>
       </ContextState>
       <ContextState
       <ContextState
-         contextName = "+[ACNetwork prepare_addtional_params:]:ACNetwork.m">
+         contextName = "-[PageViewController keyboardWillShow:]:PageViewController.m">
+         <PersistentStrings>
+            <PersistentString
+               value = "self.hotTextView">
+            </PersistentString>
+         </PersistentStrings>
       </ContextState>
       </ContextState>
    </ContextStates>
    </ContextStates>
 </VariablesViewState>
 </VariablesViewState>

+ 187 - 2
Ants Contract/AntsContract/AntsContract/Base.lproj/Main.storyboard

@@ -383,7 +383,7 @@
                                         <rect key="frame" x="0.0" y="28" width="768" height="128"/>
                                         <rect key="frame" x="0.0" y="28" width="768" height="128"/>
                                         <autoresizingMask key="autoresizingMask"/>
                                         <autoresizingMask key="autoresizingMask"/>
                                         <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KmC-hR-Rfo" id="twt-7p-gUd">
                                         <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KmC-hR-Rfo" id="twt-7p-gUd">
-                                            <rect key="frame" x="0.0" y="0.0" width="768" height="128"/>
+                                            <rect key="frame" x="0.0" y="0.0" width="768" height="127"/>
                                             <autoresizingMask key="autoresizingMask"/>
                                             <autoresizingMask key="autoresizingMask"/>
                                             <subviews>
                                             <subviews>
                                                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="GE2016121201" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="eH3-OQ-M6Q">
                                                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="GE2016121201" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="eH3-OQ-M6Q">
@@ -408,7 +408,7 @@
                                                     <nil key="highlightedColor"/>
                                                     <nil key="highlightedColor"/>
                                                 </label>
                                                 </label>
                                                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="t8P-5p-BAG">
                                                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="3" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="t8P-5p-BAG">
-                                                    <rect key="frame" x="9" y="44" width="745" height="62"/>
+                                                    <rect key="frame" x="9" y="44" width="635" height="62"/>
                                                     <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
                                                     <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
                                                     <string key="text">    //    ref addTarget:self action:@selector(manually_refresh) forControlEvents:UIControlEventValueChanged
                                                     <string key="text">    //    ref addTarget:self action:@selector(manually_refresh) forControlEvents:UIControlEventValueChanged
     btn.backgroundColor = UIColorFromRGB(BT_BG);
     btn.backgroundColor = UIColorFromRGB(BT_BG);
@@ -433,15 +433,54 @@
                                                     <nil key="textColor"/>
                                                     <nil key="textColor"/>
                                                     <nil key="highlightedColor"/>
                                                     <nil key="highlightedColor"/>
                                                 </label>
                                                 </label>
+                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="picture_icon" id="81n-fk-zWB">
+                                                    <rect key="frame" x="657" y="38" width="20" height="20"/>
+                                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                                </imageView>
+                                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="pic" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="Xb0-aM-Zkx">
+                                                    <rect key="frame" x="685" y="37" width="69" height="21"/>
+                                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                                    <nil key="textColor"/>
+                                                    <nil key="highlightedColor"/>
+                                                </label>
+                                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="file" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="kGK-fH-w0V">
+                                                    <rect key="frame" x="685" y="64" width="69" height="21"/>
+                                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                                    <nil key="textColor"/>
+                                                    <nil key="highlightedColor"/>
+                                                </label>
+                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="file_icon" id="9ba-hT-bka">
+                                                    <rect key="frame" x="657" y="65" width="20" height="20"/>
+                                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                                </imageView>
+                                                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" image="note_icon" id="srU-k9-4zC">
+                                                    <rect key="frame" x="657" y="94" width="20" height="20"/>
+                                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                                </imageView>
+                                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="Notes" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="5pm-I2-dZ8">
+                                                    <rect key="frame" x="685" y="93" width="69" height="21"/>
+                                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                                    <nil key="textColor"/>
+                                                    <nil key="highlightedColor"/>
+                                                </label>
                                             </subviews>
                                             </subviews>
                                         </tableViewCellContentView>
                                         </tableViewCellContentView>
                                         <connections>
                                         <connections>
+                                            <outlet property="Icon_file" destination="9ba-hT-bka" id="3pW-Oy-YfH"/>
+                                            <outlet property="Icon_img" destination="81n-fk-zWB" id="Z4p-GE-Mch"/>
+                                            <outlet property="Icon_notes" destination="srU-k9-4zC" id="LQa-Sp-uQn"/>
                                             <outlet property="labelAgent" destination="tHu-Ic-2Wf" id="S89-oN-thW"/>
                                             <outlet property="labelAgent" destination="tHu-Ic-2Wf" id="S89-oN-thW"/>
                                             <outlet property="labelCustomer" destination="GV5-wm-LUp" id="B8v-Te-IOG"/>
                                             <outlet property="labelCustomer" destination="GV5-wm-LUp" id="B8v-Te-IOG"/>
                                             <outlet property="labelDocID" destination="eH3-OQ-M6Q" id="SDW-de-G8p"/>
                                             <outlet property="labelDocID" destination="eH3-OQ-M6Q" id="SDW-de-G8p"/>
                                             <outlet property="labelExtInfo" destination="t8P-5p-BAG" id="abg-cV-czK"/>
                                             <outlet property="labelExtInfo" destination="t8P-5p-BAG" id="abg-cV-czK"/>
                                             <outlet property="labelJobDate" destination="Ewl-Ty-p9Y" id="64e-Fm-OXe"/>
                                             <outlet property="labelJobDate" destination="Ewl-Ty-p9Y" id="64e-Fm-OXe"/>
                                             <outlet property="labelSignDate" destination="eq9-ea-SjV" id="yG1-Ck-qyh"/>
                                             <outlet property="labelSignDate" destination="eq9-ea-SjV" id="yG1-Ck-qyh"/>
+                                            <outlet property="label_file" destination="kGK-fH-w0V" id="XcY-Q5-WcU"/>
+                                            <outlet property="label_img" destination="Xb0-aM-Zkx" id="yL5-mG-m3r"/>
+                                            <outlet property="label_notes" destination="5pm-I2-dZ8" id="IYu-0I-io3"/>
                                         </connections>
                                         </connections>
                                     </tableViewCell>
                                     </tableViewCell>
                                 </prototypes>
                                 </prototypes>
@@ -493,6 +532,149 @@
             </objects>
             </objects>
             <point key="canvasLocation" x="4829" y="-2192"/>
             <point key="canvasLocation" x="4829" y="-2192"/>
         </scene>
         </scene>
+        <!--Title-->
+        <scene sceneID="eDF-JU-I2G">
+            <objects>
+                <viewController storyboardIdentifier="DocnotesViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="lUg-hS-wd3" customClass="DocnotesViewController" sceneMemberID="viewController">
+                    <view key="view" contentMode="scaleToFill" id="wxs-qn-0uu">
+                        <rect key="frame" x="0.0" y="0.0" width="540" height="680"/>
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <subviews>
+                            <textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" misplaced="YES" textAlignment="natural" id="d5F-eF-NZu">
+                                <rect key="frame" x="20" y="105" width="500" height="512"/>
+                                <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" heightSizable="YES" flexibleMaxY="YES"/>
+                                <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+                                <string key="text">Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda.</string>
+                                <fontDescription key="fontDescription" type="system" pointSize="14"/>
+                                <textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
+                            </textView>
+                            <button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="sNv-f2-THF">
+                                <rect key="frame" x="416" y="630" width="104" height="30"/>
+                                <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES"/>
+                                <state key="normal" title="Update"/>
+                                <connections>
+                                    <action selector="onUpdateClick:" destination="lUg-hS-wd3" eventType="touchUpInside" id="678-pX-UGX"/>
+                                </connections>
+                            </button>
+                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="Notes" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="acp-RN-WbK">
+                                <rect key="frame" x="20" y="64" width="46" height="21"/>
+                                <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                <nil key="textColor"/>
+                                <nil key="highlightedColor"/>
+                            </label>
+                            <textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" id="3Mu-rf-Ogh">
+                                <rect key="frame" x="70" y="25" width="161" height="30"/>
+                                <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                <nil key="textColor"/>
+                                <fontDescription key="fontDescription" type="system" pointSize="14"/>
+                                <textInputTraits key="textInputTraits"/>
+                            </textField>
+                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="Doc#" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="YjC-uJ-fS1">
+                                <rect key="frame" x="20" y="30" width="42" height="21"/>
+                                <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                <nil key="textColor"/>
+                                <nil key="highlightedColor"/>
+                            </label>
+                            <button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="9aw-iq-yZQ">
+                                <rect key="frame" x="239" y="25" width="35" height="30"/>
+                                <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                <state key="normal" title="Scan"/>
+                                <connections>
+                                    <action selector="onScanClick:" destination="lUg-hS-wd3" eventType="touchUpInside" id="CsX-ej-3jf"/>
+                                </connections>
+                            </button>
+                        </subviews>
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+                    </view>
+                    <navigationItem key="navigationItem" title="Title" id="vzj-nb-Xfa"/>
+                    <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
+                    <size key="freeformSize" width="540" height="680"/>
+                    <connections>
+                        <outlet property="btnScan" destination="9aw-iq-yZQ" id="TeV-QX-NAF"/>
+                        <outlet property="btnUpdate" destination="sNv-f2-THF" id="qI7-ye-P2P"/>
+                        <outlet property="editDocNumber" destination="3Mu-rf-Ogh" id="xmb-Df-CAK"/>
+                        <outlet property="tvNotes" destination="d5F-eF-NZu" id="qpR-5a-eqh"/>
+                    </connections>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="nMH-ja-hYm" userLabel="First Responder" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="3935" y="-3081"/>
+        </scene>
+        <!--Additional Documents-->
+        <scene sceneID="qSh-ww-yht">
+            <objects>
+                <viewController storyboardIdentifier="ExtDocumentsViewController" useStoryboardIdentifierAsRestorationIdentifier="YES" id="D86-Uz-4tc" customClass="ExtDocumentsViewController" sceneMemberID="viewController">
+                    <view key="view" contentMode="scaleToFill" misplaced="YES" id="h5T-Bw-f66">
+                        <rect key="frame" x="0.0" y="0.0" width="540" height="680"/>
+                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                        <subviews>
+                            <tableView clipsSubviews="YES" contentMode="scaleToFill" misplaced="YES" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" id="pEf-xk-Nic">
+                                <rect key="frame" x="0.0" y="69" width="540" height="611"/>
+                                <autoresizingMask key="autoresizingMask" flexibleMinX="YES" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" heightSizable="YES" flexibleMaxY="YES"/>
+                                <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+                                <prototypes>
+                                    <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="ADTableViewCell" textLabel="93T-5h-JKV" detailTextLabel="mtf-OD-AFL" style="IBUITableViewCellStyleSubtitle" id="K5M-kB-Cox">
+                                        <rect key="frame" x="0.0" y="28" width="540" height="44"/>
+                                        <autoresizingMask key="autoresizingMask"/>
+                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="K5M-kB-Cox" id="8bB-hy-1xQ">
+                                            <rect key="frame" x="0.0" y="0.0" width="540" height="43"/>
+                                            <autoresizingMask key="autoresizingMask"/>
+                                            <subviews>
+                                                <label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Title" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="93T-5h-JKV">
+                                                    <rect key="frame" x="15" y="4" width="34" height="21"/>
+                                                    <autoresizingMask key="autoresizingMask"/>
+                                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                                    <nil key="textColor"/>
+                                                    <nil key="highlightedColor"/>
+                                                </label>
+                                                <label opaque="NO" multipleTouchEnabled="YES" contentMode="left" text="Subtitle" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="mtf-OD-AFL">
+                                                    <rect key="frame" x="15" y="25" width="44" height="15"/>
+                                                    <autoresizingMask key="autoresizingMask"/>
+                                                    <fontDescription key="fontDescription" type="system" pointSize="12"/>
+                                                    <nil key="textColor"/>
+                                                    <nil key="highlightedColor"/>
+                                                </label>
+                                            </subviews>
+                                        </tableViewCellContentView>
+                                    </tableViewCell>
+                                </prototypes>
+                                <connections>
+                                    <outlet property="dataSource" destination="D86-Uz-4tc" id="YHn-nK-CWx"/>
+                                    <outlet property="delegate" destination="D86-Uz-4tc" id="Bro-00-fyC"/>
+                                </connections>
+                            </tableView>
+                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="Doc#" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="ANz-40-2Sf">
+                                <rect key="frame" x="13" y="35" width="197" height="21"/>
+                                <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                <fontDescription key="fontDescription" type="system" pointSize="17"/>
+                                <nil key="textColor"/>
+                                <nil key="highlightedColor"/>
+                            </label>
+                            <button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="hfl-sD-ikK">
+                                <rect key="frame" x="486" y="31" width="34" height="30"/>
+                                <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+                                <state key="normal" title="Add"/>
+                                <connections>
+                                    <action selector="onAddClick:" destination="D86-Uz-4tc" eventType="touchUpInside" id="mmf-W1-gVE"/>
+                                </connections>
+                            </button>
+                        </subviews>
+                        <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
+                    </view>
+                    <navigationItem key="navigationItem" title="Additional Documents" id="vRK-Q0-MI7"/>
+                    <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
+                    <size key="freeformSize" width="540" height="680"/>
+                    <connections>
+                        <outlet property="labelDocNumber" destination="ANz-40-2Sf" id="NDv-Wy-ofo"/>
+                        <outlet property="tableView" destination="pEf-xk-Nic" id="UKm-vy-VGA"/>
+                    </connections>
+                </viewController>
+                <placeholder placeholderIdentifier="IBFirstResponder" id="Ahp-fI-vyH" userLabel="First Responder" sceneMemberID="firstResponder"/>
+            </objects>
+            <point key="canvasLocation" x="3935" y="-2284"/>
+        </scene>
         <!--Documents Filter-->
         <!--Documents Filter-->
         <scene sceneID="Ruw-38-v9q">
         <scene sceneID="Ruw-38-v9q">
             <objects>
             <objects>
@@ -734,7 +916,10 @@
         <image name="OpenDoc" width="100" height="100"/>
         <image name="OpenDoc" width="100" height="100"/>
         <image name="checkbox" width="16" height="16"/>
         <image name="checkbox" width="16" height="16"/>
         <image name="close" width="40" height="40"/>
         <image name="close" width="40" height="40"/>
+        <image name="file_icon" width="20" height="20"/>
         <image name="home_bg" width="768" height="1024"/>
         <image name="home_bg" width="768" height="1024"/>
+        <image name="note_icon" width="20" height="20"/>
+        <image name="picture_icon" width="20" height="20"/>
     </resources>
     </resources>
     <simulatedMetricsContainer key="defaultSimulatedMetrics">
     <simulatedMetricsContainer key="defaultSimulatedMetrics">
         <simulatedStatusBarMetrics key="statusBar"/>
         <simulatedStatusBarMetrics key="statusBar"/>

+ 12 - 0
Ants Contract/Granite Expo eSign/Granite Expo eSign.xcodeproj/project.pbxproj

@@ -63,6 +63,8 @@
 		714B870B1E24CAE300A40D18 /* debug.json in Resources */ = {isa = PBXBuildFile; fileRef = 714B870A1E24CAE200A40D18 /* debug.json */; };
 		714B870B1E24CAE300A40D18 /* debug.json in Resources */ = {isa = PBXBuildFile; fileRef = 714B870A1E24CAE200A40D18 /* debug.json */; };
 		717243441E1CCCEC00800678 /* CustomIOSAlertView.m in Sources */ = {isa = PBXBuildFile; fileRef = 717243431E1CCCEC00800678 /* CustomIOSAlertView.m */; };
 		717243441E1CCCEC00800678 /* CustomIOSAlertView.m in Sources */ = {isa = PBXBuildFile; fileRef = 717243431E1CCCEC00800678 /* CustomIOSAlertView.m */; };
 		7172434A1E1E208F00800678 /* GEIC - Home Improvement Contract 2017.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 717243491E1E208F00800678 /* GEIC - Home Improvement Contract 2017.pdf */; };
 		7172434A1E1E208F00800678 /* GEIC - Home Improvement Contract 2017.pdf in Resources */ = {isa = PBXBuildFile; fileRef = 717243491E1E208F00800678 /* GEIC - Home Improvement Contract 2017.pdf */; };
+		71BBFC371E6419D4008668A7 /* ExtDocumentsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 71BBFC361E6419D4008668A7 /* ExtDocumentsViewController.m */; };
+		71BBFC3A1E651CC4008668A7 /* DocnotesViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 71BBFC391E651CC4008668A7 /* DocnotesViewController.m */; };
 /* End PBXBuildFile section */
 /* End PBXBuildFile section */
 
 
 /* Begin PBXFileReference section */
 /* Begin PBXFileReference section */
@@ -172,6 +174,10 @@
 		717243421E1CCCEC00800678 /* CustomIOSAlertView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CustomIOSAlertView.h; path = "../../../RedAnt ERP Mobile/common/customUI/CustomIOSAlertView.h"; sourceTree = "<group>"; };
 		717243421E1CCCEC00800678 /* CustomIOSAlertView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CustomIOSAlertView.h; path = "../../../RedAnt ERP Mobile/common/customUI/CustomIOSAlertView.h"; sourceTree = "<group>"; };
 		717243431E1CCCEC00800678 /* CustomIOSAlertView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CustomIOSAlertView.m; path = "../../../RedAnt ERP Mobile/common/customUI/CustomIOSAlertView.m"; sourceTree = "<group>"; };
 		717243431E1CCCEC00800678 /* CustomIOSAlertView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = CustomIOSAlertView.m; path = "../../../RedAnt ERP Mobile/common/customUI/CustomIOSAlertView.m"; sourceTree = "<group>"; };
 		717243491E1E208F00800678 /* GEIC - Home Improvement Contract 2017.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; name = "GEIC - Home Improvement Contract 2017.pdf"; path = "Granite Expo eSign/GEIC - Home Improvement Contract 2017.pdf"; sourceTree = "<group>"; };
 		717243491E1E208F00800678 /* GEIC - Home Improvement Contract 2017.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; name = "GEIC - Home Improvement Contract 2017.pdf"; path = "Granite Expo eSign/GEIC - Home Improvement Contract 2017.pdf"; sourceTree = "<group>"; };
+		71BBFC351E6419D4008668A7 /* ExtDocumentsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ExtDocumentsViewController.h; path = ../../common/ExtDocumentsViewController.h; sourceTree = "<group>"; };
+		71BBFC361E6419D4008668A7 /* ExtDocumentsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ExtDocumentsViewController.m; path = ../../common/ExtDocumentsViewController.m; sourceTree = "<group>"; };
+		71BBFC381E651CC4008668A7 /* DocnotesViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = DocnotesViewController.h; path = ../../common/DocnotesViewController.h; sourceTree = "<group>"; };
+		71BBFC391E651CC4008668A7 /* DocnotesViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = DocnotesViewController.m; path = ../../common/DocnotesViewController.m; sourceTree = "<group>"; };
 /* End PBXFileReference section */
 /* End PBXFileReference section */
 
 
 /* Begin PBXFrameworksBuildPhase section */
 /* Begin PBXFrameworksBuildPhase section */
@@ -244,6 +250,10 @@
 				7115D4291E14DE0A00EF4E4C /* DocListTableViewCell.m */,
 				7115D4291E14DE0A00EF4E4C /* DocListTableViewCell.m */,
 				7115D4251E13B70C00EF4E4C /* DocumentListViewController.h */,
 				7115D4251E13B70C00EF4E4C /* DocumentListViewController.h */,
 				7115D4261E13B70C00EF4E4C /* DocumentListViewController.m */,
 				7115D4261E13B70C00EF4E4C /* DocumentListViewController.m */,
+				71BBFC351E6419D4008668A7 /* ExtDocumentsViewController.h */,
+				71BBFC361E6419D4008668A7 /* ExtDocumentsViewController.m */,
+				71BBFC381E651CC4008668A7 /* DocnotesViewController.h */,
+				71BBFC391E651CC4008668A7 /* DocnotesViewController.m */,
 				7128C23E1E124F4500FF635B /* Supporting Files */,
 				7128C23E1E124F4500FF635B /* Supporting Files */,
 			);
 			);
 			path = "Granite Expo eSign";
 			path = "Granite Expo eSign";
@@ -488,6 +498,7 @@
 				7115D4271E13B70C00EF4E4C /* DocumentListViewController.m in Sources */,
 				7115D4271E13B70C00EF4E4C /* DocumentListViewController.m in Sources */,
 				7128C33A1E12540F00FF635B /* ACNetwork.m in Sources */,
 				7128C33A1E12540F00FF635B /* ACNetwork.m in Sources */,
 				7128C2B71E1250CA00FF635B /* RectDrawable.m in Sources */,
 				7128C2B71E1250CA00FF635B /* RectDrawable.m in Sources */,
+				71BBFC3A1E651CC4008668A7 /* DocnotesViewController.m in Sources */,
 				7128C2D91E12510900FF635B /* mztools.c in Sources */,
 				7128C2D91E12510900FF635B /* mztools.c in Sources */,
 				7128C2EB1E12511B00FF635B /* NSString+Base64.m in Sources */,
 				7128C2EB1E12511B00FF635B /* NSString+Base64.m in Sources */,
 				7128C2CA1E1250FC00FF635B /* NetworkUtils.m in Sources */,
 				7128C2CA1E1250FC00FF635B /* NetworkUtils.m in Sources */,
@@ -521,6 +532,7 @@
 				7128C3551E12548C00FF635B /* SignatureListViewController.m in Sources */,
 				7128C3551E12548C00FF635B /* SignatureListViewController.m in Sources */,
 				7128C2EA1E12511B00FF635B /* NSData+CommonCrypto.m in Sources */,
 				7128C2EA1E12511B00FF635B /* NSData+CommonCrypto.m in Sources */,
 				7128C2B01E1250CA00FF635B /* TextDrawable.m in Sources */,
 				7128C2B01E1250CA00FF635B /* TextDrawable.m in Sources */,
+				71BBFC371E6419D4008668A7 /* ExtDocumentsViewController.m in Sources */,
 				7128C3531E12548C00FF635B /* PDFPageView.m in Sources */,
 				7128C3531E12548C00FF635B /* PDFPageView.m in Sources */,
 				7128C33E1E12541800FF635B /* RootViewController.m in Sources */,
 				7128C33E1E12541800FF635B /* RootViewController.m in Sources */,
 				7128C2E91E12511B00FF635B /* NSData+Base64.m in Sources */,
 				7128C2E91E12511B00FF635B /* NSData+Base64.m in Sources */,

+ 23 - 0
Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/file_icon.imageset/Contents.json

@@ -0,0 +1,23 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "ducument.png",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "ducument@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "ducument@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN=BIN
Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/file_icon.imageset/ducument.png


BIN=BIN
Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/file_icon.imageset/ducument@2x.png


BIN=BIN
Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/file_icon.imageset/ducument@3x.png


+ 23 - 0
Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/note_icon.imageset/Contents.json

@@ -0,0 +1,23 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "note.png",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "note@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "note@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN=BIN
Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/note_icon.imageset/note.png


BIN=BIN
Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/note_icon.imageset/note@2x.png


BIN=BIN
Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/note_icon.imageset/note@3x.png


+ 23 - 0
Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/picture_icon.imageset/Contents.json

@@ -0,0 +1,23 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "picuture.png",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "picuture@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "picuture@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN=BIN
Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/picture_icon.imageset/picuture.png


BIN=BIN
Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/picture_icon.imageset/picuture@2x.png


BIN=BIN
Ants Contract/Granite Expo eSign/Granite Expo eSign/Assets.xcassets/picture_icon.imageset/picuture@3x.png


+ 15 - 6
Ants Contract/Granite Expo eSign/Granite Expo eSign/config.h

@@ -30,12 +30,21 @@
 
 
 
 
 #ifdef test_server
 #ifdef test_server
-    #define  URL_ERR_LOG  @""
-    #define  URL_UPDATE_AUTH  @"http://192.168.0.177/esign/admin.php"
-    #define  URL_UPLOAD_PDF  @"http://192.168.0.177/esign/admin.php"
-    #define  URL_LOGOUT  @"http://192.168.0.177/esign/admin.php"
-    #define  URL_NEW_DOCUMENT  @"http://192.168.0.177/esign/admin.php"
-    #define  URL_REQUEST_DOC  @"http://192.168.0.177/esign/admin.php"
+//    #define  URL_ERR_LOG  @""
+//    #define  URL_UPDATE_AUTH  @"http://192.168.0.177/esign/admin.php"
+//    #define  URL_UPLOAD_PDF  @"http://192.168.0.177/esign/admin.php"
+//    #define  URL_LOGOUT  @"http://192.168.0.177/esign/admin.php"
+//    #define  URL_NEW_DOCUMENT  @"http://192.168.0.177/esign/admin.php"
+//    #define  URL_REQUEST_DOC  @"http://192.168.0.177/esign/admin.php"
+
+
+#define  URL_ERR_LOG  @""
+#define  URL_UPDATE_AUTH  @"http://192.168.0.155/phpcms/admin.php"
+#define  URL_UPLOAD_PDF  @"http://192.168.0.155/phpcms/admin.php"
+#define  URL_LOGOUT  @"http://192.168.0.155/phpcms/admin.php"
+#define  URL_NEW_DOCUMENT  @"http://192.168.0.155/phpcms/admin.php"
+#define  URL_UPDATE_NOTES  @"http://192.168.0.155/phpcms/admin.php"
+#define  URL_REQUEST_DOC  @"http://192.168.0.155/phpcms/admin.php"
 #else
 #else
     #define  URL_ERR_LOG  @""
     #define  URL_ERR_LOG  @""
     #define  URL_UPDATE_AUTH  @"http://www.thegraniteexpo.com/admin.php"
     #define  URL_UPDATE_AUTH  @"http://www.thegraniteexpo.com/admin.php"

+ 4 - 0
Ants Contract/common/ACNetwork.h

@@ -19,4 +19,8 @@
 +(NSDictionary*)new_document;
 +(NSDictionary*)new_document;
 
 
 +(NSDictionary*)save_document:(NSString*)file;
 +(NSDictionary*)save_document:(NSString*)file;
+
+
+
++(NSDictionary *) updateNotes:(NSString*) doc_number notes:(NSString*)notes;
 @end
 @end

+ 38 - 0
Ants Contract/common/ACNetwork.m

@@ -583,4 +583,42 @@
 
 
     return jsobj;
     return jsobj;
 }
 }
+
++(NSDictionary *) updateNotes:(NSString*) doc_number notes:(NSString*)notes
+{
+    NSMutableDictionary* params = [[NSMutableDictionary alloc] init];
+    AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
+    if(appDelegate.user!=nil)
+        [params setValue:appDelegate.user forKey:@"user"];
+    
+    
+    if(appDelegate.password!=nil)
+        [params setValue:appDelegate.password forKey:@"password"];
+  
+    params[@"doc_number"]=doc_number;
+    params[@"notes"]=notes;
+    
+    params[@"_operate"]=@"updateNotes";
+    
+    if(![self IsNetworkAvailable])
+    {
+        DebugLog(@"NET ERR");
+        
+        return [RAUtils error_json:RESULT_NET_NOTAVAILABLE err_msg:nil];
+        //        return nil;
+    }
+    NSData* json=[self get_json:URL_UPDATE_NOTES parameters:params file:nil];
+    //if(json==nil)
+    
+    
+    if(json==nil)
+        return nil;
+    NSError *error=nil;
+    NSDictionary *jsobj = [NSJSONSerialization JSONObjectWithData:json options:NSJSONReadingMutableLeaves error:&error];
+    int result = [[jsobj valueForKey:@"result"] intValue];
+    DebugLog(@"new_document result:%d",result);
+    
+    return jsobj;
+
+}
 @end
 @end

+ 9 - 0
Ants Contract/common/DocListTableViewCell.h

@@ -20,4 +20,13 @@
 @property (strong, nonatomic) IBOutlet UILabel *labelSignDate;
 @property (strong, nonatomic) IBOutlet UILabel *labelSignDate;
 
 
 @property (strong, nonatomic) IBOutlet UILabel *labelExtInfo;
 @property (strong, nonatomic) IBOutlet UILabel *labelExtInfo;
+
+@property (weak, nonatomic) IBOutlet UIImageView *Icon_img;
+@property (weak, nonatomic) IBOutlet UIImageView *Icon_file;
+@property (weak, nonatomic) IBOutlet UIImageView *Icon_notes;
+
+@property (weak, nonatomic) IBOutlet UILabel *label_img;
+@property (weak, nonatomic) IBOutlet UILabel *label_file;
+@property (weak, nonatomic) IBOutlet UILabel *label_notes;
+
 @end
 @end

+ 19 - 0
Ants Contract/common/DocnotesViewController.h

@@ -0,0 +1,19 @@
+//
+//  NotesViewController.h
+//  Granite Expo eSign
+//
+//  Created by Ray on 28/02/2017.
+//  Copyright © 2017 United Software Applications, Inc. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface DocnotesViewController : UIViewController
+@property (weak, nonatomic) IBOutlet UITextField *editDocNumber;
+@property (weak, nonatomic) IBOutlet UIButton *btnScan;
+@property (weak, nonatomic) IBOutlet UITextView *tvNotes;
+@property (weak, nonatomic) IBOutlet UIButton *btnUpdate;
+@property (strong, nonatomic)  NSString *docNumber;
+@property (strong, nonatomic)  NSString *docNotes;
+
+@end

+ 122 - 0
Ants Contract/common/DocnotesViewController.m

@@ -0,0 +1,122 @@
+//
+//  NotesViewController.m
+//  Granite Expo eSign
+//
+//  Created by Ray on 28/02/2017.
+//  Copyright © 2017 United Software Applications, Inc. All rights reserved.
+//
+
+#import "DocnotesViewController.h"
+#import "ACNetwork.h"
+#import "RAUtils.h"
+
+
+@interface DocnotesViewController ()
+
+@end
+
+@implementation DocnotesViewController
+
+- (void)viewDidLoad {
+    [super viewDidLoad];
+    
+    self.editDocNumber.text = self.docNumber;
+    self.tvNotes.text = self.docNotes;
+    
+    if(self.docNumber.length>0)
+    {
+        self.editDocNumber.enabled = false;
+        self.btnScan.enabled = false;
+    }
+    self.edgesForExtendedLayout = UIRectEdgeNone;
+    
+    
+    self.tvNotes.layer.borderColor = [UIColor darkGrayColor].CGColor;
+    self.tvNotes.layer.borderWidth = 0.5;
+    
+    
+    UIBarButtonItem *closeButton =nil;
+    
+    
+    
+    closeButton=[[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"close"] imageWithRenderingMode:UIImageRenderingModeAutomatic]
+                                                 style:UIBarButtonItemStylePlain
+                                                target:self
+                                                action:@selector( onCloseClick:)];
+    //[[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Close", nil) style:UIBarButtonItemStylePlain target:self action:@selector(onCloseClick:)];
+    //    closeButton.title = @"Close";
+    
+    self.navigationItem.rightBarButtonItem = closeButton;
+    // Do any additional setup after loading the view.
+}
+
+- (void)didReceiveMemoryWarning {
+    [super didReceiveMemoryWarning];
+    // Dispose of any resources that can be recreated.
+}
+- (void)onCloseClick:(UIButton *)sender {
+    
+    
+    [self dismissViewControllerAnimated:false completion:nil];
+    
+//    [self.navigationController popViewControllerAnimated:FALSE];
+}
+- (IBAction)onUpdateClick:(id)sender {
+    
+    self.docNumber = self.editDocNumber.text;
+    self.docNotes = self.tvNotes.text;
+    
+    UIAlertView * waitalert = [RAUtils waiting_alert:@"Please wait..." title:@"Update Notes"];
+    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
+        
+        
+        NSMutableDictionary* json=[[ACNetwork updateNotes:self.docNumber notes:self.docNotes ] mutableCopy];
+        
+        dispatch_async(dispatch_get_main_queue(), ^{
+            [waitalert dismissWithClickedButtonIndex:0 animated:FALSE];
+            
+            
+            if([json[@"result"] intValue]==RESULT_TRUE)
+                
+            {
+                [self dismissViewControllerAnimated:false completion:nil];
+//                DocumentPageViewController* dvc = [self.storyboard instantiateViewControllerWithIdentifier:@"DocumentPageViewController" ];
+//                
+//                //                dvc.templateName = @"debug.json";
+//                dvc.templateName = @"GEIC - Home Improvement Contract 2017.json";
+//                dvc.pdfName = @"GEIC - Home Improvement Contract 2017.pdf";
+//                dvc.docment_id = json[@"doc_number"];
+//                dvc.OnSave=^(NSString* file, NSString* subject)
+//                {
+//                    
+//                    [weakSelf previewPDF:file title:json[@"doc_number"] subject:subject];
+//                };
+//                
+//                [self.navigationController pushViewController:dvc animated:true];
+            }
+            else
+            {
+                [RAUtils message_alert:[json valueForKey:@"err_msg"]  title:@"Create Customer" controller:self] ;
+            }
+            
+            
+        });
+    });
+    
+    
+}
+- (IBAction)onScanClick:(id)sender {
+}
+
+
+/*
+#pragma mark - Navigation
+
+// In a storyboard-based application, you will often want to do a little preparation before navigation
+- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
+    // Get the new view controller using [segue destinationViewController].
+    // Pass the selected object to the new view controller.
+}
+*/
+
+@end

+ 225 - 0
Ants Contract/common/DocumentListViewController.m

@@ -13,6 +13,9 @@
 #import "GEContractFilterViewController.h"
 #import "GEContractFilterViewController.h"
 #import "PDFViewController.h"
 #import "PDFViewController.h"
 #import "AppDelegate.h"
 #import "AppDelegate.h"
+#import "ExtDocumentsViewController.h"
+#import "DocnotesViewController.h"
+
 
 
 
 
 @interface DocumentListViewController ()
 @interface DocumentListViewController ()
@@ -71,6 +74,10 @@
     
     
     
     
     
     
+    
+
+    
+    
     [self loadpage];
     [self loadpage];
     // Do any additional setup after loading the view.
     // Do any additional setup after loading the view.
 }
 }
@@ -679,6 +686,57 @@
         NSString* job_zip =item_json[@"job_zip"];
         NSString* job_zip =item_json[@"job_zip"];
         NSString* tel =item_json[@"tel"];
         NSString* tel =item_json[@"tel"];
         
         
+        NSString* notes =item_json[@"notes"];
+        if(notes.length>0)
+        {
+            cell.Icon_notes.hidden = false;
+            cell.label_notes.hidden = false;
+        }
+        else
+        {
+            cell.Icon_notes.hidden = true;
+            cell.label_notes.hidden = true;
+        }
+        NSMutableArray* arr_doc = [item_json[@"documents"] mutableCopy];
+        int imgcount=0;
+        int filecount=0;
+        for(int d=0;d<arr_doc.count;d++)
+        {
+            NSDictionary* doc= arr_doc[d];
+            NSString* type = doc[@"type"];
+            if([type isEqualToString:@"image"])
+                imgcount++;
+            else if([type isEqualToString:@"file"])
+                filecount++;
+        }
+        if(imgcount>0)
+        {
+            cell.Icon_img.hidden = false;
+            cell.label_img.hidden = false;
+            cell.label_img.text=[NSString stringWithFormat:@"%d",imgcount];
+        }
+        else
+        {
+            cell.Icon_img.hidden = true;
+            cell.label_img.hidden = true;
+            cell.label_img.text=@"";
+
+        }
+        if(filecount>0)
+        {
+            cell.Icon_file.hidden = false;
+            cell.label_file.hidden = false;
+            cell.label_file.text=[NSString stringWithFormat:@"%d",filecount];
+        }
+        else
+        {
+            cell.Icon_file.hidden = true;
+            cell.label_file.hidden = true;
+            cell.label_file.text=@"";
+            
+        }
+        
+        
         if(tel.length>0)
         if(tel.length>0)
             tel= [@"TEL: " stringByAppendingString:tel];
             tel= [@"TEL: " stringByAppendingString:tel];
         
         
@@ -876,4 +934,171 @@
     
     
     
     
 }
 }
+
+- (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath
+
+{
+    
+    
+    
+    NSDictionary * item_json = self.table_data[indexPath.row];
+    
+    NSString* notes = item_json[@"notes"];
+    NSString* doc_number = item_json[@"doc_number"];
+    
+    NSMutableArray* arr_doc = [item_json[@"documents"] mutableCopy];
+    
+    UITableViewRowAction *docAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"Documents"handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) {
+        
+        DebugLog(@"Documents click");
+        
+        [tableView reloadRowsAtIndexPaths:@[indexPath]withRowAnimation:UITableViewRowAnimationMiddle];
+        
+        
+        ExtDocumentsViewController * docVC =[ self.storyboard instantiateViewControllerWithIdentifier:@"ExtDocumentsViewController"];
+        
+        docVC.docNumber = doc_number;
+        docVC.arr_documents =arr_doc;
+//        notesVC.docNotes = notes;
+        
+        UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:docVC] ;
+        
+        
+        
+        
+        
+        
+        navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
+        [self presentViewController:navi animated:YES completion:^{
+            
+            //        navi.view.superview.bounds = CGRectMake(0, 0, 480, 320);
+            
+            DebugLog(@"filter present.........");
+            
+            //   self.btop = false;
+            //  <#code#>
+        }];
+        
+    }];
+    
+    
+    docAction.backgroundColor = UIColorFromRGB(0xff9933);
+    
+    
+    UITableViewRowAction *noteAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDestructive title:@"   Note        " handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) {
+        
+        DebugLog(@"note click");
+        
+
+        [tableView reloadRowsAtIndexPaths:@[indexPath]withRowAnimation:UITableViewRowAnimationMiddle];
+        DocnotesViewController * notesVC =[ self.storyboard instantiateViewControllerWithIdentifier:@"DocnotesViewController"];
+
+        notesVC.docNumber = doc_number;
+        notesVC.docNotes = notes;
+
+        UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:notesVC] ;
+        
+        
+        
+        
+        
+        
+        navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
+        [self presentViewController:navi animated:YES completion:^{
+            
+            //        navi.view.superview.bounds = CGRectMake(0, 0, 480, 320);
+            
+            DebugLog(@"filter present.........");
+            
+            //   self.btop = false;
+            //  <#code#>
+        }];
+        
+    }];
+
+    noteAction.backgroundColor = UIColorFromRGB(0x336699);
+    
+    return @[docAction,noteAction];
+
+    
+}
+
+- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
+    
+//    if(indexPath.row==self.content_data.count)
+//        return NO;
+//    
+//    if(self.init_style==OL_OPEN)
+//        return NO;
+//    
+//    AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
+//    //    NSString* order_status= [self.content_data[indexPath.row] valueForKey:@"order_status"];
+//    NSInteger statusCode = [[self.content_data[indexPath.row] valueForKey:@"orderStatus"] integerValue];
+//    
+//    if(appDelegate.user_type==USER_ROLE_CUSTOMER) {
+//        // saved && ((type==0 && merge_permission) || type == 1 || can_cancel)
+//        
+//        BOOL isSavedOrder = /*[order_status isEqualToString:@"Saved Order"]*/statusCode == 1;
+//        switch (self.orderType) {
+//            case 0:{ // Shop Order
+//                
+//                if (!isSavedOrder) {
+//                    return NO;
+//                } else {
+//                    if ([Singleton sharedInstance].permissions_merge_order || appDelegate.can_cancel_order) {
+//                        return YES;
+//                    } else {
+//                        return NO;
+//                    }
+//                }
+//                
+//            }
+//                break;
+//            case 1:{ // Sales Order
+//                if (isSavedOrder && appDelegate.can_cancel_order) {
+//                    return YES;
+//                }
+//                return NO;
+//            }
+//                break;
+//                
+//            default:
+//                break;
+//        }
+//        
+//    } else {
+//        return YES;
+//    }
+    return YES;
+}
+
+- (void)tableView:(UITableView *)tableView
+commitEditingStyle:(UITableViewCellEditingStyle)editingStyle  forRowAtIndexPath:(NSIndexPath *)indexPath {
+    
+    
+    
+}
+
+- (UITableViewCellEditingStyle)tableView:(UITableView *)tv editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {
+    
+    return UITableViewCellEditingStyleDelete;
+    
+//    if(indexPath.row==self.content_data.count)
+//        return UITableViewCellEditingStyleNone;
+//    AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
+//    bool offline_edit =[[self.content_data[indexPath.row] valueForKey:@"offline_edit"] boolValue];
+//    
+//    //    NSString* order_status= [self.content_data[indexPath.row] valueForKey:@"order_status"];
+//    NSInteger statusCode = [[self.content_data[indexPath.row] valueForKey:@"orderStatus"] integerValue];
+//    if(/*![order_status isEqualToString:@"Saved Order"]&&! [order_status isEqualToString:@"Quote Saved"]*/statusCode != 1 && statusCode != 0)
+//        return UITableViewCellEditingStyleNone;
+//    else
+//    {
+//        if(appDelegate.offline_mode==false||offline_edit)
+//            return UITableViewCellEditingStyleDelete;
+//        else
+//            return UITableViewCellEditingStyleNone;
+//    }
+}
+
 @end
 @end

+ 19 - 0
Ants Contract/common/ExtDocumentsViewController.h

@@ -0,0 +1,19 @@
+//
+//  ExtDocumentsViewController.h
+//  Granite Expo eSign
+//
+//  Created by Ray on 27/02/2017.
+//  Copyright © 2017 United Software Applications, Inc. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface ExtDocumentsViewController : UIViewController
+
+@property (weak, nonatomic) IBOutlet UILabel *labelDocNumber;
+@property (weak, nonatomic) IBOutlet UITableView *tableView;
+@property (strong, nonatomic) NSMutableArray * arr_documents;
+
+
+@property (strong, nonatomic)  NSString *docNumber;
+@end

+ 731 - 0
Ants Contract/common/ExtDocumentsViewController.m

@@ -0,0 +1,731 @@
+//
+//  ExtDocumentsViewController.m
+//  Granite Expo eSign
+//
+//  Created by Ray on 27/02/2017.
+//  Copyright © 2017 United Software Applications, Inc. All rights reserved.
+//
+
+#import "ExtDocumentsViewController.h"
+#import "PDFViewController.h"
+
+@interface ExtDocumentsViewController ()
+
+@end
+
+@implementation ExtDocumentsViewController
+
+- (void)viewDidLoad {
+    [super viewDidLoad];
+    
+        self.labelDocNumber.text = self.docNumber;
+        self.edgesForExtendedLayout = UIRectEdgeNone;
+    
+    
+    UIBarButtonItem *closeButton =nil;
+    
+    
+    
+    closeButton=[[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"close"] imageWithRenderingMode:UIImageRenderingModeAutomatic]
+                                                 style:UIBarButtonItemStylePlain
+                                                target:self
+                                                action:@selector( onCloseClick:)];
+
+    
+    self.navigationItem.rightBarButtonItem = closeButton;
+
+    // Do any additional setup after loading the view.
+}
+
+- (void)didReceiveMemoryWarning {
+    [super didReceiveMemoryWarning];
+    // Dispose of any resources that can be recreated.
+}
+
+- (void)onCloseClick:(UIButton *)sender {
+    
+    
+    [self dismissViewControllerAnimated:false completion:nil];
+    
+    //    [self.navigationController popViewControllerAnimated:FALSE];
+}
+- (IBAction)onAddClick:(id)sender {
+    
+}
+
+
+#pragma mark - Table view data source
+- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
+{
+
+        return 44;
+    
+    
+}
+
+//- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
+//{
+//    return 0;
+//}
+//- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
+//{
+//    return 0;
+//}
+//- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
+//{
+//        UIView* myView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, 0.0001)];
+//    return myView;
+//
+//}
+
+//- (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
+//{
+//    
+//    NSString* value =nil;//[DefaultAppearance get_noneappearance_value:@"DefaultTableHeaderView" valuename:@"title_text_color"];
+//    
+//    if(value==nil)
+//        value=@"";
+//    unsigned long color = strtoul([value UTF8String],0,16);
+//    
+//    UIView* myView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, 0.0001)];
+//    myView.backgroundColor =  UIColorFromRGB(0xf7f7f7);
+//    myView.layer.shadowPath =[UIBezierPath bezierPathWithRect:myView.bounds].CGPath;
+//    myView.layer.shadowColor = [UIColor blackColor].CGColor;
+//    myView.layer.shadowOffset = CGSizeMake(0, 0);
+//    myView.layer.shadowOpacity = 0.5;
+//    myView.layer.shadowRadius = 2.0;
+//    
+//    
+//    UILabel *statuslabel = [[UILabel alloc] initWithFrame:CGRectMake(8, 2, 130, 22)];
+//    statuslabel.textColor=UIColorFromRGB(color);
+//    statuslabel.backgroundColor = [UIColor clearColor];
+//    statuslabel.text=NSLocalizedString(@"Document #", nil);
+//    [statuslabel sizeToFit];
+//    [myView addSubview:statuslabel];
+//    
+//    UILabel *solabel = [[UILabel alloc] initWithFrame:CGRectMake(8, 21, 130, 22)];
+//    solabel.textColor=UIColorFromRGB(color);
+//    solabel.backgroundColor = [UIColor clearColor];
+//    solabel.text=NSLocalizedString(@"Address", nil);
+//    [solabel sizeToFit];
+//    [myView addSubview:solabel];
+//    
+//    UILabel *userlabel = [[UILabel alloc] initWithFrame:CGRectMake(143, 2, 135, 22)];
+//    userlabel.textColor=UIColorFromRGB(color);
+//    userlabel.backgroundColor = [UIColor clearColor];
+//    userlabel.text=NSLocalizedString(@"Customer", nil);
+//    [userlabel sizeToFit];
+//    [myView addSubview:userlabel];
+//    
+//    //    UILabel *creatorlabel = [[UILabel alloc] initWithFrame:CGRectMake(155, 21, 135, 22)];
+//    //    creatorlabel.textColor=UIColorFromRGB(color);
+//    //    creatorlabel.backgroundColor = [UIColor clearColor];
+//    //    creatorlabel.text=NSLocalizedString(@"Create by", nil);
+//    //    [creatorlabel sizeToFit];
+//    //    [myView addSubview:creatorlabel];
+//    
+//    UILabel *contactlabel = [[UILabel alloc] initWithFrame:CGRectMake(345, 2, 150, 22)];
+//    
+//    contactlabel.textColor=UIColorFromRGB(color);
+//    contactlabel.backgroundColor = [UIColor clearColor];
+//    contactlabel.text=NSLocalizedString(@"Job Date", nil);
+//    [contactlabel sizeToFit];
+//    [myView addSubview:contactlabel];
+//    
+//    //
+//    //    UILabel *modellabel = [[UILabel alloc] initWithFrame:CGRectMake(424, 11, 52, 22)];
+//    //    modellabel.textColor=[UIColor whiteColor];
+//    //    modellabel.backgroundColor = [UIColor clearColor];
+//    //    modellabel.text=NSLocalizedString(@"Model", nil);
+//    //    [modellabel sizeToFit];
+//    //    [myView addSubview:modellabel];
+//    
+//    //    UILabel *modellabel = [[UILabel alloc] initWithFrame:CGRectMake(self.table_order.frame.size.width-276, 2, 100, 22)];
+//    //    modellabel.autoresizingMask=UIViewAutoresizingFlexibleLeftMargin;
+//    //    modellabel.textColor=[UIColor whiteColor];
+//    //    modellabel.backgroundColor = [UIColor clearColor];
+//    //    modellabel.text=NSLocalizedString(@"Items/QTY", nil);
+//    //    [modellabel sizeToFit];
+//    //    [myView addSubview:modellabel];
+//    
+//    UILabel *pricelabel = [[UILabel alloc] initWithFrame:CGRectMake(/*492*/self.tableView.frame.size.width-313, 2, 100, 22)];
+//    pricelabel.autoresizingMask=UIViewAutoresizingFlexibleLeftMargin;
+//    pricelabel.textColor=UIColorFromRGB(color);
+//    pricelabel.backgroundColor = [UIColor clearColor];
+//    pricelabel.text=NSLocalizedString(@"Agent Name", nil);
+//    [pricelabel sizeToFit];
+//    [myView addSubview:pricelabel];
+//    
+//    UILabel *timelabel = [[UILabel alloc] initWithFrame:CGRectMake(self.tableView.frame.size.width-111/*605*/,2, 148, 22)];
+//    timelabel.autoresizingMask=UIViewAutoresizingFlexibleLeftMargin;
+//    timelabel.textColor=UIColorFromRGB(color);
+//    timelabel.backgroundColor = [UIColor clearColor];
+//    //    if(self.time_zone==nil)
+//    timelabel.text=@"Sign Date";
+//    //    else
+//    //        timelabel.text=[NSString stringWithFormat:@"Create time (%@)",self.time_zone];
+//    [timelabel sizeToFit];
+//    [myView addSubview:timelabel];
+//    
+//    myView.autoresizesSubviews=true;
+//    // [myView setAutoresizingMask:UIViewAutoresizingFlexibleWidth  | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleLeftMargin];
+//    
+//    
+//    
+//    
+//    //    modellabel.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
+//    //    pricelabel.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
+//    //    timelabel.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
+//    myView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
+//    //
+//    return myView;
+//}
+
+
+//- (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
+//{
+//
+//
+//    NSString* value =[DefaultAppearance get_noneappearance_value:@"DefaultTableHeaderView" valuename:@"title_text_color"];
+//
+//    if(value==nil)
+//        value=@"";
+//    unsigned long color = strtoul([value UTF8String],0,16);
+//
+//
+//    DefaultTableHeaderView* myView = [[DefaultTableHeaderView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.size.width, 0.0001)];
+//    //  myView.backgroundColor = UIColorFromRGB(0x996633);;
+//
+//
+//    myView.layer.shadowPath =[UIBezierPath bezierPathWithRect:myView.bounds].CGPath;
+//    //    myView.layer.masksToBounds = false;
+//    //添加四个边阴影
+//
+//    myView.layer.shadowColor = [UIColor blackColor].CGColor;
+//    myView.layer.shadowOffset = CGSizeMake(0, 0);
+//    myView.layer.shadowOpacity = 0.5;
+//    myView.layer.shadowRadius = 2.0;
+//
+//
+//    NSString*labeltitle = nil;
+//    switch (section) {
+//        case 0:
+//            labeltitle= @"Order Info";
+//            break;
+//        case 1:
+//        {
+//            labeltitle= @"More Info";
+//
+//            NSString* btntitle=nil ;
+//            if(self.showMore)
+//            {
+//                btntitle=@"Hide";
+//                //        [section setValue:@"false" forKey:@"hide"];
+//                //        [sender setTitle:@"Show" forState:UIControlStateNormal];
+//            }
+//            else{
+//                btntitle=@"Show";
+//            }
+//
+//
+//            UIButton * btn =[[UIButton alloc] initWithFrame:CGRectMake(tableView.bounds.size.width-50-15, 0, 50, 33)];
+//            btn.tag=section;
+//            [btn addTarget:self action:@selector(HideSction:) forControlEvents:UIControlEventTouchUpInside];
+//            [btn setTitle:btntitle forState:UIControlStateNormal];
+//            [myView addSubview:btn];
+//
+//        }
+//            break;
+//        case 2:{
+//            labeltitle= @"Models";
+//
+//            NSString* btntitle=nil ;
+//            if(self.showModels)
+//            {
+//                btntitle=@"Hide";
+//            }
+//            else{
+//                btntitle=@"Show";
+//            }
+//
+//
+//            UIButton * btn =[[UIButton alloc] initWithFrame:CGRectMake(tableView.bounds.size.width-50-15, 0, 50, 33)];
+//            btn.tag=section;
+//
+//            [btn addTarget:self action:@selector(HideSction:) forControlEvents:UIControlEventTouchUpInside];
+//
+//            [btn setTitle:btntitle forState:UIControlStateNormal];
+//            [myView addSubview:btn];
+//
+//        }
+//            break;
+//        case 3:
+//            labeltitle= @"Price Info";
+//        default:
+//            break;
+//    }
+//
+//
+//
+//    UILabel *titlelabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 5.5, 200, 20)];
+//    titlelabel.textColor=UIColorFromRGB(color);;
+//    titlelabel.backgroundColor = [UIColor clearColor];
+//    titlelabel.text=NSLocalizedString(labeltitle, nil);
+//    [titlelabel sizeToFit];
+//    [myView addSubview:titlelabel];
+//
+//    //
+//    return myView;
+//}
+
+//- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
+//
+//    return [NSString stringWithFormat:@"Signature%ld",(long)section+1];
+//
+//}
+- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
+{
+    return 1;
+}
+//- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
+//{
+//    return 44;
+//}
+
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
+{
+    
+
+    return self.arr_documents.count;
+}
+
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
+{
+    
+    
+    
+    
+    
+
+    
+    NSString *CellIdentifier = @"ADTableViewCell";
+    UITableViewCell  * cell= [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
+    NSDictionary * item_json = self.arr_documents[indexPath.row];
+    NSString* type = item_json[@"type"];
+    NSString* file_name = item_json[@"file_name"];
+    NSString* upload_date = item_json[@"upload_date"];
+    NSString* url = item_json[@"url"];
+    if([type isEqualToString:@"file"])
+        cell.imageView.image = [UIImage imageNamed:@"file_icon"];
+    else
+        cell.imageView.image = [UIImage imageNamed:@"picture_icon"];
+    
+
+    
+    cell.textLabel.text = file_name;
+    cell.detailTextLabel.text = upload_date;
+    
+//        cell.labelAgent.text = item_json[@"agent_name"];
+//        NSString* job_addr =item_json[@"job_addr"];
+//        NSString* job_city =item_json[@"job_city"];
+//        NSString* job_state =item_json[@"job_state"];
+//        NSString* job_zip =item_json[@"job_zip"];
+//        NSString* tel =item_json[@"tel"];
+//        
+//        NSString* notes =item_json[@"notes"];
+//        if(notes.length>0)
+//        {
+//            cell.Icon_notes.hidden = false;
+//            cell.label_notes.hidden = false;
+//        }
+//        else
+//        {
+//            cell.Icon_notes.hidden = true;
+//            cell.label_notes.hidden = true;
+//        }
+//        NSMutableArray* arr_doc = [item_json[@"documents"] mutableCopy];
+//        int imgcount=0;
+//        int filecount=0;
+//        for(int d=0;d<arr_doc.count;d++)
+//        {
+//            NSDictionary* doc= arr_doc[d];
+//            NSString* type = doc[@"type"];
+//            if([type isEqualToString:@"image"])
+//                imgcount++;
+//            else if([type isEqualToString:@"file"])
+//                filecount++;
+//        }
+//        if(imgcount>0)
+//        {
+//            cell.Icon_img.hidden = false;
+//            cell.label_img.hidden = false;
+//            cell.label_img.text=[NSString stringWithFormat:@"%d",imgcount];
+//        }
+//        else
+//        {
+//            cell.Icon_img.hidden = true;
+//            cell.label_img.hidden = true;
+//            cell.label_img.text=@"";
+//            
+//        }
+//        if(filecount>0)
+//        {
+//            cell.Icon_file.hidden = false;
+//            cell.label_file.hidden = false;
+//            cell.label_file.text=[NSString stringWithFormat:@"%d",filecount];
+//        }
+//        else
+//        {
+//            cell.Icon_file.hidden = true;
+//            cell.label_file.hidden = true;
+//            cell.label_file.text=@"";
+//            
+//        }
+//        
+//        
+//        if(tel.length>0)
+//            tel= [@"TEL: " stringByAppendingString:tel];
+//        
+//        
+//        NSMutableArray* arr_ext= [[NSMutableArray alloc] init];
+//        
+//        [arr_ext addObject:job_addr];
+//        [arr_ext addObject:@"\r\n"];
+//        
+//        [arr_ext addObject:job_city];
+//        [arr_ext addObject:job_state];
+//        [arr_ext addObject:job_zip];
+//        [arr_ext addObject:@"\r\n"];
+//        [arr_ext addObject:tel];
+//        
+//        NSString *nsext=[RAUtils arr2string:arr_ext separator:@", " trim:true];
+//        
+//        
+//        nsext=[nsext stringByReplacingOccurrencesOfString:@", \r\n," withString:@"\r\n"];
+//        
+//        
+//        //    if(sss.length==0)
+//        //        sss=@"";
+//        cell.labelDocID.text = item_json[@"doc_number"];//
+//        cell.labelExtInfo.text =nsext;
+//        cell.labelJobDate.text =item_json[@"job_date"];
+//        cell.labelCustomer.text =item_json[@"customer_name"];
+//        cell.labelSignDate.text =item_json[@"signed_date"];
+//        
+//        
+    
+        return cell;
+    
+    
+    
+    //    if(tableView==self.itemListTable)
+    //    {
+    //    NSString *CellIdentifier = @"CartItemCell";
+    //    ModelItemCell * cell= [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
+    //    NSDictionary * item_json = [self.content_data objectForKey:[NSString stringWithFormat:@"item_%ld",(long)indexPath.row]];
+    //    NSDictionary * combine_json =[item_json objectForKey:@"combine"];
+    //
+    //    cell.bundle_item=combine_json;
+    //    NSString* img_url = [item_json valueForKey:@"img_url"];
+    //    NSString* description = [item_json valueForKey:@"description"];
+    //    //    NSString* identifier = [item_json valueForKey:@"identifier"];
+    //    //    NSString* attribute = [item_json valueForKey:@"attribute"];
+    //    NSString* currency = [item_json valueForKey:@"currency"];
+    //    int count =[[item_json valueForKey:@"count"] intValue];
+    //
+    //    int stockUom =[[item_json valueForKey:@"stockUom"] intValue];
+    //
+    //    double totalprice =[[item_json valueForKey:@"subtotal_price"] doubleValue];
+    //
+    //    double unitprice=[[item_json valueForKey:@"unit_price"] doubleValue];
+    //    cell.unit_price = unitprice;
+    //    //    cell.labelAttribute.text = attribute;
+    //    //    cell.labelCurrency.text = currency;
+    //    cell.labelDescription.text = description;
+    //    //   cell.labelIdentifier.text = identifier;
+    //    cell.labelPrice.text = [NSString stringWithFormat:@"%.2f",totalprice];
+    //
+    //    cell.labelUnitPrice.text = [NSString stringWithFormat:@"%.2f",unitprice];
+    //
+    //
+    //
+    //    NSString* cart_item_id= [item_json valueForKey:@"cart_item_id"];
+    //    cell.cart_id = cart_item_id;
+    //    [cell init_Stepper:stockUom max:9999 min:stockUom value:count];
+    //
+    //
+    //
+    //    [cell set_Count:count];
+    //
+    //    NSString* file_name=[img_url lastPathComponent];
+    //    NSData* img_data=[iSalesDB load_cached_img:file_name loadFrom:img_url];
+    //    if(img_data!=nil)
+    //    {
+    //
+    //        UIImage * img =[UIImage imageWithData:img_data];
+    //        [cell.btnImage setBackgroundImage:img forState:UIControlStateNormal];
+    //    }
+    //    else
+    //    {
+    //
+    //        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
+    //
+    //            NSData*  downloadimg_data = [NSData dataWithContentsOfURL:[NSURL URLWithString:img_url]];
+    //
+    //            dispatch_async(dispatch_get_main_queue(), ^{
+    //
+    //
+    //
+    //                if(downloadimg_data!=nil)
+    //                {
+    //                    [iSalesDB cache_img:downloadimg_data :file_name ];
+    //
+    //                    UIImage * img =[UIImage imageWithData:downloadimg_data];
+    //                    [cell.btnImage setBackgroundImage:img forState:UIControlStateNormal];
+    //                }
+    //
+    //            });
+    //        });
+    //
+    //
+    //    }
+    //    return cell;
+    //    }
+    //    else
+    //    {
+    //        NSString *CellIdentifier = @"OrderInfoListItem";
+    //        UITableViewCell * cell= [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
+    //        return cell;
+    //    }
+}
+#pragma mark tableview delegate
+- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
+{
+    
+    NSDictionary * item_json = self.arr_documents[indexPath.row];
+//    NSString* type = item_json[@"type"];
+//    NSString* file_name = item_json[@"file_name"];
+//    NSString* upload_date = item_json[@"upload_date"];
+    NSString* url = item_json[@"url"];
+    
+    
+    
+    bool isLocalFile= false;//[self.content_data[indexPath.row] valueForKey:@"isLocalFile"];
+    
+    
+    
+    
+//    ExtDocumentsViewController * docVC =[ self.storyboard instantiateViewControllerWithIdentifier:@"ExtDocumentsViewController"];
+//    
+//    docVC.docNumber = doc_number;
+//    docVC.arr_documents =arr_doc;
+    //        notesVC.docNotes = notes;
+    
+    
+    
+    PDFViewController *ViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"PDFViewController"];
+    ViewController.url = url;
+    ViewController.canSave = false;
+    ViewController.isLocalfile=isLocalFile;
+    ViewController.defaultStyle = true;
+    //    ViewController.save_name = title;
+    //
+    //
+    //    NSMutableArray* send_to = [[NSMutableArray alloc]init];
+    //
+    //    ViewController.mail_to = send_to;
+    //
+    //
+    //    ViewController.mail_subject = subject;
+    
+    ViewController.hidenavi = false;
+    
+    
+    UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:ViewController] ;
+    
+    
+    
+    
+    
+    
+    navi.modalPresentationStyle = UIModalPresentationFullScreen;//有三种状态,自己看看是哪种
+    [self presentViewController:navi animated:YES completion:^{
+        
+        //        navi.view.superview.bounds = CGRectMake(0, 0, 480, 320);
+        
+//    DebugLog(@"filter present.........");
+        
+        //   self.btop = false;
+        //  <#code#>
+    }];
+    
+    
+    
+
+//    [self.navigationController pushViewController:ViewController animated:YES];
+    
+    
+    
+//    NSDictionary * item_json = self.arr_documents[indexPath.row];
+//    
+//    NSString* download_url = item_json[@"pdf_path1"];
+//    
+//    NSString* subject = [NSString stringWithFormat:@"%@ %@, %@ %@",item_json[@"doc_number"],item_json[@"customer_name"],item_json[@"signed_date"],item_json[@"signed_time"]];
+//    
+//    
+//    [self previewPDF:pdf_url title:item_json[@"doc_number"] subject:subject];
+//    
+//   
+}
+//
+//- (NSArray *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath
+//
+//{
+//    
+//    
+//    
+//    NSDictionary * item_json = self.table_data[indexPath.row];
+//    
+//    NSString* notes = item_json[@"notes"];
+//    NSString* doc_number = item_json[@"doc_number"];
+//    
+//    UITableViewRowAction *docAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"Documents"handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) {
+//        
+//        DebugLog(@"Documents click");
+//        
+//        [tableView reloadRowsAtIndexPaths:@[indexPath]withRowAnimation:UITableViewRowAnimationMiddle];
+//        
+//    }];
+//    
+//    
+//    docAction.backgroundColor = UIColorFromRGB(0xff9933);
+//    
+//    
+//    UITableViewRowAction *noteAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDestructive title:@"   Note        " handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) {
+//        
+//        DebugLog(@"note click");
+//        
+//        
+//        [tableView reloadRowsAtIndexPaths:@[indexPath]withRowAnimation:UITableViewRowAnimationMiddle];
+//        DocnotesViewController * notesVC =[ self.storyboard instantiateViewControllerWithIdentifier:@"DocnotesViewController"];
+//        
+//        notesVC.docNumber = doc_number;
+//        notesVC.docNotes = notes;
+//        
+//        UINavigationController* navi = [[UINavigationController alloc] initWithRootViewController:notesVC] ;
+//        
+//        
+//        
+//        
+//        
+//        
+//        navi.modalPresentationStyle = UIModalTransitionStyleCrossDissolve;//有三种状态,自己看看是哪种
+//        [self presentViewController:navi animated:YES completion:^{
+//            
+//            //        navi.view.superview.bounds = CGRectMake(0, 0, 480, 320);
+//            
+//            DebugLog(@"filter present.........");
+//            
+//            //   self.btop = false;
+//            //  <#code#>
+//        }];
+//        
+//    }];
+//    
+//    noteAction.backgroundColor = UIColorFromRGB(0x336699);
+//    
+//    return @[docAction,noteAction];
+//    
+//    
+//}
+//
+//- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
+//    
+//    //    if(indexPath.row==self.content_data.count)
+//    //        return NO;
+//    //
+//    //    if(self.init_style==OL_OPEN)
+//    //        return NO;
+//    //
+//    //    AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
+//    //    //    NSString* order_status= [self.content_data[indexPath.row] valueForKey:@"order_status"];
+//    //    NSInteger statusCode = [[self.content_data[indexPath.row] valueForKey:@"orderStatus"] integerValue];
+//    //
+//    //    if(appDelegate.user_type==USER_ROLE_CUSTOMER) {
+//    //        // saved && ((type==0 && merge_permission) || type == 1 || can_cancel)
+//    //
+//    //        BOOL isSavedOrder = /*[order_status isEqualToString:@"Saved Order"]*/statusCode == 1;
+//    //        switch (self.orderType) {
+//    //            case 0:{ // Shop Order
+//    //
+//    //                if (!isSavedOrder) {
+//    //                    return NO;
+//    //                } else {
+//    //                    if ([Singleton sharedInstance].permissions_merge_order || appDelegate.can_cancel_order) {
+//    //                        return YES;
+//    //                    } else {
+//    //                        return NO;
+//    //                    }
+//    //                }
+//    //
+//    //            }
+//    //                break;
+//    //            case 1:{ // Sales Order
+//    //                if (isSavedOrder && appDelegate.can_cancel_order) {
+//    //                    return YES;
+//    //                }
+//    //                return NO;
+//    //            }
+//    //                break;
+//    //
+//    //            default:
+//    //                break;
+//    //        }
+//    //
+//    //    } else {
+//    //        return YES;
+//    //    }
+//    return YES;
+//}
+//
+//- (void)tableView:(UITableView *)tableView
+//commitEditingStyle:(UITableViewCellEditingStyle)editingStyle  forRowAtIndexPath:(NSIndexPath *)indexPath {
+//    
+//    
+//    
+//}
+//
+//- (UITableViewCellEditingStyle)tableView:(UITableView *)tv editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {
+//    
+//    return UITableViewCellEditingStyleDelete;
+//    
+//    //    if(indexPath.row==self.content_data.count)
+//    //        return UITableViewCellEditingStyleNone;
+//    //    AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
+//    //    bool offline_edit =[[self.content_data[indexPath.row] valueForKey:@"offline_edit"] boolValue];
+//    //
+//    //    //    NSString* order_status= [self.content_data[indexPath.row] valueForKey:@"order_status"];
+//    //    NSInteger statusCode = [[self.content_data[indexPath.row] valueForKey:@"orderStatus"] integerValue];
+//    //    if(/*![order_status isEqualToString:@"Saved Order"]&&! [order_status isEqualToString:@"Quote Saved"]*/statusCode != 1 && statusCode != 0)
+//    //        return UITableViewCellEditingStyleNone;
+//    //    else
+//    //    {
+//    //        if(appDelegate.offline_mode==false||offline_edit)
+//    //            return UITableViewCellEditingStyleDelete;
+//    //        else
+//    //            return UITableViewCellEditingStyleNone;
+//    //    }
+//}
+
+
+/*
+#pragma mark - Navigation
+
+// In a storyboard-based application, you will often want to do a little preparation before navigation
+- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
+    // Get the new view controller using [segue destinationViewController].
+    // Pass the selected object to the new view controller.
+}
+*/
+
+@end