WIP estimate
This commit is contained in:
parent
4d7de134ce
commit
d67c932af2
43 changed files with 816 additions and 94 deletions
|
|
@ -5,7 +5,7 @@ using Yavsc.Models.Identity;
|
|||
|
||||
namespace BookAStar.Model.Auth.Account
|
||||
{
|
||||
public class GoogleCloudMobileDeclaration : IGoogleCloudMobileDeclaration
|
||||
public class GoogleCloudMobileDeclaration
|
||||
{
|
||||
public string GCMRegistrationId { get; set; }
|
||||
public string DeviceId { get; set; }
|
||||
|
|
|
|||
16
BookAStar/BookAStar/Model/BookQueryData.cs
Normal file
16
BookAStar/BookAStar/Model/BookQueryData.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using BookAStar.Model.Social;
|
||||
using System;
|
||||
|
||||
namespace BookAStar.Model
|
||||
{
|
||||
public class BookQueryData
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public string Description { set; get; }
|
||||
public string Comment { get; set; }
|
||||
public long CommandId { get; set; }
|
||||
public DateTime StartDate { get; set; }
|
||||
public DateTime EndDate { get; set; }
|
||||
public Location Address { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -1,24 +1,30 @@
|
|||
using BookAStar.Model.Social;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace BookAStar
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static class Manager
|
||||
{
|
||||
static Manager ()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static ICommand RefreshBookQueries;
|
||||
// TODO WIP TEST rop this
|
||||
private static Location[] _places = new Location[] {
|
||||
new Location(48.8626458, 2.2065559, "2 bd Aristide Briand - Suresnes" ),
|
||||
new Location(48.8632757, 2.2023099, "Théatre Jean Villard - Suresnes" ),
|
||||
new Location(48.8647120, 2.2054588, "Place de la Paix - Suresnes" ),
|
||||
new Location(48.8640133, 2.2056573, "Restaurant" ),
|
||||
new Location(48.8634839, 2.2064137, "Square" ),
|
||||
new Location(48.8653649, 2.2014945, "Stade de foot" ),
|
||||
private static Location[] _places = new Location[] {
|
||||
new Location { Latitude = 48.8626458, Longitude = 2.2065559, Address = "2 bd Aristide Briand - Suresnes" },
|
||||
new Location{ Latitude =48.8632757, Longitude =2.2023099, Address ="Théatre Jean Villard - Suresnes" },
|
||||
new Location{ Latitude =48.8647120, Longitude =2.2054588,Address = "Place de la Paix - Suresnes" },
|
||||
new Location{ Latitude =48.8640133, Longitude =2.2056573, Address ="Restaurant" },
|
||||
new Location{ Latitude =48.8634839, Longitude =2.2064137,Address = "Square" },
|
||||
new Location{ Latitude =48.8653649, Longitude =2.2014945,Address = "Stade de foot" },
|
||||
};
|
||||
// TODO WIP TEST rop this
|
||||
private static ObservableCollection<LocalizedEvent> _your_events = new ObservableCollection<LocalizedEvent> {
|
||||
|
|
|
|||
26
BookAStar/BookAStar/Model/Market/BaseProduct.cs
Normal file
26
BookAStar/BookAStar/Model/Market/BaseProduct.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
|
||||
namespace BookAStar.Model.Workflow
|
||||
{
|
||||
public partial class BaseProduct
|
||||
{
|
||||
/// <summary>
|
||||
/// An unique product identifier.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public long Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// A contractual description for this product.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Controls wether this product or service
|
||||
/// may be offered to clients, or simply
|
||||
/// are internal workflow entry point.
|
||||
/// </summary>
|
||||
/// <returns>true when this product belongs to the public catalog.</returns>
|
||||
public bool Public { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
|
||||
|
||||
using System;
|
||||
using Android.Runtime;
|
||||
using BookAStar.Model.Workflow.Messaging;
|
||||
|
||||
namespace BookAStar.Model.Social
|
||||
|
|
@ -24,16 +26,11 @@ namespace BookAStar.Model.Social
|
|||
|
||||
}
|
||||
|
||||
|
||||
public class Location : Position {
|
||||
|
||||
public long Id { get; set; }
|
||||
public string Address { get; set; }
|
||||
public Location(double latitude, double longitude, string address)
|
||||
{
|
||||
this.Latitude = latitude;
|
||||
this.Longitude = longitude;
|
||||
this.Address = address;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
13
BookAStar/BookAStar/Model/Workflow/CommandLine.cs
Normal file
13
BookAStar/BookAStar/Model/Workflow/CommandLine.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
namespace BookAStar.Model.Workflow
|
||||
{
|
||||
|
||||
public class CommandLine
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string Comment { get; set; }
|
||||
public BaseProduct Article { get; set; }
|
||||
public int Count { get; set; }
|
||||
public decimal UnitaryCost { get; set; }
|
||||
}
|
||||
}
|
||||
58
BookAStar/BookAStar/Model/Workflow/Estimate.cs
Normal file
58
BookAStar/BookAStar/Model/Workflow/Estimate.cs
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BookAStar.Model.Workflow
|
||||
{
|
||||
public partial class Estimate
|
||||
{
|
||||
public long Id { get; set; }
|
||||
|
||||
public long? CommandId { get; set; }
|
||||
/// <summary>
|
||||
/// A command is not required to create
|
||||
/// an estimate,
|
||||
/// it will result in a new estimate template
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public BookQueryPage Query { get; set; }
|
||||
public string Description { get; set; }
|
||||
public int? Status { get; set; }
|
||||
public string Title { get; set; }
|
||||
public List<CommandLine> Bill { get; set; }
|
||||
/// <summary>
|
||||
/// List of attached graphic files
|
||||
/// to this estimate, as relative pathes to
|
||||
/// the command performer's root path.
|
||||
/// In db, they are separated by <c>:</c>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public List<string> AttachedGraphicList { get; private set; }
|
||||
|
||||
public string AttachedGraphicsString
|
||||
{
|
||||
get { return string.Join(":", AttachedGraphicList); }
|
||||
set { AttachedGraphicList = value.Split(':').ToList(); }
|
||||
}
|
||||
/// <summary>
|
||||
/// List of attached files
|
||||
/// to this estimate, as relative pathes to
|
||||
/// the command performer's root path.
|
||||
/// In db, they are separated by <c>:</c>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public List<string> AttachedFiles { get; set; }
|
||||
public string AttachedFilesString
|
||||
{
|
||||
get { return string.Join(":", AttachedFiles); }
|
||||
set { AttachedFiles = value.Split(':').ToList(); }
|
||||
}
|
||||
|
||||
public string OwnerId { get; set; }
|
||||
private RemoteEntity<BookQueryData, long> BookQueries;
|
||||
|
||||
public string ClientId { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue