public MemoDetail(Model.Internal.Planning planning) { InitializeComponent(); this._uow = new UnitOfWork(); this._memo = new PlanningMemo(this._uow); this._planning = planning.Id; this.dteMemoDate.DateTime = DateTime.Today; }
public Replacement(Model.Internal.Planning planning) { InitializeComponent(); this._uow = new UnitOfWork(); this._planning = new XPQuery<Model.Internal.Planning>(this._uow).FirstOrDefault(q => q.Id == planning.Id); ; FillCboReplacements(); }
public Replacement(Model.Internal.Planning planning) { InitializeComponent(); this._uow = new UnitOfWork(); this._planning = new XPQuery <Model.Internal.Planning>(this._uow).FirstOrDefault(q => q.Id == planning.Id);; FillCboReplacements(); }
public AbsentDetail(Model.Internal.Planning planning) { InitializeComponent(); this._uow = new UnitOfWork(); this._absence = new Absence(this._uow); this._planning = planning; this._planningId = this._planning.Id; FillCboDrivers(); this.dteDate.DateTime = DateTime.Today.Date; }
public JobDetail(Model.Internal.Planning planning) { InitializeComponent(); this._uow = new UnitOfWork(); this._job = new Job(this._uow); this._planning = planning; this._planningId = this._planning.Id; this.dteJobDate.DateTime = DateTime.Now; FillComboboxes(); }
public AbsentDetail(Model.Internal.Planning planning, Absence absence) { InitializeComponent(); this._uow = new UnitOfWork(); this._absence = new XPQuery<Absence>(this._uow).FirstOrDefault(q => q.Id == absence.Id); this._planning = planning; this._planningId = this._planning.Id; FillDetails(); FillCboDrivers(); this.dteDate.DateTime = DateTime.Today.Date; }
private void GetPlanning() { if ((new TIS.Model.Internal.Planning(this.Uow).GetPlanning(((ComboBoxItem)this.cboDispatcher.SelectedItem).Value.UsrID)) == null) { this.Uow = new UnitOfWork(); this._planning = new Model.Internal.Planning(this.Uow); this._planning.Dispatcher = ((ComboBoxItem)this.cboDispatcher.SelectedItem).Value.UsrID; this.Uow.CommitChanges(); } else { this._planning = new TIS.Model.Internal.Planning(this.Uow).GetPlanning(((ComboBoxItem)this.cboDispatcher.SelectedItem).Value.UsrID); } }
public JobDetail(Model.Internal.Planning planning, Job job) { InitializeComponent(); this._uow = new UnitOfWork(); this._job = new XPQuery <Job>(this._uow).FirstOrDefault(q => q.Id == job.Id); this._planningId = this._job.Planning; this._planning = planning; FillComboboxes(); FillDetails(); this.dteJobDate.DateTime = DateTime.Now; }
public JobDetail(Model.Internal.Planning planning, Job job) { InitializeComponent(); this._uow = new UnitOfWork(); this._job = new XPQuery<Job>(this._uow).FirstOrDefault(q => q.Id == job.Id); this._planningId = this._job.Planning; this._planning = planning; FillComboboxes(); FillDetails(); this.dteJobDate.DateTime = DateTime.Now; }
public AbsentDetail(Model.Internal.Planning planning, Absence absence) { InitializeComponent(); this._uow = new UnitOfWork(); this._absence = new XPQuery <Absence>(this._uow).FirstOrDefault(q => q.Id == absence.Id); this._planning = planning; this._planningId = this._planning.Id; FillDetails(); FillCboDrivers(); this.dteDate.DateTime = DateTime.Today.Date; }