From 85c6c700124384c3321adc5a281cc1c8ff0d6d1b Mon Sep 17 00:00:00 2001
From: yibo <361071264@qq.com>
Date: Fri, 17 Nov 2017 10:43:59 +0800
Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E8=82=89=E7=8E=87=E8=AE=A1=E7=AE=97?=
=?UTF-8?q?=E5=85=AC=E5=BC=8F=E8=B0=83=E6=95=B4=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
B3QingDaoWanFu.Web/B3QingDaoWanFu.Web.csproj | 4 +++-
.../Overlays/StatPayEdit_Ext.cs | 19 +++++++++++++++++++
B3QingDaoWanFu.Web/PluginClass.cs | 6 +++++-
3 files changed, 27 insertions(+), 2 deletions(-)
create mode 100644 B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Overlays/StatPayEdit_Ext.cs
diff --git a/B3QingDaoWanFu.Web/B3QingDaoWanFu.Web.csproj b/B3QingDaoWanFu.Web/B3QingDaoWanFu.Web.csproj
index 0f578a2..3840429 100644
--- a/B3QingDaoWanFu.Web/B3QingDaoWanFu.Web.csproj
+++ b/B3QingDaoWanFu.Web/B3QingDaoWanFu.Web.csproj
@@ -96,11 +96,13 @@
+
+ ASPXCodeBehind
+
-
diff --git a/B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Overlays/StatPayEdit_Ext.cs b/B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Overlays/StatPayEdit_Ext.cs
new file mode 100644
index 0000000..9616f01
--- /dev/null
+++ b/B3QingDaoWanFu.Web/Pages/B3QingDaoWanFu/Overlays/StatPayEdit_Ext.cs
@@ -0,0 +1,19 @@
+using BWP.Web.Pages.B3ButcherManage.Bills.StatPay_;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace BWP.Web.Pages.B3QingDaoWanFu.Overlays
+{
+ class StatPayEdit_Ext : StatPayEdit
+ {
+ protected override void CustomerConfig(Layout.AutoLayoutConfig config)
+ {
+ var tag = config.Items.FirstOrDefault(x => x.Key == "WeightSumRate");
+ if (tag != null)
+ tag.Key = "WeightSumRate2";
+ }
+ }
+}
diff --git a/B3QingDaoWanFu.Web/PluginClass.cs b/B3QingDaoWanFu.Web/PluginClass.cs
index 26ec6d9..864c3d2 100644
--- a/B3QingDaoWanFu.Web/PluginClass.cs
+++ b/B3QingDaoWanFu.Web/PluginClass.cs
@@ -1,9 +1,12 @@
-using System;
+using BWP.Web.Pages.B3ButcherManage.Bills.StatPay_;
+using BWP.Web.Pages.B3QingDaoWanFu.Overlays;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TSingSoft.WebPluginFramework;
+using TSingSoft.WebPluginFramework.Pages;
namespace BWP.B3QingDaoWanFu
{
@@ -11,6 +14,7 @@ namespace BWP.B3QingDaoWanFu
{
public void OnInit()
{
+ WpfPageFactory.RegisterPageOverlay(typeof(StatPayEdit).FullName, typeof(StatPayEdit_Ext).FullName);
}
}
}