Пример #1
0
        //System.Drawing.Image DrawingImage;

        public SoftwareTitleForm()
        {
            try
            {
                InitializeComponent();
                _relatedItemsPane       = new RelatedItemsPane(new ConfigItemRelatedItemsConfiguration());
                tabItemRelItems.Content = _relatedItemsPane;

                //Define Template
                //ProjectionLocationTemplate TemplateLocation = new ProjectionLocationTemplate();
                ProjectionObjectTemplate TemplatePublisher = new ProjectionObjectTemplate();

                //SelectTreeViewObjectHandlerClass.EventHandler = new SelectTreeViewObjectHandlerClass.EMOEvent(Location_In);
            }
            catch (Exception e)
            {
                System.Windows.MessageBox.Show(DateTime.Now + " : " + "Initialized Proc Error : " + e.Message);
            }
        }
Пример #2
0
        //LogFile LogFile;

        //public ConnectionsForm(IDataItem Node)
        public CreateVersionTaskForm(EnterpriseManagementObject _EMO)
        {
            InitializeComponent();

            try
            {
                //LogFile = new LogFile(@"C:\LogFile.txt", true);

                //ManagementPackClass PreferredSuplierClass = emg.EntityTypes.GetClass("SMCenter.Company", mpAssetCore);
                ProjectionObjectTemplate TemplateSoftwareTitle = new ProjectionObjectTemplate();

                EMO_SoftwareTitle          = _EMO;
                this.txtSoftwareTitle.Text = EMO_SoftwareTitle.DisplayName;

                //SelectTreeViewObjectHandlerClass.EventHandler = new SelectTreeViewObjectHandlerClass.EMOEvent(Location_In);
            }
            catch (Exception ex)
            {
                System.Windows.MessageBox.Show("Initialize procedure error : " + ex.Message, "Service Manager", MessageBoxButton.OK, MessageBoxImage.Error);
                this.Close();
            }
        }
Пример #3
0
        public HAForm()
        {
            try
            {
                InitializeComponent();
                _relatedItemsPane       = new RelatedItemsPane(new ConfigItemRelatedItemsConfiguration());
                tabItemRelItems.Content = _relatedItemsPane;

                //Define Template
                ProjectionObjectTemplate   TemplateCatalogItem     = new ProjectionObjectTemplate();
                ProjectionObjectTemplate   TemplateWarranty        = new ProjectionObjectTemplate();
                ProjectionObjectTemplate   TemplateSupportContract = new ProjectionObjectTemplate();
                ProjectionObjectTemplate   TemplateOrganization    = new ProjectionObjectTemplate();
                ProjectionLocationTemplate TemplateLocation        = new ProjectionLocationTemplate();


                SelectTreeViewObjectHandlerClass.EventHandler = new SelectTreeViewObjectHandlerClass.EMOEvent(Location_In);
            }
            catch (Exception e)
            {
                System.Windows.MessageBox.Show(DateTime.Now + " : " + "Initialied Error : " + e.Message);
            }
        }
