You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

86 lines
2.1 KiB

using B3DealerClient.BO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace B3DealerClient.Windows.FreshInStoreWindow_
{
class FreshInStoreContext : NotificationObject
{
private DateTime? mDate;
public DateTime? Date
{
get { return mDate; }
set
{
mDate = value;
RaisePropertyChanged("Date");
}
}
private DateTime? mArrivedDate = DateTime.Today;
public DateTime? ArrivedDate
{
get { return mArrivedDate; }
set
{
mArrivedDate = value;
RaisePropertyChanged("ArrivedDate");
}
}
private NameIDPair mSupplier = new NameIDPair();
public NameIDPair Supplier { get { return mSupplier; } }
private NameIDPair mStore = new NameIDPair();
public NameIDPair Store { get { return mStore; } }
private decimal? mPics;
public decimal? Pics
{
get { return mPics; }
set
{
mPics = value;
RaisePropertyChanged("Pics");
RaisePropertyChanged("CanSave");
}
}
private decimal? mWeight;
public decimal? Weight
{
get { return mWeight; }
set
{
mWeight = value;
RaisePropertyChanged("Weight");
RaisePropertyChanged("CanSave");
}
}
private FreshInStore mDmo = null;
public FreshInStore Dmo { get { return mDmo; } set { mDmo = value; RaisePropertyChanged("Dmo"); } }
private FreshInStore_Detail mDetail = null;
public FreshInStore_Detail Detail { get { return mDetail; } set { mDetail = value; RaisePropertyChanged("Detail"); RaisePropertyChanged("CanSave"); } }
private List<FreshInStore> dmoList = new List<FreshInStore>();
public List<FreshInStore> DmoList
{
get { return dmoList; }
set
{
dmoList = value;
this.RaisePropertyChanged("DmoList");
}
}
public bool CanSave { get { return Pics > 0 && mDetail != null; } }
}
}