From 80fca75dc87026fc0ef2a634e1f08927339cde8a Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期一, 14 四月 2025 08:10:34 +0800
Subject: [PATCH] 打印计算
---
DevApp/Gs.DevApp/XtraForm1.cs | 89 ++++++++++----------------------------------
1 files changed, 21 insertions(+), 68 deletions(-)
diff --git a/DevApp/Gs.DevApp/XtraForm1.cs b/DevApp/Gs.DevApp/XtraForm1.cs
index a31ec54..8867059 100644
--- a/DevApp/Gs.DevApp/XtraForm1.cs
+++ b/DevApp/Gs.DevApp/XtraForm1.cs
@@ -1,4 +1,7 @@
-锘縰sing DevExpress.XtraEditors;
+锘縰sing DevExpress.Internal.WinApi;
+using DevExpress.Utils;
+using DevExpress.XtraBars.ToastNotifications;
+using DevExpress.XtraEditors;
using DevExpress.XtraTreeList;
using Gs.DevApp.Entity;
using Gs.DevApp.ToolBox;
@@ -20,76 +23,26 @@
public XtraForm1()
{
InitializeComponent();
- tlMenu.CustomDrawNodeCheckBox += TreeList1_CustomDrawNodeCheckBox;
- getTree();
-
- // 鍒濆鍖朤reeList
-
- //tlMenu.BestFitColumns();
- //tlMenu.EndInit();
-
- //// 璁剧疆澶嶉�夋鏄剧ず妯″紡
- //tlMenu.OptionsBehavior.Editable = true;
- //this.tlMenu.OptionsView.ShowCheckBoxes = true;
- //tlMenu.OptionsSelection.MultiSelect = true;
- ////tlMenu.OptionsSelection.MultiSelectMode = TreeListMultiSelectMode.;
-
- // 娣诲姞GetShowCheckBox浜嬩欢澶勭悊鍣�
-
- tlMenu.OptionsBehavior.Editable = true;
- tlMenu.OptionsSelection.EnableAppearanceFocusedCell = false;
- tlMenu.OptionsSelection.MultiSelect = true;
- tlMenu.OptionsSelection.MultiSelectMode = TreeListMultiSelectMode.CellSelect;
- // this.tlMenu.GetChildAtPoint += new DevExpress.XtraTreeList.GetChildNodeCheckBoxEventHandler(this.treeList_GetChildNodeCheckBox)
- }
- private void TreeList1_CustomDrawNodeCheckBox(object sender, DevExpress.XtraTreeList.CustomDrawNodeCheckBoxEventArgs e)
- {
- // 鍒ゆ柇褰撳墠鑺傜偣鏄惁涓哄彾瀛愯妭鐐癸紙鏃犲瓙鑺傜偣锛�
- if (e.Node.Nodes.Count == 0)
- {
- // 鍏佽缁樺埗澶嶉�夋锛堥粯璁よ涓猴級
- }
- else
- {
- // 鍙栨秷缁樺埗澶嶉�夋
- e.Handled = true;
- }
+
}
- // 鍙�夛細澶勭悊鑺傜偣灞曞紑浜嬩欢锛岀‘淇濆姩鎬佸姞杞界殑瀛愯妭鐐圭敓鏁�
- private void treeList1_BeforeExpand(object sender, BeforeExpandEventArgs e)
+ private void simpleButton1_Click(object sender, EventArgs e)
{
- // 鑻ュ瓙鑺傜偣鏄姩鎬佸姞杞界殑锛屽湪姝ゅ鍔犺浇鏁版嵁
- // LoadChildNodes(e.Node);
- }
- /// <summary>
- /// 璇诲彇鍒楄〃
- /// </summary>
- private void getTree()
- {
- var pgq = new PageQueryModel(1, 999999, "a.idx");
- var json = JsonConvert.SerializeObject(pgq);
- try
- {
- var strReturn =
- UtilityHelper.HttpPost("", "MenuAction/GetListPage", json);
- var dd = UtilityHelper.ReturnToTablePage(strReturn);
- var dt = dd.rtnData.list;
- tlMenu.DataSource = dt;
- tlMenu.KeyFieldName = "guid";
- tlMenu.ParentFieldName = "upGuid";
- tlMenu.Tag = "name";
- tlMenu.EndUpdate();
- this.tlMenu.CollapseAll();
-
-
- tlMenu.OptionsBehavior.Editable = true;
- tlMenu.OptionsBehavior.AllowRecursiveNodeChecking = false;
- }
- catch (Exception ex)
- {
- MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
- }
+ //toastNotificationsManager1 = new ToastNotificationsManager();
+ //VanishingMessage vm = new VanishingMessage(System.Drawing.Color.OrangeRed, "鎿嶄綔鎴愭槬鏍戞毊浜戦《鎴存");
+ //vm.Show();
+ ToolTipControllerShowEventArgs aa = new ToolTipControllerShowEventArgs();
+ aa.AllowHtmlText = DefaultBoolean.True;
+ aa.Title = "璇︽儏"; //HTML, 绮椾綋
+ aa.ToolTip = "浣犲ソ鐖变綘鐨勫厠鏍煎媰"; //鏂
+ aa.ShowBeak = true;
+ aa.Rounded = true; ////鍦嗚
+ aa.RoundRadius = 7; //鍦嗚鐜�
+ aa.ToolTipType = ToolTipType.SuperTip; //瓒呯骇鏍峰紡锛屽彲澶氳鎴栨樉绀哄浘鏍�
+ aa.ToolTipType = ToolTipType.Standard;//鏍囧噯鏍峰紡锛屽彲鏄剧ず楦熷槾銆�
+ aa.IconType = ToolTipIconType.Information; //娑堟伅鍥炬爣
+ aa.IconSize = ToolTipIconSize.Small; //澶у浘鏍�
+
}
}
}
\ No newline at end of file
--
Gitblit v1.9.3