当前位置: 首页>>代码示例>>C#>>正文


C# Infragistics类代码示例

本文整理汇总了C#中Infragistics的典型用法代码示例。如果您正苦于以下问题:C# Infragistics类的具体用法?C# Infragistics怎么用?C# Infragistics使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Infragistics类属于命名空间,在下文中一共展示了Infragistics类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: lstAirport_UpdateRowBatch

    protected void lstAirport_UpdateRowBatch(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e)
    {
        DS_Flight.AirportCodeRow row = airportTable.NewAirportCodeRow();
        foreach (UltraGridCell c in e.Row.Cells)
        {
            if(c.Value!=null)
                row[c.Column.Key] = c.Value;
        }

        AirportBiz biz = new AirportBiz();
        bool b = false;

        switch (e.Row.DataChanged)
        {
            case (DataChanged.Added):
                b = biz.AddAirportCode(row.airportCode, row.name, row.name_cn, row.country);
                break;
            case (DataChanged.Modified):
                b = biz.UpdateAirportCode(row.airportID, row.airportCode, row.name, row.name_cn, row.country);
                break;
        }
        if (b)
            e.Row.Style.BackColor = ColorSuccess;
        else
            e.Row.Style.BackColor = ColorFailure;
    }
开发者ID:solo123,项目名称:AGMV,代码行数:26,代码来源:AirportEdit.aspx.cs

示例2: Materias_RecordUpdated

        private void Materias_RecordUpdated(object sender, Infragistics.Windows.DataPresenter.Events.RecordUpdatedEventArgs e)
        {
            try
            {
                DataRecord myRecord = (DataRecord)e.Record;
                // Display the selected Records values in the appropriate
                // editor

                ClasificacionSga materia = new ClasificacionSga(myRecord.Cells[3].Value.ToString());

                materia.IdClasificacion = Convert.ToInt32(myRecord.Cells[0].Value);
                materia.Nivel = Convert.ToInt32(myRecord.Cells[1].Value);
                materia.Padre = Convert.ToInt32(myRecord.Cells[2].Value);
                materia.Descripcion = myRecord.Cells[3].Value.ToString();
                materia.SeccionPadre = Convert.ToInt32(myRecord.Cells[4].Value);
                materia.Historica = Convert.ToInt32(myRecord.Cells[5].Value);
                materia.Consec = Convert.ToInt32(myRecord.Cells[6].Value);
                materia.Hoja = Convert.ToInt32(myRecord.Cells[7].Value);
                materia.NvlImpresion = Convert.ToInt32(myRecord.Cells[8].Value);

                if (registroNuevo)
                    new ClasificacionSgaModel().InsertarRegistro(materia);
                else
                    new ClasificacionSgaModel().ActualizaRegistroMaterias(materia);

                registroNuevo = false;
            }
            catch (InvalidCastException)
            {
                e.Record.Visibility = System.Windows.Visibility.Collapsed;
                e.Record.CancelUpdate();
                MessageBox.Show("Debe completar todos los campos para poder ingresar un elemento", "Atención:", MessageBoxButton.OK, MessageBoxImage.Warning);

            }
        }
开发者ID:danilozacyac,项目名称:MateriasSGACatalog,代码行数:35,代码来源:MantoClasifSga.xaml.cs

