예제 #1
0
        private void _grid_Servers_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            UltraGridBand band = e.Layout.Bands[0];

            band.Columns[colSeverity].Header.Caption             = string.Empty;
            band.Columns[colSeverity].CellAppearance.ImageHAlign = Infragistics.Win.HAlign.Center;
            band.Columns[colSeverity].Width = 20;
            EditorWithText textEditor = new EditorWithText();

            band.Columns[colSeverity].Editor = textEditor;
            band.Columns[colSeverity].Hidden = true;

            band.Columns[colServer].Width = 160;

            band.Columns[colHigh].Header.Caption                = string.Empty;
            band.Columns[colHigh].Header.Appearance.Image       = global::Idera.SQLsecure.UI.Console.Properties.Resources.HighRisk_16;
            band.Columns[colHigh].Header.Appearance.ImageHAlign = HAlign.Center;
            band.Columns[colHigh].CellAppearance.TextHAlign     = HAlign.Right;
            band.Columns[colHigh].Width = 24;

            band.Columns[colMedium].Header.Caption                = string.Empty;
            band.Columns[colMedium].Header.Appearance.Image       = global::Idera.SQLsecure.UI.Console.Properties.Resources.MediumRisk_16;
            band.Columns[colMedium].Header.Appearance.ImageHAlign = HAlign.Center;
            band.Columns[colMedium].CellAppearance.TextHAlign     = HAlign.Right;
            band.Columns[colMedium].Width = 24;

            band.Columns[colLow].Header.Caption                = string.Empty;
            band.Columns[colLow].Header.Appearance.Image       = global::Idera.SQLsecure.UI.Console.Properties.Resources.LowRisk_16;
            band.Columns[colLow].Header.Appearance.ImageHAlign = HAlign.Center;
            band.Columns[colLow].CellAppearance.TextHAlign     = HAlign.Right;
            band.Columns[colLow].Width = 24;

            band.Columns[colStatus].Header.Caption = "Findings";
            band.Columns[colStatus].Hidden         = true;
        }
예제 #2
0
        private void gridProduct_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            // 自适应列宽
            e.Layout.AutoFitColumns          = false;
            e.Layout.Override.AllowColSizing = AllowColSizing.None;

            e.Layout.Override.AllowDelete = Infragistics.Win.DefaultableBoolean.False;

            // 设置Grid的Split窗口个数,建议设置为1--不允许Split
            e.Layout.MaxColScrollRegions = 1;
            e.Layout.MaxRowScrollRegions = 1;

            // 排序
            e.Layout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortSingle;

            e.Layout.Bands[0].Columns["ReceiptNO"].Width = 250;
            //e.Layout.Bands[0].Columns["itemdesc"].Width = 370;

            // 栏位名称
            e.Layout.Bands[0].Columns["ReceiptNO"].Header.Caption = "入库单号";
            //e.Layout.Bands[0].Columns["itemdesc"].Header.Caption = "库单描述";

            // 设置栏位是否允许编辑,及栏位的显示形式
            e.Layout.Bands[0].Columns["ReceiptNO"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            //e.Layout.Bands[0].Columns["itemdesc"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
        }
예제 #3
0
        private void gridTemp_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            gridTemp.DisplayLayout.Bands[0].Columns["SubjectName"].Hidden = true; // SubjectId
            gridTemp.DisplayLayout.Bands[0].Columns["SubjectName"].Width  = 300;  // SubjectName
            gridTemp.DisplayLayout.Bands[0].Columns["subjectId"].Width    = 300;  // SubjectName
            gridTemp.DisplayLayout.Bands[0].Columns["subjectCode"].Width  = 100;  // SubjectName
            gridTemp.DisplayLayout.Bands[0].Columns["marks"].Width        = 100;  // SubjectName

            //Caption
            gridTemp.DisplayLayout.Bands[0].Columns["subjectId"].Header.Caption   = "Subject";
            gridTemp.DisplayLayout.Bands[0].Columns["SubjectName"].Header.Caption = "Subject";
            gridTemp.DisplayLayout.Bands[0].Columns["subjectCode"].Header.Caption = "Code";
            gridTemp.DisplayLayout.Bands[0].Columns["marks"].Header.Caption       = "Marks";

            gridTemp.DisplayLayout.Bands[0].Columns["subjectId"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownValidate;

            //Change alternate color
            gridTemp.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.Cyan;
            gridTemp.DisplayLayout.Override.RowAlternateAppearance.ForeColor = Color.DarkBlue;

            //Hiding +/- Indicator
            this.gridTemp.DisplayLayout.Override.ExpansionIndicator = ShowExpansionIndicator.Never;

            //Hide Group Box Display
            e.Layout.GroupByBox.Hidden = true;
        }
예제 #4
0
        private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            Helper.SetGridDisplay(e);

            e.Layout.Bands[0].Columns["cnvcState"].Header.Caption    = "会员状态";
            e.Layout.Bands[0].Columns["cndEndDate"].Header.Caption   = "卡使用时限";
            e.Layout.Bands[0].Columns["cnvcOperFlag"].Header.Caption = "类型";
            e.Layout.Bands[0].Columns["cnnMemberFee"].Header.Caption = "会员费";
            //e.Layout.Bands[0].Columns["cnnMemberFee"].Hidden = true;
            e.Layout.Bands[0].Columns["cnvcFreeBalance"].Header.Caption  = "场次余额";
            e.Layout.Bands[0].Columns["cnvcFreeBalance"].Hidden          = true;
            e.Layout.Bands[0].Columns["cnvcMemberCardNo"].Header.Caption = "会员卡号";
            e.Layout.Bands[0].Columns["cnvcPaperNo"].Header.Caption      = "工商注册号";
            e.Layout.Bands[0].Columns["cnvcMemberRight"].Header.Caption  = "会员资格";
            e.Layout.Bands[0].Columns["cnvcMemberName"].Header.Caption   = "单位名称";
            e.Layout.Bands[0].Columns["cnnPrepay"].Header.Caption        = "充值金额";
            e.Layout.Bands[0].Columns["cnvcFree"].Header.Caption         = "免费场次";
            //e.Layout.Bands[0].Columns["cnvcFree"].Hidden = true;
            e.Layout.Bands[0].Columns["cnnBalance"].Header.Caption   = "缴费";
            e.Layout.Bands[0].Columns["cnvcDiscount"].Header.Caption = "折扣";
            e.Layout.Bands[0].Columns["cnvcDeptName"].Header.Caption = "部门";
            e.Layout.Bands[0].Columns["cnvcSales"].Header.Caption    = "销售人员";
            e.Layout.Bands[0].Columns["cnvcOperName"].Header.Caption = "操作员名称";
            e.Layout.Bands[0].Columns["cndOperDate"].Header.Caption  = "操作时间";

            e.Layout.Bands[0].Columns["cndOperDate"].CellActivation = Activation.NoEdit;
            e.Layout.Bands[0].Columns["cndOperDate"].Format         = "yyyy-MM-dd hh:mm";

            //e.Layout.Bands[0].Columns["cnnPrepay"].Header.Caption = "充值金额";
            e.Layout.Bands[0].Columns["cnnLastBalance"].Header.Caption = "上次余额";
            e.Layout.Bands[0].Columns["cnnBalance"].Header.Caption     = "当前余额";
            e.Layout.Bands[0].Columns["cnnDonate"].Header.Caption      = "赠送金额";

            e.Layout.Bands[0].SummaryFooterCaption = "合计:";
        }
