public virtual void Fill() { this.PreFill(); this.dsMJESTOTROSKADataSet1 = new MJESTOTROSKADataSet(); this.m_StartRow = 0; this.Cursor = Cursors.WaitCursor; this.m_GridLoading = true; ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal); }
private void SetComboBoxColumnProperties(bool setColumnsWidth) { if (DataAdapterFactory.Provider == null) { DataAdapterFactory.Provider = new SimpleDataAdapterFactory(); } DataSet dataSet = new ORGJEDDataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetORGJEDDataAdapter().Fill(dataSet); } System.Data.DataView dataList = new System.Data.DataView(dataSet.Tables["ORGJED"]) { Sort = "oj" }; CreateValueList(this.DataGrid, "ORGJEDSHEMAPLOJIDORGJED", dataList, "IDORGJED", "oj"); UltraGridColumn column10 = this.DataGrid.DisplayLayout.Bands["SHEMAPLACA"].Columns["SHEMAPLOJIDORGJED"]; column10.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column10.ValueList = this.DataGrid.DisplayLayout.ValueLists["ORGJEDSHEMAPLOJIDORGJED"]; if (setColumnsWidth) { column10.Width = 370; } DataSet set = new KONTODataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetKONTODataAdapter().Fill(set); } System.Data.DataView view = new System.Data.DataView(set.Tables["KONTO"]) { Sort = "KONT" }; CreateValueList(this.DataGrid, "KONTOKONTODOPIDKONTO", view, "IDKONTO", "KONT"); UltraGridColumn column = this.DataGrid.DisplayLayout.Bands["SHEMAPLACA_SHEMAPLACASHEMAPLACADOP"].Columns["KONTODOPIDKONTO"]; column.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column.ValueList = this.DataGrid.DisplayLayout.ValueLists["KONTOKONTODOPIDKONTO"]; if (setColumnsWidth) { column.Width = 370; } DataSet set2 = new MJESTOTROSKADataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetMJESTOTROSKADataAdapter().Fill(set2); } System.Data.DataView view2 = new System.Data.DataView(set2.Tables["MJESTOTROSKA"]) { Sort = "mt" }; CreateValueList(this.DataGrid, "MJESTOTROSKAMTDOPIDMJESTOTROSKA", view2, "IDMJESTOTROSKA", "mt"); UltraGridColumn column2 = this.DataGrid.DisplayLayout.Bands["SHEMAPLACA_SHEMAPLACASHEMAPLACADOP"].Columns["MTDOPIDMJESTOTROSKA"]; column2.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column2.ValueList = this.DataGrid.DisplayLayout.ValueLists["MJESTOTROSKAMTDOPIDMJESTOTROSKA"]; if (setColumnsWidth) { column2.Width = 370; } DataSet set3 = new STRANEKNJIZENJADataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetSTRANEKNJIZENJADataAdapter().Fill(set3); } System.Data.DataView view3 = new System.Data.DataView(set3.Tables["STRANEKNJIZENJA"]) { Sort = "NAZIVSTRANEKNJIZENJA" }; CreateValueList(this.DataGrid, "STRANEKNJIZENJASTRANEDOPIDSTRANEKNJIZENJA", view3, "IDSTRANEKNJIZENJA", "NAZIVSTRANEKNJIZENJA"); UltraGridColumn column3 = this.DataGrid.DisplayLayout.Bands["SHEMAPLACA_SHEMAPLACASHEMAPLACADOP"].Columns["STRANEDOPIDSTRANEKNJIZENJA"]; column3.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column3.ValueList = this.DataGrid.DisplayLayout.ValueLists["STRANEKNJIZENJASTRANEDOPIDSTRANEKNJIZENJA"]; if (setColumnsWidth) { column3.Width = 280; } DataSet set4 = new KONTODataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetKONTODataAdapter().Fill(set4); } System.Data.DataView view4 = new System.Data.DataView(set4.Tables["KONTO"]) { Sort = "KONT" }; CreateValueList(this.DataGrid, "KONTOKONTOELEMENTIDKONTO", view4, "IDKONTO", "KONT"); UltraGridColumn column4 = this.DataGrid.DisplayLayout.Bands["SHEMAPLACA_SHEMAPLACASHEMAPLACAELEMENT"].Columns["KONTOELEMENTIDKONTO"]; column4.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column4.ValueList = this.DataGrid.DisplayLayout.ValueLists["KONTOKONTOELEMENTIDKONTO"]; if (setColumnsWidth) { column4.Width = 370; } DataSet set6 = new STRANEKNJIZENJADataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetSTRANEKNJIZENJADataAdapter().Fill(set6); } System.Data.DataView view6 = new System.Data.DataView(set6.Tables["STRANEKNJIZENJA"]) { Sort = "NAZIVSTRANEKNJIZENJA" }; CreateValueList(this.DataGrid, "STRANEKNJIZENJASTRANEELEMENTIDSTRANEKNJIZENJA", view6, "IDSTRANEKNJIZENJA", "NAZIVSTRANEKNJIZENJA"); UltraGridColumn column6 = this.DataGrid.DisplayLayout.Bands["SHEMAPLACA_SHEMAPLACASHEMAPLACAELEMENT"].Columns["STRANEELEMENTIDSTRANEKNJIZENJA"]; column6.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column6.ValueList = this.DataGrid.DisplayLayout.ValueLists["STRANEKNJIZENJASTRANEELEMENTIDSTRANEKNJIZENJA"]; if (setColumnsWidth) { column6.Width = 280; } DataSet set5 = new MJESTOTROSKADataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetMJESTOTROSKADataAdapter().Fill(set5); } System.Data.DataView view5 = new System.Data.DataView(set5.Tables["MJESTOTROSKA"]) { Sort = "mt" }; CreateValueList(this.DataGrid, "MJESTOTROSKAMTELEMENTIDMJESTOTROSKA", view5, "IDMJESTOTROSKA", "mt"); UltraGridColumn column5 = this.DataGrid.DisplayLayout.Bands["SHEMAPLACA_SHEMAPLACASHEMAPLACAELEMENT"].Columns["MTELEMENTIDMJESTOTROSKA"]; column5.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column5.ValueList = this.DataGrid.DisplayLayout.ValueLists["MJESTOTROSKAMTELEMENTIDMJESTOTROSKA"]; if (setColumnsWidth) { column5.Width = 370; } DataSet set7 = new KONTODataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetKONTODataAdapter().Fill(set7); } System.Data.DataView view7 = new System.Data.DataView(set7.Tables["KONTO"]) { Sort = "KONT" }; CreateValueList(this.DataGrid, "KONTOKONTOPLACAVRSTAIZNOSAIDKONTO", view7, "IDKONTO", "KONT"); UltraGridColumn column7 = this.DataGrid.DisplayLayout.Bands["SHEMAPLACA_SHEMAPLACASHEMAPLACASTANDARD"].Columns["KONTOPLACAVRSTAIZNOSAIDKONTO"]; column7.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column7.ValueList = this.DataGrid.DisplayLayout.ValueLists["KONTOKONTOPLACAVRSTAIZNOSAIDKONTO"]; if (setColumnsWidth) { column7.Width = 370; } DataSet set8 = new MJESTOTROSKADataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetMJESTOTROSKADataAdapter().Fill(set8); } System.Data.DataView view8 = new System.Data.DataView(set8.Tables["MJESTOTROSKA"]) { Sort = "mt" }; CreateValueList(this.DataGrid, "MJESTOTROSKAMTPLACAVRSTAIZNOSAIDMJESTOTROSKA", view8, "IDMJESTOTROSKA", "mt"); UltraGridColumn column8 = this.DataGrid.DisplayLayout.Bands["SHEMAPLACA_SHEMAPLACASHEMAPLACASTANDARD"].Columns["MTPLACAVRSTAIZNOSAIDMJESTOTROSKA"]; column8.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column8.ValueList = this.DataGrid.DisplayLayout.ValueLists["MJESTOTROSKAMTPLACAVRSTAIZNOSAIDMJESTOTROSKA"]; if (setColumnsWidth) { column8.Width = 370; } DataSet set9 = new STRANEKNJIZENJADataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetSTRANEKNJIZENJADataAdapter().Fill(set9); } System.Data.DataView view9 = new System.Data.DataView(set9.Tables["STRANEKNJIZENJA"]) { Sort = "NAZIVSTRANEKNJIZENJA" }; CreateValueList(this.DataGrid, "STRANEKNJIZENJASTRANEVRSTEIZNOSAIDSTRANEKNJIZENJA", view9, "IDSTRANEKNJIZENJA", "NAZIVSTRANEKNJIZENJA"); UltraGridColumn column9 = this.DataGrid.DisplayLayout.Bands["SHEMAPLACA_SHEMAPLACASHEMAPLACASTANDARD"].Columns["STRANEVRSTEIZNOSAIDSTRANEKNJIZENJA"]; column9.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column9.ValueList = this.DataGrid.DisplayLayout.ValueLists["STRANEKNJIZENJASTRANEVRSTEIZNOSAIDSTRANEKNJIZENJA"]; if (setColumnsWidth) { column9.Width = 280; } }
private void SetComboBoxColumnProperties(bool setColumnsWidth) { if (DataAdapterFactory.Provider == null) { DataAdapterFactory.Provider = new SimpleDataAdapterFactory(); } DataSet dataSet = new PARTNERDataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetPARTNERDataAdapter().Fill(dataSet); } System.Data.DataView dataList = new System.Data.DataView(dataSet.Tables["PARTNER"]) { Sort = "PT" }; CreateValueList(this.DataGrid, "PARTNERPARTNERSHEMAURAIDPARTNER", dataList, "IDPARTNER", "PT"); UltraGridColumn column = this.DataGrid.DisplayLayout.Bands["SHEMAURA"].Columns["PARTNERSHEMAURAIDPARTNER"]; column.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column.ValueList = this.DataGrid.DisplayLayout.ValueLists["PARTNERPARTNERSHEMAURAIDPARTNER"]; if (setColumnsWidth) { column.Width = 370; } DataSet set3 = new KONTODataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetKONTODataAdapter().Fill(set3); } System.Data.DataView view3 = new System.Data.DataView(set3.Tables["KONTO"]) { Sort = "KONT" }; CreateValueList(this.DataGrid, "KONTOSHEMAURAKONTOIDKONTO", view3, "IDKONTO", "KONT"); UltraGridColumn column3 = this.DataGrid.DisplayLayout.Bands["SHEMAURA_SHEMAURASHEMAURAKONTIRANJE"].Columns["SHEMAURAKONTOIDKONTO"]; column3.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column3.ValueList = this.DataGrid.DisplayLayout.ValueLists["KONTOSHEMAURAKONTOIDKONTO"]; if (setColumnsWidth) { column3.Width = 370; } DataSet set6 = new STRANEKNJIZENJADataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetSTRANEKNJIZENJADataAdapter().Fill(set6); } System.Data.DataView view6 = new System.Data.DataView(set6.Tables["STRANEKNJIZENJA"]) { Sort = "NAZIVSTRANEKNJIZENJA" }; CreateValueList(this.DataGrid, "STRANEKNJIZENJASHEMAURASTRANEIDSTRANEKNJIZENJA", view6, "IDSTRANEKNJIZENJA", "NAZIVSTRANEKNJIZENJA"); UltraGridColumn column6 = this.DataGrid.DisplayLayout.Bands["SHEMAURA_SHEMAURASHEMAURAKONTIRANJE"].Columns["SHEMAURASTRANEIDSTRANEKNJIZENJA"]; column6.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column6.ValueList = this.DataGrid.DisplayLayout.ValueLists["STRANEKNJIZENJASHEMAURASTRANEIDSTRANEKNJIZENJA"]; if (setColumnsWidth) { column6.Width = 280; } DataSet set2 = new URAVRSTAIZNOSADataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetURAVRSTAIZNOSADataAdapter().Fill(set2); } System.Data.DataView view2 = new System.Data.DataView(set2.Tables["URAVRSTAIZNOSA"]) { Sort = "URAVRSTAIZNOSANAZIV" }; CreateValueList(this.DataGrid, "URAVRSTAIZNOSAIDURAVRSTAIZNOSA", view2, "IDURAVRSTAIZNOSA", "URAVRSTAIZNOSANAZIV"); UltraGridColumn column2 = this.DataGrid.DisplayLayout.Bands["SHEMAURA_SHEMAURASHEMAURAKONTIRANJE"].Columns["IDURAVRSTAIZNOSA"]; column2.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column2.ValueList = this.DataGrid.DisplayLayout.ValueLists["URAVRSTAIZNOSAIDURAVRSTAIZNOSA"]; if (setColumnsWidth) { column2.Width = 280; } DataSet set4 = new MJESTOTROSKADataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetMJESTOTROSKADataAdapter().Fill(set4); } System.Data.DataView view4 = new System.Data.DataView(set4.Tables["MJESTOTROSKA"]) { Sort = "mt" }; CreateValueList(this.DataGrid, "MJESTOTROSKASHEMAURAMTIDMJESTOTROSKA", view4, "IDMJESTOTROSKA", "mt"); UltraGridColumn column4 = this.DataGrid.DisplayLayout.Bands["SHEMAURA_SHEMAURASHEMAURAKONTIRANJE"].Columns["SHEMAURAMTIDMJESTOTROSKA"]; column4.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column4.ValueList = this.DataGrid.DisplayLayout.ValueLists["MJESTOTROSKASHEMAURAMTIDMJESTOTROSKA"]; if (setColumnsWidth) { column4.Width = 370; } DataSet set5 = new ORGJEDDataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetORGJEDDataAdapter().Fill(set5); } System.Data.DataView view5 = new System.Data.DataView(set5.Tables["ORGJED"]) { Sort = "oj" }; CreateValueList(this.DataGrid, "ORGJEDSHEMAURAOJIDORGJED", view5, "IDORGJED", "oj"); UltraGridColumn column5 = this.DataGrid.DisplayLayout.Bands["SHEMAURA_SHEMAURASHEMAURAKONTIRANJE"].Columns["SHEMAURAOJIDORGJED"]; column5.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column5.ValueList = this.DataGrid.DisplayLayout.ValueLists["ORGJEDSHEMAURAOJIDORGJED"]; if (setColumnsWidth) { column5.Width = 370; } }
private void SetComboBoxColumnProperties(bool setColumnsWidth) { if (DataAdapterFactory.Provider == null) { DataAdapterFactory.Provider = new SimpleDataAdapterFactory(); } DataSet dataSet = new DOKUMENTDataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetDOKUMENTDataAdapter().Fill(dataSet); } System.Data.DataView dataList = new System.Data.DataView(dataSet.Tables["DOKUMENT"]) { Sort = "NAZIVDOKUMENT" }; CreateValueList(this.DataGrid, "DOKUMENTBLGDOKIDDOKUMENT", dataList, "IDDOKUMENT", "NAZIVDOKUMENT"); UltraGridColumn column = this.DataGrid.DisplayLayout.Bands["BLAGAJNA"].Columns["BLGDOKIDDOKUMENT"]; column.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column.ValueList = this.DataGrid.DisplayLayout.ValueLists["DOKUMENTBLGDOKIDDOKUMENT"]; if (setColumnsWidth) { column.Width = 370; } DataSet set2 = new KONTODataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetKONTODataAdapter().Fill(set2); } System.Data.DataView view2 = new System.Data.DataView(set2.Tables["KONTO"]) { Sort = "KONT" }; CreateValueList(this.DataGrid, "KONTOBLGKONTOIDKONTO", view2, "IDKONTO", "KONT"); UltraGridColumn column2 = this.DataGrid.DisplayLayout.Bands["BLAGAJNA"].Columns["BLGKONTOIDKONTO"]; column2.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column2.ValueList = this.DataGrid.DisplayLayout.ValueLists["KONTOBLGKONTOIDKONTO"]; if (setColumnsWidth) { column2.Width = 370; } DataSet set3 = new DOKUMENTDataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetDOKUMENTDataAdapter().Fill(set3); } System.Data.DataView view3 = new System.Data.DataView(set3.Tables["DOKUMENT"]) { Sort = "NAZIVDOKUMENT" }; CreateValueList(this.DataGrid, "DOKUMENTBLGDOKIDDOKUMENT", view3, "IDDOKUMENT", "NAZIVDOKUMENT"); UltraGridColumn column3 = this.DataGrid.DisplayLayout.Bands["BLAGAJNA_BLAGAJNAStavkeBlagajne"].Columns["BLGDOKIDDOKUMENT"]; column3.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column3.ValueList = this.DataGrid.DisplayLayout.ValueLists["DOKUMENTBLGDOKIDDOKUMENT"]; if (setColumnsWidth) { column3.Width = 370; } DataSet set4 = new DOKUMENTDataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetDOKUMENTDataAdapter().Fill(set4); } System.Data.DataView view4 = new System.Data.DataView(set4.Tables["DOKUMENT"]) { Sort = "NAZIVDOKUMENT" }; CreateValueList(this.DataGrid, "DOKUMENTBLGDOKIDDOKUMENT", view4, "IDDOKUMENT", "NAZIVDOKUMENT"); UltraGridColumn column4 = this.DataGrid.DisplayLayout.Bands["BLAGAJNAStavkeBlagajne_BLAGAJNAStavkeBlagajneStavkeBlagajneKontiranje"].Columns["BLGDOKIDDOKUMENT"]; column4.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column4.ValueList = this.DataGrid.DisplayLayout.ValueLists["DOKUMENTBLGDOKIDDOKUMENT"]; if (setColumnsWidth) { column4.Width = 370; } DataSet set7 = new KONTODataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetKONTODataAdapter().Fill(set7); } System.Data.DataView view7 = new System.Data.DataView(set7.Tables["KONTO"]) { Sort = "KONT" }; CreateValueList(this.DataGrid, "KONTOBLGSTAVKEBLAGAJNEKONTOIDKONTO", view7, "IDKONTO", "KONT"); UltraGridColumn column7 = this.DataGrid.DisplayLayout.Bands["BLAGAJNAStavkeBlagajne_BLAGAJNAStavkeBlagajneStavkeBlagajneKontiranje"].Columns["BLGSTAVKEBLAGAJNEKONTOIDKONTO"]; column7.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column7.ValueList = this.DataGrid.DisplayLayout.ValueLists["KONTOBLGSTAVKEBLAGAJNEKONTOIDKONTO"]; if (setColumnsWidth) { column7.Width = 370; } DataSet set5 = new MJESTOTROSKADataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetMJESTOTROSKADataAdapter().Fill(set5); } System.Data.DataView view5 = new System.Data.DataView(set5.Tables["MJESTOTROSKA"]) { Sort = "mt" }; CreateValueList(this.DataGrid, "MJESTOTROSKABLGMTIDMJESTOTROSKA", view5, "IDMJESTOTROSKA", "mt"); UltraGridColumn column5 = this.DataGrid.DisplayLayout.Bands["BLAGAJNAStavkeBlagajne_BLAGAJNAStavkeBlagajneStavkeBlagajneKontiranje"].Columns["BLGMTIDMJESTOTROSKA"]; column5.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column5.ValueList = this.DataGrid.DisplayLayout.ValueLists["MJESTOTROSKABLGMTIDMJESTOTROSKA"]; if (setColumnsWidth) { column5.Width = 370; } DataSet set6 = new ORGJEDDataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetORGJEDDataAdapter().Fill(set6); } System.Data.DataView view6 = new System.Data.DataView(set6.Tables["ORGJED"]) { Sort = "oj" }; CreateValueList(this.DataGrid, "ORGJEDBLGORGJEDIDORGJED", view6, "IDORGJED", "oj"); UltraGridColumn column6 = this.DataGrid.DisplayLayout.Bands["BLAGAJNAStavkeBlagajne_BLAGAJNAStavkeBlagajneStavkeBlagajneKontiranje"].Columns["BLGORGJEDIDORGJED"]; column6.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column6.ValueList = this.DataGrid.DisplayLayout.ValueLists["ORGJEDBLGORGJEDIDORGJED"]; if (setColumnsWidth) { column6.Width = 370; } }
public void ChangeBinding() { this.bindingSourceMJESTOTROSKA.DataSource = this.MJESTOTROSKAController.DataSet; this.dsMJESTOTROSKADataSet1 = this.MJESTOTROSKAController.DataSet; }
private void InitializeComponent() { this.components = new Container(); ResourceManager manager = new ResourceManager(typeof(MJESTOTROSKAFormUserControl)); 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.bindingSourceMJESTOTROSKA = new BindingSource(this.components); ((ISupportInitialize)this.bindingSourceMJESTOTROSKA).BeginInit(); this.layoutManagerformMJESTOTROSKA = new TableLayoutPanel(); this.layoutManagerformMJESTOTROSKA.SuspendLayout(); this.layoutManagerformMJESTOTROSKA.AutoSize = true; this.layoutManagerformMJESTOTROSKA.Dock = DockStyle.Fill; this.layoutManagerformMJESTOTROSKA.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.layoutManagerformMJESTOTROSKA.AutoScroll = false; System.Drawing.Point point = new System.Drawing.Point(0, 0); this.layoutManagerformMJESTOTROSKA.Location = point; Size size = new System.Drawing.Size(0, 0); this.layoutManagerformMJESTOTROSKA.Size = size; this.layoutManagerformMJESTOTROSKA.ColumnCount = 2; this.layoutManagerformMJESTOTROSKA.RowCount = 3; this.layoutManagerformMJESTOTROSKA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformMJESTOTROSKA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.layoutManagerformMJESTOTROSKA.RowStyles.Add(new RowStyle()); this.layoutManagerformMJESTOTROSKA.RowStyles.Add(new RowStyle()); this.layoutManagerformMJESTOTROSKA.RowStyles.Add(new RowStyle()); this.label1IDMJESTOTROSKA = new UltraLabel(); this.textIDMJESTOTROSKA = new UltraNumericEditor(); this.label1NAZIVMJESTOTROSKA = new UltraLabel(); this.textNAZIVMJESTOTROSKA = new UltraTextEditor(); this.label1mt = new UltraLabel(); this.labelmt = new UltraLabel(); ((ISupportInitialize)this.textIDMJESTOTROSKA).BeginInit(); ((ISupportInitialize)this.textNAZIVMJESTOTROSKA).BeginInit(); this.dsMJESTOTROSKADataSet1 = new MJESTOTROSKADataSet(); this.dsMJESTOTROSKADataSet1.BeginInit(); this.SuspendLayout(); this.dsMJESTOTROSKADataSet1.DataSetName = "dsMJESTOTROSKA"; this.dsMJESTOTROSKADataSet1.Locale = new CultureInfo("hr-HR"); this.bindingSourceMJESTOTROSKA.DataSource = this.dsMJESTOTROSKADataSet1; this.bindingSourceMJESTOTROSKA.DataMember = "MJESTOTROSKA"; ((ISupportInitialize)this.bindingSourceMJESTOTROSKA).BeginInit(); point = new System.Drawing.Point(0, 0); this.label1IDMJESTOTROSKA.Location = point; this.label1IDMJESTOTROSKA.Name = "label1IDMJESTOTROSKA"; this.label1IDMJESTOTROSKA.TabIndex = 1; this.label1IDMJESTOTROSKA.Tag = "labelIDMJESTOTROSKA"; this.label1IDMJESTOTROSKA.Text = "Šifra MT:"; this.label1IDMJESTOTROSKA.StyleSetName = "FieldUltraLabel"; this.label1IDMJESTOTROSKA.AutoSize = true; this.label1IDMJESTOTROSKA.Anchor = AnchorStyles.Left; this.label1IDMJESTOTROSKA.Appearance.TextVAlign = VAlign.Middle; this.label1IDMJESTOTROSKA.Appearance.Image = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image")); this.label1IDMJESTOTROSKA.Appearance.ImageHAlign = HAlign.Right; size = new System.Drawing.Size(7, 10); this.label1IDMJESTOTROSKA.ImageSize = size; this.label1IDMJESTOTROSKA.Appearance.ForeColor = Color.Black; this.label1IDMJESTOTROSKA.BackColor = Color.Transparent; this.layoutManagerformMJESTOTROSKA.Controls.Add(this.label1IDMJESTOTROSKA, 0, 0); this.layoutManagerformMJESTOTROSKA.SetColumnSpan(this.label1IDMJESTOTROSKA, 1); this.layoutManagerformMJESTOTROSKA.SetRowSpan(this.label1IDMJESTOTROSKA, 1); Padding padding = new Padding(3, 1, 5, 2); this.label1IDMJESTOTROSKA.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1IDMJESTOTROSKA.MinimumSize = size; size = new System.Drawing.Size(0x43, 0x17); this.label1IDMJESTOTROSKA.Size = size; point = new System.Drawing.Point(0, 0); this.textIDMJESTOTROSKA.Location = point; this.textIDMJESTOTROSKA.Name = "textIDMJESTOTROSKA"; this.textIDMJESTOTROSKA.Tag = "IDMJESTOTROSKA"; this.textIDMJESTOTROSKA.TabIndex = 0; this.textIDMJESTOTROSKA.Anchor = AnchorStyles.Left; this.textIDMJESTOTROSKA.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textIDMJESTOTROSKA.ReadOnly = false; this.textIDMJESTOTROSKA.PromptChar = ' '; this.textIDMJESTOTROSKA.Enter += new EventHandler(this.numericEditor_Enter); this.textIDMJESTOTROSKA.DataBindings.Add(new Binding("Value", this.bindingSourceMJESTOTROSKA, "IDMJESTOTROSKA")); this.textIDMJESTOTROSKA.NumericType = NumericType.Integer; this.textIDMJESTOTROSKA.MaskInput = "{LOC}-nnnnnnnn"; this.layoutManagerformMJESTOTROSKA.Controls.Add(this.textIDMJESTOTROSKA, 1, 0); this.layoutManagerformMJESTOTROSKA.SetColumnSpan(this.textIDMJESTOTROSKA, 1); this.layoutManagerformMJESTOTROSKA.SetRowSpan(this.textIDMJESTOTROSKA, 1); padding = new Padding(0, 1, 3, 2); this.textIDMJESTOTROSKA.Margin = padding; size = new System.Drawing.Size(0x48, 0x16); this.textIDMJESTOTROSKA.MinimumSize = size; size = new System.Drawing.Size(0x48, 0x16); this.textIDMJESTOTROSKA.Size = size; point = new System.Drawing.Point(0, 0); this.label1NAZIVMJESTOTROSKA.Location = point; this.label1NAZIVMJESTOTROSKA.Name = "label1NAZIVMJESTOTROSKA"; this.label1NAZIVMJESTOTROSKA.TabIndex = 1; this.label1NAZIVMJESTOTROSKA.Tag = "labelNAZIVMJESTOTROSKA"; this.label1NAZIVMJESTOTROSKA.Text = "Naziv MT:"; this.label1NAZIVMJESTOTROSKA.StyleSetName = "FieldUltraLabel"; this.label1NAZIVMJESTOTROSKA.AutoSize = true; this.label1NAZIVMJESTOTROSKA.Anchor = AnchorStyles.Left | AnchorStyles.Top; this.label1NAZIVMJESTOTROSKA.Appearance.TextVAlign = VAlign.Middle; this.label1NAZIVMJESTOTROSKA.Appearance.ForeColor = Color.Black; this.label1NAZIVMJESTOTROSKA.BackColor = Color.Transparent; this.layoutManagerformMJESTOTROSKA.Controls.Add(this.label1NAZIVMJESTOTROSKA, 0, 1); this.layoutManagerformMJESTOTROSKA.SetColumnSpan(this.label1NAZIVMJESTOTROSKA, 1); this.layoutManagerformMJESTOTROSKA.SetRowSpan(this.label1NAZIVMJESTOTROSKA, 1); padding = new Padding(3, 1, 5, 2); this.label1NAZIVMJESTOTROSKA.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1NAZIVMJESTOTROSKA.MinimumSize = size; size = new System.Drawing.Size(0x4c, 0x17); this.label1NAZIVMJESTOTROSKA.Size = size; point = new System.Drawing.Point(0, 0); this.textNAZIVMJESTOTROSKA.Location = point; this.textNAZIVMJESTOTROSKA.Name = "textNAZIVMJESTOTROSKA"; this.textNAZIVMJESTOTROSKA.Tag = "NAZIVMJESTOTROSKA"; this.textNAZIVMJESTOTROSKA.TabIndex = 0; this.textNAZIVMJESTOTROSKA.Anchor = AnchorStyles.Left; this.textNAZIVMJESTOTROSKA.MouseEnter += new EventHandler(this.mouseEnter_Text); this.textNAZIVMJESTOTROSKA.ReadOnly = false; this.textNAZIVMJESTOTROSKA.DataBindings.Add(new Binding("Text", this.bindingSourceMJESTOTROSKA, "NAZIVMJESTOTROSKA")); this.textNAZIVMJESTOTROSKA.Multiline = true; this.textNAZIVMJESTOTROSKA.MaxLength = 120; this.layoutManagerformMJESTOTROSKA.Controls.Add(this.textNAZIVMJESTOTROSKA, 1, 1); this.layoutManagerformMJESTOTROSKA.SetColumnSpan(this.textNAZIVMJESTOTROSKA, 1); this.layoutManagerformMJESTOTROSKA.SetRowSpan(this.textNAZIVMJESTOTROSKA, 1); padding = new Padding(0, 1, 3, 2); this.textNAZIVMJESTOTROSKA.Margin = padding; size = new System.Drawing.Size(0x240, 0x2c); this.textNAZIVMJESTOTROSKA.MinimumSize = size; size = new System.Drawing.Size(0x240, 0x2c); this.textNAZIVMJESTOTROSKA.Size = size; this.textNAZIVMJESTOTROSKA.Dock = DockStyle.Fill; point = new System.Drawing.Point(0, 0); this.label1mt.Location = point; this.label1mt.Name = "label1mt"; this.label1mt.TabIndex = 1; this.label1mt.Tag = "labelmt"; this.label1mt.Text = "mt:"; this.label1mt.StyleSetName = "FieldUltraLabel"; this.label1mt.AutoSize = true; this.label1mt.Anchor = AnchorStyles.Left | AnchorStyles.Top; this.label1mt.Appearance.TextVAlign = VAlign.Middle; this.label1mt.Appearance.ForeColor = Color.Black; this.label1mt.BackColor = Color.Transparent; this.layoutManagerformMJESTOTROSKA.Controls.Add(this.label1mt, 0, 2); this.layoutManagerformMJESTOTROSKA.SetColumnSpan(this.label1mt, 1); this.layoutManagerformMJESTOTROSKA.SetRowSpan(this.label1mt, 1); padding = new Padding(3, 1, 5, 2); this.label1mt.Margin = padding; size = new System.Drawing.Size(0, 0); this.label1mt.MinimumSize = size; size = new System.Drawing.Size(0x24, 0x17); this.label1mt.Size = size; point = new System.Drawing.Point(0, 0); this.labelmt.Location = point; this.labelmt.Name = "labelmt"; this.labelmt.Tag = "mt"; this.labelmt.TabIndex = 0; this.labelmt.Anchor = AnchorStyles.Left; this.labelmt.BackColor = Color.Transparent; this.labelmt.DataBindings.Add(new Binding("Text", this.bindingSourceMJESTOTROSKA, "mt")); this.labelmt.Appearance.TextVAlign = VAlign.Middle; this.layoutManagerformMJESTOTROSKA.Controls.Add(this.labelmt, 1, 2); this.layoutManagerformMJESTOTROSKA.SetColumnSpan(this.labelmt, 1); this.layoutManagerformMJESTOTROSKA.SetRowSpan(this.labelmt, 1); padding = new Padding(0, 1, 3, 2); this.labelmt.Margin = padding; size = new System.Drawing.Size(0x240, 0x2c); this.labelmt.MinimumSize = size; size = new System.Drawing.Size(0x240, 0x2c); this.labelmt.Size = size; this.labelmt.Dock = DockStyle.Fill; this.Controls.Add(this.layoutManagerformMJESTOTROSKA); 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.bindingSourceMJESTOTROSKA; this.errorProviderValidator1.ErrorProvider = this.errorProvider1; this.Name = "MJESTOTROSKAFormUserControl"; this.Text = "MJESTOTROSKA"; this.AutoSize = true; this.AutoScroll = true; this.Load += new EventHandler(this.MJESTOTROSKAFormUserControl_Load); this.layoutManagerformMJESTOTROSKA.ResumeLayout(false); this.layoutManagerformMJESTOTROSKA.PerformLayout(); ((ISupportInitialize)this.bindingSourceMJESTOTROSKA).EndInit(); ((ISupportInitialize)this.textIDMJESTOTROSKA).EndInit(); ((ISupportInitialize)this.textNAZIVMJESTOTROSKA).EndInit(); this.dsMJESTOTROSKADataSet1.EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void SetComboBoxColumnProperties(bool setColumnsWidth) { if (DataAdapterFactory.Provider == null) { DataAdapterFactory.Provider = new SimpleDataAdapterFactory(); } DataSet dataSet = new DOKUMENTDataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetDOKUMENTDataAdapter().Fill(dataSet); } System.Data.DataView dataList = new System.Data.DataView(dataSet.Tables["DOKUMENT"]) { Sort = "NAZIVDOKUMENT" }; CreateValueList(this.DataGrid, "DOKUMENTIDDOKUMENT", dataList, "IDDOKUMENT", "NAZIVDOKUMENT"); UltraGridColumn column = this.DataGrid.DisplayLayout.Bands["GKSTAVKA"].Columns["IDDOKUMENT"]; column.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column.ValueList = this.DataGrid.DisplayLayout.ValueLists["DOKUMENTIDDOKUMENT"]; if (setColumnsWidth) { column.Width = 370; } DataSet set3 = new MJESTOTROSKADataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetMJESTOTROSKADataAdapter().Fill(set3); } System.Data.DataView view3 = new System.Data.DataView(set3.Tables["MJESTOTROSKA"]) { Sort = "mt" }; CreateValueList(this.DataGrid, "MJESTOTROSKAIDMJESTOTROSKA", view3, "IDMJESTOTROSKA", "mt"); UltraGridColumn column3 = this.DataGrid.DisplayLayout.Bands["GKSTAVKA"].Columns["IDMJESTOTROSKA"]; column3.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column3.ValueList = this.DataGrid.DisplayLayout.ValueLists["MJESTOTROSKAIDMJESTOTROSKA"]; if (setColumnsWidth) { column3.Width = 370; } DataSet set4 = new ORGJEDDataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetORGJEDDataAdapter().Fill(set4); } System.Data.DataView view4 = new System.Data.DataView(set4.Tables["ORGJED"]) { Sort = "oj" }; CreateValueList(this.DataGrid, "ORGJEDIDORGJED", view4, "IDORGJED", "oj"); UltraGridColumn column4 = this.DataGrid.DisplayLayout.Bands["GKSTAVKA"].Columns["IDORGJED"]; column4.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column4.ValueList = this.DataGrid.DisplayLayout.ValueLists["ORGJEDIDORGJED"]; if (setColumnsWidth) { column4.Width = 370; } DataSet set2 = new KONTODataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetKONTODataAdapter().Fill(set2); } System.Data.DataView view2 = new System.Data.DataView(set2.Tables["KONTO"]) { Sort = "KONT" }; CreateValueList(this.DataGrid, "KONTOIDKONTO", view2, "IDKONTO", "KONT"); UltraGridColumn column2 = this.DataGrid.DisplayLayout.Bands["GKSTAVKA"].Columns["IDKONTO"]; column2.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column2.ValueList = this.DataGrid.DisplayLayout.ValueLists["KONTOIDKONTO"]; if (setColumnsWidth) { column2.Width = 370; } DataSet set5 = new PARTNERDataSet(); if (DataAdapterFactory.Provider != null) { DataAdapterFactory.GetPARTNERDataAdapter().Fill(set5); } System.Data.DataView view5 = new System.Data.DataView(set5.Tables["PARTNER"]) { Sort = "PT" }; CreateValueList(this.DataGrid, "PARTNERIDPARTNER", view5, "IDPARTNER", "PT"); UltraGridColumn column5 = this.DataGrid.DisplayLayout.Bands["GKSTAVKA"].Columns["IDPARTNER"]; column5.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList; column5.ValueList = this.DataGrid.DisplayLayout.ValueLists["PARTNERIDPARTNER"]; if (setColumnsWidth) { column5.Width = 370; } }