示例3: grdQuery_InitializeLayout

        private void grdQuery_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            e.Layout.Bands[0].Columns["supplementdate"].Format = "yyyy-MM-dd HH:mm:ss";

            UltraGridColumn column = e.Layout.Bands[0].Columns["isreinspect"];
            column.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox;
            column.Editor.DataFilter = new CheckEditorStringDataFilter();

            if (!e.Layout.ValueLists.Exists("vlstep"))
            {
                e.Layout.ValueLists.Add("vlstep");
                e.Layout.ValueLists["vlstep"].ValueListItems.AddRange(DropDown.GetValueList_StaticValue(MES_StaticValue_Type.Step));
                e.Layout.Bands[0].Columns["step"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
                e.Layout.Bands[0].Columns["step"].ValueList = e.Layout.ValueLists["vlstep"];
            }
            if (!e.Layout.ValueLists.Exists("vlchecktype"))
            {
                e.Layout.ValueLists.Add("vlchecktype");
                e.Layout.ValueLists["vlchecktype"].ValueListItems.AddRange(DropDown.GetValueList_StaticValue(MES_StaticValue_Type.CheckType));
                e.Layout.Bands[0].Columns["checktype"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
                e.Layout.Bands[0].Columns["checktype"].ValueList = e.Layout.ValueLists["vlchecktype"];
            }

            e.Layout.Override.SummaryDisplayArea = SummaryDisplayAreas.Default;
            e.Layout.Bands[0].Override.SummaryFooterCaptionVisible = DefaultableBoolean.False;
            if (!e.Layout.Bands[0].Summaries.Exists("SumPairqty"))
            {
                e.Layout.Bands[0].Summaries.Add("SumPairqty", SummaryType.Sum, e.Layout.Bands[0].Columns["pairqty"], SummaryPosition.UseSummaryPositionColumn);
            }
        }
开发者ID:jimidzj,项目名称:Inspect,代码行数:30,代码来源:frmSupplementList.cs

示例4: processRightClick

    protected override void processRightClick(Infragistics.Win.UltraWinGrid.UltraGridCell cellClicked_)
    {
      while (contextMenuStrip1.Items.Count > 0)
        contextMenuStrip1.Items[0].Dispose();

      if (cellClicked_ != null && cellClicked_.Row.ListObject is SpreadWeightGenerator)
      {
        SpreadWeightGenerator sw = (SpreadWeightGenerator)cellClicked_.Row.ListObject;

        if (sw.Spread.HasBuiltData)
        {
          contextMenuStrip1.Items.Add(new MenuItems.MenuItem_ShowSeasonality(sw));
          contextMenuStrip1.Items.Add(new MenuItems.MenuItem_ShowTrades(sw));
          contextMenuStrip1.Items.Add(new MenuItems.MenuItems_ShowPnlResult(sw));
          contextMenuStrip1.Items.Add(new MenuItems.MenuItem_ShowPnlDetailed(sw));
          contextMenuStrip1.Items.Add(new MenuItems.MenuItem_GenericAction(sw_: sw, title_: "Show trade points on spread", action_: (x) => x.ShowTradePointsOnGraph()));
          contextMenuStrip1.Items.Add(new ToolStripSeparator());
          contextMenuStrip1.Items.Add(new MenuItems.MenuItem_GenericAction(sw_: sw, title_: "Remove from list", action_: (x) =>
            {
              m_list.Remove(x);
            }));
        }
      }

      if (contextMenuStrip1.Items.Count > 0)
      {
        contextMenuStrip1.Show(Cursor.Position);
      }
    }
开发者ID:heimanhon,项目名称:researchwork,代码行数:29,代码来源:SpreadWeightGeneratorCollectionGrid.cs

示例5: exbarGroups_ContextMenuInitializing

        private void exbarGroups_ContextMenuInitializing(object sender, Infragistics.Win.UltraWinExplorerBar.CancelableContextMenuInitializingEventArgs e)
        {
            if(e.ClickArea == ClickArea.GroupHeader)
            {
                e.Cancel = true;
            }

            var menuTarget = new ContextMenuHelper();
             if( e.ClickArea == ClickArea.Item)
             {
                 menuTarget.Item = e.Item;
                 menuTarget.Group = e.Item.Group;
             }
             else
             {
                 menuTarget.Group = e.Group;
             }

            this.exbarGroups.ResetGroupItemAreaContextMenu();
            this.exbarGroups.ResetItemContextMenu();

            var menuItemAdd = new IGMenuItem("Add", new EventHandler(this.OnMenuItemClicked));
            menuItemAdd.Tag = menuTarget;
            e.ContextMenu.MenuItems.Add(menuItemAdd);

            if(e.ClickArea == ClickArea.Item)
            {
                var menuItemEdit = new IGMenuItem("Edit / Delete", new EventHandler(this.OnMenuItemClicked));
                menuItemEdit.Tag = menuTarget;
                e.ContextMenu.MenuItems.Add(menuItemEdit);
            }
        }
开发者ID:AbbottF,项目名称:FSM.Manager,代码行数:32,代码来源:frmFSMManager.cs

示例6: NavigationBar_ItemSelected

        /// <summary>
        /// Handles Item selected menu event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void NavigationBar_ItemSelected(object sender,
            Infragistics.Web.UI.NavigationControls.ExplorerBarItemSelectedEventArgs e)
        {
            if (e.IsExplorerBarGroup() != true)
            {
                Session["SelectedGroup"] = e.NewSelectedItem.ParentItem.Index;
                Session["SelectedIndex"] = e.NewSelectedItem.Index;
            }

            int cnt = NavigationBar.Groups.Count;
            string redirectURL = e.NewSelectedItem.Value.ToString();

            bool[] state = new bool[cnt];
            //bool[] VisibleState = new bool[cnt];

            for (int i = 0; i < cnt; i++)
            {
                state[i] = NavigationBar.Groups[i].Expanded;
                //VisibleState[i] = NavigationBar.Groups[i].Visible;
            }

            Session["WebExplorerState"] = state;
            //Session["VisibleState"] = VisibleState;
            if (redirectURL != "")
                Response.Redirect(redirectURL);
        }