예제 #5
0
        private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            // set band properties
            this.ultraGrid1.DisplayLayout.GroupByBox.Hidden            = true;
            this.ultraGrid1.DisplayLayout.CaptionVisible               = Infragistics.Win.DefaultableBoolean.True;
            this.ultraGrid1.DisplayLayout.CaptionAppearance.TextHAlign = Infragistics.Win.HAlign.Left;
            this.ultraGrid1.DisplayLayout.Override.AllowUpdate         = Infragistics.Win.DefaultableBoolean.False;
            this.ultraGrid1.DisplayLayout.Override.FilterUIType        = FilterUIType.HeaderIcons;

            foreach (Infragistics.Win.UltraWinGrid.UltraGridBand aBand in e.Layout.Bands)
            {
                aBand.Columns["CatID"].Hidden = true;
                if (!Regex.IsMatch(aBand.Key, "Type"))
                {
                    aBand.Columns["ParentCatID"].Hidden        = true;
                    aBand.Columns["Level"].Hidden              = true;
                    aBand.ColHeadersVisible                    = false;
                    aBand.Override.RowAppearance.FontData.Bold = Infragistics.Win.DefaultableBoolean.True;
                    aBand.Override.RowAppearance.BackColor     = Color.LightBlue;
                }
                else
                {
                    aBand.Columns["TypeID"].Hidden = true;
                    aBand.Override.RowAlternateAppearance.BackColor = Color.LightCyan;
                }
            }

            // set other layout properties
            e.Layout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
            e.Layout.Override.CellAppearance.BorderAlpha    = Infragistics.Win.Alpha.Transparent;
            e.Layout.Override.RowAppearance.BorderAlpha     = Infragistics.Win.Alpha.Transparent;
            e.Layout.Override.CellAppearance.BackColorAlpha = Infragistics.Win.Alpha.Transparent;
        }
예제 #6
0
        private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            Helper.SetGridDisplay(e);
            e.Layout.Bands[0].Columns["cnnID"].Hidden = true;
            e.Layout.Bands[0].Columns["cnvcMemberCardNo"].Header.Caption = "会员卡号";
            e.Layout.Bands[0].Columns["cnvcMemberPwd"].Hidden            = true;
            e.Layout.Bands[0].Columns["cnvcMemberName"].Header.Caption   = "单位名称";
            e.Layout.Bands[0].Columns["cnvcOperName"].Header.Caption     = "操作员";
            e.Layout.Bands[0].Columns["cndOperDate"].Header.Caption      = "操作时间";
            e.Layout.Bands[0].Columns["cnvcBillType"].Header.Caption     = "小票类型";
            e.Layout.Bands[0].Columns["cnvcPaperNo"].Header.Caption      = "工商注册号";
            e.Layout.Bands[0].Columns["cnvcProduct"].Header.Caption      = "服务产品";
            e.Layout.Bands[0].Columns["cnvcFree"].Header.Caption         = "剩余场次";
            e.Layout.Bands[0].Columns["cnvcFree"].Hidden                = true;
            e.Layout.Bands[0].Columns["cnvcSeat"].Header.Caption        = "展位";
            e.Layout.Bands[0].Columns["cnvcMemberRight"].Header.Caption = "会员资格";
            e.Layout.Bands[0].Columns["cnvcShow"].Hidden                = true;
            e.Layout.Bands[0].Columns["cnvcJobInfo"].Hidden             = true;
            e.Layout.Bands[0].Columns["cnnRepeats"].Hidden              = true;
            e.Layout.Bands[0].Columns["cnnMemberFee"].Hidden            = true;
            e.Layout.Bands[0].Columns["cnvcDiscount"].Hidden            = true;
            //e.Layout.Bands[0].Columns["cnnPrepay"].Hidden = true;
            e.Layout.Bands[0].Columns["cndEndDate"].Hidden          = true;
            e.Layout.Bands[0].Columns["cndOperDate"].CellActivation = Activation.NoEdit;
            e.Layout.Bands[0].Columns["cndOperDate"].Format         = "yyyy-MM-dd hh:mm";

            e.Layout.Bands[0].Columns["cnnPrepay"].Header.Caption      = "充值金额";
            e.Layout.Bands[0].Columns["cnnLastBalance"].Header.Caption = "上次余额";
            e.Layout.Bands[0].Columns["cnnBalance"].Header.Caption     = "当前余额";
            e.Layout.Bands[0].Columns["cnnDonate"].Header.Caption      = "赠送金额";
            e.Layout.Bands[0].Columns["cnvcSynch"].Header.Caption      = "同步标志";
        }
예제 #7
0
파일: ctlRates.cs 프로젝트: jpheary/Argix08
        private void OnGridInitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            //
            try {
                switch (e.Layout.Rows.Band.Key)
                {
                case "RateMileageTable":
                    e.Layout.Bands["RateMileageTable"].Columns["AgentNumber"].ValueList     = this.uddAgentType;
                    e.Layout.Bands["RateMileageTable"].Columns["EquipmentTypeID"].ValueList = this.uddEquipType;
                    break;

                case "RateUnitTable":
                    e.Layout.Bands["RateUnitTable"].Columns["AgentNumber"].ValueList     = this.uddAgentType;
                    e.Layout.Bands["RateUnitTable"].Columns["EquipmentTypeID"].ValueList = this.uddEquipType;
                    break;

                case "RateMileageRouteTable":
                    e.Layout.Bands["RateMileageRouteTable"].Columns["AgentNumber"].ValueList = this.uddAgentType;
                    break;

                case "RateUnitRouteTable":
                    e.Layout.Bands["RateUnitRouteTable"].Columns["AgentNumber"].ValueList = this.uddAgentType;
                    break;
                }
            }
            catch (Exception ex) { reportError(ex); }
        }
