| | |
| | | using Gs.DevApp.UserControl; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace Gs.DevApp.DevFrm.Sys |
| | | { |
| | |
| | | |
| | | private void GetList() |
| | | { |
| | | this.flowLayoutPanel1.Controls.Clear(); |
| | | var _obj = new |
| | | { |
| | | keyType = "" |
| | |
| | | foreach (DataRow row in dt.Rows) |
| | | { |
| | | SimpleButton btn = new DevExpress.XtraEditors.SimpleButton(); |
| | | if (row["reportType"].ToString().StartsWith("客户模板")) |
| | | { |
| | | btn.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.user_32x32; |
| | | } |
| | | else |
| | | btn.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.printarea_32x32; |
| | | btn.ImageOptions.ImageToTextAlignment = DevExpress.XtraEditors.ImageAlignToText.TopCenter; |
| | | btn.Name = Guid.NewGuid().ToString(); |
| | | btn.Size = new System.Drawing.Size(150, 150); |
| | | btn.Size = new System.Drawing.Size(170, 170); |
| | | btn.TabIndex = 1; |
| | | btn.Text = row["reportType"].ToString() + "\n" + row["reportName"].ToString(); |
| | | btn.Margin = new System.Windows.Forms.Padding(20); |
| | |
| | | btn2.Click += (s, e) => |
| | | { |
| | | EasyRptEdtShow frm = new EasyRptEdtShow(); |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | | GetList(); |
| | | }; |
| | | frm.ShowDialog(); |
| | | }; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |