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.
 
 

115 lines
2.6 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;
public NameIDPair Supplier
{
get { return mSupplier; }
set
{
mSupplier = value;
RaisePropertyChanged("Supplier");
}
}
private NameIDPair mStore;
public NameIDPair Store
{
get { return mStore; }
set
{
mStore = value;
RaisePropertyChanged("Store");
}
}
private NameIDPair mInStore;
public NameIDPair InStore
{
get { return mInStore; }
set
{
mInStore = value;
RaisePropertyChanged("InStore");
RaisePropertyChanged("CanInStore");
}
}
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; } }
public bool CanInStore { get { return InStore != null && mDmo != null; } }
}
}