예제 #8
0
        private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            e.Layout.Bands[0].Columns["ConfigXML"].Hidden     = true;
            e.Layout.Bands[0].Columns["ID"].Hidden            = true;
            e.Layout.Bands[0].Columns["Title"].CellActivation = Activation.ActivateOnly;
            e.Layout.Bands[0].Columns["Title"].Width          = 284;
            e.Layout.Bands[0].Columns["Title"].SortIndicator  = SortIndicator.Ascending;

            e.Layout.Bands[0].Columns["CreatedDate"].Header.Caption  = "Created On";
            e.Layout.Bands[0].Columns["CreatedDate"].Format          = "MM/dd/yy";
            e.Layout.Bands[0].Columns["CreatedDate"].EditorControl   = ultraCalendarCombo1;
            e.Layout.Bands[0].Columns["ModifiedDate"].Header.Caption = "Modified On";
            e.Layout.Bands[0].Columns["ModifiedDate"].Format         = "MM/dd/yy";
            e.Layout.Bands[0].Columns["ModifiedDate"].EditorControl  = ultraCalendarCombo1;

            e.Layout.Bands[0].Columns["CreatedDate"].CellActivation  = Activation.Disabled;
            e.Layout.Bands[0].Columns["ModifiedDate"].CellActivation = Activation.Disabled;

            this.ultraGrid1.DisplayLayout.GroupByBox.Hidden = true;
            this.ultraGrid1.DisplayLayout.CaptionVisible    = Infragistics.Win.DefaultableBoolean.False;
            e.Layout.Override.FilterUIType = FilterUIType.HeaderIcons;
            this.ultraGrid1.DisplayLayout.Override.CellClickAction = CellClickAction.RowSelect;
            this.ultraGrid1.DisplayLayout.Override.ActiveRowAppearance.Reset();
            this.ultraGrid1.DisplayLayout.Override.ActiveCellAppearance.Reset();
            e.Layout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;
            UltraGridColumn col = e.Layout.Bands[0].Columns["ReportType"];

            e.Layout.Bands[0].SortedColumns.Add(col, false);
            this.ultraGrid1.DisplayLayout.Bands[0].SortedColumns.RefreshSort(true);
        }
예제 #9
0
        private void gridList_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            try
            {
                //Setup Grid
                gridList.DisplayLayout.Bands[0].Columns[0].Hidden = true; //ModuleId
                gridList.DisplayLayout.Bands[0].Columns[1].Width  = 550;  //ModuleName

                gridList.DisplayLayout.Bands[0].Columns[0].Header.Caption = "Group Id";
                gridList.DisplayLayout.Bands[0].Columns[1].Header.Caption = "Group Name";

                //Change alternate color
                gridList.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.Cyan;
                gridList.DisplayLayout.Override.RowAlternateAppearance.ForeColor = Color.DarkBlue;

                //Select Full Row when click on any cell
                e.Layout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect;

                //Selection Style Will Be Row Selector
                this.gridList.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;

                //Stop Updating
                this.gridList.DisplayLayout.Override.AllowUpdate = DefaultableBoolean.False;

                //Hiding +/- Indicator
                this.gridList.DisplayLayout.Override.ExpansionIndicator = ShowExpansionIndicator.Never;

                //Hide Group Box Display
                e.Layout.GroupByBox.Hidden = true;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
예제 #10
0
        private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            //Helper.SetGridDisplay(e);
            //Infragistics.Win.UltraWinGrid.UltraGridColumn uc = new UltraGridColumn()
            //Infragistics.Shared.IKeyedSubObject ik = Infragistics.Win.UltraWinGrid.UltraGridColumn
            //e.Layout.Bands[0].Columns.Contains()

            //Helper.SetGridDisplay(e);
            //
            //Helper.SetGridDisplay(e);
            e.Layout.ScrollBounds = ScrollBounds.ScrollToFill;
            //e.Layout.Override.CellClickAction = CellClickAction.;
            e.Layout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.Single;//UltraWinGrid.SelectType.Single;

            e.Layout.Bands[0].Override.SummaryFooterCaptionAppearance.FontData.Bold = DefaultableBoolean.True;
            e.Layout.Bands[0].Override.SummaryValueAppearance.BackColor             = Color.White;
            e.Layout.Bands[0].Override.SummaryValueAppearance.TextHAlign            = HAlign.Right;
            e.Layout.Bands[0].Override.SummaryFooterCaptionAppearance.BackColor     = Color.White;

            foreach (UltraGridColumn col in e.Layout.Bands[0].Columns)
            {
                col.CellActivation = Activation.NoEdit;
            }


            e.Layout.Bands[0].Columns["id"].Header.Caption      = "id";
            e.Layout.Bands[0].Columns["id"].Hidden              = true;
            e.Layout.Bands[0].Columns["begin"].Header.Caption   = "Æðʼ½ð¶î";
            e.Layout.Bands[0].Columns["percent"].Header.Caption = "ÔùËͱÈÀý%";
            //e.Layout.Bands[0].Columns["percent"].Hidden = true;
            e.Layout.Bands[0].Columns["up"].Header.Caption = "ÔùËÍÏÞ¶î";
        }
예제 #11
0
파일: FUp.cs 프로젝트: windygu/.net-wms
        private void ultraGridEventList_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            // 自适应列宽
            e.Layout.AutoFitColumns          = false;
            e.Layout.Override.AllowColSizing = AllowColSizing.Free;
            e.Layout.ScrollBounds            = ScrollBounds.ScrollToFill;

            // 设置Grid的Split窗口个数,建议设置为1--不允许Split
            e.Layout.MaxColScrollRegions = 1;
            e.Layout.MaxRowScrollRegions = 1;

            // 排序
            e.Layout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortSingle;

            // 不允许删除
            e.Layout.Override.AllowDelete = DefaultableBoolean.False;

            // 滚动提示
            e.Layout.Bands[0].ScrollTipField = "EventCode";

            // 设置列宽和列名称
            e.Layout.Bands[0].Columns["EventCode"].Header.Caption  = "事件号";
            e.Layout.Bands[0].Columns["DownQty"].Header.Caption    = "下地数量";
            e.Layout.Bands[0].Columns["DownReason"].Header.Caption = "下地原因";
            e.Layout.Bands[0].Columns["EventCode"].Width           = 250;
            e.Layout.Bands[0].Columns["DownQty"].Width             = 100;
            e.Layout.Bands[0].Columns["DownReason"].Width          = 300;

            // 设置栏位是否允许编辑,及栏位的显示形式
            e.Layout.Bands[0].Columns["EventCode"].CellActivation  = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            e.Layout.Bands[0].Columns["DownQty"].CellActivation    = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            e.Layout.Bands[0].Columns["DownReason"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;

            e.Layout.Bands[0].Columns["DownQty"].CellAppearance.TextHAlign = HAlign.Right;
        }
