Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
2
2018-app-inutralia
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
inutralia
2018-app-inutralia
Commits
d5f2ac47
Commit
d5f2ac47
authored
Jan 18, 2019
by
Javier Piris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Creadas vistas de history y pending questions
parent
dcbebebc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
128 additions
and
9 deletions
+128
-9
HistoryView.xaml
inutralia/inutralia/Views/Question/HistoryView.xaml
+29
-1
HistoryView.xaml.cs
inutralia/inutralia/Views/Question/HistoryView.xaml.cs
+22
-6
PendingReadView.xaml
inutralia/inutralia/Views/Question/PendingReadView.xaml
+62
-1
PendingReadView.xaml.cs
inutralia/inutralia/Views/Question/PendingReadView.xaml.cs
+14
-1
inutralia.csproj
inutralia/inutralia/inutralia.csproj
+1
-0
No files found.
inutralia/inutralia/Views/Question/HistoryView.xaml
View file @
d5f2ac47
...
@@ -9,8 +9,33 @@
...
@@ -9,8 +9,33 @@
BackgroundColor="{DynamicResource BasePageColor}">
BackgroundColor="{DynamicResource BasePageColor}">
<ContentPage.Content>
<ContentPage.Content>
<StackLayout Orientation="Vertical" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
<Frame Margin="0,0,0,8" Padding="14,14,14,14" BackgroundColor="{DynamicResource AccentColor}">
<StackLayout Orientation="Horizontal" VerticalOptions="FillAndExpand" HorizontalOptions="CenterAndExpand">
<Label Text="Listado de histórico de consultas" HorizontalOptions="FillAndExpand" VerticalOptions="Center" TextColor="White">
<Label.FontSize>
<OnIdiom x:TypeArguments="x:Double">
<OnIdiom.Phone>
<OnPlatform x:TypeArguments="x:Double"
iOS="20"
Android="18"/>
</OnIdiom.Phone>
<OnIdiom.Tablet>
<OnPlatform x:TypeArguments="x:Double"
iOS="40"
Android="30"/>
</OnIdiom.Tablet>
</OnIdiom>
</Label.FontSize>
</Label>
</StackLayout>
</Frame>
<StackLayout VerticalOptions="FillAndExpand" Margin="15,15" Padding="0,15,0,15">
<ListView x:Name="ListView"
<ListView x:Name="ListView"
ItemsSource="{Binding
History
List}"
ItemsSource="{Binding
Question
List}"
ItemTapped="ItemTapped"
ItemTapped="ItemTapped"
IsPullToRefreshEnabled="True"
IsPullToRefreshEnabled="True"
IsRefreshing="{Binding Busy, Mode=TwoWay}"
IsRefreshing="{Binding Busy, Mode=TwoWay}"
...
@@ -37,5 +62,7 @@
...
@@ -37,5 +62,7 @@
</DataTemplate>
</DataTemplate>
</ListView.ItemTemplate>
</ListView.ItemTemplate>
</ListView>
</ListView>
</StackLayout>
</StackLayout>
</ContentPage.Content>
</ContentPage.Content>
</ContentPage>
</ContentPage>
\ No newline at end of file
inutralia/inutralia/Views/Question/HistoryView.xaml.cs
View file @
d5f2ac47
using
inutralia.ViewModels
;
using
inutralia.Models
;
using
inutralia.ViewModels
;
using
Xamarin.Forms
;
using
Xamarin.Forms
;
using
Xamarin.Forms.Xaml
;
using
Xamarin.Forms.Xaml
;
...
@@ -15,15 +16,29 @@ namespace inutralia.Views.Question
...
@@ -15,15 +16,29 @@ namespace inutralia.Views.Question
BindingContext
=
new
QuestionListViewModel
();
BindingContext
=
new
QuestionListViewModel
();
}
}
protected
override
async
void
OnAppearing
(
)
protected
async
void
ItemTapped
(
object
sender
,
ItemTappedEventArgs
e
)
{
{
base
.
OnAppearing
();
var
respon
=
e
.
Item
as
QuestionSpecialist
;
await
ViewModel
.
ExecuteLoadQuestionListCommand
();
if
(
respon
.
StatusImg
==
"Respondida"
)
{
await
DisplayAlert
(
"ERROR"
,
"La pregunta ya está respondida"
,
"Entendido"
);
}
}
else
void
ItemTapped
(
object
sender
,
ItemTappedEventArgs
e
)
{
await
Navigation
.
PushAsync
(
new
PendingReadView
()
{
{
BindingContext
=
new
PendingReadViewModel
((
QuestionSpecialist
)
e
.
Item
)
}
);
((
ListView
)
sender
).
SelectedItem
=
null
;
((
ListView
)
sender
).
SelectedItem
=
null
;
}
}
}
}
protected
override
async
void
OnAppearing
()
{
base
.
OnAppearing
();
await
ViewModel
.
ExecuteLoadQuestionListCommand
();
}
}
}
}
\ No newline at end of file
inutralia/inutralia/Views/Question/PendingReadView.xaml
View file @
d5f2ac47
...
@@ -2,7 +2,67 @@
...
@@ -2,7 +2,67 @@
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="inutralia.Views.Question.PendingReadView"
x:Class="inutralia.Views.Question.PendingReadView"
xmlns:artina="clr-namespace:UXDivers.Artina.Shared;assembly=UXDivers.Artina.Shared"
Title="Pendientes de leer"
Title="Pendientes de leer"
Icon="pendiente">
Icon="pendiente"
BackgroundColor="{DynamicResource BasePageColor}">
<ContentPage.Content>
<StackLayout Orientation="Vertical" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
<Frame Margin="0,0,0,8" Padding="14,14,14,14" BackgroundColor="{DynamicResource AccentColor}">
<StackLayout Orientation="Horizontal" VerticalOptions="FillAndExpand" HorizontalOptions="CenterAndExpand">
<Label Text="Consultas pendientes de contestar" HorizontalOptions="FillAndExpand" VerticalOptions="Center" TextColor="White">
<Label.FontSize>
<OnIdiom x:TypeArguments="x:Double">
<OnIdiom.Phone>
<OnPlatform x:TypeArguments="x:Double"
iOS="20"
Android="18"/>
</OnIdiom.Phone>
<OnIdiom.Tablet>
<OnPlatform x:TypeArguments="x:Double"
iOS="40"
Android="30"/>
</OnIdiom.Tablet>
</OnIdiom>
</Label.FontSize>
</Label>
</StackLayout>
</Frame>
<StackLayout VerticalOptions="FillAndExpand" Margin="15,15" Padding="0,15,0,15">
<ListView x:Name="ListView"
ItemsSource="{Binding }"
ItemTapped="ItemTapped"
IsPullToRefreshEnabled="True"
IsRefreshing="{Binding Busy, Mode=TwoWay}"
BackgroundColor="Transparent"
Footer=""
CachingStrategy="RecycleElement"
HasUnevenRows="False"
Margin="10,10">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid Margin="0,10,0,10" VerticalOptions="CenterAndExpand">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackLayout>
<Label Text="{Binding Text}" FontSize="Medium"/>
</StackLayout>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</StackLayout>
</ContentPage.Content>
</ContentPage>
</ContentPage>
\ No newline at end of file
inutralia/inutralia/Views/Question/PendingReadView.xaml.cs
View file @
d5f2ac47
using
Xamarin.Forms
;
using
inutralia.Models
;
using
inutralia.ViewModels
;
using
Xamarin.Forms
;
using
Xamarin.Forms.Xaml
;
using
Xamarin.Forms.Xaml
;
namespace
inutralia.Views.Question
namespace
inutralia.Views.Question
...
@@ -6,9 +8,19 @@ namespace inutralia.Views.Question
...
@@ -6,9 +8,19 @@ namespace inutralia.Views.Question
[
XamlCompilation
(
XamlCompilationOptions
.
Compile
)]
[
XamlCompilation
(
XamlCompilationOptions
.
Compile
)]
public
partial
class
PendingReadView
:
ContentPage
public
partial
class
PendingReadView
:
ContentPage
{
{
protected
PendingReadViewModel
ViewModel
=>
BindingContext
as
PendingReadViewModel
;
public
QuestionSpecialist
QuestionSpecialist
{
private
set
;
get
;
}
public
PendingReadView
()
public
PendingReadView
()
{
{
InitializeComponent
();
InitializeComponent
();
BindingContext
=
new
PendingReadViewModel
();
}
protected
void
ItemTapped
(
object
sender
,
ItemTappedEventArgs
e
)
{
((
ListView
)
sender
).
SelectedItem
=
null
;
}
}
}
}
}
}
\ No newline at end of file
inutralia/inutralia/inutralia.csproj
View file @
d5f2ac47
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
</Compile>
</Compile>
<Compile Include="ViewModels\Menus\CustomMenuViewModel.cs" />
<Compile Include="ViewModels\Menus\CustomMenuViewModel.cs" />
<Compile Include="ViewModels\Menus\RecipeListViewModel.cs" />
<Compile Include="ViewModels\Menus\RecipeListViewModel.cs" />
<Compile Include="ViewModels\QuestionsSpecialist\PendingReadViewModel.cs" />
<Compile Include="ViewModels\QuestionsSpecialist\QuestionListViewModel.cs" />
<Compile Include="ViewModels\QuestionsSpecialist\QuestionListViewModel.cs" />
<Compile Include="ViewModels\Recipes\RecipeListOptionsViewModel.cs" />
<Compile Include="ViewModels\Recipes\RecipeListOptionsViewModel.cs" />
<Compile Include="ViewModels\Menus\MenuBaseViewModel.cs" />
<Compile Include="ViewModels\Menus\MenuBaseViewModel.cs" />
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment