private void panel_Enter(object sender, EventArgs e) { CJia.Controls.CJiaPanel panel = sender as CJia.Controls.CJiaPanel; if (imagePanel.Controls != null && imagePanel.Controls.Count > 0) { for (int i = 0; i < imagePanel.Controls.Count; i++) { if (imagePanel.Controls[i] is CJia.Controls.CJiaPanel) { imagePanel.Controls[i].BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(237)))), ((int)(((byte)(241))))); } } } panel.BackColor = Color.LightCyan; imageTitle imagetitle = panel.Tag as imageTitle; this.picDA.Image = imagetitle.image; this.labTitle.Text = imagetitle.title; this.labPageNo.Text = imagetitle.pageNo; }
/// <summary> /// 一项该panel /// </summary> /// <param name="panel"></param> private void movePanel(CJia.Controls.CJiaPanel panel) { panel.Focus(); if (imagePanel.Controls != null && imagePanel.Controls.Count > 0) { for (int i = 0; i < imagePanel.Controls.Count; i++) { if (imagePanel.Controls[i] is CJia.Controls.CJiaPanel) { imagePanel.Controls[i].BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(233)))), ((int)(((byte)(237)))), ((int)(((byte)(241))))); } } } panel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); NewimageTitle imagetitle = panel.Tag as NewimageTitle; this.selectPanelNumber = imagetitle.number; this.SelectPicData = imagetitle.picData; this.picDA.Image = imagetitle.image; if (imagetitle.picData["CHECK_STATUS"].ToString() == "103") { this.txtCheckStatusName.ForeColor = Color.Black; } else if (imagetitle.picData["CHECK_STATUS"].ToString() == "101") { this.txtCheckStatusName.ForeColor = Color.Green; } else { this.txtCheckStatusName.ForeColor = Color.Red; } this.txtPageNo.Text = imagetitle.pageNo; this.txtProName.Text = imagetitle.title; this.txtCheckStatusName.Text = imagetitle.picData["CHECK_STATUS_NAME"].ToString(); this.txtSubPage.Text = imagetitle.subPage; //this.labTitle.Text = imagetitle.title; //this.labPageNo.Text = imagetitle.pageNo; }
/// <summary> /// 增加一行 /// </summary> private void AddRow() { Controls.CJiaRTLookUp crtFilterFielt = new Controls.CJiaRTLookUp(); Controls.CJiaComboBox ccbTypt = new Controls.CJiaComboBox(); Controls.CJiaComboBox ccbLiftbracket = new Controls.CJiaComboBox(); Controls.CJiaComboBox ccbYesNo = new Controls.CJiaComboBox(); Controls.CJiaTextBox ctbValue_1 = new CJia.Controls.CJiaTextBox(); Controls.CJiaTextBox ctbValue_2 = new CJia.Controls.CJiaTextBox(); Controls.CJiaComboBox ccbRightbracket = new CJia.Controls.CJiaComboBox(); Controls.CJiaComboBox ccbAndOr = new CJia.Controls.CJiaComboBox(); Controls.CJiaPanel cJiaPanel = new CJia.Controls.CJiaPanel(); crtFilterFielt.Caption = ""; crtFilterFielt.DataSource = null; crtFilterFielt.DisplayField = ""; crtFilterFielt.DisplayText = ""; crtFilterFielt.DisplayValue = ""; crtFilterFielt.EditValue = ""; crtFilterFielt.Location = new System.Drawing.Point(54, (this.RowNumber - 1) * 30 + 5); crtFilterFielt.Name = "crtFilterFielt" + this.RowNumber.ToString(); crtFilterFielt.OpenAfterEnter = false; crtFilterFielt.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); crtFilterFielt.Properties.Appearance.Options.UseFont = true; crtFilterFielt.Properties.Appearance.Options.UseTextOptions = true; crtFilterFielt.Properties.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; crtFilterFielt.Properties.Buttons.Clear(); crtFilterFielt.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Down) }); crtFilterFielt.Properties.LookAndFeel.SkinName = "Office 2010 Blue"; crtFilterFielt.Properties.LookAndFeel.UseDefaultLookAndFeel = false; crtFilterFielt.Properties.PopupBorderStyle = DevExpress.XtraEditors.Controls.PopupBorderStyles.NoBorder; crtFilterFielt.Properties.PopupFormMinSize = new System.Drawing.Size(200, 200); crtFilterFielt.Properties.PopupFormSize = new System.Drawing.Size(200, 200); crtFilterFielt.Properties.PopupSizeable = false; crtFilterFielt.Properties.ShowPopupCloseButton = false; crtFilterFielt.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; crtFilterFielt.ResultRow = null; crtFilterFielt.Size = new System.Drawing.Size(129, 22); crtFilterFielt.TabIndex = (this.RowNumber * 10) + 1; crtFilterFielt.UseRowNumDirectSelect = false; crtFilterFielt.UseRowNumLocate = false; crtFilterFielt.ValueField = ""; crtFilterFielt.EditValueChanged += new System.EventHandler(crtFilterFielt_EditValueChanged); this.BindFildDate(crtFilterFielt); ccbTypt.Location = new System.Drawing.Point(237, (this.RowNumber - 1) * 30 + 5); ccbTypt.Name = "ccbTypt" + this.RowNumber.ToString(); ccbTypt.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); ccbTypt.Properties.Appearance.Options.UseFont = true; ccbTypt.Properties.Buttons.Clear(); ccbTypt.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Down) }); ccbTypt.Properties.Items.AddRange(new object[] { "等于", "包含", "之间" }); ccbTypt.Properties.LookAndFeel.SkinName = "Office 2010 Blue"; ccbTypt.Properties.LookAndFeel.UseDefaultLookAndFeel = false; ccbTypt.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; ccbTypt.Size = new System.Drawing.Size(56, 22); ccbTypt.TabIndex = (this.RowNumber * 10) + 3; ccbTypt.SelectedIndexChanged += ccbTypt_SelectedIndexChanged; ccbLiftbracket.Location = new System.Drawing.Point(6, (this.RowNumber - 1) * 30 + 5); ccbLiftbracket.Name = "ccbLiftbracket" + this.RowNumber.ToString(); ccbLiftbracket.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); ccbLiftbracket.Properties.Appearance.Options.UseFont = true; ccbLiftbracket.Properties.Buttons.Clear(); ccbLiftbracket.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Down) }); ccbLiftbracket.Properties.Items.AddRange(new object[] { "", "(" }); ccbLiftbracket.Properties.LookAndFeel.SkinName = "Office 2010 Blue"; ccbLiftbracket.Properties.LookAndFeel.UseDefaultLookAndFeel = false; ccbLiftbracket.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; ccbLiftbracket.Size = new System.Drawing.Size(42, 22); ccbLiftbracket.TabIndex = (this.RowNumber * 10) + 0; ccbYesNo.Location = new System.Drawing.Point(189, (this.RowNumber - 1) * 30 + 5); ccbYesNo.Name = "ccbYesNo" + this.RowNumber.ToString(); ccbYesNo.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); ccbYesNo.Properties.Appearance.Options.UseFont = true; ccbYesNo.Properties.Buttons.Clear(); ccbYesNo.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Down) }); ccbYesNo.Properties.Items.AddRange(new object[] { "", "不" }); ccbYesNo.Properties.LookAndFeel.SkinName = "Office 2010 Blue"; ccbYesNo.Properties.LookAndFeel.UseDefaultLookAndFeel = false; ccbYesNo.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; ccbYesNo.Size = new System.Drawing.Size(42, 22); ccbYesNo.TabIndex = (this.RowNumber * 10) + 2; ctbValue_1.Location = new System.Drawing.Point(299, (this.RowNumber - 1) * 30 + 5); ctbValue_1.Name = "ctbValue" + this.RowNumber.ToString() + "_1"; ctbValue_1.Properties.Appearance.BackColor = System.Drawing.Color.White; ctbValue_1.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); ctbValue_1.Properties.Appearance.Options.UseBackColor = true; ctbValue_1.Properties.Appearance.Options.UseFont = true; ctbValue_1.Properties.LookAndFeel.SkinName = "Office 2010 Blue"; ctbValue_1.Properties.LookAndFeel.UseDefaultLookAndFeel = false; ctbValue_1.Size = new System.Drawing.Size(123, 22); ctbValue_1.TabIndex = (this.RowNumber * 10) + 4; ctbValue_2.Location = new System.Drawing.Point(428, (this.RowNumber - 1) * 30 + 5); ctbValue_2.Name = "ctbValue" + this.RowNumber.ToString() + "_2"; ctbValue_2.Properties.Appearance.BackColor = System.Drawing.Color.White; ctbValue_2.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); ctbValue_2.Properties.Appearance.Options.UseBackColor = true; ctbValue_2.Properties.Appearance.Options.UseFont = true; ctbValue_2.Properties.LookAndFeel.SkinName = "Office 2010 Blue"; ctbValue_2.Properties.LookAndFeel.UseDefaultLookAndFeel = false; ctbValue_2.Size = new System.Drawing.Size(123, 22); ctbValue_2.TabIndex = (this.RowNumber * 10) + 5; ccbRightbracket.Location = new System.Drawing.Point(557, (this.RowNumber - 1) * 30 + 5); ccbRightbracket.Name = "ccbRightbracket" + this.RowNumber.ToString(); ccbRightbracket.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); ccbRightbracket.Properties.Appearance.Options.UseFont = true; ccbRightbracket.Properties.Buttons.Clear(); ccbRightbracket.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Down) }); ccbRightbracket.Properties.Items.AddRange(new object[] { "", ")" }); ccbRightbracket.Properties.LookAndFeel.SkinName = "Office 2010 Blue"; ccbRightbracket.Properties.LookAndFeel.UseDefaultLookAndFeel = false; ccbRightbracket.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; ccbRightbracket.Size = new System.Drawing.Size(42, 22); ccbRightbracket.TabIndex = (this.RowNumber * 10) + 6; ccbAndOr.Location = new System.Drawing.Point(605, (this.RowNumber - 1) * 30 + 5); ccbAndOr.Name = "ccbAndOr" + this.RowNumber.ToString(); ccbAndOr.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); ccbAndOr.Properties.Appearance.Options.UseFont = true; ccbAndOr.Properties.Buttons.Clear(); ccbAndOr.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Down) }); ccbAndOr.Properties.Items.AddRange(new object[] { "", "且", "或" }); ccbAndOr.Properties.LookAndFeel.SkinName = "Office 2010 Blue"; ccbAndOr.Properties.LookAndFeel.UseDefaultLookAndFeel = false; ccbAndOr.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; ccbAndOr.Size = new System.Drawing.Size(45, 22); ccbAndOr.TabIndex = (this.RowNumber * 10) + 7; ccbAndOr.SelectedIndexChanged += new System.EventHandler(ccbAndOr_SelectedIndexChanged); ccbAndOr.Tag = ""; this.cJiaPanel1.Controls.Add(ccbLiftbracket); this.cJiaPanel1.Controls.Add(ccbAndOr); this.cJiaPanel1.Controls.Add(crtFilterFielt); this.cJiaPanel1.Controls.Add(ccbRightbracket); this.cJiaPanel1.Controls.Add(ccbTypt); this.cJiaPanel1.Controls.Add(ctbValue_2); this.cJiaPanel1.Controls.Add(ccbYesNo); this.cJiaPanel1.Controls.Add(ctbValue_1); this.cJiaPanel1.ResumeLayout(false); this.ResumeLayout(false); this.RowNumber++; }
private void panel_Enter(object sender, EventArgs e) { CJia.Controls.CJiaPanel panel = sender as CJia.Controls.CJiaPanel; this.movePanel(panel); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); AnimatorNS.Animation animation1 = new AnimatorNS.Animation(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UCForWaitingForm)); this.cJiaLoadingBar1 = new CJia.Controls.CJiaLoadingBar(); this.cJiaPanel1 = new CJia.Controls.CJiaPanel(); this.cJiaLabel1 = new CJia.Controls.CJiaLabel(); this.animator1 = new AnimatorNS.Animator(this.components); this.cJiaLabel2 = new CJia.Controls.CJiaLabel(); ((System.ComponentModel.ISupportInitialize)(this.cJiaLoadingBar1.Properties)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cJiaPanel1)).BeginInit(); this.cJiaPanel1.SuspendLayout(); this.SuspendLayout(); // // cJiaLoadingBar1 // this.animator1.SetDecoration(this.cJiaLoadingBar1, AnimatorNS.DecorationType.BottomMirror); this.cJiaLoadingBar1.Location = new System.Drawing.Point(27, 87); this.cJiaLoadingBar1.Name = "cJiaLoadingBar1"; this.cJiaLoadingBar1.Properties.LookAndFeel.SkinName = "Office 2010 Blue"; this.cJiaLoadingBar1.Properties.LookAndFeel.UseDefaultLookAndFeel = false; this.cJiaLoadingBar1.Properties.ShowTitle = true; this.cJiaLoadingBar1.Size = new System.Drawing.Size(483, 29); this.cJiaLoadingBar1.TabIndex = 0; // // cJiaPanel1 // this.cJiaPanel1.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(102)))), ((int)(((byte)(180)))), ((int)(((byte)(228))))); this.cJiaPanel1.Appearance.Options.UseBackColor = true; this.cJiaPanel1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; this.cJiaPanel1.Controls.Add(this.cJiaLabel1); this.animator1.SetDecoration(this.cJiaPanel1, AnimatorNS.DecorationType.None); this.cJiaPanel1.Dock = System.Windows.Forms.DockStyle.Top; this.cJiaPanel1.Location = new System.Drawing.Point(0, 0); this.cJiaPanel1.LookAndFeel.UseDefaultLookAndFeel = false; this.cJiaPanel1.Name = "cJiaPanel1"; this.cJiaPanel1.Size = new System.Drawing.Size(537, 41); this.cJiaPanel1.TabIndex = 1; // // cJiaLabel1 // this.cJiaLabel1.Appearance.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Bold); this.cJiaLabel1.Appearance.ForeColor = System.Drawing.Color.White; this.animator1.SetDecoration(this.cJiaLabel1, AnimatorNS.DecorationType.None); this.cJiaLabel1.Location = new System.Drawing.Point(6, 13); this.cJiaLabel1.Name = "cJiaLabel1"; this.cJiaLabel1.Size = new System.Drawing.Size(92, 16); this.cJiaLabel1.TabIndex = 2; this.cJiaLabel1.Text = "正在加载中..."; // // animator1 // this.animator1.AnimationType = AnimatorNS.AnimationType.Custom; this.animator1.Cursor = null; animation1.AnimateOnlyDifferences = true; animation1.BlindCoeff = ((System.Drawing.PointF)(resources.GetObject("animation1.BlindCoeff"))); animation1.LeafCoeff = 0F; animation1.MaxTime = 1F; animation1.MinTime = 0F; animation1.MosaicCoeff = ((System.Drawing.PointF)(resources.GetObject("animation1.MosaicCoeff"))); animation1.MosaicShift = ((System.Drawing.PointF)(resources.GetObject("animation1.MosaicShift"))); animation1.MosaicSize = 0; animation1.Padding = new System.Windows.Forms.Padding(0); animation1.RotateCoeff = 0F; animation1.RotateLimit = 0F; animation1.ScaleCoeff = ((System.Drawing.PointF)(resources.GetObject("animation1.ScaleCoeff"))); animation1.SlideCoeff = ((System.Drawing.PointF)(resources.GetObject("animation1.SlideCoeff"))); animation1.TimeCoeff = 0F; animation1.TransparencyCoeff = 0F; this.animator1.DefaultAnimation = animation1; // // cJiaLabel2 // this.cJiaLabel2.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); this.animator1.SetDecoration(this.cJiaLabel2, AnimatorNS.DecorationType.None); this.cJiaLabel2.Location = new System.Drawing.Point(27, 63); this.cJiaLabel2.Name = "cJiaLabel2"; this.cJiaLabel2.Size = new System.Drawing.Size(20, 16); this.cJiaLabel2.TabIndex = 3; this.cJiaLabel2.Text = " "; // // UCForWaitingForm // this.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); this.Appearance.Options.UseBackColor = true; this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.cJiaLabel2); this.Controls.Add(this.cJiaPanel1); this.Controls.Add(this.cJiaLoadingBar1); this.animator1.SetDecoration(this, AnimatorNS.DecorationType.None); this.Name = "UCForWaitingForm"; this.Size = new System.Drawing.Size(537, 175); ((System.ComponentModel.ISupportInitialize)(this.cJiaLoadingBar1.Properties)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cJiaPanel1)).EndInit(); this.cJiaPanel1.ResumeLayout(false); this.cJiaPanel1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }