Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
34ea4f8a27 | ||
|
|
8a85c3365b | ||
|
|
861732ab7f | ||
|
|
94207b698a | ||
|
|
6754342366 | ||
|
|
82adb510be | ||
|
|
09098efd34 | ||
|
|
a24d032541 | ||
|
|
fcaf41994d | ||
|
|
65cbb347e1 |
No files matched your search
@@ -31,7 +31,7 @@ namespace AllBase
|
||||
/// <summary>
|
||||
/// 版本ID
|
||||
/// </summary>
|
||||
public static int VersionCount = 1373;
|
||||
public static int VersionCount = 1377;
|
||||
public static string MainPath = "29wx";
|
||||
//public static string MainPath = "29wx";
|
||||
//public static string MainPath = "29pdd";
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AllBase.Model;
|
||||
|
||||
public class CommonItem : IComparable<CommonItem>
|
||||
{
|
||||
/// <summary>
|
||||
/// 初始化
|
||||
/// </summary>
|
||||
/// <param name="text">文本</param>
|
||||
/// <param name="value">值</param>
|
||||
/// <param name="sortId">排序号</param>
|
||||
/// <param name="group">组</param>
|
||||
/// <param name="disabled">禁用</param>
|
||||
public CommonItem(string text, object value, string des = "", int? sortId = null, string group = null, bool? disabled = null)
|
||||
{
|
||||
Text = text;
|
||||
Value = value;
|
||||
Description = des;
|
||||
SortId = sortId;
|
||||
Group = group;
|
||||
Disabled = disabled;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 文本
|
||||
/// </summary>
|
||||
public string Text { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 值
|
||||
/// </summary>
|
||||
public object Value { get; }
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
/// <summary>
|
||||
/// 排序号
|
||||
/// </summary>
|
||||
public int? SortId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组
|
||||
/// </summary>
|
||||
public string Group { get; }
|
||||
/// <summary>
|
||||
/// 是否选中
|
||||
/// </summary>
|
||||
public bool IsSelected { get; set; }
|
||||
/// <summary>
|
||||
/// 禁用
|
||||
/// </summary>
|
||||
public bool? Disabled { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 比较
|
||||
/// </summary>
|
||||
/// <param name="other">其它列表项</param>
|
||||
public int CompareTo(CommonItem other)
|
||||
{
|
||||
return string.Compare(Text, other.Text, StringComparison.CurrentCulture);
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 21 KiB |
@@ -0,0 +1 @@
|
||||
2665mbnSMThd0KE8FSJyrlRb335arzDa88rfp3u0lBx7Swh62S2o13qKTwl984JFT20lG5ikWH7WWUNHAO72agv4kg0l5w23rHJmnA0eZxZcHXuAzdW058M1wu4xtmcJC2xggztkm5F55R1HxKU4s4sGFJiNDf6cB2DcWroaGvG5Yk9t98hD53IXIR6V92PS5YxN98U4kk16Xj0Y5G0F2TZ091YO2OXLpJIZmp6lMP9MlMpCXARz6ivEWDBC45j5dGAC1XZB6HYCh6hZvOK9VLF27J0EW0w1Vvi9fUFTm8X91Y12um16j2wm76kfo0h4S4ls96o8AsuAed3NiqW4c5988lMz3A0YIwv2XAF0039P9304fFTZAbmh4DTdxoEkSfPtMT07b2vknGzN8EU2JXdVcBBXrvveQs5oGn0K687j5X8Ij4D5EDVzx748WR4Va2IsfEt5yIK9J22eDY58KmA3kIrqi4Yf5tElYOQ6eZSaJovQ55xjxroIt8wT7i2XbM8ZSsSKm5k3Z80fc7Hw8TFESb7tm30Py3X3mbL3eE0opMJ6MUoyiUj1zpI7VvK32yq6x997weK2lwU6A0PyOe39oWvYN0AKIqCqwNizY4S9QApiH4Yr13XsKjlutMNDajfRCg0JqqH283RtXCKX8ry6AUWpz6QmvA40uSDqcd1Ka71e6gvspe9DFh00T2fMwiqJu8MLjcQfC3FnVP6mRYKkdZI19VRWKZ67KW1n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lGquco92KvT9BV4QF5jMT13REUvRA172gpRhg4phjWAtNWgg8YZYbdZL372IacJ0L1tdJxoRG28iV6pk06Khrnqy6S9j4SsB5g7ahx4zCL7PNY0jVUG1yEbNnmGF5m48dTj9ppP8eWaKoW2Z660Bdxs9FVJ8pREIanyDdOahZJI5dZ2QZAU7L9ZC4fI1x73n2gQo5wLHy3dpb4Hvk1T9r6OmZ8rkqOK7pdeN26wSgOrOjwwt5fMGHVekEQ5R2S3Xe5p5uN26Kexz49D00QOzdNG4v93dR1lqKKUOwJFrTmmSldcQfNWYJc93gLRMi4GBE79L2rNpEQ2Bre4G2dmDZ2MG7qmGW0OxwY96JI5GmdNf8f4txhVqb9xSTJg1OUq83AX1mhmdB99m2fvlvu7qaiCcR4xDXKjS7zFNQOZWtrsJjv6gLJh4OcaAQox4MtI470abKkxOiTdqISHF26ED3A2SZz0iLJb184QJJz992vl4H4e93fMS253kZQyV82xXPHMtVyaI1meC9NS64BJGJhoyYdj7sZ9Jlja8dNC8dbkLBvQDHuwz6zxvoO5LWGt8H94N94R1vuV9PbHFrj45FMRlbetzzo4C0u88kGQ758iv7Q6tFFfv3jAppyHrT7HBxyeJm1Bwj31vxt2THuzT8S2c2R71TFd0gGo54ixrx5Re9oi51AX8h3tFpMdjiBU0iWNt8GCWVB5UXUWWF3r8c1OZ2g81h7ddjkQ0Wv95L2H3q3lRb59iSpW1jh9JkCr1YX3Ts6JUx6cM7zrU4nqM0qXqaQCY3KUq87nGY2FwBPF3VQg7045qCd10Y92oGrv3Fy0g66049GNDU758zagUQSlcmPkeV2S5nAL1m28Ezh4Dwjh7aE0QvyHnz9LlnEgGXQeR2u6eugxgNpL7K8YWnr3Cdn06SLMJdDWVcLine truncated
|
||||
|
After Width: | Height: | Size: 17 KiB |
@@ -0,0 +1 @@
|
||||
丁墨创投MThd丁墨创投MThd0KE8FSJyrlRb898rzDa88rfp3Wu0lBx7Swh62S2o13qKTwl984JFT20lG5ikWH7WWUNHAO72agv4kg0l5w23r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I470abKkxOiTdqISHF26ED3A2SZz0iLJb184QJJz992vl4H4e93fMS253kZQyV82xXPHMtVyaI1meC9NS64BJGJhoyYdj7sZ9Jlja8dNC8dbkLBvQDHuwz6zxvoO5LWGt8H94N94R1vuV9PbHFrj45FMRlbetzzo4C0u88kGQ758iv7Q6tFFfv3jAppyHrT7HBxyeJm1Bwj31vxt2THuzT8S2c2R71TFd0gGo54ixrx5Re9oi51AX8h3tFpMdjiBU0iWNt8GCWVB5UXUWWF3r8c1OZ2g81h7ddjkQ0Wv95L2H3q3lRb59iSpW1jh9JkCr1YX3Ts6JUx6cM7zrU4nqM0qXqaQCY3KUq87nGY2FwBPF3VQg7045qCd10Y92oGrv3Fy0g66049GNDU758zagUQSlcmPkeV2S5nAL1m28Ezh4Dwjh7aE0QvyHnz9LlnEgGXQeR2u6eugxgNpL7KLine truncated
|
||||
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 18 KiB |
@@ -0,0 +1 @@
|
||||
26984A3pMThd0KE8FSJyrlRb335arzDa88rfp3u0lBx7Swh62S2o13qKTwl984JFT20lG5ikWH7WWUNHAO72agv4kg0l5w23rHJmnA0eZxZcHXuAzdW058M1wu4xtmcJC2xggztkm5F55R1HxKU4s4sGFJiNDf6cB2DcWroaGvG5Yk9t98hD53IXIR6V92PS5YxN98U4kk16Xj0Y5G0F2TZ091YO2OXLpJIZmp6lMP9MlMpCXARz6ivEWDBC45j5dGAC1XZB6HYCh6hZvOK9VLF27J0EW0w1Vvi9fUFTm8X91Y12um16j2wm76kfo0h4S4ls96o8AsuAed3NiqW4c5988lMz3A0YIwv2XAF0039P9304fFTZAbmh4DTdxoEkSfPtMT07b2vknGzN8EU2JXdVcBBXrvveQs5oGn0K687j5X8Ij4D5EDVzx748WR4Va2IsfEt5yIK9J22eDY58KmA3kIrqi4Yf5tElYOQ6eZSaJovQ55xjxroIt8wT7i2XbM8ZSs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158w55CtY01GUjyBTMy1D36a329WJDPYJzA9Exmc6E85RqDvW9F7MV6O1X5yx4WlRvN0Kv5Gt8Es0MQA05qa53I3R1xJK1qH18Gujrsk6DO6c7q2qIth6l4fI3119OATWs1F3R82q3B6P33D3YFwyB60ZRGs1XqLDbIj4eTCcd651Yv9x1p1S3pO6BB2n23gwkMKmmJWJ55ZWoZ6345L187psy8L48VGle6umpW5gmU4D1G02yZa1gkzsJ9x74H5tz33IDDyWDuCu89axcFN3D7DA6L90bbdeKEj9Fe7Afk3ms0FL9OxOH3KaHGlTrJc124J665yl01Tg7Mq3I7Y0Aq7aptQsACWxo8mxUxZeNdh5Ogpm1o7rZlAzz1lP2Ff23foY1xMS12akt4hix7oW8HSZf08mj729o2dle2g8cpV2Kkyx5H8H0kM186yFlQ8dNed915h453inONLVOVU6Guwa0fhqoZfiEezEFjM7IxII607er1PlG3M5MWG9nPhX60xMEG04ZHmnxSCeMs6InTYA3h4o1edvGRRXl3F91gcQvP1O1bqfPWvMlpD2g6z159RgG12zfNak0Uh4VZDPAKcHSfNJJ38KJmEi2QSU04mu127X950sK5873319b0f4FNQeyKyJsaXYPM8hyS9tBw5F2FEA29XPdlXR98GVON1EZ1f9JA64rWU1YLVWo7oD58xH9jFu6D0a7VpsX32hnzMD70nlXmDpEKd82B3k6Bg0Z9d987bAqXa828234ERwhn5zoDF3eidd96U0Cy7P0zUB6a9uMYU9AZbf4tf0UYhHYW4rqg1L1eqrH6TKSdK3BVS6KOE48oFcW629CNuaSy5ne5m9nIF7hunwwi89ZzLjx547ZuhR2xJ8q6pS1yTSc2I7BJrg3qlYKb4oMbetgBHXSml8qN36XH91339rsA6L5QaIFqp8zDT4fbi5QWwMcH8kWC4D1G7debV7cq6JdbXJAnRKBT4179zs795rYNBe0CsraL9p1jI5jQl18EzCCimrTPoCKJY2vM3dD9TRvWwxBzxM79m56Hzq1XiOwM237d53bQhLX5E0ZGq45At3qFK5MyDASZU7nNS6vKiY8Kunb4j7c18Il4Js7u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m28Ezh4Dwjh7aE0QvyHnz9LlnEgGXQeR2u6eugxgNpL7K8YWnr3Cdn06SLMJdDWVcLine truncated
|
||||
|
After Width: | Height: | Size: 17 KiB |
@@ -0,0 +1 @@
|
||||
云享供应链MThd云享供应链MThd0KE8FSJyrlRb898rzDa88rfp3Wu0lBx7Swh62S2o13qKTwl984JFT20lG5ikWH7WWUNHAO72agv4kg0l5w23rHJmnA0eZxZcHXuAzdW058M1wu4xtmcJC2xggztkm5F55R1HxKU4s4sGFJiNDf6cB2DcWroaGvG5Yk9t98hD53IXIR6V92PS5YxN98U4kk16Xj0Y5G0F2TZ091YO2OXLpJIZmp6lMP9MlMpCXARz6ivEWDBC45j5dGAC1XZB6HYCh6hZvOK9VLF27J0EW0w1Vvi9fUFTm8X91Y12um16j2wm76kfo0h4S4ls96o8AsuAed3NiqW4c5988lMz3A0YIwv2XAF0039P9304fFTZAbmh4DTdxoEkSfPtMT07b2vknGzN8EU2JXdVcBBXrvveQs5oGn0K687j5X8Ij4D5EDVzx748WR4Va2IsfEt5yIK9J22eDY58KmA3kIrqi4Yf5tElYOQ6eZSaJovQ55xjxroIt8wT7i2XbM8ZSsSKm5k3Z80fc7Hw8TFESb7tm30Py3X3mbL3eE0opMJ6MUoyiUj1zpI7VvK32yq6x997weK2lwU6A0PyOe39oWvYN0AKIqCqwNizY4S9QApiH4Yr13XsKjlutMNDajfRCg0JqqH283RtXCKX8ry6AUWpz6QmvA40uSDqcd1Ka71e6gvspe9DFh00T2fMwiqJu8MLjcQfC3FnVP6mRYKkdZI19VRWKZ67KW1n6aLV7o7Q5ro3NOkZsJhAIUvM6PjoHr6RwV0iv4JMbB4cjHyLfb1y2U6yooM0eG6TOuUF1B9X6340Iy4tVmVU25CfUf4BDV9BQDx3N8b4hnCAoQ4We0fj4xYR0ZxfyoV5jr69e3VVDyPrz2ADsZf2N7hjMEv13rKGxO1hvGY757bfnKGh6OCfd6jEtd409v4sns36EHzO3iUT60VxuMsB3f1688qmGK4tRHBd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26wSgOrOjwwt5fMGHVekEQ5R2S3Xe5p5uN26Kexz49D00QOzdNG4v93dR1lqKKUOwJFrTmmSldcQfNWYJc93gLRMi4GBE79L2rNpEQ2Bre4G2dmDZ2MG7qmGW0OxwY96JI5GmdNf8f4txhVqb9xSTJg1OUq83AX1mhmdB99m2fvlvu7qaiCcR4xDXKjS7zFNQOZWtrsJjv6gLJh4OcaAQox4MtI470abKkxOiTdqISHF26ED3A2SZz0iLJb184QJJz992vl4H4e93fMS253kZQyV82xXPHMtVyaI1meC9NS64BJGJhoyYdj7sZ9Jlja8dNC8dbkLBvQDHuwz6zxvoO5LWGt8H94N94R1vuV9PbHFrj45FMRlbetzzo4C0u88kGQ758iv7Q6tFFfv3jAppyHrT7HBxyeJm1Bwj31vxt2THuzT8S2c2R71TFd0gGo54ixrx5Re9oi51AX8h3tFpMdjiBU0iWNt8GCWVB5UXUWWF3r8c1OZ2g81h7ddjkQ0Wv95L2H3q3lRb59iSpW1jh9JkCr1YX3Ts6JUx6cM7zrU4nqM0qXqaQCY3KUq87nGY2FwBPF3VQg7045qCd10Y92oGrv3Fy0g66049GNDU758zagUQSlcmPkeV2S5nAL1m28Ezh4Dwjh7aE0QvyHnz9LlnEgGXQeR2u6eugxLine truncated
|
||||
|
After Width: | Height: | Size: 410 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 19 KiB |
@@ -0,0 +1 @@
|
||||
2621NzW2MThd0KE8FSJyrlRb335arzDa88rfp3u0lBx7Swh62S2o13qKTwl984JFT20lG5ikWH7WWUNHAO72agv4kg0l5w23rHJmnA0eZxZcHXuAzdW058M1wu4xtmcJC2xggztkm5F55R1HxKU4s4sGFJiNDf6cB2DcWroaGvG5Yk9t98hD53IXIR6V92PS5YxN98U4kk16Xj0Y5G0F2TZ091YO2OXLpJIZmp6lMP9MlMpCXARz6ivEWDBC45j5dGAC1XZB6HYCh6hZvOK9VLF27J0EW0w1Vvi9fUFTm8X91Y12um16j2wm76kfo0h4S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ixrx5Re9oi51AX8h3tFpMdjiBU0iWNt8GCWVB5UXUWWF3r8c1OZ2g81h7ddjkQ0Wv95L2H3q3lRb59iSpW1jh9JkCr1YX3Ts6JUx6cM7zrU4nqM0qXqaQCY3KUq87nGY2FwBPF3VQg7045qCd10Y92oGrv3Fy0g66049GNDU758zagUQSlcmPkeV2S5nAL1m28Ezh4Dwjh7aE0QvyHnz9LlnEgGXQeR2u6eugxgNpL7K8YWnr3Cdn06SLMJdDWVcLine truncated
|
||||
|
After Width: | Height: | Size: 17 KiB |
@@ -0,0 +1 @@
|
||||
创诚科技MThd创诚科技MThd0KE8FSJyrlRb898rzDa88rfp3Wu0lBx7Swh62S2o13qKTwl984JFT20lG5ikWH7WWUNHAO72agv4kg0l5w23rHJmnA0eZxZcHXuAzdW058M1wu4xtmcJC2xggztkm5F55R1HxKU4s4sGFJiNDf6cB2DcWroaGvG5Yk9t98hD53IXIR6V92PS5YxN98U4kk16Xj0Y5G0F2TZ091YO2OXLpJIZmp6lMP9MlMpCXARz6ivEWDBC45j5dGAC1XZB6HYCh6hZvOK9VLF27J0EW0w1Vvi9fUFTm8X91Y12um16j2wm76kfo0h4S4ls96o8AsuAed3NiqW4c5988lMz3A0YIwv2XAF0039P9304fFTZAbmh4DTdxoEkSfPtMT07b2vknGzN8EU2JXdVcBBXrvveQs5oGn0K687j5X8Ij4D5EDVzx748WR4Va2IsfEt5yIK9J22eDY58KmA3kIrqi4Yf5tElYOQ6eZSaJovQ55xjxroIt8wT7i2XbM8ZSsSKm5k3Z80fc7Hw8TFESb7tm30Py3X3mbL3eE0opMJ6MUoyiUj1zpI7VvK32yq6x997weK2lwU6A0PyOe39oWvYN0AKIqCqwNizY4S9QApiH4Yr13XsKjlutMNDajfRCg0JqqH283RtXCKX8ry6AUWpz6QmvA40uSDqcd1Ka71e6gvspe9DFh00T2fMwiqJu8MLjcQfC3FnVP6mRYKkdZI19VRWKZ67KW1n6aLV7o7Q5ro3NOkZsJhAIUvM6PjoHr6RwV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tNWgg8YZYbdZL372IacJ0L1tdJxoRG28iV6pk06Khrnqy6S9j4SsB5g7ahx4zCL7PNY0jVUG1yEbNnmGF5m48dTj9ppP8eWaKoW2Z660Bdxs9FVJ8pREIanyDdOahZJI5dZ2QZAU7L9ZC4fI1x73n2gQo5wLHy3dpb4Hvk1T9r6OmZ8rkqOK7pdeN26wSgOrOjwwt5fMGHVekEQ5R2S3Xe5p5uN26Kexz49D00QOzdNG4v93dR1lqKKUOwJFrTmmSldcQfNWYJc93gLRMi4GBE79L2rNpEQ2Bre4G2dmDZ2MG7qmGW0OxwY96JI5GmdNf8f4txhVqb9xSTJg1OUq83AX1mhmdB99m2fvlvu7qaiCcR4xDXKjS7zFNQOZWtrsJjv6gLJh4OcaAQox4MtI470abKkxOiTdqISHF26ED3A2SZz0iLJb184QJJz992vl4H4e93fMS253kZQyV82xXPHMtVyaI1meC9NS64BJGJhoyYdj7sZ9Jlja8dNC8dbkLBvQDHuwz6zxvoO5LWGt8H94N94R1vuV9PbHFrj45FMRlbetzzo4C0u88kGQ758iv7Q6tFFfv3jAppyHrT7HBxyeJm1Bwj31vxt2THuzT8S2c2R71TFd0gGo54ixrx5Re9oi51AX8h3tFpMdjiBU0iWNt8GCWVB5UXUWWF3r8c1OZ2g81h7ddjkQ0Wv95L2H3q3lRb59iSpW1jh9JkCr1YX3Ts6JUx6cM7zrU4nqM0qXqaQCY3KUq87nGY2FwBPF3VQg7045qCd10Y92oGrv3Fy0g66049GNDU758zagUQSlcmPkeV2S5nAL1m28Ezh4Dwjh7aE0QvyHnz9LlnEgGXQeR2u6eugxgNpL7KLine truncated
|
||||
|
After Width: | Height: | Size: 56 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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -496,7 +496,92 @@ namespace TemuKJD.BLL
|
||||
return result;
|
||||
}
|
||||
|
||||
public static string kdniaoPostResponse(string _url, string _data, string referer, Dictionary<string, object> reqDic, string kdnAuth = null, string kdnAuthKey = "Auth")
|
||||
public static async Task<string> WeiXinGetResponseAsync(ShopLoginInfo shop, string _url, string referer = "", bool isGetDocument = false)
|
||||
{
|
||||
string biz_magic = "";
|
||||
string cookies = "";
|
||||
try
|
||||
{
|
||||
var cookieLst = JsonHelper.DeserializeJsonToList<CefSharp.Cookie>(shop?.Cookies.ParseToString());
|
||||
if (cookieLst == null)
|
||||
cookieLst = new List<CefSharp.Cookie>();
|
||||
foreach (var cook in cookieLst)
|
||||
{
|
||||
if (cook.Name.StartsWith("biz"))
|
||||
cookies += cook.Name + "=" + cook.Value + ";";
|
||||
}
|
||||
var bizMagicCookie = cookieLst.FirstOrDefault(c => c.Name == "biz_magic");
|
||||
if (bizMagicCookie != null)
|
||||
biz_magic = bizMagicCookie.Value;
|
||||
}
|
||||
catch { }
|
||||
|
||||
HttpWebResponse response = null;
|
||||
string result;
|
||||
try
|
||||
{
|
||||
string url = _url;
|
||||
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
|
||||
|
||||
request.KeepAlive = true;
|
||||
if (isGetDocument)
|
||||
{
|
||||
request.Headers.Add("sec-ch-ua", @"""Not)A;Brand"";v=""8"", ""Chromium"";v=""138""");
|
||||
request.Headers.Add("sec-ch-ua-mobile", @"?0");
|
||||
request.Headers.Add("sec-ch-ua-platform", @"""Windows""");
|
||||
request.Headers.Add("Upgrade-Insecure-Requests", @"1");
|
||||
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36";
|
||||
request.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7";
|
||||
request.Headers.Set(HttpRequestHeader.Cookie, cookies);
|
||||
request.Headers.Add("Sec-Fetch-Site", @"none");
|
||||
request.Headers.Add("Sec-Fetch-Mode", @"navigate");
|
||||
request.Headers.Add("Sec-Fetch-User", @"?1");
|
||||
request.Headers.Add("Sec-Fetch-Dest", @"document");
|
||||
}
|
||||
else
|
||||
{
|
||||
request.Headers.Add("wecom_magic", @"");
|
||||
request.Headers.Add("sec-ch-ua-platform", @"""Windows""");
|
||||
request.Headers.Add("supplier_magic", @"");
|
||||
request.Headers.Add("sec-ch-ua", @"""Not)A;Brand"";v=""8"", ""Chromium"";v=""138""");
|
||||
request.Headers.Add("sec-ch-ua-mobile", @"?0");
|
||||
request.Headers.Add("potter-scene", @"weixinShop");
|
||||
request.Headers.Add("biz_magic", biz_magic);
|
||||
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36";
|
||||
request.Accept = "application/json, text/plain, */*";
|
||||
request.Headers.Add("talent_magic", @"");
|
||||
request.Headers.Add("mcn_magic", @"");
|
||||
request.Headers.Set(HttpRequestHeader.Cookie, cookies);
|
||||
request.Headers.Add("Sec-Fetch-Site", @"same-origin");
|
||||
request.Headers.Add("Sec-Fetch-Mode", @"cors");
|
||||
request.Headers.Add("Sec-Fetch-Dest", @"empty");
|
||||
request.Referer = referer;
|
||||
request.Headers.Set(HttpRequestHeader.AcceptEncoding, "gzip, deflate, br, zstd");
|
||||
request.Headers.Set(HttpRequestHeader.AcceptLanguage, "zh-CN,zh;q=0.9");
|
||||
}
|
||||
|
||||
response = (HttpWebResponse)await request.GetResponseAsync();
|
||||
}
|
||||
catch (WebException ex)
|
||||
{
|
||||
if (ex.Status == WebExceptionStatus.ProtocolError)
|
||||
{
|
||||
response = (HttpWebResponse)ex.Response;
|
||||
result = GetProxyHtml.ReadResponse(response);
|
||||
return result;
|
||||
}
|
||||
else return ex.Message;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
if (response != null) response.Close();
|
||||
return e.Message;
|
||||
}
|
||||
result = GetProxyHtml.ReadResponse(response);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static string kdniaoPostResponse(string _url, string _data, string referer, Dictionary<string, object> reqDic, string kdnAuth = null, string kdnAuthKey = "Auth")
|
||||
{
|
||||
HttpWebResponse response = null;
|
||||
string result;
|
||||
|
||||
@@ -44,6 +44,9 @@
|
||||
<Compile Update="InitForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Update="KJDForms\SystemForms\SystemUploadConfigForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Update="KJDForms\SystemForms\SystemGoodsComplianceForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -68,6 +71,9 @@
|
||||
<Compile Update="PDDForms\ProductSelectForms\PDDDBProdGroupManageFrom.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Update="UserComponent\InputDialog.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Update="UserComponent\UcNumericRange.cs">
|
||||
<SubType>UserControl</SubType>
|
||||
</Compile>
|
||||
|
||||
@@ -30,9 +30,10 @@
|
||||
{
|
||||
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("解除限制");
|
||||
System.Windows.Forms.TreeNode violationNode = new System.Windows.Forms.TreeNode("违规检测");
|
||||
System.Windows.Forms.TreeNode uploadConfigNode = new System.Windows.Forms.TreeNode("上货配置");
|
||||
System.Windows.Forms.TreeNode complianceNode = new System.Windows.Forms.TreeNode("商品 AI 检测");
|
||||
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("系统设置", new System.Windows.Forms.TreeNode[] {
|
||||
treeNode1, violationNode, complianceNode});
|
||||
treeNode1, violationNode,complianceNode, uploadConfigNode});
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
@@ -108,6 +109,7 @@
|
||||
complianceNode.Name = "商品 AI 检测";
|
||||
violationNode.Name = "违规检测";
|
||||
violationNode.Text = "违规检测";
|
||||
uploadConfigNode.Name = "上货配置";
|
||||
treeNode2.Name = "系统设置";
|
||||
treeNode2.Text = "系统设置";
|
||||
this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
||||
|
||||
@@ -16,6 +16,7 @@ namespace TemuKJD.KJDForms.SystemForms
|
||||
{
|
||||
public Lazy<SystemRemoveRestrictionsForm> systemRemoveRestrictionsForm = new Lazy<SystemRemoveRestrictionsForm>();
|
||||
public Lazy<SystemViolationDetectionForm> systemViolationDetectionForm = new Lazy<SystemViolationDetectionForm>();
|
||||
public Lazy<SystemUploadConfigForm> systemUploadConfigForm = new Lazy<SystemUploadConfigForm>();
|
||||
private readonly Lazy<SystemGoodsComplianceForm> goodsComplianceForm = new Lazy<SystemGoodsComplianceForm>();
|
||||
|
||||
public SystemForm()
|
||||
@@ -55,6 +56,9 @@ namespace TemuKJD.KJDForms.SystemForms
|
||||
case "违规检测":
|
||||
SetForm(systemViolationDetectionForm.Value);
|
||||
break;
|
||||
case "上货配置":
|
||||
SetForm(systemUploadConfigForm.Value);
|
||||
break;
|
||||
//case "商品管理":
|
||||
// SetForm(shopProductForm.Value);
|
||||
// break;
|
||||
|
||||
@@ -0,0 +1,279 @@
|
||||
namespace TemuKJD.KJDForms.SystemForms
|
||||
{
|
||||
partial class SystemUploadConfigForm
|
||||
{
|
||||
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();
|
||||
this.contentLayout = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.grpReturnAddress = new System.Windows.Forms.GroupBox();
|
||||
this.returnAddressLayout = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.lblReturnAddressPolicy = new System.Windows.Forms.Label();
|
||||
this.chkUseOrderReturnWarehouseAddress = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.cmbReturnAddressPolicy = new System.Windows.Forms.ComboBox();
|
||||
this.sensitiveWordsLayout = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.cmbSensitiveWordsPolicy = new System.Windows.Forms.ComboBox();
|
||||
this.txtSensitiveWords = new System.Windows.Forms.TextBox();
|
||||
this.lblSensitiveWordsPolicy = new System.Windows.Forms.Label();
|
||||
this.grpSensitiveWords = new System.Windows.Forms.GroupBox();
|
||||
this.footerLayout = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.btnSave = new System.Windows.Forms.Button();
|
||||
this.btnLoad = new System.Windows.Forms.Button();
|
||||
this.lblStatus = new System.Windows.Forms.Label();
|
||||
this.contentLayout.SuspendLayout();
|
||||
this.grpReturnAddress.SuspendLayout();
|
||||
this.returnAddressLayout.SuspendLayout();
|
||||
this.sensitiveWordsLayout.SuspendLayout();
|
||||
this.grpSensitiveWords.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// contentLayout
|
||||
//
|
||||
this.contentLayout.AutoSize = true;
|
||||
this.contentLayout.ColumnCount = 1;
|
||||
this.contentLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.contentLayout.Controls.Add(this.grpReturnAddress, 0, 0);
|
||||
this.contentLayout.Controls.Add(this.grpSensitiveWords, 0, 1);
|
||||
this.contentLayout.Controls.Add(this.footerLayout, 0, 2);
|
||||
this.contentLayout.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.contentLayout.Location = new System.Drawing.Point(12, 12);
|
||||
this.contentLayout.MinimumSize = new System.Drawing.Size(560, 0);
|
||||
this.contentLayout.Name = "contentLayout";
|
||||
this.contentLayout.RowCount = 3;
|
||||
this.contentLayout.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.contentLayout.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.contentLayout.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.contentLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
||||
this.contentLayout.Size = new System.Drawing.Size(836, 214);
|
||||
this.contentLayout.TabIndex = 0;
|
||||
//
|
||||
// grpReturnAddress
|
||||
//
|
||||
this.grpReturnAddress.Controls.Add(this.returnAddressLayout);
|
||||
this.grpReturnAddress.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.grpReturnAddress.Location = new System.Drawing.Point(0, 0);
|
||||
this.grpReturnAddress.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8);
|
||||
this.grpReturnAddress.Name = "grpReturnAddress";
|
||||
this.grpReturnAddress.Padding = new System.Windows.Forms.Padding(10);
|
||||
this.grpReturnAddress.Size = new System.Drawing.Size(836, 64);
|
||||
this.grpReturnAddress.TabIndex = 0;
|
||||
this.grpReturnAddress.TabStop = false;
|
||||
this.grpReturnAddress.Text = "使用拍单退货仓库地址";
|
||||
//
|
||||
// returnAddressLayout
|
||||
//
|
||||
this.returnAddressLayout.ColumnCount = 3;
|
||||
this.returnAddressLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.returnAddressLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.returnAddressLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 108F));
|
||||
this.returnAddressLayout.Controls.Add(this.lblReturnAddressPolicy, 1, 0);
|
||||
this.returnAddressLayout.Controls.Add(this.chkUseOrderReturnWarehouseAddress, 0, 0);
|
||||
this.returnAddressLayout.Controls.Add(this.cmbReturnAddressPolicy, 2, 0);
|
||||
this.returnAddressLayout.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.returnAddressLayout.Location = new System.Drawing.Point(10, 26);
|
||||
this.returnAddressLayout.Name = "returnAddressLayout";
|
||||
this.returnAddressLayout.RowCount = 1;
|
||||
this.returnAddressLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.returnAddressLayout.Size = new System.Drawing.Size(816, 28);
|
||||
this.returnAddressLayout.TabIndex = 0;
|
||||
//
|
||||
// lblReturnAddressPolicy
|
||||
//
|
||||
this.lblReturnAddressPolicy.AutoSize = true;
|
||||
this.lblReturnAddressPolicy.Location = new System.Drawing.Point(644, 4);
|
||||
this.lblReturnAddressPolicy.Margin = new System.Windows.Forms.Padding(12, 4, 8, 0);
|
||||
this.lblReturnAddressPolicy.Name = "lblReturnAddressPolicy";
|
||||
this.lblReturnAddressPolicy.Size = new System.Drawing.Size(56, 17);
|
||||
this.lblReturnAddressPolicy.TabIndex = 0;
|
||||
this.lblReturnAddressPolicy.Text = "继承策略";
|
||||
//
|
||||
// chkUseOrderReturnWarehouseAddress
|
||||
//
|
||||
this.chkUseOrderReturnWarehouseAddress.AccessibleName = "使用拍单退货仓库地址";
|
||||
this.chkUseOrderReturnWarehouseAddress.AutoSize = true;
|
||||
this.chkUseOrderReturnWarehouseAddress.Location = new System.Drawing.Point(0, 2);
|
||||
this.chkUseOrderReturnWarehouseAddress.Margin = new System.Windows.Forms.Padding(0, 2, 0, 0);
|
||||
this.chkUseOrderReturnWarehouseAddress.Name = "chkUseOrderReturnWarehouseAddress";
|
||||
this.chkUseOrderReturnWarehouseAddress.Size = new System.Drawing.Size(51, 21);
|
||||
this.chkUseOrderReturnWarehouseAddress.TabIndex = 0;
|
||||
this.chkUseOrderReturnWarehouseAddress.Text = "启用";
|
||||
//
|
||||
// cmbReturnAddressPolicy
|
||||
//
|
||||
this.cmbReturnAddressPolicy.AccessibleName = "使用拍单退货仓库地址继承策略";
|
||||
this.cmbReturnAddressPolicy.DisplayMember = "Text";
|
||||
this.cmbReturnAddressPolicy.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.cmbReturnAddressPolicy.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmbReturnAddressPolicy.Location = new System.Drawing.Point(708, 0);
|
||||
this.cmbReturnAddressPolicy.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.cmbReturnAddressPolicy.Name = "cmbReturnAddressPolicy";
|
||||
this.cmbReturnAddressPolicy.Size = new System.Drawing.Size(108, 25);
|
||||
this.cmbReturnAddressPolicy.TabIndex = 1;
|
||||
this.cmbReturnAddressPolicy.ValueMember = "Value";
|
||||
//
|
||||
// sensitiveWordsLayout
|
||||
//
|
||||
this.sensitiveWordsLayout.ColumnCount = 3;
|
||||
this.sensitiveWordsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.sensitiveWordsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.sensitiveWordsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 108F));
|
||||
this.sensitiveWordsLayout.Controls.Add(this.lblSensitiveWordsPolicy, 1, 0);
|
||||
this.sensitiveWordsLayout.Controls.Add(this.txtSensitiveWords, 0, 0);
|
||||
this.sensitiveWordsLayout.Controls.Add(this.cmbSensitiveWordsPolicy, 2, 0);
|
||||
this.sensitiveWordsLayout.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.sensitiveWordsLayout.Location = new System.Drawing.Point(10, 26);
|
||||
this.sensitiveWordsLayout.Name = "sensitiveWordsLayout";
|
||||
this.sensitiveWordsLayout.RowCount = 1;
|
||||
this.sensitiveWordsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.sensitiveWordsLayout.Size = new System.Drawing.Size(816, 94);
|
||||
this.sensitiveWordsLayout.TabIndex = 0;
|
||||
//
|
||||
// cmbSensitiveWordsPolicy
|
||||
//
|
||||
this.cmbSensitiveWordsPolicy.AccessibleName = "敏感词继承策略";
|
||||
this.cmbSensitiveWordsPolicy.DisplayMember = "Text";
|
||||
this.cmbSensitiveWordsPolicy.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.cmbSensitiveWordsPolicy.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cmbSensitiveWordsPolicy.Location = new System.Drawing.Point(708, 0);
|
||||
this.cmbSensitiveWordsPolicy.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.cmbSensitiveWordsPolicy.Name = "cmbSensitiveWordsPolicy";
|
||||
this.cmbSensitiveWordsPolicy.Size = new System.Drawing.Size(108, 25);
|
||||
this.cmbSensitiveWordsPolicy.TabIndex = 1;
|
||||
this.cmbSensitiveWordsPolicy.ValueMember = "Value";
|
||||
//
|
||||
// txtSensitiveWords
|
||||
//
|
||||
this.txtSensitiveWords.AcceptsReturn = true;
|
||||
this.txtSensitiveWords.AccessibleName = "敏感词";
|
||||
this.txtSensitiveWords.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.txtSensitiveWords.Location = new System.Drawing.Point(0, 0);
|
||||
this.txtSensitiveWords.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.txtSensitiveWords.Multiline = true;
|
||||
this.txtSensitiveWords.Name = "txtSensitiveWords";
|
||||
this.txtSensitiveWords.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.txtSensitiveWords.Size = new System.Drawing.Size(632, 94);
|
||||
this.txtSensitiveWords.TabIndex = 0;
|
||||
//
|
||||
// lblSensitiveWordsPolicy
|
||||
//
|
||||
this.lblSensitiveWordsPolicy.AutoSize = true;
|
||||
this.lblSensitiveWordsPolicy.Location = new System.Drawing.Point(644, 4);
|
||||
this.lblSensitiveWordsPolicy.Margin = new System.Windows.Forms.Padding(12, 4, 8, 0);
|
||||
this.lblSensitiveWordsPolicy.Name = "lblSensitiveWordsPolicy";
|
||||
this.lblSensitiveWordsPolicy.Size = new System.Drawing.Size(56, 17);
|
||||
this.lblSensitiveWordsPolicy.TabIndex = 0;
|
||||
this.lblSensitiveWordsPolicy.Text = "继承策略";
|
||||
//
|
||||
// grpSensitiveWords
|
||||
//
|
||||
this.grpSensitiveWords.Controls.Add(this.sensitiveWordsLayout);
|
||||
this.grpSensitiveWords.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.grpSensitiveWords.Location = new System.Drawing.Point(0, 72);
|
||||
this.grpSensitiveWords.Margin = new System.Windows.Forms.Padding(0, 0, 0, 8);
|
||||
this.grpSensitiveWords.Name = "grpSensitiveWords";
|
||||
this.grpSensitiveWords.Padding = new System.Windows.Forms.Padding(10);
|
||||
this.grpSensitiveWords.Size = new System.Drawing.Size(836, 130);
|
||||
this.grpSensitiveWords.TabIndex = 1;
|
||||
this.grpSensitiveWords.TabStop = false;
|
||||
this.grpSensitiveWords.Text = "敏感词(每行一个)";
|
||||
//
|
||||
// footerLayout
|
||||
//
|
||||
this.footerLayout.AutoSize = true;
|
||||
this.footerLayout.ColumnCount = 1;
|
||||
this.footerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.footerLayout.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.footerLayout.Location = new System.Drawing.Point(0, 214);
|
||||
this.footerLayout.Margin = new System.Windows.Forms.Padding(0, 4, 0, 0);
|
||||
this.footerLayout.Name = "footerLayout";
|
||||
this.footerLayout.RowCount = 1;
|
||||
this.footerLayout.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.footerLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
||||
this.footerLayout.Size = new System.Drawing.Size(836, 0);
|
||||
this.footerLayout.TabIndex = 2;
|
||||
//
|
||||
// btnSave
|
||||
//
|
||||
this.btnSave.Location = new System.Drawing.Point(21, 239);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(75, 33);
|
||||
this.btnSave.TabIndex = 5;
|
||||
this.btnSave.Text = "保存配置";
|
||||
this.btnSave.UseVisualStyleBackColor = true;
|
||||
this.btnSave.Click += new System.EventHandler(this.Save_Click);
|
||||
//
|
||||
// btnLoad
|
||||
//
|
||||
this.btnLoad.Location = new System.Drawing.Point(102, 239);
|
||||
this.btnLoad.Name = "btnLoad";
|
||||
this.btnLoad.Size = new System.Drawing.Size(75, 33);
|
||||
this.btnLoad.TabIndex = 6;
|
||||
this.btnLoad.Text = "读取配置";
|
||||
this.btnLoad.UseVisualStyleBackColor = true;
|
||||
this.btnLoad.Click += new System.EventHandler(this.btnLoad_Click);
|
||||
//
|
||||
// lblStatus
|
||||
//
|
||||
this.lblStatus.AutoSize = true;
|
||||
this.lblStatus.Location = new System.Drawing.Point(196, 247);
|
||||
this.lblStatus.Name = "lblStatus";
|
||||
this.lblStatus.Size = new System.Drawing.Size(43, 17);
|
||||
this.lblStatus.TabIndex = 7;
|
||||
this.lblStatus.Text = "label1";
|
||||
//
|
||||
// SystemUploadConfigForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.AutoScroll = true;
|
||||
this.ClientSize = new System.Drawing.Size(860, 450);
|
||||
this.Controls.Add(this.lblStatus);
|
||||
this.Controls.Add(this.btnLoad);
|
||||
this.Controls.Add(this.btnSave);
|
||||
this.Controls.Add(this.contentLayout);
|
||||
this.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.Name = "SystemUploadConfigForm";
|
||||
this.Padding = new System.Windows.Forms.Padding(12);
|
||||
this.Text = "上货配置";
|
||||
this.contentLayout.ResumeLayout(false);
|
||||
this.contentLayout.PerformLayout();
|
||||
this.grpReturnAddress.ResumeLayout(false);
|
||||
this.returnAddressLayout.ResumeLayout(false);
|
||||
this.returnAddressLayout.PerformLayout();
|
||||
this.sensitiveWordsLayout.ResumeLayout(false);
|
||||
this.sensitiveWordsLayout.PerformLayout();
|
||||
this.grpSensitiveWords.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.TableLayoutPanel contentLayout;
|
||||
private System.Windows.Forms.GroupBox grpReturnAddress;
|
||||
private System.Windows.Forms.TableLayoutPanel returnAddressLayout;
|
||||
private System.Windows.Forms.Label lblReturnAddressPolicy;
|
||||
private TemuKJD.UserComponent.UcCheckBox chkUseOrderReturnWarehouseAddress;
|
||||
private System.Windows.Forms.ComboBox cmbReturnAddressPolicy;
|
||||
private System.Windows.Forms.GroupBox grpSensitiveWords;
|
||||
private System.Windows.Forms.TableLayoutPanel sensitiveWordsLayout;
|
||||
private System.Windows.Forms.Label lblSensitiveWordsPolicy;
|
||||
private System.Windows.Forms.TextBox txtSensitiveWords;
|
||||
private System.Windows.Forms.ComboBox cmbSensitiveWordsPolicy;
|
||||
private System.Windows.Forms.TableLayoutPanel footerLayout;
|
||||
private System.Windows.Forms.Button btnSave;
|
||||
private System.Windows.Forms.Button btnLoad;
|
||||
private System.Windows.Forms.Label lblStatus;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,189 @@
|
||||
using AllBase;
|
||||
using AllBase.Model.Result;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TemuKJD.BaseForms;
|
||||
using Work;
|
||||
|
||||
namespace TemuKJD.KJDForms.SystemForms
|
||||
{
|
||||
public partial class SystemUploadConfigForm : BaseForm
|
||||
{
|
||||
private UserConfig config = new UserConfig();
|
||||
private readonly bool IsMainUser;
|
||||
private bool isBusy;
|
||||
|
||||
public SystemUploadConfigForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
IsMainUser = BaseClass.GroupId == 3;
|
||||
InitializePolicy(cmbSensitiveWordsPolicy);
|
||||
InitializePolicy(cmbReturnAddressPolicy);
|
||||
UpdateAccess();
|
||||
lblStatus.Text = IsMainUser ? "可编辑、保存和读取配置。" : "当前账号只读。";
|
||||
Load += btnLoad_Click;
|
||||
}
|
||||
|
||||
private void UpdateAccess()
|
||||
{
|
||||
bool canEdit = IsMainUser && !isBusy;
|
||||
txtSensitiveWords.ReadOnly = !canEdit;
|
||||
chkUseOrderReturnWarehouseAddress.Enabled = canEdit;
|
||||
cmbSensitiveWordsPolicy.Enabled = canEdit;
|
||||
cmbReturnAddressPolicy.Enabled = canEdit;
|
||||
btnSave.Visible = IsMainUser;
|
||||
btnSave.Enabled = canEdit;
|
||||
btnLoad.Enabled = !isBusy;
|
||||
}
|
||||
|
||||
private async void btnLoad_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (isBusy) return;
|
||||
if (string.IsNullOrWhiteSpace(BaseClass.UserName))
|
||||
{
|
||||
lblStatus.Text = "读取失败:当前登录账号为空。";
|
||||
return;
|
||||
}
|
||||
|
||||
isBusy = true;
|
||||
UpdateAccess();
|
||||
lblStatus.Text = "正在读取配置…";
|
||||
try
|
||||
{
|
||||
ApplyConfig(await LoadConfigAsync());
|
||||
lblStatus.Text = IsMainUser ? "配置已读取。" : "配置已读取,当前账号只读。";
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
lblStatus.Text = "读取失败:" + ex.Message;
|
||||
}
|
||||
finally
|
||||
{
|
||||
isBusy = false;
|
||||
UpdateAccess();
|
||||
}
|
||||
}
|
||||
|
||||
private void ApplyConfig(UserConfig loadedConfig)
|
||||
{
|
||||
loadedConfig.Configs.TryGetValue(UserConfig.SensitiveWordsKey, out var words);
|
||||
loadedConfig.Configs.TryGetValue(UserConfig.UseOrderReturnWarehouseAddressKey, out var address);
|
||||
if ((words != null && !Enum.IsDefined(typeof(UserConfig.InheritPolicy), words.Policy)) ||
|
||||
(address != null && !Enum.IsDefined(typeof(UserConfig.InheritPolicy), address.Policy)))
|
||||
throw new InvalidOperationException("云端配置包含无效的继承策略。");
|
||||
|
||||
bool useAddress = false;
|
||||
if (address != null && !bool.TryParse(address.Value, out useAddress))
|
||||
throw new InvalidOperationException("云端退货仓库地址开关值无效。");
|
||||
|
||||
txtSensitiveWords.Text = words?.Value ?? string.Empty;
|
||||
cmbSensitiveWordsPolicy.SelectedValue = words?.Policy ?? UserConfig.InheritPolicy.Free;
|
||||
chkUseOrderReturnWarehouseAddress.Checked = useAddress;
|
||||
cmbReturnAddressPolicy.SelectedValue = address?.Policy ?? UserConfig.InheritPolicy.Free;
|
||||
config = loadedConfig;
|
||||
}
|
||||
|
||||
private async void Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsMainUser)
|
||||
{
|
||||
lblStatus.Text = "当前账号只读,只有主账号可以保存配置。";
|
||||
return;
|
||||
}
|
||||
if (isBusy) return;
|
||||
if (string.IsNullOrWhiteSpace(BaseClass.UserName))
|
||||
{
|
||||
lblStatus.Text = "保存失败:当前登录账号为空。";
|
||||
return;
|
||||
}
|
||||
|
||||
isBusy = true;
|
||||
UpdateAccess();
|
||||
lblStatus.Text = "正在保存配置…";
|
||||
try
|
||||
{
|
||||
config.Configs[UserConfig.SensitiveWordsKey] = new UserConfig.ConfigItem
|
||||
{
|
||||
Key = UserConfig.SensitiveWordsKey,
|
||||
Value = txtSensitiveWords.Text,
|
||||
Policy = (UserConfig.InheritPolicy)cmbSensitiveWordsPolicy.SelectedValue
|
||||
};
|
||||
config.Configs[UserConfig.UseOrderReturnWarehouseAddressKey] = new UserConfig.ConfigItem
|
||||
{
|
||||
Key = UserConfig.UseOrderReturnWarehouseAddressKey,
|
||||
Value = chkUseOrderReturnWarehouseAddress.Checked.ToString(),
|
||||
Policy = (UserConfig.InheritPolicy)cmbReturnAddressPolicy.SelectedValue
|
||||
};
|
||||
await UploadConfigAsync(JsonConvert.SerializeObject(config));
|
||||
lblStatus.Text = "配置已保存。";
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
lblStatus.Text = "保存失败:" + ex.Message;
|
||||
}
|
||||
finally
|
||||
{
|
||||
isBusy = false;
|
||||
UpdateAccess();
|
||||
}
|
||||
}
|
||||
|
||||
public static async Task<UserConfig> LoadConfigAsync()
|
||||
{
|
||||
var url = BaseClass.BuildObjString("user/getUserConfig");
|
||||
var data = UserLogin.GetSignPostData(new { });
|
||||
var html = await GetHtml.PostJsonAsync(url, data);
|
||||
return ParseConfigResponse(html);
|
||||
}
|
||||
|
||||
private static UserConfig ParseConfigResponse(string html)
|
||||
{
|
||||
var ret = JsonConvert.DeserializeObject<Result<string>>(html);
|
||||
if (ret == null)
|
||||
throw new InvalidOperationException("服务器返回为空。");
|
||||
if (ret.Code != 200)
|
||||
throw new InvalidOperationException(ret.Msg ?? "读取配置失败。");
|
||||
if (ret.Data == null)
|
||||
throw new InvalidOperationException("服务器未返回配置数据。");
|
||||
if (string.IsNullOrWhiteSpace(ret.Data))
|
||||
return new UserConfig();
|
||||
|
||||
var loadedConfig = JsonConvert.DeserializeObject<UserConfig>(ret.Data);
|
||||
if (loadedConfig?.Configs == null)
|
||||
throw new InvalidOperationException("云端配置格式无效。");
|
||||
return loadedConfig;
|
||||
}
|
||||
|
||||
private async Task UploadConfigAsync(string configJson)
|
||||
{
|
||||
if (!IsMainUser)
|
||||
throw new InvalidOperationException("只有主账号可以保存配置。");
|
||||
var url = BaseClass.BuildObjString("user/saveUserConfig");
|
||||
var data = UserLogin.GetSignPostData(new { Config = configJson });
|
||||
var html = await GetHtml.PostJsonAsync(url, data);
|
||||
var ret = JsonConvert.DeserializeObject<Result>(html);
|
||||
if (ret == null)
|
||||
throw new InvalidOperationException("服务器返回为空。");
|
||||
if (ret.Code != 200)
|
||||
throw new InvalidOperationException(ret.Msg ?? "保存配置失败。");
|
||||
}
|
||||
|
||||
private sealed class UserConfigData
|
||||
{
|
||||
[JsonProperty(Required = Required.AllowNull)]
|
||||
public string Config { get; set; }
|
||||
}
|
||||
|
||||
private static void InitializePolicy(ComboBox comboBox)
|
||||
{
|
||||
comboBox.DataSource = new[]
|
||||
{
|
||||
new { Text = "自由", Value = UserConfig.InheritPolicy.Free },
|
||||
new { Text = "锁定", Value = UserConfig.InheritPolicy.Locked },
|
||||
new { Text = "仅追加", Value = UserConfig.InheritPolicy.AppendOnly }
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?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>
|
||||
</root>
|
||||
@@ -0,0 +1,81 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace TemuKJD.UserComponent;
|
||||
|
||||
public class InputDialog : Form
|
||||
{
|
||||
private TextBox txtInput;
|
||||
private Button btnOk;
|
||||
private Button btnCancel;
|
||||
|
||||
/// <summary>用户输入的内容(点确定后有效)</summary>
|
||||
public string InputText { get; private set; } = string.Empty;
|
||||
|
||||
public InputDialog(string prompt, string title = "输入", string defaultValue = "")
|
||||
{
|
||||
// 窗体基本设置
|
||||
this.Text = title;
|
||||
this.FormBorderStyle = FormBorderStyle.FixedDialog;
|
||||
this.StartPosition = FormStartPosition.CenterParent;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.ClientSize = new Size(360, 130);
|
||||
|
||||
// 提示标签
|
||||
var lblPrompt = new Label
|
||||
{
|
||||
Text = prompt,
|
||||
Location = new Point(15, 15),
|
||||
AutoSize = true,
|
||||
MaximumSize = new Size(330, 0)
|
||||
};
|
||||
|
||||
// 输入框
|
||||
txtInput = new TextBox
|
||||
{
|
||||
Text = defaultValue,
|
||||
Location = new Point(15, 45),
|
||||
Width = 330
|
||||
};
|
||||
txtInput.SelectAll();
|
||||
|
||||
// 确定按钮
|
||||
btnOk = new Button
|
||||
{
|
||||
Text = "确定",
|
||||
DialogResult = DialogResult.OK,
|
||||
Location = new Point(185, 85),
|
||||
Width = 75
|
||||
};
|
||||
btnOk.Click += (s, e) =>
|
||||
{
|
||||
InputText = txtInput.Text;
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
};
|
||||
|
||||
// 取消按钮
|
||||
btnCancel = new Button
|
||||
{
|
||||
Text = "取消",
|
||||
DialogResult = DialogResult.Cancel,
|
||||
Location = new Point(270, 85),
|
||||
Width = 75
|
||||
};
|
||||
|
||||
this.Controls.AddRange(new Control[] { lblPrompt, txtInput, btnOk, btnCancel });
|
||||
this.AcceptButton = btnOk;
|
||||
this.CancelButton = btnCancel;
|
||||
}
|
||||
|
||||
/// <summary>便捷静态方法:弹出输入框并返回输入内容,取消返回 null</summary>
|
||||
public static string Show(string prompt, string title = "输入", string defaultValue = "")
|
||||
{
|
||||
using (var dlg = new InputDialog(prompt, title, defaultValue))
|
||||
{
|
||||
return dlg.ShowDialog() == DialogResult.OK ? dlg.InputText : null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -112,6 +112,8 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
authority += chkSpBrand.Text + ","; // 定向品牌
|
||||
if (chkActivityStock.Checked)
|
||||
authority += chkActivityStock.Text + ","; // 活动库存
|
||||
if (chkTraditionalAddress.Checked)
|
||||
authority += chkTraditionalAddress.Text + ","; // 繁体地址
|
||||
data.Append("&authority=" + authority.Trim(','));
|
||||
|
||||
string url = BaseClass.BuildObjString("user/add_user");
|
||||
@@ -267,6 +269,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
chkHot.Checked = false;
|
||||
chkShopPoints.Checked = false;
|
||||
chkProdFission.Checked = false;
|
||||
chkTraditionalAddress.Checked = false;
|
||||
}
|
||||
|
||||
private void btnRefresh_Click(object sender, EventArgs e)
|
||||
@@ -321,6 +324,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
chkCommissionUpdate.Checked = authority.Contains(chkCommissionUpdate.Text);
|
||||
chkHot.Checked = authority.Contains(chkHot.Text);
|
||||
chkWXShowProdGetFromType.Checked = authority.Contains(chkWXShowProdGetFromType.Text);
|
||||
chkTraditionalAddress.Checked = authority.Contains(chkTraditionalAddress.Text);
|
||||
}
|
||||
if (columText == "删除")
|
||||
{
|
||||
|
||||
@@ -29,15 +29,19 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.cm_group = new System.Windows.Forms.ComboBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.cb_safe = new System.Windows.Forms.ComboBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.num_price = new TemuKJD.UserComponent.UcNumericRange();
|
||||
this.num_sold = new TemuKJD.UserComponent.UcNumericRange();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.btn_delGroup = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btnSafeDetection = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btn_createGroup = new DevComponents.DotNetBar.PanelEx();
|
||||
this.btn_removefavorite = new DevComponents.DotNetBar.PanelEx();
|
||||
this.bt_importUploadList = new DevComponents.DotNetBar.PanelEx();
|
||||
this.label5r = new System.Windows.Forms.Label();
|
||||
@@ -62,12 +66,14 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.Column1 = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.c_goodsid = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Column5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colDetectionResult = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
|
||||
this.btn_setGroup = new DevComponents.DotNetBar.PanelEx();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -93,6 +99,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// splitContainer1.Panel1
|
||||
//
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cm_group);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label5);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cb_safe);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label4);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.num_price);
|
||||
@@ -117,9 +125,28 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
|
||||
this.splitContainer1.Panel2.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1719, 530);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1388, 530);
|
||||
this.splitContainer1.SplitterDistance = 87;
|
||||
this.splitContainer1.TabIndex = 35;
|
||||
//
|
||||
// cm_group
|
||||
//
|
||||
this.cm_group.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cm_group.FormattingEnabled = true;
|
||||
this.cm_group.Location = new System.Drawing.Point(678, 14);
|
||||
this.cm_group.Name = "cm_group";
|
||||
this.cm_group.Size = new System.Drawing.Size(134, 25);
|
||||
this.cm_group.TabIndex = 938;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(638, 17);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(44, 17);
|
||||
this.label5.TabIndex = 937;
|
||||
this.label5.Text = "分组:";
|
||||
//
|
||||
// cb_safe
|
||||
//
|
||||
this.cb_safe.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
@@ -130,15 +157,15 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
"安全",
|
||||
"违规",
|
||||
"未检测"});
|
||||
this.cb_safe.Location = new System.Drawing.Point(1141, 13);
|
||||
this.cb_safe.Location = new System.Drawing.Point(678, 43);
|
||||
this.cb_safe.Name = "cb_safe";
|
||||
this.cb_safe.Size = new System.Drawing.Size(97, 25);
|
||||
this.cb_safe.Size = new System.Drawing.Size(134, 25);
|
||||
this.cb_safe.TabIndex = 930;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(1104, 17);
|
||||
this.label4.Location = new System.Drawing.Point(638, 49);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(44, 17);
|
||||
this.label4.TabIndex = 929;
|
||||
@@ -146,8 +173,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// num_price
|
||||
//
|
||||
this.num_price.Compact = true;
|
||||
this.num_price.Location = new System.Drawing.Point(391, 15);
|
||||
this.num_price.Location = new System.Drawing.Point(478, 15);
|
||||
this.num_price.LowerValue = new decimal(new int[] {
|
||||
1,
|
||||
0,
|
||||
@@ -165,7 +191,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
0});
|
||||
this.num_price.Name = "num_price";
|
||||
this.num_price.SeparatorText = "";
|
||||
this.num_price.Size = new System.Drawing.Size(108, 23);
|
||||
this.num_price.Size = new System.Drawing.Size(151, 23);
|
||||
this.num_price.TabIndex = 922;
|
||||
this.num_price.UpperValue = new decimal(new int[] {
|
||||
9999999,
|
||||
@@ -175,8 +201,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// num_sold
|
||||
//
|
||||
this.num_sold.Compact = true;
|
||||
this.num_sold.Location = new System.Drawing.Point(218, 15);
|
||||
this.num_sold.Location = new System.Drawing.Point(247, 15);
|
||||
this.num_sold.LowerValue = new decimal(new int[] {
|
||||
1,
|
||||
0,
|
||||
@@ -194,7 +219,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
0});
|
||||
this.num_sold.Name = "num_sold";
|
||||
this.num_sold.SeparatorText = "";
|
||||
this.num_sold.Size = new System.Drawing.Size(108, 23);
|
||||
this.num_sold.Size = new System.Drawing.Size(155, 23);
|
||||
this.num_sold.TabIndex = 921;
|
||||
this.num_sold.UpperValue = new decimal(new int[] {
|
||||
9999999,
|
||||
@@ -204,22 +229,49 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.btn_setGroup);
|
||||
this.panel1.Controls.Add(this.btn_delGroup);
|
||||
this.panel1.Controls.Add(this.btnSafeDetection);
|
||||
this.panel1.Controls.Add(this.btn_createGroup);
|
||||
this.panel1.Controls.Add(this.btn_removefavorite);
|
||||
this.panel1.Controls.Add(this.bt_importUploadList);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.panel1.Location = new System.Drawing.Point(1509, 0);
|
||||
this.panel1.Location = new System.Drawing.Point(1023, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(210, 50);
|
||||
this.panel1.Size = new System.Drawing.Size(365, 87);
|
||||
this.panel1.TabIndex = 914;
|
||||
//
|
||||
// btn_delGroup
|
||||
//
|
||||
this.btn_delGroup.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btn_delGroup.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btn_delGroup.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btn_delGroup.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btn_delGroup.Location = new System.Drawing.Point(3, 61);
|
||||
this.btn_delGroup.Name = "btn_delGroup";
|
||||
this.btn_delGroup.Size = new System.Drawing.Size(58, 23);
|
||||
this.btn_delGroup.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btn_delGroup.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btn_delGroup.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btn_delGroup.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btn_delGroup.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btn_delGroup.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btn_delGroup.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btn_delGroup.Style.GradientAngle = 90;
|
||||
this.btn_delGroup.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btn_delGroup.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btn_delGroup.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btn_delGroup.TabIndex = 443;
|
||||
this.btn_delGroup.Text = "删除分组";
|
||||
this.btn_delGroup.Click += new System.EventHandler(this.btn_delGroup_Click);
|
||||
//
|
||||
// btnSafeDetection
|
||||
//
|
||||
this.btnSafeDetection.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnSafeDetection.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSafeDetection.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnSafeDetection.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSafeDetection.Location = new System.Drawing.Point(132, 14);
|
||||
this.btnSafeDetection.Location = new System.Drawing.Point(228, 11);
|
||||
this.btnSafeDetection.Name = "btnSafeDetection";
|
||||
this.btnSafeDetection.Size = new System.Drawing.Size(58, 23);
|
||||
this.btnSafeDetection.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -237,13 +289,37 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.btnSafeDetection.Text = "AI检测";
|
||||
this.btnSafeDetection.Click += new System.EventHandler(this.btnSafeDetection_Click);
|
||||
//
|
||||
// btn_createGroup
|
||||
//
|
||||
this.btn_createGroup.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btn_createGroup.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btn_createGroup.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btn_createGroup.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btn_createGroup.Location = new System.Drawing.Point(3, 3);
|
||||
this.btn_createGroup.Name = "btn_createGroup";
|
||||
this.btn_createGroup.Size = new System.Drawing.Size(58, 23);
|
||||
this.btn_createGroup.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btn_createGroup.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btn_createGroup.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btn_createGroup.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btn_createGroup.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btn_createGroup.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btn_createGroup.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btn_createGroup.Style.GradientAngle = 90;
|
||||
this.btn_createGroup.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btn_createGroup.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btn_createGroup.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btn_createGroup.TabIndex = 439;
|
||||
this.btn_createGroup.Text = "创建分组";
|
||||
this.btn_createGroup.Click += new System.EventHandler(this.btn_createGroup_Click);
|
||||
//
|
||||
// btn_removefavorite
|
||||
//
|
||||
this.btn_removefavorite.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btn_removefavorite.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btn_removefavorite.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btn_removefavorite.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btn_removefavorite.Location = new System.Drawing.Point(68, 14);
|
||||
this.btn_removefavorite.Location = new System.Drawing.Point(164, 46);
|
||||
this.btn_removefavorite.Name = "btn_removefavorite";
|
||||
this.btn_removefavorite.Size = new System.Drawing.Size(58, 23);
|
||||
this.btn_removefavorite.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -267,7 +343,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.bt_importUploadList.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.bt_importUploadList.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.bt_importUploadList.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.bt_importUploadList.Location = new System.Drawing.Point(3, 14);
|
||||
this.bt_importUploadList.Location = new System.Drawing.Point(164, 12);
|
||||
this.bt_importUploadList.Name = "bt_importUploadList";
|
||||
this.bt_importUploadList.Size = new System.Drawing.Size(58, 23);
|
||||
this.bt_importUploadList.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -288,7 +364,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// label5r
|
||||
//
|
||||
this.label5r.AutoSize = true;
|
||||
this.label5r.Location = new System.Drawing.Point(942, 16);
|
||||
this.label5r.Location = new System.Drawing.Point(10, 46);
|
||||
this.label5r.Name = "label5r";
|
||||
this.label5r.Size = new System.Drawing.Size(44, 17);
|
||||
this.label5r.TabIndex = 907;
|
||||
@@ -303,16 +379,16 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
"全部",
|
||||
"多多",
|
||||
"微信"});
|
||||
this.cb_Platformr.Location = new System.Drawing.Point(992, 13);
|
||||
this.cb_Platformr.Location = new System.Drawing.Point(60, 43);
|
||||
this.cb_Platformr.Name = "cb_Platformr";
|
||||
this.cb_Platformr.Size = new System.Drawing.Size(97, 25);
|
||||
this.cb_Platformr.Size = new System.Drawing.Size(118, 25);
|
||||
this.cb_Platformr.TabIndex = 906;
|
||||
//
|
||||
// cmbCatSelect2
|
||||
//
|
||||
this.cmbCatSelect2.DropDownWidth = 150;
|
||||
this.cmbCatSelect2.FormattingEnabled = true;
|
||||
this.cmbCatSelect2.Location = new System.Drawing.Point(639, 12);
|
||||
this.cmbCatSelect2.Location = new System.Drawing.Point(338, 46);
|
||||
this.cmbCatSelect2.Name = "cmbCatSelect2";
|
||||
this.cmbCatSelect2.Size = new System.Drawing.Size(97, 25);
|
||||
this.cmbCatSelect2.TabIndex = 897;
|
||||
@@ -321,7 +397,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.cmbCatSelect1.DropDownWidth = 150;
|
||||
this.cmbCatSelect1.FormattingEnabled = true;
|
||||
this.cmbCatSelect1.Location = new System.Drawing.Point(542, 12);
|
||||
this.cmbCatSelect1.Location = new System.Drawing.Point(241, 46);
|
||||
this.cmbCatSelect1.Name = "cmbCatSelect1";
|
||||
this.cmbCatSelect1.Size = new System.Drawing.Size(97, 25);
|
||||
this.cmbCatSelect1.TabIndex = 896;
|
||||
@@ -330,7 +406,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.cmbCatSelect4.DropDownWidth = 150;
|
||||
this.cmbCatSelect4.FormattingEnabled = true;
|
||||
this.cmbCatSelect4.Location = new System.Drawing.Point(833, 12);
|
||||
this.cmbCatSelect4.Location = new System.Drawing.Point(532, 46);
|
||||
this.cmbCatSelect4.Name = "cmbCatSelect4";
|
||||
this.cmbCatSelect4.Size = new System.Drawing.Size(97, 25);
|
||||
this.cmbCatSelect4.TabIndex = 899;
|
||||
@@ -339,7 +415,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.cmbCatSelect3.DropDownWidth = 150;
|
||||
this.cmbCatSelect3.FormattingEnabled = true;
|
||||
this.cmbCatSelect3.Location = new System.Drawing.Point(736, 12);
|
||||
this.cmbCatSelect3.Location = new System.Drawing.Point(435, 46);
|
||||
this.cmbCatSelect3.Name = "cmbCatSelect3";
|
||||
this.cmbCatSelect3.Size = new System.Drawing.Size(97, 25);
|
||||
this.cmbCatSelect3.TabIndex = 898;
|
||||
@@ -347,7 +423,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(332, 17);
|
||||
this.label7.Location = new System.Drawing.Point(408, 17);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(64, 17);
|
||||
this.label7.TabIndex = 485;
|
||||
@@ -357,7 +433,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.ForeColor = System.Drawing.Color.Gray;
|
||||
this.label3.Location = new System.Drawing.Point(294, 17);
|
||||
this.label3.Location = new System.Drawing.Point(323, 17);
|
||||
this.label3.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(13, 17);
|
||||
@@ -383,7 +459,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(504, 17);
|
||||
this.label6.Location = new System.Drawing.Point(197, 51);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(44, 17);
|
||||
this.label6.TabIndex = 440;
|
||||
@@ -395,7 +471,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
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(1257, 14);
|
||||
this.btnSearch.Location = new System.Drawing.Point(829, 15);
|
||||
this.btnSearch.Name = "btnSearch";
|
||||
this.btnSearch.Size = new System.Drawing.Size(58, 23);
|
||||
this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -418,7 +494,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.pnlEmpty.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.pnlEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.pnlEmpty.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.pnlEmpty.Location = new System.Drawing.Point(1321, 15);
|
||||
this.pnlEmpty.Location = new System.Drawing.Point(829, 46);
|
||||
this.pnlEmpty.Name = "pnlEmpty";
|
||||
this.pnlEmpty.Size = new System.Drawing.Size(58, 23);
|
||||
this.pnlEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -440,7 +516,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(184, 17);
|
||||
this.label2.Location = new System.Drawing.Point(197, 17);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(44, 17);
|
||||
this.label2.TabIndex = 373;
|
||||
@@ -466,15 +542,15 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.splitContainer2.Panel2.Controls.Add(this.ucSplitPage1);
|
||||
this.splitContainer2.Panel2.Controls.Add(this.statusBar);
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1719, 476);
|
||||
this.splitContainer2.SplitterDistance = 447;
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1388, 439);
|
||||
this.splitContainer2.SplitterDistance = 410;
|
||||
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(834, 198);
|
||||
this.pbLoading.Location = new System.Drawing.Point(669, 207);
|
||||
this.pbLoading.Name = "pbLoading";
|
||||
this.pbLoading.Size = new System.Drawing.Size(50, 50);
|
||||
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
@@ -485,20 +561,20 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.dgvData.AllowUserToAddRows = false;
|
||||
this.dgvData.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvData.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
dataGridViewCellStyle5.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvData.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.dgvData.AutoRowNumber = true;
|
||||
this.dgvData.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvData.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvData.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.dgvData.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
||||
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvData.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.dgvData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvData.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colSelect,
|
||||
@@ -506,6 +582,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.Column1,
|
||||
this.c_goodsid,
|
||||
this.Column2,
|
||||
this.Column5,
|
||||
this.Column3,
|
||||
this.Column4,
|
||||
this.colDetectionResult});
|
||||
@@ -516,7 +593,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.dgvData.ReadOnly = true;
|
||||
this.dgvData.RowTemplate.Height = 60;
|
||||
this.dgvData.ShowCellErrors = false;
|
||||
this.dgvData.Size = new System.Drawing.Size(1711, 447);
|
||||
this.dgvData.Size = new System.Drawing.Size(1380, 410);
|
||||
this.dgvData.TabIndex = 5;
|
||||
//
|
||||
// colSelect
|
||||
@@ -566,6 +643,13 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.Column2.Name = "Column2";
|
||||
this.Column2.ReadOnly = true;
|
||||
//
|
||||
// Column5
|
||||
//
|
||||
this.Column5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
|
||||
this.Column5.HeaderText = "分组";
|
||||
this.Column5.Name = "Column5";
|
||||
this.Column5.ReadOnly = true;
|
||||
//
|
||||
// Column3
|
||||
//
|
||||
this.Column3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
|
||||
@@ -600,7 +684,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.ucSplitPage1.IsShowPageSize = true;
|
||||
this.ucSplitPage1.IsShowTotalCount = true;
|
||||
this.ucSplitPage1.Location = new System.Drawing.Point(1257, 0);
|
||||
this.ucSplitPage1.Location = new System.Drawing.Point(926, 0);
|
||||
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.ucSplitPage1.MaxPageSizeValue = 2000;
|
||||
this.ucSplitPage1.Name = "ucSplitPage1";
|
||||
@@ -618,7 +702,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
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(1719, 25);
|
||||
this.statusBar.Size = new System.Drawing.Size(1388, 25);
|
||||
this.statusBar.TabIndex = 1;
|
||||
this.statusBar.Visible = false;
|
||||
//
|
||||
@@ -629,10 +713,34 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.numericUpDown1.Size = new System.Drawing.Size(120, 21);
|
||||
this.numericUpDown1.TabIndex = 7;
|
||||
//
|
||||
// btn_setGroup
|
||||
//
|
||||
this.btn_setGroup.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btn_setGroup.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btn_setGroup.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btn_setGroup.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btn_setGroup.Location = new System.Drawing.Point(3, 32);
|
||||
this.btn_setGroup.Name = "btn_setGroup";
|
||||
this.btn_setGroup.Size = new System.Drawing.Size(58, 23);
|
||||
this.btn_setGroup.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btn_setGroup.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btn_setGroup.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btn_setGroup.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btn_setGroup.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btn_setGroup.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btn_setGroup.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btn_setGroup.Style.GradientAngle = 90;
|
||||
this.btn_setGroup.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btn_setGroup.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btn_setGroup.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btn_setGroup.TabIndex = 447;
|
||||
this.btn_setGroup.Text = "设置分组";
|
||||
this.btn_setGroup.Click += new System.EventHandler(this.btn_setGroup_Click);
|
||||
//
|
||||
// CloudGoodsFavoriteForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(1719, 530);
|
||||
this.ClientSize = new System.Drawing.Size(1388, 530);
|
||||
this.Controls.Add(this.splitContainer1);
|
||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.KeyPreview = true;
|
||||
@@ -687,13 +795,19 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
private UserComponent.UcNumericRange num_price;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.ComboBox cb_safe;
|
||||
private System.Windows.Forms.ComboBox cm_group;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private DevComponents.DotNetBar.PanelEx btn_createGroup;
|
||||
private DevComponents.DotNetBar.PanelEx btn_delGroup;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn c_Platform;
|
||||
private System.Windows.Forms.DataGridViewImageColumn Column1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn c_goodsid;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colDetectionResult;
|
||||
private DevComponents.DotNetBar.PanelEx btn_setGroup;
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
using TemuKJD.BLL;
|
||||
using AllBase;
|
||||
using AllBase;
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.Result;
|
||||
using AllBase.Model.Result.PDDResult;
|
||||
@@ -24,12 +23,15 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TemuKJD.BaseForms;
|
||||
using TemuKJD.BLL;
|
||||
using TemuKJD.Extension;
|
||||
using TemuKJD.ToolForms;
|
||||
using TemuKJD.UserComponent;
|
||||
using TemuKJD.UserControls;
|
||||
using Work;
|
||||
using Work.GoodDetail;
|
||||
using Work.Services;
|
||||
using static Work.GoodInfo;
|
||||
|
||||
namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
@@ -68,9 +70,17 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
txt_title.Text = "连衣裙";
|
||||
}
|
||||
}
|
||||
InitGroup();
|
||||
|
||||
|
||||
}
|
||||
private void InitGroup()
|
||||
{
|
||||
cm_group.DataSource = new List<UserFavoriteGroup>() { new UserFavoriteGroup { Id = 0, GroupName = "全部" } }.Concat(CloudGoodsService.UserGroups).ToList();
|
||||
cm_group.ValueMember = "Id";
|
||||
cm_group.DisplayMember = "GroupName";
|
||||
}
|
||||
|
||||
private void InitBindingDataGridView()
|
||||
{
|
||||
this.dgvData.AutoGenerateColumns = false;
|
||||
@@ -80,6 +90,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.colSelect.DataPropertyName = nameof(CloudGoods.IsSelected);
|
||||
this.colSelect.ReadOnly = false;
|
||||
this.Column2.DataPropertyName = nameof(CloudGoods.Title);
|
||||
this.Column5.DataPropertyName = nameof(CloudGoods.GroupName);
|
||||
this.Column3.DataPropertyName = nameof(CloudGoods.Price);
|
||||
this.Column4.DataPropertyName = nameof(CloudGoods.SoldQuantity);
|
||||
this.c_goodsid.DataPropertyName = nameof(CloudGoods.GoodsId);
|
||||
@@ -346,7 +357,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
search.PageIndex = ucSplitPage1.CurrentPage;
|
||||
search.PageSize = ucSplitPage1.PageSize;
|
||||
|
||||
|
||||
var groupId = cm_group.SelectedValue.ParseToInt();
|
||||
search.GroupId = groupId == 0 ? null : groupId;
|
||||
|
||||
await GetGoods(search);
|
||||
}
|
||||
@@ -556,6 +568,87 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
}
|
||||
|
||||
private async void btn_createGroup_Click(object sender, EventArgs e)
|
||||
{
|
||||
string result = InputDialog.Show("新建分组名称:", "分组名", "");
|
||||
if (result != null)
|
||||
{
|
||||
bool ret = await CloudGoodsService.CreateGroup(BaseClass.UserName, result);
|
||||
if (ret)
|
||||
{
|
||||
InitGroup();
|
||||
MessageBox.Show("分组创建成功");
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("分组创建失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private async void btn_delGroup_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (cm_group.SelectedIndex == 0)
|
||||
{
|
||||
MessageBox.Show("禁止删除 全部 分组");
|
||||
return;
|
||||
}
|
||||
string groupName = cm_group.Text;
|
||||
if (BaseMsgForm.ShowConfirm($"是否要删除 【{groupName}】分组", "提示").DialogResult != DialogResult.OK)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var ret = await CloudGoodsService.DelGroupAsync(BaseClass.UserName, groupName);
|
||||
if (ret)
|
||||
{
|
||||
InitGroup();
|
||||
MessageBox.Show($" {groupName} 分组删除成功");
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show($" {groupName} 分组删除失败");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 设置分组
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private async void btn_setGroup_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string groupName = cm_group.Text;
|
||||
if (BaseMsgForm.ShowConfirm($"是否要把选中商品设置为 【{groupName}】分组", "提示").DialogResult != DialogResult.OK)
|
||||
{
|
||||
return;
|
||||
}
|
||||
var ids = dataList.Where(a => a.IsSelected).Select(a => a.GoodsId);
|
||||
int groupId = cm_group.SelectedValue.ParseToInt();
|
||||
var ret = await CloudGoodsService.SetFavoriteGroupAsync(BaseClass.UserName, groupId, ids);
|
||||
if (ret)
|
||||
{
|
||||
MessageBox.Show($" {groupName} 商品分组成功");
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show($" {groupName} 商品分组失败");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -132,6 +132,9 @@
|
||||
<metadata name="Column2.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="Column3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
@@ -29,9 +29,11 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.cm_group = new System.Windows.Forms.ComboBox();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.btn_favorite = new DevComponents.DotNetBar.PanelEx();
|
||||
this.bt_importUploadList = new DevComponents.DotNetBar.PanelEx();
|
||||
@@ -96,6 +98,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.splitContainer1.Panel1.Controls.Add(this.panel1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.label5r);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.bt_importUploadList);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cb_Platform);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cmbCatSelect2);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.cmbCatSelect1);
|
||||
@@ -119,17 +122,37 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
|
||||
this.splitContainer1.Panel2.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1643, 530);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1306, 530);
|
||||
this.splitContainer1.SplitterDistance = 86;
|
||||
this.splitContainer1.TabIndex = 35;
|
||||
//
|
||||
// cm_group
|
||||
//
|
||||
this.cm_group.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cm_group.FormattingEnabled = true;
|
||||
this.cm_group.Location = new System.Drawing.Point(62, 12);
|
||||
this.cm_group.Name = "cm_group";
|
||||
this.cm_group.Size = new System.Drawing.Size(106, 25);
|
||||
this.cm_group.TabIndex = 929;
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(12, 15);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(44, 17);
|
||||
this.label5.TabIndex = 928;
|
||||
this.label5.Text = "分组:";
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.Controls.Add(this.cm_group);
|
||||
this.panel1.Controls.Add(this.label5);
|
||||
this.panel1.Controls.Add(this.btn_favorite);
|
||||
this.panel1.Controls.Add(this.bt_importUploadList);
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.panel1.Location = new System.Drawing.Point(1507, 0);
|
||||
this.panel1.Location = new System.Drawing.Point(1085, 0);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(136, 50);
|
||||
this.panel1.Size = new System.Drawing.Size(221, 86);
|
||||
this.panel1.TabIndex = 914;
|
||||
//
|
||||
// btn_favorite
|
||||
@@ -138,9 +161,9 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.btn_favorite.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btn_favorite.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btn_favorite.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btn_favorite.Location = new System.Drawing.Point(67, 14);
|
||||
this.btn_favorite.Location = new System.Drawing.Point(3, 50);
|
||||
this.btn_favorite.Name = "btn_favorite";
|
||||
this.btn_favorite.Size = new System.Drawing.Size(58, 23);
|
||||
this.btn_favorite.Size = new System.Drawing.Size(165, 23);
|
||||
this.btn_favorite.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btn_favorite.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btn_favorite.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
@@ -162,9 +185,9 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.bt_importUploadList.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.bt_importUploadList.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.bt_importUploadList.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.bt_importUploadList.Location = new System.Drawing.Point(3, 14);
|
||||
this.bt_importUploadList.Location = new System.Drawing.Point(645, 50);
|
||||
this.bt_importUploadList.Name = "bt_importUploadList";
|
||||
this.bt_importUploadList.Size = new System.Drawing.Size(58, 23);
|
||||
this.bt_importUploadList.Size = new System.Drawing.Size(149, 23);
|
||||
this.bt_importUploadList.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.bt_importUploadList.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.bt_importUploadList.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
@@ -183,7 +206,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// label5r
|
||||
//
|
||||
this.label5r.AutoSize = true;
|
||||
this.label5r.Location = new System.Drawing.Point(1048, 16);
|
||||
this.label5r.Location = new System.Drawing.Point(10, 50);
|
||||
this.label5r.Name = "label5r";
|
||||
this.label5r.Size = new System.Drawing.Size(44, 17);
|
||||
this.label5r.TabIndex = 907;
|
||||
@@ -198,16 +221,16 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
"全部",
|
||||
"多多",
|
||||
"微信"});
|
||||
this.cb_Platform.Location = new System.Drawing.Point(1098, 13);
|
||||
this.cb_Platform.Location = new System.Drawing.Point(60, 47);
|
||||
this.cb_Platform.Name = "cb_Platform";
|
||||
this.cb_Platform.Size = new System.Drawing.Size(97, 25);
|
||||
this.cb_Platform.Size = new System.Drawing.Size(116, 25);
|
||||
this.cb_Platform.TabIndex = 906;
|
||||
//
|
||||
// cmbCatSelect2
|
||||
//
|
||||
this.cmbCatSelect2.DropDownWidth = 150;
|
||||
this.cmbCatSelect2.FormattingEnabled = true;
|
||||
this.cmbCatSelect2.Location = new System.Drawing.Point(745, 12);
|
||||
this.cmbCatSelect2.Location = new System.Drawing.Point(332, 47);
|
||||
this.cmbCatSelect2.Name = "cmbCatSelect2";
|
||||
this.cmbCatSelect2.Size = new System.Drawing.Size(97, 25);
|
||||
this.cmbCatSelect2.TabIndex = 897;
|
||||
@@ -216,7 +239,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.cmbCatSelect1.DropDownWidth = 150;
|
||||
this.cmbCatSelect1.FormattingEnabled = true;
|
||||
this.cmbCatSelect1.Location = new System.Drawing.Point(648, 12);
|
||||
this.cmbCatSelect1.Location = new System.Drawing.Point(235, 47);
|
||||
this.cmbCatSelect1.Name = "cmbCatSelect1";
|
||||
this.cmbCatSelect1.Size = new System.Drawing.Size(97, 25);
|
||||
this.cmbCatSelect1.TabIndex = 896;
|
||||
@@ -225,7 +248,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.cmbCatSelect4.DropDownWidth = 150;
|
||||
this.cmbCatSelect4.FormattingEnabled = true;
|
||||
this.cmbCatSelect4.Location = new System.Drawing.Point(939, 12);
|
||||
this.cmbCatSelect4.Location = new System.Drawing.Point(526, 47);
|
||||
this.cmbCatSelect4.Name = "cmbCatSelect4";
|
||||
this.cmbCatSelect4.Size = new System.Drawing.Size(97, 25);
|
||||
this.cmbCatSelect4.TabIndex = 899;
|
||||
@@ -234,7 +257,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.cmbCatSelect3.DropDownWidth = 150;
|
||||
this.cmbCatSelect3.FormattingEnabled = true;
|
||||
this.cmbCatSelect3.Location = new System.Drawing.Point(842, 12);
|
||||
this.cmbCatSelect3.Location = new System.Drawing.Point(429, 47);
|
||||
this.cmbCatSelect3.Name = "cmbCatSelect3";
|
||||
this.cmbCatSelect3.Size = new System.Drawing.Size(97, 25);
|
||||
this.cmbCatSelect3.TabIndex = 898;
|
||||
@@ -243,7 +266,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.ForeColor = System.Drawing.Color.Gray;
|
||||
this.label4.Location = new System.Drawing.Point(518, 17);
|
||||
this.label4.Location = new System.Drawing.Point(542, 18);
|
||||
this.label4.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(13, 17);
|
||||
@@ -252,7 +275,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// num_maxprice
|
||||
//
|
||||
this.num_maxprice.Location = new System.Drawing.Point(534, 14);
|
||||
this.num_maxprice.Location = new System.Drawing.Point(553, 15);
|
||||
this.num_maxprice.Maximum = new decimal(new int[] {
|
||||
99999,
|
||||
0,
|
||||
@@ -264,7 +287,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// num_minprice
|
||||
//
|
||||
this.num_minprice.Location = new System.Drawing.Point(447, 14);
|
||||
this.num_minprice.Location = new System.Drawing.Point(471, 15);
|
||||
this.num_minprice.Maximum = new decimal(new int[] {
|
||||
99999,
|
||||
0,
|
||||
@@ -277,7 +300,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(388, 17);
|
||||
this.label7.Location = new System.Drawing.Point(412, 18);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(64, 17);
|
||||
this.label7.TabIndex = 485;
|
||||
@@ -287,7 +310,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.ForeColor = System.Drawing.Color.Gray;
|
||||
this.label3.Location = new System.Drawing.Point(294, 17);
|
||||
this.label3.Location = new System.Drawing.Point(306, 18);
|
||||
this.label3.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(13, 17);
|
||||
@@ -296,7 +319,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// num_maxsold
|
||||
//
|
||||
this.num_maxsold.Location = new System.Drawing.Point(310, 14);
|
||||
this.num_maxsold.Location = new System.Drawing.Point(322, 15);
|
||||
this.num_maxsold.Maximum = new decimal(new int[] {
|
||||
9999999,
|
||||
0,
|
||||
@@ -308,7 +331,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// num_minsold
|
||||
//
|
||||
this.num_minsold.Location = new System.Drawing.Point(223, 14);
|
||||
this.num_minsold.Location = new System.Drawing.Point(235, 15);
|
||||
this.num_minsold.Maximum = new decimal(new int[] {
|
||||
9999999,
|
||||
0,
|
||||
@@ -337,7 +360,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(610, 17);
|
||||
this.label6.Location = new System.Drawing.Point(185, 50);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(44, 17);
|
||||
this.label6.TabIndex = 440;
|
||||
@@ -349,7 +372,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
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(1208, 14);
|
||||
this.btnSearch.Location = new System.Drawing.Point(645, 15);
|
||||
this.btnSearch.Name = "btnSearch";
|
||||
this.btnSearch.Size = new System.Drawing.Size(58, 23);
|
||||
this.btnSearch.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -372,7 +395,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.pnlEmpty.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.pnlEmpty.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.pnlEmpty.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.pnlEmpty.Location = new System.Drawing.Point(1272, 14);
|
||||
this.pnlEmpty.Location = new System.Drawing.Point(736, 15);
|
||||
this.pnlEmpty.Name = "pnlEmpty";
|
||||
this.pnlEmpty.Size = new System.Drawing.Size(58, 23);
|
||||
this.pnlEmpty.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -394,7 +417,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(184, 17);
|
||||
this.label2.Location = new System.Drawing.Point(185, 18);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(44, 17);
|
||||
this.label2.TabIndex = 373;
|
||||
@@ -420,15 +443,15 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.splitContainer2.Panel2.Controls.Add(this.ucSplitPage1);
|
||||
this.splitContainer2.Panel2.Controls.Add(this.statusBar);
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1643, 476);
|
||||
this.splitContainer2.SplitterDistance = 447;
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1306, 440);
|
||||
this.splitContainer2.SplitterDistance = 411;
|
||||
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(796, 198);
|
||||
this.pbLoading.Location = new System.Drawing.Point(628, 180);
|
||||
this.pbLoading.Name = "pbLoading";
|
||||
this.pbLoading.Size = new System.Drawing.Size(50, 50);
|
||||
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
@@ -439,20 +462,20 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.dgvData.AllowUserToAddRows = false;
|
||||
this.dgvData.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle3.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvData.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvData.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dgvData.AutoRowNumber = true;
|
||||
this.dgvData.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvData.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvData.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvData.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4;
|
||||
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.dgvData.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.dgvData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvData.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colSelect,
|
||||
@@ -469,7 +492,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.dgvData.ReadOnly = true;
|
||||
this.dgvData.RowTemplate.Height = 60;
|
||||
this.dgvData.ShowCellErrors = false;
|
||||
this.dgvData.Size = new System.Drawing.Size(1635, 447);
|
||||
this.dgvData.Size = new System.Drawing.Size(1298, 411);
|
||||
this.dgvData.TabIndex = 5;
|
||||
//
|
||||
// colSelect
|
||||
@@ -543,7 +566,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.ucSplitPage1.IsShowPageSize = true;
|
||||
this.ucSplitPage1.IsShowTotalCount = true;
|
||||
this.ucSplitPage1.Location = new System.Drawing.Point(1181, 0);
|
||||
this.ucSplitPage1.Location = new System.Drawing.Point(844, 0);
|
||||
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.ucSplitPage1.MaxPageSizeValue = 2000;
|
||||
this.ucSplitPage1.Name = "ucSplitPage1";
|
||||
@@ -561,14 +584,14 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
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(1643, 25);
|
||||
this.statusBar.Size = new System.Drawing.Size(1306, 25);
|
||||
this.statusBar.TabIndex = 1;
|
||||
this.statusBar.Visible = false;
|
||||
//
|
||||
// CloudGoodsForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(1643, 530);
|
||||
this.ClientSize = new System.Drawing.Size(1306, 530);
|
||||
this.Controls.Add(this.splitContainer1);
|
||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.KeyPreview = true;
|
||||
@@ -581,6 +604,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
||||
this.splitContainer1.ResumeLayout(false);
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.num_maxprice)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.num_minprice)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.num_maxsold)).EndInit();
|
||||
@@ -632,5 +656,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private DevComponents.DotNetBar.PanelEx btn_favorite;
|
||||
private DevComponents.DotNetBar.PanelEx bt_importUploadList;
|
||||
private System.Windows.Forms.ComboBox cm_group;
|
||||
private System.Windows.Forms.Label label5;
|
||||
}
|
||||
}
|
||||
@@ -40,6 +40,15 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
public CloudGoodsForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.VisibleChanged += CloudGoodsForm_VisibleChanged;
|
||||
}
|
||||
|
||||
private void CloudGoodsForm_VisibleChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Visible == false) return;
|
||||
cm_group.DataSource = new List<UserFavoriteGroup>() { new UserFavoriteGroup { Id = 0, GroupName = "全部" } }.Concat(CloudGoodsService.UserGroups).ToList();
|
||||
cm_group.ValueMember = "Id";
|
||||
cm_group.DisplayMember = "GroupName";
|
||||
}
|
||||
|
||||
private void AdminCardCodeForm_Load(object sender, EventArgs e)
|
||||
@@ -63,6 +72,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
txt_title.Text = "连衣裙";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -447,16 +458,23 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
int err = 0;
|
||||
try
|
||||
{
|
||||
string groupName = cm_group.Text;
|
||||
int groupId = cm_group.SelectedValue.ParseToInt();
|
||||
if (BaseMsgForm.ShowConfirm($"是否要收藏商品为 【{groupName}】分组", "提示").DialogResult != DialogResult.OK)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this.pbLoading.Visible = true;
|
||||
btn_favorite.Enabled = false;
|
||||
|
||||
var goodsIds = dataList.Where(a => a.IsSelected).Select(a => a.GoodsId).ToList();
|
||||
var goodsIds = dataList.Where(a => a.IsSelected).Select(a => a.GoodsId).ToList();
|
||||
if (goodsIds.Count == 0)
|
||||
{
|
||||
BaseMsgForm.ShowInfo($"请勾选商品");
|
||||
return;
|
||||
}
|
||||
var ret = await CloudGoodsService.Favorite(goodsIds);
|
||||
var ret = await CloudGoodsService.Favorite(goodsIds, groupId);
|
||||
succ = ret;
|
||||
if (ret != goodsIds.Count)
|
||||
{
|
||||
|
||||
@@ -32,6 +32,7 @@ using System.Windows.Forms;
|
||||
using TemuKJD.BaseForms;
|
||||
using TemuKJD.BLL;
|
||||
using TemuKJD.Extension;
|
||||
using TemuKJD.KJDForms.SystemForms;
|
||||
using TemuKJD.PDDForms.ProductSelectForms;
|
||||
using TemuKJD.ToolForms;
|
||||
using TemuKJD.UserControls;
|
||||
@@ -86,9 +87,55 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
DataContext<WaitingProductConfig> _bs;
|
||||
|
||||
WaitingProductConfig waiting_product_config = new WaitingProductConfig();
|
||||
private UserConfig UserConfig { get; set; } = new();
|
||||
void InitUserConfig()
|
||||
{
|
||||
Task.Run(async () =>
|
||||
{
|
||||
UserConfig = await SystemUploadConfigForm.LoadConfigAsync();
|
||||
|
||||
if (UserConfig != null)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (UserConfig.TryGetConfig(UserConfig.UseOrderReturnWarehouseAddressKey, out UserConfig.ConfigItem addItem))
|
||||
{
|
||||
chkUseShanghaiReturnOrderAddress.Enabled = addItem.Policy != UserConfig.InheritPolicy.Locked;
|
||||
chkUseShanghaiReturnOrderAddress.Checked = addItem.Value.ParseToBool(false);
|
||||
}
|
||||
|
||||
if (UserConfig.TryGetConfig(UserConfig.SensitiveWordsKey, out UserConfig.ConfigItem filterItem))
|
||||
{
|
||||
txtReplaceText.Enabled = filterItem.Policy != UserConfig.InheritPolicy.Locked;
|
||||
|
||||
if (filterItem.Policy == UserConfig.InheritPolicy.Locked)
|
||||
{
|
||||
txtReplaceText.Enabled = false;
|
||||
txtReplaceText.Text = filterItem.Value;
|
||||
}
|
||||
else if (filterItem.Policy == UserConfig.InheritPolicy.AppendOnly)
|
||||
{
|
||||
txtReplaceText.Enabled = false;
|
||||
txtReplaceText.Text += filterItem.Value;
|
||||
}
|
||||
else if (filterItem.Policy == UserConfig.InheritPolicy.Free)
|
||||
{
|
||||
if (string.IsNullOrEmpty(txtReplaceText.Text))
|
||||
{
|
||||
txtReplaceText.Text = filterItem.Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}));
|
||||
}
|
||||
});
|
||||
}
|
||||
void InitWaitingProductConfigBinding()
|
||||
{
|
||||
InitUserConfig();
|
||||
|
||||
|
||||
Debug.WriteLine($"初始化配置");
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
@@ -125,7 +172,6 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
numFilterSaleCountNum.Bind(_bs, a => a.Value, a => a.FilterSaleCountNum);
|
||||
}));
|
||||
Debug.WriteLine($"初始化配置END");
|
||||
|
||||
}
|
||||
private void UserSelectDbProductForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
@@ -1646,9 +1692,9 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
|
||||
string UploadProduct(ShopLoginInfo shop, KJDDBProduct dbProd, TemuDBProductSelect selectProd, DataGridViewCell cell, DateTime startTime)
|
||||
{
|
||||
PlatformType Platform = (dbProd.product_get_type_text.Contains("多多")
|
||||
PlatformType Platform = (dbProd.product_get_type_text.Contains("多多")
|
||||
? PlatformType.PDD :
|
||||
dbProd.product_get_type_text.Contains("微信")
|
||||
dbProd.product_get_type_text.Contains("微信")
|
||||
? PlatformType.WX :
|
||||
PlatformType.None);
|
||||
|
||||
@@ -7641,6 +7687,15 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
RejectSevenDayReturn = chkRejectSevenDayReturn.Checked;
|
||||
}
|
||||
/// <summary>
|
||||
/// 刷新服务端配置
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void btnLoadConfig_Click(object sender, EventArgs e)
|
||||
{
|
||||
InitUserConfig();
|
||||
}
|
||||
}
|
||||
|
||||
public class WXUpload
|
||||
|
||||
@@ -38,12 +38,11 @@
|
||||
System.Windows.Forms.TreeNode treeNode8 = 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 treeNode11 = new System.Windows.Forms.TreeNode("商品同步");
|
||||
System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("订单管理");
|
||||
System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("订单代发管理");
|
||||
System.Windows.Forms.TreeNode treeNode14 = new System.Windows.Forms.TreeNode("多多商品采集");
|
||||
System.Windows.Forms.TreeNode treeNode15 = new System.Windows.Forms.TreeNode("1688商品采集");
|
||||
System.Windows.Forms.TreeNode treeNode16 = new System.Windows.Forms.TreeNode("商品管理", new System.Windows.Forms.TreeNode[] {
|
||||
System.Windows.Forms.TreeNode treeNode11 = new System.Windows.Forms.TreeNode("订单管理");
|
||||
System.Windows.Forms.TreeNode treeNode12 = new System.Windows.Forms.TreeNode("订单代发管理");
|
||||
System.Windows.Forms.TreeNode treeNode13 = new System.Windows.Forms.TreeNode("多多商品采集");
|
||||
System.Windows.Forms.TreeNode treeNode14 = new System.Windows.Forms.TreeNode("1688商品采集");
|
||||
System.Windows.Forms.TreeNode treeNode15 = new System.Windows.Forms.TreeNode("商品管理", new System.Windows.Forms.TreeNode[] {
|
||||
treeNode1,
|
||||
treeNode2,
|
||||
treeNode3,
|
||||
@@ -57,8 +56,7 @@
|
||||
treeNode11,
|
||||
treeNode12,
|
||||
treeNode13,
|
||||
treeNode14,
|
||||
treeNode15});
|
||||
treeNode14});
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
@@ -169,20 +167,18 @@
|
||||
treeNode9.Text = "活动报名";
|
||||
treeNode10.Name = "达人广场";
|
||||
treeNode10.Text = "达人广场";
|
||||
treeNode11.Name = "商品同步";
|
||||
treeNode11.Text = "商品同步";
|
||||
treeNode12.Name = "订单管理";
|
||||
treeNode12.Text = "订单管理";
|
||||
treeNode13.Name = "订单代发管理";
|
||||
treeNode13.Text = "订单代发管理";
|
||||
treeNode14.Name = "多多商品采集";
|
||||
treeNode14.Text = "多多商品采集";
|
||||
treeNode15.Name = "1688商品采集";
|
||||
treeNode15.Text = "1688商品采集";
|
||||
treeNode16.Name = "商品管理";
|
||||
treeNode16.Text = "商品管理";
|
||||
treeNode11.Name = "订单管理";
|
||||
treeNode11.Text = "订单管理";
|
||||
treeNode12.Name = "订单代发管理";
|
||||
treeNode12.Text = "订单代发管理";
|
||||
treeNode13.Name = "多多商品采集";
|
||||
treeNode13.Text = "多多商品采集";
|
||||
treeNode14.Name = "1688商品采集";
|
||||
treeNode14.Text = "1688商品采集";
|
||||
treeNode15.Name = "商品管理";
|
||||
treeNode15.Text = "商品管理";
|
||||
this.tv.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
|
||||
treeNode16});
|
||||
treeNode15});
|
||||
this.tv.OverForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
|
||||
this.tv.Size = new System.Drawing.Size(140, 521);
|
||||
this.tv.TabIndex = 1;
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
public Lazy<WXProdClearNoVisitForm> wxProdClearNoVisitForm = new Lazy<WXProdClearNoVisitForm>();
|
||||
public Lazy<WXProdClearNoVisit260606Form> wxProdClearNoVisit260606Form = new Lazy<WXProdClearNoVisit260606Form>();
|
||||
public Lazy<WXProdCouponOrderBoomForm> wxProdCouponForm = new Lazy<WXProdCouponOrderBoomForm>();
|
||||
public Lazy<WXProdSyncForm> wxProdSyncForm = new Lazy<WXProdSyncForm>();
|
||||
//public Lazy<WXProdSyncForm> wxProdSyncForm = new Lazy<WXProdSyncForm>();
|
||||
public Lazy<WXFinderSquareForm> wxFinderSquareForm = new Lazy<WXFinderSquareForm>();
|
||||
public Lazy<WXActivity618Form> wxActivityForm = new Lazy<WXActivity618Form>();
|
||||
public Lazy<WXOrderListForm> orderListForm = new Lazy<WXOrderListForm>();
|
||||
@@ -131,9 +131,9 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
case "活动报名":
|
||||
SetForm(wxActivityForm.Value);
|
||||
break;
|
||||
case "商品同步":
|
||||
SetForm(wxProdSyncForm.Value);
|
||||
break;
|
||||
//case "商品同步":
|
||||
// SetForm(wxProdSyncForm.Value);
|
||||
// break;
|
||||
case "订单管理":
|
||||
SetForm(orderListForm.Value);
|
||||
break;
|
||||
|
||||
@@ -30,23 +30,23 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
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.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WXUserCollectAuthProdListForm));
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.btn_import_wx = new DevComponents.DotNetBar.PanelEx();
|
||||
@@ -1331,20 +1331,20 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
this.dgvDbProduct.AllowUserToAddRows = false;
|
||||
this.dgvDbProduct.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle18.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvDbProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle18;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvDbProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dgvDbProduct.AutoRowNumber = true;
|
||||
this.dgvDbProduct.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvDbProduct.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvDbProduct.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle19.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle19.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle19.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle19.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle19.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvDbProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle19;
|
||||
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.dgvDbProduct.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.dgvDbProduct.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvDbProduct.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colSelect,
|
||||
@@ -1428,8 +1428,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// col_product_name
|
||||
//
|
||||
dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.col_product_name.DefaultCellStyle = dataGridViewCellStyle20;
|
||||
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.col_product_name.DefaultCellStyle = dataGridViewCellStyle3;
|
||||
this.col_product_name.FillWeight = 140F;
|
||||
this.col_product_name.HeaderText = "标题";
|
||||
this.col_product_name.Name = "col_product_name";
|
||||
@@ -1472,8 +1472,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// col_spu_id
|
||||
//
|
||||
dataGridViewCellStyle21.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.col_spu_id.DefaultCellStyle = dataGridViewCellStyle21;
|
||||
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.col_spu_id.DefaultCellStyle = dataGridViewCellStyle4;
|
||||
this.col_spu_id.HeaderText = "真实商品Id";
|
||||
this.col_spu_id.Name = "col_spu_id";
|
||||
this.col_spu_id.ReadOnly = true;
|
||||
@@ -1495,8 +1495,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colMainCate
|
||||
//
|
||||
dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colMainCate.DefaultCellStyle = dataGridViewCellStyle22;
|
||||
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colMainCate.DefaultCellStyle = dataGridViewCellStyle5;
|
||||
this.colMainCate.FillWeight = 50F;
|
||||
this.colMainCate.HeaderText = "主类目";
|
||||
this.colMainCate.Name = "colMainCate";
|
||||
@@ -1504,8 +1504,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// col_cat_name
|
||||
//
|
||||
dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.col_cat_name.DefaultCellStyle = dataGridViewCellStyle23;
|
||||
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.col_cat_name.DefaultCellStyle = dataGridViewCellStyle6;
|
||||
this.col_cat_name.FillWeight = 60F;
|
||||
this.col_cat_name.HeaderText = "类目";
|
||||
this.col_cat_name.Name = "col_cat_name";
|
||||
@@ -1520,8 +1520,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// col_ext_code
|
||||
//
|
||||
dataGridViewCellStyle24.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.col_ext_code.DefaultCellStyle = dataGridViewCellStyle24;
|
||||
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.col_ext_code.DefaultCellStyle = dataGridViewCellStyle7;
|
||||
this.col_ext_code.HeaderText = "货号";
|
||||
this.col_ext_code.Name = "col_ext_code";
|
||||
this.col_ext_code.ReadOnly = true;
|
||||
@@ -1529,8 +1529,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colStyleCode
|
||||
//
|
||||
dataGridViewCellStyle25.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colStyleCode.DefaultCellStyle = dataGridViewCellStyle25;
|
||||
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colStyleCode.DefaultCellStyle = dataGridViewCellStyle8;
|
||||
this.colStyleCode.HeaderText = "资料编码/真实上家";
|
||||
this.colStyleCode.Name = "colStyleCode";
|
||||
this.colStyleCode.ReadOnly = true;
|
||||
@@ -1538,8 +1538,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colGroup
|
||||
//
|
||||
dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colGroup.DefaultCellStyle = dataGridViewCellStyle26;
|
||||
dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colGroup.DefaultCellStyle = dataGridViewCellStyle9;
|
||||
this.colGroup.HeaderText = "分组";
|
||||
this.colGroup.Name = "colGroup";
|
||||
this.colGroup.ReadOnly = true;
|
||||
@@ -1547,8 +1547,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colPriceText
|
||||
//
|
||||
dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colPriceText.DefaultCellStyle = dataGridViewCellStyle27;
|
||||
dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colPriceText.DefaultCellStyle = dataGridViewCellStyle10;
|
||||
this.colPriceText.FillWeight = 60F;
|
||||
this.colPriceText.HeaderText = "母店价格";
|
||||
this.colPriceText.Name = "colPriceText";
|
||||
@@ -1598,8 +1598,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// col_notes
|
||||
//
|
||||
dataGridViewCellStyle28.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.col_notes.DefaultCellStyle = dataGridViewCellStyle28;
|
||||
dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.col_notes.DefaultCellStyle = dataGridViewCellStyle11;
|
||||
this.col_notes.FillWeight = 70F;
|
||||
this.col_notes.HeaderText = "备注";
|
||||
this.col_notes.Name = "col_notes";
|
||||
@@ -1607,8 +1607,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colHeadWords
|
||||
//
|
||||
dataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colHeadWords.DefaultCellStyle = dataGridViewCellStyle29;
|
||||
dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colHeadWords.DefaultCellStyle = dataGridViewCellStyle12;
|
||||
this.colHeadWords.HeaderText = "标题前缀";
|
||||
this.colHeadWords.Name = "colHeadWords";
|
||||
this.colHeadWords.ReadOnly = true;
|
||||
@@ -1616,8 +1616,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colEndWords
|
||||
//
|
||||
dataGridViewCellStyle30.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colEndWords.DefaultCellStyle = dataGridViewCellStyle30;
|
||||
dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colEndWords.DefaultCellStyle = dataGridViewCellStyle13;
|
||||
this.colEndWords.HeaderText = "标题后缀";
|
||||
this.colEndWords.Name = "colEndWords";
|
||||
this.colEndWords.ReadOnly = true;
|
||||
@@ -1625,16 +1625,16 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colFissionWords
|
||||
//
|
||||
dataGridViewCellStyle31.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colFissionWords.DefaultCellStyle = dataGridViewCellStyle31;
|
||||
dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colFissionWords.DefaultCellStyle = dataGridViewCellStyle14;
|
||||
this.colFissionWords.HeaderText = "裂变标题";
|
||||
this.colFissionWords.Name = "colFissionWords";
|
||||
this.colFissionWords.ReadOnly = true;
|
||||
//
|
||||
// colGetType
|
||||
//
|
||||
dataGridViewCellStyle32.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colGetType.DefaultCellStyle = dataGridViewCellStyle32;
|
||||
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colGetType.DefaultCellStyle = dataGridViewCellStyle15;
|
||||
this.colGetType.FillWeight = 70F;
|
||||
this.colGetType.HeaderText = "采集来源";
|
||||
this.colGetType.Name = "colGetType";
|
||||
@@ -1667,8 +1667,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colAddTime
|
||||
//
|
||||
dataGridViewCellStyle33.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colAddTime.DefaultCellStyle = dataGridViewCellStyle33;
|
||||
dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colAddTime.DefaultCellStyle = dataGridViewCellStyle16;
|
||||
this.colAddTime.FillWeight = 70F;
|
||||
this.colAddTime.HeaderText = "入库时间";
|
||||
this.colAddTime.Name = "colAddTime";
|
||||
@@ -1676,8 +1676,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
//
|
||||
// colMdyTime
|
||||
//
|
||||
dataGridViewCellStyle34.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colMdyTime.DefaultCellStyle = dataGridViewCellStyle34;
|
||||
dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colMdyTime.DefaultCellStyle = dataGridViewCellStyle17;
|
||||
this.colMdyTime.FillWeight = 70F;
|
||||
this.colMdyTime.HeaderText = "更新时间";
|
||||
this.colMdyTime.Name = "colMdyTime";
|
||||
|
||||
@@ -33,7 +33,10 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
private static WXShopListForm _instance = null;
|
||||
public static WXShopListForm Instance { get { if (_instance == null) { _instance = new WXShopListForm(); } return _instance; } set { _instance = value; } }
|
||||
public static bool IsOperate { get; set; } = false;
|
||||
|
||||
public List<List<ShopSwitchInfo>> shopSwitchInfoListList { get; set; } = new List<List<ShopSwitchInfo>>();
|
||||
private bool isLoading { get; set; } = false;
|
||||
private bool isCancel = false;
|
||||
|
||||
#region 服务端店铺管理
|
||||
public static void UpdateShop()
|
||||
@@ -1315,6 +1318,98 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
numAddTopUp.Value = 1;
|
||||
pnlTopUp.Visible = true;
|
||||
}
|
||||
|
||||
private async void btnAutoBatchLogin_Click(object sender, EventArgs e)
|
||||
{
|
||||
isCancel = false;
|
||||
shopSwitchInfoListList = new List<List<ShopSwitchInfo>>();
|
||||
int i = 1;
|
||||
foreach (var shop in GlobalConfig.ShopLoginList)
|
||||
{
|
||||
if (isCancel)
|
||||
break;
|
||||
|
||||
this.statusBar.pgbTaskProgress.Maximum = GlobalConfig.ShopLoginList.Count;
|
||||
this.statusBar.pgbTaskProgress.Value = i;
|
||||
this.statusBar.pgbTaskProgress.Text = i + "/" + GlobalConfig.ShopLoginList.Count;
|
||||
this.statusBar.lblTaskStatus.Text = "第1步(共2步):正在获取批量登录信息 " + i + "/" + GlobalConfig.ShopLoginList.Count;
|
||||
i++;
|
||||
|
||||
if (shop.LoginStatus != "登录成功")
|
||||
continue;
|
||||
if (shopSwitchInfoListList.Any(ll => ll.Any(l => l.appid == shop.ShopId)))
|
||||
continue;
|
||||
|
||||
var shopSwitchRst = await WXShopSwitch.getShopSwitchListAsync(shop);
|
||||
if (!shopSwitchRst.Contains("\"code\":0"))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
string shopSwitchStr = JsonHelper.SerializeObject(JsonHelper.JObjectParse(shopSwitchRst)["list"]);
|
||||
shopSwitchInfoListList.Add(JsonHelper.DeserializeJsonToList<ShopSwitchInfo>(shopSwitchStr));
|
||||
|
||||
await Task.Delay(100);
|
||||
}
|
||||
|
||||
i = 1;
|
||||
var waitLoginShopList = GlobalConfig.ShopLoginList.Where(s => s.LoginStatus != "登录成功").ToList();
|
||||
foreach (var shop in waitLoginShopList)
|
||||
{
|
||||
if (isCancel)
|
||||
break;
|
||||
|
||||
this.statusBar.pgbTaskProgress.Maximum = waitLoginShopList.Count;
|
||||
this.statusBar.pgbTaskProgress.Value = i;
|
||||
this.statusBar.pgbTaskProgress.Text = i + "/" + waitLoginShopList.Count;
|
||||
this.statusBar.lblTaskStatus.Text = "第2步(共2步):正在自动批量登录 " + i + "/" + waitLoginShopList.Count;
|
||||
i++;
|
||||
|
||||
// 直接比较相等,但是带入if以后就不相等 ?
|
||||
if (shop.LoginStatus.Equals("登录成功"))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var switchInfoListList = shopSwitchInfoListList.Where(ll => ll.Any(l => l.appid == shop.ShopId)).ToList();
|
||||
if (switchInfoListList.Count == 0)
|
||||
continue;
|
||||
|
||||
ShopLoginInfo loginShop = null;
|
||||
foreach (var switchInfoList in switchInfoListList)
|
||||
{
|
||||
for (int a = 0; a < 100 && loginShop?.LoginStatus != "登录成功"; a++)
|
||||
{
|
||||
loginShop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.LoginStatus == "登录成功" && switchInfoList.Any(l => l.appid == s.ShopId));
|
||||
if (loginShop == null)
|
||||
break;
|
||||
else
|
||||
{
|
||||
WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { loginShop }, false);
|
||||
await Task.Delay(100);
|
||||
}
|
||||
}
|
||||
if (loginShop != null)
|
||||
break;
|
||||
}
|
||||
// 店铺不存在或者全部掉线了,继续
|
||||
if (loginShop?.LoginStatus != "登录成功")
|
||||
continue;
|
||||
|
||||
WXShopMultiLoginForm shopMultiLoginForm = new WXShopMultiLoginForm(loginShop);
|
||||
shopMultiLoginForm.openType = EnumOpenType.multi_login;
|
||||
shopMultiLoginForm.isAutoLogin = true;
|
||||
shopMultiLoginForm.ShowDialog();
|
||||
RefreshDataGridView(true, shopMultiLoginForm.lstSwitchShop.ToList());
|
||||
|
||||
await Task.Delay(500);
|
||||
}
|
||||
this.statusBar.lblTaskStatus.Text += isCancel ? " 自动批量登录取消" : " 自动批量登录结束";
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
isCancel = true;
|
||||
}
|
||||
}
|
||||
public class ShopRenewResponse
|
||||
{
|
||||
|
||||
@@ -34,6 +34,8 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
{
|
||||
public static WXShopMultiLoginForm shopMultiLoginFormInstance { get; set; } = null;
|
||||
|
||||
public bool isAutoLogin = false;
|
||||
|
||||
public int CloseAfterSecond { get; set; }
|
||||
public EnumOpenType openType = EnumOpenType.manage;
|
||||
public bool isMultiLogin = false;
|
||||
@@ -100,6 +102,26 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
{
|
||||
BaseMsgForm.ShowError("切换列表解析失败!");
|
||||
}
|
||||
|
||||
if (isAutoLogin)
|
||||
{
|
||||
Thread.Sleep(Randomx.GetId(2500, 3500));
|
||||
while(this.cefWebBrowser == null || this.cefWebBrowser.IsLoading)
|
||||
{
|
||||
if (!this.Created)
|
||||
return;
|
||||
|
||||
Thread.Sleep(100);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!this.Created)
|
||||
return;
|
||||
Invoke(() =>
|
||||
{
|
||||
btnRefreshNum_Click(null, null);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -416,12 +438,18 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
Thread.Sleep(Randomx.GetId(2500, 5000));
|
||||
}
|
||||
|
||||
if (!this.Created)
|
||||
return;
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
btnRefreshNum.Enabled = true;
|
||||
pbLoading.Visible = false;
|
||||
BaseMsgForm.ShowInfo("操作完成!");
|
||||
|
||||
if (this.isAutoLogin)
|
||||
this.Close();
|
||||
else
|
||||
BaseMsgForm.ShowInfo("操作完成!");
|
||||
}));
|
||||
});
|
||||
}
|
||||
@@ -448,8 +476,15 @@ namespace TemuKJD.WXForms.ShopForms
|
||||
string refere = "https://store.weixin.qq.com/shop/home";
|
||||
var result = WXHttpResponseBLL.WeiXinGetResponse(shop, url, refere);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
public static async Task<string> getShopSwitchListAsync(ShopLoginInfo shop)
|
||||
{
|
||||
string url = "https://store.weixin.qq.com/shop-faas/mmecnodelogin/session/getShopSwitchList?token=&lang=zh_CN";
|
||||
string refere = "https://store.weixin.qq.com/shop/home";
|
||||
var result = await WXHttpResponseBLL.WeiXinGetResponseAsync(shop, url, refere);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
public class ShopSwitchInfo
|
||||
{
|
||||
|
||||
@@ -9,6 +9,7 @@ using System.Linq;
|
||||
using Work.Store.Api;
|
||||
using System.Threading.Tasks;
|
||||
using Work.Api.Wx;
|
||||
using AllBase.Model;
|
||||
|
||||
namespace Work.Services
|
||||
{
|
||||
@@ -17,6 +18,23 @@ namespace Work.Services
|
||||
/// </summary>
|
||||
public class CloudGoodsService
|
||||
{
|
||||
public static List<UserFavoriteGroup> UserGroups { get; private set; }
|
||||
static CloudGoodsService()
|
||||
{
|
||||
GetGroups(BaseClass.UserName).ContinueWith(t =>
|
||||
{
|
||||
if (t.IsFaulted)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (t.IsCanceled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
UserGroups = t.Result;
|
||||
});
|
||||
}
|
||||
public static async Task<PageData<CloudGoods>> GetGoods(GoodsSearchRequest request)
|
||||
{
|
||||
return await StoreApiClient.Instance.CloudGoods.GetGoods(request);
|
||||
@@ -178,7 +196,10 @@ namespace Work.Services
|
||||
}
|
||||
logs.Add(new RecordViolationLogRequest
|
||||
{
|
||||
ShopId = shopId, GoodsId = item.GoodsId, ReasonId = reasonId, Action = ViolationLogAction.Report
|
||||
ShopId = shopId,
|
||||
GoodsId = item.GoodsId,
|
||||
ReasonId = reasonId,
|
||||
Action = ViolationLogAction.Report
|
||||
});
|
||||
}
|
||||
await TryRecordLogs(logs);
|
||||
@@ -351,7 +372,10 @@ namespace Work.Services
|
||||
}
|
||||
logs.AddRange(status.ReasonIds.Select(id => new RecordViolationLogRequest
|
||||
{
|
||||
ShopId = shopId, GoodsId = status.GoodsId, ReasonId = id, Action = action
|
||||
ShopId = shopId,
|
||||
GoodsId = status.GoodsId,
|
||||
ReasonId = id,
|
||||
Action = action
|
||||
}));
|
||||
}
|
||||
await TryRecordLogs(logs).ConfigureAwait(false);
|
||||
@@ -409,6 +433,49 @@ namespace Work.Services
|
||||
}
|
||||
|
||||
#region user
|
||||
/// <summary>
|
||||
/// 创建分组
|
||||
/// </summary>
|
||||
/// <param name="userName"></param>
|
||||
/// <param name="groupName"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<bool> CreateGroup(string userName, string groupName)
|
||||
{
|
||||
bool ret = await StoreApiClient.Instance.CloudGoods.CreateGroup(userName, groupName);
|
||||
if (ret)
|
||||
{
|
||||
UserGroups = await GetGroups(userName);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
public static async Task<bool> DelGroupAsync(string userName, string groupName)
|
||||
{
|
||||
bool ret = await StoreApiClient.Instance.CloudGoods.DelGroupAsync(userName, groupName);
|
||||
if (ret)
|
||||
{
|
||||
UserGroups = await GetGroups(userName);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
public static async Task<bool> SetFavoriteGroupAsync(string userName, int groupId, IEnumerable<long> goodsIds)
|
||||
{
|
||||
bool ret = await StoreApiClient.Instance.CloudGoods.SetFavoriteGroupAsync(userName, groupId, goodsIds);
|
||||
if (ret)
|
||||
{
|
||||
UserGroups = await GetGroups(userName);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取分组
|
||||
/// </summary>
|
||||
/// <param name="userName"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<List<UserFavoriteGroup>> GetGroups(string userName)
|
||||
{
|
||||
return await StoreApiClient.Instance.CloudGoods.GetGroups(userName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 搜索收藏
|
||||
/// </summary>
|
||||
@@ -423,7 +490,7 @@ namespace Work.Services
|
||||
{
|
||||
item.DetectionResult = item.IsSafe == null ? "未检测" : item.IsSafe.Value ? "安全" : "违规";
|
||||
}
|
||||
|
||||
|
||||
return page;
|
||||
}
|
||||
|
||||
@@ -434,9 +501,9 @@ namespace Work.Services
|
||||
/// <returns></returns>
|
||||
/// <exception cref="Exception"></exception>
|
||||
|
||||
public static async Task<int> Favorite(List<long> goodsIds)
|
||||
public static async Task<int> Favorite(List<long> goodsIds, int groupId)
|
||||
{
|
||||
return await StoreApiClient.Instance.CloudGoods.Favorite(GetUserName(), goodsIds);
|
||||
return await StoreApiClient.Instance.CloudGoods.Favorite(GetUserName(), goodsIds, groupId);
|
||||
}
|
||||
/// <summary>
|
||||
/// 取消收藏
|
||||
@@ -537,7 +604,10 @@ namespace Work.Services
|
||||
/// 标题(模糊搜索)
|
||||
/// </summary>
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 分组ID
|
||||
/// </summary>
|
||||
public int? GroupId { get; set; }
|
||||
/// <summary>
|
||||
/// 最低价格(元)
|
||||
/// </summary>
|
||||
@@ -663,6 +733,9 @@ namespace Work.Services
|
||||
/// </summary>
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
public int GroupId { get; set; }
|
||||
public string GroupName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
@@ -742,4 +815,10 @@ namespace Work.Services
|
||||
set => SetValue(value);
|
||||
}
|
||||
}
|
||||
|
||||
public class UserFavoriteGroup
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string GroupName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -131,8 +131,10 @@ public sealed class ApiTransport
|
||||
private HttpItem CreateRequest(string route, MethodType method, object body,
|
||||
IDictionary<string, string> query, int timeoutMilliseconds)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(route) ||
|
||||
!Regex.IsMatch(route, @"\A[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*\z"))
|
||||
string pathOnly = route?.Split('?', '#')[0];
|
||||
|
||||
if (string.IsNullOrWhiteSpace(pathOnly) ||
|
||||
!Regex.IsMatch(pathOnly, @"\A[A-Za-z0-9_-]+(/[A-Za-z0-9_-]+)*\z"))
|
||||
throw new ArgumentException("接口必须使用相对路由,例如 Auth/Login。", nameof(route));
|
||||
if (body != null) Validator.ValidateObject(body, new ValidationContext(body), true);
|
||||
if (timeoutMilliseconds <= 0) throw new ArgumentOutOfRangeException(nameof(timeoutMilliseconds));
|
||||
|
||||
@@ -49,14 +49,40 @@ public sealed class CloudGoodsApi
|
||||
public Task<PageData<CloudGoods>> SearchFavorites(UserFavoritesGoodsSearchRequest request)
|
||||
=> _transport.GetRequiredAsync<PageData<CloudGoods>>("CloudGoods/SearchFavorites", MethodType.Post, request);
|
||||
|
||||
public Task<int> Favorite(string userName, List<long> goodsIds)
|
||||
public Task<int> Favorite(string userName, List<long> goodsIds,int groupId)
|
||||
=> _transport.SendAsync<int>("CloudGoods/AddFavorite", MethodType.Post,
|
||||
new { UserName = userName, GoodsIds = goodsIds });
|
||||
new { UserName = userName, GoodsIds = goodsIds, GroupId= groupId });
|
||||
|
||||
public Task<int> RemoveFavorites(string userName, List<long> goodsIds)
|
||||
=> _transport.SendAsync<int>("CloudGoods/RemoveFavorites", MethodType.Post,
|
||||
new { UserName = userName, GoodsIds = goodsIds });
|
||||
|
||||
/// <summary>
|
||||
/// 创建分组
|
||||
/// </summary>
|
||||
/// <param name="userName"></param>
|
||||
/// <param name="groupName"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<bool> CreateGroup(string userName, string groupName)
|
||||
{
|
||||
return await _transport.SendAsync<bool>("CloudGoods/CreateGroup", MethodType.Post,
|
||||
new { UserName = userName, GroupName = groupName });
|
||||
}
|
||||
public async Task<bool> DelGroupAsync(string userName, string groupName)
|
||||
{
|
||||
return await _transport.SendAsync<bool>("CloudGoods/DelGroup", MethodType.Post,
|
||||
new { UserName = userName, GroupName = groupName });
|
||||
}
|
||||
public async Task<bool> SetFavoriteGroupAsync(string userName, int groupId, IEnumerable<long> goodsIds)
|
||||
{
|
||||
return await _transport.SendAsync<bool>("CloudGoods/SetFavoriteGroup", MethodType.Post,
|
||||
new { UserName = userName, GroupId = groupId, GoodsIds = goodsIds });
|
||||
}
|
||||
public async Task<List<UserFavoriteGroup>> GetGroups(string userName)
|
||||
{
|
||||
return await _transport.SendAsync<List<UserFavoriteGroup>>($"CloudGoods/GetGroups?UserName={userName}", MethodType.Post);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>识别上传图片中的文字和品牌 Logo。</summary>
|
||||
public async Task<List<string>> RecognizeAsync(string urlMd5, byte[] jpeg)
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
using CefSharp.DevTools.IndexedDB;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Work;
|
||||
|
||||
/// <summary>
|
||||
/// 主账号云端配置
|
||||
/// </summary>
|
||||
public class UserConfig
|
||||
{
|
||||
public const string SensitiveWordsKey = "SensitiveWords";
|
||||
public const string UseOrderReturnWarehouseAddressKey = "UseOrderReturnWarehouseAddress";
|
||||
|
||||
public Dictionary<string, ConfigItem> Configs { get; set; } = [];
|
||||
public ConfigItem this[string key]
|
||||
{
|
||||
get => Configs.TryGetValue(key, out var item) ? item : null;
|
||||
}
|
||||
public bool TryGetConfig(string key, out ConfigItem item)
|
||||
{
|
||||
return Configs.TryGetValue(key, out item);
|
||||
}
|
||||
public enum InheritPolicy
|
||||
{
|
||||
/// <summary>
|
||||
/// 自由
|
||||
/// </summary>
|
||||
Free = 0,
|
||||
/// <summary>
|
||||
/// 锁定
|
||||
/// </summary>
|
||||
Locked = 1,
|
||||
/// <summary>
|
||||
/// 追加
|
||||
/// </summary>
|
||||
AppendOnly = 2
|
||||
}
|
||||
|
||||
|
||||
public class ConfigItem
|
||||
{
|
||||
public string Key { get; set; }
|
||||
public string Value { get; set; }
|
||||
public InheritPolicy Policy { get; set; } = InheritPolicy.Free;
|
||||
}
|
||||
|
||||
}
|
||||