| | |
| | | using System.Text; |
| | | using System.Windows.Forms; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraGrid.Columns; |
| | | using DevExpress.XtraGrid.Views.Grid; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | |
| | | GridView1_CustomDrawRowIndicator; |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged; |
| | | } |
| | | |
| | | private void GridView1_ColumnFilterChanged(object sender, EventArgs e) |
| | | { |
| | | //string filterString = gridView1.Columns[0].FilterInfo.ToString(); |
| | | //ColumnFilterInfo filterString222 = gridView1.Columns[0].FilterInfo; |
| | | //if (filterString222 == null) |
| | | // return; |
| | | //_filterList.Clear(); |
| | | //System.Text.StringBuilder sbSql = new StringBuilder(); |
| | | //_filterList.Add(new FilterEntity("b.FNumber", "使用组织", " like ", "包含", "%"+ filterString222.Value + "%")); |
| | | //getPageList(1, UtilityHelper.GetPageSize()); |
| | | ////MessageBox.Show(filterString222); |
| | | } |
| | | |
| | | private void GridView1_CustomDrawRowIndicator(object sender, |
| | |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | gridView1.FocusedRowChanged += (s, e) => |
| | | { |
| | | UtilityHelper.SetCheckIco(s, picCheckBox, this); |
| | | UtilityHelper.SetCheckIco(s, picCheckBox, this, "checkStatus",""); |
| | | }; |
| | | gridView1.CustomDrawRowIndicator += |
| | | GridView1_CustomDrawRowIndicator; |
| | |
| | | this.panel1 = new System.Windows.Forms.Panel(); |
| | | this.labelControl11 = new DevExpress.XtraEditors.LabelControl(); |
| | | this.lbGuid = new System.Windows.Forms.Label(); |
| | | this.picCheckBox = new System.Windows.Forms.PictureBox(); |
| | | this.tabMxPage1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.gcMx1)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.gvMx1)).BeginInit(); |
| | |
| | | ((System.ComponentModel.ISupportInitialize)(this.tabMx)).BeginInit(); |
| | | this.tabMx.SuspendLayout(); |
| | | this.panel1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).BeginInit(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // gvMx1lookupName |
| | |
| | | this.gridColumn5.FieldName = "checkStatus"; |
| | | this.gridColumn5.MinWidth = 25; |
| | | this.gridColumn5.Name = "gridColumn5"; |
| | | this.gridColumn5.OptionsColumn.AllowEdit = false; |
| | | this.gridColumn5.Visible = true; |
| | | this.gridColumn5.VisibleIndex = 2; |
| | | this.gridColumn5.Width = 94; |
| | |
| | | this.gridColumn4.FieldName = "checkBy"; |
| | | this.gridColumn4.MinWidth = 25; |
| | | this.gridColumn4.Name = "gridColumn4"; |
| | | this.gridColumn4.OptionsColumn.AllowEdit = false; |
| | | this.gridColumn4.Visible = true; |
| | | this.gridColumn4.VisibleIndex = 3; |
| | | this.gridColumn4.Width = 94; |
| | |
| | | this.gridColumn1.FieldName = "checkDate"; |
| | | this.gridColumn1.MinWidth = 25; |
| | | this.gridColumn1.Name = "gridColumn1"; |
| | | this.gridColumn1.OptionsColumn.AllowEdit = false; |
| | | this.gridColumn1.Visible = true; |
| | | this.gridColumn1.VisibleIndex = 4; |
| | | this.gridColumn1.Width = 94; |
| | |
| | | this.lbGuid.Size = new System.Drawing.Size(0, 21); |
| | | this.lbGuid.TabIndex = 1; |
| | | // |
| | | // picCheckBox |
| | | // |
| | | this.picCheckBox.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck; |
| | | this.picCheckBox.Location = new System.Drawing.Point(1002, 55); |
| | | this.picCheckBox.Name = "picCheckBox"; |
| | | this.picCheckBox.Size = new System.Drawing.Size(100, 50); |
| | | this.picCheckBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; |
| | | this.picCheckBox.TabIndex = 5; |
| | | this.picCheckBox.TabStop = false; |
| | | this.picCheckBox.Visible = false; |
| | | // |
| | | // Frm_IQCLookups |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(1128, 682); |
| | | this.Controls.Add(this.picCheckBox); |
| | | this.Controls.Add(this.xtraTabControl1); |
| | | this.Controls.Add(this.toolBarMenu1); |
| | | this.Name = "Frm_IQCLookups"; |
| | |
| | | this.tabMx.ResumeLayout(false); |
| | | this.panel1.ResumeLayout(false); |
| | | this.panel1.PerformLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).EndInit(); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn5; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn4; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; |
| | | private System.Windows.Forms.PictureBox picCheckBox; |
| | | } |
| | | } |
| | |
| | | toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; |
| | | toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | gridView1.FocusedRowChanged += (s, e) => |
| | | { |
| | | UtilityHelper.SetCheckIco(s, picCheckBox, this, "checkStatus", ""); |
| | | }; |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | gridView1.CustomDrawRowIndicator += (s, e) => |
| | |
| | | this.txt_itemId = new Gs.DevApp.UserControl.UcLookItems(); |
| | | this.txt_status = new DevExpress.XtraEditors.CheckEdit(); |
| | | this.lbGuid = new System.Windows.Forms.Label(); |
| | | this.picCheckBox = new System.Windows.Forms.PictureBox(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_checkDate.Properties)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_checkUser.Properties)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_lastupdateDate.Properties)).BeginInit(); |
| | |
| | | this.xtraTabPage2.SuspendLayout(); |
| | | this.panel1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_status.Properties)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).BeginInit(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // lb_suppNo |
| | |
| | | this.lbGuid.TabIndex = 1; |
| | | this.lbGuid.Visible = false; |
| | | // |
| | | // picCheckBox |
| | | // |
| | | this.picCheckBox.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck; |
| | | this.picCheckBox.Location = new System.Drawing.Point(957, 65); |
| | | this.picCheckBox.Name = "picCheckBox"; |
| | | this.picCheckBox.Size = new System.Drawing.Size(100, 50); |
| | | this.picCheckBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; |
| | | this.picCheckBox.TabIndex = 7; |
| | | this.picCheckBox.TabStop = false; |
| | | this.picCheckBox.Visible = false; |
| | | // |
| | | // Frm_MesQaMj |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(1128, 682); |
| | | this.Controls.Add(this.picCheckBox); |
| | | this.Controls.Add(this.xtraTabControl1); |
| | | this.Controls.Add(this.toolBarMenu1); |
| | | this.Name = "Frm_MesQaMj"; |
| | |
| | | this.panel1.ResumeLayout(false); |
| | | this.panel1.PerformLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_status.Properties)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).EndInit(); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | |
| | | private UserControl.UcLookSupplier txt_suppNo; |
| | | private UserControl.UcLookItems txt_itemId; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; |
| | | private System.Windows.Forms.PictureBox picCheckBox; |
| | | } |
| | | } |
| | |
| | | using DevExpress.RichEdit.Export; |
| | | using Gs.DevApp.DevFrm.QC.Models; |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | |
| | | this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; |
| | | this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; |
| | | this.toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | |
| | | toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; |
| | | toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; |
| | | |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | gridView1.FocusedRowChanged += (s, e) => |
| | | { |
| | | UtilityHelper.SetCheckIco(s, picCheckBox, this, "status", ""); |
| | | }; |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | gridView1.CustomDrawRowIndicator += (s, e) => |
| | |
| | | this.txt_foneChecked = new DevExpress.XtraEditors.CheckEdit(); |
| | | this.txt_isenabled = new DevExpress.XtraEditors.CheckEdit(); |
| | | this.lbGuid = new System.Windows.Forms.Label(); |
| | | this.picCheckBox = new System.Windows.Forms.PictureBox(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.repositoryItemComboBox1)).BeginInit(); |
| | | this.tabMxPage2.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.gcMx2)).BeginInit(); |
| | |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_ftwoChecked.Properties)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_foneChecked.Properties)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_isenabled.Properties)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).BeginInit(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // gvMx2aql1Id |
| | |
| | | this.lbGuid.Size = new System.Drawing.Size(0, 21); |
| | | this.lbGuid.TabIndex = 1; |
| | | // |
| | | // picCheckBox |
| | | // |
| | | this.picCheckBox.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck; |
| | | this.picCheckBox.Location = new System.Drawing.Point(1016, 55); |
| | | this.picCheckBox.Name = "picCheckBox"; |
| | | this.picCheckBox.Size = new System.Drawing.Size(100, 50); |
| | | this.picCheckBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; |
| | | this.picCheckBox.TabIndex = 7; |
| | | this.picCheckBox.TabStop = false; |
| | | this.picCheckBox.Visible = false; |
| | | // |
| | | // Frm_MesQmAql1 |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(1128, 682); |
| | | this.Controls.Add(this.picCheckBox); |
| | | this.Controls.Add(this.xtraTabControl1); |
| | | this.Controls.Add(this.toolBarMenu1); |
| | | this.Name = "Frm_MesQmAql1"; |
| | |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_ftwoChecked.Properties)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_foneChecked.Properties)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_isenabled.Properties)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).EndInit(); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | |
| | | private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMxDel2; |
| | | private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit2; |
| | | private System.Windows.Forms.PictureBox picCheckBox; |
| | | } |
| | | } |
| | |
| | | toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; |
| | | toolBarMenu1.btnPiZhunClick += ToolBarMenu1_btnPiZhunClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | gridView1.FocusedRowChanged += (s, e) => |
| | | { |
| | | UtilityHelper.SetCheckIco(s, picCheckBox, this, "foneChecked", ""); |
| | | }; |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | gridView1.CustomDrawRowIndicator += (s, e) => |
| | |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions3 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject9 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject10 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject11 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject12 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | this.gvMx1pid = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | this.gvMx1facLevel = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | this.rptJSSP = new DevExpress.XtraEditors.Repository.RepositoryItemComboBox(); |
| | |
| | | this.labelUserName = new DevExpress.XtraEditors.LabelControl(); |
| | | this.txt_userName = new DevExpress.XtraEditors.TextEdit(); |
| | | this.lbGuid = new System.Windows.Forms.Label(); |
| | | this.picCheckBox = new System.Windows.Forms.PictureBox(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.rptJSSP)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.rptJYSP)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.rptJYGJ)).BeginInit(); |
| | |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_foneChecked.Properties)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_createDate.Properties)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_userName.Properties)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).BeginInit(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // gvMx1pid |
| | |
| | | // repositoryItemButtonEdit1 |
| | | // |
| | | this.repositoryItemButtonEdit1.AutoHeight = false; |
| | | editorButtonImageOptions3.Image = global::Gs.DevApp.Properties.Resources.removegroupfooter_16x16; |
| | | editorButtonImageOptions3.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.LeftCenter; |
| | | editorButtonImageOptions1.Image = global::Gs.DevApp.Properties.Resources.removegroupfooter_16x16; |
| | | editorButtonImageOptions1.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.LeftCenter; |
| | | this.repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { |
| | | new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "移除", -1, true, true, false, editorButtonImageOptions3, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject9, serializableAppearanceObject10, serializableAppearanceObject11, serializableAppearanceObject12, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)}); |
| | | new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "移除", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)}); |
| | | this.repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; |
| | | this.repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; |
| | | this.repositoryItemButtonEdit1.ButtonClick += new DevExpress.XtraEditors.Controls.ButtonPressedEventHandler(this.repositoryItemButtonEdit1_ButtonClick); |
| | |
| | | this.lbGuid.Size = new System.Drawing.Size(0, 21); |
| | | this.lbGuid.TabIndex = 1; |
| | | // |
| | | // picCheckBox |
| | | // |
| | | this.picCheckBox.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck; |
| | | this.picCheckBox.Location = new System.Drawing.Point(945, 55); |
| | | this.picCheckBox.Name = "picCheckBox"; |
| | | this.picCheckBox.Size = new System.Drawing.Size(100, 50); |
| | | this.picCheckBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; |
| | | this.picCheckBox.TabIndex = 6; |
| | | this.picCheckBox.TabStop = false; |
| | | this.picCheckBox.Visible = false; |
| | | // |
| | | // Frm_MesQmCheckitemDt |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(1077, 682); |
| | | this.Controls.Add(this.picCheckBox); |
| | | this.Controls.Add(this.xtraTabControl1); |
| | | this.Controls.Add(this.toolBarMenu1); |
| | | this.Name = "Frm_MesQmCheckitemDt"; |
| | |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_foneChecked.Properties)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_createDate.Properties)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_userName.Properties)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).EndInit(); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn8; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMxDel; |
| | | private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1; |
| | | private System.Windows.Forms.PictureBox picCheckBox; |
| | | } |
| | | } |
| | |
| | | using System.Drawing; |
| | | using System.Text; |
| | | using System.Windows.Forms; |
| | | using DevExpress.RichEdit.Export; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraGrid.Views.Grid; |
| | | using Gs.DevApp.Entity; |
| | |
| | | toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; |
| | | toolBarMenu1.btnPiZhunClick += ToolBarMenu1_btnPiZhunClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | gridView1.FocusedRowChanged += (s, e) => |
| | | { |
| | | UtilityHelper.SetCheckIco(s, picCheckBox, this, "foneChecked", ""); |
| | | }; |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | gridView1.CustomDrawRowIndicator += (s, e) => |
| | |
| | | this.panel1 = new System.Windows.Forms.Panel(); |
| | | this.labelControl11 = new DevExpress.XtraEditors.LabelControl(); |
| | | this.lbGuid = new System.Windows.Forms.Label(); |
| | | this.picCheckBox = new System.Windows.Forms.PictureBox(); |
| | | this.tabMxPage1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.gcMx1)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.gvMx1)).BeginInit(); |
| | |
| | | ((System.ComponentModel.ISupportInitialize)(this.tabMx)).BeginInit(); |
| | | this.tabMx.SuspendLayout(); |
| | | this.panel1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).BeginInit(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // gvMx1lookupName |
| | |
| | | this.gridColumn5.FieldName = "checkStatus"; |
| | | this.gridColumn5.MinWidth = 25; |
| | | this.gridColumn5.Name = "gridColumn5"; |
| | | this.gridColumn5.OptionsColumn.AllowEdit = false; |
| | | this.gridColumn5.Visible = true; |
| | | this.gridColumn5.VisibleIndex = 2; |
| | | this.gridColumn5.Width = 94; |
| | |
| | | this.gridColumn4.FieldName = "checkBy"; |
| | | this.gridColumn4.MinWidth = 25; |
| | | this.gridColumn4.Name = "gridColumn4"; |
| | | this.gridColumn4.OptionsColumn.AllowEdit = false; |
| | | this.gridColumn4.Visible = true; |
| | | this.gridColumn4.VisibleIndex = 3; |
| | | this.gridColumn4.Width = 94; |
| | |
| | | this.gridColumn1.FieldName = "checkDate"; |
| | | this.gridColumn1.MinWidth = 25; |
| | | this.gridColumn1.Name = "gridColumn1"; |
| | | this.gridColumn1.OptionsColumn.AllowEdit = false; |
| | | this.gridColumn1.Visible = true; |
| | | this.gridColumn1.VisibleIndex = 4; |
| | | this.gridColumn1.Width = 94; |
| | |
| | | this.lbGuid.Size = new System.Drawing.Size(0, 21); |
| | | this.lbGuid.TabIndex = 1; |
| | | // |
| | | // picCheckBox |
| | | // |
| | | this.picCheckBox.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck; |
| | | this.picCheckBox.Location = new System.Drawing.Point(964, 55); |
| | | this.picCheckBox.Name = "picCheckBox"; |
| | | this.picCheckBox.Size = new System.Drawing.Size(100, 50); |
| | | this.picCheckBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; |
| | | this.picCheckBox.TabIndex = 6; |
| | | this.picCheckBox.TabStop = false; |
| | | this.picCheckBox.Visible = false; |
| | | // |
| | | // Frm_MesSysLookups |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(1128, 682); |
| | | this.Controls.Add(this.picCheckBox); |
| | | this.Controls.Add(this.xtraTabControl1); |
| | | this.Controls.Add(this.toolBarMenu1); |
| | | this.Name = "Frm_MesSysLookups"; |
| | |
| | | this.tabMx.ResumeLayout(false); |
| | | this.panel1.ResumeLayout(false); |
| | | this.panel1.PerformLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).EndInit(); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn5; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn4; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; |
| | | private System.Windows.Forms.PictureBox picCheckBox; |
| | | } |
| | | } |
| | |
| | | using System.Drawing; |
| | | using System.Text; |
| | | using System.Windows.Forms; |
| | | using DevExpress.RichEdit.Export; |
| | | using DevExpress.XtraEditors; |
| | | using DevExpress.XtraEditors.Controls; |
| | | using DevExpress.XtraGrid.Views.Base.ViewInfo; |
| | |
| | | toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; |
| | | toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | gridView1.FocusedRowChanged += (s, e) => |
| | | { |
| | | UtilityHelper.SetCheckIco(s, picCheckBox, this, "checkStatus", ""); |
| | | }; |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | gridView1.CustomDrawRowIndicator += (s, e) => |
| | |
| | | using Gs.DevApp.Entity; |
| | | using Gs.DevApp.ToolBox; |
| | | using Gs.DevApp.UserControl; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | private void ToolBarMenu1_btnFjieAnClick(object sender, EventArgs e) |
| | | private async void ToolBarMenu1_btnFjieAnClick(object sender, EventArgs e) |
| | | { |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_caa001, gridView1, 2); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | |
| | | if (!MsgHelper.AskQuestion("你选择了【" + rowName + |
| | | "】,确定反结案吗?")) |
| | | return; |
| | | |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 结案 |
| | |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | private void ToolBarMenu1_btnJieAnClick(object sender, EventArgs e) |
| | | private async void ToolBarMenu1_btnJieAnClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_caa001, gridView1, 2); |
| | | lbGuid, txt_caa001, gridView1); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | |
| | | if (!MsgHelper.AskQuestion("你选择了【" + rowName + |
| | | "】,确定结案吗?")) |
| | | if (!MsgHelper.AskQuestion("你选择了【" + rowName + "】,确定提交检验吗?")) |
| | | return; |
| | | UcLoading _loading = new UcLoading(); |
| | | var _obj = new |
| | | { |
| | | guid = rowGuid, |
| | | }; |
| | | try |
| | | { |
| | | var strJson = await UtilityHelper.HttpPostAsync("", |
| | | _webServiceName + "EditModelSubmit", |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = UtilityHelper.ReturnToDynamic(strJson); |
| | | MsgHelper.Warning("提示:" + _rtn.rtnData.outMsg); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | if (xtraTabControl1.SelectedTabPageIndex == 1) |
| | | getModel(lbGuid.Text.Trim(), false, 999); |
| | | else |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | _loading.Stop(); |
| | | |
| | | } |
| | | /// <summary> |
| | |
| | | } |
| | | |
| | | |
| | | public static void SetCheckIco(object s, PictureBox btnChkIco, Form fm,string icoName="") |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="s"></param> |
| | | /// <param name="btnChkIco"></param> |
| | | /// <param name="fm"></param> |
| | | /// <param name="fileName">对应的审核字段名称</param> |
| | | /// <param name="icoName"></param> |
| | | public static void SetCheckIco(object s, PictureBox btnChkIco, Form fm,string fileName= "checkStatus", string icoName="") |
| | | { |
| | | GridView dgv = s as GridView; |
| | | if (dgv != null) { |
| | | if (dgv.GetSelectedRows() != null) { |
| | | var selectedRow = dgv.GetSelectedRows()[0]; // 获取第一个选中行的索引 |
| | | if (selectedRow >= 0) { |
| | | var checkStatus = dgv.GetRowCellValue(selectedRow, "checkStatus").ToString(); // 获取指定列的值 |
| | | var checkStatus = dgv.GetRowCellValue(selectedRow, fileName).ToString(); // 获取指定列的值 |
| | | btnChkIco.Text = checkStatus; |
| | | btnChkIco.Visible = true; |
| | | if (checkStatus == "1" || checkStatus.ToUpper() == true.ToString().ToUpper()) |