Example #1
0
        public MaterialCateogry(PROF_IT.Common.Enumerations.TypeForm typeForm, MaterialTypeObject materialType)
        {
            try
            {
                InitializeComponent();

                MaterialTypeMember = materialType;
                _typeForm = typeForm;
                if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
                {
                    throw new NotImplementedException();
                }
                else
                {
                    Initialize();
                    InitializePropertyFormMaterialType();
                    SetPermissions();
                }
            }
            catch (System.Exception exception1)
            {
                System.Exception innerException = exception1;
                throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }
Example #2
0
        public Material(PROF_IT.Common.Enumerations.TypeForm typeForm, VehicleObject vehicle)
        {
            try
            {
                InitializeComponent();

                _typeForm = typeForm;
                _material = new MaterialObject();
                if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
                {
                    Initialize();
                    louVehicle.EditValue = vehicle;
                    SetPermissions();
                }
                else
                {
                    throw new NotImplementedException();
                }
            }
            catch (System.Exception exception1)
            {
                System.Exception innerException = exception1;
                throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }
Example #3
0
        public Material(PROF_IT.Common.Enumerations.TypeForm typeForm, MaterialObject material)
        {
            try
            {
                InitializeComponent();

                _material         = material;
                _materialOriginal = material.Clone();
                _typeForm         = typeForm;
                if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
                {
                    throw new NotImplementedException();
                }
                else
                {
                    Initialize();
                    InitializePropertyForm();
                    SetPermissions();
                }
            }
            catch (System.Exception exception1)
            {
                System.Exception innerException = exception1;
                throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }
Example #4
0
        public MaterialCateogry(PROF_IT.Common.Enumerations.TypeForm typeForm, MaterialSubTypeObject materialSubType)
        {
            try
            {
                InitializeComponent();

                MaterialSubTypeMember = materialSubType;
                _typeForm             = typeForm;
                if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
                {
                    throw new NotImplementedException();
                }
                else
                {
                    Initialize();
                    InitializePropertyFormMaterialSubType();
                    SetPermissions();
                }
            }
            catch (System.Exception exception1)
            {
                System.Exception innerException = exception1;
                throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }
Example #5
0
 public Memo(PROF_IT.Common.Enumerations.TypeForm typeForm)
 {
     try
     {
         InitializeComponent();
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             Initialize();
         }
         else
         {
             throw new NotImplementedException();
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #6
0
 public Task(PROF_IT.Common.Enumerations.TypeForm typeForm)
 {
     try
     {
         InitializeComponent();
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             Initialize();
         }
         else
         {
             throw new NotImplementedException();
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #7
0
 public Memo(PROF_IT.Common.Enumerations.TypeForm typeForm, MemoObject memo)
 {
     try
     {
         InitializeComponent();
         _memo     = memo;
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             throw new NotImplementedException();
         }
         else
         {
             InitializePropertyForm();
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #8
0
 public User(PROF_IT.Common.Enumerations.TypeForm typeForm)
 {
     try
     {
         InitializeComponent();
         SetPermissions();
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             _user = new TIS.DL.Internal.User.UserObject();
         }
         else
         {
             _user = Context.User;
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #9
0
 public User(PROF_IT.Common.Enumerations.TypeForm typeForm)
 {
     try
     {
         InitializeComponent();
         SetPermissions();
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             _user = new TIS.DL.Internal.User.UserObject();
         }
         else
         {
             _user = Context.User;
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #10
0
 public Customer(PROF_IT.Common.Enumerations.TypeForm typeForm, CustomerObject customer)
 {
     try
     {
         InitializeComponent();
         _customer = customer;
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             throw new NotImplementedException();
         }
         else
         {
             InitializePropertyForm();
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #11
0
 public FuelDeliveryDetail(PROF_IT.Common.Enumerations.TypeForm typeForm)
 {
     try
     {
         InitializeComponent();
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             FuelDeliveryMember = new FuelDeliveryObject();
             FindAll();
         }
         else
         {
             throw new NotImplementedException();
         }
         SetPermissions();
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #12
0
 public FuelDetail(PROF_IT.Common.Enumerations.TypeForm typeForm)
 {
     try
     {
         InitializeComponent();
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             FuelMember = new FuelObject();
             FindAll();
         }
         else
         {
             throw new NotImplementedException();
         }
         SetPermissions();
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #13
0
 public Maintenance(PROF_IT.Common.Enumerations.TypeForm typeForm, MaterialObject material, MaintenanceObject maintenance)
 {
     try
     {
         InitializeComponent();
         _material = material;
         _maintenance = maintenance;
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             throw new NotImplementedException();
         }
         else
         {
             InitializePropertyForm();
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #14
0
 public Vehicle(PROF_IT.Common.Enumerations.TypeForm typeForm, VehicleObject vehicle)
 {
     try
     {
         InitializeComponent();
         _vehicle = vehicle;
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             throw new NotImplementedException();
         }
         else
         {
             InitializePropertyForm();
             SetPermissions();
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #15
0
 public Vehicle(PROF_IT.Common.Enumerations.TypeForm typeForm, VehicleObject vehicle)
 {
     try
     {
         InitializeComponent();
         _vehicle  = vehicle;
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             throw new NotImplementedException();
         }
         else
         {
             InitializePropertyForm();
             SetPermissions();
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #16
0
 public Task(PROF_IT.Common.Enumerations.TypeForm typeForm, TaskObject task)
 {
     try
     {
         _taskOriginal = task.Clone();
         InitializeComponent();
         _task     = task;
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             throw new NotImplementedException();
         }
         else
         {
             InitializePropertyForm();
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #17
0
 public Schedule(PROF_IT.Common.Enumerations.TypeForm typeForm, TaskScheduleObject taskSchedule)
 {
     try
     {
         InitializeComponent();
         _scheduleOriginal = taskSchedule.Schedule.Clone();
         _schedule = taskSchedule.Schedule;
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             throw new NotImplementedException();
         }
         else
         {
             InitializePropertyForm();
         }
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #18
0
 public Employee(PROF_IT.Common.Enumerations.TypeForm typeForm, EmployeeObject employee)
 {
     try
     {
         InitializeComponent();
         Uow       = new UnitOfWork();
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             throw new NotImplementedException();
         }
         else
         {
             EmployeeMember = employee;
             InitializePropertyForm();
         }
         Initialize();
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #19
0
 public FuelDetail(PROF_IT.Common.Enumerations.TypeForm typeForm, TIS.DL.Internal.Fuel.FuelObject fuel)
 {
     try
     {
         InitializeComponent();
         _fuel     = fuel;
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             throw new NotImplementedException();
         }
         else
         {
             InitializePropertyForm();
         }
         FindAll();
         SetPermissions();
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #20
0
        public BoardComputer(PROF_IT.Common.Enumerations.TypeForm typeForm, TIS.Model.Internal.BoardComputer boardComputer)
        {
            try
            {
                InitializeComponent();
                Uow = new UnitOfWork();

                _typeForm = typeForm;
                if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
                {
                    throw new NotImplementedException();
                }
                else
                {
                    _boardComputer = new XPQuery <TIS.Model.Internal.BoardComputer>(Uow).Where(q => q.Id == boardComputer.Id).FirstOrDefault();
                    Initialize();
                }
            }
            catch (System.Exception exception1)
            {
                System.Exception innerException = exception1;
                throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }
Example #21
0
        public BoardComputer(PROF_IT.Common.Enumerations.TypeForm typeForm)
        {
            try
            {
                InitializeComponent();
                Uow = new UnitOfWork();

                _typeForm      = typeForm;
                _boardComputer = new TIS.Model.Internal.BoardComputer(Uow);
                if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
                {
                    Initialize();
                }
                else
                {
                    throw new NotImplementedException();
                }
            }
            catch (System.Exception exception1)
            {
                System.Exception innerException = exception1;
                throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }
Example #22
0
 public FuelDeliveryDetail(PROF_IT.Common.Enumerations.TypeForm typeForm, TIS.DL.Internal.FuelDelivery.FuelDeliveryObject fuel)
 {
     try
     {
         InitializeComponent();
         _fuelDelivery = fuel;
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             throw new NotImplementedException();
         }
         else
         {
             InitializePropertyForm();
         }
         FindAll();
         SetPermissions();
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #23
0
        public BoardComputer(PROF_IT.Common.Enumerations.TypeForm typeForm, TIS.Model.Internal.BoardComputer boardComputer)
        {
            try
            {
                InitializeComponent();
                Uow = new UnitOfWork();

                _typeForm = typeForm;
                if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
                {
                    throw new NotImplementedException();
                }
                else
                {
                    _boardComputer = new XPQuery<TIS.Model.Internal.BoardComputer>(Uow).Where(q => q.Id == boardComputer.Id).FirstOrDefault();
                    Initialize();
                }
            }
            catch (System.Exception exception1)
            {
                System.Exception innerException = exception1;
                throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }
Example #24
0
 public Employee(PROF_IT.Common.Enumerations.TypeForm typeForm, EmployeeObject employee)
 {
     try
     {
         InitializeComponent();
         Uow = new UnitOfWork();
         _typeForm = typeForm;
         if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
         {
             throw new NotImplementedException();
         }
         else
         {
             EmployeeMember = employee;
             InitializePropertyForm();
         }
         Initialize();
     }
     catch (System.Exception exception1)
     {
         System.Exception innerException = exception1;
         throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
     }
 }
Example #25
0
        public BoardComputer(PROF_IT.Common.Enumerations.TypeForm typeForm)
        {
            try
            {
                InitializeComponent();
                Uow = new UnitOfWork();

                _typeForm = typeForm;
                _boardComputer = new TIS.Model.Internal.BoardComputer(Uow);
                if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
                {
                    Initialize();
                }
                else
                {
                    throw new NotImplementedException();
                }
            }
            catch (System.Exception exception1)
            {
                System.Exception innerException = exception1;
                throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }
Example #26
0
        public Material(PROF_IT.Common.Enumerations.TypeForm typeForm, VehicleObject vehicle)
        {
            try
            {
                InitializeComponent();

                _typeForm = typeForm;
                _material = new MaterialObject();
                if (_typeForm == PROF_IT.Common.Enumerations.TypeForm.NewForm)
                {
                    Initialize();
                    louVehicle.EditValue = vehicle;
                    SetPermissions();
                }
                else
                {
                    throw new NotImplementedException();
                }
            }
            catch (System.Exception exception1)
            {
                System.Exception innerException = exception1;
                throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException);
            }
        }