예제 #12
0
        private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            Helper.SetGridDisplay(e);

            e.Layout.Bands[0].Columns["cnvcMoneyType"].Header.Caption    = "收入项目";
            e.Layout.Bands[0].Columns["cnvcMemberCardNo"].Header.Caption = "会员卡号";
            e.Layout.Bands[0].Columns["cnvcPaperNo"].Header.Caption      = "工商注册号";
            e.Layout.Bands[0].Columns["cnvcMemberName"].Header.Caption   = "单位名称";
            e.Layout.Bands[0].Columns["cnnPrepay"].Header.Caption        = "实收";

            e.Layout.Bands[0].Columns["cnnBalance"].Header.Caption      = "当前余额";
            e.Layout.Bands[0].Columns["cnnLastBalance"].Header.Caption  = "上次余额";
            e.Layout.Bands[0].Columns["cnnDonate"].Header.Caption       = "赠送金额";
            e.Layout.Bands[0].Columns["cnvcDeptName"].Header.Caption    = "部门";
            e.Layout.Bands[0].Columns["cnvcSales"].Header.Caption       = "销售人员";
            e.Layout.Bands[0].Columns["cnvcOperName"].Header.Caption    = "操作员名称";
            e.Layout.Bands[0].Columns["cndOperDate"].Header.Caption     = "操作时间";
            e.Layout.Bands[0].Columns["cnvcMemberRight"].Header.Caption = "会员资格";

            e.Layout.Bands[0].Columns["cndOperDate"].CellActivation = Activation.NoEdit;
            e.Layout.Bands[0].Columns["cndOperDate"].Format         = "yyyy-MM-dd hh:mm";

            e.Layout.Bands[0].SummaryFooterCaption = "合计:";

            //e.Layout.Bands[0].Columns["cnnSerialNo"].Hidden = true;
        }
        private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)

        {
            try
            {
                UltraGridColumn columnToSummarize = e.Layout.Bands[0].Columns[13];
                SummarySettings summary           = e.Layout.Bands[0].Summaries.Add("GrandTotal", SummaryType.Sum, columnToSummarize);
                summary.DisplayFormat         = "Total Stock = {0}";
                summary.Appearance.TextHAlign = Infragistics.Win.HAlign.Right;

                columnToSummarize             = e.Layout.Bands[0].Columns[14];
                summary                       = e.Layout.Bands[0].Summaries.Add("PriceAvg", SummaryType.Sum, columnToSummarize);
                summary.DisplayFormat         = "Total Pedidos = {0}";
                summary.Appearance.TextHAlign = Infragistics.Win.HAlign.Right;

                columnToSummarize             = e.Layout.Bands[0].Columns[10];
                summary                       = e.Layout.Bands[0].Summaries.Add("Promedio ", SummaryType.Average, columnToSummarize);
                summary.DisplayFormat         = "Promedio PVP= {0:c}";
                summary.Appearance.TextHAlign = Infragistics.Win.HAlign.Right;

                this.ultraGrid1.DisplayLayout.Override.SummaryFooterCaptionVisible = Infragistics.Win.DefaultableBoolean.False;

                e.Layout.Override.SummaryDisplayArea = SummaryDisplayAreas.BottomFixed;

                e.Layout.Bands[0].Summaries.Add(SummaryType.Sum, e.Layout.Bands[0].Columns[59]);
            }
            catch (Exception ex)
            {
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }
예제 #14
0
        //public void getSerialNum(string Ident)
        //{
        //    //WebDataGridSerial.DataSource = null;
        //    string sql = " SELECT [auto_id],status,[serial_num],[parent_serial_num] ,[asset_tag_num],reference,ponum,poline  FROM [MIMDIST].[dbo].[BTS_GoogleIntInvTranSerial]  where uniqueIdent='" + Ident + "'";
        //    SqlConnection cn = new SqlConnection(constr);
        //    SqlCommand cmd = new SqlCommand(sql, cn);
        //    SqlDataAdapter da = new SqlDataAdapter(cmd);
        //    DataSet dsSerial = new DataSet();
        //    da.Fill(dsSerial);
        //  //  ugBTSSerial.DataSource = dsSerial.Tables[0];

        //}

        private void ugBTS_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            e.Layout.Bands[0].Columns["Status"].ValueList      = this.ddStatus;
            e.Layout.Bands[0].Columns["tran_type"].ValueList   = this.ddTranType;
            e.Layout.Bands[0].Columns["tran_source"].ValueList = this.ddSource;
            e.Layout.Bands[0].Columns["location"].ValueList    = this.ddLocation;
        }
