Exemplo n.º 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);
            }
        }
Exemplo n.º 2
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);
     }
 }
Exemplo n.º 3
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);
     }
 }
Exemplo n.º 4
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);
     }
 }
Exemplo n.º 5
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);
     }
 }
Exemplo n.º 6
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);
     }
 }
Exemplo n.º 7
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);
     }
 }
Exemplo n.º 8
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);
     }
 }
Exemplo n.º 9
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);
     }
 }
Exemplo n.º 10
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);
     }
 }
Exemplo n.º 11
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);
            }
        }
Exemplo n.º 12
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);
            }
        }
Exemplo n.º 13
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);
            }
        }