| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- <?xml version="1.0" encoding="utf-8"?>
- <local:RequisitionEditView xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:local="clr-namespace:PRS.Mobile;assembly=PRS.Mobile"
- xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
- xmlns:views="http://xamarin.com/schemas/2020/toolkit"
- x:Class="PRS.Mobile.RequisitionEditDetailsView"
- x:DataType="local:RequisitionEditViewModel">
- <local:RequisitionEditView.Resources>
- <mobile:BooleanToColorConverter x:Key="EditorBackgroundConverter" TrueColor="LightYellow" FalseColor="Silver"/>
- <mobile:BooleanToColorConverter x:Key="EditorForegroundConverter" TrueColor="Black" FalseColor="Gray"/>
- <mobile:BooleanToBooleanConverter x:Key="HideElementConverter" Invert="True"/>
- <mobile:StringWithDefaultValueConverter x:Key="JobNameConverter" Default="(Select Job)" />
- <mobile:StringWithDefaultValueConverter x:Key="RequestedByConverter" Default="(Select Employee)" />
- <mobile:StringWithDefaultValueConverter x:Key="DestinationConverter" Default="(Select Method)" />
-
-
- </local:RequisitionEditView.Resources>
- <local:RequisitionEditView.Content>
- <views:DockLayout LastChildFill="True">
- <Label
- views:DockLayout.Dock="Top"
- Text="Subject"
- VerticalOptions="Fill"
- VerticalTextAlignment="Center"
- FontSize="Small"
- TextColor="Black"/>
-
- <Frame
- views:DockLayout.Dock="Top"
- HasShadow="False"
- CornerRadius="5"
- Padding="0"
- Margin="0,5,0,0"
- HeightRequest="45"
- BorderColor="Gray"
- BackgroundColor="{Binding IsMine, Converter={StaticResource EditorBackgroundConverter}}">
- <mobile:MobileEntry
- x:Name="Subject"
- Margin="5,0"
- Text="{Binding Item.Title}"
- TextChanged="Subject_OnTextChanged"
- Focused="Subject_OnFocused"
- Unfocused="Subject_OnUnfocused"
- BackgroundColor="Transparent"
- TextColor="{Binding IsMine, Converter={StaticResource EditorForegroundConverter}}"
- IsEnabled="{Binding IsMine}"/>
- </Frame>
-
- <Label
- views:DockLayout.Dock="Top"
- Text="Request"
- FontSize="Small"
- TextColor="Black"
- Margin="0,5,0,0"/>
-
- <mobile:MobileButton
- views:DockLayout.Dock="Bottom"
- Text="{Binding Item.DestinationDescription, Converter={StaticResource DestinationConverter}}"
- Clicked="Destination_Clicked"
- Margin="0,5,0,0"
- HeightRequest="40"
- IsEnabled="{Binding IsMine}"
- IsVisible="{Binding HideElements, Converter={StaticResource HideElementConverter}}"/>
-
- <Label
- views:DockLayout.Dock="Bottom"
- Text="Delivery Method"
- VerticalOptions="Center"
- HorizontalOptions="Start"
- FontSize="Small"
- TextColor="Black"
- Margin="0,5,0,0"
- IsVisible="{Binding HideElements, Converter={StaticResource HideElementConverter}}"/>
-
- <mobile:MobileDateButton
- views:DockLayout.Dock="Bottom"
- Date="{Binding Item.Due, Mode=TwoWay}"
- Changed="Due_OnChanged"
- Margin="0,5,0,0"
- HeightRequest="40"
- IsEnabled="{Binding IsMine}"
- IsVisible="{Binding HideElements, Converter={StaticResource HideElementConverter}}"/>
-
- <Label
- views:DockLayout.Dock="Bottom"
- Text="Items Required by"
- VerticalOptions="Center"
- HorizontalOptions="Start"
- FontSize="Small"
- TextColor="Black"
- Margin="0,5,0,0"
- IsVisible="{Binding HideElements, Converter={StaticResource HideElementConverter}}" />
-
- <mobile:MobileButton
- views:DockLayout.Dock="Bottom"
- Text="{Binding Item.RequestedByName, Converter={StaticResource RequestedByConverter}}"
- Clicked="RequestedBy_Clicked"
- Margin="0,5,0,0"
- IsEnabled="False"
- IsVisible="{Binding HideElements, Converter={StaticResource HideElementConverter}}"/>
-
- <Label
- views:DockLayout.Dock="Bottom"
- Text="Requested By"
- VerticalOptions="Center"
- HorizontalOptions="Start"
- FontSize="Small"
- TextColor="Black"
- IsEnabled = "False"
- Margin="0,5,0,0"
- IsVisible="{Binding HideElements, Converter={StaticResource HideElementConverter}}" />
-
- <mobile:MobileButton
- views:DockLayout.Dock="Bottom"
- x:Name="Job"
- Text="{Binding Item.JobDisplay, Converter={StaticResource JobNameConverter}}"
- Clicked="SelectJob_Clicked"
- Margin="0,5,0,0"
- IsEnabled="{Binding IsMine}"
- IsVisible="{Binding HideElements, Converter={StaticResource HideElementConverter}}"/>
-
- <Label
- views:DockLayout.Dock="Bottom"
- Text="Job"
- VerticalOptions="Fill"
- VerticalTextAlignment="Center"
- FontSize="Small"
- TextColor="Black"
- Margin="0,5,0,0"
- IsVisible="{Binding HideElements, Converter={StaticResource HideElementConverter}}"/>
-
- <Frame
- views:DockLayout.Dock="Top"
- CornerRadius="5"
- BorderColor="Gray"
- BackgroundColor="{Binding IsMine, Converter={StaticResource EditorBackgroundConverter}}"
- Padding="0"
- HasShadow="False"
- Margin="0,5,0,0"
- VerticalOptions="FillAndExpand"
- HeightRequest="3000">
- <mobile:MobileEditor
- x:Name="Request"
- Text="{Binding Item.Request, Mode=TwoWay}"
- TextChanged="Notes_OnTextChanged"
- BackgroundColor="Transparent"
- TextColor="{Binding IsMine, Converter={StaticResource EditorForegroundConverter}}"
- Margin="5,0"
- VerticalOptions="FillAndExpand"
- IsEnabled="{Binding IsMine}"
- Focused="Request_OnFocused"
- Unfocused="Request_OnUnfocused"/>
- </Frame>
-
- </views:DockLayout>
- </local:RequisitionEditView.Content>
- </local:RequisitionEditView>
|