예제 #15
0
        private void gridList_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            try
            {
                ////select A.UserID, A.UserName ,  A.UserPass,A.SecQuestion,A.SecAnswer,A.userTypeId,A.userCatId, A.RelId,A.DisplayName ,B.userCatName,C.userTypeName,
                ///case A.IsInactive When 0 Then 'False' Else 'True' End As IsInactive
                ////From tblWeb_User As A
                //Setup Grid

                gridList.DisplayLayout.Bands[0].Columns["UserName"].Width     = 110;   //User Name
                gridList.DisplayLayout.Bands[0].Columns["DisplayName"].Width  = 200;   //Is Inactive
                gridList.DisplayLayout.Bands[0].Columns["userCatName"].Width  = 100;   //Is Inactive
                gridList.DisplayLayout.Bands[0].Columns["userTypeName"].Width = 100;   //Is Inactive
                gridList.DisplayLayout.Bands[0].Columns["IsInactive"].Width   = 100;   //Is Inactive

                gridList.DisplayLayout.Bands[0].Columns["UserID"].Hidden       = true; //User Id
                gridList.DisplayLayout.Bands[0].Columns["RelId"].Hidden        = true; //Is Inactive
                gridList.DisplayLayout.Bands[0].Columns["UserPass"].Hidden     = true; //User Password
                gridList.DisplayLayout.Bands[0].Columns["SecQuestion"].Hidden  = true; //Group Id
                gridList.DisplayLayout.Bands[0].Columns["SecAnswer"].Hidden    = true; //Group Name
                gridList.DisplayLayout.Bands[0].Columns["userTypeName"].Hidden = true; //Is Inactive
                gridList.DisplayLayout.Bands[0].Columns["userCatId"].Hidden    = true; //Is Inactive
                gridList.DisplayLayout.Bands[0].Columns["userTypeId"].Hidden   = true; //Is Inactive

                gridList.DisplayLayout.Bands[0].Columns["UserName"].Header.Caption     = "User Name";
                gridList.DisplayLayout.Bands[0].Columns["DisplayName"].Header.Caption  = "Display Name";
                gridList.DisplayLayout.Bands[0].Columns["userCatName"].Header.Caption  = "User Category";
                gridList.DisplayLayout.Bands[0].Columns["userTypeName"].Header.Caption = "User Type";
                gridList.DisplayLayout.Bands[0].Columns["IsInactive"].Header.Caption   = "Inactive";

                //Change alternate color
                gridList.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.Cyan;
                gridList.DisplayLayout.Override.RowAlternateAppearance.ForeColor = Color.DarkBlue;

                //Show Check Box Columns
                this.gridList.DisplayLayout.Bands[0].Columns["IsInactive"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox;

                //Select Full Row when click on any cell
                e.Layout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect;

                //Selection Style Will Be Row Selector
                this.gridList.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.True;

                //Stop Updating
                this.gridList.DisplayLayout.Override.AllowUpdate = DefaultableBoolean.False;

                //Hiding +/- Indicator
                this.gridList.DisplayLayout.Override.ExpansionIndicator = ShowExpansionIndicator.Never;

                //Hide Group Box Display
                e.Layout.GroupByBox.Hidden = true;

                //Use Filtering
                this.gridList.DisplayLayout.Override.AllowRowFiltering = DefaultableBoolean.True;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
예제 #16
0
        private void ultraGridScrutiny_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            _UltraWinGridHelper1 = new UltraWinGridHelper(this.ultraGridScrutiny);

            _UltraWinGridHelper1.AddReadOnlyColumn("Docserial", "文件序号");
            _UltraWinGridHelper1.AddReadOnlyColumn("Dirserial", "目录序号");
            _UltraWinGridHelper1.AddReadOnlyColumn("Docname", "文件名称");
            _UltraWinGridHelper1.AddReadOnlyColumn("Docnum", "文件编号");
            _UltraWinGridHelper1.AddReadOnlyColumn("Docver", "版本");
            _UltraWinGridHelper1.AddReadOnlyColumn("DirName", "文档目录");
            _UltraWinGridHelper1.AddReadOnlyColumn("Mcodelist", "产品代码");
            _UltraWinGridHelper1.AddReadOnlyColumn("Oplist", "工序");
            _UltraWinGridHelper1.AddReadOnlyColumn("Docchgnum", "更改单号");
            _UltraWinGridHelper1.AddReadOnlyColumn("Docchgfile", "更改文件");
            _UltraWinGridHelper1.AddReadOnlyColumn("Memo", "备注");
            _UltraWinGridHelper1.AddReadOnlyColumn("Keyword", "关键字");
            _UltraWinGridHelper1.AddReadOnlyColumn("Doctype", "文档类型");
            _UltraWinGridHelper1.AddReadOnlyColumn("CHECKEDSTATUS", "审核是否通过");
            _UltraWinGridHelper1.AddReadOnlyColumn("VALIDATESTATUS", "是否有效");
            _UltraWinGridHelper1.AddReadOnlyColumn("Upfiledate", "上传日期");
            _UltraWinGridHelper1.AddReadOnlyColumn("Upuser", "上传人");
            _UltraWinGridHelper1.AddReadOnlyColumn("Mdate", "最后编辑日期");
            _UltraWinGridHelper1.AddReadOnlyColumn("Muser", "最后编辑人");
            _UltraWinGridHelper1.AddReadOnlyColumn("Mtime", "最后编辑时间");
            _UltraWinGridHelper1.AddReadOnlyColumn("ServerFullName", "服务器文件名");

            //this.InitGridLanguage(ultraGridScrutiny);
        }
예제 #17
0
        private void gridInfo_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            // 自适应列宽
            e.Layout.AutoFitColumns = false;
            //e.Layout.Override.AllowColSizing = AllowColSizing.None;

            e.Layout.Override.AllowDelete = Infragistics.Win.DefaultableBoolean.False;

            // 排序
            e.Layout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortSingle;

            e.Layout.Bands[0].Columns["originalcompany"].Width = 100;
            e.Layout.Bands[0].Columns["stackcode"].Width       = 150;
            e.Layout.Bands[0].Columns["palletcode"].Width      = 150;
            e.Layout.Bands[0].Columns["rcard"].Width           = 150;
            e.Layout.Bands[0].Columns["itemcode"].Width        = 150;
            e.Layout.Bands[0].Columns["itemdesc"].Width        = 150;

            // 栏位名称
            e.Layout.Bands[0].Columns["originalcompany"].Header.Caption = "原公司";
            e.Layout.Bands[0].Columns["stackcode"].Header.Caption       = "垛位";
            e.Layout.Bands[0].Columns["palletcode"].Header.Caption      = "栈板";
            e.Layout.Bands[0].Columns["rcard"].Header.Caption           = "序列号";
            e.Layout.Bands[0].Columns["itemcode"].Header.Caption        = "产品";
            e.Layout.Bands[0].Columns["itemdesc"].Header.Caption        = "产品描述";

            // 设置栏位是否允许编辑,及栏位的显示形式
            e.Layout.Bands[0].Columns["originalcompany"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            e.Layout.Bands[0].Columns["stackcode"].CellActivation       = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            e.Layout.Bands[0].Columns["palletcode"].CellActivation      = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            e.Layout.Bands[0].Columns["rcard"].CellActivation           = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            e.Layout.Bands[0].Columns["itemcode"].CellActivation        = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            e.Layout.Bands[0].Columns["itemdesc"].CellActivation        = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
        }
예제 #18
0
        private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            Helper.SetGridDisplay(e);

            //e.Layout.Bands[0].Columns["cnvcState"].Header.Caption = "会员状态";
            //e.Layout.Bands[0].Columns["cndEndDate"].Header.Caption = "卡使用时限";
            e.Layout.Bands[0].Columns["cnvcProduct"].Header.Caption = "服务产品";
            //e.Layout.Bands[0].Columns["cnvcFreeBalance"].Header.Caption = "免费场次余额";
            e.Layout.Bands[0].Columns["cnvcMemberCardNo"].Header.Caption = "会员卡号";
            e.Layout.Bands[0].Columns["cnvcPaperNo"].Header.Caption      = "工商注册号";
            e.Layout.Bands[0].Columns["cnvcMemberName"].Header.Caption   = "单位名称";
            //e.Layout.Bands[0].Columns["cnnPrepay"].Header.Caption = "充值金额";
            //e.Layout.Bands[0].Columns["cnvcFree"].Header.Caption = "免费场次";
            //e.Layout.Bands[0].Columns["cnnBalance"].Header.Caption = "缴费";
            //e.Layout.Bands[0].Columns["cnvcDiscount"].Header.Caption = "折扣";
            e.Layout.Bands[0].Columns["cnvcOperName"].Header.Caption = "操作员名称";
            e.Layout.Bands[0].Columns["cndOperDate"].Header.Caption  = "操作时间";

            e.Layout.Bands[0].Columns["cndOperDate"].CellActivation = Activation.NoEdit;
            e.Layout.Bands[0].Columns["cndOperDate"].Format         = "yyyy-MM-dd hh:mm";

            e.Layout.Bands[0].SummaryFooterCaption = "合计:";

            e.Layout.Bands[0].Columns["cnnSerialNo"].Hidden = true;
        }
예제 #19
0
        //private string m_StorageCode;

        //public string StorageCode
        //{
        //    get { return m_StorageCode; }
        //    set { m_StorageCode = value; }
        //}

        //private string  m_StackCode;

        //public string  StackCode
        //{
        //    get { return m_StackCode; }
        //    set { m_StackCode = value; }
        //}



        private void gridStorage_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            // 自适应列宽
            e.Layout.AutoFitColumns          = false;
            e.Layout.Override.AllowColSizing = AllowColSizing.None;

            e.Layout.Override.AllowDelete = Infragistics.Win.DefaultableBoolean.False;

            // 设置Grid的Split窗口个数,建议设置为1--不允许Split
            e.Layout.MaxColScrollRegions = 1;
            e.Layout.MaxRowScrollRegions = 1;

            // 排序
            e.Layout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortSingle;

            e.Layout.Bands[0].Columns["StoreroomCode"].Width = 100;
            e.Layout.Bands[0].Columns["StorageName"].Width   = 140;

            // 栏位名称
            e.Layout.Bands[0].Columns["StoreroomCode"].Header.Caption = "库房代码";
            e.Layout.Bands[0].Columns["StorageName"].Header.Caption   = "库房描述";

            // 设置栏位是否允许编辑,及栏位的显示形式
            e.Layout.Bands[0].Columns["StoreroomCode"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            e.Layout.Bands[0].Columns["StorageName"].CellActivation   = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            this.InitGridLanguage(gridStorage);
        }
