private void _initialGrid() { this.gridTPT.Columns.Clear(); this._gridHelper.GridHelper.AddColumn("Mo_MOCode", "工单代码", null); this._gridHelper.GridHelper.AddColumn("Mo_ItemCode", "产品", null); this._gridHelper.GridHelper.AddColumn("Mo_StartDate", "投产日期", null); this._gridHelper.GridHelper.AddColumn("Mo_PlanEndDate", "预计完成日期", null); this._gridHelper.GridHelper.AddColumn("Mo_EndDate", "关单日期", null); this._gridHelper.GridHelper.AddColumn("Mo_DateNum", "生产天数", null); this._gridHelper.GridHelper.AddColumn("Mo_OverDateNum", "超计划天数", null); this._gridHelper.GridHelper.AddColumn("Mo_Estate", "状态", null); //多语言 this._gridHelper.GridHelper.ApplyLanguage(this.languageComponent1); string selected = ""; GridItemStyle blueBack = new GridItemStyle(true); blueBack.BackColor = Color.SkyBlue; if (this.gridTPT.Columns.FromKey(selected) != null) { this.gridTPT.Columns.FromKey(selected).HeaderStyle.BackColor = Color.SkyBlue; } }
private void _initialGrid() { this.gridWeekYield.Columns.Clear(); this._gridHelper.GridHelper.AddColumn("EcgCode", "不良代码组", null); this._gridHelper.GridHelper.AddColumn("ECode", "不良代码", null); this._gridHelper.GridHelper.AddColumn("Ecdesc", "不良描述", null); this._gridHelper.GridHelper.AddColumn("Qty", "数量", null); //多语言 this._gridHelper.GridHelper.ApplyLanguage(this.languageComponent1); this.gridWeekYield.Columns.FromKey("EcgCode").MergeCells = true; string selected = ""; GridItemStyle blueBack = new GridItemStyle(true); blueBack.BackColor = Color.SkyBlue; if (this.gridWeekYield.Columns.FromKey(selected) != null) { this.gridWeekYield.Columns.FromKey(selected).HeaderStyle.BackColor = Color.SkyBlue; } this.gridWeekYield.Columns[3].CellStyle.Font.Underline = true; this.gridWeekYield.Columns[3].CellStyle.ForeColor = Color.Blue; }
private void _initialGrid() { this.gridMocode.Columns.Clear(); this._gridHelper.GridHelper.AddColumn("StepSequenceCode", "产线", null); this._gridHelper.GridHelper.AddColumn("MoCode", "工单", null); this._gridHelper.GridHelper.AddColumn("ItemCode", "产品", null); this._gridHelper.GridHelper.AddColumn("ItemName", "产品名称", null); this._gridHelper.GridHelper.AddColumn("DayQuantity", "当日产量", null); this._gridHelper.GridHelper.AddColumn("MOPlanQTY", "工单计划", null); this._gridHelper.GridHelper.AddColumn("MOActQTY", "工单累计", null); //多语言 this._gridHelper.GridHelper.ApplyLanguage(this.languageComponent1); string selected = ""; GridItemStyle blueBack = new GridItemStyle(true); blueBack.BackColor = Color.SkyBlue; if (this.gridMocode.Columns.FromKey(selected) != null) { this.gridMocode.Columns.FromKey(selected).HeaderStyle.BackColor = Color.SkyBlue; } //melo zheng 修改于2007.1.4 去除链接 // this.gridMocode.Columns[4].CellStyle.Font.Underline = true; // this.gridMocode.Columns[4].CellStyle.ForeColor = Color.Blue; }
private void _initialGrid() { this.gridLine.Columns.Clear(); this._gridHelper.GridHelper.AddColumn("StepSequenceCode", "产线", null); this._gridHelper.GridHelper.AddColumn("DayQuantity", "本日产量", null); this._gridHelper.GridHelper.AddColumn("WeekQuantity", "本周累计", null); this._gridHelper.GridHelper.AddColumn("MonthQuantity", "本月累计", null); //多语言 this._gridHelper.GridHelper.ApplyLanguage(this.languageComponent1); string selected = ""; GridItemStyle blueBack = new GridItemStyle(true); blueBack.BackColor = Color.SkyBlue; if (this.gridLine.Columns.FromKey(selected) != null) { this.gridLine.Columns.FromKey(selected).HeaderStyle.BackColor = Color.SkyBlue; } this.gridLine.Columns[1].CellStyle.Font.Underline = true; this.gridLine.Columns[1].CellStyle.ForeColor = Color.Blue; this.gridLine.Columns[2].CellStyle.Font.Underline = true; this.gridLine.Columns[2].CellStyle.ForeColor = Color.Blue; this.gridLine.Columns[3].CellStyle.Font.Underline = true; this.gridLine.Columns[3].CellStyle.ForeColor = Color.Blue; }
private void _initialGridLRR() { this.gridLRR.Columns.Clear(); this._gridLRRHelper.GridHelper.AddColumn("SegmentCode", "工段", null); this._gridLRRHelper.GridHelper.AddColumn("DayLRR", "本日LRR", null); this._gridLRRHelper.GridHelper.AddColumn("WeekLRR", "本周LRR", null); this._gridLRRHelper.GridHelper.AddColumn("MonthLRR", "本月LRR", null); //多语言 this._gridLRRHelper.GridHelper.ApplyLanguage(this.languageComponent1); string selected = ""; GridItemStyle blueBack = new GridItemStyle(true); blueBack.BackColor = Color.SkyBlue; if (this.gridLRR.Columns.FromKey(selected) != null) { //this.gridLRR.Columns.FromKey(selected).HeaderStyle = blueBack; } // this.gridLRR.Columns[0].CellStyle.Font.Bold = true; this.gridLRR.Columns[1].CellStyle.Font.Underline = true; this.gridLRR.Columns[1].CellStyle.ForeColor = Color.Blue; this.gridLRR.Columns[2].CellStyle.Font.Underline = true; this.gridLRR.Columns[2].CellStyle.ForeColor = Color.Blue; this.gridLRR.Columns[3].CellStyle.Font.Underline = true; this.gridLRR.Columns[3].CellStyle.ForeColor = Color.Blue; }
private void _initialWebGrid() { this.gridWebGrid.Columns.Clear(); this._gridHelper.GridHelper.AddColumn("StepSequenceCode", "生产线", null, 100); this._gridHelper.GridHelper.AddColumn("ItemCode", "产品代码", null, 100); string selected = ""; if (this.drpShiftQuery.SelectedValue == "") { this._gridHelper.GridHelper.AddColumn("TPCode", "时段代码", null); } else { object[] tps = new FacadeFactory(base.DataProvider).CreateShfitModelFacade().GetTimePeriodByShiftCode(this.drpShiftQuery.SelectedValue); if (tps != null) { this._gridHelper.GridHelper.AddColumn("InputOutputName", "", null, 100); this.gridWebGrid.Bands[0].Columns.FromKey("StepSequenceCode").MergeCells = true; int now = FormatHelper.TOTimeInt(System.DateTime.Now); int count = tps.Length; //foreach(TimePeriod tp in tps) for (int i = 0; i < count; i++) { TimePeriod tp = tps[i] as TimePeriod; string key = tp.TimePeriodCode; this._gridHelper.GridHelper.AddColumn(key, FormatHelper.ToShortTimeString(tp.TimePeriodBeginTime) + "<br>" + FormatHelper.ToShortTimeString(tp.TimePeriodEndTime), null); if (tp.TimePeriodBeginTime <= now && tp.TimePeriodEndTime >= now) { selected = tp.TimePeriodCode; } } } else { this._gridHelper.GridHelper.AddColumn("TPCode", "时段代码", null); } } this._gridHelper.GridHelper.AddColumn("Summary", "汇总", null, 100); GridItemStyle blueBack = new GridItemStyle(true); blueBack.BackColor = Color.SkyBlue; if (this.gridWebGrid.Columns.FromKey(selected) != null) { this.gridWebGrid.Columns.FromKey(selected).HeaderStyle.BackColor = Color.SkyBlue; } this.gridWebGrid.Columns.FromKey("Summary").Hidden = false; //多语言 this._gridHelper.GridHelper.ApplyLanguage(this.languageComponent1); }
private void _initialWebGrid() { this.gridWebGrid.Columns.Clear(); this._gridHelper.AddColumn("StepSequenceCode", "生产线", null); string selected = ""; if (this.txtShiftCodeQuery.Text == "") { this._gridHelper.AddColumn("TPCode", "时段代码", null); } else { object[] tps = new FacadeFactory(base.DataProvider).CreateShfitModelFacade().QueryTimePeriod("", this.txtShiftCodeQuery.Text, 0, System.Int32.MaxValue); if (tps != null) { int now = FormatHelper.TOTimeInt(System.DateTime.Now); foreach (TimePeriod tp in tps) { string key = tp.TimePeriodCode; this.gridWebGrid.Bands[0].Columns.Add(key); this.gridWebGrid.Bands[0].Columns.FromKey(key).HeaderText = FormatHelper.ToTimeString(tp.TimePeriodBeginTime) + "~" + FormatHelper.ToTimeString(tp.TimePeriodEndTime); this.gridWebGrid.Bands[0].Columns.FromKey(key).Width = new System.Web.UI.WebControls.Unit(150); this.gridWebGrid.Bands[0].Columns.FromKey(key).CellButtonStyle.BackColor = System.Drawing.Color.Transparent; this.gridWebGrid.Bands[0].Columns.FromKey(key).CellButtonStyle.BorderStyle = System.Web.UI.WebControls.BorderStyle.None; this.gridWebGrid.Bands[0].Columns.FromKey(key).CellButtonStyle.HorizontalAlign = System.Web.UI.WebControls.HorizontalAlign.Center; this.gridWebGrid.Bands[0].Columns.FromKey(key).CellButtonStyle.CustomRules = "BACKGROUND-POSITION: center center;Background-repeat:no-repeat"; this.gridWebGrid.Bands[0].Columns.FromKey(key).CellButtonStyle.BackgroundImage = ""; this.gridWebGrid.Bands[0].Columns.FromKey(key).CellStyle.CustomRules = "BACKGROUND-POSITION: center center;Background-repeat:no-repeat"; if (tp.TimePeriodBeginTime <= now && tp.TimePeriodEndTime >= now) { selected = tp.TimePeriodCode; } } } else { this._gridHelper.AddColumn("TPCode", "时段代码", null); } } this._gridHelper.AddColumn("Summary", "汇总", null); GridItemStyle blueBack = new GridItemStyle(true); blueBack.BackColor = Color.SkyBlue; if (this.gridWebGrid.Columns.FromKey(selected) != null) { this.gridWebGrid.Columns.FromKey(selected).HeaderStyle.BackColor = Color.SkyBlue; } //多语言 this._gridHelper.ApplyLanguage(this.languageComponent1); }
private void _processGridStyle() { try { GridItemStyle style = new GridItemStyle(true); style.Cursor = Infragistics.WebUI.Shared.Cursors.Hand; for (int row = 0; row < this.gridResCode.Rows.Count; row++) { // this.gridMocode.Rows[row].Cells[4].Style = style; } } catch { } }
public static StackLayout CreateGridItem(string name, string unit, string bindingNameMgM3, string bindingNamePercent) { var absoluteValueSpan = new Span { FontSize = 20 }; absoluteValueSpan.SetBinding(Span.TextProperty, bindingNameMgM3, BindingMode.OneWay); var percentValueSpan = new Span(); percentValueSpan.SetBinding(Span.TextProperty, bindingNamePercent, BindingMode.OneWay, stringFormat: "{0}%"); return(new StackLayout { Children = { new Label { FormattedText = new FormattedString { Spans = { new Span { Text = name, FontSize = 14 } } } }, new Label { FormattedText = new FormattedString { Spans = { absoluteValueSpan, new Span { Text = " " + unit + " ",FontSize = 14 }, percentValueSpan } } } }, Resources = GridItemStyle.CreateResourceDictionary() }); }
private void _processGridStyle() { try { GridItemStyle style = new GridItemStyle(true); style.Cursor = Infragistics.WebUI.Shared.Cursors.Hand; for (int col = 1; col < this.gridWebGrid.Columns.Count - 1; col++) { for (int row = 0; row < this.gridWebGrid.Rows.Count - 1; row++) { this.gridWebGrid.Rows[row].Cells[col].Style.Cursor = Infragistics.WebUI.Shared.Cursors.Hand; } } } catch { } }
private void _initialGrid() { this.gridLong.Columns.Clear(); this._gridHelper.GridHelper.AddColumn("Ts_SN", "序列号", null); this._gridHelper.GridHelper.AddColumn("Ts_ConDate", "进入维修站日期", null); this._gridHelper.GridHelper.AddColumn("Ts_Days", "维修天数", null); //多语言 this._gridHelper.GridHelper.ApplyLanguage(this.languageComponent1); string selected = ""; GridItemStyle blueBack = new GridItemStyle(true); blueBack.BackColor = Color.SkyBlue; if (this.gridLong.Columns.FromKey(selected) != null) { this.gridLong.Columns.FromKey(selected).HeaderStyle.BackColor = Color.SkyBlue; } }
private void _initialGrid() { this.gridResCode.Columns.Clear(); this._gridHelper.GridHelper.AddColumn("ResCode", "资源", null); this._gridHelper.GridHelper.AddColumn("DayQuantity", "当日产量", null); this._gridHelper.GridHelper.AddColumn("AccumulateQTY", "累计产量", null); //多语言 this._gridHelper.GridHelper.ApplyLanguage(this.languageComponent1); string selected = ""; GridItemStyle blueBack = new GridItemStyle(true); blueBack.BackColor = Color.SkyBlue; if (this.gridResCode.Columns.FromKey(selected) != null) { this.gridResCode.Columns.FromKey(selected).HeaderStyle.BackColor = Color.SkyBlue; } }
private void _initialWebGrid() { this.gridWebGrid.Columns.Clear(); this._gridHelper.AddColumn("StepSequenceCode", "生产线", null, 100); this._gridHelper.AddColumn("ItemCode", "产品代码", null, 100); this._gridHelper.AddColumn("OutputQuantity", "产出数量", null, 100); //多语言 this._gridHelper.ApplyLanguage(this.languageComponent1); string selected = ""; GridItemStyle blueBack = new GridItemStyle(true); blueBack.BackColor = Color.SkyBlue; if (this.gridWebGrid.Columns.FromKey(selected) != null) { this.gridWebGrid.Columns.FromKey(selected).HeaderStyle.BackColor = Color.SkyBlue; } }
private void _initialWebGrid() { this.gridWebGrid.Columns.Clear(); this._gridHelper.GridHelper.AddColumn("StepSequenceCode", "产线", null); this._gridHelper.GridHelper.AddColumn("ResourceCode", "资源", null); this._gridHelper.GridHelper.AddColumn("ActionResult", "产出数量", null); string selected = ""; GridItemStyle blueBack = new GridItemStyle(true); blueBack.BackColor = Color.SkyBlue; if (this.gridWebGrid.Columns.FromKey(selected) != null) { this.gridWebGrid.Columns.FromKey(selected).HeaderStyle.BackColor = Color.SkyBlue; } //多语言 this._gridHelper.GridHelper.ApplyLanguage(this.languageComponent1); }
private void _initialGrid() { this.gridYield.Columns.Clear(); this._gridHelper.GridHelper.AddColumn("StepSequenceCode", "产线", null); this._gridHelper.GridHelper.AddColumn("ItemCode", "产品", null); this._gridHelper.GridHelper.AddColumn("ItemName", "产品名称 ", null); this._gridHelper.GridHelper.AddColumn("ResCode", "资源", null); this._gridHelper.GridHelper.AddColumn("DayPercent", "良率", null); //多语言 this._gridHelper.GridHelper.ApplyLanguage(this.languageComponent1); string selected = ""; GridItemStyle blueBack = new GridItemStyle(true); blueBack.BackColor = Color.SkyBlue; if (this.gridYield.Columns.FromKey(selected) != null) { this.gridYield.Columns.FromKey(selected).HeaderStyle.BackColor = Color.SkyBlue; } }
private void _initialGrid() { this.gridDayProduct.Columns.Clear(); this._gridHelper.GridHelper.AddColumn("RCard", "产品序列号", null); this._gridHelper.GridHelper.AddColumn("ItemCode", "产品", null); this._gridHelper.GridHelper.AddColumn("FrmSSCode", "产线", null); this._gridHelper.GridHelper.AddColumn("NGFrmUser", "不良发现人员", null); this._gridHelper.GridHelper.AddColumn("FrmOPCode", "不良发现工序", null); this._gridHelper.GridHelper.AddColumn("FrmResCode", "不良发现资源", null); this._gridHelper.GridHelper.AddColumn("NGShiftDay", "不良发现日期", null); //多语言 this._gridHelper.GridHelper.ApplyLanguage(this.languageComponent1); string selected = ""; GridItemStyle blueBack = new GridItemStyle(true); blueBack.BackColor = Color.SkyBlue; if (this.gridDayProduct.Columns.FromKey(selected) != null) { this.gridDayProduct.Columns.FromKey(selected).HeaderStyle.BackColor = Color.SkyBlue; } }
private void _initialGridYield() { this.gridYield.Columns.Clear(); this._gridYieldHelper.GridHelper.AddColumn("OPCode", "工序", null); this._gridYieldHelper.GridHelper.AddColumn("DayPercent1", "本日良率", null); this._gridYieldHelper.GridHelper.AddColumn("WeekPercent", "本周良率", null); this._gridYieldHelper.GridHelper.AddColumn("MonthPercent", "本月良率", null); this._gridYieldHelper.GridHelper.AddLinkColumn("DayYield", "本日不良分布", null); this._gridYieldHelper.GridHelper.AddLinkColumn("WeekYield", "本周不良分布", null); this._gridYieldHelper.GridHelper.AddLinkColumn("MonthYield", "本月不良分布", null); //多语言 this._gridYieldHelper.GridHelper.ApplyLanguage(this.languageComponent1); string selected = ""; GridItemStyle blueBack = new GridItemStyle(true); blueBack.BackColor = Color.SkyBlue; if (this.gridYield.Columns.FromKey(selected) != null) { //this.gridYield.Columns.FromKey(selected).HeaderStyle = blueBack; } // this.gridYield.Columns[0].CellStyle.Font.Bold = true; this.gridYield.Columns[1].CellStyle.Font.Underline = true; this.gridYield.Columns[1].CellStyle.ForeColor = Color.Blue; this.gridYield.Columns[2].CellStyle.Font.Underline = true; this.gridYield.Columns[2].CellStyle.ForeColor = Color.Blue; this.gridYield.Columns[3].CellStyle.Font.Underline = true; this.gridYield.Columns[3].CellStyle.ForeColor = Color.Blue; this.gridYield.Columns.FromKey("DayYield").Width = Unit.Pixel(90); this.gridYield.Columns.FromKey("WeekYield").Width = Unit.Pixel(90); this.gridYield.Columns.FromKey("MonthYield").Width = Unit.Pixel(90); }