Compare commits
40
Commits
上货代码改动
...
bac53e7812
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bac53e7812 | ||
|
|
5bfaed02e2 | ||
|
|
7b9d63d0c9 | ||
|
|
b12eb46f8e | ||
|
|
99fd0407be | ||
|
|
3696ee3b3e | ||
|
|
fe9bad9983 | ||
|
|
90dbd7fedc | ||
|
|
16ed764447 | ||
|
|
d9dd4dfaed | ||
|
|
93d2956d95 | ||
|
|
fe5ff0513a | ||
|
|
50d3e6c3ee | ||
|
|
d1001d5623 | ||
|
|
2bb20fc107 | ||
|
|
652e7bc6e1 | ||
|
|
8c11794884 | ||
|
|
1b9d2244c8 | ||
|
|
8a89859a3f | ||
|
|
95faf9f104 | ||
|
|
ab4f94e320 | ||
|
|
a9c3e5e301 | ||
|
|
b15c49f253 | ||
|
|
f06bed1927 | ||
|
|
02e4d9d5c7 | ||
|
|
b94507ad81 | ||
|
|
2c15736f11 | ||
|
|
c0fa847158 | ||
|
|
1e93c5fdfb | ||
|
|
b9c756b561 | ||
|
|
52bb9973b9 | ||
|
|
1d8ad2c412 | ||
|
|
44c00570ac | ||
|
|
2f6b0deb1c | ||
|
|
2e4aeee82f | ||
|
|
ab7bd36ba6 | ||
|
|
6e3a100d0a | ||
|
|
1468153f6d | ||
|
|
761c3483bc | ||
|
|
7df74cd30a |
No files matched your search
@@ -60,4 +60,10 @@
|
|||||||
<Reference Include="WindowsBase" />
|
<Reference Include="WindowsBase" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Update="BaseClass.cs">
|
||||||
|
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
|
||||||
|
</Compile>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
@@ -31,7 +31,7 @@ namespace AllBase
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 版本ID
|
/// 版本ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static int VersionCount = 1312;
|
public static int VersionCount = 1326;
|
||||||
public static string MainPath = "29wx";
|
public static string MainPath = "29wx";
|
||||||
//public static string MainPath = "29wx";
|
//public static string MainPath = "29wx";
|
||||||
//public static string MainPath = "29pdd";
|
//public static string MainPath = "29pdd";
|
||||||
|
|||||||
+1974
-1958
File diff suppressed because it is too large.
Load diff
@@ -6,85 +6,88 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace AllBase.Model.DBModel
|
namespace AllBase.Model.DBModel
|
||||||
{
|
{
|
||||||
public class user_payment_record
|
public class user_payment_record
|
||||||
{
|
{
|
||||||
public long id { get; set; }
|
public long id { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 变动类型,1:充值,2:采购花费,3:产品退款到账,4:运费退款到账,5:采购收款,6:产品退款扣除,7:运费退款扣除,16:礼物单话费,20:中转运费,23:作废运费返还 26:退货包裹扣费,
|
/// 变动类型,1:充值,2:采购花费,3:产品退款到账,4:运费退款到账,5:采购收款,6:产品退款扣除,7:运费退款扣除,16:礼物单话费,20:中转运费,23:作废运费返还 26:退货包裹扣费,
|
||||||
/// 30:支付宝在线充值,31:云仓退货支出
|
/// 30:支付宝在线充值,31:云仓退货支出
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int? type { get; set; }
|
public int? type { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 充值或花费的金额(元)
|
/// 充值或花费的金额(元)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public decimal amount { get; set; }
|
public decimal amount { get; set; }
|
||||||
public decimal oem_amount { get; set; }
|
public decimal oem_amount { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 充值或花费后的当前账户余额(元)
|
/// 充值或花费后的当前账户余额(元)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public decimal balance { get; set; }
|
public decimal balance { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 账户名
|
/// 账户名
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string user_name { get; set; }
|
public string user_name { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 平台编码
|
/// 平台编码
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string platform_code { get; set; }
|
public string platform_code { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 订单id
|
/// 订单id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string order_id { get; set; }
|
public string order_id { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 售后单id
|
/// 售后单id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public long? after_sale_id { get; set; }
|
public long? after_sale_id { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建人
|
/// 创建人
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string create_by { get; set; }
|
public string create_by { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建时间
|
/// 创建时间
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime create_time { get; set; }
|
public DateTime create_time { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 修改人
|
/// 修改人
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string update_by { get; set; }
|
public string update_by { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 修改时间
|
/// 修改时间
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime update_time { get; set; }
|
public DateTime update_time { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否已删除
|
/// 是否已删除
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int? is_deleted { get; set; }
|
public int? is_deleted { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 备注
|
/// 备注
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string remark { get; set; }
|
public string remark { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 扣款的对方账户名称
|
/// 扣款的对方账户名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string counterparty_account_name { get; set; }
|
public string counterparty_account_name { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum EnumOrderPaymentType
|
public enum EnumOrderPaymentType
|
||||||
{
|
{
|
||||||
充值 = 1,
|
充值 = 1,
|
||||||
//采购花费 = 2,
|
//采购花费 = 2,
|
||||||
//产品退款到账 = 3,
|
//产品退款到账 = 3,
|
||||||
//运费退款到账 = 4,
|
//运费退款到账 = 4,
|
||||||
//采购收款 = 5,
|
//采购收款 = 5,
|
||||||
//产品退款扣除 = 6,
|
//产品退款扣除 = 6,
|
||||||
//运费退款扣除 = 7,
|
//运费退款扣除 = 7,
|
||||||
礼物单支出 = 16,
|
礼物单支出 = 16,
|
||||||
中转仓扣费支出 = 20,
|
中转仓扣费支出 = 20,
|
||||||
中转仓作废返还收入 = 23,
|
中转仓作废返还收入 = 23,
|
||||||
中转仓超重支出 = 24,
|
中转仓超重支出 = 24,
|
||||||
退货包裹扣费支出 = 26,
|
退货包裹扣费支出 = 26,
|
||||||
支付宝在线充值 = 30,
|
支付宝在线充值 = 30,
|
||||||
云仓退货支出 = 31,
|
云仓退货支出 = 31,
|
||||||
礼物单退费 = 34,
|
礼物单退费 = 34,
|
||||||
}
|
额外订单创建 = 35,
|
||||||
|
额外订单作废 = 36,
|
||||||
|
同步物流 = 55,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -25,11 +25,7 @@ namespace AllBase.Model.Result
|
|||||||
{
|
{
|
||||||
public TData Data { get; set; }
|
public TData Data { get; set; }
|
||||||
}
|
}
|
||||||
public class PageResult<TData> : Result<List<TData>>
|
|
||||||
{
|
|
||||||
public int Page { get; set; }
|
|
||||||
public int Total { get; set; }
|
|
||||||
}
|
|
||||||
public class PageData<T>
|
public class PageData<T>
|
||||||
{
|
{
|
||||||
public long Total { get; set; }
|
public long Total { get; set; }
|
||||||
@@ -48,4 +44,8 @@ namespace AllBase.Model.Result
|
|||||||
PageSize = pageSize;
|
PageSize = pageSize;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public class ApiPageResult<T> : Result<PageData<T>>
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -228,7 +228,12 @@ namespace AllBase.Model.Result
|
|||||||
/// 遇到需要终止上货的提示词的重试次数。
|
/// 遇到需要终止上货的提示词的重试次数。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int upLimitRetryCount { get; set; } = 0;
|
public int upLimitRetryCount { get; set; } = 0;
|
||||||
}
|
/// <summary>
|
||||||
|
/// 是否永不过期
|
||||||
|
/// </summary>
|
||||||
|
public bool never_expires { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public class AuthInfo
|
public class AuthInfo
|
||||||
{
|
{
|
||||||
@@ -321,10 +326,14 @@ namespace AllBase.Model.Result
|
|||||||
/// 每一单礼物额外收取费用
|
/// 每一单礼物额外收取费用
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public decimal gift_oem_amount_per_order { get; set; } = 0m;
|
public decimal gift_oem_amount_per_order { get; set; } = 0m;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 子账号禁止访问的页面
|
/// 同步物流额外收费
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string forbidden_page { get; set; }
|
public decimal sync_logistics_per_order { get; set; } = 0m;
|
||||||
|
/// <summary>
|
||||||
|
/// 子账号禁止访问的页面
|
||||||
|
/// </summary>
|
||||||
|
public string forbidden_page { get; set; }
|
||||||
public string oem_id { get; set; }
|
public string oem_id { get; set; }
|
||||||
public string oem_name { get; set; }
|
public string oem_name { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 492 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 6.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.5 KiB |
@@ -0,0 +1 @@
|
|||||||
|
2621y1FaMThd0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qb9xSTJg1OUq83AX1mhmdB99m2fvlvu7qaiCcR4xDXKjS7zFNQOZWtrsJjv6gLJh4OcaAQox4MtI470abKkxOiTdqISHF26ED3A2SZz0iLJb184QJJz992vl4H4e93fMS253kZQyV82xXPHMtVyaI1meC9NS64BJGJhoyYdj7sZ9Jlja8dNC8dbkLBvQDHuwz6zxvoO5LWGt8H94N94R1vuV9PbHFrj45FMRlbetzzo4C0u88kGQ758iv7Q6tFFfv3jAppyHrT7HBxyeJm1Bwj31vxt2THuzT8S2c2R71TFd0gGo54ixrx5Re9oi51AX8h3tFpMdjiBU0iWNt8GCWVB5UXUWWF3r8c1OZ2g81h7ddjkQ0Wv95L2H3q3lRb59iSpW1jh9JkCr1YX3Ts6JUx6cM7zrU4nqM0qXqaQCY3KUq87nGY2FwBPF3VQg7045qCd10Y92oGrv3Fy0g66049GNDU758zagUQSlcmPkeV2S5nAL1m28Ezh4Dwjh7aE0QvyHnz9LlnEgGXQeR2u6eugxgNpL7K8YWnr3Cdn06SLMJdDWVcLine truncated
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -0,0 +1 @@
|
|||||||
|
贝塔一体仓MThd贝塔一体仓MThd0KE8FSJyrlRb898rzDa88rfp3Wu0lBx7Swh62S2o13qKTwl984JFT20lG5ikWH7WWUNHAO72agv4kg0l5w23rHJmnA0eZxZcHXuAzdW058M1wu4xtmcJC2xggztkm5F55R1HxKU4s4sGFJiNDf6cB2DcWroaGvG5Yk9t98hD53IXIR6V92PS5YxN98U4kk16Xj0Y5G0F2TZ091YO2OXLpJIZmp6lMP9MlMpCXARz6ivEWDBC45j5dGAC1XZB6HYCh6hZvOK9VLF27J0EW0w1Vvi9fUFTm8X91Y12um16j2wm76kfo0h4S4ls96o8AsuAed3NiqW4c5988lMz3A0YIwv2XAF0039P9304fFTZAbmh4DTdxoEkSfPtMT07b2vknGzN8EU2JXdVcBBXrvveQs5oGn0K687j5X8Ij4D5EDVzx748WR4Va2IsfEt5yIK9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Y2FwBPF3VQg7045qCd10Y92oGrv3Fy0g66049GNDU758zagUQSlcmPkeV2S5nAL1m28Ezh4Dwjh7aE0QvyHnz9LlnEgGXQeR2u6eugxLine truncated
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 96 KiB |
@@ -0,0 +1,189 @@
|
|||||||
|
; 该脚本使用 HM VNISEdit 脚本编辑器向导产生
|
||||||
|
|
||||||
|
; 安装程序初始定义常量
|
||||||
|
!define PRODUCT_NAME "贝塔一体仓"
|
||||||
|
!define PRODUCT_VERSION "v12.61"
|
||||||
|
;!define PRODUCT_PUBLISHER "${PRODUCT_NAME}软件制作组"
|
||||||
|
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\29供应链.exe"
|
||||||
|
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
|
||||||
|
;!define PRODUCT_UNINST_ROOT_KEY "HKLM" ;需要管理员权限
|
||||||
|
!define PRODUCT_UNINST_ROOT_KEY "HKCU"
|
||||||
|
!define UTILS_PATH ".\Utils"
|
||||||
|
!define SOURCE_PATH "..\Bin.Oem"
|
||||||
|
!define OUT_PUT_PATH ".\Bin"
|
||||||
|
|
||||||
|
SetCompressor lzma
|
||||||
|
|
||||||
|
; ------ MUI 现代界面定义 (1.67 版本以上兼容) ------
|
||||||
|
!include "MUI.nsh"
|
||||||
|
|
||||||
|
; MUI 预定义常量
|
||||||
|
!define MUI_ABORTWARNING
|
||||||
|
!define MUI_ICON "${SOURCE_PATH}\favicon.ico"
|
||||||
|
;!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
|
||||||
|
!define MUI_UNICON "${UTILS_PATH}\uninstall.ico"
|
||||||
|
|
||||||
|
; 语言选择窗口常量设置
|
||||||
|
!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
|
||||||
|
!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
|
||||||
|
!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
|
||||||
|
|
||||||
|
; 欢迎页面
|
||||||
|
!insertmacro MUI_PAGE_WELCOME
|
||||||
|
; 许可协议页面
|
||||||
|
!define MUI_LICENSEPAGE_CHECKBOX
|
||||||
|
!insertmacro MUI_PAGE_LICENSE "${UTILS_PATH}\Licence.txt"
|
||||||
|
; 安装目录选择页面
|
||||||
|
!insertmacro MUI_PAGE_DIRECTORY
|
||||||
|
; 安装过程页面
|
||||||
|
!insertmacro MUI_PAGE_INSTFILES
|
||||||
|
; 安装完成页面
|
||||||
|
;!define MUI_FINISHPAGE_RUN "$INSTDIR\29供应链.exe" ;win10直接启动会双开,以下改为使用函数启动
|
||||||
|
;!define MUI_FINISHPAGE_RUN "exe_file" ;指定要运行的可执行文件路径(如 $INSTDIR\MyApp.exe)。文件名含空格时无需加引号 。
|
||||||
|
;!define MUI_FINISHPAGE_RUN_TEXT "text" ;设置复选框旁的显示文本(例如:“立即运行我的应用”)。
|
||||||
|
;!define MUI_FINISHPAGE_RUN_PARAMETERS "params" ;传入运行参数。若参数含双引号,需用 \" 转义 。
|
||||||
|
;!define MUI_FINISHPAGE_RUN_NOTCHECKED ;默认不选中该复选框(即默认不运行)。
|
||||||
|
;!define MUI_FINISHPAGE_RUN_FUNCTION "func_name" ;替代直接运行 exe,改为调用自定义 NSIS 函数(此时 MUI_FINISHPAGE_RUN 可不带参数),适合需执行多步逻辑的场景 。
|
||||||
|
;示例================================================================================================================
|
||||||
|
;!include "MUI2.nsh"
|
||||||
|
|
||||||
|
;!define MUI_FINISHPAGE_RUN "$INSTDIR\MyApp.exe"
|
||||||
|
;!define MUI_FINISHPAGE_RUN_TEXT "启动应用程序"
|
||||||
|
;!define MUI_FINISHPAGE_RUN_PARAMETERS "/silent"
|
||||||
|
;;!define MUI_FINISHPAGE_RUN_NOTCHECKED
|
||||||
|
|
||||||
|
;!insertmacro MUI_PAGE_FINISH
|
||||||
|
;示例结束============================================================================================================
|
||||||
|
|
||||||
|
!define MUI_FINISHPAGE_RUN
|
||||||
|
;安装函数定义
|
||||||
|
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchExe"
|
||||||
|
!insertmacro MUI_PAGE_FINISH
|
||||||
|
|
||||||
|
; 安装卸载过程页面
|
||||||
|
!insertmacro MUI_UNPAGE_INSTFILES
|
||||||
|
|
||||||
|
; 安装界面包含的语言设置
|
||||||
|
!insertmacro MUI_LANGUAGE "English"
|
||||||
|
!insertmacro MUI_LANGUAGE "SimpChinese"
|
||||||
|
|
||||||
|
; 安装预释放文件
|
||||||
|
!insertmacro MUI_RESERVEFILE_LANGDLL
|
||||||
|
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
|
||||||
|
; ------ MUI 现代界面定义结束 ------
|
||||||
|
|
||||||
|
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
|
||||||
|
OutFile "${OUT_PUT_PATH}\${PRODUCT_NAME} ${PRODUCT_VERSION}.exe"
|
||||||
|
InstallDir "$PROGRAMFILES\${PRODUCT_NAME}"
|
||||||
|
;InstallDir "D:\${PRODUCT_NAME}"
|
||||||
|
;InstallDirRegKey HKLM "${PRODUCT_UNINST_KEY}" "UninstallString"
|
||||||
|
InstallDirRegKey HKCU "${PRODUCT_UNINST_KEY}" "UninstallString"
|
||||||
|
ShowInstDetails show
|
||||||
|
ShowUnInstDetails show
|
||||||
|
BrandingText "${PRODUCT_NAME}安装程序"
|
||||||
|
|
||||||
|
Section "MainSection" SEC01
|
||||||
|
SetOutPath "$INSTDIR"
|
||||||
|
;SetOverwrite on|off|try|ifnewer ;强制覆盖|不覆盖|仅覆盖可写文件|仅覆盖旧文件
|
||||||
|
SetOverwrite on
|
||||||
|
;/x 排除的目录或文件
|
||||||
|
;File /r /x "Config.xml" /x "choice.debug.tools" /x "DB.dll" /x "Publish.exe" /x "AllBase.pdb" /x "Work.pdb" /x "29供应链.pdb" /x "data" "${SOURCE_PATH}\*.*"
|
||||||
|
File /r /x "BaseClass.cs" /x "Config.xml" /x "choice.debug.tools" /x "DB.dll" /x "Publish.exe" /x "*.pdb" /x "*.zip" /x "data" /x "Cache" /x "29wx.lnk" /x "29wx.ico" /x "29pdd.lnk" /x "29pdd.ico" "${SOURCE_PATH}\*.*"
|
||||||
|
CreateDirectory "$SMPROGRAMS\${PRODUCT_NAME}"
|
||||||
|
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME}.lnk" "$INSTDIR\29供应链.exe" "" "$INSTDIR\favicon.ico"
|
||||||
|
CreateShortCut "$DESKTOP\${PRODUCT_NAME}.lnk" "$INSTDIR\29供应链.exe" "" "$INSTDIR\favicon.ico"
|
||||||
|
File "${SOURCE_PATH}\29供应链.exe"
|
||||||
|
;SetOutPath "$TEMP"
|
||||||
|
;File "${UTILS_PATH}\VC_redist_2015_2022.x64.exe"
|
||||||
|
;ExecWait '$TEMP\vc_redist.x86.exe' # 一般(非静默)VC的安装
|
||||||
|
;ExecWait '"$TEMP\vc_redist.x86.exe" /q' # silent install 静默安装
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
|
Section -AdditionalIcons
|
||||||
|
SetOutPath $INSTDIR
|
||||||
|
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk" "$INSTDIR\uninst.exe"
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
|
Section -Post
|
||||||
|
WriteUninstaller "$INSTDIR\uninst.exe"
|
||||||
|
;WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\29供应链.exe"
|
||||||
|
WriteRegStr HKCU "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\29供应链.exe"
|
||||||
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
|
||||||
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
|
||||||
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\29供应链.exe"
|
||||||
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
|
||||||
|
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_NAME}软件制作组"
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
|
#-- 根据 NSIS 脚本编辑规则,所有 Function 区段必须放置在 Section 区段之后编写,以避免安装程序出现未可预知的问题。--#
|
||||||
|
|
||||||
|
Function .onInit
|
||||||
|
!insertmacro MUI_LANGDLL_DISPLAY
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
|
;function要写字section之后
|
||||||
|
Function LaunchExe
|
||||||
|
;ExecShell "" "$INSTDIR\${PRODUCT_NAME}.exe"
|
||||||
|
; 启动主程序,ExecWait 会等待程序启动后再继续(推荐用于确保启动成功)
|
||||||
|
;ExecWait '"$INSTDIR\YourApp.exe"' // 等待也可以用来弹出必要组件安装时等待安装完成再继续运行安装程序。
|
||||||
|
; 若希望安装程序立即关闭而不等待,可使用 Exec
|
||||||
|
;Exec '"$INSTDIR\29供应链.exe"'
|
||||||
|
Exec "$INSTDIR\29供应链.exe"
|
||||||
|
; 以普通用户权限启动程序(即使安装包是管理员权限)
|
||||||
|
;System::Call 'shell32::ShellExecute(i 0, t"open", t"explorer.exe", t"/e,$INSTDIR\start.bat", t"", i 0)'
|
||||||
|
;Exec "$INSTDIR\start.bat"
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
|
|
||||||
|
/******************************
|
||||||
|
* 以下是安装程序的卸载部分 *
|
||||||
|
******************************/
|
||||||
|
|
||||||
|
Section Uninstall
|
||||||
|
Delete "$INSTDIR\uninst.exe"
|
||||||
|
Delete "$TEMP\vc_redist.x86.exe"
|
||||||
|
Delete "$INSTDIR\29供应链.exe"
|
||||||
|
|
||||||
|
Delete "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk"
|
||||||
|
Delete "$DESKTOP\${PRODUCT_NAME}.lnk"
|
||||||
|
Delete "$SMPROGRAMS\${PRODUCT_NAME}\${PRODUCT_NAME}.lnk"
|
||||||
|
|
||||||
|
RMDir "$SMPROGRAMS\${PRODUCT_NAME}"
|
||||||
|
|
||||||
|
RMDir /r "$INSTDIR\blob_storage"
|
||||||
|
RMDir /r "$INSTDIR\Cache"
|
||||||
|
RMDir /r "$INSTDIR\config"
|
||||||
|
RMDir /r "$INSTDIR\data"
|
||||||
|
RMDir /r "$INSTDIR\DawnCache"
|
||||||
|
RMDir /r "$INSTDIR\GPUCache"
|
||||||
|
RMDir /r "$INSTDIR\locales"
|
||||||
|
RMDir /r "$INSTDIR\log"
|
||||||
|
RMDir /r "$INSTDIR\ru-ru"
|
||||||
|
RMDir /r "$INSTDIR\static"
|
||||||
|
RMDir /r "$INSTDIR\taobao"
|
||||||
|
RMDir /r "$INSTDIR\temp"
|
||||||
|
RMDir /r "$INSTDIR\upBak"
|
||||||
|
RMDir /r "$INSTDIR\upTemp"
|
||||||
|
RMDir /r "$INSTDIR\x64"
|
||||||
|
RMDir /r "$INSTDIR\x86"
|
||||||
|
|
||||||
|
RMDir /r "$INSTDIR"
|
||||||
|
|
||||||
|
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
|
||||||
|
;DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
|
||||||
|
DeleteRegKey HKCU "${PRODUCT_DIR_REGKEY}"
|
||||||
|
SetAutoClose true
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
|
#-- 根据 NSIS 脚本编辑规则,所有 Function 区段必须放置在 Section 区段之后编写,以避免安装程序出现未可预知的问题。--#
|
||||||
|
|
||||||
|
Function un.onInit
|
||||||
|
!insertmacro MUI_UNGETLANGUAGE
|
||||||
|
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "您确实要完全移除 $(^Name) ,及其所有的组件?" IDYES +2
|
||||||
|
Abort
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
|
Function un.onUninstSuccess
|
||||||
|
HideWindow
|
||||||
|
MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) 已成功地从您的计算机移除。"
|
||||||
|
FunctionEnd
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
; 安装程序初始定义常量
|
; 安装程序初始定义常量
|
||||||
!define PRODUCT_NAME "川合供应链"
|
!define PRODUCT_NAME "川合供应链"
|
||||||
!define PRODUCT_VERSION "v12.15"
|
!define PRODUCT_VERSION "v12.61"
|
||||||
;!define PRODUCT_PUBLISHER "${PRODUCT_NAME}软件制作组"
|
;!define PRODUCT_PUBLISHER "${PRODUCT_NAME}软件制作组"
|
||||||
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\29供应链.exe"
|
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\29供应链.exe"
|
||||||
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
|
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
|
||||||
@@ -296,8 +296,8 @@ namespace TemuKJD.BLL
|
|||||||
shop.AddTime = BaseRegex.GetStringJson(ref shopStr, "add_time") == null ? DateTime.MinValue : Convert.ToDateTime(BaseRegex.GetStringJson(ref shopStr, "add_time"));
|
shop.AddTime = BaseRegex.GetStringJson(ref shopStr, "add_time") == null ? DateTime.MinValue : Convert.ToDateTime(BaseRegex.GetStringJson(ref shopStr, "add_time"));
|
||||||
shop.is_point_shop_expire = BaseRegex.GetBoolJson(ref shopStr, "is_point_shop_expire");
|
shop.is_point_shop_expire = BaseRegex.GetBoolJson(ref shopStr, "is_point_shop_expire");
|
||||||
shop.expire_time = BaseRegex.GetIntJson(ref shopStr, "expire_time");
|
shop.expire_time = BaseRegex.GetIntJson(ref shopStr, "expire_time");
|
||||||
|
shop.never_expires = BaseRegex.GetBoolJson(ref shopStr, "never_expires");
|
||||||
if (BaseClass.MainPath == "29pdd")
|
if (BaseClass.MainPath == "29pdd")
|
||||||
{
|
{
|
||||||
shop.AntiContents.Clear();
|
shop.AntiContents.Clear();
|
||||||
//shop.AntiContents.AddRange(JsonHelper.DeserializeJsonToList<string>(jObj["anti_contents"].IsNullOrEmpty() ? "[]" : jObj["anti_contents"].ToString()));
|
//shop.AntiContents.AddRange(JsonHelper.DeserializeJsonToList<string>(jObj["anti_contents"].IsNullOrEmpty() ? "[]" : jObj["anti_contents"].ToString()));
|
||||||
|
|||||||
@@ -0,0 +1,150 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Linq.Expressions;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace TemuKJD.Extension;
|
||||||
|
|
||||||
|
public class DataContext<TSource> : BindingSource
|
||||||
|
{
|
||||||
|
public DataContext() { }
|
||||||
|
public DataContext(TSource dataSource) : base(dataSource, null) { }
|
||||||
|
|
||||||
|
// 强类型的 DataSource,避免调用方还要自己转型
|
||||||
|
public new TSource DataSource
|
||||||
|
{
|
||||||
|
get => (TSource)base.DataSource;
|
||||||
|
set => base.DataSource = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public static class BindingExtensions
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// TSource 必须显式指定(因为无法从参数推断),TControl 自动从调用方控件推断
|
||||||
|
/// </summary>
|
||||||
|
public static Binding Bind<TSource, TControl>(
|
||||||
|
this TControl ctrl,
|
||||||
|
DataContext<TSource> dataSource,
|
||||||
|
Expression<Func<TControl, object>> controlPropertyExpr,
|
||||||
|
Expression<Func<TSource, object>> dataPropertyExpr,
|
||||||
|
DataSourceUpdateMode mode = DataSourceUpdateMode.OnPropertyChanged,
|
||||||
|
string format = null,
|
||||||
|
ConvertEventHandler parseHandler = null)
|
||||||
|
where TControl : Control
|
||||||
|
=> BindCore(ctrl, controlPropertyExpr.GetPropertyName(), dataSource, dataPropertyExpr, mode, format, parseHandler);
|
||||||
|
|
||||||
|
public static Binding Bind<TControl>(
|
||||||
|
this TControl ctrl,
|
||||||
|
BindingSource dataSource,
|
||||||
|
Expression<Func<TControl, object>> controlPropertyExpr,
|
||||||
|
string dataPropertyName,
|
||||||
|
DataSourceUpdateMode mode = DataSourceUpdateMode.OnPropertyChanged,
|
||||||
|
string format = null,
|
||||||
|
ConvertEventHandler parseHandler = null) where TControl : Control
|
||||||
|
=> BindCore(ctrl, controlPropertyExpr.GetPropertyName(), dataSource, dataPropertyName, mode, format, parseHandler);
|
||||||
|
|
||||||
|
// ---------- 共享的核心实现,不对外暴露 ----------
|
||||||
|
private static Binding BindCore<TSource>(
|
||||||
|
Control ctrl,
|
||||||
|
string controlPropertyName,
|
||||||
|
BindingSource bs,
|
||||||
|
Expression<Func<TSource, object>> dataPropertyExpr,
|
||||||
|
DataSourceUpdateMode mode,
|
||||||
|
string format,
|
||||||
|
ConvertEventHandler parseHandler) => BindCore(ctrl, controlPropertyName, bs, dataPropertyExpr.GetPropertyName(), mode, format, parseHandler);
|
||||||
|
|
||||||
|
private static Binding BindCore(
|
||||||
|
Control ctrl,
|
||||||
|
string controlPropertyName,
|
||||||
|
BindingSource bs,
|
||||||
|
string dataPropertyName,
|
||||||
|
DataSourceUpdateMode mode,
|
||||||
|
string format,
|
||||||
|
ConvertEventHandler parseHandler)
|
||||||
|
{
|
||||||
|
var binding = new Binding(controlPropertyName, bs, dataPropertyName, true, mode);
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(format))
|
||||||
|
binding.Format += (s, e) => e.Value = string.Format($"{{0:{format}}}", e.Value);
|
||||||
|
|
||||||
|
if (parseHandler != null)
|
||||||
|
binding.Parse += parseHandler;
|
||||||
|
|
||||||
|
ctrl.DataBindings.Add(binding);
|
||||||
|
return binding;
|
||||||
|
}
|
||||||
|
// ---------- TextBox ----------
|
||||||
|
public static Binding Bind<TSource>(
|
||||||
|
this TextBox ctrl,
|
||||||
|
BindingSource bs,
|
||||||
|
Expression<Func<TextBox, object>> controlPropertyExpr,
|
||||||
|
Expression<Func<TSource, object>> dataPropertyExpr,
|
||||||
|
DataSourceUpdateMode mode = DataSourceUpdateMode.OnPropertyChanged,
|
||||||
|
string format = null,
|
||||||
|
ConvertEventHandler parseHandler = null)
|
||||||
|
=> BindCore(ctrl, controlPropertyExpr.GetPropertyName(), bs, dataPropertyExpr, mode, format, parseHandler);
|
||||||
|
|
||||||
|
// ---------- CheckBox ----------
|
||||||
|
public static Binding Bind<TSource>(
|
||||||
|
this CheckBox ctrl,
|
||||||
|
BindingSource bs,
|
||||||
|
Expression<Func<CheckBox, object>> controlPropertyExpr,
|
||||||
|
Expression<Func<TSource, object>> dataPropertyExpr,
|
||||||
|
DataSourceUpdateMode mode = DataSourceUpdateMode.OnPropertyChanged,
|
||||||
|
string format = null,
|
||||||
|
ConvertEventHandler parseHandler = null)
|
||||||
|
=> BindCore(ctrl, controlPropertyExpr.GetPropertyName(), bs, dataPropertyExpr, mode, format, parseHandler);
|
||||||
|
|
||||||
|
// ---------- DateTimePicker ----------
|
||||||
|
public static Binding Bind<TSource>(
|
||||||
|
this DateTimePicker ctrl,
|
||||||
|
BindingSource bs,
|
||||||
|
Expression<Func<DateTimePicker, object>> controlPropertyExpr,
|
||||||
|
Expression<Func<TSource, object>> dataPropertyExpr,
|
||||||
|
DataSourceUpdateMode mode = DataSourceUpdateMode.OnPropertyChanged,
|
||||||
|
string format = null,
|
||||||
|
ConvertEventHandler parseHandler = null)
|
||||||
|
=> BindCore(ctrl, controlPropertyExpr.GetPropertyName(), bs, dataPropertyExpr, mode, format, parseHandler);
|
||||||
|
|
||||||
|
// ---------- ComboBox ----------
|
||||||
|
public static Binding Bind<TSource>(
|
||||||
|
this ComboBox ctrl,
|
||||||
|
BindingSource bs,
|
||||||
|
Expression<Func<ComboBox, object>> controlPropertyExpr,
|
||||||
|
Expression<Func<TSource, object>> dataPropertyExpr,
|
||||||
|
DataSourceUpdateMode mode = DataSourceUpdateMode.OnPropertyChanged,
|
||||||
|
string format = null,
|
||||||
|
ConvertEventHandler parseHandler = null)
|
||||||
|
=> BindCore(ctrl, controlPropertyExpr.GetPropertyName(), bs, dataPropertyExpr, mode, format, parseHandler);
|
||||||
|
|
||||||
|
// ---------- NumericUpDown ----------
|
||||||
|
public static Binding Bind<TSource>(
|
||||||
|
this NumericUpDown ctrl,
|
||||||
|
BindingSource bs,
|
||||||
|
Expression<Func<NumericUpDown, object>> controlPropertyExpr,
|
||||||
|
Expression<Func<TSource, object>> dataPropertyExpr,
|
||||||
|
DataSourceUpdateMode mode = DataSourceUpdateMode.OnPropertyChanged,
|
||||||
|
string format = null,
|
||||||
|
ConvertEventHandler parseHandler = null)
|
||||||
|
=> BindCore(ctrl, controlPropertyExpr.GetPropertyName(), bs, dataPropertyExpr, mode, format, parseHandler);
|
||||||
|
|
||||||
|
|
||||||
|
public static string GetPropertyName<TSource, TProperty>(
|
||||||
|
this Expression<Func<TSource, TProperty>> propertyExpr)
|
||||||
|
{
|
||||||
|
if (propertyExpr.Body is MemberExpression member)
|
||||||
|
return member.Member.Name;
|
||||||
|
|
||||||
|
// 处理值类型属性被隐式转换为 object 的情况(如 decimal -> object)
|
||||||
|
if (propertyExpr.Body is UnaryExpression unary &&
|
||||||
|
unary.Operand is MemberExpression unaryMember)
|
||||||
|
return unaryMember.Member.Name;
|
||||||
|
|
||||||
|
throw new ArgumentException("表达式必须是形如 x => x.PropertyName 的属性访问", nameof(propertyExpr));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -38,6 +38,9 @@
|
|||||||
<Compile Update="ChangeForm.cs">
|
<Compile Update="ChangeForm.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Update="Extension\BindingExtensions.cs">
|
||||||
|
<SubType>Component</SubType>
|
||||||
|
</Compile>
|
||||||
<Compile Update="InitForm.cs">
|
<Compile Update="InitForm.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -188,6 +191,9 @@
|
|||||||
<Compile Update="WXForms\ShopForms\WXShopOemWithdrawalForm.cs">
|
<Compile Update="WXForms\ShopForms\WXShopOemWithdrawalForm.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Update="WXForms\ShopForms\WXShopOemRebateRecordsForm.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
<Compile Update="WXForms\ShopForms\WXTaxManage.cs">
|
<Compile Update="WXForms\ShopForms\WXTaxManage.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|||||||
+25
-7
@@ -209,9 +209,9 @@ namespace TemuKJD
|
|||||||
var pName = Process.GetCurrentProcess().ProcessName;
|
var pName = Process.GetCurrentProcess().ProcessName;
|
||||||
ProcessCount = Process.GetProcesses().Count(p => p.ProcessName == pName);
|
ProcessCount = Process.GetProcesses().Count(p => p.ProcessName == pName);
|
||||||
//138版cef自己不会分缓存,会因占用导致报错,手动分缓存
|
//138版cef自己不会分缓存,会因占用导致报错,手动分缓存
|
||||||
//settings.CachePath = Path.Combine(Environment.CurrentDirectory, "Cache\\" + ProcessCount);
|
settings.CachePath = Path.Combine(Environment.CurrentDirectory, "Cache\\" + ProcessCount);
|
||||||
settings.RootCachePath = Path.Combine(Environment.CurrentDirectory, "Cache");
|
//settings.RootCachePath = Path.Combine(Environment.CurrentDirectory, "Cache");
|
||||||
settings.CachePath = Path.Combine(settings.RootCachePath, ProcessCount.ParseToString());
|
//settings.CachePath = Path.Combine(settings.RootCachePath, ProcessCount.ParseToString());
|
||||||
//settings.CachePath = null; //禁止缓存
|
//settings.CachePath = null; //禁止缓存
|
||||||
//settings.CefCommandLineArgs.Add("enable-javascript", "1");
|
//settings.CefCommandLineArgs.Add("enable-javascript", "1");
|
||||||
//settings.CefCommandLineArgs.Add("disable-features", "NetworkService,NetworkServiceInProcess");
|
//settings.CefCommandLineArgs.Add("disable-features", "NetworkService,NetworkServiceInProcess");
|
||||||
@@ -311,8 +311,8 @@ namespace TemuKJD
|
|||||||
Task.Run(()=>
|
Task.Run(()=>
|
||||||
{
|
{
|
||||||
ReadWxCate();
|
ReadWxCate();
|
||||||
//ReadWxCateBound();
|
//ReadWxCateBound();
|
||||||
ReadWxCateBound60323();
|
ReadWxCateBound60921();
|
||||||
ReadPddCate();
|
ReadPddCate();
|
||||||
|
|
||||||
while(!StartUp.IsShopInit)
|
while(!StartUp.IsShopInit)
|
||||||
@@ -332,7 +332,7 @@ namespace TemuKJD
|
|||||||
|
|
||||||
void ReadWxCate()
|
void ReadWxCate()
|
||||||
{
|
{
|
||||||
string filePath = Path.Combine(Environment.CurrentDirectory, "temp\\wxCat60808");
|
string filePath = Path.Combine(Environment.CurrentDirectory, "temp\\wxCat60920");
|
||||||
if (!File.Exists(filePath))
|
if (!File.Exists(filePath))
|
||||||
return;
|
return;
|
||||||
using (StreamReader sr = new StreamReader(filePath, System.Text.Encoding.UTF8))
|
using (StreamReader sr = new StreamReader(filePath, System.Text.Encoding.UTF8))
|
||||||
@@ -472,7 +472,25 @@ namespace TemuKJD
|
|||||||
GlobalConfig.WxCatBoundList = new ConcurrentList<WxCatBoundInfo>();
|
GlobalConfig.WxCatBoundList = new ConcurrentList<WxCatBoundInfo>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetTitle()
|
void ReadWxCateBound60921()
|
||||||
|
{
|
||||||
|
string filePath = Path.Combine(Environment.CurrentDirectory, "temp\\wxCatBound60921");
|
||||||
|
if (!File.Exists(filePath))
|
||||||
|
return;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var catTxt = FileBase.ReadAllText(filePath, System.Text.Encoding.UTF8);
|
||||||
|
GlobalConfig.WxCatBoundList = [.. JsonHelper.DeserializeJsonToList<WxCatBoundInfo>(catTxt)];
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
BaseMsgForm.ShowError("类目价格获取失败:" + ex.Message);
|
||||||
|
}
|
||||||
|
if (GlobalConfig.WxCatBoundList == null)
|
||||||
|
GlobalConfig.WxCatBoundList = new ConcurrentList<WxCatBoundInfo>();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetTitle()
|
||||||
{
|
{
|
||||||
lblVersionInfo.Text = BaseClass.ToolName + " V" + BaseClass.Varsion + " - " + BaseClass.NickName;
|
lblVersionInfo.Text = BaseClass.ToolName + " V" + BaseClass.Varsion + " - " + BaseClass.NickName;
|
||||||
lblVersionInfo.ForeColor = GlobalConfig.MainColorLight;
|
lblVersionInfo.ForeColor = GlobalConfig.MainColorLight;
|
||||||
|
|||||||
@@ -1714,7 +1714,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
|||||||
this.panelEx1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
this.panelEx1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||||
this.panelEx1.TabIndex = 787;
|
this.panelEx1.TabIndex = 787;
|
||||||
this.panelEx1.Text = "类目保证金转换";
|
this.panelEx1.Text = "类目保证金转换";
|
||||||
this.panelEx1.Visible = false;
|
|
||||||
this.panelEx1.Click += new System.EventHandler(this.btnCatBound_Click);
|
this.panelEx1.Click += new System.EventHandler(this.btnCatBound_Click);
|
||||||
//
|
//
|
||||||
// btnGetAllCate
|
// btnGetAllCate
|
||||||
@@ -1739,7 +1738,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
|||||||
this.btnGetAllCate.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
this.btnGetAllCate.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||||
this.btnGetAllCate.TabIndex = 777;
|
this.btnGetAllCate.TabIndex = 777;
|
||||||
this.btnGetAllCate.Text = "取微信全类目";
|
this.btnGetAllCate.Text = "取微信全类目";
|
||||||
this.btnGetAllCate.Visible = false;
|
|
||||||
this.btnGetAllCate.Click += new System.EventHandler(this.btnGetAllCate_Click);
|
this.btnGetAllCate.Click += new System.EventHandler(this.btnGetAllCate_Click);
|
||||||
//
|
//
|
||||||
// pnlEditExtCodePrice
|
// pnlEditExtCodePrice
|
||||||
@@ -2230,6 +2228,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
|||||||
this.ucSplitPage1.IsShowTotalCount = false;
|
this.ucSplitPage1.IsShowTotalCount = false;
|
||||||
this.ucSplitPage1.Location = new System.Drawing.Point(985, 0);
|
this.ucSplitPage1.Location = new System.Drawing.Point(985, 0);
|
||||||
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
|
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.ucSplitPage1.MaxPageSizeValue = 5000;
|
||||||
this.ucSplitPage1.Name = "ucSplitPage1";
|
this.ucSplitPage1.Name = "ucSplitPage1";
|
||||||
this.ucSplitPage1.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0);
|
this.ucSplitPage1.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0);
|
||||||
this.ucSplitPage1.PageSize = 100;
|
this.ucSplitPage1.PageSize = 100;
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ using System.Windows.Forms;
|
|||||||
using TemuKJD.BaseForms;
|
using TemuKJD.BaseForms;
|
||||||
using TemuKJD.BLL;
|
using TemuKJD.BLL;
|
||||||
using TemuKJD.Extension;
|
using TemuKJD.Extension;
|
||||||
|
using TemuKJD.KJDForms.ProductForms.TemuJitSubForms;
|
||||||
using TemuKJD.ToolForms;
|
using TemuKJD.ToolForms;
|
||||||
using TemuKJD.WXForms.ProductForms;
|
using TemuKJD.WXForms.ProductForms;
|
||||||
using Work;
|
using Work;
|
||||||
@@ -1586,9 +1587,13 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void GetProdWxCat(KJDDBProduct prod, DataGridViewRow row)
|
public static void GetProdWxCat(KJDDBProduct prod, DataGridViewRow row, ShopLoginInfo _shop = null)
|
||||||
{
|
{
|
||||||
var shop = GlobalConfig.ShopLoginList.OrderBy(x => Guid.NewGuid()).FirstOrDefault();
|
ShopLoginInfo shop = null;
|
||||||
|
if (_shop != null)
|
||||||
|
shop = _shop;
|
||||||
|
else
|
||||||
|
shop = GlobalConfig.ShopLoginList.OrderBy(x => Guid.NewGuid()).FirstOrDefault();
|
||||||
WXShopTokenInfo token = WXDBProdUploadForm.lstWXShopTokenInfo.FirstOrDefault(t => t.shopId == shop.ShopId);
|
WXShopTokenInfo token = WXDBProdUploadForm.lstWXShopTokenInfo.FirstOrDefault(t => t.shopId == shop.ShopId);
|
||||||
for (int i = 0; i < 5; i++)
|
for (int i = 0; i < 5; i++)
|
||||||
{
|
{
|
||||||
@@ -1610,10 +1615,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 如果店铺token不可用,随机获取一个上传图片的accessToken
|
// 如果店铺token不可用,随机获取一个上传图片的accessToken
|
||||||
if (token == null || token.isExpire || string.IsNullOrEmpty(token.accessToken))
|
if (_shop == null && (token == null || token.isExpire || string.IsNullOrEmpty(token.accessToken)))
|
||||||
{
|
{
|
||||||
// 获取微信accessToken
|
// 获取微信accessToken
|
||||||
//token = new WxApiBLL().GetRandomWxToken();
|
token = new WxApiBLL().GetRandomWxToken();
|
||||||
|
|
||||||
shop = GlobalConfig.ShopLoginList.OrderBy(x => Guid.NewGuid()).FirstOrDefault();
|
shop = GlobalConfig.ShopLoginList.OrderBy(x => Guid.NewGuid()).FirstOrDefault();
|
||||||
token = WXDBProdUploadForm.lstWXShopTokenInfo.FirstOrDefault(t => t.shopId == shop.ShopId);
|
token = WXDBProdUploadForm.lstWXShopTokenInfo.FirstOrDefault(t => t.shopId == shop.ShopId);
|
||||||
@@ -1631,13 +1636,17 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
|||||||
obj["req_type"] = 1;
|
obj["req_type"] = 1;
|
||||||
obj["head_imgs"] = new JArray();
|
obj["head_imgs"] = new JArray();
|
||||||
|
|
||||||
var dbProd = PDDDBProdEditForm.GetPddProductDetail(prod.id.ParseToString());
|
KJDDBProduct dbProd = null;
|
||||||
|
if (prod.db_type == "云端数据")
|
||||||
|
dbProd = prod;
|
||||||
|
else
|
||||||
|
dbProd = PDDDBProdEditForm.GetPddProductDetail(prod.id.ParseToString());
|
||||||
List<string> mainImgLst3 = new List<string>();
|
List<string> mainImgLst3 = new List<string>();
|
||||||
string productTitle = "";
|
string productTitle = "";
|
||||||
|
|
||||||
if (dbProd.product_get_type_text == "厂商直采" || dbProd.product_get_type_text == "1688厂家" || dbProd.product_get_type_text == "1688外部数据" ||
|
if (dbProd.product_get_type_text == "厂商直采" || dbProd.product_get_type_text == "1688厂家" || dbProd.product_get_type_text == "1688外部数据" ||
|
||||||
dbProd.product_get_type_text == "微信小店" || dbProd.product_get_type_text == "微信店采" || dbProd.product_get_type_text == "机会商品" ||
|
dbProd.product_get_type_text == "微信小店" || dbProd.product_get_type_text == "微信店采" || dbProd.product_get_type_text == "机会商品" ||
|
||||||
dbProd.product_get_type_text == "多多外部数据" || dbProd.product_get_type_text == "微信外部数据")
|
dbProd.product_get_type_text == "多多外部数据" || dbProd.product_get_type_text == "微信外部数据" || dbProd.db_type == "云端数据")
|
||||||
{
|
{
|
||||||
if ((dbProd.product_get_type_text == "微信小店" || dbProd.product_get_type_text == "微信店采") && dbProd.wx_cat_leaf != null)
|
if ((dbProd.product_get_type_text == "微信小店" || dbProd.product_get_type_text == "微信店采") && dbProd.wx_cat_leaf != null)
|
||||||
{
|
{
|
||||||
@@ -1717,7 +1726,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
|||||||
mainImgLst3 = pInfo.detail.galleries.Where(g => g.type == 1).Take(3).Select(s => s.url).ToList();
|
mainImgLst3 = pInfo.detail.galleries.Where(g => g.type == 1).Take(3).Select(s => s.url).ToList();
|
||||||
productTitle = pInfo.detail.goods_name;
|
productTitle = pInfo.detail.goods_name;
|
||||||
}
|
}
|
||||||
if (dbProd.product_get_type_text == "机会商品" || dbProd.product_get_type_text == "多多外部数据" || dbProd.product_get_type_text == "微信外部数据")
|
if (dbProd.product_get_type_text == "机会商品" || dbProd.product_get_type_text == "多多外部数据" || dbProd.product_get_type_text == "微信外部数据" ||
|
||||||
|
dbProd.db_type == "云端数据")
|
||||||
{
|
{
|
||||||
string convertRst = "";
|
string convertRst = "";
|
||||||
var pInfo = JsonHelper.DeserializeJsonToObject<PDDProductInfo>(dbProd.product_json);
|
var pInfo = JsonHelper.DeserializeJsonToObject<PDDProductInfo>(dbProd.product_json);
|
||||||
@@ -1757,6 +1767,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
|||||||
var html = GetHtml.PostUtf8(url, data);
|
var html = GetHtml.PostUtf8(url, data);
|
||||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||||
html = GetHtml.PostUtf8(url, data);
|
html = GetHtml.PostUtf8(url, data);
|
||||||
|
|
||||||
|
throw new Exception("商品图片链接失效");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 上传图片识别
|
// 上传图片识别
|
||||||
@@ -1804,6 +1816,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
|||||||
data1 += "&post_data=" + GetHtml.UrlEncodeUtf8(post_data);
|
data1 += "&post_data=" + GetHtml.UrlEncodeUtf8(post_data);
|
||||||
var html1 = GetHtml.PostUtf8(url1, data1);
|
var html1 = GetHtml.PostUtf8(url1, data1);
|
||||||
var catId = BaseRegex.GetStringJson(ref html1, "cat_id");
|
var catId = BaseRegex.GetStringJson(ref html1, "cat_id");
|
||||||
|
if (string.IsNullOrEmpty(catId))
|
||||||
|
{
|
||||||
|
throw new Exception(BaseRegex.GetStringJsonByRegs(ref html1, html1, "errMsg", "err_msg", "errorMsg", "error_msg"));
|
||||||
|
}
|
||||||
|
|
||||||
var jCatFirstLst = JsonHelper.JObjectParse(html1)["categories"].FirstOrDefault()["cats"] as JArray;
|
var jCatFirstLst = JsonHelper.JObjectParse(html1)["categories"].FirstOrDefault()["cats"] as JArray;
|
||||||
int index = 0;
|
int index = 0;
|
||||||
@@ -1930,10 +1946,21 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
prod.wx_cat_1 = dbProd.wx_cat_1;
|
||||||
|
prod.main_cat_id = dbProd.main_cat_id;
|
||||||
|
prod.main_cat_name = dbProd.main_cat_name;
|
||||||
|
prod.wx_cat_2 = dbProd.wx_cat_2;
|
||||||
|
prod.wx_cat_3 = dbProd.wx_cat_3;
|
||||||
|
prod.wx_cat_leaf = dbProd.wx_cat_leaf;
|
||||||
|
prod.cat_id = dbProd.cat_id;
|
||||||
|
prod.cat_name = dbProd.cat_name;
|
||||||
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
if (row == null)
|
||||||
|
throw new Exception(ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2683,8 +2710,51 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
|||||||
|
|
||||||
private void btnCatBound_Click(object sender, EventArgs e)
|
private void btnCatBound_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
List<WxCatBoundInfo> WxCatBoundInfolst = new List<WxCatBoundInfo>();
|
||||||
|
|
||||||
}
|
foreach (var cat in GlobalConfig.WxCatList)
|
||||||
|
{
|
||||||
|
var index = GlobalConfig.WxCatList.IndexOf(cat);
|
||||||
|
if (cat.leaf)
|
||||||
|
{
|
||||||
|
var url1 = BaseClass.BuildWXObjString("product/Wx_api_get_wx_cate_bound");
|
||||||
|
var data1 = UserLogin.GetSignaturex();
|
||||||
|
data1 += "&token=" + new WxApiBLL().GetRandomWxToken().accessToken;
|
||||||
|
data1 += "&cat_id=" + cat.cat_id;
|
||||||
|
var html1 = GetHtml.PostUtf8(url1, data1);
|
||||||
|
while (string.IsNullOrEmpty(html1) || BaseRegex.GetIntJson(ref html1, "deposit").IsNullOrZero())
|
||||||
|
{
|
||||||
|
Thread.Sleep(100);
|
||||||
|
data1 = UserLogin.GetSignaturex();
|
||||||
|
//data1 += "&token=" + GlobalConfig.WxGlobalTokenList.OrderBy(x => Guid.NewGuid()).FirstOrDefault()?.accessToken;
|
||||||
|
data1 += "&token=" + new WxApiBLL().GetRandomWxToken().accessToken;
|
||||||
|
data1 += "&cat_id=" + cat.cat_id;
|
||||||
|
html1 = GetHtml.PostUtf8(url1, data1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
WxCatBoundInfo wxCatBoundInfo = new WxCatBoundInfo();
|
||||||
|
wxCatBoundInfo.leaf_id = cat.cat_id.ParseToLong();
|
||||||
|
wxCatBoundInfo.full_cat_name = cat.name;
|
||||||
|
wxCatBoundInfo.leaf_name = cat.name;
|
||||||
|
wxCatBoundInfo.cat_bound = BaseRegex.GetIntJson(ref html1, "deposit") / 100;
|
||||||
|
var parentCat = cat;
|
||||||
|
while (!parentCat.f_cat_id.ParseToLong().IsNullOrZero())
|
||||||
|
{
|
||||||
|
parentCat = GlobalConfig.WxCatList.FirstOrDefault(c => c.cat_id == parentCat.f_cat_id);
|
||||||
|
|
||||||
|
if (parentCat == null)
|
||||||
|
break;
|
||||||
|
|
||||||
|
wxCatBoundInfo.full_cat_name = parentCat.name + "/" + wxCatBoundInfo.full_cat_name;
|
||||||
|
}
|
||||||
|
if (wxCatBoundInfo.cat_bound > 0)
|
||||||
|
WxCatBoundInfolst.Add(wxCatBoundInfo);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var catBoundStr = JsonHelper.SerializeObject(WxCatBoundInfolst);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private void btnExportIdImg_Click(object sender, EventArgs e)
|
private void btnExportIdImg_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|||||||
+2019
-1839
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -216,7 +216,7 @@ namespace TemuKJD.WXForms.AdminForms
|
|||||||
|
|
||||||
data = JsonHelper.SerializeObject(obj);
|
data = JsonHelper.SerializeObject(obj);
|
||||||
var html = GetHtml.PostUtf8(url, data);
|
var html = GetHtml.PostUtf8(url, data);
|
||||||
var ret = JsonConvert.DeserializeObject<PageResult<WXOemWithdrawalInfo>>(html);
|
var ret = JsonConvert.DeserializeObject<ApiPageResult<WXOemWithdrawalInfo>>(html);
|
||||||
if (ret.Code != 200)
|
if (ret.Code != 200)
|
||||||
{
|
{
|
||||||
Invoke(new Action(() =>
|
Invoke(new Action(() =>
|
||||||
@@ -227,10 +227,10 @@ namespace TemuKJD.WXForms.AdminForms
|
|||||||
}
|
}
|
||||||
|
|
||||||
seconds = BaseRegex.GetDecimalJson(ref html, "seconds");
|
seconds = BaseRegex.GetDecimalJson(ref html, "seconds");
|
||||||
pageCount = Math.Ceiling(1.0 * ret.Total / pageSize).ParseToInt();
|
pageCount = Math.Ceiling(1.0 * ret.Data.Total / pageSize).ParseToInt();
|
||||||
pageCount = Math.Max(pageCount, 1);
|
pageCount = Math.Max(pageCount, 1);
|
||||||
|
|
||||||
return ret.Data;
|
return ret.Data.List;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+998
-981
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -201,6 +201,9 @@
|
|||||||
<metadata name="colSubSa.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="colSubSa.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="col_never_expires.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="colEdit.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="colEdit.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
@@ -403,7 +403,8 @@ namespace Work._29Tools.Forms.UserForms
|
|||||||
"拍单扣除/作废返还",
|
"拍单扣除/作废返还",
|
||||||
"超重扣费支出",
|
"超重扣费支出",
|
||||||
"退货包裹扣费支出",
|
"退货包裹扣费支出",
|
||||||
"云仓退货扣费支出"});
|
"云仓退货扣费支出",
|
||||||
|
"同步物流"});
|
||||||
this.cmbType.Location = new System.Drawing.Point(55, 20);
|
this.cmbType.Location = new System.Drawing.Point(55, 20);
|
||||||
this.cmbType.Name = "cmbType";
|
this.cmbType.Name = "cmbType";
|
||||||
this.cmbType.Size = new System.Drawing.Size(121, 25);
|
this.cmbType.Size = new System.Drawing.Size(121, 25);
|
||||||
@@ -990,8 +991,8 @@ namespace Work._29Tools.Forms.UserForms
|
|||||||
this.KeyPreview = true;
|
this.KeyPreview = true;
|
||||||
this.Name = "WXOemAccountBalanceForm";
|
this.Name = "WXOemAccountBalanceForm";
|
||||||
this.Padding = new System.Windows.Forms.Padding(2);
|
this.Padding = new System.Windows.Forms.Padding(2);
|
||||||
this.Text = "OEM返现明细";
|
this.Text = "运费流水明细";
|
||||||
this.TitleText = "OEM返现明细";
|
this.TitleText = "运费流水明细";
|
||||||
this.Load += new System.EventHandler(this.WXGetTopUpQrCode_Load);
|
this.Load += new System.EventHandler(this.WXGetTopUpQrCode_Load);
|
||||||
this.Controls.SetChildIndex(this.panel1, 0);
|
this.Controls.SetChildIndex(this.panel1, 0);
|
||||||
this.panel1.ResumeLayout(false);
|
this.panel1.ResumeLayout(false);
|
||||||
|
|||||||
@@ -151,7 +151,9 @@ namespace Work._29Tools.Forms.UserForms
|
|||||||
data3 += "&type_in=26";
|
data3 += "&type_in=26";
|
||||||
else if (cmbType.Text == "云仓退货扣费支出")
|
else if (cmbType.Text == "云仓退货扣费支出")
|
||||||
data3 += "&type_in=31";
|
data3 += "&type_in=31";
|
||||||
else if (!string.IsNullOrEmpty(cmbType.Text))
|
else if (cmbType.Text == "同步物流")
|
||||||
|
data3 += "&type_in=55";
|
||||||
|
else if (!string.IsNullOrEmpty(cmbType.Text))
|
||||||
data3 += "&type_in=" + cmbType.Text;
|
data3 += "&type_in=" + cmbType.Text;
|
||||||
data3 += "&page=" + ucSplitPage1.CurrentPage;
|
data3 += "&page=" + ucSplitPage1.CurrentPage;
|
||||||
data3 += "&page_size=" + ucSplitPage1.PageSize;
|
data3 += "&page_size=" + ucSplitPage1.PageSize;
|
||||||
|
|||||||
+1875
-1713
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -357,8 +357,8 @@ namespace Work._29Tools.Forms.UserForms
|
|||||||
this.KeyPreview = true;
|
this.KeyPreview = true;
|
||||||
this.Name = "WXOemPointsTopUpListForm";
|
this.Name = "WXOemPointsTopUpListForm";
|
||||||
this.Padding = new System.Windows.Forms.Padding(2);
|
this.Padding = new System.Windows.Forms.Padding(2);
|
||||||
this.Text = "OEM积分明细";
|
this.Text = "积分流水明细";
|
||||||
this.TitleText = "OEM积分明细";
|
this.TitleText = "积分流水明细";
|
||||||
this.Load += new System.EventHandler(this.WXGetTopUpQrCode_Load);
|
this.Load += new System.EventHandler(this.WXGetTopUpQrCode_Load);
|
||||||
this.Controls.SetChildIndex(this.panel1, 0);
|
this.Controls.SetChildIndex(this.panel1, 0);
|
||||||
this.panel1.ResumeLayout(false);
|
this.panel1.ResumeLayout(false);
|
||||||
|
|||||||
+158
-154
@@ -28,169 +28,173 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("店铺列表");
|
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("店铺列表");
|
||||||
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("子账号管理");
|
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("子账号管理");
|
||||||
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("OEM账号管理");
|
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("OEM账号管理");
|
||||||
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("OEM返现明细");
|
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("运费流水明细");
|
||||||
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("OEM积分明细");
|
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("积分流水明细");
|
||||||
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("店铺地址管理");
|
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("OEM提现管理");
|
||||||
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("店铺经营统计");
|
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("店铺地址管理");
|
||||||
System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("评分考核");
|
System.Windows.Forms.TreeNode treeNode8 = new System.Windows.Forms.TreeNode("店铺经营统计");
|
||||||
System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("税务申报");
|
System.Windows.Forms.TreeNode treeNode9 = new System.Windows.Forms.TreeNode("评分考核");
|
||||||
System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("积分充值");
|
System.Windows.Forms.TreeNode treeNode10 = new System.Windows.Forms.TreeNode("税务申报");
|
||||||
System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("OEM提现管理");
|
System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("积分充值");
|
||||||
System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("店铺管理", new System.Windows.Forms.TreeNode[] {
|
System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("OEM返利明细");
|
||||||
|
System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("店铺管理", new System.Windows.Forms.TreeNode[] {
|
||||||
treeNode1,
|
treeNode1,
|
||||||
treeNode2,
|
treeNode2,
|
||||||
treeNode3,
|
treeNode3,
|
||||||
treeNode4,
|
treeNode4,
|
||||||
treeNode5,
|
treeNode5,
|
||||||
treeNode11,
|
|
||||||
treeNode6,
|
treeNode6,
|
||||||
|
treeNode12,
|
||||||
treeNode7,
|
treeNode7,
|
||||||
treeNode8,
|
treeNode8,
|
||||||
treeNode9,
|
treeNode9,
|
||||||
treeNode10});
|
treeNode10,
|
||||||
this.panel1 = new System.Windows.Forms.Panel();
|
treeNode11});
|
||||||
this.panel3 = new System.Windows.Forms.Panel();
|
this.panel1 = new System.Windows.Forms.Panel();
|
||||||
this.panel2 = new System.Windows.Forms.Panel();
|
this.panel3 = new System.Windows.Forms.Panel();
|
||||||
this.lblName = new System.Windows.Forms.Label();
|
this.panel2 = new System.Windows.Forms.Panel();
|
||||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
this.lblName = new System.Windows.Forms.Label();
|
||||||
this.tv = new TemuKJD.UserComponent.UcTreeView();
|
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||||
this.panel1.SuspendLayout();
|
this.tv = new TemuKJD.UserComponent.UcTreeView();
|
||||||
this.panel2.SuspendLayout();
|
this.panel1.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
this.panel2.SuspendLayout();
|
||||||
this.splitContainer1.Panel1.SuspendLayout();
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||||
this.splitContainer1.Panel2.SuspendLayout();
|
this.splitContainer1.Panel1.SuspendLayout();
|
||||||
this.splitContainer1.SuspendLayout();
|
this.splitContainer1.Panel2.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.splitContainer1.SuspendLayout();
|
||||||
//
|
this.SuspendLayout();
|
||||||
// panel1
|
//
|
||||||
//
|
// panel1
|
||||||
this.panel1.BackColor = System.Drawing.Color.White;
|
//
|
||||||
this.panel1.Controls.Add(this.panel3);
|
this.panel1.BackColor = System.Drawing.Color.White;
|
||||||
this.panel1.Controls.Add(this.panel2);
|
this.panel1.Controls.Add(this.panel3);
|
||||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.panel1.Controls.Add(this.panel2);
|
||||||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.panel1.Name = "panel1";
|
this.panel1.Location = new System.Drawing.Point(0, 0);
|
||||||
this.panel1.Size = new System.Drawing.Size(792, 461);
|
this.panel1.Name = "panel1";
|
||||||
this.panel1.TabIndex = 2;
|
this.panel1.Size = new System.Drawing.Size(792, 461);
|
||||||
//
|
this.panel1.TabIndex = 2;
|
||||||
// panel3
|
//
|
||||||
//
|
// panel3
|
||||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
|
//
|
||||||
this.panel3.Location = new System.Drawing.Point(0, 28);
|
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.panel3.Name = "panel3";
|
this.panel3.Location = new System.Drawing.Point(0, 28);
|
||||||
this.panel3.Size = new System.Drawing.Size(792, 433);
|
this.panel3.Name = "panel3";
|
||||||
this.panel3.TabIndex = 1;
|
this.panel3.Size = new System.Drawing.Size(792, 433);
|
||||||
this.panel3.Paint += new System.Windows.Forms.PaintEventHandler(this.panel3_Paint);
|
this.panel3.TabIndex = 1;
|
||||||
//
|
this.panel3.Paint += new System.Windows.Forms.PaintEventHandler(this.panel3_Paint);
|
||||||
// panel2
|
//
|
||||||
//
|
// panel2
|
||||||
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(244)))), ((int)(((byte)(244)))));
|
//
|
||||||
this.panel2.Controls.Add(this.lblName);
|
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(244)))), ((int)(((byte)(244)))));
|
||||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
|
this.panel2.Controls.Add(this.lblName);
|
||||||
this.panel2.Location = new System.Drawing.Point(0, 0);
|
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
this.panel2.Name = "panel2";
|
this.panel2.Location = new System.Drawing.Point(0, 0);
|
||||||
this.panel2.Size = new System.Drawing.Size(792, 28);
|
this.panel2.Name = "panel2";
|
||||||
this.panel2.TabIndex = 0;
|
this.panel2.Size = new System.Drawing.Size(792, 28);
|
||||||
//
|
this.panel2.TabIndex = 0;
|
||||||
// lblName
|
//
|
||||||
//
|
// lblName
|
||||||
this.lblName.AutoSize = true;
|
//
|
||||||
this.lblName.Location = new System.Drawing.Point(5, 6);
|
this.lblName.AutoSize = true;
|
||||||
this.lblName.Name = "lblName";
|
this.lblName.Location = new System.Drawing.Point(5, 6);
|
||||||
this.lblName.Size = new System.Drawing.Size(57, 17);
|
this.lblName.Name = "lblName";
|
||||||
this.lblName.TabIndex = 0;
|
this.lblName.Size = new System.Drawing.Size(57, 17);
|
||||||
this.lblName.Text = "lblName";
|
this.lblName.TabIndex = 0;
|
||||||
//
|
this.lblName.Text = "lblName";
|
||||||
// splitContainer1
|
//
|
||||||
//
|
// splitContainer1
|
||||||
this.splitContainer1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
//
|
||||||
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.splitContainer1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||||
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
|
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||||
this.splitContainer1.Name = "splitContainer1";
|
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
|
||||||
//
|
this.splitContainer1.Name = "splitContainer1";
|
||||||
// splitContainer1.Panel1
|
//
|
||||||
//
|
// splitContainer1.Panel1
|
||||||
this.splitContainer1.Panel1.Controls.Add(this.tv);
|
//
|
||||||
//
|
this.splitContainer1.Panel1.Controls.Add(this.tv);
|
||||||
// splitContainer1.Panel2
|
//
|
||||||
//
|
// splitContainer1.Panel2
|
||||||
this.splitContainer1.Panel2.Controls.Add(this.panel1);
|
//
|
||||||
this.splitContainer1.Size = new System.Drawing.Size(933, 461);
|
this.splitContainer1.Panel2.Controls.Add(this.panel1);
|
||||||
this.splitContainer1.SplitterDistance = 140;
|
this.splitContainer1.Size = new System.Drawing.Size(933, 461);
|
||||||
this.splitContainer1.SplitterWidth = 1;
|
this.splitContainer1.SplitterDistance = 140;
|
||||||
this.splitContainer1.TabIndex = 3;
|
this.splitContainer1.SplitterWidth = 1;
|
||||||
//
|
this.splitContainer1.TabIndex = 3;
|
||||||
// tv
|
//
|
||||||
//
|
// tv
|
||||||
this.tv.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251)))));
|
//
|
||||||
this.tv.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
this.tv.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(251)))), ((int)(((byte)(251)))), ((int)(((byte)(251)))));
|
||||||
this.tv.ChildNodeSelectedBgColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
this.tv.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||||
this.tv.Cursor = System.Windows.Forms.Cursors.Hand;
|
this.tv.ChildNodeSelectedBgColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||||
this.tv.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.tv.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
this.tv.DrawMode = System.Windows.Forms.TreeViewDrawMode.OwnerDrawAll;
|
this.tv.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
this.tv.ExpandButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
this.tv.DrawMode = System.Windows.Forms.TreeViewDrawMode.OwnerDrawAll;
|
||||||
this.tv.FullRowSelect = true;
|
this.tv.ExpandButtonColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
|
||||||
this.tv.GroupBgColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
|
this.tv.FullRowSelect = true;
|
||||||
this.tv.GroupFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.tv.GroupBgColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249)))));
|
||||||
this.tv.GroupTitleColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
|
this.tv.GroupFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.tv.HideCollapsedGroup = false;
|
this.tv.GroupTitleColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
|
||||||
this.tv.ItemHeight = 32;
|
this.tv.HideCollapsedGroup = false;
|
||||||
this.tv.Location = new System.Drawing.Point(0, 0);
|
this.tv.ItemHeight = 32;
|
||||||
this.tv.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
this.tv.Location = new System.Drawing.Point(0, 0);
|
||||||
this.tv.Name = "tv";
|
this.tv.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||||
treeNode1.Name = "店铺列表";
|
this.tv.Name = "tv";
|
||||||
treeNode1.Text = "店铺列表";
|
treeNode1.Name = "店铺列表";
|
||||||
treeNode2.Name = "子账号管理";
|
treeNode1.Text = "店铺列表";
|
||||||
treeNode2.Text = "子账号管理";
|
treeNode2.Name = "子账号管理";
|
||||||
treeNode3.Name = "OEM账号管理";
|
treeNode2.Text = "子账号管理";
|
||||||
treeNode3.Text = "OEM账号管理";
|
treeNode3.Name = "OEM账号管理";
|
||||||
treeNode4.Name = "OEM返现明细";
|
treeNode3.Text = "OEM账号管理";
|
||||||
treeNode4.Text = "OEM返现明细";
|
treeNode4.Name = "运费流水明细";
|
||||||
treeNode5.Name = "OEM积分明细";
|
treeNode4.Text = "运费流水明细";
|
||||||
treeNode5.Text = "OEM积分明细";
|
treeNode5.Name = "积分流水明细";
|
||||||
treeNode6.Name = "店铺地址管理";
|
treeNode5.Text = "积分流水明细";
|
||||||
treeNode6.Text = "店铺地址管理";
|
treeNode6.Name = "OEM提现管理";
|
||||||
treeNode7.Name = "店铺经营统计";
|
treeNode6.Text = "OEM提现管理";
|
||||||
treeNode7.Text = "店铺经营统计";
|
treeNode7.Name = "店铺地址管理";
|
||||||
treeNode8.Name = "评分考核";
|
treeNode7.Text = "店铺地址管理";
|
||||||
treeNode8.Text = "评分考核";
|
treeNode8.Name = "店铺经营统计";
|
||||||
treeNode9.Name = "税务申报";
|
treeNode8.Text = "店铺经营统计";
|
||||||
treeNode9.Text = "税务申报";
|
treeNode9.Name = "评分考核";
|
||||||
treeNode10.Name = "积分充值";
|
treeNode9.Text = "评分考核";
|
||||||
treeNode10.Text = "积分充值";
|
treeNode10.Name = "税务申报";
|
||||||
treeNode11.Name = "OEM提现管理";
|
treeNode10.Text = "税务申报";
|
||||||
treeNode11.Text = "OEM提现管理";
|
treeNode11.Name = "积分充值";
|
||||||
treeNode12.Name = "店铺管理";
|
treeNode11.Text = "积分充值";
|
||||||
treeNode12.Text = "店铺管理";
|
treeNode12.Name = "OEM返利明细";
|
||||||
this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
treeNode12.Text = "OEM返利明细";
|
||||||
treeNode12});
|
treeNode13.Name = "店铺管理";
|
||||||
this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
|
treeNode13.Text = "店铺管理";
|
||||||
this.tv.Size = new System.Drawing.Size(140, 461);
|
this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
||||||
this.tv.TabIndex = 1;
|
treeNode13});
|
||||||
this.tv.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tv_AfterSelect);
|
this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
|
||||||
//
|
this.tv.Size = new System.Drawing.Size(140, 461);
|
||||||
// WXShopForm
|
this.tv.TabIndex = 1;
|
||||||
//
|
this.tv.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tv_AfterSelect);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
//
|
||||||
this.ClientSize = new System.Drawing.Size(933, 461);
|
// WXShopForm
|
||||||
this.Controls.Add(this.splitContainer1);
|
//
|
||||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||||
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
this.ClientSize = new System.Drawing.Size(933, 461);
|
||||||
this.Name = "WXShopForm";
|
this.Controls.Add(this.splitContainer1);
|
||||||
this.Text = "ShopForm";
|
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.Load += new System.EventHandler(this.ShopForm_Load);
|
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||||
this.panel1.ResumeLayout(false);
|
this.Name = "WXShopForm";
|
||||||
this.panel2.ResumeLayout(false);
|
this.Text = "ShopForm";
|
||||||
this.panel2.PerformLayout();
|
this.Load += new System.EventHandler(this.ShopForm_Load);
|
||||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
this.panel1.ResumeLayout(false);
|
||||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
this.panel2.ResumeLayout(false);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
this.panel2.PerformLayout();
|
||||||
this.splitContainer1.ResumeLayout(false);
|
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||||
this.ResumeLayout(false);
|
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
||||||
|
this.splitContainer1.ResumeLayout(false);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
public Lazy<WXOemAccountBalanceForm> oemAccountBalanceForm = new Lazy<WXOemAccountBalanceForm>();
|
public Lazy<WXOemAccountBalanceForm> oemAccountBalanceForm = new Lazy<WXOemAccountBalanceForm>();
|
||||||
public Lazy<WXOemPointsTopUpListForm> oemAccountPointsForm = new Lazy<WXOemPointsTopUpListForm>();
|
public Lazy<WXOemPointsTopUpListForm> oemAccountPointsForm = new Lazy<WXOemPointsTopUpListForm>();
|
||||||
public Lazy<WXShopOemWithdrawalForm> oemWithdrawalForm = new Lazy<WXShopOemWithdrawalForm>();
|
public Lazy<WXShopOemWithdrawalForm> oemWithdrawalForm = new Lazy<WXShopOemWithdrawalForm>();
|
||||||
|
public Lazy<WXShopOemRebateRecordsForm> oemRebateRecordsForm = new Lazy<WXShopOemRebateRecordsForm>();
|
||||||
|
|
||||||
|
|
||||||
public WXShopForm()
|
public WXShopForm()
|
||||||
@@ -61,7 +62,7 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
|
|
||||||
public List<string> getHideTreeNodes()
|
public List<string> getHideTreeNodes()
|
||||||
{
|
{
|
||||||
List<string> hideNames = new List<string>() { "积分充值", "OEM账号管理", "OEM返现明细", "OEM积分明细", "OEM提现管理", "店铺地址管理", "评分考核", "子账号管理", "高级运费模板", "运费模板", "素材库管理", "订单金额统计", "工作明细统计", "店铺经营统计1" };
|
List<string> hideNames = new List<string>() { "积分充值", "OEM账号管理", "运费流水明细", "积分流水明细", "OEM提现管理", "OEM返利明细", "店铺地址管理", "评分考核", "子账号管理", "高级运费模板", "运费模板", "素材库管理", "订单金额统计", "工作明细统计", "店铺经营统计1" };
|
||||||
|
|
||||||
if (BaseClass.SaLevel == 1)
|
if (BaseClass.SaLevel == 1)
|
||||||
{
|
{
|
||||||
@@ -76,17 +77,19 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
if (BaseClass.UserAuthority.Contains("评分考核"))
|
if (BaseClass.UserAuthority.Contains("评分考核"))
|
||||||
{
|
{
|
||||||
hideNames.Remove("评分考核");
|
hideNames.Remove("评分考核");
|
||||||
}
|
}
|
||||||
if (BaseClass.UserAuthority.Contains("充值用户") && BaseClass.GroupId == 3 && BaseClass.AgentCode.IsNullOrEmpty() && BaseClass.OemId.IsNullOrEmpty())
|
//if (BaseClass.UserAuthority.Contains("充值用户") && BaseClass.GroupId == 3 && BaseClass.AgentCode.IsNullOrEmpty() && BaseClass.OemId.IsNullOrEmpty())
|
||||||
{
|
if (BaseClass.UserAuthority.Contains("充值用户") && BaseClass.GroupId == 3)
|
||||||
//hideNames.Remove("积分充值");
|
{
|
||||||
|
hideNames.Remove("积分充值");
|
||||||
}
|
}
|
||||||
if (!BaseClass.OemId.IsNullOrEmpty() && BaseClass.IsOemOwner)
|
if (!BaseClass.OemId.IsNullOrEmpty() && BaseClass.IsOemOwner)
|
||||||
{
|
{
|
||||||
hideNames.Remove("OEM账号管理");
|
hideNames.Remove("OEM账号管理");
|
||||||
hideNames.Remove("OEM返现明细");
|
hideNames.Remove("运费流水明细");
|
||||||
hideNames.Remove("OEM积分明细");
|
hideNames.Remove("积分流水明细");
|
||||||
hideNames.Remove("OEM提现管理");
|
hideNames.Remove("OEM提现管理");
|
||||||
|
hideNames.Remove("OEM返利明细");
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var forbiddenPage in BaseClass.ForbiddenPage.Split(','))
|
foreach (var forbiddenPage in BaseClass.ForbiddenPage.Split(','))
|
||||||
@@ -141,15 +144,18 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
case "OEM账号管理":
|
case "OEM账号管理":
|
||||||
SetForm(oemAccountForm.Value);
|
SetForm(oemAccountForm.Value);
|
||||||
break;
|
break;
|
||||||
case "OEM返现明细":
|
case "运费流水明细":
|
||||||
SetForm(oemAccountBalanceForm.Value);
|
SetForm(oemAccountBalanceForm.Value);
|
||||||
break;
|
break;
|
||||||
case "OEM积分明细":
|
case "积分流水明细":
|
||||||
SetForm(oemAccountPointsForm.Value);
|
SetForm(oemAccountPointsForm.Value);
|
||||||
break;
|
break;
|
||||||
case "OEM提现管理":
|
case "OEM提现管理":
|
||||||
SetForm(oemWithdrawalForm.Value);
|
SetForm(oemWithdrawalForm.Value);
|
||||||
break;
|
break;
|
||||||
|
case "OEM返利明细":
|
||||||
|
SetForm(oemRebateRecordsForm.Value);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}).Start();
|
}).Start();
|
||||||
|
|||||||
+1075
-1064
File diff suppressed because it is too large.
Load diff
+1300
-1284
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,368 @@
|
|||||||
|
namespace TemuKJD.WXForms.ShopForms
|
||||||
|
{
|
||||||
|
partial class WXShopOemRebateRecordsForm
|
||||||
|
{
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||||
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||||
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WXShopOemRebateRecordsForm));
|
||||||
|
this.panel1 = new System.Windows.Forms.Panel();
|
||||||
|
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||||
|
this.ucGroupBoxFilter = new TemuKJD.UserComponent.UcGroupBoxEx(this.components);
|
||||||
|
this.btnSearch = new DevComponents.DotNetBar.PanelEx();
|
||||||
|
this.dtpEndTime = new System.Windows.Forms.DateTimePicker();
|
||||||
|
this.lblTo = new System.Windows.Forms.Label();
|
||||||
|
this.dtpStartTime = new System.Windows.Forms.DateTimePicker();
|
||||||
|
this.lblDateRange = new System.Windows.Forms.Label();
|
||||||
|
this.cmbType = new System.Windows.Forms.ComboBox();
|
||||||
|
this.lblType = new System.Windows.Forms.Label();
|
||||||
|
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||||
|
this.pbLoading = new System.Windows.Forms.PictureBox();
|
||||||
|
this.dgvRebateRecords = new TemuKJD.UserComponent.DataGridViewEx();
|
||||||
|
this.colUserName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
|
this.colAmount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
|
this.colRebate = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
|
this.colCreateTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
|
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
||||||
|
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||||
|
this.panel1.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||||
|
this.splitContainer1.Panel1.SuspendLayout();
|
||||||
|
this.splitContainer1.Panel2.SuspendLayout();
|
||||||
|
this.splitContainer1.SuspendLayout();
|
||||||
|
this.ucGroupBoxFilter.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
|
||||||
|
this.splitContainer2.Panel1.SuspendLayout();
|
||||||
|
this.splitContainer2.Panel2.SuspendLayout();
|
||||||
|
this.splitContainer2.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dgvRebateRecords)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// panel1
|
||||||
|
//
|
||||||
|
this.panel1.BackColor = System.Drawing.Color.White;
|
||||||
|
this.panel1.Controls.Add(this.splitContainer1);
|
||||||
|
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.panel1.Location = new System.Drawing.Point(1, 33);
|
||||||
|
this.panel1.Name = "panel1";
|
||||||
|
this.panel1.Size = new System.Drawing.Size(1222, 586);
|
||||||
|
this.panel1.TabIndex = 0;
|
||||||
|
//
|
||||||
|
// splitContainer1
|
||||||
|
//
|
||||||
|
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||||
|
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.splitContainer1.Name = "splitContainer1";
|
||||||
|
this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||||
|
//
|
||||||
|
// splitContainer1.Panel1
|
||||||
|
//
|
||||||
|
this.splitContainer1.Panel1.Controls.Add(this.ucGroupBoxFilter);
|
||||||
|
this.splitContainer1.Panel1.Padding = new System.Windows.Forms.Padding(2);
|
||||||
|
//
|
||||||
|
// splitContainer1.Panel2
|
||||||
|
//
|
||||||
|
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
|
||||||
|
this.splitContainer1.Size = new System.Drawing.Size(1222, 586);
|
||||||
|
this.splitContainer1.SplitterDistance = 75;
|
||||||
|
this.splitContainer1.TabIndex = 0;
|
||||||
|
//
|
||||||
|
// ucGroupBoxFilter
|
||||||
|
//
|
||||||
|
this.ucGroupBoxFilter.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||||
|
this.ucGroupBoxFilter.BorderStyle = TemuKJD.UserComponent.UcGroupBoxEx.GroupBoxBorderStyle.ROUND;
|
||||||
|
this.ucGroupBoxFilter.Controls.Add(this.btnSearch);
|
||||||
|
this.ucGroupBoxFilter.Controls.Add(this.dtpEndTime);
|
||||||
|
this.ucGroupBoxFilter.Controls.Add(this.lblTo);
|
||||||
|
this.ucGroupBoxFilter.Controls.Add(this.dtpStartTime);
|
||||||
|
this.ucGroupBoxFilter.Controls.Add(this.lblDateRange);
|
||||||
|
this.ucGroupBoxFilter.Controls.Add(this.cmbType);
|
||||||
|
this.ucGroupBoxFilter.Controls.Add(this.lblType);
|
||||||
|
this.ucGroupBoxFilter.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.ucGroupBoxFilter.Location = new System.Drawing.Point(2, 2);
|
||||||
|
this.ucGroupBoxFilter.Name = "ucGroupBoxFilter";
|
||||||
|
this.ucGroupBoxFilter.Size = new System.Drawing.Size(1218, 71);
|
||||||
|
this.ucGroupBoxFilter.TabIndex = 0;
|
||||||
|
this.ucGroupBoxFilter.TabStop = false;
|
||||||
|
this.ucGroupBoxFilter.Text = "查询条件";
|
||||||
|
//
|
||||||
|
// btnSearch
|
||||||
|
//
|
||||||
|
this.btnSearch.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||||
|
this.btnSearch.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
|
this.btnSearch.DisabledBackColor = System.Drawing.Color.Empty;
|
||||||
|
this.btnSearch.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.btnSearch.Location = new System.Drawing.Point(677, 26);
|
||||||
|
this.btnSearch.Name = "btnSearch";
|
||||||
|
this.btnSearch.Size = new System.Drawing.Size(68, 25);
|
||||||
|
this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||||
|
this.btnSearch.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||||
|
this.btnSearch.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||||
|
this.btnSearch.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||||
|
this.btnSearch.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||||
|
this.btnSearch.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||||
|
this.btnSearch.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||||
|
this.btnSearch.Style.GradientAngle = 90;
|
||||||
|
this.btnSearch.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||||
|
this.btnSearch.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||||
|
this.btnSearch.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||||
|
this.btnSearch.TabIndex = 5;
|
||||||
|
this.btnSearch.Text = "查询";
|
||||||
|
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
|
||||||
|
//
|
||||||
|
// dtpEndTime
|
||||||
|
//
|
||||||
|
this.dtpEndTime.CustomFormat = "yyyy-MM-dd";
|
||||||
|
this.dtpEndTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||||
|
this.dtpEndTime.Location = new System.Drawing.Point(492, 26);
|
||||||
|
this.dtpEndTime.Name = "dtpEndTime";
|
||||||
|
this.dtpEndTime.ShowCheckBox = true;
|
||||||
|
this.dtpEndTime.Size = new System.Drawing.Size(145, 23);
|
||||||
|
this.dtpEndTime.TabIndex = 4;
|
||||||
|
//
|
||||||
|
// lblTo
|
||||||
|
//
|
||||||
|
this.lblTo.AutoSize = true;
|
||||||
|
this.lblTo.Location = new System.Drawing.Point(466, 30);
|
||||||
|
this.lblTo.Name = "lblTo";
|
||||||
|
this.lblTo.Size = new System.Drawing.Size(20, 17);
|
||||||
|
this.lblTo.TabIndex = 3;
|
||||||
|
this.lblTo.Text = "至";
|
||||||
|
//
|
||||||
|
// dtpStartTime
|
||||||
|
//
|
||||||
|
this.dtpStartTime.CustomFormat = "yyyy-MM-dd";
|
||||||
|
this.dtpStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
|
||||||
|
this.dtpStartTime.Location = new System.Drawing.Point(312, 26);
|
||||||
|
this.dtpStartTime.Name = "dtpStartTime";
|
||||||
|
this.dtpStartTime.ShowCheckBox = true;
|
||||||
|
this.dtpStartTime.Size = new System.Drawing.Size(145, 23);
|
||||||
|
this.dtpStartTime.TabIndex = 2;
|
||||||
|
//
|
||||||
|
// lblDateRange
|
||||||
|
//
|
||||||
|
this.lblDateRange.AutoSize = true;
|
||||||
|
this.lblDateRange.Location = new System.Drawing.Point(240, 30);
|
||||||
|
this.lblDateRange.Name = "lblDateRange";
|
||||||
|
this.lblDateRange.Size = new System.Drawing.Size(68, 17);
|
||||||
|
this.lblDateRange.TabIndex = 1;
|
||||||
|
this.lblDateRange.Text = "日期范围:";
|
||||||
|
//
|
||||||
|
// cmbType
|
||||||
|
//
|
||||||
|
this.cmbType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
|
this.cmbType.FormattingEnabled = true;
|
||||||
|
this.cmbType.Items.AddRange(new object[] {
|
||||||
|
"运费",
|
||||||
|
"续费"});
|
||||||
|
this.cmbType.Location = new System.Drawing.Point(83, 26);
|
||||||
|
this.cmbType.Name = "cmbType";
|
||||||
|
this.cmbType.Size = new System.Drawing.Size(120, 25);
|
||||||
|
this.cmbType.TabIndex = 0;
|
||||||
|
//
|
||||||
|
// lblType
|
||||||
|
//
|
||||||
|
this.lblType.AutoSize = true;
|
||||||
|
this.lblType.Location = new System.Drawing.Point(35, 30);
|
||||||
|
this.lblType.Name = "lblType";
|
||||||
|
this.lblType.Size = new System.Drawing.Size(44, 17);
|
||||||
|
this.lblType.TabIndex = 0;
|
||||||
|
this.lblType.Text = "类型:";
|
||||||
|
//
|
||||||
|
// splitContainer2
|
||||||
|
//
|
||||||
|
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
|
||||||
|
this.splitContainer2.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.splitContainer2.Name = "splitContainer2";
|
||||||
|
this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
|
||||||
|
//
|
||||||
|
// splitContainer2.Panel1
|
||||||
|
//
|
||||||
|
this.splitContainer2.Panel1.Controls.Add(this.pbLoading);
|
||||||
|
this.splitContainer2.Panel1.Controls.Add(this.dgvRebateRecords);
|
||||||
|
this.splitContainer2.Panel1.Padding = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||||
|
//
|
||||||
|
// splitContainer2.Panel2
|
||||||
|
//
|
||||||
|
this.splitContainer2.Panel2.Controls.Add(this.ucSplitPage1);
|
||||||
|
this.splitContainer2.Panel2.Controls.Add(this.statusBar);
|
||||||
|
this.splitContainer2.Size = new System.Drawing.Size(1222, 507);
|
||||||
|
this.splitContainer2.SplitterDistance = 478;
|
||||||
|
this.splitContainer2.TabIndex = 0;
|
||||||
|
//
|
||||||
|
// pbLoading
|
||||||
|
//
|
||||||
|
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||||
|
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
|
||||||
|
this.pbLoading.Location = new System.Drawing.Point(586, 214);
|
||||||
|
this.pbLoading.Name = "pbLoading";
|
||||||
|
this.pbLoading.Size = new System.Drawing.Size(50, 50);
|
||||||
|
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||||
|
this.pbLoading.TabIndex = 1;
|
||||||
|
this.pbLoading.TabStop = false;
|
||||||
|
this.pbLoading.Visible = false;
|
||||||
|
//
|
||||||
|
// dgvRebateRecords
|
||||||
|
//
|
||||||
|
this.dgvRebateRecords.AllowUserToAddRows = false;
|
||||||
|
this.dgvRebateRecords.AllowUserToDeleteRows = false;
|
||||||
|
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||||
|
this.dgvRebateRecords.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||||
|
this.dgvRebateRecords.AutoRowNumber = true;
|
||||||
|
this.dgvRebateRecords.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||||
|
this.dgvRebateRecords.BackgroundColor = System.Drawing.Color.White;
|
||||||
|
this.dgvRebateRecords.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||||
|
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||||
|
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
|
||||||
|
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||||
|
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||||
|
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||||
|
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||||
|
this.dgvRebateRecords.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
||||||
|
this.dgvRebateRecords.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
|
this.dgvRebateRecords.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||||
|
this.colUserName,
|
||||||
|
this.colAmount,
|
||||||
|
this.colRebate,
|
||||||
|
this.colCreateTime});
|
||||||
|
this.dgvRebateRecords.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.dgvRebateRecords.Location = new System.Drawing.Point(4, 0);
|
||||||
|
this.dgvRebateRecords.MultiSelectCheckBox = false;
|
||||||
|
this.dgvRebateRecords.Name = "dgvRebateRecords";
|
||||||
|
this.dgvRebateRecords.ReadOnly = true;
|
||||||
|
this.dgvRebateRecords.RowTemplate.Height = 28;
|
||||||
|
this.dgvRebateRecords.ShowCellErrors = false;
|
||||||
|
this.dgvRebateRecords.Size = new System.Drawing.Size(1214, 478);
|
||||||
|
this.dgvRebateRecords.TabIndex = 0;
|
||||||
|
//
|
||||||
|
// colUserName
|
||||||
|
//
|
||||||
|
this.colUserName.FillWeight = 30F;
|
||||||
|
this.colUserName.HeaderText = "用户账号";
|
||||||
|
this.colUserName.Name = "colUserName";
|
||||||
|
this.colUserName.ReadOnly = true;
|
||||||
|
//
|
||||||
|
// colAmount
|
||||||
|
//
|
||||||
|
this.colAmount.FillWeight = 24F;
|
||||||
|
this.colAmount.HeaderText = "订单金额(元)";
|
||||||
|
this.colAmount.Name = "colAmount";
|
||||||
|
this.colAmount.ReadOnly = true;
|
||||||
|
//
|
||||||
|
// colRebate
|
||||||
|
//
|
||||||
|
dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(140)))), ((int)(((byte)(0)))));
|
||||||
|
this.colRebate.DefaultCellStyle = dataGridViewCellStyle3;
|
||||||
|
this.colRebate.FillWeight = 24F;
|
||||||
|
this.colRebate.HeaderText = "返利金额(元)";
|
||||||
|
this.colRebate.Name = "colRebate";
|
||||||
|
this.colRebate.ReadOnly = true;
|
||||||
|
//
|
||||||
|
// colCreateTime
|
||||||
|
//
|
||||||
|
this.colCreateTime.FillWeight = 32F;
|
||||||
|
this.colCreateTime.HeaderText = "创建时间";
|
||||||
|
this.colCreateTime.Name = "colCreateTime";
|
||||||
|
this.colCreateTime.ReadOnly = true;
|
||||||
|
//
|
||||||
|
// ucSplitPage1
|
||||||
|
//
|
||||||
|
this.ucSplitPage1.CurrentPage = 1;
|
||||||
|
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||||
|
this.ucSplitPage1.IsShowPageSize = true;
|
||||||
|
this.ucSplitPage1.IsShowTotalCount = false;
|
||||||
|
this.ucSplitPage1.Location = new System.Drawing.Point(833, 0);
|
||||||
|
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.ucSplitPage1.MaxPageSizeValue = 5000;
|
||||||
|
this.ucSplitPage1.Name = "ucSplitPage1";
|
||||||
|
this.ucSplitPage1.PageSize = 200;
|
||||||
|
this.ucSplitPage1.Size = new System.Drawing.Size(389, 25);
|
||||||
|
this.ucSplitPage1.TabIndex = 1;
|
||||||
|
this.ucSplitPage1.TotalCount = ((long)(0));
|
||||||
|
this.ucSplitPage1.TotalPage = 1;
|
||||||
|
this.ucSplitPage1.PageChange += new System.Action<object>(this.ucSplitPage1_PageChange);
|
||||||
|
//
|
||||||
|
// statusBar
|
||||||
|
//
|
||||||
|
this.statusBar.BackColor = System.Drawing.Color.White;
|
||||||
|
this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.statusBar.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.statusBar.Name = "statusBar";
|
||||||
|
this.statusBar.Size = new System.Drawing.Size(1222, 25);
|
||||||
|
this.statusBar.TabIndex = 0;
|
||||||
|
//
|
||||||
|
// WXShopOemRebateRecordsForm
|
||||||
|
//
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||||
|
this.ClientSize = new System.Drawing.Size(1224, 620);
|
||||||
|
this.Controls.Add(this.panel1);
|
||||||
|
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.KeyPreview = true;
|
||||||
|
this.Name = "WXShopOemRebateRecordsForm";
|
||||||
|
this.Text = "OEM返利明细";
|
||||||
|
this.TitleText = "OEM返利明细";
|
||||||
|
this.VisibleChanged += new System.EventHandler(this.WXShopOemRebateRecordsForm_VisibleChanged);
|
||||||
|
this.Controls.SetChildIndex(this.panel1, 0);
|
||||||
|
this.panel1.ResumeLayout(false);
|
||||||
|
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||||
|
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
||||||
|
this.splitContainer1.ResumeLayout(false);
|
||||||
|
this.ucGroupBoxFilter.ResumeLayout(false);
|
||||||
|
this.ucGroupBoxFilter.PerformLayout();
|
||||||
|
this.splitContainer2.Panel1.ResumeLayout(false);
|
||||||
|
this.splitContainer2.Panel2.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
|
||||||
|
this.splitContainer2.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pbLoading)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dgvRebateRecords)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Panel panel1;
|
||||||
|
private System.Windows.Forms.SplitContainer splitContainer1;
|
||||||
|
private TemuKJD.UserComponent.UcGroupBoxEx ucGroupBoxFilter;
|
||||||
|
private System.Windows.Forms.Label lblType;
|
||||||
|
private System.Windows.Forms.ComboBox cmbType;
|
||||||
|
private System.Windows.Forms.Label lblDateRange;
|
||||||
|
private System.Windows.Forms.DateTimePicker dtpStartTime;
|
||||||
|
private System.Windows.Forms.Label lblTo;
|
||||||
|
private System.Windows.Forms.DateTimePicker dtpEndTime;
|
||||||
|
private DevComponents.DotNetBar.PanelEx btnSearch;
|
||||||
|
private System.Windows.Forms.SplitContainer splitContainer2;
|
||||||
|
private TemuKJD.UserComponent.DataGridViewEx dgvRebateRecords;
|
||||||
|
private System.Windows.Forms.PictureBox pbLoading;
|
||||||
|
private TemuKJD.UserControls.UcSplitPage ucSplitPage1;
|
||||||
|
private TemuKJD.UserControls.StatusBarUserControl statusBar;
|
||||||
|
private System.Windows.Forms.DataGridViewTextBoxColumn colUserName;
|
||||||
|
private System.Windows.Forms.DataGridViewTextBoxColumn colAmount;
|
||||||
|
private System.Windows.Forms.DataGridViewTextBoxColumn colRebate;
|
||||||
|
private System.Windows.Forms.DataGridViewTextBoxColumn colCreateTime;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,207 @@
|
|||||||
|
using AllBase;
|
||||||
|
using AllBase.Model.Result;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using TemuKJD.BaseForms;
|
||||||
|
using Work;
|
||||||
|
|
||||||
|
namespace TemuKJD.WXForms.ShopForms
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// OEM返利明细。
|
||||||
|
/// 支持按类型(运费、续费)和日期范围查询返利记录。
|
||||||
|
/// </summary>
|
||||||
|
public partial class WXShopOemRebateRecordsForm : BaseGeneralForm
|
||||||
|
{
|
||||||
|
private readonly BindingList<RebateRecordResponse> dataList = new BindingList<RebateRecordResponse>();
|
||||||
|
private bool first = true;
|
||||||
|
private bool loading;
|
||||||
|
|
||||||
|
public WXShopOemRebateRecordsForm()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
InitBindingDataGridView();
|
||||||
|
this.cmbType.SelectedIndex = 0;
|
||||||
|
|
||||||
|
this.dtpStartTime.Value = DateTime.Now.Date.AddMonths(-3);
|
||||||
|
this.dtpEndTime.Value = DateTime.Now.Date;
|
||||||
|
}
|
||||||
|
|
||||||
|
#region 列表绑定
|
||||||
|
private void InitBindingDataGridView()
|
||||||
|
{
|
||||||
|
this.dgvRebateRecords.AutoGenerateColumns = false;
|
||||||
|
|
||||||
|
this.colUserName.DataPropertyName = nameof(RebateRecordResponse.UserName);
|
||||||
|
this.colAmount.DataPropertyName = nameof(RebateRecordResponse.Amount);
|
||||||
|
this.colRebate.DataPropertyName = nameof(RebateRecordResponse.Rebate);
|
||||||
|
this.colCreateTime.DataPropertyName = nameof(RebateRecordResponse.CreateTime);
|
||||||
|
|
||||||
|
this.colCreateTime.DefaultCellStyle.Format = "yyyy-MM-dd HH:mm:ss";
|
||||||
|
this.colAmount.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight;
|
||||||
|
this.colRebate.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight;
|
||||||
|
this.dgvRebateRecords.CellFormatting += DgvRebateRecords_CellFormatting;
|
||||||
|
this.dgvRebateRecords.DataSource = dataList;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void DgvRebateRecords_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Value == null || e.Value == DBNull.Value)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (e.ColumnIndex != this.colAmount.Index && e.ColumnIndex != this.colRebate.Index)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (long.TryParse(e.Value.ToString(), out long amountInFen))
|
||||||
|
{
|
||||||
|
e.Value = (amountInFen / 100m).ToString("F2");
|
||||||
|
e.FormattingApplied = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 数据加载
|
||||||
|
private void WXShopOemRebateRecordsForm_VisibleChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
//if (this.Visible && first)
|
||||||
|
//{
|
||||||
|
// first = false;
|
||||||
|
// GetRebateRecords(1);
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
|
||||||
|
private async Task GetRebateRecords(int page)
|
||||||
|
{
|
||||||
|
if (loading)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (this.dtpStartTime.Checked && this.dtpEndTime.Checked && this.dtpStartTime.Value.Date > this.dtpEndTime.Value.Date)
|
||||||
|
{
|
||||||
|
BaseMsgForm.ShowError("开始日期不能大于结束日期!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
int type = GetRebateType(this.cmbType.Text);
|
||||||
|
int pageSize = this.ucSplitPage1.PageSize;
|
||||||
|
string startTime = this.dtpStartTime.Checked
|
||||||
|
? this.dtpStartTime.Value.ToString("yyyy-MM-dd 00:00:00")
|
||||||
|
: null;
|
||||||
|
string endTime = this.dtpEndTime.Checked
|
||||||
|
? this.dtpEndTime.Value.ToString("yyyy-MM-dd 23:59:59")
|
||||||
|
: null;
|
||||||
|
|
||||||
|
this.loading = true;
|
||||||
|
this.btnSearch.Enabled = false;
|
||||||
|
this.ucSplitPage1.Enabled = false;
|
||||||
|
this.pbLoading.Visible = true;
|
||||||
|
this.dgvRebateRecords.Rows.Clear();
|
||||||
|
this.dataList.Clear();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var ret = await RequestRebateRecords(type, page, pageSize, startTime, endTime);
|
||||||
|
if (ret == null)
|
||||||
|
throw new Exception("接口未返回数据");
|
||||||
|
|
||||||
|
|
||||||
|
List<RebateRecordResponse> list = ret?.List ?? new List<RebateRecordResponse>();
|
||||||
|
int pageCount = Math.Max((int)Math.Ceiling((double)ret.Total / Math.Max(pageSize, 1)), 1);
|
||||||
|
|
||||||
|
this.ucSplitPage1.TotalPage = pageCount;
|
||||||
|
list.ForEach(item => this.dataList.Add(item));
|
||||||
|
this.statusBar.lblTaskStatus.Text = "返利明细查询完毕";
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
this.statusBar.lblTaskStatus.Text = "返利明细查询失败";
|
||||||
|
BaseMsgForm.ShowError("返利明细获取失败:" + ex.Message);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
if (!this.IsDisposed)
|
||||||
|
{
|
||||||
|
this.pbLoading.Visible = false;
|
||||||
|
this.btnSearch.Enabled = true;
|
||||||
|
this.ucSplitPage1.Enabled = true;
|
||||||
|
this.loading = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private async Task<PageData<RebateRecordResponse>> RequestRebateRecords(
|
||||||
|
int type,
|
||||||
|
int page,
|
||||||
|
int pageSize,
|
||||||
|
string startTime,
|
||||||
|
string endTime)
|
||||||
|
{
|
||||||
|
var url = BaseClass.BuildObjString("oem/GetRebateRecords");
|
||||||
|
var obj = UserLogin.GetSignPostData(new
|
||||||
|
{
|
||||||
|
Type = type,
|
||||||
|
PageIndex = page,
|
||||||
|
PageSize = pageSize,
|
||||||
|
StartTime = startTime,
|
||||||
|
EndTime = endTime
|
||||||
|
});
|
||||||
|
|
||||||
|
// GetSignPostData 会将 null 转为空字符串,这里恢复为接口约定的 null。
|
||||||
|
var postData = obj as IDictionary<string, object>;
|
||||||
|
if (postData != null)
|
||||||
|
{
|
||||||
|
postData["StartTime"] = startTime;
|
||||||
|
postData["EndTime"] = endTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
string html = await GetHtml.PostJsonAsync(url, obj);
|
||||||
|
if (string.IsNullOrWhiteSpace(html))
|
||||||
|
throw new Exception("接口未返回数据");
|
||||||
|
|
||||||
|
var ret= JsonConvert.DeserializeObject<ApiPageResult<RebateRecordResponse>>(html);
|
||||||
|
if (ret.Code != 200)
|
||||||
|
{
|
||||||
|
throw new Exception("查询失败,请重试!" + ret.Msg);
|
||||||
|
}
|
||||||
|
return ret.Data;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static int GetRebateType(string typeName)
|
||||||
|
{
|
||||||
|
return string.Equals(typeName, "续费", StringComparison.Ordinal) ? 1 : 0;
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 事件
|
||||||
|
private async void btnSearch_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (this.ucSplitPage1.CurrentPage != 1)
|
||||||
|
{
|
||||||
|
this.ucSplitPage1.CurrentPage = 1;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
await GetRebateRecords(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void ucSplitPage1_PageChange(object obj)
|
||||||
|
{
|
||||||
|
await GetRebateRecords(this.ucSplitPage1.CurrentPage);
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// OEM返利记录。
|
||||||
|
/// </summary>
|
||||||
|
public class RebateRecordResponse
|
||||||
|
{
|
||||||
|
public string UserName { get; set; }
|
||||||
|
public long Amount { get; set; }
|
||||||
|
public long Rebate { get; set; }
|
||||||
|
public DateTime CreateTime { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,170 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>
|
||||||
|
AAABAAEAQEAQYAAAAABoCgAAFgAAACgAAABAAAAAgAAAAAEABAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP//
|
||||||
|
AAD///8AAAAAV3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3UAAAAAAHd3d3d3d3d3d3d3d3d3d3d3d3d3
|
||||||
|
d3d3d3d3d3cAAABXd3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3UAAHd3d3d3d3d3d3d3d3d3d3d3
|
||||||
|
d3d3d3d3d3d3d3d3dwAHd3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3cAd3d3d3d4/4d3d3d3d3
|
||||||
|
d3d3d3d3d3d3d3d4/4d3d3dwV3d3d3d/iI/3d3d3d3d3d3d3d3d3d3d3d4+Ij3d3d3V3d3d3d/h3d/h3
|
||||||
|
d3d3d3d3d3d3d3d3d3d493d/93d3d3d4iIiH+Hd3f4iIiIiIiIiIiP///////4j3d3iIiId3d4////93
|
||||||
|
d3d/////////////h3d3d3d4iPd3f3j4/3d3d3d3f4d3d493d3d3d3d3d3d3d3d3d3f3j4j4f3d/h3d3
|
||||||
|
d3d4+Hd3+HeIiIiIiIiIiIiIiIiId/h4/4ePd3iHd3d3d3eP+I+HeP/////////////////4f4d3ePh3
|
||||||
|
f4d3d3d3d3eIh3d3d3d3d3d3d3d3d3d3d493j4j/h3eIh3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3f4d4
|
||||||
|
iId3d3d3d3+I93d3j3j3j///iP+Hf3iHj///h3d/h3d3d3d3f4d3f4f/d3j4d/iIiIj/iId/+P/4iIh3
|
||||||
|
d3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d3d3d3d3d3d3d3d3d3d3d3d3
|
||||||
|
d3d3d3d3d3d1AAAAd3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3dwAAAAAAV3d3d3d3d3d3d3d3d3d3
|
||||||
|
d3d3d3d3d3d3d3UAAAD/gAAAAAAB//gAAAAAAAAf4AAAAAAAAAfAAAAAAAAAA8AAAAAAAAADgAAAAAAA
|
||||||
|
AAGAAAAAAAAAAYAAAAAAAAABgAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAABgAAAAAAAAAGAAAAAAAAAAYAA
|
||||||
|
AAAAAAABwAAAAAAAAAPAAAAAAAAAA+AAAAAAAAAH+AAAAAAAAB//gAAAAAAB/w==
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
||||||
@@ -158,7 +158,7 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
this.btnRefreshBalance.Cursor = System.Windows.Forms.Cursors.Hand;
|
this.btnRefreshBalance.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
this.btnRefreshBalance.DisabledBackColor = System.Drawing.Color.Empty;
|
this.btnRefreshBalance.DisabledBackColor = System.Drawing.Color.Empty;
|
||||||
this.btnRefreshBalance.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.btnRefreshBalance.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.btnRefreshBalance.Location = new System.Drawing.Point(1130, 41);
|
this.btnRefreshBalance.Location = new System.Drawing.Point(702, 42);
|
||||||
this.btnRefreshBalance.Name = "btnRefreshBalance";
|
this.btnRefreshBalance.Name = "btnRefreshBalance";
|
||||||
this.btnRefreshBalance.Size = new System.Drawing.Size(60, 23);
|
this.btnRefreshBalance.Size = new System.Drawing.Size(60, 23);
|
||||||
this.btnRefreshBalance.Style.Alignment = System.Drawing.StringAlignment.Center;
|
this.btnRefreshBalance.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||||
@@ -520,12 +520,15 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
this.ucSplitPage1.CurrentPage = 1;
|
this.ucSplitPage1.CurrentPage = 1;
|
||||||
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
|
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||||
this.ucSplitPage1.IsShowPageSize = true;
|
this.ucSplitPage1.IsShowPageSize = true;
|
||||||
|
this.ucSplitPage1.IsShowTotalCount = false;
|
||||||
this.ucSplitPage1.Location = new System.Drawing.Point(829, 0);
|
this.ucSplitPage1.Location = new System.Drawing.Point(829, 0);
|
||||||
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
|
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.ucSplitPage1.MaxPageSizeValue = 5000;
|
||||||
this.ucSplitPage1.Name = "ucSplitPage1";
|
this.ucSplitPage1.Name = "ucSplitPage1";
|
||||||
this.ucSplitPage1.PageSize = 50;
|
this.ucSplitPage1.PageSize = 50;
|
||||||
this.ucSplitPage1.Size = new System.Drawing.Size(389, 25);
|
this.ucSplitPage1.Size = new System.Drawing.Size(389, 25);
|
||||||
this.ucSplitPage1.TabIndex = 4;
|
this.ucSplitPage1.TabIndex = 4;
|
||||||
|
this.ucSplitPage1.TotalCount = ((long)(0));
|
||||||
this.ucSplitPage1.TotalPage = 1;
|
this.ucSplitPage1.TotalPage = 1;
|
||||||
this.ucSplitPage1.PageChange += new System.Action<object>(this.ucSplitPage1_PageChange);
|
this.ucSplitPage1.PageChange += new System.Action<object>(this.ucSplitPage1_PageChange);
|
||||||
//
|
//
|
||||||
@@ -611,5 +614,5 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colAuditRemark;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colAuditRemark;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colAuditTime;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colAuditTime;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colPayTradeNo;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colPayTradeNo;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,6 +13,7 @@ using System.Drawing;
|
|||||||
using System.Drawing.Printing;
|
using System.Drawing.Printing;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Runtime.Remoting.Metadata.W3cXsd2001;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
@@ -39,6 +40,7 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
|
|
||||||
/// <summary>收款二维码图片(base64)</summary>
|
/// <summary>收款二维码图片(base64)</summary>
|
||||||
private string qrCodeBase64 = "";
|
private string qrCodeBase64 = "";
|
||||||
|
private bool isSettlement = false;
|
||||||
|
|
||||||
public WXShopOemWithdrawalForm()
|
public WXShopOemWithdrawalForm()
|
||||||
{
|
{
|
||||||
@@ -93,7 +95,7 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 数据加载
|
#region 数据加载
|
||||||
private void WXShopOemWithdrawalForm_VisibleChanged(object sender, EventArgs e)
|
private async void WXShopOemWithdrawalForm_VisibleChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (this.Visible && first)
|
if (this.Visible && first)
|
||||||
{
|
{
|
||||||
@@ -103,49 +105,56 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool first = true;
|
bool first = true;
|
||||||
|
/// <summary>
|
||||||
|
/// 刷新账户金额 + 提现记录
|
||||||
|
/// </summary>
|
||||||
|
private async Task RefreshAll()
|
||||||
|
{
|
||||||
|
await RefreshOMEAmount();
|
||||||
|
GetWithdrawals(ucSplitPage1.CurrentPage);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 刷新账户统计 + 提现记录
|
/// 刷新OEM钱
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void RefreshAll()
|
/// <returns></returns>
|
||||||
|
/// <exception cref="Exception"></exception>
|
||||||
|
private async Task RefreshOMEAmount()
|
||||||
{
|
{
|
||||||
LoadSummary();
|
var url = BaseClass.BuildObjString("user/getOemAmount");
|
||||||
GetWithdrawals(ucSplitPage1.CurrentPage);
|
var data = UserLogin.GetSignPostData(new { });
|
||||||
|
var html = await GetHtml.PostJsonAsync(url, data);
|
||||||
|
var ret = JsonConvert.DeserializeObject<Result<oemflowsStatistics>>(html);
|
||||||
|
if (ret.Code != 200)
|
||||||
|
{
|
||||||
|
throw new Exception(ret.Msg);
|
||||||
|
}
|
||||||
|
this.lblWithdrawable.Text = (ret.Data.AvailableBalance / 100m).ToString("F2");
|
||||||
|
this.lblTotalRebate.Text = (ret.Data.TotalRebateAmount / 100m).ToString("F2");
|
||||||
|
this.lblTotalWithdrawn.Text = (ret.Data.TotalWithdrawAmount / 100m).ToString("F2");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 加载账户统计:可提现总额 / 历史累计返利 / 历史累计提现
|
/// 加载账户统计:可提现总额 / 历史累计返利 / 历史累计提现
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void LoadSummary()
|
public async Task Settlement()
|
||||||
{
|
{
|
||||||
this.btnRefreshBalance.Enabled = false;
|
|
||||||
Task.Run(() =>
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
var url = BaseClass.BuildObjString("user/oem_settle_flows");
|
|
||||||
var obj = UserLogin.GetSignPostData(new { });
|
|
||||||
string data = JsonHelper.SerializeObject(obj);
|
|
||||||
var html = GetHtml.PostUtf8(url, data);
|
|
||||||
var ret = JsonConvert.DeserializeObject<Result<oemflowsStatistics>>(html);
|
|
||||||
Invoke(new Action(() =>
|
|
||||||
{
|
|
||||||
if (ret.Code != 200)
|
|
||||||
{
|
|
||||||
BaseMsgForm.ShowError("刷新失败:" + ret.Msg);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.lblWithdrawable.Text = (ret.Data.available_balance / 100m).ToString("F2");
|
var url = BaseClass.BuildObjString("user/oem_settle_flows");
|
||||||
this.lblTotalRebate.Text = (ret.Data.total_rebate_amount / 100m).ToString("F2");
|
var data = UserLogin.GetSignPostData(new { });
|
||||||
this.lblTotalWithdrawn.Text = (ret.Data.total_withdraw_amount / 100m).ToString("F2");
|
var html = await GetHtml.PostJsonAsync(url, data);
|
||||||
}));
|
var ret = JsonConvert.DeserializeObject<Result<oemflowsStatistics>>(html);
|
||||||
}
|
if (ret.Code != 200)
|
||||||
finally
|
{
|
||||||
{
|
throw new Exception("结算失败:" + ret.Msg);
|
||||||
Invoke(new Action(() => this.btnRefreshBalance.Enabled = true));
|
}
|
||||||
}
|
this.lblWithdrawable.Text = (ret.Data.AvailableBalance / 100m).ToString("F2");
|
||||||
});
|
this.lblTotalRebate.Text = (ret.Data.TotalRebateAmount / 100m).ToString("F2");
|
||||||
|
this.lblTotalWithdrawn.Text = (ret.Data.TotalWithdrawAmount / 100m).ToString("F2");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -193,7 +202,7 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
|
|
||||||
string data = JsonHelper.SerializeObject(obj);
|
string data = JsonHelper.SerializeObject(obj);
|
||||||
var html = GetHtml.PostUtf8(url, data);
|
var html = GetHtml.PostUtf8(url, data);
|
||||||
var ret = JsonConvert.DeserializeObject<PageResult<WXOemWithdrawalInfo>>(html);
|
var ret = JsonConvert.DeserializeObject<ApiPageResult<WXOemWithdrawalInfo>>(html);
|
||||||
if (ret.Code != 200)
|
if (ret.Code != 200)
|
||||||
{
|
{
|
||||||
Invoke(new Action(() =>
|
Invoke(new Action(() =>
|
||||||
@@ -205,18 +214,49 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
|
|
||||||
|
|
||||||
seconds = BaseRegex.GetDecimalJson(ref html, "seconds");
|
seconds = BaseRegex.GetDecimalJson(ref html, "seconds");
|
||||||
pageCount = Math.Ceiling(1.0 * ret.Total / pageSize).ParseToInt();
|
pageCount = Math.Ceiling(1.0 * ret.Data.Total / pageSize).ParseToInt();
|
||||||
pageCount = Math.Max(pageCount, 1);
|
pageCount = Math.Max(pageCount, 1);
|
||||||
|
|
||||||
return ret.Data;
|
return ret.Data.List;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 事件
|
#region 事件
|
||||||
|
|
||||||
|
//private async void bt_RefreshAmount_Click(object sender, EventArgs e)
|
||||||
|
//{
|
||||||
|
// try
|
||||||
|
// {
|
||||||
|
// bt_RefreshAmount.Enabled = false;
|
||||||
|
// await RefreshOMEAmount();
|
||||||
|
// }
|
||||||
|
// catch (Exception ex)
|
||||||
|
// {
|
||||||
|
// BaseMsgForm.ShowError(ex.Message);
|
||||||
|
// }
|
||||||
|
// finally
|
||||||
|
// {
|
||||||
|
// bt_RefreshAmount.Enabled = true;
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
/// <summary>刷新可提现总额等账户统计</summary>
|
/// <summary>刷新可提现总额等账户统计</summary>
|
||||||
private void btnRefreshBalance_Click(object sender, EventArgs e)
|
private async void btnRefreshBalance_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
LoadSummary();
|
try
|
||||||
|
{
|
||||||
|
btnRefreshBalance.Enabled = false;
|
||||||
|
await Settlement();
|
||||||
|
isSettlement = true;
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
BaseMsgForm.ShowError(ex.Message);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
btnRefreshBalance.Enabled = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>选择收款二维码图片</summary>
|
/// <summary>选择收款二维码图片</summary>
|
||||||
@@ -253,8 +293,13 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>提交提现申请</summary>
|
/// <summary>提交提现申请</summary>
|
||||||
private void btnSubmit_Click(object sender, EventArgs e)
|
private async void btnSubmit_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
if (isSettlement == false)
|
||||||
|
{
|
||||||
|
BaseMsgForm.ShowError("请先结算后再选择提现!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
decimal amountYuan = this.numAmount.Value;
|
decimal amountYuan = this.numAmount.Value;
|
||||||
if (amountYuan <= 0)
|
if (amountYuan <= 0)
|
||||||
{
|
{
|
||||||
@@ -307,7 +352,7 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
this.numAmount.Value = 0;
|
this.numAmount.Value = 0;
|
||||||
this.qrCodeBase64 = "";
|
this.qrCodeBase64 = "";
|
||||||
this.pictureBoxQr.Image = Properties.Resources.nopic;
|
this.pictureBoxQr.Image = Properties.Resources.nopic;
|
||||||
RefreshAll();
|
Refresh();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@@ -338,6 +383,8 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
GetWithdrawals(ucSplitPage1.CurrentPage);
|
GetWithdrawals(ucSplitPage1.CurrentPage);
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class oemflowsStatistics
|
class oemflowsStatistics
|
||||||
@@ -345,14 +392,14 @@ namespace TemuKJD.WXForms.ShopForms
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前可提现
|
/// 当前可提现
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public long available_balance { get; set; }
|
public long AvailableBalance { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 历史累计返利
|
/// 历史累计返利
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public long total_rebate_amount { get; set; }
|
public long TotalRebateAmount { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 历史累计提现
|
/// 历史累计提现
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public long total_withdraw_amount { get; set; }
|
public long TotalWithdrawAmount { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+10
-10
@@ -690,13 +690,13 @@ offCountPara,false;offProductPara,100;IrregularitiesPara,true;noNeerPara,true;no
|
|||||||
// File.Delete(Path.Combine(Environment.CurrentDirectory, "temp\\wxCat.zip"));
|
// File.Delete(Path.Combine(Environment.CurrentDirectory, "temp\\wxCat.zip"));
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
if (!FileBase.Exists("temp\\wxCat60808"))
|
if (!FileBase.Exists("temp\\wxCat60920"))
|
||||||
{
|
{
|
||||||
if (GetHtml.DownloadFile(BaseClass.ServerUrl + "/Download/" + "wxCat60808.zip", "temp\\wxCat60808.dll" + ".bak"))
|
if (GetHtml.DownloadFile(BaseClass.ServerUrl + "/Download/" + "wxCat60920.zip", "temp\\wxCat60920.dll" + ".bak"))
|
||||||
{
|
{
|
||||||
FileBase.Move("temp\\wxCat60808.dll" + ".bak", "temp\\wxCat60808.zip");
|
FileBase.Move("temp\\wxCat60920.dll" + ".bak", "temp\\wxCat60920.zip");
|
||||||
ZipFile.ExtractToDirectory(Path.Combine(Environment.CurrentDirectory, "temp\\wxCat60808.zip"), Path.Combine(Environment.CurrentDirectory, "temp"));
|
ZipFile.ExtractToDirectory(Path.Combine(Environment.CurrentDirectory, "temp\\wxCat60920.zip"), Path.Combine(Environment.CurrentDirectory, "temp"));
|
||||||
File.Delete(Path.Combine(Environment.CurrentDirectory, "temp\\wxCat60808.zip"));
|
File.Delete(Path.Combine(Environment.CurrentDirectory, "temp\\wxCat60920.zip"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//if (!FileBase.Exists("temp\\wxCatBound"))
|
//if (!FileBase.Exists("temp\\wxCatBound"))
|
||||||
@@ -708,13 +708,13 @@ offCountPara,false;offProductPara,100;IrregularitiesPara,true;noNeerPara,true;no
|
|||||||
// File.Delete(Path.Combine(Environment.CurrentDirectory, "temp\\wxCatBound.zip"));
|
// File.Delete(Path.Combine(Environment.CurrentDirectory, "temp\\wxCatBound.zip"));
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
if (!FileBase.Exists("temp\\wxCatBound60810"))
|
if (!FileBase.Exists("temp\\wxCatBound60921"))
|
||||||
{
|
{
|
||||||
if (GetHtml.DownloadFile(BaseClass.ServerUrl + "/Download/" + "wxCatBound60810.zip", "temp\\wxCatBound60810.dll" + ".bak"))
|
if (GetHtml.DownloadFile(BaseClass.ServerUrl + "/Download/" + "wxCatBound60921.zip", "temp\\wxCatBound60921.dll" + ".bak"))
|
||||||
{
|
{
|
||||||
FileBase.Move("temp\\wxCatBound60810.dll" + ".bak", "temp\\wxCatBound60810.zip");
|
FileBase.Move("temp\\wxCatBound60921.dll" + ".bak", "temp\\wxCatBound60921.zip");
|
||||||
ZipFile.ExtractToDirectory(Path.Combine(Environment.CurrentDirectory, "temp\\wxCatBound60810.zip"), Path.Combine(Environment.CurrentDirectory, "temp"));
|
ZipFile.ExtractToDirectory(Path.Combine(Environment.CurrentDirectory, "temp\\wxCatBound60921.zip"), Path.Combine(Environment.CurrentDirectory, "temp"));
|
||||||
File.Delete(Path.Combine(Environment.CurrentDirectory, "temp\\wxCatBound60810.zip"));
|
File.Delete(Path.Combine(Environment.CurrentDirectory, "temp\\wxCatBound60921.zip"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user