예제 #20
0
 private void gridDataBKUp_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
 {
     try
     {
         gridDataBKUp.DisplayLayout.Bands[0].Columns["dbName"].Header.Caption = "Database Name";
         gridDataBKUp.DisplayLayout.Bands[0].Columns["dbName"].Width          = 200;
         gridDataBKUp.DisplayLayout.Bands[0].Columns["Mark"].Header.Caption   = "Mark";
         gridDataBKUp.DisplayLayout.Bands[0].Columns["Mark"].Width            = 120;
         gridDataBKUp.DisplayLayout.Bands[0].Columns["SLNo"].Hidden           = true;
         gridDataBKUp.DisplayLayout.Bands[0].Columns["dbName"].CellActivation = Activation.NoEdit;
         gridDataBKUp.DisplayLayout.Bands[0].Columns["Mark"].Style            = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox;
         //Select Full Row when click on any cell
         //  e.Layout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect;
         //Selection Style Will Be Row Selector
         this.gridDataBKUp.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
         //Stop Updating
         // this.gridDataBKUp.DisplayLayout.Override.AllowUpdate = DefaultableBoolean.False;
         //Hiding +/‐ Indicator
         this.gridDataBKUp.DisplayLayout.Override.ExpansionIndicator = ShowExpansionIndicator.Never;
         //Hide Group Box Display
         e.Layout.GroupByBox.Hidden = true;
         //Use Filtering
         this.gridDataBKUp.DisplayLayout.Override.AllowRowFiltering = DefaultableBoolean.True;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
예제 #21
0
        private void ultraGridReworkRcard_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            // 自适应列宽
            e.Layout.AutoFitColumns          = false;
            e.Layout.Override.AllowColSizing = AllowColSizing.Free;
            e.Layout.ScrollBounds            = ScrollBounds.ScrollToFill;

            // 设置Grid的Split窗口个数,建议设置为1--不允许Split
            e.Layout.MaxColScrollRegions = 1;
            e.Layout.MaxRowScrollRegions = 1;

            // 排序
            e.Layout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortSingle;

            // 不允许删除
            e.Layout.Override.AllowDelete = DefaultableBoolean.False;

            // 设置列宽和列名称
            e.Layout.Bands[0].Columns["PalletCode"].Header.Caption = "栈板";
            e.Layout.Bands[0].Columns["Rcard"].Header.Caption      = "产品序列号";
            e.Layout.Bands[0].Columns["Status"].Header.Caption     = "状态";

            e.Layout.Bands[0].Columns["PalletCode"].Width = 200;
            e.Layout.Bands[0].Columns["Rcard"].Width      = 200;
            e.Layout.Bands[0].Columns["Status"].Width     = 100;

            // 设置栏位是否允许编辑,及栏位的显示形式
            e.Layout.Bands[0].Columns["PalletCode"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            e.Layout.Bands[0].Columns["Rcard"].CellActivation      = Infragistics.Win.UltraWinGrid.Activation.NoEdit;
            e.Layout.Bands[0].Columns["Status"].CellActivation     = Infragistics.Win.UltraWinGrid.Activation.NoEdit;

            e.Layout.Bands[0].Columns["Rcard"].SortIndicator = SortIndicator.Ascending;
        }
예제 #22
0
        private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            Helper.SetGridDisplay(e);
            e.Layout.Bands[0].Columns["cnnJobID"].Hidden                 = true;
            e.Layout.Bands[0].Columns["cnvcOperName"].Hidden             = true;
            e.Layout.Bands[0].Columns["cndOperDate"].Hidden              = true;
            e.Layout.Bands[0].Columns["cnvcJobName"].Header.Caption      = "招聘会名称";
            e.Layout.Bands[0].Columns["cnvcJobTheme"].Header.Caption     = "所属服务产品";
            e.Layout.Bands[0].Columns["cndBeginDate"].Header.Caption     = "招聘会开始时间";
            e.Layout.Bands[0].Columns["cndEndDate"].Header.Caption       = "招聘会结束时间";
            e.Layout.Bands[0].Columns["cndBookBeginDate"].Header.Caption = "预订开始时间";
            e.Layout.Bands[0].Columns["cndBookEndDate"].Header.Caption   = "预订结束时间";
            e.Layout.Bands[0].Columns["cndBeginDate"].Format             = "yyyy-MM-dd hh:mm";
            e.Layout.Bands[0].Columns["cndEndDate"].Format               = "yyyy-MM-dd hh:mm";
            e.Layout.Bands[0].Columns["cndBookBeginDate"].Format         = "yyyy-MM-dd hh:mm";
            e.Layout.Bands[0].Columns["cndBookEndDate"].Format           = "yyyy-MM-dd hh:mm";

            e.Layout.Bands[0].Columns["cndBeginDate"].CellActivation     = Activation.NoEdit;
            e.Layout.Bands[0].Columns["cndEndDate"].CellActivation       = Activation.NoEdit;
            e.Layout.Bands[0].Columns["cndBookBeginDate"].CellActivation = Activation.NoEdit;
            e.Layout.Bands[0].Columns["cndBookEndDate"].CellActivation   = Activation.NoEdit;

            e.Layout.Bands[0].Columns["cnnPrice"].Header.Caption    = "单价";
            e.Layout.Bands[0].Columns["cnnDiscount"].Header.Caption = "折扣";

            e.Layout.Bands[0].Columns["cndBeginDate"].Width     = 100;
            e.Layout.Bands[0].Columns["cndEndDate"].Width       = 100;
            e.Layout.Bands[0].Columns["cndBookBeginDate"].Width = 100;
            e.Layout.Bands[0].Columns["cndBookEndDate"].Width   = 100;
            e.Layout.Bands[0].Columns["cnnPrice"].Width         = 50;
            e.Layout.Bands[0].Columns["cnnDiscount"].Width      = 50;
        }
예제 #23
0
        private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            Helper.SetGridDisplay(e);
            e.Layout.Bands[0].Columns["cnnJobID"].Hidden                 = true;
            e.Layout.Bands[0].Columns["cnvcOperName"].Hidden             = true;
            e.Layout.Bands[0].Columns["cndOperDate"].Hidden              = true;
            e.Layout.Bands[0].Columns["cnvcJobName"].Header.Caption      = "招聘会名称";
            e.Layout.Bands[0].Columns["cnvcJobTheme"].Header.Caption     = "招聘会主题";
            e.Layout.Bands[0].Columns["cndBeginDate"].Header.Caption     = "招聘会开始时间";
            e.Layout.Bands[0].Columns["cndEndDate"].Header.Caption       = "招聘会结束时间";
            e.Layout.Bands[0].Columns["cndBookBeginDate"].Header.Caption = "预订开始时间";
            e.Layout.Bands[0].Columns["cndBookEndDate"].Header.Caption   = "预订结束时间";
            e.Layout.Bands[0].Columns["cndBeginDate"].Format             = "yyyy-MM-dd hh:mm";
            e.Layout.Bands[0].Columns["cndEndDate"].Format               = "yyyy-MM-dd hh:mm";
            e.Layout.Bands[0].Columns["cndBookBeginDate"].Format         = "yyyy-MM-dd hh:mm";
            e.Layout.Bands[0].Columns["cndBookEndDate"].Format           = "yyyy-MM-dd hh:mm";

            e.Layout.Bands[0].Columns["cndBeginDate"].CellActivation     = Activation.NoEdit;
            e.Layout.Bands[0].Columns["cndEndDate"].CellActivation       = Activation.NoEdit;
            e.Layout.Bands[0].Columns["cndBookBeginDate"].CellActivation = Activation.NoEdit;
            e.Layout.Bands[0].Columns["cndBookEndDate"].CellActivation   = Activation.NoEdit;

            e.Layout.Bands[0].Columns["cndBeginDate"].Width     = 120;
            e.Layout.Bands[0].Columns["cndEndDate"].Width       = 120;
            e.Layout.Bands[0].Columns["cndBookBeginDate"].Width = 120;
            e.Layout.Bands[0].Columns["cndBookEndDate"].Width   = 120;

            //e.Layout.Bands(1).Columns("Amount").Format = """$""#,##0.00"
        }