开发者ID:Soulrequiem,项目名称:final-project-whereever-whatever,代码行数:31,代码来源:MasterPage.Master.cs

示例7: if

 object Infragistics.Win.IEditorDataFilter.Convert(Infragistics.Win.EditorDataFilterConvertArgs args)
 {
     switch (args.Direction)
     {
         case ConversionDirection.EditorToOwner:
             args.Handled = true;
             CheckState state = (CheckState)args.Value;
             switch (state)
             {
                 case CheckState.Checked:
                     return MES_Misc.Y.ToString();
                 case CheckState.Unchecked:
                     return MES_Misc.N.ToString();
                 case CheckState.Indeterminate:
                     return "?";
             }
             break;
         case ConversionDirection.OwnerToEditor:
             args.Handled = true;
             if (args.Value.ToString() == MES_Misc.Y.ToString())
                 return CheckState.Checked;
             else if (args.Value.ToString() == MES_Misc.N.ToString())
                 return CheckState.Unchecked;
             else
                 return CheckState.Indeterminate;
     }
     return args.Value;
 }
开发者ID:jimidzj,项目名称:Inspect,代码行数:28,代码来源:CheckEditorStringDataFilter.cs

示例8: listaClickCellButton

 private void listaClickCellButton(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e)
 {
     if (e.Cell.Row.IsDataRow && e.Cell.Row.ListObject is SpedizioneArchiviazioneOtticaDTO)
     {
         var item = (SpedizioneArchiviazioneOtticaDTO)e.Cell.Row.ListObject;
     }
 }
开发者ID:gipasoft,项目名称:Sfera,代码行数:7,代码来源:ListaSpedizioniUC.cs

