| | |
| | | { |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_name, gridView1); |
| | | lbGuid, txt_name, gridView1, "name"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | 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(); |
| | | DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions2 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject5 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject6 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject7 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject8 = new DevExpress.Utils.SerializableAppearanceObject(); |
| | | this.gvMx1createBy = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | this.gvMx1createDate = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | this.gvMx1remark = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | |
| | | this.txt_isStatus = new System.Windows.Forms.CheckBox(); |
| | | 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(); |
| | |
| | | this.tabMx.SuspendLayout(); |
| | | this.panel1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_checkStatus.Properties)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).BeginInit(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // gvMx1createBy |
| | |
| | | // repositoryItemButtonEdit1 |
| | | // |
| | | this.repositoryItemButtonEdit1.AutoHeight = false; |
| | | editorButtonImageOptions1.Image = global::Gs.DevApp.Properties.Resources.removegroupfooter_16x16; |
| | | editorButtonImageOptions1.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.LeftCenter; |
| | | editorButtonImageOptions2.Image = global::Gs.DevApp.Properties.Resources.removegroupfooter_16x16; |
| | | editorButtonImageOptions2.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, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)}); |
| | | new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "移出", -1, true, true, false, editorButtonImageOptions2, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject5, serializableAppearanceObject6, serializableAppearanceObject7, serializableAppearanceObject8, "", 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.TabIndex = 1; |
| | | this.lbGuid.Visible = false; |
| | | // |
| | | // picCheckBox |
| | | // |
| | | this.picCheckBox.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck; |
| | | this.picCheckBox.Location = new System.Drawing.Point(1034, 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_MesWorkshop |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 18F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(1283, 682); |
| | | this.Controls.Add(this.picCheckBox); |
| | | this.Controls.Add(this.xtraTabControl1); |
| | | this.Controls.Add(this.toolBarMenu1); |
| | | this.Name = "Frm_MesWorkshop"; |
| | |
| | | this.panel1.ResumeLayout(false); |
| | | this.panel1.PerformLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.txt_checkStatus.Properties)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.picCheckBox)).EndInit(); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn gvMx1isStatus; |
| | | private DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit repositoryItemCheckEdit1; |
| | | private DevExpress.XtraEditors.CheckEdit txt_checkStatus; |
| | | 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) => |
| | |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_name, gridView1); |
| | | lbGuid, txt_name, gridView1, "workshopNo"); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | } |
| | | |
| | |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_name, gridView1); |
| | | lbGuid, txt_name, gridView1, "workshopNo"); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | } |
| | | |
| | |
| | | { |
| | | string rowGuid = "", rowName = ""; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_name, gridView1); |
| | | lbGuid, txt_name, gridView1, "workshopNo"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | |
| | | { |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_roleName, gridView1, 2); |
| | | lbGuid, txt_roleName, gridView1,"", 2); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | |
| | | 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(); |
| | | // |
| | | // gvMx1depotSectionNamet |
| | |
| | | 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(983, 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_MesDepot |
| | | // |
| | | 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_MesDepot"; |
| | |
| | | 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 gridColumn4; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn3; |
| | | private DevExpress.XtraGrid.Columns.GridColumn gridColumn2; |
| | | 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) => |
| | |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_billNo, gridView1); |
| | | lbGuid, txt_billNo, gridView1, "billNo"); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_billNo, gridView1); |
| | | lbGuid, txt_billNo, gridView1, "billNo"); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | |
| | | this.toolBarMenu1 = new Gs.DevApp.UserControl.UcToolBarMenu(); |
| | | this.gcMain = new DevExpress.XtraGrid.GridControl(); |
| | | this.gridView1 = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridView(); |
| | | this.gv_factory = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn(); |
| | | this.gv_fSubsidiary = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn(); |
| | | this.gv_paymentParty = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn(); |
| | | this.gv_transportMethod = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn(); |
| | | this.gv_lastupdateDate = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn(); |
| | |
| | | this.gv_checkDate = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn(); |
| | | this.gv_checkBy = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn(); |
| | | this.gv_checkFalg = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn(); |
| | | this.gv_factory = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn(); |
| | | this.gv_billNo = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn(); |
| | | this.gv_documentStatus = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn(); |
| | | this.gv_documentType = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn(); |
| | |
| | | this.panel1 = new System.Windows.Forms.Panel(); |
| | | this.lbGuid = new DevExpress.XtraEditors.LabelControl(); |
| | | this.txt_supplier = new Gs.DevApp.UserControl.UcLookSupplier(); |
| | | this.gv_fSubsidiary = new DevExpress.XtraGrid.Views.BandedGrid.BandedGridColumn(); |
| | | this.gridBand29 = new DevExpress.XtraGrid.Views.BandedGrid.GridBand(); |
| | | this.gridBand1 = new DevExpress.XtraGrid.Views.BandedGrid.GridBand(); |
| | | this.gridBand2 = new DevExpress.XtraGrid.Views.BandedGrid.GridBand(); |
| | |
| | | this.gridView1.OptionsView.ShowColumnHeaders = false; |
| | | this.gridView1.OptionsView.ShowGroupPanel = false; |
| | | // |
| | | // gv_factory |
| | | // gv_fSubsidiary |
| | | // |
| | | this.gv_factory.Caption = "ERPID号"; |
| | | this.gv_factory.FieldName = "ebelnK3id"; |
| | | this.gv_factory.MinWidth = 25; |
| | | this.gv_factory.Name = "gv_factory"; |
| | | this.gv_factory.OptionsColumn.AllowEdit = false; |
| | | this.gv_factory.Visible = true; |
| | | this.gv_factory.Width = 80; |
| | | this.gv_fSubsidiary.Caption = "收料组织"; |
| | | this.gv_fSubsidiary.FieldName = "fSubsidiary"; |
| | | this.gv_fSubsidiary.MinWidth = 25; |
| | | this.gv_fSubsidiary.Name = "gv_fSubsidiary"; |
| | | this.gv_fSubsidiary.OptionsColumn.AllowEdit = false; |
| | | this.gv_fSubsidiary.Visible = true; |
| | | this.gv_fSubsidiary.Width = 250; |
| | | // |
| | | // gv_paymentParty |
| | | // |
| | |
| | | this.gv_checkFalg.Tag = "query_a.CHECK_FALG"; |
| | | this.gv_checkFalg.Width = 100; |
| | | // |
| | | // gv_factory |
| | | // |
| | | this.gv_factory.Caption = "ERPID号"; |
| | | this.gv_factory.FieldName = "ebelnK3id"; |
| | | this.gv_factory.MinWidth = 25; |
| | | this.gv_factory.Name = "gv_factory"; |
| | | this.gv_factory.OptionsColumn.AllowEdit = false; |
| | | this.gv_factory.Visible = true; |
| | | this.gv_factory.Width = 80; |
| | | // |
| | | // gv_billNo |
| | | // |
| | | this.gv_billNo.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); |
| | |
| | | this.gv_documentStatus.OptionsColumn.AllowEdit = false; |
| | | this.gv_documentStatus.Tag = "query_a.DOCUMENT_STATUS"; |
| | | this.gv_documentStatus.Visible = true; |
| | | this.gv_documentStatus.Width = 100; |
| | | this.gv_documentStatus.Width = 130; |
| | | // |
| | | // gv_documentType |
| | | // |
| | |
| | | this.txt_supplier.Size = new System.Drawing.Size(305, 30); |
| | | this.txt_supplier.TabIndex = 227; |
| | | // |
| | | // gv_fSubsidiary |
| | | // |
| | | this.gv_fSubsidiary.Caption = "收料组织"; |
| | | this.gv_fSubsidiary.FieldName = "fSubsidiary"; |
| | | this.gv_fSubsidiary.MinWidth = 25; |
| | | this.gv_fSubsidiary.Name = "gv_fSubsidiary"; |
| | | this.gv_fSubsidiary.Visible = true; |
| | | this.gv_fSubsidiary.Width = 25; |
| | | // |
| | | // gridBand29 |
| | | // |
| | | this.gridBand29.Caption = "收料组织"; |
| | |
| | | this.gridBand3.AppearanceHeader.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap; |
| | | this.gridBand3.Caption = "单据状态:A创建,B审核中,C已审核,D重新审核,Z暂存"; |
| | | this.gridBand3.Columns.Add(this.gv_documentStatus); |
| | | this.gridBand3.MinWidth = 100; |
| | | this.gridBand3.MinWidth = 130; |
| | | this.gridBand3.Name = "gridBand3"; |
| | | this.gridBand3.RowCount = 2; |
| | | this.gridBand3.VisibleIndex = 3; |
| | | this.gridBand3.Width = 100; |
| | | this.gridBand3.Width = 130; |
| | | // |
| | | // gridBand4 |
| | | // |
| | |
| | | { |
| | | private List<FilterEntity> _filterList = new List<FilterEntity>(); |
| | | private readonly string _webServiceName = "MesRohInManager/"; |
| | | |
| | | public Frm_MesRohIn() |
| | | { |
| | | InitializeComponent(); |
| | |
| | | , Label lbGuid |
| | | , TextEdit txtName |
| | | , GridView gridView1 |
| | | , string fileName = "" |
| | | , int SelectedTabPageIndex = 1) |
| | | { |
| | | var _strGuid = ""; |
| | |
| | | else |
| | | { |
| | | _strGuid = dr["guid"].ToString(); |
| | | _strName = dr[1].ToString(); |
| | | if (string.IsNullOrEmpty(fileName)) |
| | | _strName = dr[1].ToString(); |
| | | else |
| | | _strName = dr[fileName].ToString(); |
| | | } |
| | | } |
| | | |
| | |
| | | /// <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="") |
| | | 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) { |
| | | if (dgv != null) |
| | | { |
| | | if (dgv.GetSelectedRows() != null) |
| | | { |
| | | var selectedRow = dgv.GetSelectedRows()[0]; // 获取第一个选中行的索引 |
| | | if (selectedRow >= 0) { |
| | | if (selectedRow >= 0) |
| | | { |
| | | var checkStatus = dgv.GetRowCellValue(selectedRow, fileName).ToString(); // 获取指定列的值 |
| | | btnChkIco.Text = checkStatus; |
| | | btnChkIco.Visible = true; |