예제 #24
0
 private void dgvDatos_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
 {
     e.Layout.Bands[0].Columns["CardCode"].Hidden        = true;
     e.Layout.Bands[0].Columns["CodRuta"].Header.Caption = "Codigo de Ruta";
     e.Layout.Bands[0].Columns["Sucursal"].Hidden        = true;
     e.Layout.Bands[0].Columns["Elegido"].Header.Caption = "Elegido";
 }
예제 #25
0
        private void UgvExProps_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            //e.Layout.UseFixedHeaders = true;
            //e.Layout.Override.AllowDelete = Infragistics.Win.DefaultableBoolean.False;
            //e.Layout.Override.AllowColSizing = AllowColSizing.Free;
            //e.Layout.Override.DefaultColWidth = 150;

            //e.Layout.Appearance.BackColor = Color.White;

            //e.Layout.Override.MergedCellStyle = Infragistics.Win.UltraWinGrid.MergedCellStyle.Always;
            foreach (UltraGridBand band in e.Layout.Bands)
            {
                foreach (UltraGridColumn column in band.Columns)
                {
                    if (char.IsDigit(column.Key.ToArray().Last()))
                    {
                        column.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;
                        column.Width = 30;
                        column.RowLayoutColumnInfo.PreferredCellSize = new Size(30, column.RowLayoutColumnInfo.PreferredCellSize.Height);
                        //column.RowLayoutColumnInfo.PreferredLabelSize = new Size(column.RowLayoutColumnInfo.PreferredLabelSize.Height, 30);
                    }
                }
            }
            //e.Layout.PerformAutoResizeColumns(true, PerformAutoSizeType.VisibleRows);
        }
예제 #26
0
        /****************************************************************************************************
        * NAME         : uGrid_Users_InitializeLayout                                                      *
        * DESCRIPTION  : InitializeLayout Event call from uGrid_Users_InitializeLayout control             *
        * WRITTEN BY   : RajaSekar J                                                                       *
        * DATE         : 15Feb2018                                                                           *
        ****************************************************************************************************/
        private void uGrid_Users_InitializeLayout(object sender, IWUG.InitializeLayoutEventArgs e)
        {
            foreach (IWUG.UltraGridColumn col in uGrid_Users.DisplayLayout.Bands[0].Columns)
            {
                // Here we "turn off" theming for the column header.
                col.Header.Appearance.ThemedElementAlpha = Infragistics.Win.Alpha.Transparent;
                col.Header.Appearance.BackColor          = Color.LightGray;
                col.Header.Appearance.ForeColor          = Color.Black;
                col.Header.Appearance.FontData.Bold      = Infragistics.Win.DefaultableBoolean.True;

                col.Header.Caption = (string)dicLanguageCaptions[string.Format("{0}_{1}", col.Key, strLanguage)];
            }

            uGrid_Users.DisplayLayout.Bands[0].Columns[2].Hidden = true;
            uGrid_Users.DisplayLayout.Bands[0].Columns[3].Hidden = true;

            if ("0" == clsCommon.ReadSingleConfigValue("Default", "LanguageDirection", "LanguageSupport"))
            {
                uGrid_Users.DisplayLayout.Bands[0].Override.HeaderAppearance.TextHAlign = Infragistics.Win.HAlign.Left;
                uGrid_Users.DisplayLayout.Bands[0].Override.CellAppearance.TextHAlign   = Infragistics.Win.HAlign.Left;
            }
            else
            {
                uGrid_Users.DisplayLayout.Bands[0].Override.HeaderAppearance.TextHAlign = Infragistics.Win.HAlign.Right;
                uGrid_Users.DisplayLayout.Bands[0].Override.CellAppearance.TextHAlign   = Infragistics.Win.HAlign.Right;
            }
        }
예제 #27
0
파일: F1022.cs 프로젝트: CSSAdmin/TScan
        private void MiscTemplatesGridView_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            try
            {
                F11018MiscReceiptData.ListMiscReceiptTemplateDataTable miscReceiptTemplateDataTable = new F11018MiscReceiptData.ListMiscReceiptTemplateDataTable();
                UltraGridBand currentBand = this.MiscTemplatesGridView.DisplayLayout.Bands[0];
                currentBand.Columns[miscReceiptTemplateDataTable.MiscTemplateIDColumn.ColumnName].Header.VisiblePosition = 0;
                currentBand.Columns[miscReceiptTemplateDataTable.TemplateNameColumn.ColumnName].Header.VisiblePosition   = 1;
                currentBand.Columns[miscReceiptTemplateDataTable.UserIDColumn.ColumnName].Header.VisiblePosition         = 2;
                currentBand.Columns[miscReceiptTemplateDataTable.UserNameColumn.ColumnName].Header.VisiblePosition       = 3;
                currentBand.Columns[miscReceiptTemplateDataTable.ReceivedFromColumn.ColumnName].Header.VisiblePosition   = 4;
                currentBand.Columns[miscReceiptTemplateDataTable.AmountColumn.ColumnName].Header.VisiblePosition         = 5;
                currentBand.Columns[miscReceiptTemplateDataTable.CodeColumn.ColumnName].Header.VisiblePosition           = 6;

                currentBand.Columns[miscReceiptTemplateDataTable.MiscTemplateIDColumn.ColumnName].Hidden = true;
                currentBand.Columns[miscReceiptTemplateDataTable.TemplateNameColumn.ColumnName].Hidden   = false;
                currentBand.Columns[miscReceiptTemplateDataTable.UserIDColumn.ColumnName].Hidden         = true;
                currentBand.Columns[miscReceiptTemplateDataTable.UserNameColumn.ColumnName].Hidden       = true;
                currentBand.Columns[miscReceiptTemplateDataTable.ReceivedFromColumn.ColumnName].Hidden   = false;
                currentBand.Columns[miscReceiptTemplateDataTable.AmountColumn.ColumnName].Hidden         = false;
                currentBand.Columns[miscReceiptTemplateDataTable.AmountColumn.ColumnName].Format         = "#,##0.00";
                currentBand.Columns[miscReceiptTemplateDataTable.CodeColumn.ColumnName].Hidden           = true;
                this.MiscTemplatesGridView.DisplayLayout.Override.AllowColSizing = AllowColSizing.None;
            }
            catch (Exception ex)
            {
            }
        }
