Пример #1
0
 public override void DoUpdate()
 {
     DataAdapterFactory.GetAMSKUPINEDataAdapter().Update(this.DataSet);
 }
Пример #2
0
        private void SetComboBoxColumnProperties(bool setColumnsWidth)
        {
            if (DataAdapterFactory.Provider == null)
            {
                DataAdapterFactory.Provider = new SimpleDataAdapterFactory();
            }
            DataSet dataSet = new OSVRSTADataSet();

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetOSVRSTADataAdapter().Fill(dataSet);
            }
            System.Data.DataView dataList = new System.Data.DataView(dataSet.Tables["OSVRSTA"])
            {
                Sort = "OSV"
            };
            CreateValueList(this.DataGrid, "OSVRSTAIDOSVRSTA", dataList, "IDOSVRSTA", "OSV");
            UltraGridColumn column2 = this.DataGrid.DisplayLayout.Bands["OS"].Columns["IDOSVRSTA"];

            column2.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column2.ValueList = this.DataGrid.DisplayLayout.ValueLists["OSVRSTAIDOSVRSTA"];
            if (setColumnsWidth)
            {
                column2.Width = 0x145;
            }
            DataSet set = new AMSKUPINEDataSet();

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetAMSKUPINEDataAdapter().Fill(set);
            }
            System.Data.DataView view = new System.Data.DataView(set.Tables["AMSKUPINE"])
            {
                Sort = "AM"
            };
            CreateValueList(this.DataGrid, "AMSKUPINEIDAMSKUPINE", view, "IDAMSKUPINE", "AM");
            UltraGridColumn column = this.DataGrid.DisplayLayout.Bands["OS"].Columns["IDAMSKUPINE"];

            column.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column.ValueList = this.DataGrid.DisplayLayout.ValueLists["AMSKUPINEIDAMSKUPINE"];
            if (setColumnsWidth)
            {
                column.Width = 370;
            }
            DataSet set3 = new OSDOKUMENTDataSet();

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetOSDOKUMENTDataAdapter().Fill(set3);
            }
            System.Data.DataView view3 = new System.Data.DataView(set3.Tables["OSDOKUMENT"])
            {
                Sort = "OSDK"
            };
            CreateValueList(this.DataGrid, "OSDOKUMENTIDOSDOKUMENT", view3, "IDOSDOKUMENT", "OSDK");
            UltraGridColumn column3 = this.DataGrid.DisplayLayout.Bands["OS_OSTEMELJNICA"].Columns["IDOSDOKUMENT"];

            column3.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column3.ValueList = this.DataGrid.DisplayLayout.ValueLists["OSDOKUMENTIDOSDOKUMENT"];
            if (setColumnsWidth)
            {
                column3.Width = 370;
            }
            DataSet set4 = new LOKACIJEDataSet();

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetLOKACIJEDataAdapter().Fill(set4);
            }
            System.Data.DataView view4 = new System.Data.DataView(set4.Tables["LOKACIJE"])
            {
                Sort = "LOK"
            };
            CreateValueList(this.DataGrid, "LOKACIJERASHODLOKACIJEIDLOKACIJE", view4, "IDLOKACIJE", "LOK");
            UltraGridColumn column4 = this.DataGrid.DisplayLayout.Bands["OS_OSTEMELJNICA"].Columns["RASHODLOKACIJEIDLOKACIJE"];

            column4.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column4.ValueList = this.DataGrid.DisplayLayout.ValueLists["LOKACIJERASHODLOKACIJEIDLOKACIJE"];
            if (setColumnsWidth)
            {
                column4.Width = 370;
            }
        }
Пример #3
0
 public override void Fill(DataSet dataSet, IDictionary <string, object> row)
 {
     DataAdapterFactory.GetAMSKUPINEDataAdapter().Fill((AMSKUPINEDataSet)dataSet, Conversions.ToInteger(row["IDAMSKUPINE"]));
 }