Example #1
0
 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;
 }
Example #2
0
        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();
        }
Example #3
0
        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();
        }
Example #4
0
        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;
        }
Example #5
0
        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();
        }
Example #6
0
        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();
        }
Example #7
0
        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;
        }
Example #8
0
        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;
        }
Example #9
0
 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);
     }
 }
Example #10
0
        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;
        }
Example #11
0
        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;
        }
Example #12
0
        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;
        }
Example #13
0
 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);
     }
 }