From 7ef75f813411227b2e52f4cbc75fd627cff2be83 Mon Sep 17 00:00:00 2001 From: wule Date: Fri, 14 Aug 2026 22:12:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E4=BB=A3=E5=8F=91=E5=90=8E?= =?UTF-8?q?=E5=86=8D=E5=8F=91=E9=80=81=E7=A4=BC=E7=89=A9=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MoreThanZeroVisibilityConverter.cs | 24 + .../Ctrls/OrderCtrls/OrderListCtrl.xaml | 2300 +++++++++-------- .../Ctrls/OrderCtrls/OrderListCtrl.xaml.cs | 55 +- .../Ctrls/OrderCtrls/OrderListRowCtrl.xaml | 15 - .../OrderCtrls/OrderListRowHeaderCtrl.xaml | 4 +- .../OrderCtrls/OrderListRowItemCtrl.xaml | 2130 +++++++++++---- .../OrderCtrls/OrderListRowItemCtrl.xaml.cs | 20 +- .../Ctrls/ShopCtrls/ShopListCtrl.xaml.cs | 3 +- 29WxOrderWpf/Services/ShipGiftService.cs | 4 +- .../Styles/StaticColorBrushDictionary.xaml | 42 +- AllBase/BaseClass.cs | 4 +- AllBase/Model/DBModel/oms_wei_order_info.cs | 29 +- Work/UserLogin.cs | 1 + Work/_29Tools/BLL/HttpResponseWXBLL.cs | 6 +- Work/_29Tools/BLL/WxApiBLL.cs | 35 +- Work/_29Tools/Forms/PddMobileBuyOrderForm.cs | 18 +- .../Forms/PddMobileBuyOrderForm.designer.cs | 56 +- 17 files changed, 3028 insertions(+), 1718 deletions(-) create mode 100644 29WxOrderWpf/Converters/MoreThanZeroVisibilityConverter.cs diff --git a/29WxOrderWpf/Converters/MoreThanZeroVisibilityConverter.cs b/29WxOrderWpf/Converters/MoreThanZeroVisibilityConverter.cs new file mode 100644 index 0000000..603d163 --- /dev/null +++ b/29WxOrderWpf/Converters/MoreThanZeroVisibilityConverter.cs @@ -0,0 +1,24 @@ +using NaiBa.Util.Extension; +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Data; + +namespace _29WxOrderWpf.Converters +{ + public class MoreThanZeroVisibilityConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + return value.ParseToInt() > 0 ? Visibility.Visible : Visibility.Collapsed; + } + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); // 单向绑定可不实现 + } + } +} diff --git a/29WxOrderWpf/Ctrls/OrderCtrls/OrderListCtrl.xaml b/29WxOrderWpf/Ctrls/OrderCtrls/OrderListCtrl.xaml index aec7499..f6c080a 100644 --- a/29WxOrderWpf/Ctrls/OrderCtrls/OrderListCtrl.xaml +++ b/29WxOrderWpf/Ctrls/OrderCtrls/OrderListCtrl.xaml @@ -1,1177 +1,1191 @@  + x:Class="_29WxOrderWpf.Ctrls.OrderCtrls.OrderListCtrl" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:c="clr-namespace:_29WxOrderWpf.Common" + xmlns:converters="clr-namespace:_29WxOrderWpf.Converters" + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" + xmlns:local="clr-namespace:_29WxOrderWpf.Ctrls.OrderCtrls" + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:usercontrols="clr-namespace:_29WxOrderWpf.UserControls" + xmlns:utils="clr-namespace:_29WxOrderWpf.Utils" + d:DesignHeight="450" + d:DesignWidth="1560" + Loaded="Window_Loaded" + mc:Ignorable="d"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - - - - - 标题包含 - - - 标题不含 - - - - + + + + + 标题包含 + + + 标题不含 + + + + - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + - - - - + +