private void AddNewDetail() { GeneralInformationControl.ApplyChanges(_addedComponent); CompliancePerformanceListControl.ApplyChanges(_addedComponent); if (_isStore) { if (_destinationObject is Store) { GlobalObjects.ComponentCore.AddComponent(_addedComponent, (Store)_destinationObject, GeneralInformationControl.InstallationDate, GeneralInformationControl.Position, GeneralInformationControl.State, GeneralInformationControl.ComponentTCSNOnInstall, GeneralInformationControl.ComponentCurrentTSNCSN, GeneralInformationControl.DateAsOf, true); } if (_destinationObject is Operator) { GlobalObjects.ComponentCore.AddComponent(_addedComponent, (Operator)_destinationObject, GeneralInformationControl.InstallationDate, GeneralInformationControl.Position, GeneralInformationControl.State, GeneralInformationControl.ComponentTCSNOnInstall, GeneralInformationControl.ComponentCurrentTSNCSN, GeneralInformationControl.DateAsOf, true); } } else { _parentBaseComponent = addNewComponentControl1.BaseComponentAddTo; GlobalObjects.ComponentCore.AddComponent(_addedComponent, _parentBaseComponent, GeneralInformationControl.InstallationDate, GeneralInformationControl.Position, GeneralInformationControl.State, GeneralInformationControl.ComponentTCSNOnInstall, GeneralInformationControl.ComponentCurrentTSNCSN, GeneralInformationControl.DateAsOf, true); } }
public override void DisposeScreen() { GeneralInformationControl.Dispose(); CompliancePerformanceListControl.CancelAsync(); Dispose(true); }
private void GeneralInformationControlManufactureDateChanged(Auxiliary.Events.DateChangedEventArgs e) { CompliancePerformanceListControl.ComponentManufactureDateChanged(e.Date); }
private void GeneralDataAndPerformanceControlComponentTypeChanged(Auxiliary.Events.ValueChangedEventArgs e) { CompliancePerformanceListControl.ChangeDirectivesTasksForComponentType(e.Value as GoodsClass ?? GoodsClass.Unknown); }
private void GeneralInformationControlLLPMarkChecked(object sender, EventArgs e) { CompliancePerformanceListControl.UpdateInformation(); }
private void ClearFields() { GeneralInformationControl.ClearFields(); CompliancePerformanceListControl.ClearFields(); }