예제 #28
0
        private void gridDetails_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            try
            {
                //Hide Column
                gridDetails.DisplayLayout.Bands[0].Columns["EmpID"].Hidden = true;

                //Set Caption
                gridDetails.DisplayLayout.Bands[0].Columns["isChecked"].Width          = 60; //Short Name
                gridDetails.DisplayLayout.Bands[0].Columns["EmpCode"].Header.Caption   = "Emp ID";
                gridDetails.DisplayLayout.Bands[0].Columns["EmpName"].Header.Caption   = "Employee Name";
                gridDetails.DisplayLayout.Bands[0].Columns["DesigName"].Header.Caption = "Designation";
                gridDetails.DisplayLayout.Bands[0].Columns["DeptName"].Header.Caption  = "Department";
                gridDetails.DisplayLayout.Bands[0].Columns["SectName"].Header.Caption  = "Section";
                gridDetails.DisplayLayout.Bands[0].Columns["Band"].Header.Caption      = "Band";
                gridDetails.DisplayLayout.Bands[0].Columns["Amount"].Header.Caption    = "Amount";


                //Set Width
                gridDetails.DisplayLayout.Bands[0].Columns["EmpCode"].Width   = 90;
                gridDetails.DisplayLayout.Bands[0].Columns["EmpName"].Width   = 150;
                gridDetails.DisplayLayout.Bands[0].Columns["DesigName"].Width = 135;
                gridDetails.DisplayLayout.Bands[0].Columns["DeptName"].Width  = 140;
                gridDetails.DisplayLayout.Bands[0].Columns["SectName"].Width  = 140;
                gridDetails.DisplayLayout.Bands[0].Columns["Band"].Width      = 95;
                gridDetails.DisplayLayout.Bands[0].Columns["Amount"].Width    = 85;


                this.gridDetails.DisplayLayout.Bands[0].Columns["isChecked"].Style =
                    Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox;

                //Stop Cell Modify
                gridDetails.DisplayLayout.Bands[0].Columns["EmpCode"].CellActivation   = Activation.NoEdit;
                gridDetails.DisplayLayout.Bands[0].Columns["EmpName"].CellActivation   = Activation.NoEdit;
                gridDetails.DisplayLayout.Bands[0].Columns["DesigName"].CellActivation = Activation.NoEdit;
                gridDetails.DisplayLayout.Bands[0].Columns["DeptName"].CellActivation  = Activation.NoEdit;
                gridDetails.DisplayLayout.Bands[0].Columns["SectName"].CellActivation  = Activation.NoEdit;
                gridDetails.DisplayLayout.Bands[0].Columns["Band"].CellActivation      = Activation.NoEdit;

                //Change alternate color
                gridDetails.DisplayLayout.Override.RowAlternateAppearance.BackColor = Color.Cyan;
                gridDetails.DisplayLayout.Override.RowAlternateAppearance.ForeColor = Color.DarkBlue;

//                gridDetails.DisplayLayout.Bands[0].Columns["Grade"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownValidate;

                //Hiding +/- Indicator
                gridDetails.DisplayLayout.Override.ExpansionIndicator = ShowExpansionIndicator.Never;

                //Hide Group Box Display
                e.Layout.GroupByBox.Hidden = true;

                //Use Filtering
                e.Layout.Override.FilterUIType = FilterUIType.FilterRow;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
예제 #29
0
 private void dgvCombo_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
 {
     //e.Layout.Bands[0].Columns[0].Hidden = true;
     e.Layout.Bands[0].Columns[1].Header.Caption = "Artículo";
     e.Layout.Bands[0].Columns[1].Width          = 200;
     e.Layout.Bands[0].Columns[2].Hidden         = true;
     e.Layout.Bands[0].Columns[3].Hidden         = true;
 }
예제 #30
0
        /// <summary>
        /// Handles the InitializeLayout event of the gridInventory control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs"/> instance containing the event data.</param>
        private void gridInventory_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
        {
            UltraGridLayout layout = e.Layout;

            layout.AutoFitStyle             = AutoFitStyle.ResizeAllColumns;
            layout.Override.CellClickAction = CellClickAction.RowSelect;
            layout.LoadStyle             = LoadStyle.LoadOnDemand;
            layout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
            layout.Override.RowSizing    = RowSizing.Fixed;
            layout.Override.CellAppearance.TextHAlign = Infragistics.Win.HAlign.Center;
            layout.Override.CellAppearance.TextVAlign = Infragistics.Win.VAlign.Middle;
            layout.Override.HeaderClickAction         = HeaderClickAction.SortMulti;
            layout.Override.CellSpacing = 3;
            UltraGridBand band = layout.Bands[0];

            if (band.Key == "Deliveries")
            {
                band.Columns["EndDateTime"].Hidden         = true;
                band.Columns["AllDayEvent"].Hidden         = true;
                band.Columns["Category"].Hidden            = true;
                band.Columns["DataKey"].Header.Caption     = Properties.Resources.PartNumber;
                band.Columns["Weight"].Header.Caption      = Properties.Resources.TotalWeightLbs;
                band.Columns["Cost"].Header.Caption        = Properties.Resources.TotalDue;
                band.Columns["Subject"].Header.Caption     = Properties.Resources.Subject;
                band.Columns["Description"].Header.Caption = Properties.Resources.Description;
                band.Columns["Count"].Header.Caption       = Properties.Resources.Count;

                UltraGridColumn column = band.Columns["StartDateTime"];
                column.Header.Caption = Properties.Resources.DeliveryDate;
                column.Style          = Infragistics.Win.UltraWinGrid.ColumnStyle.DateWithoutDropDown;
                band.SortedColumns.Add(column, false);
            }
            else
            {
                UltraGridColumn column = band.Columns["WeightPerItem"];
                column.Header.Caption = Properties.Resources.WeightLbs;
                column.Format         = "F1";

                column = band.Columns["PricePerItem"];
                column.Header.Caption = Properties.Resources.PricePerItem;
                column.Format         = "C";

                band.Columns["PartNumber"].Header.Caption   = Properties.Resources.PartNumber;
                band.Columns["InStock"].Header.Caption      = Properties.Resources.InStock;
                band.Columns["Manufacturer"].Header.Caption = Properties.Resources.Manufacturer;
                band.Columns["Component"].Header.Caption    = Properties.Resources.Component;

                // Add a column for the Orders ("Order Part", "View Shipment") button
                if (band.Columns.IndexOf("Orders") == -1)
                {
                    UltraGridColumn deliveries = band.Columns.Add("Orders");
                    deliveries.Header.Caption     = Properties.Resources.Availability;
                    deliveries.DataType           = typeof(string);
                    deliveries.Style              = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;
                    deliveries.ButtonDisplayStyle = ButtonDisplayStyle.Always;
                }
            }
        }