From 4f939c1868691082d55556f1a1267084d27932b4 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期一, 25 十一月 2024 13:44:38 +0800 Subject: [PATCH] pda --- DevApp/Gs.DevApp/Gs.DevApp.csproj | 9 DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.Designer.cs | 464 ++++++++++++++++++++++++++++++ DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.resx | 120 ++++++++ DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.cs | 284 ++++++++++++++++++ 4 files changed, 877 insertions(+), 0 deletions(-) diff --git a/DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.Designer.cs b/DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.Designer.cs new file mode 100644 index 0000000..04e8be1 --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.Designer.cs @@ -0,0 +1,464 @@ +/* Create By GS EasyCode */ +namespace Gs.DevApp.DevFrm +{ + partial class Frm_MesSysPageview + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.lb_pageStatus = new DevExpress.XtraEditors.LabelControl(); + this.gv_pageStatus = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_pageIdx = new DevExpress.XtraEditors.LabelControl(); + this.gv_pageIdx = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_pageGroup = new DevExpress.XtraEditors.LabelControl(); + this.txt_pageGroup = new DevExpress.XtraEditors.TextEdit(); + this.gv_pageGroup = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_icoimg = new DevExpress.XtraEditors.LabelControl(); + this.txt_icoimg = new DevExpress.XtraEditors.TextEdit(); + this.gv_icoimg = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_path = new DevExpress.XtraEditors.LabelControl(); + this.txt_path = new DevExpress.XtraEditors.TextEdit(); + this.gv_path = new DevExpress.XtraGrid.Columns.GridColumn(); + this.lb_pageView = new DevExpress.XtraEditors.LabelControl(); + this.txt_pageView = new DevExpress.XtraEditors.TextEdit(); + this.gv_pageView = new DevExpress.XtraGrid.Columns.GridColumn(); + this.toolBarMenu1 = new Gs.DevApp.UserControl.UcToolBarMenu(); + this.gcMain = new DevExpress.XtraGrid.GridControl(); + this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); + this.xtraTabControl1 = new DevExpress.XtraTab.XtraTabControl(); + this.xtraTabPage1 = new DevExpress.XtraTab.XtraTabPage(); + this.pageBar1 = new UserControls.Data.UcPageBar(); + this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage(); + this.panel1 = new System.Windows.Forms.Panel(); + this.txt_pageIdx = new System.Windows.Forms.NumericUpDown(); + this.txt_pageStatus = new DevExpress.XtraEditors.CheckEdit(); + this.labelControl11 = new DevExpress.XtraEditors.LabelControl(); + this.lbGuid = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.txt_pageGroup.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_icoimg.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_path.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_pageView.Properties)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit(); + this.xtraTabControl1.SuspendLayout(); + this.xtraTabPage1.SuspendLayout(); + this.xtraTabPage2.SuspendLayout(); + this.panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txt_pageIdx)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_pageStatus.Properties)).BeginInit(); + this.SuspendLayout(); + // + // lb_pageStatus + // + this.lb_pageStatus.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_pageStatus.Appearance.Options.UseFont = true; + this.lb_pageStatus.Location = new System.Drawing.Point(464, 102); + this.lb_pageStatus.Name = "lb_pageStatus"; + this.lb_pageStatus.Size = new System.Drawing.Size(34, 21); + this.lb_pageStatus.TabIndex = 222; + this.lb_pageStatus.Text = "鐘舵��"; + // + // gv_pageStatus + // + this.gv_pageStatus.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_pageStatus.AppearanceCell.Options.UseFont = true; + this.gv_pageStatus.Caption = "鐘舵��"; + this.gv_pageStatus.FieldName = "pageStatus"; + this.gv_pageStatus.MinWidth = 50; + this.gv_pageStatus.Name = "gv_pageStatus"; + this.gv_pageStatus.OptionsColumn.AllowEdit = false; + this.gv_pageStatus.Tag = "query_a.PAGE_STATUS"; + this.gv_pageStatus.UnboundDataType = typeof(bool); + this.gv_pageStatus.Visible = true; + this.gv_pageStatus.VisibleIndex = 5; + this.gv_pageStatus.Width = 94; + // + // lb_pageIdx + // + this.lb_pageIdx.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_pageIdx.Appearance.Options.UseFont = true; + this.lb_pageIdx.Location = new System.Drawing.Point(464, 61); + this.lb_pageIdx.Name = "lb_pageIdx"; + this.lb_pageIdx.Size = new System.Drawing.Size(34, 21); + this.lb_pageIdx.TabIndex = 219; + this.lb_pageIdx.Text = "鎺掑簭"; + // + // gv_pageIdx + // + this.gv_pageIdx.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_pageIdx.AppearanceCell.Options.UseFont = true; + this.gv_pageIdx.Caption = "鎺掑簭"; + this.gv_pageIdx.FieldName = "pageIdx"; + this.gv_pageIdx.MinWidth = 50; + this.gv_pageIdx.Name = "gv_pageIdx"; + this.gv_pageIdx.OptionsColumn.AllowEdit = false; + this.gv_pageIdx.Tag = "query_a.PAGE_IDX"; + this.gv_pageIdx.Visible = true; + this.gv_pageIdx.VisibleIndex = 4; + this.gv_pageIdx.Width = 94; + // + // lb_pageGroup + // + this.lb_pageGroup.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_pageGroup.Appearance.Options.UseFont = true; + this.lb_pageGroup.Location = new System.Drawing.Point(464, 20); + this.lb_pageGroup.Name = "lb_pageGroup"; + this.lb_pageGroup.Size = new System.Drawing.Size(34, 21); + this.lb_pageGroup.TabIndex = 217; + this.lb_pageGroup.Text = "缁勫埆"; + // + // txt_pageGroup + // + this.txt_pageGroup.Location = new System.Drawing.Point(516, 16); + this.txt_pageGroup.Name = "txt_pageGroup"; + this.txt_pageGroup.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txt_pageGroup.Properties.Appearance.Options.UseFont = true; + this.txt_pageGroup.Size = new System.Drawing.Size(150, 28); + this.txt_pageGroup.TabIndex = 217; + // + // gv_pageGroup + // + this.gv_pageGroup.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_pageGroup.AppearanceCell.Options.UseFont = true; + this.gv_pageGroup.Caption = "鍒嗙粍"; + this.gv_pageGroup.FieldName = "pageGroup"; + this.gv_pageGroup.MinWidth = 50; + this.gv_pageGroup.Name = "gv_pageGroup"; + this.gv_pageGroup.OptionsColumn.AllowEdit = false; + this.gv_pageGroup.Tag = "query_a.PAGE_GROUP"; + this.gv_pageGroup.Visible = true; + this.gv_pageGroup.VisibleIndex = 3; + this.gv_pageGroup.Width = 94; + // + // lb_icoimg + // + this.lb_icoimg.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_icoimg.Appearance.Options.UseFont = true; + this.lb_icoimg.Location = new System.Drawing.Point(56, 102); + this.lb_icoimg.Name = "lb_icoimg"; + this.lb_icoimg.Size = new System.Drawing.Size(73, 21); + this.lb_icoimg.TabIndex = 216; + this.lb_icoimg.Text = "椤甸潰鍥炬爣 "; + // + // txt_icoimg + // + this.txt_icoimg.Location = new System.Drawing.Point(135, 98); + this.txt_icoimg.Name = "txt_icoimg"; + this.txt_icoimg.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txt_icoimg.Properties.Appearance.Options.UseFont = true; + this.txt_icoimg.Size = new System.Drawing.Size(323, 28); + this.txt_icoimg.TabIndex = 216; + // + // gv_icoimg + // + this.gv_icoimg.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_icoimg.AppearanceCell.Options.UseFont = true; + this.gv_icoimg.Caption = "椤甸潰鍥炬爣"; + this.gv_icoimg.FieldName = "icoimg"; + this.gv_icoimg.MinWidth = 50; + this.gv_icoimg.Name = "gv_icoimg"; + this.gv_icoimg.OptionsColumn.AllowEdit = false; + this.gv_icoimg.Tag = "query_a.ICOIMG"; + this.gv_icoimg.Visible = true; + this.gv_icoimg.VisibleIndex = 2; + this.gv_icoimg.Width = 94; + // + // lb_path + // + this.lb_path.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_path.Appearance.Options.UseFont = true; + this.lb_path.Location = new System.Drawing.Point(56, 61); + this.lb_path.Name = "lb_path"; + this.lb_path.Size = new System.Drawing.Size(73, 21); + this.lb_path.TabIndex = 213; + this.lb_path.Text = "椤甸潰璺緞 "; + // + // txt_path + // + this.txt_path.Location = new System.Drawing.Point(135, 57); + this.txt_path.Name = "txt_path"; + this.txt_path.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txt_path.Properties.Appearance.Options.UseFont = true; + this.txt_path.Size = new System.Drawing.Size(323, 28); + this.txt_path.TabIndex = 213; + // + // gv_path + // + this.gv_path.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_path.AppearanceCell.Options.UseFont = true; + this.gv_path.Caption = "椤甸潰璺緞"; + this.gv_path.FieldName = "path"; + this.gv_path.MinWidth = 50; + this.gv_path.Name = "gv_path"; + this.gv_path.OptionsColumn.AllowEdit = false; + this.gv_path.Tag = "query_a.PATH"; + this.gv_path.Visible = true; + this.gv_path.VisibleIndex = 1; + this.gv_path.Width = 94; + // + // lb_pageView + // + this.lb_pageView.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.lb_pageView.Appearance.Options.UseFont = true; + this.lb_pageView.Location = new System.Drawing.Point(39, 20); + this.lb_pageView.Name = "lb_pageView"; + this.lb_pageView.Size = new System.Drawing.Size(90, 21); + this.lb_pageView.TabIndex = 211; + this.lb_pageView.Text = "椤甸潰涓枃鍚� "; + // + // txt_pageView + // + this.txt_pageView.Location = new System.Drawing.Point(135, 16); + this.txt_pageView.Name = "txt_pageView"; + this.txt_pageView.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 10F); + this.txt_pageView.Properties.Appearance.Options.UseFont = true; + this.txt_pageView.Size = new System.Drawing.Size(323, 28); + this.txt_pageView.TabIndex = 211; + // + // gv_pageView + // + this.gv_pageView.AppearanceCell.Font = new System.Drawing.Font("Tahoma", 10F); + this.gv_pageView.AppearanceCell.Options.UseFont = true; + this.gv_pageView.Caption = "椤甸潰鍚�"; + this.gv_pageView.FieldName = "pageView"; + this.gv_pageView.MinWidth = 50; + this.gv_pageView.Name = "gv_pageView"; + this.gv_pageView.OptionsColumn.AllowEdit = false; + this.gv_pageView.Tag = "query_a.PAGE_VIEW"; + this.gv_pageView.Visible = true; + this.gv_pageView.VisibleIndex = 0; + this.gv_pageView.Width = 94; + // + // toolBarMenu1 + // + this.toolBarMenu1.chkParameter = null; + this.toolBarMenu1.Dock = System.Windows.Forms.DockStyle.Top; + this.toolBarMenu1.guidKey = null; + this.toolBarMenu1.isSetBtn = false; + this.toolBarMenu1.Location = new System.Drawing.Point(0, 0); + this.toolBarMenu1.Name = "toolBarMenu1"; + this.toolBarMenu1.rptParameter = null; + this.toolBarMenu1.Size = new System.Drawing.Size(1128, 80); + this.toolBarMenu1.TabIndex = 0; + this.toolBarMenu1.xlsInService = null; + this.toolBarMenu1.xlsOutParameter = null; + // + // gcMain + // + this.gcMain.Dock = System.Windows.Forms.DockStyle.Fill; + this.gcMain.Font = new System.Drawing.Font("Tahoma", 10F); + this.gcMain.Location = new System.Drawing.Point(0, 0); + this.gcMain.MainView = this.gridView1; + this.gcMain.Name = "gcMain"; + this.gcMain.Size = new System.Drawing.Size(1126, 531); + this.gcMain.TabIndex = 1; + this.gcMain.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { + this.gridView1}); + // + // gridView1 + // + this.gridView1.Appearance.Row.Font = new System.Drawing.Font("Tahoma", 10F); + this.gridView1.Appearance.Row.Options.UseFont = true; + this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { + this.gv_pageView, + this.gv_path, + this.gv_icoimg, + this.gv_pageGroup, + this.gv_pageIdx, + this.gv_pageStatus}); + this.gridView1.GridControl = this.gcMain; + this.gridView1.IndicatorWidth = 50; + this.gridView1.Name = "gridView1"; + this.gridView1.OptionsFind.ShowSearchNavButtons = false; + this.gridView1.OptionsView.ShowAutoFilterRow = true; + this.gridView1.OptionsView.ShowGroupPanel = false; + // + // xtraTabControl1 + // + this.xtraTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.xtraTabControl1.Location = new System.Drawing.Point(0, 80); + this.xtraTabControl1.Name = "xtraTabControl1"; + this.xtraTabControl1.SelectedTabPage = this.xtraTabPage1; + this.xtraTabControl1.Size = new System.Drawing.Size(1128, 602); + this.xtraTabControl1.TabIndex = 3; + this.xtraTabControl1.TabPages.AddRange(new DevExpress.XtraTab.XtraTabPage[] { + this.xtraTabPage1, + this.xtraTabPage2}); + // + // xtraTabPage1 + // + this.xtraTabPage1.Controls.Add(this.gcMain); + this.xtraTabPage1.Controls.Add(this.pageBar1); + this.xtraTabPage1.Name = "xtraTabPage1"; + this.xtraTabPage1.Size = new System.Drawing.Size(1126, 570); + this.xtraTabPage1.Text = "鏁版嵁鏌ヨ"; + // + // pageBar1 + // + this.pageBar1.CurrentPage = 1; + this.pageBar1.Dock = System.Windows.Forms.DockStyle.Bottom; + this.pageBar1.Location = new System.Drawing.Point(0, 531); + this.pageBar1.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5); + this.pageBar1.Name = "pageBar1"; + this.pageBar1.RecordCount = 0; + this.pageBar1.RowsCount = 50; + this.pageBar1.Size = new System.Drawing.Size(1126, 39); + this.pageBar1.TabIndex = 3; + this.pageBar1.TotalPages = 0; + // + // xtraTabPage2 + // + this.xtraTabPage2.Controls.Add(this.panel1); + this.xtraTabPage2.Name = "xtraTabPage2"; + this.xtraTabPage2.PageEnabled = false; + this.xtraTabPage2.Size = new System.Drawing.Size(1126, 570); + this.xtraTabPage2.Text = "鏁版嵁缂栬緫"; + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.White; + this.panel1.Controls.Add(this.txt_pageIdx); + this.panel1.Controls.Add(this.txt_pageStatus); + this.panel1.Controls.Add(this.labelControl11); + this.panel1.Controls.Add(this.lbGuid); + this.panel1.Controls.Add(this.lb_pageStatus); + this.panel1.Controls.Add(this.lb_pageIdx); + this.panel1.Controls.Add(this.lb_pageGroup); + this.panel1.Controls.Add(this.txt_pageGroup); + this.panel1.Controls.Add(this.lb_icoimg); + this.panel1.Controls.Add(this.txt_icoimg); + this.panel1.Controls.Add(this.lb_path); + this.panel1.Controls.Add(this.txt_path); + this.panel1.Controls.Add(this.lb_pageView); + this.panel1.Controls.Add(this.txt_pageView); + this.panel1.Font = new System.Drawing.Font("Tahoma", 10F); + this.panel1.Location = new System.Drawing.Point(76, 20); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(744, 291); + this.panel1.TabIndex = 1; + // + // txt_pageIdx + // + this.txt_pageIdx.Location = new System.Drawing.Point(516, 50); + this.txt_pageIdx.Name = "txt_pageIdx"; + this.txt_pageIdx.Size = new System.Drawing.Size(150, 28); + this.txt_pageIdx.TabIndex = 224; + this.txt_pageIdx.Value = new decimal(new int[] { + 2, + 0, + 0, + 0}); + // + // txt_pageStatus + // + this.txt_pageStatus.Location = new System.Drawing.Point(516, 100); + this.txt_pageStatus.Name = "txt_pageStatus"; + this.txt_pageStatus.Properties.Caption = ""; + this.txt_pageStatus.Size = new System.Drawing.Size(94, 24); + this.txt_pageStatus.TabIndex = 223; + // + // labelControl11 + // + this.labelControl11.Location = new System.Drawing.Point(72, 210); + this.labelControl11.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.labelControl11.Name = "labelControl11"; + this.labelControl11.Size = new System.Drawing.Size(45, 18); + this.labelControl11.TabIndex = 130; + this.labelControl11.Text = "涓婚敭锛�"; + this.labelControl11.Visible = false; + // + // lbGuid + // + this.lbGuid.AutoSize = true; + this.lbGuid.Location = new System.Drawing.Point(123, 210); + this.lbGuid.Name = "lbGuid"; + this.lbGuid.Size = new System.Drawing.Size(0, 21); + this.lbGuid.TabIndex = 1; + this.lbGuid.Visible = false; + // + // Frm_MesSysPageview + // + 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.xtraTabControl1); + this.Controls.Add(this.toolBarMenu1); + this.Name = "Frm_MesSysPageview"; + ((System.ComponentModel.ISupportInitialize)(this.txt_pageGroup.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_icoimg.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_path.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_pageView.Properties)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gcMain)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit(); + this.xtraTabControl1.ResumeLayout(false); + this.xtraTabPage1.ResumeLayout(false); + this.xtraTabPage2.ResumeLayout(false); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txt_pageIdx)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txt_pageStatus.Properties)).EndInit(); + this.ResumeLayout(false); + + } + #endregion + private UserControl.UcToolBarMenu toolBarMenu1; + private DevExpress.XtraGrid.GridControl gcMain; + private DevExpress.XtraGrid.Views.Grid.GridView gridView1; + private DevExpress.XtraTab.XtraTabControl xtraTabControl1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage1; + private DevExpress.XtraTab.XtraTabPage xtraTabPage2; + private UserControls.Data.UcPageBar pageBar1; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Label lbGuid; + private DevExpress.XtraEditors.LabelControl labelControl11; + //BQCreateConrolObejct +private DevExpress.XtraEditors.LabelControl lb_pageStatus; + private DevExpress.XtraGrid.Columns.GridColumn gv_pageStatus; + +private DevExpress.XtraEditors.LabelControl lb_pageIdx; + private DevExpress.XtraGrid.Columns.GridColumn gv_pageIdx; + +private DevExpress.XtraEditors.LabelControl lb_pageGroup; +private DevExpress.XtraEditors.TextEdit txt_pageGroup; + private DevExpress.XtraGrid.Columns.GridColumn gv_pageGroup; + +private DevExpress.XtraEditors.LabelControl lb_icoimg; +private DevExpress.XtraEditors.TextEdit txt_icoimg; + private DevExpress.XtraGrid.Columns.GridColumn gv_icoimg; + +private DevExpress.XtraEditors.LabelControl lb_path; +private DevExpress.XtraEditors.TextEdit txt_path; + private DevExpress.XtraGrid.Columns.GridColumn gv_path; + +private DevExpress.XtraEditors.LabelControl lb_pageView; +private DevExpress.XtraEditors.TextEdit txt_pageView; + private DevExpress.XtraGrid.Columns.GridColumn gv_pageView; + private DevExpress.XtraEditors.CheckEdit txt_pageStatus; + private System.Windows.Forms.NumericUpDown txt_pageIdx; + } +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.cs b/DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.cs new file mode 100644 index 0000000..061fbcd --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.cs @@ -0,0 +1,284 @@ +using DevExpress.XtraBars.Docking2010.Views.WindowsUI; +using Gs.DevApp.Entity; +using Gs.DevApp.ToolBox; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.Data; +using System.Drawing; +using System.Windows.Forms; + +namespace Gs.DevApp.DevFrm +{ + public partial class Frm_MesSysPageview : DevExpress.XtraEditors.XtraForm + { + string _webServiceName = "MesSysPageviewManager/"; + List<FilterEntity> _filterList = new List<FilterEntity>(); + public Frm_MesSysPageview() + { + InitializeComponent(); + this.toolBarMenu1.btnAddClick += ToolBarMenu1_btnAddClick; + this.toolBarMenu1.btnEdtClick += ToolBarMenu1_btnEdtClick; + this.toolBarMenu1.btnSaveClick += ToolBarMenu1_btnSaveClick; + this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick; + this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; + this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; + gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; + getPageList(1, UtilityHelper.GetPageSize()); + pageBar1.PagerEvent += PageBar1_PagerEvent; + gridView1.CustomDrawRowIndicator += (s, e) => + { + if (e.Info.IsRowIndicator && e.RowHandle >= 0) + { + e.Info.DisplayText = (e.RowHandle + 1).ToString(); + } + }; + gridView1.CustomDrawEmptyForeground += (s, e) => + { + string str = "鏆傛湭鏌ユ壘鍒板尮閰嶇殑鏁版嵁!"; + Font f = new Font("寰蒋闆呴粦", 16); + Rectangle r = new Rectangle(gridView1.GridControl.Width / 2 - 100, e.Bounds.Top + 45, e.Bounds.Right - 5, e.Bounds.Height - 5); + e.Graphics.DrawString(str, f, Brushes.Gray, r); + }; + } + + /// <summary> + /// 鍙屽嚮浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void GcMain_MouseDoubleClick(object sender, MouseEventArgs e) + { + string rowGuid = Gs.DevApp.ToolBox.UtilityHelper.GetCurrentDoubleRow(gridView1, e, "guid"); + if (!string.IsNullOrEmpty(rowGuid)) + getModel(rowGuid, false, 999); + } + /// <summary> + /// 鍒嗛〉浜嬩欢 + /// </summary> + /// <param name="curPage"></param> + /// <param name="pageSize"></param> + private void PageBar1_PagerEvent(int curPage, int pageSize) + { + getPageList(curPage, pageSize); + } + /// <summary> + /// 鍙栨秷浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEscClick(object sender, EventArgs e) + { + UtilityHelper.JumpToTab(xtraTabControl1, 0); + } + + /// <summary> + /// 鍒犻櫎浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnDelClick1(object sender, EventArgs e) + { + string rowGuid = "", rowName = ""; + (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_pageView, gridView1); + if (string.IsNullOrEmpty(rowGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + if (!MsgHelper.AskQuestion("浣犻�夋嫨浜嗐��" + rowName + "銆戯紝纭畾鍒犻櫎鍚楋紵")) + return; + List<dynamic> lst = new List<dynamic>(); + lst.Add(rowGuid); + var _obj = lst; + try + { + string strJson = UtilityHelper.HttpPost("", _webServiceName + "DeleteModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); + if (_rtn.rtnCode > 0) + { + UtilityHelper.JumpToTab(xtraTabControl1, 0); + getPageList(1, UtilityHelper.GetPageSize()); + } + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + + /// <summary> + /// 鍒锋柊浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e) + { + if (xtraTabControl1.SelectedTabPageIndex == 1) + getModel(lbGuid.Text.Trim(), false, 999); + else + getPageList(1, UtilityHelper.GetPageSize()); + } + /// <summary> + /// 淇敼浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e) + { + string rowGuid = "", rowName = ""; + (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_pageView, gridView1); + if (string.IsNullOrEmpty(rowGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + getModel(rowGuid, true, 1); + } + /// <summary> + /// 鏂板浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnAddClick(object sender, EventArgs e) + { + UtilityHelper.JumpToTab(xtraTabControl1, 1); + lbGuid.Text = ""; + UtilityHelper.CleanValueByControl(this.panel1.Controls, true); + + } + /// <summary> + /// 淇濆瓨浜嬩欢 + /// </summary> + /// <param name="sender"></param> + /// <param name="e"></param> + private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) + { + + toolBarMenu1.isSetBtn = false; + if (string.IsNullOrEmpty(txt_pageView.Text.Trim())) + { + Gs.DevApp.ToolBox.MsgHelper.Warning("椤甸潰鍚嶇О涓嶈兘涓虹┖锛�"); + txt_pageView.Focus(); + return; + } + if (string.IsNullOrEmpty(txt_path.Text.Trim())) + { + Gs.DevApp.ToolBox.MsgHelper.Warning("璺緞涓嶈兘涓虹┖锛�"); + txt_path.Focus(); + return; + } + if (string.IsNullOrEmpty(txt_pageGroup.Text.Trim())) + { + Gs.DevApp.ToolBox.MsgHelper.Warning("缁勫埆涓嶈兘涓虹┖锛�"); + txt_pageGroup.Focus(); + return; + } + var _obj = new + { + guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //涓诲缓 + PageView = txt_pageView.Text.Trim(), + Path = txt_path.Text.Trim(), + Icoimg=txt_icoimg.Text.Trim(), + PageGroup=txt_pageGroup.Text.Trim(), + PageIdx=txt_pageIdx.Text.Trim(), + PageStatus=txt_pageStatus.Checked + }; + try + { + string strJson = UtilityHelper.HttpPost("", _webServiceName + "EditModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + if (_rtn.rtnCode > 0) + { + lbGuid.Text = _rtn.rtnData; + toolBarMenu1.isSetBtn = true; + UtilityHelper.ChangeEnableByControl(this.panel1.Controls, false); + } + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + + /// <summary> + /// + /// </summary> + /// <param name="curPage">绗嚑椤�</param> + /// <param name="pageSize">姣忛〉鍑犳潯</param> + private void getPageList(int curPage, int pageSize) + { + System.Text.StringBuilder _sbSqlWhere = new System.Text.StringBuilder(); + foreach (FilterEntity itm in _filterList) + { + _sbSqlWhere.Append(" and " + itm.fileId + itm.fileOper + "'" + itm.fileValue + "'"); + } + PageQueryModel pgq = new PageQueryModel(curPage, pageSize, "PAGE_IDX", "asc", "", _sbSqlWhere.ToString()); + string json = JsonConvert.SerializeObject(pgq); + try + { + string strReturn = UtilityHelper.HttpPost("", _webServiceName + "GetListPage", json); + ReturnModel<PageListModel> dd = UtilityHelper.ReturnToTablePage(strReturn); + if (dd.rtnCode > 0) + { + DataTable dt = dd.rtnData.list; + gcMain.BindingContext = new BindingContext(); + gcMain.DataSource = dt; + gcMain.ForceInitialize(); + int dddd = dd.rtnData.pages;//鎬婚〉 + pageBar1.TotalPages = dddd; + pageBar1.RecordCount = dd.rtnData.total;//璁板綍鎬绘暟 + pageBar1.CurrentPage = curPage;//褰撳墠椤� + pageBar1.RowsCount = pageSize;//姣忛〉鏄剧ず + pageBar1.setTxt(); + } + else + { + ToolBox.MsgHelper.ShowError("鎻愮ず锛�" + dd.rtnMsg); + } + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + /// <summary> + /// + /// </summary> + /// <param name="strGuid">涓婚敭</param> + /// <param name="isEdit">鏄惁鍙紪杈�</param> + /// <param name="tabIdx">閫夐」鍗″簭鍙�</param> + private void getModel(string strGuid, bool isEdit, int tabIdx) + { + if (string.IsNullOrEmpty(strGuid)) + { + ToolBox.MsgHelper.Warning("璇峰厛閫夋嫨浣犺鎿嶄綔鐨勮锛�"); + return; + } + UtilityHelper.JumpToTab(xtraTabControl1, tabIdx); + var _obj = new + { + guid = strGuid,//涓诲缓 + }; + try + { + string strJson = UtilityHelper.HttpPost("", _webServiceName + "GetModel", JsonConvert.SerializeObject(_obj)); + ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); + if (_rtn.rtnCode > 0) + { + dynamic dy = _rtn.rtnData; + lbGuid.Text = strGuid; + UtilityHelper.SetValueByObj(this.panel1.Controls, dy, isEdit); + } + else + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + _rtn.rtnMsg); + } + catch (Exception ex) + { + ToolBox.MsgHelper.Warning("鎻愮ず锛�" + ex.Message); + } + } + } +} \ No newline at end of file diff --git a/DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.resx b/DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.resx new file mode 100644 index 0000000..d58980a --- /dev/null +++ b/DevApp/Gs.DevApp/DevFrm/Sys/Frm_MesSysPageview.resx @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root> \ No newline at end of file diff --git a/DevApp/Gs.DevApp/Gs.DevApp.csproj b/DevApp/Gs.DevApp/Gs.DevApp.csproj index 554990d..a956b46 100644 --- a/DevApp/Gs.DevApp/Gs.DevApp.csproj +++ b/DevApp/Gs.DevApp/Gs.DevApp.csproj @@ -325,6 +325,12 @@ <Compile Include="DevFrm\Sys\EasyCode.Designer.cs"> <DependentUpon>EasyCode.cs</DependentUpon> </Compile> + <Compile Include="DevFrm\Sys\Frm_MesSysPageview.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="DevFrm\Sys\Frm_MesSysPageview.Designer.cs"> + <DependentUpon>Frm_MesSysPageview.cs</DependentUpon> + </Compile> <Compile Include="DevFrm\Sys\SysLog.cs"> <SubType>Form</SubType> </Compile> @@ -646,6 +652,9 @@ <DependentUpon>EasyRptDesign.cs</DependentUpon> <SubType>Designer</SubType> </EmbeddedResource> + <EmbeddedResource Include="DevFrm\Sys\Frm_MesSysPageview.resx"> + <DependentUpon>Frm_MesSysPageview.cs</DependentUpon> + </EmbeddedResource> <EmbeddedResource Include="DevFrm\Sys\SysLog.resx"> <DependentUpon>SysLog.cs</DependentUpon> </EmbeddedResource> -- Gitblit v1.9.3