示例9: SetQueryGridStyle

        public static void SetQueryGridStyle(Infragistics.Win.UltraWinGrid.UltraGrid grid)
        {
            SetGridReadOnly(grid, true);
            grid.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;

            grid.DisplayLayout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.Extended;
            grid.DisplayLayout.Override.SelectTypeCell = SelectType.Extended;
            grid.DisplayLayout.Override.SelectTypeCol = SelectType.Extended;

            grid.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.No;
            grid.DisplayLayout.Override.AllowDelete = Infragistics.Win.DefaultableBoolean.False;
            grid.DisplayLayout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.False;

            grid.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.Horizontal;
            grid.DisplayLayout.NewColumnLoadStyle = NewColumnLoadStyle.Hide;
            grid.DisplayLayout.CaptionVisible = DefaultableBoolean.False;

            grid.DisplayLayout.Override.BorderStyleCell = UIElementBorderStyle.Dotted;
            grid.DisplayLayout.Override.BorderStyleRow = UIElementBorderStyle.Dotted;
            grid.DisplayLayout.BorderStyle = UIElementBorderStyle.Solid;

            grid.DisplayLayout.Appearance.BackColor = Color.White;
            grid.DisplayLayout.Override.CellAppearance.BorderColor = System.Drawing.Color.Silver;
            grid.DisplayLayout.Override.RowAppearance.BorderColor = System.Drawing.Color.Silver;

            grid.DisplayLayout.Override.HeaderClickAction = HeaderClickAction.SortMulti;

            //Grid cell can be copy to clipboard
            grid.DisplayLayout.Override.AllowMultiCellOperations = AllowMultiCellOperation.Copy;
            grid.PerformAction(UltraGridAction.Copy);
        }
开发者ID:jimidzj,项目名称:Inspect,代码行数:31,代码来源:PublicFunction.cs

示例10: listaDoubleClickRow

        private void listaDoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e)
        {
            if (e.Row.IsDataRow && e.Row.ListObject is SpedizioneArchiviazioneOtticaDTO)
            {

            }
        }
开发者ID:gipasoft,项目名称:Sfera,代码行数:7,代码来源:ListaSpedizioniUC.cs

示例11: ugPaydates_ClickCell

 private void ugPaydates_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs e)
 {
     DataRow dr = ((System.Data.DataRowView)(((Infragistics.Win.UltraWinGrid.UltraGridRow)(ugPaydates.Selected.Rows.All[0])).ListObject)).Row;
     TimeConnector.Export.SelectedInvoiceNumber = dr.ItemArray[5].ToString();
     TimeConnector.Export.SetReportPath();
     UpdateForm();
 }
开发者ID:jackhuckins,项目名称:TimeLogApplication,代码行数:7,代码来源:frmInvoice.cs

示例12: ultraToolbarsManager3_ToolClick

        private void ultraToolbarsManager3_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
        {
            switch (e.Tool.Key.ToString())
            {
                case "Query":
                    {

                        DateTime begintime = this.dtTimeBegin.Value;
                        DateTime endtime = this.dtTimeEnd.Value;
                        if (begintime > endtime)
                        {
                            MessageBox.Show("截止日期不能小于开始日期!");
                            return;

                        }
                        String begintime_str = begintime.ToString("yyyy-MM-dd 00:00:00");
                        String endtime_str = endtime.ToString("yyyy-MM-dd 23:59:59");
                        //String strSelectSql = "select t.fs_enterfacno as 进厂流水号,t.fs_plancode as 预报编号,t.fs_cardnumber 卡号,t.fs_carno 车号,t.fd_enterfactime,t.fs_enterfacplace,t.fs_enterfacchecker,";
                        //strSelectSql+="t.fs_enterfacremark,t.fd_exitfactime,t.fs_exitfacplace,t.fs_exitfacchecker,t.fs_exitfacremark from dt_enterfacrecord t ";
                        string strSelectSql = " SELECT FS_ENTERFACNO,FS_CARDNUMBER,FS_CARNO ,FS_PLANCODE ,to_char(FD_ENTERFACTIME,'YYYY-MM-DD HH24:MI:SS') FD_ENTERFACTIME,FS_ENTERFACPLACE ,FS_ENTERFACCHECKER ,to_char(FD_EXITFACTIME,'YYYY-MM-DD HH24:MI:SS') FD_EXITFACTIME ,FS_EXITFACPLACE,FS_EXITFACCHECKER,FS_ENTERFACREMARK,FS_EXITFACREMARK FROM DT_ENTERFACRECORD t ";
                        strSelectSql += "where t.fd_enterfactime >=TO_DATE('" + begintime_str + "','YYYY-MM-DD HH24:MI:SS') and t.fd_exitfactime<=TO_DATE('" + endtime_str + "','YYYY-MM-DD HH24:MI:SS') ";
                        strSelectSql += "or (t.fd_enterfactime >=TO_DATE('" + begintime_str + "','YYYY-MM-DD HH24:MI:SS') and fn_enterfacflag=1)";
                        strSelectSql += " and FS_CARNO='" + txtCarNo.Text.Replace("'", "''") + "'";
                        CoreClientParam selectccp = new CoreClientParam();
                        selectccp.ServerName = "ygjzjl.carcard";
                        selectccp.MethodName = "queryByClientSql";
                        selectccp.ServerParams = new object[] { strSelectSql };
                        dataSet1.Tables["车辆入出厂信息"].Clear();
                        selectccp.SourceDataTable = dataSet1.Tables["车辆入出厂信息"];
                        this.ExecuteQueryToDataTable(selectccp, CoreInvokeType.Internal);
                        break;
                    }
            }
        }
