MainPage.xaml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mobile:MobilePage
  3. xmlns="http://xamarin.com/schemas/2014/forms"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  5. xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
  6. xmlns:local="clr-namespace:PRS.Mobile;assembly=PRS.Mobile"
  7. x:Class="PRS.Mobile.MainPage"
  8. BackButtonEnabled="False">
  9. <mobile:MobilePage.PrimaryMenu>
  10. <mobile:MobileMenuButton
  11. x:Name="_menu"
  12. Image="menu"
  13. Clicked="SettingsTapped"
  14. ShowImages="True"
  15. ImagePosition="Right"/>
  16. </mobile:MobilePage.PrimaryMenu>
  17. <mobile:MobilePage.PageContent>
  18. <Grid x:Name="homeScreenGrid" RowSpacing="0" ColumnSpacing="0" Margin="5">
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="200" x:Name="ClockOnRow"/>
  21. <RowDefinition Height="45" x:Name="JobRow"/>
  22. <RowDefinition Height="45" x:Name="TaskRow"/>
  23. <RowDefinition Height="*"/>
  24. </Grid.RowDefinitions>
  25. <Grid.ColumnDefinitions>
  26. <ColumnDefinition Width="*"/>
  27. <ColumnDefinition Width="100"/>
  28. </Grid.ColumnDefinitions>
  29. <mobile:MobileCard
  30. x:Name="SplashCard"
  31. Grid.Row="0"
  32. Grid.ColumnSpan="2"
  33. Grid.RowSpan="3"
  34. BackgroundColor="White"
  35. IsVisible="False"
  36. Margin="0,0,0,5"
  37. Padding="20">
  38. <Image
  39. x:Name="_splash"
  40. Aspect="AspectFit" />
  41. </mobile:MobileCard>
  42. <mobile:MobileCard
  43. x:Name="ClockOnButton"
  44. Grid.Row="0"
  45. Grid.ColumnSpan="2"
  46. BackgroundColor="Gainsboro"
  47. IsClickable="False"
  48. Clicked="ClockOnOff_Clicked"
  49. IsEnabled="False"
  50. IsVisible="False"
  51. Margin="0,0,0,5">
  52. <StackLayout Orientation="Vertical" VerticalOptions="Center" HorizontalOptions="Center">
  53. <Label
  54. x:Name="ClockOnOffLabel"
  55. Text="PLEASE WAIT"
  56. FontSize="Large"
  57. FontAttributes="Bold"
  58. BackgroundColor="Transparent"
  59. HorizontalTextAlignment="Center"
  60. HorizontalOptions="Fill"
  61. TextColor="Black"/>
  62. <Label
  63. x:Name="CurrentLocation"
  64. Text="Initializing.."
  65. FontSize="Medium"
  66. FontAttributes="Bold"
  67. BackgroundColor="Transparent"
  68. HorizontalTextAlignment="Center"
  69. HorizontalOptions="Fill"
  70. TextColor="Black"/>
  71. </StackLayout>
  72. </mobile:MobileCard>
  73. <mobile:MobileButton
  74. Grid.Row="1"
  75. Grid.Column="0"
  76. Clicked="JobBtn_Tapped"
  77. x:Name="jobBtn"
  78. IsEnabled="False"
  79. IsVisible="False"
  80. Text="Select Job"
  81. Margin="0,0,0,5"
  82. HorizontalOptions="FillAndExpand"
  83. />
  84. <mobile:MobileButton
  85. Grid.Row="1"
  86. Grid.Column="1"
  87. Clicked="AddNote_Tapped"
  88. x:Name="addNoteBtn"
  89. IsEnabled="False"
  90. IsVisible="False"
  91. Text="Add note"
  92. Margin="5,0,0,5"
  93. HorizontalOptions="FillAndExpand"
  94. />
  95. <mobile:MobileButton
  96. Grid.Row="2"
  97. Grid.Column="0"
  98. Grid.ColumnSpan="2"
  99. Clicked="TaskBtn_Tapped"
  100. x:Name="taskBtn"
  101. IsEnabled="False"
  102. IsVisible="False"
  103. Text="Select Task"
  104. HorizontalOptions="FillAndExpand"
  105. VerticalOptions="FillAndExpand"
  106. Margin="0,0,0,5"/>
  107. <mobile:MobileToolGrid
  108. Grid.Row="3"
  109. Grid.Column="0"
  110. Grid.ColumnSpan="2"
  111. x:Name="Tools"
  112. Margin="0"
  113. BorderColor="Gray">
  114. <mobile:MobileToolGrid.Items
  115. >
  116. <mobile:MobileToolItem
  117. x:Name="Assignments"
  118. Text="Assignments"
  119. Image="schedule"
  120. Clicked="AssignmentListTapped"
  121. IsEnabled="False"
  122. IsVisible="False"/>
  123. <mobile:MobileToolItem
  124. x:Name="Deliveries"
  125. Text="Deliveries"
  126. Image="delivery"
  127. Clicked="DeliveryModuleTapped"
  128. IsEnabled="False"
  129. IsVisible="False"/>
  130. <mobile:MobileToolItem
  131. x:Name="Equipment"
  132. Text="Equipment"
  133. Image="drill"
  134. Clicked="EquipmentModuleTapped"
  135. IsEnabled="False"
  136. IsVisible="False"/>
  137. <mobile:MobileToolItem
  138. x:Name="Forms"
  139. Text="Forms"
  140. Image="digitalform"
  141. Clicked="KanbanFormsTapped"
  142. IsEnabled="False"
  143. IsVisible="False"/>
  144. <mobile:MobileToolItem
  145. x:Name="InOut"
  146. Text="In/Out"
  147. Image="clock"
  148. Clicked="StaffStatusPageTapped"
  149. IsEnabled="False"
  150. IsVisible="False"/>
  151. <mobile:MobileToolItem
  152. x:Name="Manufacturing"
  153. Text="Factory"
  154. Image="factory"
  155. Clicked="ManufacturingListTapped"
  156. IsEnabled="False"
  157. IsVisible="False"/>
  158. <mobile:MobileToolItem
  159. x:Name="Meetings"
  160. Text="Meetings"
  161. Image="meeting"
  162. Clicked="MeetingsModuleTapped"
  163. IsEnabled="False"
  164. IsVisible="False"/>
  165. <mobile:MobileToolItem
  166. x:Name="MyHR"
  167. Text="My HR"
  168. Image="person"
  169. Clicked="HumanResourcesModuleTapped"
  170. IsEnabled="False"
  171. IsVisible="True"/>
  172. <mobile:MobileToolItem
  173. x:Name="Notifications"
  174. Text="Notifications"
  175. Image="notification"
  176. Clicked="NotificationListTapped"
  177. IsEnabled="True"
  178. IsVisible="True"/>
  179. <mobile:MobileToolItem
  180. x:Name="Products"
  181. Text="Products"
  182. Image="stock"
  183. Clicked="ProductListTapped"
  184. IsEnabled="False"
  185. IsVisible="False"/>
  186. <mobile:MobileToolItem
  187. x:Name="PurchaseOrders"
  188. Text="Orders"
  189. Image="shoppingcart"
  190. Clicked="PurchaseOrderListTapped"
  191. IsEnabled="False"
  192. IsVisible="False"/>
  193. <mobile:MobileToolItem
  194. x:Name="Scans"
  195. Text="Doc Scanner"
  196. Image="camera"
  197. Clicked="ScanModuleTapped"
  198. IsEnabled="False"
  199. IsVisible="False"/>
  200. <mobile:MobileToolItem
  201. x:Name="Site"
  202. Text="Site"
  203. Image="construction"
  204. Clicked="SiteModuleTapped"
  205. IsEnabled="False"
  206. IsVisible="False"/>
  207. <mobile:MobileToolItem
  208. x:Name="MyTasks"
  209. Text="My Tasks"
  210. Image="task"
  211. Clicked="KanbanListTapped"
  212. IsEnabled="False"
  213. IsVisible="False"/>
  214. <mobile:MobileToolItem
  215. x:Name="Warehousing"
  216. Text="Warehouse"
  217. Image="warehouse"
  218. Clicked="WarehouseModuleTapped"
  219. IsEnabled="False"
  220. IsVisible="False"/>
  221. <mobile:MobileToolItem
  222. x:Name="Update"
  223. Text="Update App"
  224. Image="version"
  225. IsVisible="False"
  226. Clicked="UpdatePageTapped"
  227. IsEnabled="False"/>
  228. </mobile:MobileToolGrid.Items>
  229. </mobile:MobileToolGrid>
  230. </Grid>
  231. </mobile:MobilePage.PageContent>
  232. </mobile:MobilePage>