//----------------------------------------------------------- public void AlloueControl() { if (m_variable == null) { return; } Type typeElements = null; string strPropAffichee = ""; CFiltreData filtre = null; if (m_variable is CVariableDynamiqueSelectionObjetDonnee) { C2iExpression expression = ((CVariableDynamiqueSelectionObjetDonnee)m_variable).ExpressionAffichee; if (expression is C2iExpressionChamp) { strPropAffichee = ((C2iExpressionChamp)expression).DefinitionPropriete.NomProprieteSansCleTypeChamp; } CFiltreDynamique filtreDyn = ((CVariableDynamiqueSelectionObjetDonnee)m_variable).FiltreSelection; filtre = GetFiltre(filtreDyn); typeElements = filtreDyn.TypeElements; } else if (m_variable is CChampCustom) { CFiltreDynamique filtreDyn = ((CChampCustom)m_variable).FiltreObjetDonnee; if (filtreDyn != null) { filtre = GetFiltre(filtreDyn); } typeElements = ((CChampCustom)m_variable).TypeObjetDonnee; } if (m_control == null) { m_control = new C2iTextBoxFiltreRapide(); m_control.ElementSelectionneChanged += new EventHandler(m_control_ElementSelectionneChanged); } if (strPropAffichee == "") { strPropAffichee = DescriptionFieldAttribute.GetDescriptionField(typeElements, "DescriptionElement"); } m_control.InitAvecFiltreDeBase(typeElements, strPropAffichee, filtre, true); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CControleEditeLigneCommandeNew)); this.m_panelData = new System.Windows.Forms.Panel(); this.m_txtTexte = new sc2i.win32.common.C2iTextBox(); this.m_txtReference = new sc2i.win32.common.C2iTextBox(); this.m_txtQte = new sc2i.win32.common.C2iTextBoxNumerique(); this.m_txtSelectReference = new sc2i.win32.data.dynamic.C2iTextBoxFiltreRapide(); this.m_selectTypeEquipement = new sc2i.win32.data.dynamic.C2iTextBoxFiltreRapide(); this.m_pictOrderLine = new System.Windows.Forms.PictureBox(); this.m_ctrlBesoin = new timos.projet.besoin.CControlePourResumeSatisfaction(); this.m_btnPoubelle = new System.Windows.Forms.PictureBox(); this.m_panelData.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.m_pictOrderLine)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.m_btnPoubelle)).BeginInit(); this.SuspendLayout(); // // m_panelData // this.m_panelData.Controls.Add(this.m_txtTexte); this.m_panelData.Controls.Add(this.m_txtReference); this.m_panelData.Controls.Add(this.m_txtQte); this.m_panelData.Controls.Add(this.m_txtSelectReference); this.m_panelData.Controls.Add(this.m_selectTypeEquipement); this.m_panelData.Controls.Add(this.m_pictOrderLine); this.m_panelData.Controls.Add(this.m_ctrlBesoin); this.m_panelData.Controls.Add(this.m_btnPoubelle); this.m_panelData.Dock = System.Windows.Forms.DockStyle.Top; this.m_panelData.Location = new System.Drawing.Point(0, 0); this.m_extModeEdition.SetModeEdition(this.m_panelData, sc2i.win32.common.TypeModeEdition.Autonome); this.m_panelData.Name = "m_panelData"; this.m_panelData.Size = new System.Drawing.Size(786, 20); this.m_panelData.TabIndex = 3; // // m_txtTexte // this.m_txtTexte.Dock = System.Windows.Forms.DockStyle.Fill; this.m_txtTexte.EmptyText = ""; this.m_txtTexte.Location = new System.Drawing.Point(475, 0); this.m_txtTexte.LockEdition = false; this.m_extModeEdition.SetModeEdition(this.m_txtTexte, sc2i.win32.common.TypeModeEdition.EnableSurEdition); this.m_txtTexte.Name = "m_txtTexte"; this.m_txtTexte.Size = new System.Drawing.Size(108, 20); this.m_txtTexte.TabIndex = 2; this.m_txtTexte.TextChanged += new System.EventHandler(this.m_txtQte_TextChanged); // // m_txtReference // this.m_txtReference.Dock = System.Windows.Forms.DockStyle.Right; this.m_txtReference.EmptyText = ""; this.m_txtReference.Location = new System.Drawing.Point(583, 0); this.m_txtReference.LockEdition = false; this.m_extModeEdition.SetModeEdition(this.m_txtReference, sc2i.win32.common.TypeModeEdition.EnableSurEdition); this.m_txtReference.Name = "m_txtReference"; this.m_txtReference.Size = new System.Drawing.Size(101, 20); this.m_txtReference.TabIndex = 3; this.m_txtReference.TextChanged += new System.EventHandler(this.m_txtQte_TextChanged); // // m_txtQte // this.m_txtQte.Arrondi = 4; this.m_txtQte.DecimalAutorise = true; this.m_txtQte.Dock = System.Windows.Forms.DockStyle.Right; this.m_txtQte.DoubleValue = null; this.m_txtQte.EmptyText = ""; this.m_txtQte.IntValue = null; this.m_txtQte.Location = new System.Drawing.Point(684, 0); this.m_txtQte.LockEdition = false; this.m_extModeEdition.SetModeEdition(this.m_txtQte, sc2i.win32.common.TypeModeEdition.EnableSurEdition); this.m_txtQte.Name = "m_txtQte"; this.m_txtQte.NullAutorise = true; this.m_txtQte.SelectAllOnEnter = true; this.m_txtQte.SeparateurMilliers = ""; this.m_txtQte.Size = new System.Drawing.Size(66, 20); this.m_txtQte.TabIndex = 4; this.m_txtQte.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.m_txtQte.TextChanged += new System.EventHandler(this.m_txtQte_TextChanged); // // m_txtSelectReference // this.m_txtSelectReference.Dock = System.Windows.Forms.DockStyle.Left; this.m_txtSelectReference.ElementSelectionne = null; this.m_txtSelectReference.FonctionTextNull = null; this.m_txtSelectReference.ImageDisplayMode = sc2i.win32.data.dynamic.EModeAffichageImageTextBoxRapide.Always; this.m_txtSelectReference.Location = new System.Drawing.Point(268, 0); this.m_txtSelectReference.LockEdition = false; this.m_extModeEdition.SetModeEdition(this.m_txtSelectReference, sc2i.win32.common.TypeModeEdition.EnableSurEdition); this.m_txtSelectReference.Name = "m_txtSelectReference"; this.m_txtSelectReference.SelectedObject = null; this.m_txtSelectReference.SelectionLength = 0; this.m_txtSelectReference.SelectionStart = 0; this.m_txtSelectReference.Size = new System.Drawing.Size(207, 20); this.m_txtSelectReference.SpecificImage = null; this.m_txtSelectReference.TabIndex = 1; this.m_txtSelectReference.TextNull = ""; this.m_txtSelectReference.UseIntellisense = true; this.m_txtSelectReference.OnSelectedObjectChanged += new System.EventHandler(this.m_txtSelectReference_OnSelectedObjectChanged); // // m_selectTypeEquipement // this.m_selectTypeEquipement.Dock = System.Windows.Forms.DockStyle.Left; this.m_selectTypeEquipement.ElementSelectionne = null; this.m_selectTypeEquipement.FonctionTextNull = null; this.m_selectTypeEquipement.ImageDisplayMode = sc2i.win32.data.dynamic.EModeAffichageImageTextBoxRapide.Always; this.m_selectTypeEquipement.Location = new System.Drawing.Point(22, 0); this.m_selectTypeEquipement.LockEdition = false; this.m_extModeEdition.SetModeEdition(this.m_selectTypeEquipement, sc2i.win32.common.TypeModeEdition.EnableSurEdition); this.m_selectTypeEquipement.Name = "m_selectTypeEquipement"; this.m_selectTypeEquipement.SelectedObject = null; this.m_selectTypeEquipement.SelectionLength = 0; this.m_selectTypeEquipement.SelectionStart = 0; this.m_selectTypeEquipement.Size = new System.Drawing.Size(246, 20); this.m_selectTypeEquipement.SpecificImage = null; this.m_selectTypeEquipement.TabIndex = 0; this.m_selectTypeEquipement.TextNull = ""; this.m_selectTypeEquipement.UseIntellisense = true; this.m_selectTypeEquipement.OnSelectedObjectChanged += new System.EventHandler(this.m_selectTypeEquipement_OnSelectedObjectChanged); // // m_pictOrderLine // this.m_pictOrderLine.BackColor = System.Drawing.Color.White; this.m_pictOrderLine.Cursor = System.Windows.Forms.Cursors.Hand; this.m_pictOrderLine.Dock = System.Windows.Forms.DockStyle.Left; this.m_pictOrderLine.Image = global::timos.Properties.Resources.order_line; this.m_pictOrderLine.Location = new System.Drawing.Point(0, 0); this.m_extModeEdition.SetModeEdition(this.m_pictOrderLine, sc2i.win32.common.TypeModeEdition.Autonome); this.m_pictOrderLine.Name = "m_pictOrderLine"; this.m_pictOrderLine.Size = new System.Drawing.Size(22, 20); this.m_pictOrderLine.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.m_pictOrderLine.TabIndex = 8; this.m_pictOrderLine.TabStop = false; this.m_pictOrderLine.MouseMove += new System.Windows.Forms.MouseEventHandler(this.m_imageLigne_MouseMove); this.m_pictOrderLine.MouseDown += new System.Windows.Forms.MouseEventHandler(this.m_imageLigne_MouseDown); this.m_pictOrderLine.DragEnter += new System.Windows.Forms.DragEventHandler(this.m_pictOrderLine_DragEnter); // // m_ctrlBesoin // this.m_ctrlBesoin.AllowDrop = true; this.m_ctrlBesoin.BackColor = System.Drawing.Color.White; this.m_ctrlBesoin.Dock = System.Windows.Forms.DockStyle.Right; this.m_ctrlBesoin.Location = new System.Drawing.Point(750, 0); this.m_extModeEdition.SetModeEdition(this.m_ctrlBesoin, sc2i.win32.common.TypeModeEdition.Autonome); this.m_ctrlBesoin.Name = "m_ctrlBesoin"; this.m_ctrlBesoin.Size = new System.Drawing.Size(20, 20); this.m_ctrlBesoin.TabIndex = 9; // // m_btnPoubelle // this.m_btnPoubelle.BackColor = System.Drawing.Color.White; this.m_btnPoubelle.Cursor = System.Windows.Forms.Cursors.Hand; this.m_btnPoubelle.Dock = System.Windows.Forms.DockStyle.Right; this.m_btnPoubelle.Image = ((System.Drawing.Image)(resources.GetObject("m_btnPoubelle.Image"))); this.m_btnPoubelle.Location = new System.Drawing.Point(770, 0); this.m_extModeEdition.SetModeEdition(this.m_btnPoubelle, sc2i.win32.common.TypeModeEdition.EnableSurEdition); this.m_btnPoubelle.Name = "m_btnPoubelle"; this.m_btnPoubelle.Size = new System.Drawing.Size(16, 20); this.m_btnPoubelle.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.m_btnPoubelle.TabIndex = 7; this.m_btnPoubelle.TabStop = false; this.m_btnPoubelle.Click += new System.EventHandler(this.m_btnPoubelle_Click); // // CControleEditeLigneCommandeNew // this.Controls.Add(this.m_panelData); this.m_extModeEdition.SetModeEdition(this, sc2i.win32.common.TypeModeEdition.Autonome); this.Name = "CControleEditeLigneCommandeNew"; this.Size = new System.Drawing.Size(786, 21); this.m_panelData.ResumeLayout(false); this.m_panelData.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.m_pictOrderLine)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.m_btnPoubelle)).EndInit(); this.ResumeLayout(false); }