Пример #4
0
 public CatalogItemForm()
 {
     InitializeComponent();
     ProjectionObjectTemplate TemplateManufacturer = new ProjectionObjectTemplate();
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\SoftwareTitleForm.xaml"
                ((SMCenter.Forms.SoftwareTitleForm)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden

            #line 11 "..\..\SoftwareTitleForm.xaml"
                ((SMCenter.Forms.SoftwareTitleForm)(target)).DataContextChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.UserControl_DataContextChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.Location = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.lbHATitle = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.Logo = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.tabControlMain = ((System.Windows.Controls.TabControl)(target));
                return;

            case 6:
                this.tabItemGeneral = ((System.Windows.Controls.TabItem)(target));
                return;

            case 7:
                this.lblDisplayName = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.txtDisplayName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.lblDescription = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.txtGeoName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.lbAssetStatus = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.lpAssetStatus = ((Microsoft.EnterpriseManagement.UI.WpfControls.ListPicker)(target));
                return;

            case 13:
                this.lbCategory = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.lpCategory = ((Microsoft.EnterpriseManagement.UI.WpfControls.ListPicker)(target));
                return;

            case 15:
                this.lbPublisher = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.TemplatePublisher = ((SMCenter.Forms.ProjectionObjectTemplate)(target));
                return;

            case 17:
                this.lblApprovalStatus = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.lpApprovalStatus = ((Microsoft.EnterpriseManagement.UI.WpfControls.ListPicker)(target));
                return;

            case 19:
                this.lblNotes = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.txtNotes = ((System.Windows.Controls.TextBox)(target));
                return;

            case 21:
                this.lblVersions = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.LVVersions = ((System.Windows.Controls.ListView)(target));
                return;

            case 23:
                this.CIButtons = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 24:
                this.brd_CI_Edit = ((System.Windows.Controls.Border)(target));

            #line 161 "..\..\SoftwareTitleForm.xaml"
                this.brd_CI_Edit.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.brd_CI_Edit_MouseDown);

            #line default
            #line hidden
                return;

            case 25:
                this.CI_Image_Edit = ((System.Windows.Controls.Image)(target));
                return;

            case 26:
                this.brd_CI_Delete = ((System.Windows.Controls.Border)(target));

            #line 164 "..\..\SoftwareTitleForm.xaml"
                this.brd_CI_Delete.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.brd_CI_Delete_MouseDown);

            #line default
            #line hidden
                return;

            case 27:
                this.CI_Image_Delete = ((System.Windows.Controls.Image)(target));
                return;

            case 28:
                this.tabItemRelItems = ((System.Windows.Controls.TabItem)(target));
                return;

            case 29:
                this.tabItemHistory = ((System.Windows.Controls.TabItem)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #6
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\CatalogItemForm.xaml"
                ((SMCenter.Forms.CatalogItemForm)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden

            #line 11 "..\..\CatalogItemForm.xaml"
                ((SMCenter.Forms.CatalogItemForm)(target)).DataContextChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.UserControl_DataContextChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.CatalogItem = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.lbHATitle = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.Logo = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.tabControlMain = ((System.Windows.Controls.TabControl)(target));
                return;

            case 6:
                this.tabItemGeneral = ((System.Windows.Controls.TabItem)(target));
                return;

            case 7:
                this.lblMakeModel = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.txtMakeModel = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.lblStatus = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.lpStatus = ((Microsoft.EnterpriseManagement.UI.WpfControls.ListPicker)(target));
                return;

            case 11:
                this.lblType = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.lpType = ((Microsoft.EnterpriseManagement.UI.WpfControls.ListPicker)(target));
                return;

            case 13:
                this.lblDescription = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.txtDescription = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.lblModel = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.TemplateManufacturer = ((SMCenter.Forms.ProjectionObjectTemplate)(target));
                return;

            case 17:
                this.lblPartNumber = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.txtManufacturerPartNumber = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.lblPreferredSupplier = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.TemplatePreferredSuplier = ((SMCenter.Forms.ProjectionObjectTemplate)(target));
                return;

            case 21:
                this.lblPreferredSupplierPartNumber = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.txtPreferredSupplierPartNumber = ((System.Windows.Controls.TextBox)(target));
                return;

            case 23:
                this.lblCost = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.txtCost = ((System.Windows.Controls.TextBox)(target));
                return;

            case 25:
                this.tabItemHistory = ((System.Windows.Controls.TabItem)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\Copy of HAForm.xaml"
                ((SMCenter.Forms.HAForm)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden

            #line 12 "..\..\Copy of HAForm.xaml"
                ((SMCenter.Forms.HAForm)(target)).DataContextChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.UserControl_DataContextChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.Location = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.lbHATitle = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.Logo = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.tabControlMain = ((System.Windows.Controls.TabControl)(target));
                return;

            case 6:
                this.tabItemGeneral = ((System.Windows.Controls.TabItem)(target));
                return;

            case 7:
                this.lblDisplayName = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.txtDisplayName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.lblAssetKey = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.txtAssetKey = ((System.Windows.Controls.TextBox)(target));

            #line 83 "..\..\Copy of HAForm.xaml"
                this.txtAssetKey.SourceUpdated += new System.EventHandler <System.Windows.Data.DataTransferEventArgs>(this.txtAssetKey_SourceUpdated);

            #line default
            #line hidden
                return;

            case 11:
                this.lblLifecycleStatus = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.lpLifecycleStatus = ((Microsoft.EnterpriseManagement.UI.WpfControls.ListPicker)(target));
                return;

            case 13:
                this.lblSer = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.txtNASerNumber = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.lblHAType = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.lpHAType = ((Microsoft.EnterpriseManagement.UI.WpfControls.ListPicker)(target));
                return;

            case 17:
                this.lblModel = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.TemplateCatalogItem = ((SMCenter.Forms.ProjectionObjectTemplate)(target));
                return;

            case 19:
                this.lblDescription = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.txtDescription = ((System.Windows.Controls.TextBox)(target));
                return;

            case 21:
                this.lblConfigItems = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.ListViewCI = ((System.Windows.Controls.ListView)(target));
                return;

            case 23:
                this.CIButtons = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 24:
                this.brd_CI_Add = ((System.Windows.Controls.Border)(target));

            #line 154 "..\..\Copy of HAForm.xaml"
                this.brd_CI_Add.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.brd_CI_Add_MouseDown);

            #line default
            #line hidden
                return;

            case 25:
                this.CI_Image_Add = ((System.Windows.Controls.Image)(target));
                return;

            case 26:
                this.brd_CI_Edit = ((System.Windows.Controls.Border)(target));

            #line 157 "..\..\Copy of HAForm.xaml"
                this.brd_CI_Edit.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.brd_CI_Edit_MouseDown);

            #line default
            #line hidden
                return;

            case 27:
                this.CI_Image_Edit = ((System.Windows.Controls.Image)(target));
                return;

            case 28:
                this.brd_CI_Delete = ((System.Windows.Controls.Border)(target));

            #line 160 "..\..\Copy of HAForm.xaml"
                this.brd_CI_Delete.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.brd_CI_Delete_MouseDown);

            #line default
            #line hidden
                return;

            case 29:
                this.CI_Image_Delete = ((System.Windows.Controls.Image)(target));
                return;

            case 30:
                this.lblWarranty = ((System.Windows.Controls.Label)(target));
                return;

            case 31:
                this.TemplateWarranty = ((SMCenter.Forms.ProjectionObjectTemplate)(target));
                return;

            case 32:
                this.lblSupport = ((System.Windows.Controls.Label)(target));
                return;

            case 33:
                this.TemplateSupportContract = ((SMCenter.Forms.ProjectionObjectTemplate)(target));
                return;

            case 34:
                this.lblAssUser = ((System.Windows.Controls.Label)(target));
                return;

            case 35:
                this.HAOwner = ((Microsoft.EnterpriseManagement.UI.WpfControls.UserPicker)(target));
                return;

            case 36:
                this.lblOrganization = ((System.Windows.Controls.Label)(target));
                return;

            case 37:
                this.TemplateOrganization = ((SMCenter.Forms.ProjectionObjectTemplate)(target));
                return;

            case 38:
                this.lblLocation = ((System.Windows.Controls.Label)(target));
                return;

            case 39:
                this.TemplateLocationItem = ((SMCenter.Forms.ProjectionLocationTemplate)(target));
                return;

            case 40:
                this.tabItemFinance = ((System.Windows.Controls.TabItem)(target));
                return;

            case 41:
                this.lblCostCenter = ((System.Windows.Controls.Label)(target));
                return;

            case 42:
                this.TemplateCostCenter = ((SMCenter.Forms.ProjectionObjectTemplate)(target));
                return;

            case 43:
                this.lblReceivedDate = ((System.Windows.Controls.Label)(target));
                return;

            case 44:
                this.dtReceivedDate = ((Microsoft.Windows.Controls.DatePicker)(target));
                return;

            case 45:
                this.lblCost = ((System.Windows.Controls.Label)(target));
                return;

            case 46:
                this.txtCost = ((System.Windows.Controls.TextBox)(target));
                return;

            case 47:
                this.lblLifecycleStatusChangedDate = ((System.Windows.Controls.Label)(target));
                return;

            case 48:
                this.dtLifecycleStatusChangedDate = ((Microsoft.Windows.Controls.DatePicker)(target));
                return;

            case 49:
                this.lblPurchaseOrderNumber = ((System.Windows.Controls.Label)(target));
                return;

            case 50:
                this.txtPurchaseOrderNumber = ((System.Windows.Controls.TextBox)(target));
                return;

            case 51:
                this.lblPurchaseOrderDate = ((System.Windows.Controls.Label)(target));
                return;

            case 52:
                this.dtPurchaseOrderDate = ((Microsoft.Windows.Controls.DatePicker)(target));
                return;

            case 53:
                this.lblInvoiceNumber = ((System.Windows.Controls.Label)(target));
                return;

            case 54:
                this.txtInvoiceNumber = ((System.Windows.Controls.TextBox)(target));
                return;

            case 55:
                this.lblInvoiceDate = ((System.Windows.Controls.Label)(target));
                return;

            case 56:
                this.dtInvoiceDate = ((Microsoft.Windows.Controls.DatePicker)(target));
                return;

            case 57:
                this.lblSupplier = ((System.Windows.Controls.Label)(target));
                return;

            case 58:
                this.TemplateSupplier = ((SMCenter.Forms.ProjectionObjectTemplate)(target));
                return;

            case 59:
                this.lblLease = ((System.Windows.Controls.Label)(target));
                return;

            case 60:
                this.TemplateLease = ((SMCenter.Forms.ProjectionObjectTemplate)(target));
                return;

            case 61:
                this.lblCostEvents = ((System.Windows.Controls.Label)(target));
                return;

            case 62:
                this.CostEventsListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 63:
                this.CostEventsButtons = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 64:
                this.brd_CE_Add = ((System.Windows.Controls.Border)(target));
                return;

            case 65:
                this.Image_Add = ((System.Windows.Controls.Image)(target));
                return;

            case 66:
                this.brd_CE_Edit = ((System.Windows.Controls.Border)(target));
                return;

            case 67:
                this.Image_Edit = ((System.Windows.Controls.Image)(target));
                return;

            case 68:
                this.brd_CE_Delete = ((System.Windows.Controls.Border)(target));
                return;

            case 69:
                this.Image_Delete = ((System.Windows.Controls.Image)(target));
                return;

            case 70:
                this.tabItemRelItems = ((System.Windows.Controls.TabItem)(target));
                return;

            case 71:
                this.tabItemHistory = ((System.Windows.Controls.TabItem)(target));
                return;
            }
            this._contentLoaded = true;
        }