public virtual void Fill() { this.PreFill(); this.dsPLANDataSet1 = new PLANDataSet(); this.m_StartRow = 0; this.Cursor = Cursors.WaitCursor; this.m_GridLoading = true; ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal); }
public void Initialize(DeklaritMode mode, DataRow parentRow, bool isCopy) { this.m_ParentRow = parentRow; this.dsPLANDataSet1 = (PLANDataSet)this.m_ParentRow.Table.DataSet; this.bindingSourcePLANORGKON.DataSource = DataSetUtil.GetSubTreeDataView(this.m_ParentRow, this.dsPLANDataSet1.Tables["PLANORGKON"]); this.bindingSourcePLANORGKON.DataMember = ""; this.RegisterBindingSources(); this.m_Mode = mode; this.m_BaseMethods = new GenericFormClass(this.m_FrameworkDescription, this.m_FirstLevelName, "PLAN", this.m_Mode, this.dsPLANDataSet1, this.dsPLANDataSet1.PLANORGKON.Columns, this.Controls, this.m_DataGrids, this.m_AutoNumber); this.m_BaseMethods.FormLoadStyle(); if ((this.m_BaseMethods.IsUpdate() || this.m_BaseMethods.IsDelete()) || (this.m_BaseMethods.IsSelect() || isCopy)) { this.m_CurrentRow = (PLANDataSet.PLANORGKONRow)((DataRowView)this.bindingSourcePLANORGKON.Current).Row; } if (this.m_BaseMethods.IsInsert() && !isCopy) { this.m_CurrentRow = (PLANDataSet.PLANORGKONRow)((DataRowView)this.bindingSourcePLANORGKON.AddNew()).Row; this.m_CurrentRow.SetParentRow(this.m_ParentRow); } this.SetFocusInFirstField(); }
public void ChangeBinding() { this.bindingSourcePLANORGKON.DataSource = this.PLANController.DataSet; this.dsPLANDataSet1 = this.PLANController.DataSet; }
private void InitializeComponent() { this.components = new Container(); ResourceManager manager = new ResourceManager(typeof(PLANFormPLANORGKONUserControl)); this.contextMenu1 = new ContextMenu(); this.SetNullItem = new MenuItem(); this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); this.errorProvider1 = new ErrorProvider(); this.errorProviderValidator1 = new ErrorProviderValidator(this.components); this.bindingSourcePLANORGKON = new BindingSource(this.components); ((ISupportInitialize)this.bindingSourcePLANORGKON).BeginInit(); this.layoutManagerformPLANORGKON = new TableLayoutPanel(); this.layoutManagerformPLANORGKON.SuspendLayout(); this.layoutManagerformPLANORGKON.AutoSize = true; this.layoutManagerformPLANORGKON.Dock = DockStyle.Fill; this.layoutManagerformPLANORGKON.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.layoutManagerformPLANORGKON.AutoScroll = false; System.Drawing.Point point = new System.Drawing.Point(0, 0); this.layoutManagerformPLANORGKON.Location = point; Size size = new System.Drawing.Size(0, 0); this.layoutManagerformPLANORGKON.Size = size; this.layoutManagerformPLANORGKON.ColumnCount = 2; this.layoutManagerformPLANORGKON.RowCount = 3; this.layoutManagerformPLANORGKON.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformPLANORGKON.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformPLANORGKON.RowStyles.Add(new RowStyle()); this.layoutManagerformPLANORGKON.RowStyles.Add(new RowStyle()); this.layoutManagerformPLANORGKON.RowStyles.Add(new RowStyle()); this.label1PLANKONTOIDKONTO = new UltraLabel(); this.comboPLANKONTOIDKONTO = new KONTOComboBox(); this.label1PLANIRANIIZNOS = new UltraLabel(); this.textPLANIRANIIZNOS = new UltraNumericEditor(); ((ISupportInitialize)this.textPLANIRANIIZNOS).BeginInit(); this.dsPLANDataSet1 = new PLANDataSet(); this.dsPLANDataSet1.BeginInit(); this.SuspendLayout(); this.dsPLANDataSet1.DataSetName = "dsPLAN"; this.dsPLANDataSet1.Locale = new CultureInfo("hr-HR"); this.bindingSourcePLANORGKON.DataSource = this.dsPLANDataSet1; this.bindingSourcePLANORGKON.DataMember = "PLANORGKON"; ((ISupportInitialize)this.bindingSourcePLANORGKON).BeginInit(); point = new System.Drawing.Point(0, 0); this.label1PLANKONTOIDKONTO.Location = point; this.label1PLANKONTOIDKONTO.Name = "label1PLANKONTOIDKONTO"; this.label1PLANKONTOIDKONTO.TabIndex = 1; this.label1PLANKONTOIDKONTO.Tag = "labelPLANKONTOIDKONTO"; this.label1PLANKONTOIDKONTO.Text = "Konto:"; this.label1PLANKONTOIDKONTO.StyleSetName = "FieldUltraLabel"; this.label1PLANKONTOIDKONTO.AutoSize = true; this.label1PLANKONTOIDKONTO.Anchor = AnchorStyles.Left; this.label1PLANKONTOIDKONTO.Appearance.TextVAlign = VAlign.Middle; this.label1PLANKONTOIDKONTO.Appearance.Image = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image")); this.label1PLANKONTOIDKONTO.Appearance.ImageHAlign = HAlign.Right; size = new System.Drawing.Size(7, 10); this.label1PLANKONTOIDKONTO.ImageSize = size; this.label1PLANKONTOIDKONTO.Appearance.ForeColor = Color.Black; this.label1PLANKONTOIDKONTO.BackColor = Color.Transparent; this.layoutManagerformPLANORGKON.Controls.Add(this.label1PLANKONTOIDKONTO, 0, 0); this.layoutManagerformPLANORGKON.SetColumnSpan(this.label1PLANKONTOIDKONTO, 1); this.layoutManagerformPLANORGKON.SetRowSpan(this.label1PLANKONTOIDKONTO, 1); Padding padding = new Padding(3, 1, 5, 2); this.label1PLANKONTOIDKONTO.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1PLANKONTOIDKONTO.MinimumSize = size; size = new System.Drawing.Size(0x35, 0x17); this.label1PLANKONTOIDKONTO.Size = size; point = new System.Drawing.Point(0, 0); this.comboPLANKONTOIDKONTO.Location = point; this.comboPLANKONTOIDKONTO.Name = "comboPLANKONTOIDKONTO"; this.comboPLANKONTOIDKONTO.Tag = "PLANKONTOIDKONTO"; this.comboPLANKONTOIDKONTO.TabIndex = 0; this.comboPLANKONTOIDKONTO.Anchor = AnchorStyles.Left; this.comboPLANKONTOIDKONTO.MouseEnter += new EventHandler(this.mouseEnter_Text); this.comboPLANKONTOIDKONTO.DropDownStyle = DropDownStyle.DropDown; this.comboPLANKONTOIDKONTO.ComboBox.DropDownStyle = DropDownStyle.DropDown; this.comboPLANKONTOIDKONTO.ComboBox.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Suggest; this.comboPLANKONTOIDKONTO.Enabled = true; this.comboPLANKONTOIDKONTO.DataBindings.Add(new Binding("Value", this.bindingSourcePLANORGKON, "PLANKONTOIDKONTO")); this.comboPLANKONTOIDKONTO.ShowPictureBox = true; this.comboPLANKONTOIDKONTO.PictureBoxClicked += new EventHandler(this.PictureBoxClickedPLANKONTOIDKONTO); this.comboPLANKONTOIDKONTO.ValueMember = "IDKONTO"; this.comboPLANKONTOIDKONTO.SelectionChanged += new EventHandler(this.SelectedIndexChangedPLANKONTOIDKONTO); this.layoutManagerformPLANORGKON.Controls.Add(this.comboPLANKONTOIDKONTO, 1, 0); this.layoutManagerformPLANORGKON.SetColumnSpan(this.comboPLANKONTOIDKONTO, 1); this.layoutManagerformPLANORGKON.SetRowSpan(this.comboPLANKONTOIDKONTO, 1); padding = new Padding(0, 1, 3, 2); this.comboPLANKONTOIDKONTO.Margin = padding; size = new System.Drawing.Size(0x268, 0x17); this.comboPLANKONTOIDKONTO.MinimumSize = size; size = new System.Drawing.Size(0x268, 0x17); this.comboPLANKONTOIDKONTO.Size = size; point = new System.Drawing.Point(0, 0); this.label1PLANIRANIIZNOS.Location = point; this.label1PLANIRANIIZNOS.Name = "label1PLANIRANIIZNOS"; this.label1PLANIRANIIZNOS.TabIndex = 1; this.label1PLANIRANIIZNOS.Tag = "labelPLANIRANIIZNOS"; this.label1PLANIRANIIZNOS.Text = "PLANIRANIIZNOS:"; this.label1PLANIRANIIZNOS.StyleSetName = "FieldUltraLabel"; this.label1PLANIRANIIZNOS.AutoSize = true; this.label1PLANIRANIIZNOS.Anchor = AnchorStyles.Left; this.label1PLANIRANIIZNOS.Appearance.TextVAlign = VAlign.Middle; this.label1PLANIRANIIZNOS.Appearance.ForeColor = Color.Black; this.label1PLANIRANIIZNOS.BackColor = Color.Transparent; this.layoutManagerformPLANORGKON.Controls.Add(this.label1PLANIRANIIZNOS, 0, 1); this.layoutManagerformPLANORGKON.SetColumnSpan(this.label1PLANIRANIIZNOS, 1); this.layoutManagerformPLANORGKON.SetRowSpan(this.label1PLANIRANIIZNOS, 1); padding = new Padding(3, 1, 5, 2); this.label1PLANIRANIIZNOS.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1PLANIRANIIZNOS.MinimumSize = size; size = new System.Drawing.Size(0x84, 0x17); this.label1PLANIRANIIZNOS.Size = size; point = new System.Drawing.Point(0, 0); this.textPLANIRANIIZNOS.Location = point; this.textPLANIRANIIZNOS.Name = "textPLANIRANIIZNOS"; this.textPLANIRANIIZNOS.Tag = "PLANIRANIIZNOS"; this.textPLANIRANIIZNOS.TabIndex = 0; this.textPLANIRANIIZNOS.Anchor = AnchorStyles.Left; this.textPLANIRANIIZNOS.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textPLANIRANIIZNOS.ReadOnly = false; this.textPLANIRANIIZNOS.PromptChar = ' '; this.textPLANIRANIIZNOS.Enter += new EventHandler(this.numericEditor_Enter); this.textPLANIRANIIZNOS.DataBindings.Add(new Binding("Value", this.bindingSourcePLANORGKON, "PLANIRANIIZNOS")); this.textPLANIRANIIZNOS.NumericType = NumericType.Double; this.textPLANIRANIIZNOS.MaxValue = 79228162514264337593543950335M; this.textPLANIRANIIZNOS.MinValue = -79228162514264337593543950335M; this.textPLANIRANIIZNOS.MaskInput = "{LOC}-nnnnnnnnnn.nn"; this.layoutManagerformPLANORGKON.Controls.Add(this.textPLANIRANIIZNOS, 1, 1); this.layoutManagerformPLANORGKON.SetColumnSpan(this.textPLANIRANIIZNOS, 1); this.layoutManagerformPLANORGKON.SetRowSpan(this.textPLANIRANIIZNOS, 1); padding = new Padding(0, 1, 3, 2); this.textPLANIRANIIZNOS.Margin = padding; size = new System.Drawing.Size(0x66, 0x16); this.textPLANIRANIIZNOS.MinimumSize = size; size = new System.Drawing.Size(0x66, 0x16); this.textPLANIRANIIZNOS.Size = size; this.Controls.Add(this.layoutManagerformPLANORGKON); this.SetNullItem.Index = 0; this.SetNullItem.Text = "Set Null"; this.SetNullItem.Click += new EventHandler(this.SetNullItem_Click); this.contextMenu1.Popup += new EventHandler(this.contextMenu1_Popup); this.contextMenu1.MenuItems.AddRange(new MenuItem[] { this.SetNullItem }); this.errorProvider1.DataSource = this.bindingSourcePLANORGKON; this.errorProviderValidator1.ErrorProvider = this.errorProvider1; this.Name = "PLANFormPLANORGKONUserControl"; this.Text = " KON"; this.AutoSize = true; this.AutoScroll = true; this.Load += new EventHandler(this.PLANFormUserControl_Load); this.layoutManagerformPLANORGKON.ResumeLayout(false); this.layoutManagerformPLANORGKON.PerformLayout(); ((ISupportInitialize)this.bindingSourcePLANORGKON).EndInit(); ((ISupportInitialize)this.textPLANIRANIIZNOS).EndInit(); this.dsPLANDataSet1.EndInit(); this.ResumeLayout(false); this.PerformLayout(); }