lu
8 小时以前 b64afc41b00ee686583661f1f969d2f65d1c239e
DevApp/Gs.DevApp/DevFrm/Sys/EasyRptEdt.cs
@@ -4,7 +4,9 @@
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
{
@@ -18,6 +20,7 @@
        private void GetList()
        {
            this.flowLayoutPanel1.Controls.Clear();
            var _obj = new
            {
                keyType = ""
@@ -32,10 +35,15 @@
                foreach (DataRow row in dt.Rows)
                {
                    SimpleButton btn = new DevExpress.XtraEditors.SimpleButton();
                    btn.ImageOptions.Image = global::Gs.DevApp.Properties.Resources.printarea_32x32;
                    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);
@@ -56,12 +64,16 @@
                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);
            }
        }