implemente un id commande de la vue sur ligne de commande
This commit is contained in:
parent
6e0960d1b0
commit
b0a1f520c4
1 changed files with 34 additions and 5 deletions
|
|
@ -1,15 +1,16 @@
|
||||||
using ZicMoove.Attributes;
|
|
||||||
using ZicMoove.Interfaces;
|
|
||||||
using ZicMoove.Model.Workflow;
|
|
||||||
using ZicMoove.ViewModels.Validation;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
using YavscLib.Billing;
|
||||||
|
|
||||||
namespace ZicMoove.ViewModels.EstimateAndBilling
|
namespace ZicMoove.ViewModels.EstimateAndBilling
|
||||||
{
|
{
|
||||||
public class BillingLineViewModel : EditingViewModel<BillingLine>, IBillingLine
|
using Attributes;
|
||||||
|
using Model.Workflow;
|
||||||
|
using Validation;
|
||||||
|
public class BillingLineViewModel : EditingViewModel<BillingLine>, ICommandLine
|
||||||
{
|
{
|
||||||
public ICommand RemoveCommand { get; set; }
|
public ICommand RemoveCommand { get; set; }
|
||||||
public ICommand ValidateCommand { set; get; }
|
public ICommand ValidateCommand { set; get; }
|
||||||
|
|
@ -67,6 +68,34 @@ namespace ZicMoove.ViewModels.EstimateAndBilling
|
||||||
Data.Count = count;
|
Data.Count = count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private long estimateId;
|
||||||
|
public long EstimateId
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return estimateId;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty<long>(ref estimateId, value);
|
||||||
|
Data.EstimateId = estimateId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private long id;
|
||||||
|
public long Id
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty<long>(ref id, value);
|
||||||
|
Data.Id = id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private string description;
|
private string description;
|
||||||
public string Description
|
public string Description
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue