MainPage.xaml 10 KB

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