private void setDefaultGrid(AxFPSpreadADO.AxfpSpread arg_grid) { // Set Default Grid arg_grid.Visible = false; arg_grid.Reset(); arg_grid.BorderStyle = FPSpreadADO.BorderStyleConstants.BorderStyleNone; arg_grid.DisplayColHeaders = false; arg_grid.DisplayRowHeaders = false; arg_grid.ActiveCellHighlightStyle = FPSpreadADO.ActiveCellHighlightStyleConstants.ActiveCellHighlightStyleOff; arg_grid.GrayAreaBackColor = Color.White; // arg_grid.ScrollBarExtMode = true; arg_grid.ColHeaderRows = 0; arg_grid.ScrollBars = FPSpreadADO.ScrollBarsConstants.ScrollBarsHorizontal; arg_grid.Font = new System.Drawing.Font("Calibri Bold", 11); arg_grid.set_RowHeight(1, 0.5); arg_grid.set_ColWidth(1, 0.5); arg_grid.TypeHAlign = FPSpreadADO.TypeHAlignConstants.TypeHAlignCenter; arg_grid.TypeVAlign = FPSpreadADO.TypeVAlignConstants.TypeVAlignCenter; arg_grid.TypeEditMultiLine = true; arg_grid.SetCellBorder(1, 1, 150, arg_grid.MaxRows, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexLeft, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleBlank); arg_grid.SetCellBorder(1, 1, 150, arg_grid.MaxRows, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexBottom, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleBlank); for (int ic = 2; ic <= 150; ic++) { arg_grid.set_ColWidth(ic, 4.2); } }
private void MergeCol(AxFPSpreadADO.AxfpSpread gridObject, int iStartRow, int iCol) { try { string sTemp1 = ""; string sTemp2 = ""; int iRow = iStartRow; gridObject.Row = iStartRow; gridObject.Col = iCol; sTemp1 = gridObject.Value; for (int i = iStartRow; i < gridObject.MaxRows + 4; i++) { gridObject.Row = i; gridObject.Col = iCol; sTemp2 = gridObject.Value; if (sTemp1 != sTemp2) { gridObject.AddCellSpan(iCol, iRow, 1, i - iRow); sTemp1 = sTemp2; sTemp2 = ""; iRow = i; } } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void Animation(AxFPSpreadADO.AxfpSpread Grid, DataTable dt) { Grid.Hide(); this.Cursor = Cursors.WaitCursor; BindingGrid(dt); AnimateWindow(Grid.Handle, 500, AW_SLIDE | 0X4); //IPEX_Monitor.ClassLib.WinAPI.getSlidType("2") Grid.Show(); this.Cursor = Cursors.Default; }
private void setImage(Button arg_cmd, AxFPSpreadADO.AxfpSpread axGrid) { if (_dt_chart.Rows[0][arg_cmd.Name.Replace("cmd_", "") + "_STATUS"].ToString().ToUpper() == "UP") { arg_cmd.BackgroundImage = Image.FromFile(Application.StartupPath + @"\up.png"); } else { arg_cmd.BackgroundImage = Image.FromFile(Application.StartupPath + @"\down.png"); } arg_cmd.BackgroundImageLayout = ImageLayout.Stretch; arg_cmd.Location = new Point(axGrid.Location.X + Convert.ToInt32(_dt_chart.Rows[0]["LOCATION_X"].ToString()), arg_cmd.Location.Y); }
private string GetText(AxFPSpreadADO.AxfpSpread spread, int col, int row) { try { object data = null; spread.GetText(col, row, ref data); return(data.ToString()); } catch (Exception ex) { return(null); } }
private void DisplayGridDMP(DataTable arg_dt, AxFPSpreadADO.AxfpSpread arg_grid) { try { if (arg_dt == null || arg_dt.Rows.Count == 0) { return; } // axGrid.ClearRange(0, 0, 50, 50, true); create_default(); _Loc_plan_DMP.Clear(); //_row1 = Convert.ToInt32(arg_dt.Rows[0]["Row1"]); //_row2 = Convert.ToInt32(arg_dt.Rows[0]["Row2"]); //_row3 = Convert.ToInt32(arg_dt.Rows[0]["Row3"]); int row_s = 3; int irow = row_s; int icol = 2; lbl_plan.Text = arg_dt.Rows[0]["TOT_PLAN"].ToString(); lbl_actual.Text = arg_dt.Rows[0]["TOT_ACT"].ToString(); arg_grid.set_ColWidth(icol, 5); MachineHeadDMP(icol, irow, 0, arg_dt, arg_grid); irow += 2; MachineBodyDMP(icol, irow, 0, arg_dt, arg_grid); irow++; for (int i = 1; i < arg_dt.Rows.Count; i++) { if (arg_dt.Rows[i]["MACHINE_NAME"].ToString() == arg_dt.Rows[i - 1]["MACHINE_NAME"].ToString()) { MachineBodyDMP(icol, irow, i, arg_dt, arg_grid); irow++; } else { icol += 4; arg_grid.set_ColWidth(icol, 5); irow = row_s; MachineHeadDMP(icol, irow, i, arg_dt, arg_grid); irow += 2; MachineBodyDMP(icol, irow, i, arg_dt, arg_grid); irow++; } } // if (_Loc_yellow.Count > 0) tmr_blind.Start(); // else tmr_blind.Stop(); } catch { } }
private string GetText(AxFPSpreadADO.AxfpSpread spread, int col, int row) { try { object data = null; spread.GetText(col, row, ref data); return(data.ToString()); } catch { //return ""; //log.Error(ex); return(null); } }
//Clear Data & set default Color for Grid private void ClearGrid(AxFPSpreadADO.AxfpSpread Grid) { try { for (int irow = 2; irow <= Grid.MaxRows; irow++) { Grid.Row = irow; for (int icol = 1; icol <= Grid.MaxCols; icol++) { Grid.Col = icol; Grid.SetText(icol, irow, ""); Grid.BackColor = BackColor_Default; Grid.ForeColor = Color.Black; } } } catch (Exception ex) { } }
private void load_grid(AxFPSpreadADO.AxfpSpread axGrid) { int imax = Convert.ToInt16(_dt_chart.Rows[0]["COL_COUNT"]); int iColSpan = Convert.ToInt16(_dt_chart.Rows[0]["COL_SPAN"]); axGrid.MaxCols = imax + 2; axGrid.AddCellSpan(3, 4, iColSpan, 1); axGrid.SetText(1, 1, EmptyIfNull(_dt_chart.Rows[0][axGrid.Name.Replace("axGrid_", "") + "_GNAME"].ToString())); for (int i = 0; i < imax; i++) { axGrid.SetText(i + 3, 1, _dt_chart.Rows[i]["TITLE"].ToString()); axGrid.SetText(i + 3, 2, EmptyIfNull2(_dt_chart.Rows[i][axGrid.Name.Replace("axGrid_", "")].ToString())); axGrid.SetText(i + 3, 3, EmptyIfNull(_dt_chart.Rows[i][axGrid.Name.Replace("axGrid_", "") + "_PER"].ToString() + "%")); axGrid.SetText(3, 4, EmptyIfNull(_dt_chart.Rows[0][axGrid.Name.Replace("axGrid_", "") + "_IM"].ToString() + "%")); axGrid.set_ColWidth(i + 3, Convert.ToDouble(_dt_chart.Rows[i]["COL_WIDTH"])); axGrid.Col = i + 3; axGrid.Row = 1; axGrid.FontSize = Convert.ToSingle(_dt_chart.Rows[i]["FONT"]); axGrid.Row = 4; if (i >= iColSpan) { axGrid.BackColor = Color.White; } else { axGrid.BackColor = Color.Navy; } axGrid.FontSize = 35f; axGrid.FontBold = true; } axGrid.SetCellBorder(1, 1, axGrid.MaxCols, axGrid.MaxRows, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexLeft, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); axGrid.SetCellBorder(1, 2, axGrid.MaxCols, axGrid.MaxRows, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexBottom, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); axGrid.SetCellBorder(1, 2, axGrid.MaxCols, axGrid.MaxRows, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexTop, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); }
private void ClearGrid(AxFPSpreadADO.AxfpSpread Grid) { for (int irow = 3; irow <= Grid.MaxRows; irow++) { Grid.Row = irow; for (int icol = 1; icol <= Grid.MaxCols; icol++) { Grid.Col = icol; if (icol > 1) { Grid.SetText(icol, irow, ""); } if (irow < Grid.MaxRows) { switch (irow % 2) { case 0: Grid.BackColor = BackColor1; Grid.ForeColor = Color.Black; break; case 1: Grid.BackColor = BackColor2; Grid.ForeColor = Color.Black; break; } Grid.Font = new Font("Calibri", 14, FontStyle.Regular); } else { Grid.BackColor = Color.Orange; Grid.ForeColor = Color.White; Grid.Font = new Font("Calibri", 14, FontStyle.Bold); } } axfpSpread.set_RowHeight(irow, 30); } axfpSpread.RowsFrozen = 2; }
private void ClearGrid(AxFPSpreadADO.AxfpSpread Grid) { for (int iRow = 0; iRow <= Grid.MaxRows; iRow++) { for (int iCol = 3; iCol <= Grid.MaxCols; iCol++) { Grid.SetText(iCol, iRow, ""); Grid.Row = iRow; Grid.Col = iCol; switch (iRow) { case 1: Grid.Font = new Font("Calibri", 24, FontStyle.Bold); Grid.BackColor = Color.DodgerBlue; Grid.ForeColor = Color.White; Grid.CellType = FPSpreadADO.CellTypeConstants.CellTypeEdit; Grid.TypeEditMultiLine = true; Grid.TypeHAlign = FPSpreadADO.TypeHAlignConstants.TypeHAlignCenter; Grid.TypeVAlign = FPSpreadADO.TypeVAlignConstants.TypeVAlignCenter; break; default: Grid.Font = new Font("Calibri", 24, FontStyle.Regular); Grid.BackColor = Color.White; break; } } } Grid.SetCellBorder(0, 0, Grid.MaxCols, Grid.MaxRows, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexTop, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); Grid.SetCellBorder(0, 0, Grid.MaxCols, Grid.MaxRows, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexLeft, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); Grid.SetCellBorder(0, 0, Grid.MaxCols, Grid.MaxRows, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexRight, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); Grid.SetCellBorder(0, 0, Grid.MaxCols, Grid.MaxRows, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexBottom, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); Grid.SetCellBorder(0, 0, Grid.MaxCols, Grid.MaxRows, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexLeft, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); }
public void MachineBodyDMC(int arg_col, int arg_row, int arg_idt, DataTable arg_dt, AxFPSpreadADO.AxfpSpread arg_grid) { try { arg_grid.SetCellBorder(arg_col, arg_row, arg_col, arg_row, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexLeft, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); arg_grid.SetCellBorder(arg_col + 1, arg_row, arg_col + 1, arg_row, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexLeft, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); arg_grid.SetCellBorder(arg_col, arg_row, arg_col, arg_row, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexBottom, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); arg_grid.SetCellBorder(arg_col, arg_row, arg_col, arg_row, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexTop, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); arg_grid.Row = arg_row; arg_grid.Col = arg_col; arg_grid.Text = _dt_layout_DMC.Rows[arg_idt]["size_plan"].ToString(); arg_grid.BackColor = Color.FromName(arg_dt.Rows[arg_idt]["color_B_value"].ToString()); arg_grid.ForeColor = Color.FromName(arg_dt.Rows[arg_idt]["color_F_value"].ToString()); //if (arg_dt.Rows[arg_idt]["Status"].ToString() == "1") // _Loc_plan_DMC.Add(arg_col + " " + arg_row + " " + arg_dt.Rows[arg_idt]["machine_id"].ToString()); //if (arg_dt.Rows[arg_idt]["Status"].ToString() == "2") // _Loc_change_DMC.Add(arg_col + " " + arg_row + " " + arg_dt.Rows[arg_idt]["machine_id"].ToString()); //if (arg_dt.Rows[arg_idt]["direction"].ToString() == "1") //{ // arg_col++; //} //else if (arg_dt.Rows[arg_idt]["direction"].ToString() == "2") //{ // arg_row++; //} //else if (arg_dt.Rows[arg_idt]["direction"].ToString() == "3") //{ // arg_col--; //} //else if (arg_dt.Rows[arg_idt]["direction"].ToString() == "4") //{ // arg_row--; //} //arg_grid.Row = arg_row; //arg_grid.Col = arg_col; //switch (_dt_layout_DMC.Rows[arg_idt]["STATION_CD"].ToString()) //{ // case "05": // case "09": // case "13": // case "16": // arg_grid.Text += "/" + _dt_layout_DMC.Rows[arg_idt]["STATION_CD"].ToString(); // break; // default: // arg_grid.Text = _dt_layout_DMC.Rows[arg_idt]["STATION_CD"].ToString(); // break; //} } catch (Exception) {} }
private void showAnimation(AxFPSpreadADO.AxfpSpread flg) { //flg.Hide(); //Smart_FTY.ClassLib.WinAPI.AnimateWindow(flg.Handle, 500, Smart_FTY.ClassLib.WinAPI.getSlidType("2")); //flg.Show(); }
private void DisplayGrid(DataTable arg_dt, AxFPSpreadADO.AxfpSpread arg_grid) { try { _countP = 0; _countN = 0; _countR = 0; _countNU = 0; arg_grid.Visible = false; if (arg_dt == null || arg_dt.Rows.Count == 0) { return; } // axGrid.ClearRange(0, 0, 50, 50, true); create_default(); _Loc_change.Clear(); int row_s = 2; int irow = row_s; int icol = 2; //MachineHead(icol, irow, 0); //irow+=2; MachineHead(icol, irow - 1, 0); MachineBody(icol, irow, 0); //irow++; for (int i = 1; i < arg_dt.Rows.Count; i++) { if (arg_dt.Rows[i]["machine_cd"].ToString() == arg_dt.Rows[i - 1]["machine_cd"].ToString()) { if (arg_dt.Rows[i]["machine_row"].ToString() == "1") { icol += 2; irow = row_s; MachineBody(icol, irow, i); } else { irow++; MachineBody(icol, irow, i); } } else { axGrid.set_ColWidth(icol + 2, 7); icol += 3; irow = row_s; MachineHead(icol, irow - 1, i); MachineBody(icol, irow, i); } } if (_Loc_change.Count > 0) { tmr_blind.Start(); } else { tmr_blind.Stop(); } set_qty(); } catch { } finally { // arg_grid.Visible = false; //Smart_FTY.ClassLib.WinAPI.AnimateWindow(arg_grid.Handle, 400, Smart_FTY.ClassLib.WinAPI.getSlidType("2")); arg_grid.Visible = true; } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FRM_SMT_HR_ABSENT_PHUOC)); DevExpress.XtraCharts.SimpleDiagram simpleDiagram1 = new DevExpress.XtraCharts.SimpleDiagram(); DevExpress.XtraCharts.Series series1 = new DevExpress.XtraCharts.Series(); DevExpress.XtraCharts.PieSeriesLabel pieSeriesLabel1 = new DevExpress.XtraCharts.PieSeriesLabel(); DevExpress.XtraCharts.PieSeriesView pieSeriesView1 = new DevExpress.XtraCharts.PieSeriesView(); DevExpress.XtraCharts.PieFlyInAnimation pieFlyInAnimation1 = new DevExpress.XtraCharts.PieFlyInAnimation(); DevExpress.XtraCharts.ChartTitle chartTitle1 = new DevExpress.XtraCharts.ChartTitle(); this.pnHeader = new System.Windows.Forms.Panel(); this.simpleButton4 = new DevExpress.XtraEditors.SimpleButton(); this.simpleButton3 = new DevExpress.XtraEditors.SimpleButton(); this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton(); this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); this.cmdBack = new System.Windows.Forms.Button(); this.lblDate = new System.Windows.Forms.Label(); this.lblTitle = new DevExpress.XtraEditors.LabelControl(); this.axfpAbsent = new AxFPSpreadADO.AxfpSpread(); this.tmrDate = new System.Windows.Forms.Timer(); this.arcScaleComponent2 = new DevExpress.XtraGauges.Win.Gauges.Circular.ArcScaleComponent(); this.gaugeControl1 = new DevExpress.XtraGauges.Win.GaugeControl(); this.cGauge1 = new DevExpress.XtraGauges.Win.Gauges.Circular.CircularGauge(); this.arcScaleBackgroundLayerComponent1 = new DevExpress.XtraGauges.Win.Gauges.Circular.ArcScaleBackgroundLayerComponent(); this.arcScaleComponentRub = new DevExpress.XtraGauges.Win.Gauges.Circular.ArcScaleComponent(); this.labelComponent1 = new DevExpress.XtraGauges.Win.Base.LabelComponent(); this.lblRubValueG = new DevExpress.XtraGauges.Win.Base.LabelComponent(); this.lblTitleGauges = new DevExpress.XtraGauges.Win.Base.LabelComponent(); this.arcScaleNeedleComponent1 = new DevExpress.XtraGauges.Win.Gauges.Circular.ArcScaleNeedleComponent(); this.arcScaleSpindleCapComponent1 = new DevExpress.XtraGauges.Win.Gauges.Circular.ArcScaleSpindleCapComponent(); this.chartHrCmp = new DevExpress.XtraCharts.ChartControl(); this.label21 = new System.Windows.Forms.Label(); this.lblAbenst2 = new System.Windows.Forms.Label(); this.lblAbenst1 = new System.Windows.Forms.Label(); this.lblTotAbsent = new System.Windows.Forms.Label(); this.uc_month = new FORM.UC.UC_MONTH_SELECTION(); this.uc_year = new FORM.UC.UC_YEAR_SELECTION(); this.pnHeader.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.axfpAbsent)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.arcScaleComponent2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cGauge1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.arcScaleBackgroundLayerComponent1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.arcScaleComponentRub)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.labelComponent1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblRubValueG)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTitleGauges)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.arcScaleNeedleComponent1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.arcScaleSpindleCapComponent1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.chartHrCmp)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(simpleDiagram1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(series1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(pieSeriesLabel1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(pieSeriesView1)).BeginInit(); this.SuspendLayout(); // // pnHeader // this.pnHeader.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.pnHeader.Controls.Add(this.simpleButton4); this.pnHeader.Controls.Add(this.simpleButton3); this.pnHeader.Controls.Add(this.simpleButton2); this.pnHeader.Controls.Add(this.simpleButton1); this.pnHeader.Controls.Add(this.cmdBack); this.pnHeader.Controls.Add(this.lblDate); this.pnHeader.Controls.Add(this.lblTitle); this.pnHeader.Dock = System.Windows.Forms.DockStyle.Top; this.pnHeader.Location = new System.Drawing.Point(0, 0); this.pnHeader.Name = "pnHeader"; this.pnHeader.Size = new System.Drawing.Size(1916, 110); this.pnHeader.TabIndex = 12; // // simpleButton4 // this.simpleButton4.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.simpleButton4.Appearance.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.simpleButton4.Appearance.Font = new System.Drawing.Font("Calibri", 24F, System.Drawing.FontStyle.Bold); this.simpleButton4.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal; this.simpleButton4.Appearance.Options.UseBackColor = true; this.simpleButton4.Appearance.Options.UseFont = true; this.simpleButton4.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; this.simpleButton4.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("simpleButton4.ImageOptions.Image"))); this.simpleButton4.Location = new System.Drawing.Point(1478, 54); this.simpleButton4.Name = "simpleButton4"; this.simpleButton4.Size = new System.Drawing.Size(175, 48); this.simpleButton4.TabIndex = 52; this.simpleButton4.Text = "Year"; this.simpleButton4.Click += new System.EventHandler(this.simpleButton4_Click); // // simpleButton3 // this.simpleButton3.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.simpleButton3.Appearance.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.simpleButton3.Appearance.Font = new System.Drawing.Font("Calibri", 24F, System.Drawing.FontStyle.Bold); this.simpleButton3.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal; this.simpleButton3.Appearance.Options.UseBackColor = true; this.simpleButton3.Appearance.Options.UseFont = true; this.simpleButton3.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; this.simpleButton3.Enabled = false; this.simpleButton3.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("simpleButton3.ImageOptions.Image"))); this.simpleButton3.Location = new System.Drawing.Point(1479, 3); this.simpleButton3.Name = "simpleButton3"; this.simpleButton3.Size = new System.Drawing.Size(175, 48); this.simpleButton3.TabIndex = 51; this.simpleButton3.Text = "Month"; this.simpleButton3.Click += new System.EventHandler(this.simpleButton3_Click); // // simpleButton2 // this.simpleButton2.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.simpleButton2.Appearance.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.simpleButton2.Appearance.Font = new System.Drawing.Font("Calibri", 24F, System.Drawing.FontStyle.Bold); this.simpleButton2.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal; this.simpleButton2.Appearance.Options.UseBackColor = true; this.simpleButton2.Appearance.Options.UseFont = true; this.simpleButton2.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; this.simpleButton2.Enabled = false; this.simpleButton2.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("simpleButton2.ImageOptions.Image"))); this.simpleButton2.Location = new System.Drawing.Point(1297, 54); this.simpleButton2.Name = "simpleButton2"; this.simpleButton2.Size = new System.Drawing.Size(175, 48); this.simpleButton2.TabIndex = 51; this.simpleButton2.Text = "Week"; // // simpleButton1 // this.simpleButton1.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.simpleButton1.Appearance.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.simpleButton1.Appearance.Font = new System.Drawing.Font("Calibri", 24F, System.Drawing.FontStyle.Bold); this.simpleButton1.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal; this.simpleButton1.Appearance.Options.UseBackColor = true; this.simpleButton1.Appearance.Options.UseFont = true; this.simpleButton1.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; this.simpleButton1.Enabled = false; this.simpleButton1.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("simpleButton1.ImageOptions.Image"))); this.simpleButton1.Location = new System.Drawing.Point(1298, 3); this.simpleButton1.Name = "simpleButton1"; this.simpleButton1.Size = new System.Drawing.Size(175, 48); this.simpleButton1.TabIndex = 51; this.simpleButton1.Text = "Day"; this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click); // // cmdBack // this.cmdBack.BackColor = System.Drawing.Color.Transparent; this.cmdBack.BackgroundImage = global::FORM.Properties.Resources.Back_Icon; this.cmdBack.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.cmdBack.FlatAppearance.BorderColor = System.Drawing.Color.Yellow; this.cmdBack.FlatAppearance.BorderSize = 0; this.cmdBack.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.cmdBack.Location = new System.Drawing.Point(1183, 7); this.cmdBack.Name = "cmdBack"; this.cmdBack.Size = new System.Drawing.Size(108, 101); this.cmdBack.TabIndex = 50; this.cmdBack.UseVisualStyleBackColor = false; this.cmdBack.Click += new System.EventHandler(this.button1_Click); // // lblDate // this.lblDate.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lblDate.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.lblDate.Font = new System.Drawing.Font("Calibri", 32.25F, System.Drawing.FontStyle.Bold); this.lblDate.ForeColor = System.Drawing.Color.White; this.lblDate.ImageAlign = System.Drawing.ContentAlignment.TopLeft; this.lblDate.Location = new System.Drawing.Point(1660, 0); this.lblDate.Name = "lblDate"; this.lblDate.Size = new System.Drawing.Size(265, 106); this.lblDate.TabIndex = 49; this.lblDate.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // lblTitle // this.lblTitle.Appearance.BackColor = System.Drawing.Color.Transparent; this.lblTitle.Appearance.Font = new System.Drawing.Font("Calibri", 62F, System.Drawing.FontStyle.Bold); this.lblTitle.Appearance.ForeColor = System.Drawing.Color.White; this.lblTitle.Appearance.Options.UseBackColor = true; this.lblTitle.Appearance.Options.UseFont = true; this.lblTitle.Appearance.Options.UseForeColor = true; this.lblTitle.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None; this.lblTitle.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192))))); this.lblTitle.LineVisible = true; this.lblTitle.Location = new System.Drawing.Point(12, 0); this.lblTitle.Name = "lblTitle"; this.lblTitle.Size = new System.Drawing.Size(1901, 107); this.lblTitle.TabIndex = 2; this.lblTitle.Text = "Human Absenteeism by Month"; // // axfpAbsent // this.axfpAbsent.DataSource = null; this.axfpAbsent.Location = new System.Drawing.Point(5, 170); this.axfpAbsent.Name = "axfpAbsent"; this.axfpAbsent.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axfpAbsent.OcxState"))); this.axfpAbsent.Size = new System.Drawing.Size(1914, 422); this.axfpAbsent.TabIndex = 0; // // tmrDate // this.tmrDate.Interval = 1000; this.tmrDate.Tick += new System.EventHandler(this.tmrDate_Tick); // // arcScaleComponent2 // this.arcScaleComponent2.AppearanceMajorTickmark.BorderBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:White"); this.arcScaleComponent2.AppearanceMajorTickmark.ContentBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:White"); this.arcScaleComponent2.AppearanceMinorTickmark.BorderBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:White"); this.arcScaleComponent2.AppearanceMinorTickmark.ContentBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:White"); this.arcScaleComponent2.AppearanceTickmarkText.TextBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:Gainsboro"); this.arcScaleComponent2.Center = new DevExpress.XtraGauges.Core.Base.PointF2D(125F, 165F); this.arcScaleComponent2.EndAngle = 0F; this.arcScaleComponent2.MajorTickCount = 7; this.arcScaleComponent2.MajorTickmark.FormatString = "{0:F0}"; this.arcScaleComponent2.MajorTickmark.ShapeOffset = -2F; this.arcScaleComponent2.MajorTickmark.ShapeType = DevExpress.XtraGauges.Core.Model.TickmarkShapeType.Circular_Style13_2; this.arcScaleComponent2.MajorTickmark.TextOffset = -15F; this.arcScaleComponent2.MajorTickmark.TextOrientation = DevExpress.XtraGauges.Core.Model.LabelOrientation.LeftToRight; this.arcScaleComponent2.MaxValue = 800F; this.arcScaleComponent2.MinorTickCount = 4; this.arcScaleComponent2.MinorTickmark.ShapeType = DevExpress.XtraGauges.Core.Model.TickmarkShapeType.Circular_Style13_1; this.arcScaleComponent2.MinValue = 200F; this.arcScaleComponent2.Name = "scale2"; this.arcScaleComponent2.RadiusX = 65F; this.arcScaleComponent2.RadiusY = 65F; this.arcScaleComponent2.StartAngle = -180F; this.arcScaleComponent2.Value = 300F; this.arcScaleComponent2.ZOrder = -1; // // gaugeControl1 // this.gaugeControl1.AutoLayout = false; this.gaugeControl1.Gauges.AddRange(new DevExpress.XtraGauges.Base.IGauge[] { this.cGauge1}); this.gaugeControl1.Location = new System.Drawing.Point(18, 677); this.gaugeControl1.Name = "gaugeControl1"; this.gaugeControl1.Size = new System.Drawing.Size(929, 380); this.gaugeControl1.TabIndex = 18; // // cGauge1 // this.cGauge1.BackgroundLayers.AddRange(new DevExpress.XtraGauges.Win.Gauges.Circular.ArcScaleBackgroundLayerComponent[] { this.arcScaleBackgroundLayerComponent1}); this.cGauge1.Bounds = new System.Drawing.Rectangle(6, 6, 916, 370); this.cGauge1.Labels.AddRange(new DevExpress.XtraGauges.Win.Base.LabelComponent[] { this.labelComponent1, this.lblRubValueG, this.lblTitleGauges}); this.cGauge1.Name = "cGauge1"; this.cGauge1.Needles.AddRange(new DevExpress.XtraGauges.Win.Gauges.Circular.ArcScaleNeedleComponent[] { this.arcScaleNeedleComponent1}); this.cGauge1.Scales.AddRange(new DevExpress.XtraGauges.Win.Gauges.Circular.ArcScaleComponent[] { this.arcScaleComponentRub}); this.cGauge1.SpindleCaps.AddRange(new DevExpress.XtraGauges.Win.Gauges.Circular.ArcScaleSpindleCapComponent[] { this.arcScaleSpindleCapComponent1}); // // arcScaleBackgroundLayerComponent1 // this.arcScaleBackgroundLayerComponent1.ArcScale = this.arcScaleComponentRub; this.arcScaleBackgroundLayerComponent1.Name = "bg1"; this.arcScaleBackgroundLayerComponent1.ScaleCenterPos = new DevExpress.XtraGauges.Core.Base.PointF2D(0.5F, 0.7F); this.arcScaleBackgroundLayerComponent1.ShapeType = DevExpress.XtraGauges.Core.Model.BackgroundLayerShapeType.CircularHalf_Style4; this.arcScaleBackgroundLayerComponent1.Size = new System.Drawing.SizeF(350F, 248F); this.arcScaleBackgroundLayerComponent1.ZOrder = 1000; // // arcScaleComponentRub // this.arcScaleComponentRub.AppearanceMajorTickmark.BorderBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:White"); this.arcScaleComponentRub.AppearanceMajorTickmark.ContentBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:White"); this.arcScaleComponentRub.AppearanceMinorTickmark.BorderBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:White"); this.arcScaleComponentRub.AppearanceMinorTickmark.ContentBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:White"); this.arcScaleComponentRub.AppearanceTickmarkText.Font = new System.Drawing.Font("Tahoma", 16F, System.Drawing.FontStyle.Bold); this.arcScaleComponentRub.AppearanceTickmarkText.TextBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:Black"); this.arcScaleComponentRub.Center = new DevExpress.XtraGauges.Core.Base.PointF2D(151F, 150F); this.arcScaleComponentRub.EndAngle = 0F; this.arcScaleComponentRub.MajorTickmark.FormatString = "{0:F0}"; this.arcScaleComponentRub.MajorTickmark.ShapeOffset = -14F; this.arcScaleComponentRub.MajorTickmark.ShapeScale = new DevExpress.XtraGauges.Core.Base.FactorF2D(0.6F, 0.8F); this.arcScaleComponentRub.MajorTickmark.ShapeType = DevExpress.XtraGauges.Core.Model.TickmarkShapeType.Circular_Style4_2; this.arcScaleComponentRub.MajorTickmark.TextOffset = -40F; this.arcScaleComponentRub.MajorTickmark.TextOrientation = DevExpress.XtraGauges.Core.Model.LabelOrientation.LeftToRight; this.arcScaleComponentRub.MaxValue = 10F; this.arcScaleComponentRub.MinorTickCount = 0; this.arcScaleComponentRub.MinorTickmark.ShapeOffset = -7F; this.arcScaleComponentRub.MinorTickmark.ShapeScale = new DevExpress.XtraGauges.Core.Base.FactorF2D(0.6F, 1F); this.arcScaleComponentRub.MinorTickmark.ShapeType = DevExpress.XtraGauges.Core.Model.TickmarkShapeType.Circular_Style4_1; this.arcScaleComponentRub.MinorTickmark.ShowTick = false; this.arcScaleComponentRub.Name = "scale1"; this.arcScaleComponentRub.RadiusX = 170F; this.arcScaleComponentRub.RadiusY = 170F; this.arcScaleComponentRub.StartAngle = -180F; this.arcScaleComponentRub.Value = 6F; // // labelComponent1 // this.labelComponent1.Name = "labelComponent1"; // // lblRubValueG // this.lblRubValueG.AppearanceText.Font = new System.Drawing.Font("Calibri", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblRubValueG.AppearanceText.TextBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:White"); this.lblRubValueG.Name = "cGauge1_Label2"; this.lblRubValueG.Position = new DevExpress.XtraGauges.Core.Base.PointF2D(150.3F, 90.1F); this.lblRubValueG.Size = new System.Drawing.SizeF(125F, 50F); this.lblRubValueG.ZOrder = -1001; // // lblTitleGauges // this.lblTitleGauges.AppearanceText.Font = new System.Drawing.Font("Tahoma", 20F); this.lblTitleGauges.AppearanceText.TextBrush = new DevExpress.XtraGauges.Core.Drawing.SolidBrushObject("Color:Black"); this.lblTitleGauges.Name = "cGauge1_Label3"; this.lblTitleGauges.Position = new DevExpress.XtraGauges.Core.Base.PointF2D(160.4F, -50.7F); this.lblTitleGauges.Size = new System.Drawing.SizeF(300F, 25F); this.lblTitleGauges.Text = "Attendance AVG (%)"; this.lblTitleGauges.ZOrder = -1001; // // arcScaleNeedleComponent1 // this.arcScaleNeedleComponent1.ArcScale = this.arcScaleComponentRub; this.arcScaleNeedleComponent1.EndOffset = 5F; this.arcScaleNeedleComponent1.Name = "needle1"; this.arcScaleNeedleComponent1.ShapeType = DevExpress.XtraGauges.Core.Model.NeedleShapeType.CircularFull_Style4; this.arcScaleNeedleComponent1.StartOffset = -21F; this.arcScaleNeedleComponent1.ZOrder = -50; // // arcScaleSpindleCapComponent1 // this.arcScaleSpindleCapComponent1.ArcScale = this.arcScaleComponentRub; this.arcScaleSpindleCapComponent1.Name = "cap1"; this.arcScaleSpindleCapComponent1.ShapeType = DevExpress.XtraGauges.Core.Model.SpindleCapShapeType.CircularFull_Style4; this.arcScaleSpindleCapComponent1.Size = new System.Drawing.SizeF(16F, 16F); this.arcScaleSpindleCapComponent1.ZOrder = -100; // // chartHrCmp // this.chartHrCmp.AnimationStartMode = DevExpress.XtraCharts.ChartAnimationMode.OnDataChanged; this.chartHrCmp.BackColor = System.Drawing.Color.Transparent; this.chartHrCmp.DataBindings = null; simpleDiagram1.LabelsResolveOverlappingMinIndent = 40; this.chartHrCmp.Diagram = simpleDiagram1; this.chartHrCmp.IndicatorsPaletteName = "Palette 1"; this.chartHrCmp.IndicatorsPaletteRepository.Add("Palette 1", new DevExpress.XtraCharts.Palette("Palette 1", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[] { new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.Red, System.Drawing.Color.Red), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.Green, System.Drawing.Color.Green)})); this.chartHrCmp.Legend.AlignmentHorizontal = DevExpress.XtraCharts.LegendAlignmentHorizontal.Right; this.chartHrCmp.Legend.AlignmentVertical = DevExpress.XtraCharts.LegendAlignmentVertical.Center; this.chartHrCmp.Legend.Font = new System.Drawing.Font("Tahoma", 12F); this.chartHrCmp.Legend.Name = "Default Legend"; this.chartHrCmp.Legend.Visibility = DevExpress.Utils.DefaultBoolean.False; this.chartHrCmp.Location = new System.Drawing.Point(963, 677); this.chartHrCmp.Name = "chartHrCmp"; this.chartHrCmp.PaletteName = "Absent_Red"; this.chartHrCmp.PaletteRepository.Add("Absent_Blue", new DevExpress.XtraCharts.Palette("Absent_Blue", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[] { new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.DodgerBlue, System.Drawing.Color.DodgerBlue), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.Green, System.Drawing.Color.Green)})); this.chartHrCmp.PaletteRepository.Add("Absent_Red", new DevExpress.XtraCharts.Palette("Absent_Red", DevExpress.XtraCharts.PaletteScaleMode.Repeat, new DevExpress.XtraCharts.PaletteEntry[] { new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.Yellow, System.Drawing.Color.Yellow), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.Red, System.Drawing.Color.Red), new DevExpress.XtraCharts.PaletteEntry(System.Drawing.Color.Green, System.Drawing.Color.Green)})); pieSeriesLabel1.Border.Color = System.Drawing.Color.Black; pieSeriesLabel1.Border.Visibility = DevExpress.Utils.DefaultBoolean.True; pieSeriesLabel1.EnableAntialiasing = DevExpress.Utils.DefaultBoolean.True; pieSeriesLabel1.FillStyle.FillMode = DevExpress.XtraCharts.FillMode.Gradient; pieSeriesLabel1.Font = new System.Drawing.Font("Calibri", 13F, System.Drawing.FontStyle.Bold); pieSeriesLabel1.LineLength = 0; pieSeriesLabel1.LineStyle.LineJoin = System.Drawing.Drawing2D.LineJoin.Bevel; pieSeriesLabel1.LineVisibility = DevExpress.Utils.DefaultBoolean.True; pieSeriesLabel1.Position = DevExpress.XtraCharts.PieSeriesLabelPosition.TwoColumns; pieSeriesLabel1.ResolveOverlappingMode = DevExpress.XtraCharts.ResolveOverlappingMode.Default; pieSeriesLabel1.TextColor = System.Drawing.Color.Black; pieSeriesLabel1.TextPattern = "{V:#,0} Person(s)\n{VP:0.0%}\n"; series1.Label = pieSeriesLabel1; series1.LabelsVisibility = DevExpress.Utils.DefaultBoolean.True; series1.Name = "Series 1"; pieSeriesView1.Animation = pieFlyInAnimation1; pieSeriesView1.MinAllowedSizePercentage = 10D; pieSeriesView1.Rotation = 90; series1.View = pieSeriesView1; this.chartHrCmp.SeriesSerializable = new DevExpress.XtraCharts.Series[] { series1}; this.chartHrCmp.Size = new System.Drawing.Size(941, 380); this.chartHrCmp.TabIndex = 19; chartTitle1.Font = new System.Drawing.Font("Tahoma", 20F); chartTitle1.Text = "Rubber"; chartTitle1.Visibility = DevExpress.Utils.DefaultBoolean.False; this.chartHrCmp.Titles.AddRange(new DevExpress.XtraCharts.ChartTitle[] { chartTitle1}); // // label21 // this.label21.BackColor = System.Drawing.Color.Green; this.label21.Font = new System.Drawing.Font("Calibri", 12.25F, System.Drawing.FontStyle.Bold); this.label21.ForeColor = System.Drawing.Color.White; this.label21.Location = new System.Drawing.Point(1375, 646); this.label21.Name = "label21"; this.label21.Size = new System.Drawing.Size(165, 28); this.label21.TabIndex = 57; this.label21.Text = "Attended"; this.label21.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lblAbenst2 // this.lblAbenst2.BackColor = System.Drawing.Color.Red; this.lblAbenst2.Font = new System.Drawing.Font("Calibri", 12.25F, System.Drawing.FontStyle.Bold); this.lblAbenst2.ForeColor = System.Drawing.Color.White; this.lblAbenst2.Location = new System.Drawing.Point(1711, 646); this.lblAbenst2.Name = "lblAbenst2"; this.lblAbenst2.Size = new System.Drawing.Size(193, 28); this.lblAbenst2.TabIndex = 56; this.lblAbenst2.Text = "Unplanned Absenteeism"; this.lblAbenst2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lblAbenst1 // this.lblAbenst1.BackColor = System.Drawing.Color.Yellow; this.lblAbenst1.Font = new System.Drawing.Font("Calibri", 12.25F, System.Drawing.FontStyle.Bold); this.lblAbenst1.ForeColor = System.Drawing.Color.Black; this.lblAbenst1.Location = new System.Drawing.Point(1542, 646); this.lblAbenst1.Name = "lblAbenst1"; this.lblAbenst1.Size = new System.Drawing.Size(165, 28); this.lblAbenst1.TabIndex = 55; this.lblAbenst1.Text = "Plan Absenteeism"; this.lblAbenst1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lblTotAbsent // this.lblTotAbsent.AutoSize = true; this.lblTotAbsent.Font = new System.Drawing.Font("Calibri", 14F, System.Drawing.FontStyle.Bold); this.lblTotAbsent.ForeColor = System.Drawing.Color.Black; this.lblTotAbsent.Location = new System.Drawing.Point(1751, 695); this.lblTotAbsent.Name = "lblTotAbsent"; this.lblTotAbsent.Size = new System.Drawing.Size(109, 23); this.lblTotAbsent.TabIndex = 58; this.lblTotAbsent.Text = "Total Absent"; this.lblTotAbsent.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // uc_month // this.uc_month.AutoSize = true; this.uc_month.Location = new System.Drawing.Point(5, 118); this.uc_month.Name = "uc_month"; this.uc_month.Size = new System.Drawing.Size(472, 46); this.uc_month.TabIndex = 59; this.uc_month.ValueChangeEvent += new System.EventHandler(this.uc_month_ValueChangeEvent); // // uc_year // this.uc_year.AutoSize = true; this.uc_year.Location = new System.Drawing.Point(7, 117); this.uc_year.Name = "uc_year"; this.uc_year.Size = new System.Drawing.Size(229, 47); this.uc_year.TabIndex = 60; this.uc_year.ValueChangeEvent += new System.EventHandler(this.uc_month_ValueChangeEvent); // // FRM_SMT_HR_ABSENT_PHUOC // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.BackColor = System.Drawing.Color.White; this.ClientSize = new System.Drawing.Size(1916, 1054); this.Controls.Add(this.uc_year); this.Controls.Add(this.uc_month); this.Controls.Add(this.lblTotAbsent); this.Controls.Add(this.label21); this.Controls.Add(this.lblAbenst2); this.Controls.Add(this.lblAbenst1); this.Controls.Add(this.chartHrCmp); this.Controls.Add(this.gaugeControl1); this.Controls.Add(this.pnHeader); this.Controls.Add(this.axfpAbsent); this.Name = "FRM_SMT_HR_ABSENT_PHUOC"; this.Text = "FRM_SMT_HR_ABSENT"; this.Load += new System.EventHandler(this.FRM_SMT_HR_ABSENT_Load); this.VisibleChanged += new System.EventHandler(this.FRM_SMT_HR_ABSENT_VisibleChanged); this.pnHeader.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.axfpAbsent)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.arcScaleComponent2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cGauge1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.arcScaleBackgroundLayerComponent1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.arcScaleComponentRub)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.labelComponent1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblRubValueG)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lblTitleGauges)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.arcScaleNeedleComponent1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.arcScaleSpindleCapComponent1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(simpleDiagram1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(pieSeriesLabel1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(pieSeriesView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(series1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.chartHrCmp)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FORM_DEFFECTIVE_STATUS_V2)); this.panel1 = new System.Windows.Forms.Panel(); this.cmdMonth = new DevExpress.XtraEditors.SimpleButton(); this.cmdYear = new DevExpress.XtraEditors.SimpleButton(); this.cmdBack = new System.Windows.Forms.Button(); this.lblDate = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.timer2 = new System.Windows.Forms.Timer(this.components); this.chart1 = new ChartDirector.WinChartViewer(); this.chart2 = new ChartDirector.WinChartViewer(); this.axfpSpread = new AxFPSpreadADO.AxfpSpread(); this.UC_MONTH = new OS_DSF.UC.UC_MONTH_SELECTION(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.chart2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axfpSpread)).BeginInit(); this.SuspendLayout(); // // panel1 // this.panel1.BackColor = System.Drawing.Color.Turquoise; this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.panel1.Controls.Add(this.cmdMonth); this.panel1.Controls.Add(this.cmdYear); this.panel1.Controls.Add(this.cmdBack); this.panel1.Controls.Add(this.lblDate); this.panel1.Controls.Add(this.label1); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.MaximumSize = new System.Drawing.Size(1920, 109); this.panel1.MinimumSize = new System.Drawing.Size(1920, 109); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(1920, 109); this.panel1.TabIndex = 0; // // cmdMonth // this.cmdMonth.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.cmdMonth.Appearance.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.cmdMonth.Appearance.Font = new System.Drawing.Font("Calibri", 27.75F, System.Drawing.FontStyle.Bold); this.cmdMonth.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal; this.cmdMonth.Appearance.Options.UseBackColor = true; this.cmdMonth.Appearance.Options.UseFont = true; this.cmdMonth.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; this.cmdMonth.Enabled = false; this.cmdMonth.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("cmdMonth.ImageOptions.Image"))); this.cmdMonth.Location = new System.Drawing.Point(1512, 5); this.cmdMonth.Name = "cmdMonth"; this.cmdMonth.Size = new System.Drawing.Size(175, 48); this.cmdMonth.TabIndex = 68; this.cmdMonth.Text = "Day"; // // cmdYear // this.cmdYear.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.cmdYear.Appearance.BackColor2 = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); this.cmdYear.Appearance.Font = new System.Drawing.Font("Calibri", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.cmdYear.Appearance.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal; this.cmdYear.Appearance.Options.UseBackColor = true; this.cmdYear.Appearance.Options.UseFont = true; this.cmdYear.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.Flat; this.cmdYear.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("cmdYear.ImageOptions.Image"))); this.cmdYear.Location = new System.Drawing.Point(1512, 56); this.cmdYear.Name = "cmdYear"; this.cmdYear.Size = new System.Drawing.Size(175, 48); this.cmdYear.TabIndex = 69; this.cmdYear.Text = "Month"; this.cmdYear.Click += new System.EventHandler(this.cmdYear_Click); // // cmdBack // this.cmdBack.BackColor = System.Drawing.Color.Turquoise; this.cmdBack.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cmdBack.BackgroundImage"))); this.cmdBack.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.cmdBack.FlatAppearance.BorderColor = System.Drawing.Color.Yellow; this.cmdBack.FlatAppearance.BorderSize = 0; this.cmdBack.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.cmdBack.Location = new System.Drawing.Point(1314, 5); this.cmdBack.Name = "cmdBack"; this.cmdBack.Size = new System.Drawing.Size(108, 101); this.cmdBack.TabIndex = 67; this.cmdBack.UseVisualStyleBackColor = false; this.cmdBack.Click += new System.EventHandler(this.cmdBack_Click); // // lblDate // this.lblDate.BackColor = System.Drawing.Color.Turquoise; this.lblDate.Dock = System.Windows.Forms.DockStyle.Right; this.lblDate.Font = new System.Drawing.Font("Calibri", 32.25F, System.Drawing.FontStyle.Bold); this.lblDate.ForeColor = System.Drawing.Color.White; this.lblDate.ImageAlign = System.Drawing.ContentAlignment.TopLeft; this.lblDate.Location = new System.Drawing.Point(1676, 0); this.lblDate.Name = "lblDate"; this.lblDate.Size = new System.Drawing.Size(244, 109); this.lblDate.TabIndex = 46; this.lblDate.Text = "lblDate"; this.lblDate.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.lblDate.Click += new System.EventHandler(this.lblDate_Click); // // label1 // this.label1.BackColor = System.Drawing.Color.Turquoise; this.label1.Font = new System.Drawing.Font("Calibri", 45.25F, System.Drawing.FontStyle.Bold); this.label1.ForeColor = System.Drawing.Color.White; this.label1.Location = new System.Drawing.Point(8, 0); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(1108, 103); this.label1.TabIndex = 0; this.label1.Text = "Defective Status by Process && Reason"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // timer2 // this.timer2.Tick += new System.EventHandler(this.timer2_Tick); // // chart1 // this.chart1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.chart1.Location = new System.Drawing.Point(1221, 116); this.chart1.Name = "chart1"; this.chart1.Size = new System.Drawing.Size(683, 448); this.chart1.TabIndex = 64; this.chart1.TabStop = false; // // chart2 // this.chart2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.chart2.Location = new System.Drawing.Point(1221, 575); this.chart2.Name = "chart2"; this.chart2.Size = new System.Drawing.Size(683, 451); this.chart2.TabIndex = 65; this.chart2.TabStop = false; // // axfpSpread // this.axfpSpread.DataSource = null; this.axfpSpread.Location = new System.Drawing.Point(5, 158); this.axfpSpread.Name = "axfpSpread"; this.axfpSpread.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axfpSpread.OcxState"))); this.axfpSpread.Size = new System.Drawing.Size(1207, 884); this.axfpSpread.TabIndex = 63; // // UC_MONTH // this.UC_MONTH.AutoSize = true; this.UC_MONTH.Location = new System.Drawing.Point(5, 111); this.UC_MONTH.Name = "UC_MONTH"; this.UC_MONTH.Size = new System.Drawing.Size(472, 46); this.UC_MONTH.TabIndex = 66; // // FORM_DEFFECTIVE_STATUS_V2 // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.ClientSize = new System.Drawing.Size(1916, 1054); this.Controls.Add(this.UC_MONTH); this.Controls.Add(this.chart2); this.Controls.Add(this.chart1); this.Controls.Add(this.panel1); this.Controls.Add(this.axfpSpread); this.Font = new System.Drawing.Font("Malgun Gothic", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.KeyPreview = true; this.Name = "FORM_DEFFECTIVE_STATUS_V2"; this.Text = "FORM_DEFFECTIVE_STATUS"; this.Activated += new System.EventHandler(this.FORM_DEFFECTIVE_STATUS_Activated); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FORM_DEFFECTIVE_STATUS_FormClosing); this.Load += new System.EventHandler(this.FORM_DEFFECTIVE_STATUS_Load); this.VisibleChanged += new System.EventHandler(this.FORM_DEFFECTIVE_STATUS_VisibleChanged); this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.chart1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.chart2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axfpSpread)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private void showAnimation(AxFPSpreadADO.AxfpSpread flg) { flg.Hide(); IPEX_Monitor.ClassLib.WinAPI.AnimateWindow(flg.Handle, 2000, IPEX_Monitor.ClassLib.WinAPI.getSlidType("2")); flg.Show(); }
public void MachineBodyDMP(int arg_icol, int arg_irow, int arg_idt, DataTable arg_dt, AxFPSpreadADO.AxfpSpread arg_grid) { try { arg_grid.SetCellBorder(arg_icol, arg_irow, arg_icol + 2, arg_irow, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexLeft, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); arg_grid.SetCellBorder(arg_icol, arg_irow, arg_icol + 3, arg_irow, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexLeft, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); arg_grid.SetCellBorder(arg_icol, arg_irow, arg_icol + 2, arg_irow, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexBottom, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); arg_grid.set_RowHeight(arg_irow, 45); arg_grid.Col = arg_icol; arg_grid.Row = arg_irow; arg_grid.Text = arg_dt.Rows[arg_idt]["STA"].ToString(); arg_grid.Col = arg_icol + 1; arg_grid.Text = arg_dt.Rows[arg_idt]["PLAN_L"].ToString(); arg_grid.BackColor = Color.FromName(arg_dt.Rows[arg_idt]["L_color_B_value"].ToString()); arg_grid.ForeColor = Color.FromName(arg_dt.Rows[arg_idt]["L_color_F_value"].ToString()); arg_grid.Col = arg_icol + 2; arg_grid.Text = arg_dt.Rows[arg_idt]["PLAN_R"].ToString(); arg_grid.BackColor = Color.FromName(arg_dt.Rows[arg_idt]["R_color_B_value"].ToString()); arg_grid.ForeColor = Color.FromName(arg_dt.Rows[arg_idt]["R_color_F_value"].ToString()); if (arg_dt.Rows[arg_idt]["L_Status"].ToString() == "1") { _Loc_plan_DMP.Add((arg_icol + 1) + " " + arg_irow + " " + arg_dt.Rows[arg_idt]["machine_cd"].ToString()); } if (arg_dt.Rows[arg_idt]["R_Status"].ToString() == "1") { _Loc_plan_DMP.Add((arg_icol + 2) + " " + arg_irow + " " + arg_dt.Rows[arg_idt]["machine_cd"].ToString()); } if (arg_dt.Rows[arg_idt]["L_Status"].ToString() == "2") { _Loc_change_DMP.Add((arg_icol + 1) + " " + arg_irow + " " + arg_dt.Rows[arg_idt]["machine_cd"].ToString()); } if (arg_dt.Rows[arg_idt]["R_Status"].ToString() == "2") { _Loc_change_DMP.Add((arg_icol + 2) + " " + arg_irow + " " + arg_dt.Rows[arg_idt]["machine_cd"].ToString()); } } catch (Exception) {} }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UC_GRID_PERFORMANCE_DASHBOARD)); this.pnHeader = new System.Windows.Forms.Panel(); this.progressPanel1 = new DevExpress.XtraWaitForm.ProgressPanel(); this.lblTitile = new System.Windows.Forms.Label(); this.axfpSpread1 = new AxFPSpreadADO.AxfpSpread(); this.pnHeader.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.axfpSpread1)).BeginInit(); this.SuspendLayout(); // // pnHeader // this.pnHeader.BackColor = System.Drawing.Color.DodgerBlue; this.pnHeader.Controls.Add(this.progressPanel1); this.pnHeader.Controls.Add(this.lblTitile); this.pnHeader.Dock = System.Windows.Forms.DockStyle.Top; this.pnHeader.ForeColor = System.Drawing.Color.White; this.pnHeader.Location = new System.Drawing.Point(0, 0); this.pnHeader.Name = "pnHeader"; this.pnHeader.Size = new System.Drawing.Size(628, 52); this.pnHeader.TabIndex = 1; // // progressPanel1 // this.progressPanel1.Appearance.BackColor = System.Drawing.Color.Transparent; this.progressPanel1.Appearance.Options.UseBackColor = true; this.progressPanel1.BarAnimationElementThickness = 2; this.progressPanel1.Location = new System.Drawing.Point(436, 3); this.progressPanel1.LookAndFeel.UseDefaultLookAndFeel = false; this.progressPanel1.LookAndFeel.UseWindowsXPTheme = true; this.progressPanel1.Name = "progressPanel1"; this.progressPanel1.Size = new System.Drawing.Size(189, 46); this.progressPanel1.TabIndex = 1; this.progressPanel1.Text = "progressPanel1"; // // lblTitile // this.lblTitile.Dock = System.Windows.Forms.DockStyle.Fill; this.lblTitile.Font = new System.Drawing.Font("Calibri", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblTitile.Location = new System.Drawing.Point(0, 0); this.lblTitile.Name = "lblTitile"; this.lblTitile.Size = new System.Drawing.Size(628, 52); this.lblTitile.TabIndex = 0; this.lblTitile.Text = "Production"; this.lblTitile.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // axfpSpread1 // this.axfpSpread1.DataSource = null; this.axfpSpread1.Dock = System.Windows.Forms.DockStyle.Fill; this.axfpSpread1.Location = new System.Drawing.Point(0, 52); this.axfpSpread1.Name = "axfpSpread1"; this.axfpSpread1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axfpSpread1.OcxState"))); this.axfpSpread1.Size = new System.Drawing.Size(628, 252); this.axfpSpread1.TabIndex = 2; // // UC_GRID_PERFORMANCE_DASHBOARD // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.axfpSpread1); this.Controls.Add(this.pnHeader); this.Name = "UC_GRID_PERFORMANCE_DASHBOARD"; this.Size = new System.Drawing.Size(628, 304); this.pnHeader.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.axfpSpread1)).EndInit(); this.ResumeLayout(false); }
private void MachineHead(int arg_icol, int arg_irow, int arg_idt, DataTable arg_dt, AxFPSpreadADO.AxfpSpread arg_grid) { try { int iRow = Convert.ToInt32(arg_dt.Rows[arg_idt]["LINE"]); arg_grid.Col = arg_icol; arg_grid.Row = arg_irow; arg_grid.Text = arg_dt.Rows[arg_idt]["MACHINE_NAME"].ToString(); arg_grid.FontSize = 15; arg_grid.FontBold = true; arg_grid.BackColor = Color.DodgerBlue; arg_grid.ForeColor = Color.White; arg_grid.TypeVAlign = FPSpreadADO.TypeVAlignConstants.TypeVAlignCenter; arg_grid.AddCellSpan(arg_icol, arg_irow, iRow * 3, 1); //arg_grid.SetCellBorder(arg_icol, arg_irow, arg_icol, arg_irow, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexOutline, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); // arg_grid.SetCellBorder(icol, irow, icol + 3, irow + 1, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexLeft, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); //arg_grid.SetCellBorder(icol, irow, icol + 2, irow +1, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexBottom, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); //arg_grid.SetCellBorder(icol, irow, icol + 2, irow, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexTop, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); arg_irow++; arg_grid.Row = arg_irow; for (int i = 0; i < iRow; i++) { // if (arg_dt.Rows[arg_idt]["LINE_NAME"].ToString() == "E") // arg_grid.set_ColWidth(arg_icol + (i * 3), 6.0); arg_grid.Col = arg_icol + (i * 3); arg_grid.Text = "M/C"; arg_grid.BackColor = Color.LightSkyBlue; // arg_grid.ForeColor = Color.White; arg_grid.FontSize = 9; arg_grid.FontBold = true; arg_grid.Col = arg_icol + (i * 3) + 1; arg_grid.Text = "Plan"; arg_grid.BackColor = Color.Green; arg_grid.ForeColor = Color.White; arg_grid.FontSize = 9; arg_grid.FontBold = true; arg_grid.Col = arg_icol + (i * 3) + 2; arg_grid.Text = "Act"; arg_grid.BackColor = Color.Orange; arg_grid.ForeColor = Color.White; arg_grid.FontSize = 9; arg_grid.FontBold = true; } arg_grid.Col = -1; arg_grid.set_RowHeight(arg_irow, 20); //arg_grid.Col = arg_icol + 2; //arg_grid.Text = "R"; //arg_grid.BackColor = Color.LightSkyBlue; //// arg_grid.ForeColor = Color.White; //arg_grid.Font = new System.Drawing.Font("Calibri", 15, FontStyle.Bold); } catch (Exception ex) { } }
private void MachineHeadDMP(int arg_icol, int arg_irow, int arg_idt, DataTable arg_dt, AxFPSpreadADO.AxfpSpread arg_grid) { try { arg_grid.Col = arg_icol; arg_grid.Row = arg_irow; arg_grid.Text = arg_dt.Rows[arg_idt]["MACHINE_NAME"].ToString(); arg_grid.Font = new System.Drawing.Font("Calibri", 20, FontStyle.Bold); arg_grid.BackColor = Color.DodgerBlue; arg_grid.ForeColor = Color.White; arg_grid.TypeVAlign = FPSpreadADO.TypeVAlignConstants.TypeVAlignCenter; arg_grid.AddCellSpan(arg_icol, arg_irow, 3, 1); //arg_grid.SetCellBorder(icol, irow, icol + 2, irow + 1, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexOutline, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); // arg_grid.SetCellBorder(icol, irow, icol + 3, irow + 1, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexLeft, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); //arg_grid.SetCellBorder(icol, irow, icol + 2, irow +1, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexBottom, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); //arg_grid.SetCellBorder(icol, irow, icol + 2, irow, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexTop, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); arg_irow++; arg_grid.Row = arg_irow; arg_grid.Col = arg_icol; arg_grid.Text = "STA"; arg_grid.BackColor = Color.LightSkyBlue; // arg_grid.ForeColor = Color.White; arg_grid.Font = new System.Drawing.Font("Calibri", 15, FontStyle.Bold); arg_grid.Col = arg_icol + 1; arg_grid.Text = "L"; arg_grid.BackColor = Color.LightSkyBlue; // arg_grid.ForeColor = Color.White; arg_grid.Font = new System.Drawing.Font("Calibri", 15, FontStyle.Bold); arg_grid.Col = arg_icol + 2; arg_grid.Text = "R"; arg_grid.BackColor = Color.LightSkyBlue; // arg_grid.ForeColor = Color.White; arg_grid.Font = new System.Drawing.Font("Calibri", 15, FontStyle.Bold); } catch {} }
private void DisplayGridDMC(DataTable arg_dt, AxFPSpreadADO.AxfpSpread arg_grid) { try { if (arg_dt == null || arg_dt.Rows.Count == 0) { return; } axGrid.ClearRange(0, 0, 50, 50, true); create_default(); _Loc_change_DMC.Clear(); int row_s2 = 15; int row_s1 = 7; int row_s3 = 23; int col_s3 = 6; int irow = row_s2; int icol = 2; MachineBodyDMC(icol, irow, 0, arg_dt, arg_grid); MachineCenterText(icol, irow, 0, arg_dt, arg_grid); //MachineCenterBG(icol, irow, 0, arg_dt, arg_grid); lbl_plan.Text = arg_dt.Rows[0]["TOT_PLAN"].ToString(); lbl_actual.Text = arg_dt.Rows[0]["TOT_ACT"].ToString(); for (int i = 1; i < arg_dt.Rows.Count; i++) { if (arg_dt.Rows[i]["machine_cd"].ToString() == arg_dt.Rows[i - 1]["machine_cd"].ToString()) { if (arg_dt.Rows[i]["direction"].ToString() == arg_dt.Rows[i - 1]["direction"].ToString()) { if (arg_dt.Rows[i]["direction"].ToString() == "1") { irow--; // MachineCenterBG(icol, irow, i, arg_dt, arg_grid); } else if (arg_dt.Rows[i]["direction"].ToString() == "2") { icol++; } else if (arg_dt.Rows[i]["direction"].ToString() == "3") { irow++; } else { icol--; } MachineBodyDMC(icol, irow, i, arg_dt, arg_grid); } else { if (arg_dt.Rows[i]["direction"].ToString() == "2") { irow--; icol++; MachineHeadDMC(icol, irow - 1, i, arg_dt, arg_grid); } else if (arg_dt.Rows[i]["direction"].ToString() == "3") { icol++; irow++; } else if (arg_dt.Rows[i]["direction"].ToString() == "4") { irow++; icol--; } MachineBodyDMC(icol, irow, i, arg_dt, arg_grid); } } else { if (arg_dt.Rows[i]["line_id"].ToString() == "2") { irow = row_s2; icol = icol + 6; // axGrid.SetText(icol, irow, "2"); } else if (arg_dt.Rows[i]["line_id"].ToString() == "1") { irow = row_s1; icol--; // axGrid.SetText(icol, irow,"1"); } else { irow = row_s3; col_s3 += 8; icol = col_s3; } MachineBodyDMC(icol, irow, i, arg_dt, arg_grid); MachineCenterText(icol, irow, i, arg_dt, arg_grid); // MachineCenterBG(icol, irow, i, arg_dt, arg_grid); } } // if (_Loc_change.Count > 0) tmr_blind.Start(); // else tmr_blind.Stop(); } catch {} }
private void DisplayGrid(DataTable arg_dt, AxFPSpreadADO.AxfpSpread arg_grid) { try { if (arg_dt == null || arg_dt.Rows.Count == 0) { return; } int row_s = 2; int irow = row_s; int icol = 3; _count = 0; arg_grid.MaxRows = row_s + 25; MachineHead(icol, irow, 0, arg_dt, arg_grid); irow = row_s + 2; MachineBody(icol, irow, 0, arg_dt, arg_grid); for (int i = 1; i < arg_dt.Rows.Count; i++) { if (arg_dt.Rows[i]["MACHINE_NAME"].ToString() == arg_dt.Rows[i - 1]["MACHINE_NAME"].ToString()) { if (arg_dt.Rows[i]["machine_row"].ToString() == "1") { irow = row_s + 2; icol += 3; } else { irow++; } //if (arg_dt.Rows[i]["LINE"].ToString() == arg_dt.Rows[i - 1]["LINE"].ToString()) //{ // irow++; //} //else //{ // irow = row_s + 2; // icol += 3; //} MachineBody(icol, irow, i, arg_dt, arg_grid); } else { arg_grid.set_ColWidth(icol + 3, 0.7); icol += 5; irow = row_s; MachineHead(icol, irow, i, arg_dt, arg_grid); irow = row_s + 2; MachineBody(icol, irow, i, arg_dt, arg_grid); } } arg_grid.MaxCols = icol + 3; } catch (Exception ex) { } finally { // WarehouseMaterialSystem.ClassLib.WinAPI.AnimateWindow(arg_grid.Handle, 200, WarehouseMaterialSystem.ClassLib.WinAPI.getSlidType("2")); // arg_grid.Visible = true; } }
//private void MachineCenterBG(int arg_col, int arg_row, int arg_idt, DataTable arg_dt, AxFPSpreadADO.AxfpSpread arg_grid) //{ // int c = Convert.ToInt32(arg_dt.Rows[arg_idt]["line"].ToString()); // for (int i = 1; i <= c; i++) // { // arg_grid.Row = arg_row; // arg_grid.Col = arg_col + i; // arg_grid.BackColor = Color.FromArgb(242, 226, 213); // } // arg_grid.SetCellBorder(arg_col + 1, arg_row, arg_col + c, arg_row // , FPSpreadADO.CellBorderIndexConstants.CellBorderIndexLeft, 0xd5e2f2 // , FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); // arg_grid.SetCellBorder(arg_col + 1, arg_row, arg_col + c, arg_row // , FPSpreadADO.CellBorderIndexConstants.CellBorderIndexBottom, 0xd5e2f2 // , FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); //} private void MachineHeadDMC(int arg_col, int arg_row, int arg_idt, DataTable arg_dt, AxFPSpreadADO.AxfpSpread arg_grid) { try { //axGrid.AddCellSpan(icol, irow // , Convert.ToInt32(_dt_layout.Rows[idt]["line"].ToString()) * 2 // , 1); arg_grid.Col = arg_col; arg_grid.Row = arg_row; arg_grid.set_RowHeight(arg_row, 30); arg_grid.Text = arg_dt.Rows[arg_idt]["MACHINE_NAME"].ToString(); arg_grid.Font = new System.Drawing.Font("Calibri", 20, FontStyle.Bold); arg_grid.BackColor = Color.DodgerBlue; arg_grid.ForeColor = Color.White; arg_grid.TypeVAlign = FPSpreadADO.TypeVAlignConstants.TypeVAlignCenter; arg_grid.AddCellSpan(arg_col, arg_row , Convert.ToInt32(arg_dt.Rows[arg_idt]["line"].ToString()) , 1); } catch { } }
private void MachineCenterText(int arg_col, int arg_row, int arg_idt, DataTable arg_dt, AxFPSpreadADO.AxfpSpread arg_grid) { int iColPlus = Convert.ToInt32(arg_dt.Rows[arg_idt]["col_cen"]); int iRowPlus = Convert.ToInt32(arg_dt.Rows[arg_idt]["row_cen"]); //arg_grid.AddCellSpan(arg_col + (iColPlus - 1), arg_row + (iRowPlus - 1), iColPlus, iRowPlus); arg_grid.AddCellSpan(arg_col + 1, arg_row - (iRowPlus - 1), iColPlus, iRowPlus); arg_grid.Col = arg_col + 1; arg_grid.Row = arg_row - (iRowPlus - 1); arg_grid.TypeEditMultiLine = true; arg_grid.FontBold = true; arg_grid.FontSize = 18f; arg_grid.BackColor = Color.FromArgb(242, 226, 213); arg_grid.SetText(arg_col + 1, arg_row - (iRowPlus - 1), arg_dt.Rows[arg_idt]["text_cen"].ToString().Replace("-", "\n")); //int c = Convert.ToInt32(arg_dt.Rows[arg_idt]["line"].ToString()); //for (int i = 1; i <= c; i++) //{ // arg_grid.Row = arg_row; // arg_grid.Col = arg_col + i; // arg_grid.BackColor = Color.FromArgb(244, 140, 65); //} //arg_grid.SetCellBorder(arg_col + 1, arg_row, arg_col + c, arg_row // , FPSpreadADO.CellBorderIndexConstants.CellBorderIndexLeft, 0x418cf4 // , FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); //arg_grid.SetCellBorder(arg_col + 1, arg_row, arg_col + c, arg_row // , FPSpreadADO.CellBorderIndexConstants.CellBorderIndexBottom, 0x418cf4 // , FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); }
public void MachineBody(int arg_icol, int arg_irow, int arg_idt, DataTable arg_dt, AxFPSpreadADO.AxfpSpread arg_grid) { try { arg_grid.SetCellBorder(arg_icol + 1, arg_irow, arg_icol + 2, arg_irow, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexLeft, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); arg_grid.SetCellBorder(arg_icol, arg_irow, arg_icol + 3, arg_irow, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexLeft, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); arg_grid.SetCellBorder(arg_icol, arg_irow, arg_icol + 2, arg_irow, FPSpreadADO.CellBorderIndexConstants.CellBorderIndexBottom, 0, FPSpreadADO.CellBorderStyleConstants.CellBorderStyleSolid); arg_grid.set_RowHeight(arg_irow, 20); arg_grid.Col = arg_icol; arg_grid.Row = arg_irow; arg_grid.Text = arg_dt.Rows[arg_idt]["STATION_CD"].ToString(); arg_grid.FontSize = 11; arg_grid.FontBold = true; arg_grid.BackColor = Color.LightGreen; ///Plan arg_grid.Col = arg_icol + 1; arg_grid.Text = arg_dt.Rows[arg_idt]["MOLD_SIZE_CD"].ToString(); if (arg_dt.Rows[arg_idt]["STATUS"].ToString() == "1") { arg_grid.BackColor = Color.Yellow; _count++; } else { arg_grid.BackColor = Color.White; } ///Act arg_grid.Col = arg_icol + 2; arg_grid.Text = arg_dt.Rows[arg_idt]["USE_SIZE"].ToString(); if (arg_dt.Rows[arg_idt]["STATUS"].ToString() == "1") { arg_grid.BackColor = Color.Yellow; } else { arg_grid.BackColor = Color.White; } } catch (Exception ex) { } }