public OrderHeadDialog(SessionInfo _session, IEnumerable<OrderHeadModel> model) { InitializeComponent(); _repo = new SaleOrderRepo(); _selected = new OrderHeadModel(); list = model; epiSession = _session; }
public OrderLineDialog(SessionInfo _session, IEnumerable<OrderDetailModel> model) { InitializeComponent(); _repo = new SaleOrderRepo(); _selected = new OrderDetailModel(); this.listAll = new List<OrderDetailModel>(); listAll = model; epiSession = _session; }
public WorkEntry(SessionInfo _session = null, PlanningHeadModel model = null) { InitializeComponent(); this._repoRes = new ResourceRepo(); this._repoUcd = new UserCodeRepo(); this._repo = new WorkEntryRepo(); this._reRes = new ResourceRepo(); this._repoSale = new SaleOrderRepo(); this._repoCls = new ClassMasterRepo(); this.HeaderContent = new PlanningHeadModel(); this._class = new ClassMasterModel(); //Initial Session and content this.HeaderContent = new PlanningHeadModel(); epiSession = _session; if (model != null) { this.HeaderContent = model; } }