开发者ID:Strongc,项目名称:sencond,代码行数:34,代码来源:CarEnterFactoryQuery.cs

示例13: ultraChart1_FillSceneGraph

        void ultraChart1_FillSceneGraph(object sender, Infragistics.UltraChart.Shared.Events.FillSceneGraphEventArgs e)
        {

            IAdvanceAxis xaxis = e.Grid["X"] as IAdvanceAxis;
            IAdvanceAxis yaxis = e.Grid["Y"] as IAdvanceAxis;

            if (xaxis == null)
            {
                return;
            }

            int xloc1 = (int)xaxis.MapMinimum;
            int xloc2 = (int)xaxis.MapMaximum;
            int yloc = (int)yaxis.Map(6);

            Box b = new Box(new Point(xloc1, yloc - 2), xloc2 - xloc1, 5, new LineStyle(LineCapStyle.NoAnchor, LineCapStyle.NoAnchor, LineDrawStyle.Solid));
            b.PE.Fill = Color.LightGreen;
            b.Value = 6d; // has to be a double for the value
            b.Caps = PCaps.HitTest | PCaps.Skin | PCaps.Tooltip;
            b.Chart = e.ChartCore.ChartType;
            b.Layer = e.ChartCore.GetChartLayer();
            b.Row = b.Column = -1; // have to set these to -1
            
            e.SceneGraph.Add(b);

        }
开发者ID:heimanhon,项目名称:researchwork,代码行数:26,代码来源:Form1.cs

示例14: uwgProjects_PageIndexChanged

 protected void uwgProjects_PageIndexChanged(object sender, Infragistics.WebUI.UltraWebGrid.PageEventArgs e)
 {
     this.uwgProjects.DisplayLayout.Pager.CurrentPageIndex = e.NewPageIndex;
     PopulateDataset();
     FormatGrid();
     this.uwgProjects.DisplayLayout.ActiveRow = this.uwgProjects.Rows[0];
 }
开发者ID:jbob24,项目名称:KPFF,代码行数:7,代码来源:MyProjects_Print.aspx.cs

示例15: wdtWeek_ValueChanged

        protected void wdtWeek_ValueChanged(object sender, Infragistics.WebUI.WebSchedule.WebDateChooser.WebDateChooserEventArgs e)
        {
            WyFirst = Schedule.GetWeekYear(DateTime.Parse(this.wdtWeek.Value.ToString()));
            WyLast = Schedule.GetWeekYearLast(WyFirst);

            BindGrid();
        }
开发者ID:jbob24,项目名称:KPFF,代码行数:7,代码来源:MyProjects.aspx.cs


注:本文中的Infragistics类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。