1选品数据库及库存上传相关功能 2修复部分商品详情信息特殊符号导致无法上传问题
This commit is contained in:
1 parent
adf75f9fc1
commit
281cf2e338
38 files changed
+1496
-440
No files matched your search
@@ -137,6 +137,7 @@
|
|||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
<Reference Include="System.Management" />
|
<Reference Include="System.Management" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Web" />
|
<Reference Include="System.Web" />
|
||||||
<Reference Include="System.Web.Extensions" />
|
<Reference Include="System.Web.Extensions" />
|
||||||
<Reference Include="System.Web.Services" />
|
<Reference Include="System.Web.Services" />
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ namespace AllBase
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 版本ID
|
/// 版本ID
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static int VersionCount = 372;
|
public static int VersionCount = 377;
|
||||||
//public static int VersionCount = 372;
|
//public static int VersionCount = 377;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 版本号
|
/// 版本号
|
||||||
|
|||||||
@@ -13,10 +13,12 @@ using System.Globalization;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.IO.Compression;
|
using System.IO.Compression;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
using System.Net.Http;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
|
||||||
namespace AllBase
|
namespace AllBase
|
||||||
@@ -43,6 +45,74 @@ namespace AllBase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 读取网络图片转为Img以在DataGridView中显示,用于HttpWebRequest直接读取可能403的情况
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="imgUrl"></param>
|
||||||
|
/// <param name="rst"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static Image GetUrlImg(string imgUrl, out string rst)
|
||||||
|
{
|
||||||
|
rst = "";
|
||||||
|
//return LoadImage(imgUrl);
|
||||||
|
Image image = null;
|
||||||
|
HttpWebResponse response = null;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(imgUrl);
|
||||||
|
|
||||||
|
request.KeepAlive = true;
|
||||||
|
request.Headers.Set(HttpRequestHeader.CacheControl, "max-age=0");
|
||||||
|
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.AcceptEncoding, "gzip, deflate");
|
||||||
|
request.Headers.Set(HttpRequestHeader.AcceptLanguage, "zh-CN,zh;q=0.9");
|
||||||
|
//request.IfModifiedSince = DateTime.Parse("Fri, 18 Jul 2025 06:00:49 GMT"); // 没改动不更新,CS程序无缓存不使用
|
||||||
|
|
||||||
|
response = (HttpWebResponse)request.GetResponse();
|
||||||
|
|
||||||
|
using (Stream stream = response.GetResponseStream())
|
||||||
|
{
|
||||||
|
image = Image.FromStream(stream);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (WebException ex)
|
||||||
|
{
|
||||||
|
if (ex.Status == WebExceptionStatus.ProtocolError)
|
||||||
|
{
|
||||||
|
response = (HttpWebResponse)ex.Response;
|
||||||
|
rst = GetProxyHtml.ReadResponse(response);
|
||||||
|
}
|
||||||
|
if (string.IsNullOrEmpty(rst))
|
||||||
|
rst = ex.Message;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
rst = e.Message;
|
||||||
|
}
|
||||||
|
if (response != null)
|
||||||
|
{
|
||||||
|
response.Close();
|
||||||
|
response.Dispose();
|
||||||
|
}
|
||||||
|
return image;
|
||||||
|
|
||||||
|
//try
|
||||||
|
//{
|
||||||
|
// if (!string.IsNullOrEmpty(prodSelect?.main_img))
|
||||||
|
// {
|
||||||
|
// using (Stream stream = WebRequest.Create(prodSelect.main_img.Replace("https", "http")).GetResponse().GetResponseStream())
|
||||||
|
// {
|
||||||
|
// image = Image.FromStream(stream);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
//catch (Exception ex)
|
||||||
|
//{
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
|
||||||
public static Icon LoadIcon(string url)
|
public static Icon LoadIcon(string url)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|||||||
@@ -24,5 +24,9 @@ namespace AllBase.Model.Result
|
|||||||
public DateTime add_time { get; set; }
|
public DateTime add_time { get; set; }
|
||||||
public DateTime mdy_time { get; set; }
|
public DateTime mdy_time { get; set; }
|
||||||
public string notes { get; set; }
|
public string notes { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// (某个店铺)上传次数
|
||||||
|
/// </summary>
|
||||||
|
public int select_count { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -81,6 +81,8 @@ namespace KJD_Web.BLL
|
|||||||
var search_prod_name = RegexUtils.GetStringQuery(ref inputData, "search_prod_name")?.Replace("'", "\\'");
|
var search_prod_name = RegexUtils.GetStringQuery(ref inputData, "search_prod_name")?.Replace("'", "\\'");
|
||||||
var search_notes = RegexUtils.GetStringQuery(ref inputData, "search_notes")?.Replace("'", "\\'");
|
var search_notes = RegexUtils.GetStringQuery(ref inputData, "search_notes")?.Replace("'", "\\'");
|
||||||
var search_db_ids = RegexUtils.GetStringQuery(ref inputData, "search_db_ids")?.Replace("'", "\\'");
|
var search_db_ids = RegexUtils.GetStringQuery(ref inputData, "search_db_ids")?.Replace("'", "\\'");
|
||||||
|
var get_select_count = RegexUtils.GetStringQuery(ref inputData, "get_select_count")?.Replace("'", "\\'");
|
||||||
|
var select_shop_id = RegexUtils.GetStringQuery(ref inputData, "select_shop_id")?.Replace("'", "\\'");
|
||||||
|
|
||||||
int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
|
int page = RegexUtils.GetStringQuery(ref inputData, "page").ParseToInt();
|
||||||
int page_size= RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50);
|
int page_size= RegexUtils.GetStringQuery(ref inputData, "page_size").ParseToInt(50);
|
||||||
@@ -89,20 +91,24 @@ namespace KJD_Web.BLL
|
|||||||
MysqlUtils mySql = new MysqlUtils(conn);
|
MysqlUtils mySql = new MysqlUtils(conn);
|
||||||
|
|
||||||
string sql = "select count(id) from kjd.product where 1=1";
|
string sql = "select count(id) from kjd.product where 1=1";
|
||||||
|
|
||||||
|
string where = "";
|
||||||
if (!string.IsNullOrWhiteSpace(search_spu))
|
if (!string.IsNullOrWhiteSpace(search_spu))
|
||||||
sql += " and spu_id like '%" + search_spu + "%'";
|
where += " and spu_id like '%" + search_spu + "%'";
|
||||||
if (!string.IsNullOrWhiteSpace(search_skc))
|
if (!string.IsNullOrWhiteSpace(search_skc))
|
||||||
sql += " and skc_id like '%" + search_skc + "%'";
|
where += " and skc_id like '%" + search_skc + "%'";
|
||||||
if (!string.IsNullOrWhiteSpace(search_cat))
|
if (!string.IsNullOrWhiteSpace(search_cat))
|
||||||
sql += " and cat_name like '%" + search_cat + "%'";
|
where += " and cat_name like '%" + search_cat + "%'";
|
||||||
if (!string.IsNullOrWhiteSpace(search_ext_code))
|
if (!string.IsNullOrWhiteSpace(search_ext_code))
|
||||||
sql += " and ext_code like '%" + search_ext_code + "%'";
|
where += " and ext_code like '%" + search_ext_code + "%'";
|
||||||
if (!string.IsNullOrWhiteSpace(search_prod_name))
|
if (!string.IsNullOrWhiteSpace(search_prod_name))
|
||||||
sql += " and product_name like '%" + search_prod_name + "%'";
|
where += " and product_name like '%" + search_prod_name + "%'";
|
||||||
if (!string.IsNullOrWhiteSpace(search_notes))
|
if (!string.IsNullOrWhiteSpace(search_notes))
|
||||||
sql += " and notes like '%" + search_notes + "%'";
|
where += " and notes like '%" + search_notes + "%'";
|
||||||
if (!string.IsNullOrEmpty(search_db_ids))
|
if (!string.IsNullOrEmpty(search_db_ids))
|
||||||
sql += " and id in (" + search_db_ids + ")";
|
where += " and id in (" + search_db_ids + ")";
|
||||||
|
sql += where;
|
||||||
|
|
||||||
var count = mySql.ExecuteRowCount(sql);
|
var count = mySql.ExecuteRowCount(sql);
|
||||||
|
|
||||||
DataTable dt;
|
DataTable dt;
|
||||||
@@ -112,26 +118,21 @@ namespace KJD_Web.BLL
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (isDetail)
|
if (isDetail)
|
||||||
sql = "select * from kjd.product where 1=1";
|
sql = "select * from kjd.product p where 1=1";
|
||||||
|
else if (string.IsNullOrEmpty(get_select_count))
|
||||||
|
sql = "select p.id,p.spu_id,p.skc_id,p.cat_id,p.cat_name,p.ext_code,p.product_name,p.main_img,p.notes," +
|
||||||
|
"p.add_time,p.mdy_time from kjd.product p where 1=1";
|
||||||
else
|
else
|
||||||
sql = "select id,spu_id,skc_id,cat_id,cat_name,ext_code,product_name,main_img,notes,add_time,mdy_time from kjd.product where 1=1";
|
sql = "SELECT p.id,p.spu_id,p.skc_id,p.cat_id,p.cat_name,p.ext_code,p.product_name,p.main_img,p.notes," +
|
||||||
|
"p.add_time,p.mdy_time,COUNT(s.id) AS select_count FROM kjd.product p " +
|
||||||
|
"LEFT JOIN kjd.product_select s ON p.id=s.out_product_id AND s.shop_id='" + select_shop_id + "' WHERE 1=1";
|
||||||
|
|
||||||
|
//where子句
|
||||||
|
sql += where;
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(search_spu))
|
sql += " group by p.id";
|
||||||
sql += " and spu_id like '%" + search_spu + "%'";
|
sql += " order by p.id desc";
|
||||||
if (!string.IsNullOrWhiteSpace(search_skc))
|
|
||||||
sql += " and skc_id like '%" + search_skc + "%'";
|
|
||||||
if (!string.IsNullOrWhiteSpace(search_cat))
|
|
||||||
sql += " and cat_name like '%" + search_cat + "%'";
|
|
||||||
if (!string.IsNullOrWhiteSpace(search_ext_code))
|
|
||||||
sql += " and ext_code like '%" + search_ext_code + "%'";
|
|
||||||
if (!string.IsNullOrWhiteSpace(search_prod_name))
|
|
||||||
sql += " and product_name like '%" + search_prod_name + "%'";
|
|
||||||
if (!string.IsNullOrWhiteSpace(search_notes))
|
|
||||||
sql += " and notes like '%" + search_notes + "%'";
|
|
||||||
if (!string.IsNullOrEmpty(search_db_ids))
|
|
||||||
sql += " and id in (" + search_db_ids + ")";
|
|
||||||
sql += " order by id desc";
|
|
||||||
sql += " limit " + Math.Max(page - 1, 0) * page_size + "," + page_size;
|
sql += " limit " + Math.Max(page - 1, 0) * page_size + "," + page_size;
|
||||||
dt = mySql.ExecuteDataTable(sql);
|
dt = mySql.ExecuteDataTable(sql);
|
||||||
}
|
}
|
||||||
@@ -165,6 +166,10 @@ namespace KJD_Web.BLL
|
|||||||
prod.product_json = row["product_json"].ToString();
|
prod.product_json = row["product_json"].ToString();
|
||||||
prod.size_json = row["size_json"].ToString();
|
prod.size_json = row["size_json"].ToString();
|
||||||
}
|
}
|
||||||
|
if (!string.IsNullOrEmpty(get_select_count))
|
||||||
|
{
|
||||||
|
prod.select_count = row["select_count"].ParseToInt();
|
||||||
|
}
|
||||||
productLst.Add(prod);
|
productLst.Add(prod);
|
||||||
}
|
}
|
||||||
var data = JsonUtils.SerializerObjectToString(productLst);
|
var data = JsonUtils.SerializerObjectToString(productLst);
|
||||||
@@ -587,5 +592,45 @@ namespace KJD_Web.BLL
|
|||||||
}
|
}
|
||||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string MdyProductSelectNotes(string inputData, bool isAdmin = false)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(inputData))
|
||||||
|
{
|
||||||
|
var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt();
|
||||||
|
string time1 = RegexUtils.GetStringQuery(ref inputData, "code");
|
||||||
|
if (time1 != EncrypUtil.Encryption(time))
|
||||||
|
return "{\"code\":50000,\"msg\":\"校验失败\"}";
|
||||||
|
|
||||||
|
var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name")?.Replace("'", "\\'");
|
||||||
|
var id = RegexUtils.GetStringQuery(ref inputData, "db_id")?.Replace("'", "\\'");
|
||||||
|
string notes = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "notes"))?.Replace("'", "\\'");
|
||||||
|
|
||||||
|
if (string.IsNullOrEmpty(user_name))
|
||||||
|
{
|
||||||
|
return "{\"code\":500,\"msg\":\"没有用户名\"}";
|
||||||
|
}
|
||||||
|
|
||||||
|
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||||
|
MysqlUtils mySql = new MysqlUtils(conn);
|
||||||
|
string sql = "update kjd.product_select set";
|
||||||
|
if (notes != null)
|
||||||
|
sql += " notes='" + notes + "',";
|
||||||
|
sql = sql.TrimEnd(',');
|
||||||
|
sql += " where id=" + id + ";";
|
||||||
|
|
||||||
|
var rst = mySql.ExecuteNonQuery(sql);
|
||||||
|
mySql.Close();
|
||||||
|
if (rst)
|
||||||
|
{
|
||||||
|
return "{\"code\":200,\"msg\":\"success\"}";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return "{\"code\":500,\"msg\":\"更新失败:" + mySql.Message + "\"}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
using KJD_Web.Model;
|
using KJD_Web.Model;
|
||||||
using KJD_Web.Utils;
|
using KJD_Web.Utils;
|
||||||
using MySql.Data.MySqlClient;
|
using MySql.Data.MySqlClient;
|
||||||
|
using MySqlX.XDevAPI.Common;
|
||||||
using NaiBa.Util.Extension;
|
using NaiBa.Util.Extension;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@@ -43,14 +44,21 @@ namespace KJD_Web.BLL
|
|||||||
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||||
MysqlUtils mySql = new MysqlUtils(conn);
|
MysqlUtils mySql = new MysqlUtils(conn);
|
||||||
string sql = "";
|
string sql = "";
|
||||||
|
var json_sign = RegexUtils.GetStringJson(ref product_json, "signedImageUrl"); // 取商品json数据里不同签名的部分
|
||||||
|
var product_md5 = EncrypUtil.GetMd5(product_json.Replace(json_sign, "") + size_json);
|
||||||
|
sql = "select id from kjd.third_product where product_md5='" + product_md5 + "'";
|
||||||
|
var rst = mySql.ExecuteFirstInt(sql).ParseToLong();
|
||||||
|
if (rst <= 0)
|
||||||
|
{
|
||||||
|
|
||||||
sql = "insert into kjd.third_product (spu_id,skc_id,cat_id,cat_name,product_name,ext_code,main_img,product_json,size_json,notes,add_time,mdy_time) " +
|
sql = "insert into kjd.third_product (spu_id,skc_id,cat_id,cat_name,product_name,ext_code,main_img,product_json,size_json,notes,product_md5,add_time,mdy_time) " +
|
||||||
"values ('" + spu_id + "','" + skc_id + "','" + cat_id + "','" + cat_name + "','" + product_name + "','" +
|
"values ('" + spu_id + "','" + skc_id + "','" + cat_id + "','" + cat_name + "','" + product_name + "','" +
|
||||||
ext_code + "','" + main_img + "','" + product_json + "','" + size_json + "','" + notes + "','" +
|
ext_code + "','" + main_img + "','" + product_json + "','" + size_json + "','" + notes + "','" + product_md5 + "','" +
|
||||||
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "','" +
|
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "','" +
|
||||||
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "');";
|
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "');";
|
||||||
var rst = mySql.ExecuteInsertId(sql);
|
rst = mySql.ExecuteInsertId(sql);
|
||||||
mySql.Close();
|
mySql.Close();
|
||||||
|
}
|
||||||
if (rst > 0)
|
if (rst > 0)
|
||||||
{
|
{
|
||||||
return "{\"code\":200,\"msg\":\"success\",\"id\":" + rst + "}";
|
return "{\"code\":200,\"msg\":\"success\",\"id\":" + rst + "}";
|
||||||
@@ -587,5 +595,45 @@ namespace KJD_Web.BLL
|
|||||||
}
|
}
|
||||||
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string MdyProductSelectNotes(string inputData, bool isAdmin = false)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(inputData))
|
||||||
|
{
|
||||||
|
var time = RegexUtils.GetStringQuery(ref inputData, "time").ParseToInt();
|
||||||
|
string time1 = RegexUtils.GetStringQuery(ref inputData, "code");
|
||||||
|
if (time1 != EncrypUtil.Encryption(time))
|
||||||
|
return "{\"code\":50000,\"msg\":\"校验失败\"}";
|
||||||
|
|
||||||
|
var user_name = RegexUtils.GetStringQuery(ref inputData, "user_name")?.Replace("'", "\\'");
|
||||||
|
var id = RegexUtils.GetStringQuery(ref inputData, "db_id")?.Replace("'", "\\'");
|
||||||
|
string notes = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "notes"))?.Replace("'", "\\'");
|
||||||
|
|
||||||
|
if (string.IsNullOrEmpty(user_name))
|
||||||
|
{
|
||||||
|
return "{\"code\":500,\"msg\":\"没有用户名\"}";
|
||||||
|
}
|
||||||
|
|
||||||
|
string conn = System.Configuration.ConfigurationManager.ConnectionStrings["ConnKJD"].ConnectionString;
|
||||||
|
MysqlUtils mySql = new MysqlUtils(conn);
|
||||||
|
string sql = "update kjd.third_product_select set";
|
||||||
|
if (notes != null)
|
||||||
|
sql += " notes='" + notes + "',";
|
||||||
|
sql = sql.TrimEnd(',');
|
||||||
|
sql += " where id=" + id + ";";
|
||||||
|
|
||||||
|
var rst = mySql.ExecuteNonQuery(sql);
|
||||||
|
mySql.Close();
|
||||||
|
if (rst)
|
||||||
|
{
|
||||||
|
return "{\"code\":200,\"msg\":\"success\"}";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return "{\"code\":500,\"msg\":\"更新失败:" + mySql.Message + "\"}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "{\"code\":19999,\"msg\":\"输入为空\"}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -106,10 +106,10 @@ namespace KJD_Web.BLL
|
|||||||
shopList.Add(shop);
|
shopList.Add(shop);
|
||||||
}
|
}
|
||||||
int month = DateTime.Now.Month;
|
int month = DateTime.Now.Month;
|
||||||
var shopMonthList = shopList.Where(s => s.add_product_month != DateTime.Now.Month);
|
var shopMonthList = shopList.Where(s => s.add_product_month != month);
|
||||||
if (shopMonthList.Count() > 0)
|
if (shopMonthList.Count() > 0)
|
||||||
{
|
{
|
||||||
int remainCount = 40;
|
int remainCount = 100;
|
||||||
var shopMonthIdList = shopMonthList.Select(s => s.id);
|
var shopMonthIdList = shopMonthList.Select(s => s.id);
|
||||||
mySql = new MysqlUtils(conn);
|
mySql = new MysqlUtils(conn);
|
||||||
string ids = string.Join(",", shopMonthIdList);
|
string ids = string.Join(",", shopMonthIdList);
|
||||||
|
|||||||
@@ -23,5 +23,6 @@ namespace KJD_Web.Model
|
|||||||
public DateTime add_time { get; set; }
|
public DateTime add_time { get; set; }
|
||||||
public DateTime mdy_time { get; set; }
|
public DateTime mdy_time { get; set; }
|
||||||
public string notes { get; set; }
|
public string notes { get; set; }
|
||||||
|
public int select_count { get; set; } = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -193,5 +193,17 @@ namespace KJD_Web
|
|||||||
Context.Response.Write(result);
|
Context.Response.Write(result);
|
||||||
Context.Response.End();
|
Context.Response.End();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[WebMethod]
|
||||||
|
public void mdy_product_select_notes()
|
||||||
|
{
|
||||||
|
string jsontext = GetRequestJsonString();
|
||||||
|
|
||||||
|
var result = jsontext;
|
||||||
|
result = new ProductManage().MdyProductSelectNotes(jsontext);
|
||||||
|
|
||||||
|
Context.Response.Write(result);
|
||||||
|
Context.Response.End();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -193,5 +193,18 @@ namespace KJD_Web
|
|||||||
Context.Response.Write(result);
|
Context.Response.Write(result);
|
||||||
Context.Response.End();
|
Context.Response.End();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[WebMethod]
|
||||||
|
public void mdy_product_select_notes()
|
||||||
|
{
|
||||||
|
string jsontext = GetRequestJsonString();
|
||||||
|
|
||||||
|
var result = jsontext;
|
||||||
|
result = new ProductThirdManage().MdyProductSelectNotes(jsontext);
|
||||||
|
|
||||||
|
Context.Response.Write(result);
|
||||||
|
Context.Response.End();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+18
-9
@@ -307,18 +307,24 @@
|
|||||||
<DependentUpon>PriceManageForm.cs</DependentUpon>
|
<DependentUpon>PriceManageForm.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="KJDForms\ProductForms\ProductResponse\KJDHttpResponse.cs" />
|
<Compile Include="KJDForms\ProductForms\ProductResponse\KJDHttpResponse.cs" />
|
||||||
<Compile Include="KJDForms\ProductSelectForms\DbProductListForm.cs">
|
|
||||||
<SubType>Form</SubType>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="KJDForms\ProductSelectForms\DbProductListForm.Designer.cs">
|
|
||||||
<DependentUpon>DbProductListForm.cs</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="KJDForms\ProductSelectForms\DbProductEditNotesForm.cs">
|
<Compile Include="KJDForms\ProductSelectForms\DbProductEditNotesForm.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="KJDForms\ProductSelectForms\DbProductEditNotesForm.Designer.cs">
|
<Compile Include="KJDForms\ProductSelectForms\DbProductEditNotesForm.Designer.cs">
|
||||||
<DependentUpon>DbProductEditNotesForm.cs</DependentUpon>
|
<DependentUpon>DbProductEditNotesForm.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="KJDForms\ProductSelectForms\ProductSelectEditNotesForm.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="KJDForms\ProductSelectForms\ProductSelectEditNotesForm.Designer.cs">
|
||||||
|
<DependentUpon>ProductSelectEditNotesForm.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="KJDForms\ProductSelectForms\DbProductListForm.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="KJDForms\ProductSelectForms\DbProductListForm.Designer.cs">
|
||||||
|
<DependentUpon>DbProductListForm.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="KJDForms\ProductSelectForms\DbProductSelectListManageForm.cs">
|
<Compile Include="KJDForms\ProductSelectForms\DbProductSelectListManageForm.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -954,12 +960,15 @@
|
|||||||
<EmbeddedResource Include="KJDForms\ProductForms\PriceManageForm.resx">
|
<EmbeddedResource Include="KJDForms\ProductForms\PriceManageForm.resx">
|
||||||
<DependentUpon>PriceManageForm.cs</DependentUpon>
|
<DependentUpon>PriceManageForm.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="KJDForms\ProductSelectForms\DbProductListForm.resx">
|
|
||||||
<DependentUpon>DbProductListForm.cs</DependentUpon>
|
|
||||||
</EmbeddedResource>
|
|
||||||
<EmbeddedResource Include="KJDForms\ProductSelectForms\DbProductEditNotesForm.resx">
|
<EmbeddedResource Include="KJDForms\ProductSelectForms\DbProductEditNotesForm.resx">
|
||||||
<DependentUpon>DbProductEditNotesForm.cs</DependentUpon>
|
<DependentUpon>DbProductEditNotesForm.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="KJDForms\ProductSelectForms\ProductSelectEditNotesForm.resx">
|
||||||
|
<DependentUpon>ProductSelectEditNotesForm.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="KJDForms\ProductSelectForms\DbProductListForm.resx">
|
||||||
|
<DependentUpon>DbProductListForm.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="KJDForms\ProductSelectForms\DbProductSelectListManageForm.resx">
|
<EmbeddedResource Include="KJDForms\ProductSelectForms\DbProductSelectListManageForm.resx">
|
||||||
<DependentUpon>DbProductSelectListManageForm.cs</DependentUpon>
|
<DependentUpon>DbProductSelectListManageForm.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
|||||||
@@ -206,12 +206,26 @@ namespace TemuKJD.KJDForms.AdminForms
|
|||||||
IsOperate = false;
|
IsOperate = false;
|
||||||
break;
|
break;
|
||||||
case "复制Cookies":
|
case "复制Cookies":
|
||||||
string cook = shop.Cookies;
|
|
||||||
string cookJs = "";
|
string cookJs = "";
|
||||||
foreach (var cookie in shop.Cookies.Split(';'))
|
foreach (var shopCook in shop.Cookies.Split(';'))
|
||||||
{
|
{
|
||||||
cookJs += "\r\ndocument.cookie='" + cookie.Trim() + "';";
|
var cookie = shopCook.Trim();
|
||||||
|
if (cookie.StartsWith("mc-pc-cookie-captcha-token="))
|
||||||
|
continue;
|
||||||
|
//if (!cookie.StartsWith("SUB_PASS_ID") && !cookie.StartsWith("_nano_fp"))
|
||||||
|
cookJs += "\r\ndocument.cookie='" + cookie.Substring(0, Math.Max(0, cookie.IndexOf("="))) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';";
|
||||||
}
|
}
|
||||||
|
foreach (var shopCook in shop.Cookies.Split(';'))
|
||||||
|
{
|
||||||
|
var cookie = shopCook.Trim();
|
||||||
|
if (cookie.StartsWith("mc-pc-cookie-captcha-token="))
|
||||||
|
continue;
|
||||||
|
if (!cookie.StartsWith("SUB_PASS_ID") && !cookie.StartsWith("_nano_fp"))
|
||||||
|
cookJs += "\r\ndocument.cookie='" + cookie + "; domain=.kuajingmaihuo.com;';";
|
||||||
|
else
|
||||||
|
cookJs += "\r\ndocument.cookie='" + cookie + "; domain=seller.kuajingmaihuo.com;';";
|
||||||
|
}
|
||||||
|
cookJs += "\r\nwindow.localStorage.setItem('" + "mall-info-id" + "', '" + shop.ShopId + "');";
|
||||||
cookJs += "\r\nsetTimeout(() => { window.location.href='https://seller.kuajingmaihuo.com'; }, 200)";
|
cookJs += "\r\nsetTimeout(() => { window.location.href='https://seller.kuajingmaihuo.com'; }, 200)";
|
||||||
Clipboard.SetDataObject(cookJs);
|
Clipboard.SetDataObject(cookJs);
|
||||||
BaseMsgForm.ShowInfo("复制成功");
|
BaseMsgForm.ShowInfo("复制成功");
|
||||||
|
|||||||
@@ -297,12 +297,16 @@ namespace TemuKJD.KJDForms.AdminForms
|
|||||||
//cefWebBrowser.Load(shopMainUrl);
|
//cefWebBrowser.Load(shopMainUrl);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
//根据登录的具体店铺设置local storage
|
||||||
var storageJsCode = "window.localStorage.setItem('" + "mall-info-id" + "', '" + shop.ShopId + "');\r\n";
|
if (!string.IsNullOrEmpty(shop.ShopId))
|
||||||
while (!cefWebBrowser.IsBrowserInitialized || !cefWebBrowser.GetBrowser().MainFrame.IsValid)
|
{
|
||||||
Thread.Sleep(20);
|
var storageJsCode = "window.localStorage.setItem('" + "mall-info-id" + "', '" + shop.ShopId + "');\r\n";
|
||||||
cefWebBrowser.GetBrowser().MainFrame.ExecuteJavaScriptAsync(storageJsCode);
|
while (!cefWebBrowser.IsBrowserInitialized || !cefWebBrowser.GetBrowser().MainFrame.IsValid)
|
||||||
|
Thread.Sleep(20);
|
||||||
|
cefWebBrowser.GetBrowser().MainFrame.ExecuteJavaScriptAsync(storageJsCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
//不是登录的话就此返回
|
||||||
if (openType != EnumOpenType.login)
|
if (openType != EnumOpenType.login)
|
||||||
{
|
{
|
||||||
Invoke(new Action(() =>
|
Invoke(new Action(() =>
|
||||||
|
|||||||
@@ -44,6 +44,11 @@ namespace TemuKJD.KJDForms.AdminForms
|
|||||||
var prodId1 = prodId;
|
var prodId1 = prodId;
|
||||||
string success_err_msg = "";
|
string success_err_msg = "";
|
||||||
var html = ProductQuery(shop1, prodId1.ToString());
|
var html = ProductQuery(shop1, prodId1.ToString());
|
||||||
|
|
||||||
|
var testHtml1 = GetHtml.UrlEncodeUtf8(html);
|
||||||
|
var testHtml2 = GetHtml.UrlDecode(testHtml1);
|
||||||
|
testHtml1 = HttpUtility.UrlEncode(html, Encoding.UTF8);
|
||||||
|
testHtml2 = HttpUtility.UrlDecode(testHtml1);
|
||||||
if (!html.Contains("\"success\":true") || !html.Contains("\"result\""))
|
if (!html.Contains("\"success\":true") || !html.Contains("\"result\""))
|
||||||
{
|
{
|
||||||
OnInfoReceived("商品获取失败!" + BaseRegex.GetStringJson(ref html, "errorMsg"));
|
OnInfoReceived("商品获取失败!" + BaseRegex.GetStringJson(ref html, "errorMsg"));
|
||||||
@@ -88,7 +93,7 @@ namespace TemuKJD.KJDForms.AdminForms
|
|||||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||||
{
|
{
|
||||||
string msg = "选品商品保存失败!请检查网络连接:" +
|
string msg = "选品商品保存失败!请检查网络连接:" +
|
||||||
BaseRegex.GetStringJson(ref html, "msg").Replace("'", "\\'").Replace("\"","\\\"");
|
BaseRegex.GetStringJson(ref html, "msg");
|
||||||
OnInfoReceived(msg);
|
OnInfoReceived(msg);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -26,7 +26,15 @@ namespace TemuKJD.KJDForms.BaseForms
|
|||||||
string title = string.IsNullOrEmpty(caption) ? "系统提示" : caption;
|
string title = string.IsNullOrEmpty(caption) ? "系统提示" : caption;
|
||||||
BaseMsgForm msgBox = CreateMsgForm(msg, fl, title);
|
BaseMsgForm msgBox = CreateMsgForm(msg, fl, title);
|
||||||
msgBox.picTip.Image = global::TemuKJD.Properties.Resources.BaseMsgInfo;
|
msgBox.picTip.Image = global::TemuKJD.Properties.Resources.BaseMsgInfo;
|
||||||
msgBox.ShowDialog();
|
|
||||||
|
if (MainForm.instance != null && MainForm.instance.InvokeRequired)
|
||||||
|
MainForm.instance.Invoke(new Action(() =>
|
||||||
|
{
|
||||||
|
msgBox.ShowDialog();
|
||||||
|
}));
|
||||||
|
else
|
||||||
|
msgBox.ShowDialog();
|
||||||
|
|
||||||
return msgBox;
|
return msgBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,7 +56,13 @@ namespace TemuKJD.KJDForms.BaseForms
|
|||||||
string title = string.IsNullOrEmpty(caption) ? "系统错误" : caption;
|
string title = string.IsNullOrEmpty(caption) ? "系统错误" : caption;
|
||||||
BaseMsgForm msgBox = CreateMsgForm(msg, fl, title);
|
BaseMsgForm msgBox = CreateMsgForm(msg, fl, title);
|
||||||
msgBox.picTip.Image = global::TemuKJD.Properties.Resources.BaseMsgErr;
|
msgBox.picTip.Image = global::TemuKJD.Properties.Resources.BaseMsgErr;
|
||||||
msgBox.ShowDialog();
|
if (MainForm.instance != null && MainForm.instance.InvokeRequired)
|
||||||
|
MainForm.instance.Invoke(new Action(() =>
|
||||||
|
{
|
||||||
|
msgBox.ShowDialog();
|
||||||
|
}));
|
||||||
|
else
|
||||||
|
msgBox.ShowDialog();
|
||||||
return msgBox;
|
return msgBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -67,7 +81,13 @@ namespace TemuKJD.KJDForms.BaseForms
|
|||||||
{
|
{
|
||||||
msgBox.Width = (int)FormLevel.LARGE;
|
msgBox.Width = (int)FormLevel.LARGE;
|
||||||
}
|
}
|
||||||
msgBox.ShowDialog();
|
if (MainForm.instance != null && MainForm.instance.InvokeRequired)
|
||||||
|
MainForm.instance.Invoke(new Action(() =>
|
||||||
|
{
|
||||||
|
msgBox.ShowDialog();
|
||||||
|
}));
|
||||||
|
else
|
||||||
|
msgBox.ShowDialog();
|
||||||
return msgBox;
|
return msgBox;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
// pictureBox1
|
// pictureBox1
|
||||||
//
|
//
|
||||||
this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
||||||
this.pictureBox1.Location = new System.Drawing.Point(113, 22);
|
this.pictureBox1.Location = new System.Drawing.Point(116, 22);
|
||||||
this.pictureBox1.Name = "pictureBox1";
|
this.pictureBox1.Name = "pictureBox1";
|
||||||
this.pictureBox1.Size = new System.Drawing.Size(136, 136);
|
this.pictureBox1.Size = new System.Drawing.Size(136, 136);
|
||||||
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
// lblSkcId
|
// lblSkcId
|
||||||
//
|
//
|
||||||
this.lblSkcId.AutoSize = true;
|
this.lblSkcId.AutoSize = true;
|
||||||
this.lblSkcId.Location = new System.Drawing.Point(87, 237);
|
this.lblSkcId.Location = new System.Drawing.Point(87, 205);
|
||||||
this.lblSkcId.Name = "lblSkcId";
|
this.lblSkcId.Name = "lblSkcId";
|
||||||
this.lblSkcId.Size = new System.Drawing.Size(56, 17);
|
this.lblSkcId.Size = new System.Drawing.Size(56, 17);
|
||||||
this.lblSkcId.TabIndex = 388;
|
this.lblSkcId.TabIndex = 388;
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
// lblSPUId
|
// lblSPUId
|
||||||
//
|
//
|
||||||
this.lblSPUId.AutoSize = true;
|
this.lblSPUId.AutoSize = true;
|
||||||
this.lblSPUId.Location = new System.Drawing.Point(87, 206);
|
this.lblSPUId.Location = new System.Drawing.Point(87, 174);
|
||||||
this.lblSPUId.Name = "lblSPUId";
|
this.lblSPUId.Name = "lblSPUId";
|
||||||
this.lblSPUId.Size = new System.Drawing.Size(56, 17);
|
this.lblSPUId.Size = new System.Drawing.Size(56, 17);
|
||||||
this.lblSPUId.TabIndex = 387;
|
this.lblSPUId.TabIndex = 387;
|
||||||
@@ -150,7 +150,7 @@
|
|||||||
//
|
//
|
||||||
// lblProductTitle
|
// lblProductTitle
|
||||||
//
|
//
|
||||||
this.lblProductTitle.Location = new System.Drawing.Point(87, 175);
|
this.lblProductTitle.Location = new System.Drawing.Point(87, 236);
|
||||||
this.lblProductTitle.Name = "lblProductTitle";
|
this.lblProductTitle.Name = "lblProductTitle";
|
||||||
this.lblProductTitle.Size = new System.Drawing.Size(242, 17);
|
this.lblProductTitle.Size = new System.Drawing.Size(242, 17);
|
||||||
this.lblProductTitle.TabIndex = 0;
|
this.lblProductTitle.TabIndex = 0;
|
||||||
@@ -180,8 +180,8 @@
|
|||||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.Name = "DbProductEditNotesForm";
|
this.Name = "DbProductEditNotesForm";
|
||||||
this.Text = "选品备注";
|
this.Text = "编辑商品备注";
|
||||||
this.TitleText = "选品备注";
|
this.TitleText = "编辑商品备注";
|
||||||
this.Load += new System.EventHandler(this.ProductSelectListForm_Load);
|
this.Load += new System.EventHandler(this.ProductSelectListForm_Load);
|
||||||
this.Controls.SetChildIndex(this.panel2, 0);
|
this.Controls.SetChildIndex(this.panel2, 0);
|
||||||
this.panel2.ResumeLayout(false);
|
this.panel2.ResumeLayout(false);
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
html = GetHtml.PostUtf8(url, data);
|
html = GetHtml.PostUtf8(url, data);
|
||||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||||
{
|
{
|
||||||
BaseMsgForm.ShowError("商品备注编辑失败,请重试!" + BaseRegex.GetStringJson(ref html, "ref"));
|
BaseMsgForm.ShowError("商品备注编辑失败,请重试!" + BaseRegex.GetStringJson(ref html, "msg"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
+36
-26
@@ -51,6 +51,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||||
this.pbLoading = new System.Windows.Forms.PictureBox();
|
this.pbLoading = new System.Windows.Forms.PictureBox();
|
||||||
this.dgvDbProduct = new TemuKJD.UserComponent.DataGridViewEx();
|
this.dgvDbProduct = new TemuKJD.UserComponent.DataGridViewEx();
|
||||||
|
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
||||||
|
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||||
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||||
this.col_db_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.col_db_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.col_product_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.col_product_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
@@ -59,12 +61,11 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
this.col_skc_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.col_skc_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.col_cat_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.col_cat_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.con_ext_code = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.con_ext_code = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
|
this.colAddTimes = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.col_notes = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.col_notes = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.col_edit = new System.Windows.Forms.DataGridViewLinkColumn();
|
this.col_edit = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.col_delete = new System.Windows.Forms.DataGridViewLinkColumn();
|
this.col_delete = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.col_select_product = new System.Windows.Forms.DataGridViewLinkColumn();
|
this.col_select_product = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
|
||||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
|
||||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||||
this.splitContainer1.Panel1.SuspendLayout();
|
this.splitContainer1.Panel1.SuspendLayout();
|
||||||
this.splitContainer1.Panel2.SuspendLayout();
|
this.splitContainer1.Panel2.SuspendLayout();
|
||||||
@@ -325,6 +326,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
this.col_skc_id,
|
this.col_skc_id,
|
||||||
this.col_cat_name,
|
this.col_cat_name,
|
||||||
this.con_ext_code,
|
this.con_ext_code,
|
||||||
|
this.colAddTimes,
|
||||||
this.col_notes,
|
this.col_notes,
|
||||||
this.col_edit,
|
this.col_edit,
|
||||||
this.col_delete,
|
this.col_delete,
|
||||||
@@ -338,6 +340,29 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
this.dgvDbProduct.TabIndex = 6;
|
this.dgvDbProduct.TabIndex = 6;
|
||||||
this.dgvDbProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDbProduct_CellContentClick);
|
this.dgvDbProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDbProduct_CellContentClick);
|
||||||
//
|
//
|
||||||
|
// ucSplitPage1
|
||||||
|
//
|
||||||
|
this.ucSplitPage1.CurrentPage = 1;
|
||||||
|
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||||
|
this.ucSplitPage1.Location = new System.Drawing.Point(916, 0);
|
||||||
|
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.ucSplitPage1.Name = "ucSplitPage1";
|
||||||
|
this.ucSplitPage1.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0);
|
||||||
|
this.ucSplitPage1.Size = new System.Drawing.Size(362, 25);
|
||||||
|
this.ucSplitPage1.TabIndex = 6;
|
||||||
|
this.ucSplitPage1.TotalPage = 1;
|
||||||
|
//
|
||||||
|
// statusBar
|
||||||
|
//
|
||||||
|
this.statusBar.BackColor = System.Drawing.Color.White;
|
||||||
|
this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.statusBar.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
|
||||||
|
this.statusBar.Name = "statusBar";
|
||||||
|
this.statusBar.Size = new System.Drawing.Size(1278, 25);
|
||||||
|
this.statusBar.TabIndex = 5;
|
||||||
|
//
|
||||||
// colSelect
|
// colSelect
|
||||||
//
|
//
|
||||||
this.colSelect.FillWeight = 26F;
|
this.colSelect.FillWeight = 26F;
|
||||||
@@ -395,6 +420,13 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
this.con_ext_code.Name = "con_ext_code";
|
this.con_ext_code.Name = "con_ext_code";
|
||||||
this.con_ext_code.ReadOnly = true;
|
this.con_ext_code.ReadOnly = true;
|
||||||
//
|
//
|
||||||
|
// colAddTimes
|
||||||
|
//
|
||||||
|
this.colAddTimes.FillWeight = 52F;
|
||||||
|
this.colAddTimes.HeaderText = "认领次数";
|
||||||
|
this.colAddTimes.Name = "colAddTimes";
|
||||||
|
this.colAddTimes.ReadOnly = true;
|
||||||
|
//
|
||||||
// col_notes
|
// col_notes
|
||||||
//
|
//
|
||||||
this.col_notes.HeaderText = "备注";
|
this.col_notes.HeaderText = "备注";
|
||||||
@@ -403,7 +435,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
//
|
//
|
||||||
// col_edit
|
// col_edit
|
||||||
//
|
//
|
||||||
this.col_edit.FillWeight = 40F;
|
this.col_edit.FillWeight = 52F;
|
||||||
this.col_edit.HeaderText = "编辑备注";
|
this.col_edit.HeaderText = "编辑备注";
|
||||||
this.col_edit.Name = "col_edit";
|
this.col_edit.Name = "col_edit";
|
||||||
this.col_edit.ReadOnly = true;
|
this.col_edit.ReadOnly = true;
|
||||||
@@ -426,29 +458,6 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
this.col_select_product.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
this.col_select_product.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
this.col_select_product.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
this.col_select_product.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
//
|
//
|
||||||
// ucSplitPage1
|
|
||||||
//
|
|
||||||
this.ucSplitPage1.CurrentPage = 1;
|
|
||||||
this.ucSplitPage1.Dock = System.Windows.Forms.DockStyle.Right;
|
|
||||||
this.ucSplitPage1.Location = new System.Drawing.Point(916, 0);
|
|
||||||
this.ucSplitPage1.Margin = new System.Windows.Forms.Padding(0);
|
|
||||||
this.ucSplitPage1.Name = "ucSplitPage1";
|
|
||||||
this.ucSplitPage1.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0);
|
|
||||||
this.ucSplitPage1.Size = new System.Drawing.Size(362, 25);
|
|
||||||
this.ucSplitPage1.TabIndex = 6;
|
|
||||||
this.ucSplitPage1.TotalPage = 1;
|
|
||||||
//
|
|
||||||
// statusBar
|
|
||||||
//
|
|
||||||
this.statusBar.BackColor = System.Drawing.Color.White;
|
|
||||||
this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
||||||
this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
||||||
this.statusBar.Location = new System.Drawing.Point(0, 0);
|
|
||||||
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
|
|
||||||
this.statusBar.Name = "statusBar";
|
|
||||||
this.statusBar.Size = new System.Drawing.Size(1278, 25);
|
|
||||||
this.statusBar.TabIndex = 5;
|
|
||||||
//
|
|
||||||
// DbProductListForm
|
// DbProductListForm
|
||||||
//
|
//
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||||
@@ -508,6 +517,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
private System.Windows.Forms.DataGridViewTextBoxColumn col_skc_id;
|
private System.Windows.Forms.DataGridViewTextBoxColumn col_skc_id;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn col_cat_name;
|
private System.Windows.Forms.DataGridViewTextBoxColumn col_cat_name;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn con_ext_code;
|
private System.Windows.Forms.DataGridViewTextBoxColumn con_ext_code;
|
||||||
|
private System.Windows.Forms.DataGridViewTextBoxColumn colAddTimes;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn col_notes;
|
private System.Windows.Forms.DataGridViewTextBoxColumn col_notes;
|
||||||
private System.Windows.Forms.DataGridViewLinkColumn col_edit;
|
private System.Windows.Forms.DataGridViewLinkColumn col_edit;
|
||||||
private System.Windows.Forms.DataGridViewLinkColumn col_delete;
|
private System.Windows.Forms.DataGridViewLinkColumn col_delete;
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
|
|
||||||
private void ProductListForm_Load(object sender, EventArgs e)
|
private void ProductListForm_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (BaseClass.SaLevel == 1 && shop == null) // 管理员且不是选品状态
|
if (BaseClass.SaLevel == 1 && shop == null) // 一级管理员且不是选品状态
|
||||||
{
|
{
|
||||||
this.dgvDbProduct.Columns["col_delete"].Visible = true;
|
this.dgvDbProduct.Columns["col_delete"].Visible = true;
|
||||||
this.dgvDbProduct.Columns["col_edit"].Visible = true;
|
this.dgvDbProduct.Columns["col_edit"].Visible = true;
|
||||||
@@ -57,10 +57,12 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
|
|
||||||
btnSelect.Visible = false;
|
btnSelect.Visible = false;
|
||||||
this.dgvDbProduct.Columns["col_select_product"].Visible = false;
|
this.dgvDbProduct.Columns["col_select_product"].Visible = false;
|
||||||
|
this.dgvDbProduct.Columns["colAddTimes"].Visible = false;
|
||||||
if (shop != null)
|
if (shop != null)
|
||||||
{
|
{
|
||||||
btnSelect.Visible = true;
|
btnSelect.Visible = true;
|
||||||
this.dgvDbProduct.Columns["col_select_product"].Visible = true;
|
this.dgvDbProduct.Columns["col_select_product"].Visible = true;
|
||||||
|
this.dgvDbProduct.Columns["colAddTimes"].Visible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.ucSplitPage1.PageChange += UcSplitPage1_PageChange;
|
this.ucSplitPage1.PageChange += UcSplitPage1_PageChange;
|
||||||
@@ -102,16 +104,13 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
foreach (var prod in lstTemuDbProduct)
|
foreach (var prod in lstTemuDbProduct)
|
||||||
{
|
{
|
||||||
Image image = null;
|
Image image = null;
|
||||||
try
|
string imgUrl = prod?.main_img?.Replace("https", "http");
|
||||||
{
|
string rst = "";
|
||||||
using (Stream stream = WebRequest.Create(prod.main_img.Replace("https", "http")).GetResponse().GetResponseStream())
|
if (!string.IsNullOrWhiteSpace(imgUrl))
|
||||||
{
|
image = GetHtml.GetUrlImg(imgUrl, out rst);
|
||||||
image = Image.FromStream(stream);
|
if (!string.IsNullOrEmpty(rst))
|
||||||
}
|
BaseMsgForm.ShowError(rst);
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
Invoke(new Action(() =>
|
Invoke(new Action(() =>
|
||||||
{
|
{
|
||||||
int rowIndex = this.dgvDbProduct.Rows.Add(
|
int rowIndex = this.dgvDbProduct.Rows.Add(
|
||||||
@@ -123,6 +122,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
prod.skc_id,
|
prod.skc_id,
|
||||||
prod.cat_name,
|
prod.cat_name,
|
||||||
prod.ext_code,
|
prod.ext_code,
|
||||||
|
prod.select_count,
|
||||||
prod.notes,
|
prod.notes,
|
||||||
"编辑",
|
"编辑",
|
||||||
"删除",
|
"删除",
|
||||||
@@ -145,6 +145,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
pageCount = 1;
|
pageCount = 1;
|
||||||
|
|
||||||
var url = BaseClass.BuildObjString("product/get_product_list");
|
var url = BaseClass.BuildObjString("product/get_product_list");
|
||||||
|
if(shop!=null && shop.DbId.ParseToInt()!=0 )
|
||||||
|
url = BaseClass.BuildObjString("product/get_product_list");
|
||||||
var data = "";
|
var data = "";
|
||||||
|
|
||||||
Invoke(new Action(() =>
|
Invoke(new Action(() =>
|
||||||
@@ -158,6 +160,12 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
"&search_cat=" + txtCat.Text.Trim() +
|
"&search_cat=" + txtCat.Text.Trim() +
|
||||||
"&search_ext_code=" + txtExtCode.Text.Trim() +
|
"&search_ext_code=" + txtExtCode.Text.Trim() +
|
||||||
"&search_prod_name=" + txtProdName.Text.Trim();
|
"&search_prod_name=" + txtProdName.Text.Trim();
|
||||||
|
if (shop != null && !string.IsNullOrEmpty(shop.ShopId))
|
||||||
|
{
|
||||||
|
data += "&get_select_count=true";
|
||||||
|
data += "&select_shop_id=" + shop.ShopId;
|
||||||
|
}
|
||||||
|
|
||||||
}));
|
}));
|
||||||
var html = GetHtml.PostUtf8(url, data);
|
var html = GetHtml.PostUtf8(url, data);
|
||||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||||
@@ -166,7 +174,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
html = GetHtml.PostUtf8(url, data);
|
html = GetHtml.PostUtf8(url, data);
|
||||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||||
{
|
{
|
||||||
BaseMsgForm.ShowError("获取商品列表失败,请重试!" + BaseRegex.GetStringJson(ref html, "ref"));
|
BaseMsgForm.ShowError("获取商品列表失败,请重试!" + BaseRegex.GetStringJson(ref html, "msg"));
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -310,6 +318,14 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
|
prod.select_count++;
|
||||||
|
Invoke(new Action(() =>
|
||||||
|
{
|
||||||
|
var row = this.dgvDbProduct.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["col_db_id"].Value.ParseToInt() == prod.id);
|
||||||
|
if (row != null)
|
||||||
|
row.Cells["colAddTimes"].Value = prod.select_count;
|
||||||
|
}));
|
||||||
shop.AddProductRemaining = shop.AddProductRemaining - 1;
|
shop.AddProductRemaining = shop.AddProductRemaining - 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,6 +141,9 @@
|
|||||||
<metadata name="con_ext_code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="con_ext_code.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="colAddTimes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="col_notes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="col_notes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|||||||
+47
-31
@@ -66,6 +66,7 @@
|
|||||||
this.colInShop = new System.Windows.Forms.DataGridViewLinkColumn();
|
this.colInShop = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.colLogin = new System.Windows.Forms.DataGridViewLinkColumn();
|
this.colLogin = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.colImportCookies = new System.Windows.Forms.DataGridViewLinkColumn();
|
this.colImportCookies = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
|
this.colCopyCookies = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.colSpuId = new System.Windows.Forms.DataGridViewLinkColumn();
|
this.colSpuId = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.colSkcId = new System.Windows.Forms.DataGridViewLinkColumn();
|
this.colSkcId = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.colProductSkcPic = new System.Windows.Forms.DataGridViewImageColumn();
|
this.colProductSkcPic = new System.Windows.Forms.DataGridViewImageColumn();
|
||||||
@@ -73,9 +74,11 @@
|
|||||||
this.colProductCat = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colProductCat = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.colExtCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colExtCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.colStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.colDraftId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colDraftId = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.colMdyTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colMdyTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.colSubSa = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colSubSa = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
|
this.colNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
|
this.colEditNotes = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.ColDelete = new System.Windows.Forms.DataGridViewLinkColumn();
|
this.ColDelete = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.colOpResult = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colOpResult = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||||
@@ -406,6 +409,7 @@
|
|||||||
this.colInShop,
|
this.colInShop,
|
||||||
this.colLogin,
|
this.colLogin,
|
||||||
this.colImportCookies,
|
this.colImportCookies,
|
||||||
|
this.colCopyCookies,
|
||||||
this.colSpuId,
|
this.colSpuId,
|
||||||
this.colSkcId,
|
this.colSkcId,
|
||||||
this.colProductSkcPic,
|
this.colProductSkcPic,
|
||||||
@@ -416,6 +420,8 @@
|
|||||||
this.colDraftId,
|
this.colDraftId,
|
||||||
this.colMdyTime,
|
this.colMdyTime,
|
||||||
this.colSubSa,
|
this.colSubSa,
|
||||||
|
this.colNotes,
|
||||||
|
this.colEditNotes,
|
||||||
this.ColDelete,
|
this.ColDelete,
|
||||||
this.colOpResult});
|
this.colOpResult});
|
||||||
this.dgvSelectProduct.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.dgvSelectProduct.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
@@ -425,7 +431,7 @@
|
|||||||
this.dgvSelectProduct.RowHeadersWidth = 51;
|
this.dgvSelectProduct.RowHeadersWidth = 51;
|
||||||
this.dgvSelectProduct.RowTemplate.Height = 23;
|
this.dgvSelectProduct.RowTemplate.Height = 23;
|
||||||
this.dgvSelectProduct.Size = new System.Drawing.Size(1430, 552);
|
this.dgvSelectProduct.Size = new System.Drawing.Size(1430, 552);
|
||||||
this.dgvSelectProduct.TabIndex = 188;
|
this.dgvSelectProduct.TabIndex = 189;
|
||||||
this.dgvSelectProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectProduct_CellContentClick);
|
this.dgvSelectProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectProduct_CellContentClick);
|
||||||
//
|
//
|
||||||
// ucSplitPage1
|
// ucSplitPage1
|
||||||
@@ -454,7 +460,6 @@
|
|||||||
// colSelect
|
// colSelect
|
||||||
//
|
//
|
||||||
this.colSelect.HeaderText = "选择";
|
this.colSelect.HeaderText = "选择";
|
||||||
this.colSelect.MinimumWidth = 6;
|
|
||||||
this.colSelect.Name = "colSelect";
|
this.colSelect.Name = "colSelect";
|
||||||
this.colSelect.ReadOnly = true;
|
this.colSelect.ReadOnly = true;
|
||||||
this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
@@ -464,7 +469,6 @@
|
|||||||
// colSelectId
|
// colSelectId
|
||||||
//
|
//
|
||||||
this.colSelectId.HeaderText = "认领Id";
|
this.colSelectId.HeaderText = "认领Id";
|
||||||
this.colSelectId.MinimumWidth = 6;
|
|
||||||
this.colSelectId.Name = "colSelectId";
|
this.colSelectId.Name = "colSelectId";
|
||||||
this.colSelectId.ReadOnly = true;
|
this.colSelectId.ReadOnly = true;
|
||||||
this.colSelectId.Visible = false;
|
this.colSelectId.Visible = false;
|
||||||
@@ -473,15 +477,13 @@
|
|||||||
// colSupplierId
|
// colSupplierId
|
||||||
//
|
//
|
||||||
this.colSupplierId.HeaderText = "店铺Id";
|
this.colSupplierId.HeaderText = "店铺Id";
|
||||||
this.colSupplierId.MinimumWidth = 6;
|
|
||||||
this.colSupplierId.Name = "colSupplierId";
|
this.colSupplierId.Name = "colSupplierId";
|
||||||
this.colSupplierId.ReadOnly = true;
|
this.colSupplierId.ReadOnly = true;
|
||||||
this.colSupplierId.Width = 125;
|
this.colSupplierId.Width = 120;
|
||||||
//
|
//
|
||||||
// colSupplierName
|
// colSupplierName
|
||||||
//
|
//
|
||||||
this.colSupplierName.HeaderText = "店铺名称";
|
this.colSupplierName.HeaderText = "店铺名称";
|
||||||
this.colSupplierName.MinimumWidth = 6;
|
|
||||||
this.colSupplierName.Name = "colSupplierName";
|
this.colSupplierName.Name = "colSupplierName";
|
||||||
this.colSupplierName.ReadOnly = true;
|
this.colSupplierName.ReadOnly = true;
|
||||||
this.colSupplierName.Width = 110;
|
this.colSupplierName.Width = 110;
|
||||||
@@ -489,18 +491,16 @@
|
|||||||
// colInShop
|
// colInShop
|
||||||
//
|
//
|
||||||
this.colInShop.HeaderText = "进店";
|
this.colInShop.HeaderText = "进店";
|
||||||
this.colInShop.MinimumWidth = 6;
|
|
||||||
this.colInShop.Name = "colInShop";
|
this.colInShop.Name = "colInShop";
|
||||||
this.colInShop.ReadOnly = true;
|
this.colInShop.ReadOnly = true;
|
||||||
this.colInShop.Width = 45;
|
this.colInShop.Width = 38;
|
||||||
//
|
//
|
||||||
// colLogin
|
// colLogin
|
||||||
//
|
//
|
||||||
this.colLogin.HeaderText = "登录";
|
this.colLogin.HeaderText = "登录";
|
||||||
this.colLogin.MinimumWidth = 6;
|
|
||||||
this.colLogin.Name = "colLogin";
|
this.colLogin.Name = "colLogin";
|
||||||
this.colLogin.ReadOnly = true;
|
this.colLogin.ReadOnly = true;
|
||||||
this.colLogin.Width = 45;
|
this.colLogin.Width = 38;
|
||||||
//
|
//
|
||||||
// colImportCookies
|
// colImportCookies
|
||||||
//
|
//
|
||||||
@@ -511,32 +511,38 @@
|
|||||||
this.colImportCookies.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
this.colImportCookies.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
this.colImportCookies.Width = 85;
|
this.colImportCookies.Width = 85;
|
||||||
//
|
//
|
||||||
|
// colCopyCookies
|
||||||
|
//
|
||||||
|
this.colCopyCookies.HeaderText = "复制Cookies";
|
||||||
|
this.colCopyCookies.Name = "colCopyCookies";
|
||||||
|
this.colCopyCookies.ReadOnly = true;
|
||||||
|
this.colCopyCookies.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
|
this.colCopyCookies.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
|
this.colCopyCookies.Width = 85;
|
||||||
|
//
|
||||||
// colSpuId
|
// colSpuId
|
||||||
//
|
//
|
||||||
this.colSpuId.HeaderText = "商品SPU";
|
this.colSpuId.HeaderText = "商品SPU";
|
||||||
this.colSpuId.MinimumWidth = 6;
|
|
||||||
this.colSpuId.Name = "colSpuId";
|
this.colSpuId.Name = "colSpuId";
|
||||||
this.colSpuId.ReadOnly = true;
|
this.colSpuId.ReadOnly = true;
|
||||||
this.colSpuId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
this.colSpuId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
this.colSpuId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
this.colSpuId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
this.colSpuId.Width = 90;
|
this.colSpuId.Width = 86;
|
||||||
//
|
//
|
||||||
// colSkcId
|
// colSkcId
|
||||||
//
|
//
|
||||||
this.colSkcId.FillWeight = 150F;
|
this.colSkcId.FillWeight = 150F;
|
||||||
this.colSkcId.HeaderText = "商品SKC";
|
this.colSkcId.HeaderText = "商品SKC";
|
||||||
this.colSkcId.MinimumWidth = 6;
|
|
||||||
this.colSkcId.Name = "colSkcId";
|
this.colSkcId.Name = "colSkcId";
|
||||||
this.colSkcId.ReadOnly = true;
|
this.colSkcId.ReadOnly = true;
|
||||||
this.colSkcId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
this.colSkcId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
this.colSkcId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
this.colSkcId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
this.colSkcId.Width = 80;
|
this.colSkcId.Width = 90;
|
||||||
//
|
//
|
||||||
// colProductSkcPic
|
// colProductSkcPic
|
||||||
//
|
//
|
||||||
this.colProductSkcPic.HeaderText = "Skc图片";
|
this.colProductSkcPic.HeaderText = "Skc图片";
|
||||||
this.colProductSkcPic.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
|
this.colProductSkcPic.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
|
||||||
this.colProductSkcPic.MinimumWidth = 6;
|
|
||||||
this.colProductSkcPic.Name = "colProductSkcPic";
|
this.colProductSkcPic.Name = "colProductSkcPic";
|
||||||
this.colProductSkcPic.ReadOnly = true;
|
this.colProductSkcPic.ReadOnly = true;
|
||||||
this.colProductSkcPic.Width = 60;
|
this.colProductSkcPic.Width = 60;
|
||||||
@@ -544,15 +550,13 @@
|
|||||||
// colProductName
|
// colProductName
|
||||||
//
|
//
|
||||||
this.colProductName.HeaderText = "商品标题";
|
this.colProductName.HeaderText = "商品标题";
|
||||||
this.colProductName.MinimumWidth = 6;
|
|
||||||
this.colProductName.Name = "colProductName";
|
this.colProductName.Name = "colProductName";
|
||||||
this.colProductName.ReadOnly = true;
|
this.colProductName.ReadOnly = true;
|
||||||
this.colProductName.Width = 260;
|
this.colProductName.Width = 200;
|
||||||
//
|
//
|
||||||
// colProductCat
|
// colProductCat
|
||||||
//
|
//
|
||||||
this.colProductCat.HeaderText = "商品类目";
|
this.colProductCat.HeaderText = "商品类目";
|
||||||
this.colProductCat.MinimumWidth = 6;
|
|
||||||
this.colProductCat.Name = "colProductCat";
|
this.colProductCat.Name = "colProductCat";
|
||||||
this.colProductCat.ReadOnly = true;
|
this.colProductCat.ReadOnly = true;
|
||||||
this.colProductCat.Width = 90;
|
this.colProductCat.Width = 90;
|
||||||
@@ -560,7 +564,6 @@
|
|||||||
// colExtCode
|
// colExtCode
|
||||||
//
|
//
|
||||||
this.colExtCode.HeaderText = "商品货号";
|
this.colExtCode.HeaderText = "商品货号";
|
||||||
this.colExtCode.MinimumWidth = 6;
|
|
||||||
this.colExtCode.Name = "colExtCode";
|
this.colExtCode.Name = "colExtCode";
|
||||||
this.colExtCode.ReadOnly = true;
|
this.colExtCode.ReadOnly = true;
|
||||||
this.colExtCode.Width = 125;
|
this.colExtCode.Width = 125;
|
||||||
@@ -568,28 +571,25 @@
|
|||||||
// colStatus
|
// colStatus
|
||||||
//
|
//
|
||||||
this.colStatus.HeaderText = "状态";
|
this.colStatus.HeaderText = "状态";
|
||||||
this.colStatus.MinimumWidth = 6;
|
|
||||||
this.colStatus.Name = "colStatus";
|
this.colStatus.Name = "colStatus";
|
||||||
this.colStatus.ReadOnly = true;
|
this.colStatus.ReadOnly = true;
|
||||||
this.colStatus.Width = 80;
|
this.colStatus.Width = 45;
|
||||||
//
|
//
|
||||||
// colDraftId
|
// colDraftId
|
||||||
//
|
//
|
||||||
this.colDraftId.HeaderText = "草稿箱Id";
|
this.colDraftId.HeaderText = "草稿箱Id";
|
||||||
this.colDraftId.MinimumWidth = 6;
|
|
||||||
this.colDraftId.Name = "colDraftId";
|
this.colDraftId.Name = "colDraftId";
|
||||||
this.colDraftId.ReadOnly = true;
|
this.colDraftId.ReadOnly = true;
|
||||||
this.colDraftId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
this.colDraftId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
this.colDraftId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
this.colDraftId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
this.colDraftId.Width = 125;
|
this.colDraftId.Width = 88;
|
||||||
//
|
//
|
||||||
// colMdyTime
|
// colMdyTime
|
||||||
//
|
//
|
||||||
this.colMdyTime.HeaderText = "上传时间";
|
this.colMdyTime.HeaderText = "上传时间";
|
||||||
this.colMdyTime.MinimumWidth = 6;
|
|
||||||
this.colMdyTime.Name = "colMdyTime";
|
this.colMdyTime.Name = "colMdyTime";
|
||||||
this.colMdyTime.ReadOnly = true;
|
this.colMdyTime.ReadOnly = true;
|
||||||
this.colMdyTime.Width = 120;
|
this.colMdyTime.Width = 95;
|
||||||
//
|
//
|
||||||
// colSubSa
|
// colSubSa
|
||||||
//
|
//
|
||||||
@@ -597,10 +597,24 @@
|
|||||||
this.colSubSa.Name = "colSubSa";
|
this.colSubSa.Name = "colSubSa";
|
||||||
this.colSubSa.ReadOnly = true;
|
this.colSubSa.ReadOnly = true;
|
||||||
//
|
//
|
||||||
|
// colNotes
|
||||||
|
//
|
||||||
|
this.colNotes.HeaderText = "备注";
|
||||||
|
this.colNotes.Name = "colNotes";
|
||||||
|
this.colNotes.ReadOnly = true;
|
||||||
|
//
|
||||||
|
// colEditNotes
|
||||||
|
//
|
||||||
|
this.colEditNotes.HeaderText = "编辑备注";
|
||||||
|
this.colEditNotes.Name = "colEditNotes";
|
||||||
|
this.colEditNotes.ReadOnly = true;
|
||||||
|
this.colEditNotes.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
|
this.colEditNotes.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
|
this.colEditNotes.Width = 70;
|
||||||
|
//
|
||||||
// ColDelete
|
// ColDelete
|
||||||
//
|
//
|
||||||
this.ColDelete.HeaderText = "删除";
|
this.ColDelete.HeaderText = "删除";
|
||||||
this.ColDelete.MinimumWidth = 6;
|
|
||||||
this.ColDelete.Name = "ColDelete";
|
this.ColDelete.Name = "ColDelete";
|
||||||
this.ColDelete.ReadOnly = true;
|
this.ColDelete.ReadOnly = true;
|
||||||
this.ColDelete.Visible = false;
|
this.ColDelete.Visible = false;
|
||||||
@@ -609,7 +623,6 @@
|
|||||||
// colOpResult
|
// colOpResult
|
||||||
//
|
//
|
||||||
this.colOpResult.HeaderText = "操作结果";
|
this.colOpResult.HeaderText = "操作结果";
|
||||||
this.colOpResult.MinimumWidth = 6;
|
|
||||||
this.colOpResult.Name = "colOpResult";
|
this.colOpResult.Name = "colOpResult";
|
||||||
this.colOpResult.ReadOnly = true;
|
this.colOpResult.ReadOnly = true;
|
||||||
this.colOpResult.Width = 150;
|
this.colOpResult.Width = 150;
|
||||||
@@ -666,11 +679,11 @@
|
|||||||
private System.Windows.Forms.Label label7;
|
private System.Windows.Forms.Label label7;
|
||||||
private System.Windows.Forms.TextBox txtShopId;
|
private System.Windows.Forms.TextBox txtShopId;
|
||||||
private System.Windows.Forms.Label label6;
|
private System.Windows.Forms.Label label6;
|
||||||
private UserComponent.DataGridViewEx dgvSelectProduct;
|
|
||||||
private System.Windows.Forms.ComboBox cmbStatus;
|
private System.Windows.Forms.ComboBox cmbStatus;
|
||||||
private System.Windows.Forms.Label label8;
|
private System.Windows.Forms.Label label8;
|
||||||
private UserControls.ButtonEx btnSetSubSa;
|
private UserControls.ButtonEx btnSetSubSa;
|
||||||
private UserComponent.UcCheckBox chkNoSubSa;
|
private UserComponent.UcCheckBox chkNoSubSa;
|
||||||
|
private UserComponent.DataGridViewEx dgvSelectProduct;
|
||||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
|
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSelectId;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colSelectId;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierId;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierId;
|
||||||
@@ -678,6 +691,7 @@
|
|||||||
private System.Windows.Forms.DataGridViewLinkColumn colInShop;
|
private System.Windows.Forms.DataGridViewLinkColumn colInShop;
|
||||||
private System.Windows.Forms.DataGridViewLinkColumn colLogin;
|
private System.Windows.Forms.DataGridViewLinkColumn colLogin;
|
||||||
private System.Windows.Forms.DataGridViewLinkColumn colImportCookies;
|
private System.Windows.Forms.DataGridViewLinkColumn colImportCookies;
|
||||||
|
private System.Windows.Forms.DataGridViewLinkColumn colCopyCookies;
|
||||||
private System.Windows.Forms.DataGridViewLinkColumn colSpuId;
|
private System.Windows.Forms.DataGridViewLinkColumn colSpuId;
|
||||||
private System.Windows.Forms.DataGridViewLinkColumn colSkcId;
|
private System.Windows.Forms.DataGridViewLinkColumn colSkcId;
|
||||||
private System.Windows.Forms.DataGridViewImageColumn colProductSkcPic;
|
private System.Windows.Forms.DataGridViewImageColumn colProductSkcPic;
|
||||||
@@ -685,9 +699,11 @@
|
|||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colProductCat;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colProductCat;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colExtCode;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colExtCode;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colStatus;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colStatus;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colDraftId;
|
private System.Windows.Forms.DataGridViewLinkColumn colDraftId;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colMdyTime;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colMdyTime;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSubSa;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colSubSa;
|
||||||
|
private System.Windows.Forms.DataGridViewTextBoxColumn colNotes;
|
||||||
|
private System.Windows.Forms.DataGridViewLinkColumn colEditNotes;
|
||||||
private System.Windows.Forms.DataGridViewLinkColumn ColDelete;
|
private System.Windows.Forms.DataGridViewLinkColumn ColDelete;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOpResult;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colOpResult;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,6 +72,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
|
|
||||||
public void SearchDbProdSelect(int page)
|
public void SearchDbProdSelect(int page)
|
||||||
{
|
{
|
||||||
|
shopLst.Clear();
|
||||||
|
|
||||||
if (InvokeRequired)
|
if (InvokeRequired)
|
||||||
{
|
{
|
||||||
Invoke(new Action(() =>
|
Invoke(new Action(() =>
|
||||||
@@ -97,19 +99,13 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
foreach (var prodSelect in lstAdminTemuDBProductSelect)
|
foreach (var prodSelect in lstAdminTemuDBProductSelect)
|
||||||
{
|
{
|
||||||
Image image = null;
|
Image image = null;
|
||||||
try
|
string imgUrl = prodSelect?.main_img?.Replace("https", "http");
|
||||||
{
|
string rst = "";
|
||||||
if (!string.IsNullOrEmpty(prodSelect?.main_img))
|
if (!string.IsNullOrWhiteSpace(imgUrl))
|
||||||
{
|
image = GetHtml.GetUrlImg(imgUrl, out rst);
|
||||||
using (Stream stream = WebRequest.Create(prodSelect.main_img.Replace("https", "http")).GetResponse().GetResponseStream())
|
if (!string.IsNullOrEmpty(rst))
|
||||||
{
|
BaseMsgForm.ShowError(rst);
|
||||||
image = Image.FromStream(stream);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
Invoke(new Action(() =>
|
Invoke(new Action(() =>
|
||||||
{
|
{
|
||||||
int rowIndex = this.dgvSelectProduct.Rows.Add(
|
int rowIndex = this.dgvSelectProduct.Rows.Add(
|
||||||
@@ -120,6 +116,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
"进店",
|
"进店",
|
||||||
"登录",
|
"登录",
|
||||||
"导入Cookies",
|
"导入Cookies",
|
||||||
|
"复制Cookies",
|
||||||
prodSelect.spu_id,
|
prodSelect.spu_id,
|
||||||
prodSelect.skc_id,
|
prodSelect.skc_id,
|
||||||
image,//prod.main_img,
|
image,//prod.main_img,
|
||||||
@@ -128,8 +125,10 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
prodSelect.ext_code,
|
prodSelect.ext_code,
|
||||||
prodSelect.status,
|
prodSelect.status,
|
||||||
prodSelect.draft_id,
|
prodSelect.draft_id,
|
||||||
prodSelect.status == "待上传" ? "-" : prodSelect.mdy_time.ToString("yyyy/MM/dd HH:mm:ss"),
|
prodSelect.status == "待上传" ? "-" : prodSelect.mdy_time.ToString("yy/MM/dd HH:mm"),
|
||||||
prodSelect.operate_sub_sa_name == "" ? "-" : prodSelect.operate_sub_sa_name,
|
prodSelect.operate_sub_sa_name == "" ? "-" : prodSelect.operate_sub_sa_name,
|
||||||
|
prodSelect.notes,
|
||||||
|
"编辑",
|
||||||
"删除",
|
"删除",
|
||||||
"");
|
"");
|
||||||
|
|
||||||
@@ -222,7 +221,7 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
return;
|
return;
|
||||||
string headerText = dgvSelectProduct.Columns[e.ColumnIndex].HeaderText;
|
string headerText = dgvSelectProduct.Columns[e.ColumnIndex].HeaderText;
|
||||||
var dbId = dgvSelectProduct.Rows[e.RowIndex].Cells["colSelectId"].Value.ParseToString();
|
var dbId = dgvSelectProduct.Rows[e.RowIndex].Cells["colSelectId"].Value.ParseToString();
|
||||||
var dbProduct = lstAdminTemuDBProductSelect.FirstOrDefault(p => p.id.ToString() == dbId);
|
var dbSelectProduct = lstAdminTemuDBProductSelect.FirstOrDefault(p => p.id.ToString() == dbId);
|
||||||
var shopId = dgvSelectProduct.Rows[e.RowIndex].Cells["colSupplierId"].Value.ParseToString();
|
var shopId = dgvSelectProduct.Rows[e.RowIndex].Cells["colSupplierId"].Value.ParseToString();
|
||||||
var draftId = dgvSelectProduct.Rows[e.RowIndex].Cells["colDraftId"].Value.ParseToString();
|
var draftId = dgvSelectProduct.Rows[e.RowIndex].Cells["colDraftId"].Value.ParseToString();
|
||||||
|
|
||||||
@@ -234,9 +233,9 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
//DeleteProduct(dbId);
|
//DeleteProduct(dbId);
|
||||||
break;
|
break;
|
||||||
case "编辑备注":
|
case "编辑备注":
|
||||||
//DbProductEditNotesForm editForm = new DbProductEditNotesForm(dbProduct);
|
ProductSelectEditNotesForm editForm = new ProductSelectEditNotesForm(dbSelectProduct);
|
||||||
//editForm.ShowDialog();
|
editForm.ShowDialog();
|
||||||
//dgvDbProduct.Rows[e.RowIndex].Cells["col_notes"].Value = dbProduct.notes;
|
dgvSelectProduct.Rows[e.RowIndex].Cells["colNotes"].Value = dbSelectProduct.notes;
|
||||||
break;
|
break;
|
||||||
case "认领":
|
case "认领":
|
||||||
//Task.Run(() => { SelectProduct(new TemuDBProduct[] { dbProduct }); });
|
//Task.Run(() => { SelectProduct(new TemuDBProduct[] { dbProduct }); });
|
||||||
@@ -244,13 +243,13 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
case "草稿箱Id":
|
case "草稿箱Id":
|
||||||
if (!string.IsNullOrEmpty(draftId))
|
if (!string.IsNullOrEmpty(draftId))
|
||||||
{
|
{
|
||||||
//var shop = GetShop(shopId);
|
var shop = GetShop(shopId);
|
||||||
//AdminShopLoginForm adminLoginForm = new AdminShopLoginForm(shop);
|
AdminShopLoginForm adminLoginForm = new AdminShopLoginForm(shop);
|
||||||
//adminLoginForm.InitUrl = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?productDraftId=" +
|
adminLoginForm.InitUrl = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?productDraftId=" +
|
||||||
// draftId + "&from=productDraftList";
|
draftId + "&from=productDraftList";
|
||||||
//adminLoginForm.openType = EnumOpenType.manage;
|
adminLoginForm.openType = EnumOpenType.manage;
|
||||||
//adminLoginForm.WindowState = FormWindowState.Maximized;
|
adminLoginForm.WindowState = FormWindowState.Maximized;
|
||||||
//adminLoginForm.ShowDialog();
|
adminLoginForm.ShowDialog();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "进店":
|
case "进店":
|
||||||
@@ -282,6 +281,34 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
updateCookieForm.ShowDialog();
|
updateCookieForm.ShowDialog();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "复制Cookies":
|
||||||
|
{
|
||||||
|
var shop = GetShop(shopId);
|
||||||
|
string cookJs = "";
|
||||||
|
foreach (var shopCook in shop.Cookies.Split(';'))
|
||||||
|
{
|
||||||
|
var cookie = shopCook.Trim();
|
||||||
|
if (cookie.StartsWith("mc-pc-cookie-captcha-token="))
|
||||||
|
continue;
|
||||||
|
//if (!cookie.StartsWith("SUB_PASS_ID") && !cookie.StartsWith("_nano_fp"))
|
||||||
|
cookJs += "\r\ndocument.cookie='" + cookie.Substring(0, Math.Max(0, cookie.IndexOf("="))) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';";
|
||||||
|
}
|
||||||
|
foreach (var shopCook in shop.Cookies.Split(';'))
|
||||||
|
{
|
||||||
|
var cookie = shopCook.Trim();
|
||||||
|
if (cookie.StartsWith("mc-pc-cookie-captcha-token="))
|
||||||
|
continue;
|
||||||
|
if (!cookie.StartsWith("SUB_PASS_ID") && !cookie.StartsWith("_nano_fp"))
|
||||||
|
cookJs += "\r\ndocument.cookie='" + cookie + "; domain=.kuajingmaihuo.com;';";
|
||||||
|
else
|
||||||
|
cookJs += "\r\ndocument.cookie='" + cookie + "; domain=seller.kuajingmaihuo.com;';";
|
||||||
|
}
|
||||||
|
cookJs += "\r\nwindow.localStorage.setItem('" + "mall-info-id" + "', '" + shop.ShopId + "');";
|
||||||
|
cookJs += "\r\nsetTimeout(() => { window.location.href='https://seller.kuajingmaihuo.com'; }, 200)";
|
||||||
|
Clipboard.SetDataObject(cookJs);
|
||||||
|
BaseMsgForm.ShowInfo("复制成功");
|
||||||
|
}
|
||||||
|
break;
|
||||||
case "":
|
case "":
|
||||||
dgvSelectProduct.Rows[e.RowIndex].Cells["colSelect"].Value = !(bool)dgvSelectProduct.Rows[e.RowIndex].Cells["colSelect"].Value;
|
dgvSelectProduct.Rows[e.RowIndex].Cells["colSelect"].Value = !(bool)dgvSelectProduct.Rows[e.RowIndex].Cells["colSelect"].Value;
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -138,6 +138,9 @@
|
|||||||
<metadata name="colImportCookies.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="colImportCookies.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="colCopyCookies.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="colSpuId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="colSpuId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
@@ -165,6 +168,12 @@
|
|||||||
<metadata name="colSubSa.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="colSubSa.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="colNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="colEditNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="ColDelete.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="ColDelete.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|||||||
@@ -0,0 +1,229 @@
|
|||||||
|
namespace TemuKJD.KJDForms.ProductSelectForms
|
||||||
|
{
|
||||||
|
partial class ProductSelectEditNotesForm
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProductSelectEditNotesForm));
|
||||||
|
this.panel2 = new System.Windows.Forms.Panel();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||||
|
this.label8 = new System.Windows.Forms.Label();
|
||||||
|
this.txtNotes = new DevComponents.DotNetBar.Controls.TextBoxX();
|
||||||
|
this.btnOk = new TemuKJD.UserControls.ButtonEx();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.txtShopName = new System.Windows.Forms.TextBox();
|
||||||
|
this.txtProdName = new System.Windows.Forms.TextBox();
|
||||||
|
this.txtSpu = new System.Windows.Forms.TextBox();
|
||||||
|
this.txtSkc = new System.Windows.Forms.TextBox();
|
||||||
|
this.panel2.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// panel2
|
||||||
|
//
|
||||||
|
this.panel2.BackColor = System.Drawing.Color.White;
|
||||||
|
this.panel2.Controls.Add(this.txtSkc);
|
||||||
|
this.panel2.Controls.Add(this.txtSpu);
|
||||||
|
this.panel2.Controls.Add(this.txtProdName);
|
||||||
|
this.panel2.Controls.Add(this.txtShopName);
|
||||||
|
this.panel2.Controls.Add(this.label4);
|
||||||
|
this.panel2.Controls.Add(this.label3);
|
||||||
|
this.panel2.Controls.Add(this.label2);
|
||||||
|
this.panel2.Controls.Add(this.label1);
|
||||||
|
this.panel2.Controls.Add(this.pictureBox1);
|
||||||
|
this.panel2.Controls.Add(this.label8);
|
||||||
|
this.panel2.Controls.Add(this.txtNotes);
|
||||||
|
this.panel2.Controls.Add(this.btnOk);
|
||||||
|
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.panel2.Location = new System.Drawing.Point(1, 33);
|
||||||
|
this.panel2.Name = "panel2";
|
||||||
|
this.panel2.Size = new System.Drawing.Size(365, 477);
|
||||||
|
this.panel2.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Location = new System.Drawing.Point(27, 183);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(56, 17);
|
||||||
|
this.label3.TabIndex = 392;
|
||||||
|
this.label3.Text = "商品标题";
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Location = new System.Drawing.Point(27, 249);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(56, 17);
|
||||||
|
this.label2.TabIndex = 391;
|
||||||
|
this.label2.Text = " SKC ID";
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Location = new System.Drawing.Point(27, 216);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(56, 17);
|
||||||
|
this.label1.TabIndex = 390;
|
||||||
|
this.label1.Text = " SPU ID";
|
||||||
|
//
|
||||||
|
// pictureBox1
|
||||||
|
//
|
||||||
|
this.pictureBox1.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
||||||
|
this.pictureBox1.Location = new System.Drawing.Point(115, 22);
|
||||||
|
this.pictureBox1.Name = "pictureBox1";
|
||||||
|
this.pictureBox1.Size = new System.Drawing.Size(136, 136);
|
||||||
|
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||||
|
this.pictureBox1.TabIndex = 389;
|
||||||
|
this.pictureBox1.TabStop = false;
|
||||||
|
//
|
||||||
|
// label8
|
||||||
|
//
|
||||||
|
this.label8.AutoSize = true;
|
||||||
|
this.label8.Location = new System.Drawing.Point(28, 314);
|
||||||
|
this.label8.Name = "label8";
|
||||||
|
this.label8.Size = new System.Drawing.Size(56, 17);
|
||||||
|
this.label8.TabIndex = 386;
|
||||||
|
this.label8.Text = " 备注";
|
||||||
|
//
|
||||||
|
// txtNotes
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
this.txtNotes.Border.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||||
|
this.txtNotes.Border.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||||
|
this.txtNotes.Border.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||||
|
this.txtNotes.Border.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
|
||||||
|
this.txtNotes.Border.Class = "CrumbBarBackgroundKey";
|
||||||
|
this.txtNotes.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
|
||||||
|
this.txtNotes.Border.PaddingBottom = 2;
|
||||||
|
this.txtNotes.Border.PaddingLeft = 2;
|
||||||
|
this.txtNotes.Border.PaddingRight = 2;
|
||||||
|
this.txtNotes.Border.PaddingTop = 2;
|
||||||
|
this.txtNotes.Location = new System.Drawing.Point(90, 312);
|
||||||
|
this.txtNotes.Multiline = true;
|
||||||
|
this.txtNotes.Name = "txtNotes";
|
||||||
|
this.txtNotes.Size = new System.Drawing.Size(239, 94);
|
||||||
|
this.txtNotes.TabIndex = 385;
|
||||||
|
//
|
||||||
|
// btnOk
|
||||||
|
//
|
||||||
|
this.btnOk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||||
|
this.btnOk.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
|
this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.btnOk.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.btnOk.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.btnOk.Location = new System.Drawing.Point(274, 416);
|
||||||
|
this.btnOk.Margin = new System.Windows.Forms.Padding(2);
|
||||||
|
this.btnOk.Name = "btnOk";
|
||||||
|
this.btnOk.Size = new System.Drawing.Size(55, 26);
|
||||||
|
this.btnOk.TabIndex = 372;
|
||||||
|
this.btnOk.Text = "提交";
|
||||||
|
this.btnOk.UseVisualStyleBackColor = false;
|
||||||
|
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
this.label4.AutoSize = true;
|
||||||
|
this.label4.Location = new System.Drawing.Point(27, 282);
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
this.label4.Size = new System.Drawing.Size(56, 17);
|
||||||
|
this.label4.TabIndex = 394;
|
||||||
|
this.label4.Text = "上传店铺";
|
||||||
|
//
|
||||||
|
// textBox1
|
||||||
|
//
|
||||||
|
this.txtShopName.Location = new System.Drawing.Point(90, 279);
|
||||||
|
this.txtShopName.Name = "textBox1";
|
||||||
|
this.txtShopName.ReadOnly = true;
|
||||||
|
this.txtShopName.Size = new System.Drawing.Size(239, 23);
|
||||||
|
this.txtShopName.TabIndex = 395;
|
||||||
|
//
|
||||||
|
// txtProdName
|
||||||
|
//
|
||||||
|
this.txtProdName.Location = new System.Drawing.Point(90, 180);
|
||||||
|
this.txtProdName.Name = "txtProdName";
|
||||||
|
this.txtProdName.ReadOnly = true;
|
||||||
|
this.txtProdName.Size = new System.Drawing.Size(239, 23);
|
||||||
|
this.txtProdName.TabIndex = 396;
|
||||||
|
//
|
||||||
|
// txtSpu
|
||||||
|
//
|
||||||
|
this.txtSpu.Location = new System.Drawing.Point(90, 213);
|
||||||
|
this.txtSpu.Name = "txtSpu";
|
||||||
|
this.txtSpu.ReadOnly = true;
|
||||||
|
this.txtSpu.Size = new System.Drawing.Size(239, 23);
|
||||||
|
this.txtSpu.TabIndex = 397;
|
||||||
|
//
|
||||||
|
// txtSkc
|
||||||
|
//
|
||||||
|
this.txtSkc.Location = new System.Drawing.Point(90, 246);
|
||||||
|
this.txtSkc.Name = "txtSkc";
|
||||||
|
this.txtSkc.ReadOnly = true;
|
||||||
|
this.txtSkc.Size = new System.Drawing.Size(239, 23);
|
||||||
|
this.txtSkc.TabIndex = 398;
|
||||||
|
//
|
||||||
|
// ProductSelectEditNotesForm
|
||||||
|
//
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||||
|
this.ClientSize = new System.Drawing.Size(367, 511);
|
||||||
|
this.Controls.Add(this.panel2);
|
||||||
|
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.Name = "ProductSelectEditNotesForm";
|
||||||
|
this.Text = "编辑上传备注";
|
||||||
|
this.TitleText = "编辑上传备注";
|
||||||
|
this.Load += new System.EventHandler(this.ProductSelectListForm_Load);
|
||||||
|
this.Controls.SetChildIndex(this.panel2, 0);
|
||||||
|
this.panel2.ResumeLayout(false);
|
||||||
|
this.panel2.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Panel panel2;
|
||||||
|
private UserControls.ButtonEx btnOk;
|
||||||
|
private System.Windows.Forms.Label label8;
|
||||||
|
private DevComponents.DotNetBar.Controls.TextBoxX txtNotes;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.PictureBox pictureBox1;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.TextBox txtSkc;
|
||||||
|
private System.Windows.Forms.TextBox txtSpu;
|
||||||
|
private System.Windows.Forms.TextBox txtProdName;
|
||||||
|
private System.Windows.Forms.TextBox txtShopName;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
using AllBase.Helper;
|
||||||
|
using AllBase.Model.Result;
|
||||||
|
using TemuKJD.KJDForms.BaseForms;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using AllBase;
|
||||||
|
using Work;
|
||||||
|
|
||||||
|
namespace TemuKJD.KJDForms.ProductSelectForms
|
||||||
|
{
|
||||||
|
public enum SetProductSelectNotesType
|
||||||
|
{
|
||||||
|
DbProduct,
|
||||||
|
ThirdProduct,
|
||||||
|
}
|
||||||
|
public partial class ProductSelectEditNotesForm : LRBaseForm
|
||||||
|
{
|
||||||
|
TemuDBProductSelect dbProd = null;
|
||||||
|
SetProductSelectNotesType selectNotesType;
|
||||||
|
|
||||||
|
public ProductSelectEditNotesForm(TemuDBProductSelect prod, SetProductSelectNotesType notesType= SetProductSelectNotesType.DbProduct)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
dbProd = prod;
|
||||||
|
selectNotesType = notesType;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ProductSelectListForm_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (dbProd != null)
|
||||||
|
{
|
||||||
|
txtProdName.Text = dbProd.product_name;
|
||||||
|
txtSkc.Text = dbProd.skc_id;
|
||||||
|
txtSpu.Text = dbProd.spu_id;
|
||||||
|
txtShopName.Text = dbProd.shop_account;
|
||||||
|
this.pictureBox1.ImageLocation = dbProd.main_img.Replace("https", "http");
|
||||||
|
this.txtNotes.Text = dbProd.notes;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnOk_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
var url = "";
|
||||||
|
if (selectNotesType == SetProductSelectNotesType.DbProduct)
|
||||||
|
url = BaseClass.BuildObjString("product/mdy_product_select_notes");
|
||||||
|
else
|
||||||
|
url = BaseClass.BuildObjString("product_third/mdy_product_select_notes");
|
||||||
|
var data = UserLogin.GetSignaturex() +
|
||||||
|
"&db_id=" + dbProd.id + "¬es=" + this.txtNotes.Text.Trim();
|
||||||
|
var html = GetHtml.PostUtf8(url, data);
|
||||||
|
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||||
|
html = GetHtml.PostUtf8(url, data);
|
||||||
|
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||||
|
html = GetHtml.PostUtf8(url, data);
|
||||||
|
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||||
|
{
|
||||||
|
BaseMsgForm.ShowError("上传备注编辑失败,请重试!" + BaseRegex.GetStringJson(ref html, "msg"));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dbProd.notes = this.txtNotes.Text.Trim();
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void lblSPUId_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,298 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>
|
||||||
|
AAABAAEAgIAQYAAAAABoKAAAFgAAACgAAACAAAAAAAEAAAEABAAAAAAAACgAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAgICAAMDAwAAAAP8AAP8AAAD//wD/AAAA/wD/AP//
|
||||||
|
AAD///8AAAAAAAAAAAAAAAAABEZmbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZkQAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAZszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMxmAAAAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMxkAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMzMzMzGQAAAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAABszMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAAAAbMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMx3d4iIiIiIiIh3fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAABszMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzHeIiIiIj/////////iIiIiId8zMzMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAAAGzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMeIiI/////////////////////4iIh8zMzMzMzMzMzMzMzMzMzMzMxgAAAAAAAATMzM
|
||||||
|
zMzMzMzMzMzMzMzMzHiI////////////////////////////iIfMzMzMzMzMzMzMzMzMzMzMxAAAAAAA
|
||||||
|
AGzMzMzMzMzMzMzMzMzMx3iP///////////////////////////////4iHzMzMzMzMzMzMzMzMzMzMYA
|
||||||
|
AAAAAAbMzMzMzMzMzMzMzMzMx3iP//////////////////////////////////+IfMzMzMzMzMzMzMzM
|
||||||
|
zMzMYAAAAABMzMzMzMzMzMzMzMzMx3iP/////////////////////////////////////4h8zMzMzMzM
|
||||||
|
zMzMzMzMzMQAAAAAbMzMzMzMzMzMzMzMzHiP////////////////////////////////////////h3zM
|
||||||
|
zMzMzMzMzMzMzMzGAAAABMzMzMzMzMzMzMzMzHiP////////////////////////////////////////
|
||||||
|
//iHzMzMzMzMzMzMzMzMzEAAAAbMzMzMzMzMzMzMzMeI////////////////////////////////////
|
||||||
|
////////+IfMzMzMzMzMzMzMzMxgAABMzMzMzMzMzMzMzMx4////////////////////////////////
|
||||||
|
//////////////+IfMzMzMzMzMzMzMzMxAAAbMzMzMzMzMzMzMzHj///////////////////////////
|
||||||
|
/////////////////////4fMzMzMzMzMzMzMzMYAAMzMzMzMzMzMzMzMeP//////////////////////
|
||||||
|
///////////////////////////4fMzMzMzMzMzMzMzMAAbMzMzMzMzMzMzMx4//////////////////
|
||||||
|
/////////////////////////////////4fMzMzMzMzMzMzMzGAGzMzMzMzMzMzMzHj/////////////
|
||||||
|
///////////////////////////////////////4fMzMzMzMzMzMzMxgDMzMzMzMzMzMzMyI////////
|
||||||
|
/////////////////////////////////////////////4zMzMzMzMzMzMzMwEzMzMzMzMzMzMzHj///
|
||||||
|
//////////////////////////////////////////////////+HzMzMzMzMzMzMzMRszMzMzMzMzMzM
|
||||||
|
eP//////////////////////////////////////////////////////+HzMzMzMzMzMzMzGbMzMzMzM
|
||||||
|
zMzMzHj///////////////////////////////////////////////////////+MzMzMzMzMzMzMxmzM
|
||||||
|
zMzMzMzMzMyP////+IiP////////////////////////////////////////+I//////h8zMzMzMzMzM
|
||||||
|
zMZszMzMzMzMzMzHj////4iIiI//////////////////////////////////////+IiIj/////jMzMzM
|
||||||
|
zMzMzMzGbMzMzMzMzMzMyP////iIiIiI/////////////////////////////////////4iIiIj////4
|
||||||
|
fMzMzMzMzMzMxszMzMzMzMzMzHj////4iIiIiP////////////////////////////////////+IiIiI
|
||||||
|
j////4zMzMzMzMzMzMbMzMzMzMzMzMx4////iIiIiIj////////////////////////////////////4
|
||||||
|
iIiIiI////+HzMzMzMzMzMzMzMzMzMzMzMzMj////4iIiIiI//////////////+IiP//iI//////////
|
||||||
|
////+IiIiIiP////h8zMzMzMzMzMzMzMzMzMzMzMzI/////4iIiIiP/////////////4d3eIiIeIj///
|
||||||
|
//////////+IiIiIj/////jMzMzMzMzMzMzMzMzMzMzMzMyP////+IiIiIj/////////////iIiId3eI
|
||||||
|
iI//////////////iIiIiI/////4zMzMzMzMzMzMzMzMzMzMzMzHj/////+IiIiP/////////////4//
|
||||||
|
/4d4j/+P//////////////iIiIj/////+MzMzMzMzMzMzMzMzMzMzMzMx4//////+IiP////////////
|
||||||
|
///////4j///////////////////iIiP//////jMzMzMzMzMzMzMzMzMzMzMzMeP//////////+IiIj/
|
||||||
|
///////////////////////////////////////////4fMzMzMzMzMzMzMzMzMzMzMzH//////////+H
|
||||||
|
fMx8eP//////////////////////////iId3iP//////////+HzMzMzMzMzMzMzMzMzMzMzMyP//////
|
||||||
|
///4fMzHh8eP////////////////////////+MzMzMd4//////////h8zMzMzMzMzMzMzMzMzMzMzMf/
|
||||||
|
////////+MzMePjMeP///////////////////////4zMzMeHx4/////////4fMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzH/////////4fMd3eHzMeP//////////////////////iMzMzIiHx4////////+HzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMx/////////+Hx4iIfMzMj//////////////////////4h3d8x4h8yP////////jMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMeP////////+HiP+IfMzI//////////////////////+HiIiHd3zHj////////4zMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMzHj/////////h4//+HzMeP//////////////////////h4//h8zMyP////////
|
||||||
|
+MzMzMzMzMzMzMzMzMzMzMzMzI/////////4iP//h8x4///////////////////////4j//4fMzHj///
|
||||||
|
//////jMzMzMzMzMzMzMzMzMzMzMzMyP///////4iIiP+IfHj///////////////////////+Ij/+HzM
|
||||||
|
eP/////////4zMzMzMzMzMzMzMzMzMzMzMzMj///////iIiIiIh3eP////////////////////////+I
|
||||||
|
j4h8x3iI////////h8zMzMzMzMzMzMzMzMzMzMzMzH//////+Hj///iIiI//////////////////////
|
||||||
|
/////4iId4iIiIj//////4zMzMzMzMzMzMzMzMzMzMzMzMx4//////iP////iP//////////////////
|
||||||
|
/////////////4iP//iI//////+MzMzMzMzMzMzMzMzMzMzMzMzMyP//////////+I//////////////
|
||||||
|
///////////////////4eP//iP//////jMzMzMzMzMzMzMzMzMzMzMzMzMj///////////iP////////
|
||||||
|
/////////////////////////4j/////////+HzMzMzMzMzMzMzMzMzMzMzMzMzHj///////////////
|
||||||
|
//////////////////////////////+I//////////jMzMzMzMzMzMzMzMzMzMzMzMzMzI//////////
|
||||||
|
//////////////////////////////////////////////+HzMzMzMzMzMzMzMzMzMzMzMzMzMyP////
|
||||||
|
////////////////////////////////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
eP///////////////////////////////////////////////////////4zMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMj///////////////////////////////////////////////////////h8zMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzHj//////////////////////////////////////////////////////4zMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzI//////////////////////////////////////////////////////h8zMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMzMzMx4////////////////////////////////////////////////////+HzM
|
||||||
|
zMzMzMzMzMzMzMzMzMzMzMzMzMzMyI////+I////////////////////////////////////////////
|
||||||
|
//h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP////+Ij/////////////////////////////////////
|
||||||
|
//////+HzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP////+IiIiIj//////////////////////////4
|
||||||
|
////iI/////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMiP/////4iIiP//////////////////////
|
||||||
|
////+IiIiIj/////iHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiP//////////////////////////
|
||||||
|
///////////4iIj//////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiP////////////////////
|
||||||
|
//////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiP//////////////
|
||||||
|
//////////////////////////////+HzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHj/////////
|
||||||
|
///////////////////////////////////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP////
|
||||||
|
////////////////////////////////////////+MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzI
|
||||||
|
j/////////////////////////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMeP//////////////////////////////////////////////h8zMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMx4////////+I//////////////////////////////////////jMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMeP///////4iIj///////////////////////////iP///////4fMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMx4////////iIiIiP///////////////////////4iIiP///////4zMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMzMzMzMj///////+IiIiIiI////////////////////+IiIiIj///////+HzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMzMzMzMzMzMx4////////iIiIiIj////////////////////4iIiIiIj///////
|
||||||
|
+MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMj///////+IiIiIiI////////////////////+IiIiIiI//
|
||||||
|
//////h8zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx4////////iIiIiIiP////////////////////iIiI
|
||||||
|
iIiI///////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMj///////+IiIiIiIj/////iIiIiIiIj/////
|
||||||
|
/4iIiIiIiP///////4zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx4////////iIiIiIiI/////4zMzMzMzM
|
||||||
|
j/////+IiIiIiIiP//////+HzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP//////+IiIiIiIj/////+MzM
|
||||||
|
zMzMzI//////+IiIiIiIj///////+MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzI////////iIiIiIiI////
|
||||||
|
//jMzMzMzMyP//////iIiIiIiIj///////jMzMzMzMzMzMzMzMzMzMzMzMzMzMzMeP///////4iIiIiI
|
||||||
|
iP/////4zMzMzMzMj//////4iIiIiIiI///////4fMzMzMzMzMzMzMzMzMzMzMzMzMzMzI////////iI
|
||||||
|
iIiIiI//////+MzMzMzMzI//////+IiIiIiIiP///////4zMzMzMzMzMzMzMzMzMzMzMzMzMzMyP////
|
||||||
|
///4iIiIiIiP//////fMzMzMzMyP//////+IiIiIiIj///////+MzMzMzMzMzMzMzMzMzMzMzMzMzMzH
|
||||||
|
j///////+IiIiIiI//////+HzMzMzMzMeP//////iIiIiIiIj///////jMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMyP////////iIiIiIiP//////jMzMzMzMzHj///////iIiIiIiI///////4fMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMj///////+IiIiIiI///////4zMzMzMzMzI///////4iIiIiIiI///////3zMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzI////////iIiIiIiP//////+MzMzMzMzMyP//////+IiIiIiIiP//////+MzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMzMeP///////4iIiIiIj///////jMzMzMzMzMj///////+IiIiIiIj///////jM
|
||||||
|
zMzMzMzMzMzMzMzMzMzMzMzMzI////////+IiIiIiP//////+HzMzMzMzMzHj///////iIiIiIiI////
|
||||||
|
///4zMzMzMzMzMzMzMzMzMzMzMzMzMyP////////iIiIiI////////jMzMzMzMzMzI///////4iIiIiI
|
||||||
|
iI//////+MzMzMzMzMzMzMzMzMzMzMzMzMzMj////////4iIiIiP///////4zMzMzMzMzMyP///////4
|
||||||
|
iIiIiIiP//////jMzMzMzMzMzMzMzMzMzMzMzMzMzI////////+IiIiI////////h8zMzMzMzMzMeP//
|
||||||
|
/////4iIiIiIj//////4fMzMzMzMzMzMzMzMzMzMzMzMzMyP////////iIiIj////////4fMzMzMzMzM
|
||||||
|
zHj///////+IiIiIiI//////+HzMzMzMzMzMzMzMzMzMzMzMzMzHj/////////iIiP////////+MzMzM
|
||||||
|
zMzMzMzI////////+IiIiIiP//////h8zMzMzMzMzMzMxmzMzMzMzMzMx4/////////4iP/////////4
|
||||||
|
fMzMzMzMzMzMx4////////+IiIiIj//////4fMzMzMzMzMzMzMZszMzMzMzMzMeP////////////////
|
||||||
|
////+MzMzMzMzMzMzMyP////////iIiIiP//////+HzMzMzMzMzMzMzGbMzMzMzMzMzH////////////
|
||||||
|
//////////fMzMzMzMzMzMzMeP////////iIiIj///////98zMzMzMzMzMzMxmzMzMzMzMzMyP//////
|
||||||
|
//////////////+HzMzMzMzMzMzMzHj/////////+IiP////////jMzMzMzMzMzMzMZszMzMzMzMzMj/
|
||||||
|
////////////////////jMzMzMzMzMzMzMzIj////////////////////4zMzMzMzMzMzMzGTMzMzMzM
|
||||||
|
zMzH////////////////////+HzMzMzMzMzMzMzMx4////////////////////+MzMzMzMzMzMzMxAzM
|
||||||
|
zMzMzMzMx/////////////////////jMzMzMzMzMzMzMzMyI///////////////////4fMzMzMzMzMzM
|
||||||
|
zMAGzMzMzMzMzMeP//////////////////+HzMzMzMzMzMzMzMzMeP//////////////////+HzMzMzM
|
||||||
|
zMzMzMxgBszMzMzMzMzHj//////////////////4fMzMzMzMzMzMzMzMzMeP//////////////////h8
|
||||||
|
zMzMzMzMzMzMYADMzMzMzMzMzI//////////////////+HzMzMzMzMzMzMzMzMzHj///////////////
|
||||||
|
///4zMzMzMzMzMzMzAAAbMzMzMzMzMyP/////////////////4fMzMzMzMzMzMzMzMzMzHj/////////
|
||||||
|
////////+MzMzMzMzMzMzMYAAEzMzMzMzMzMj/////////////////+MzMzMzMzMzMzMzMzMzMzIj///
|
||||||
|
/////////////4fMzMzMzMzMzMzEAAAGzMzMzMzMzHj////////////////4fMzMzMzMzMzMzMzMzMzM
|
||||||
|
x4////////////////+MzMzMzMzMzMzMYAAABMzMzMzMzMx4////////////////h8zMzMzMzMzMzMzM
|
||||||
|
zMzMzMx4///////////////4fMzMzMzMzMzMzEAAAABszMzMzMzMx4//////////////+HzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMx4//////////////+MzMzMzMzMzMzMYAAAAATMzMzMzMzMyP/////////////4fMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMeI/////////////4fMzMzMzMzMzMzEAAAAAAbMzMzMzMzMeP////////////h8
|
||||||
|
zMzMzMzMzMzMzMzMzMzMzMzMeI////////////h8zMzMzMzMzMzMYAAAAAAAbMzMzMzMzMeP////////
|
||||||
|
//iHzMzMzMzMzMzMzMzMzMzMzMzMzMyI//////////+HzMzMzMzMzMzMxgAAAAAAAEzMzMzMzMzMeP//
|
||||||
|
//////iHfMzMzMzMzMzMzMzMzMzMzMzMzMzMx4/////////4fMzMzMzMzMzMzMQAAAAAAAAGzMzMzMzM
|
||||||
|
zMeI//////iHfMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx4j//////4h8zMzMzMzMzMzMxgAAAAAAAAAGzM
|
||||||
|
zMzMzMzMx4iIiIiHzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzHiIj/+Ih3zMzMzMzMzMzMzGAAAAAAAA
|
||||||
|
AAAGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMx3iId8zMzMzMzMzMzMzMYAAA
|
||||||
|
AAAAAAAAAGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
xgAAAAAAAAAAAAAGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzGAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzGQAAAAAAAAAAAAAAAAAbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMYAAAAAAAAAAAAAAAAAAARszMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAABGzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAEbMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMzMzMzMzMZAAAAAAAAAAAAAAAAAAAAAAAAAAABmzMzMzMzMzMzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGZmzMzMzMzMzMzMzM
|
||||||
|
zMzMzMzMzMzMzMzMzMzMzMzMzMzMzMZmZEAAAAAAAAAAAAAAAAD////+AAAAAAAAAAD/////////AAAA
|
||||||
|
AAAAAAAAAP//////+AAAAAAAAAAAAAAf/////+AAAAAAAAAAAAAAB/////+AAAAAAAAAAAAAAAH////+
|
||||||
|
AAAAAAAAAAAAAAAAf////AAAAAAAAAAAAAAAAD////AAAAAAAAAAAAAAAAAP///gAAAAAAAAAAAAAAAA
|
||||||
|
B///wAAAAAAAAAAAAAAAAAP//4AAAAAAAAAAAAAAAAAB//8AAAAAAAAAAAAAAAAAAP/+AAAAAAAAAAAA
|
||||||
|
AAAAAAB//gAAAAAAAAAAAAAAAAAAf/wAAAAAAAAAAAAAAAAAAD/4AAAAAAAAAAAAAAAAAAAf+AAAAAAA
|
||||||
|
AAAAAAAAAAAAH/AAAAAAAAAAAAAAAAAAAA/wAAAAAAAAAAAAAAAAAAAP4AAAAAAAAAAAAAAAAAAAB+AA
|
||||||
|
AAAAAAAAAAAAAAAAAAfAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAA
|
||||||
|
AAOAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA
|
||||||
|
AAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAABAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAA
|
||||||
|
AAGAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAA
|
||||||
|
AAAAAAABgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAADwAAAAAAA
|
||||||
|
AAAAAAAAAAAAA+AAAAAAAAAAAAAAAAAAAAfgAAAAAAAAAAAAAAAAAAAH8AAAAAAAAAAAAAAAAAAAD/AA
|
||||||
|
AAAAAAAAAAAAAAAAAA/4AAAAAAAAAAAAAAAAAAAf+AAAAAAAAAAAAAAAAAAAH/wAAAAAAAAAAAAAAAAA
|
||||||
|
AD/+AAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAf/8AAAAAAAAAAAAAAAAAAP//gAAAAAAAAAAA
|
||||||
|
AAAAAAH//8AAAAAAAAAAAAAAAAAD///gAAAAAAAAAAAAAAAAB///8AAAAAAAAAAAAAAAAA////wAAAAA
|
||||||
|
AAAAAAAAAAA////+AAAAAAAAAAAAAAAAf////4AAAAAAAAAAAAAAAf/////gAAAAAAAAAAAAAAf/////
|
||||||
|
+AAAAAAAAAAAAAAf//////8AAAAAAAAAAAAA/////////gAAAAAAAAAAf////w==
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
||||||
+15
-15
@@ -40,8 +40,8 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
this.colSubSaId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colSubSaId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.colSubUserName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colSubUserName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.colSubSaName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colSubSaName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.btnOk = new TemuKJD.UserControls.ButtonEx();
|
|
||||||
this.ucCheckBox1 = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
this.ucCheckBox1 = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||||
|
this.btnOk = new TemuKJD.UserControls.ButtonEx();
|
||||||
this.panel2.SuspendLayout();
|
this.panel2.SuspendLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||||
this.splitContainer1.Panel1.SuspendLayout();
|
this.splitContainer1.Panel1.SuspendLayout();
|
||||||
@@ -145,6 +145,18 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
this.colSubSaName.ReadOnly = true;
|
this.colSubSaName.ReadOnly = true;
|
||||||
this.colSubSaName.Width = 150;
|
this.colSubSaName.Width = 150;
|
||||||
//
|
//
|
||||||
|
// ucCheckBox1
|
||||||
|
//
|
||||||
|
this.ucCheckBox1.AutoSize = true;
|
||||||
|
this.ucCheckBox1.Checked = true;
|
||||||
|
this.ucCheckBox1.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||||
|
this.ucCheckBox1.Location = new System.Drawing.Point(5, 8);
|
||||||
|
this.ucCheckBox1.Name = "ucCheckBox1";
|
||||||
|
this.ucCheckBox1.Size = new System.Drawing.Size(300, 16);
|
||||||
|
this.ucCheckBox1.TabIndex = 375;
|
||||||
|
this.ucCheckBox1.Text = "同店铺下的其他商品(限待上传)也分配给该二级超管";
|
||||||
|
this.ucCheckBox1.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
// btnOk
|
// btnOk
|
||||||
//
|
//
|
||||||
this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
@@ -162,26 +174,14 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
this.btnOk.UseVisualStyleBackColor = false;
|
this.btnOk.UseVisualStyleBackColor = false;
|
||||||
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
|
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
|
||||||
//
|
//
|
||||||
// ucCheckBox1
|
// ProductSelectSetSubSaForm
|
||||||
//
|
|
||||||
this.ucCheckBox1.AutoSize = true;
|
|
||||||
this.ucCheckBox1.Checked = true;
|
|
||||||
this.ucCheckBox1.CheckState = System.Windows.Forms.CheckState.Checked;
|
|
||||||
this.ucCheckBox1.Location = new System.Drawing.Point(5, 8);
|
|
||||||
this.ucCheckBox1.Name = "ucCheckBox1";
|
|
||||||
this.ucCheckBox1.Size = new System.Drawing.Size(240, 16);
|
|
||||||
this.ucCheckBox1.TabIndex = 375;
|
|
||||||
this.ucCheckBox1.Text = "同店铺下的其他商品也分配给该二级超管";
|
|
||||||
this.ucCheckBox1.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// DbProductSelectListSubSaForm
|
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(393, 540);
|
this.ClientSize = new System.Drawing.Size(393, 540);
|
||||||
this.Controls.Add(this.panel2);
|
this.Controls.Add(this.panel2);
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.Name = "DbProductSelectListSubSaForm";
|
this.Name = "ProductSelectSetSubSaForm";
|
||||||
this.Text = "指定二级超管";
|
this.Text = "指定二级超管";
|
||||||
this.TitleText = "指定二级超管";
|
this.TitleText = "指定二级超管";
|
||||||
this.Load += new System.EventHandler(this.DbProductSelectListSubSaForm_Load);
|
this.Load += new System.EventHandler(this.DbProductSelectListSubSaForm_Load);
|
||||||
|
|||||||
@@ -41,23 +41,46 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void btnOk_Click(object sender, EventArgs e)
|
private void btnOk_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
var msg = SetSubSa(false);
|
||||||
|
if (!string.IsNullOrEmpty(msg))
|
||||||
|
{
|
||||||
|
BaseMsgForm.ShowError(msg);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (this.ucCheckBox1.Checked)
|
||||||
|
{
|
||||||
|
msg = SetSubSa(true);
|
||||||
|
if (!string.IsNullOrEmpty(msg))
|
||||||
|
{
|
||||||
|
BaseMsgForm.ShowError(msg);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
string SetSubSa(bool isShopAllSameSaCheck=false)
|
||||||
{
|
{
|
||||||
var selectRow = this.dgvSaUser.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colSelect"]?.Value.ParseToBool() == true);
|
var selectRow = this.dgvSaUser.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colSelect"]?.Value.ParseToBool() == true);
|
||||||
if (selectRow == null)
|
if (selectRow == null)
|
||||||
{
|
{
|
||||||
BaseMsgForm.ShowError("请选择要分配的二级管理员!");
|
return "请选择要分配的二级管理员!";
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
var sub_sa = selectRow.Cells["colSubSaName"].Value.ParseToString();
|
var sub_sa = selectRow.Cells["colSubSaName"].Value.ParseToString();
|
||||||
|
|
||||||
StringBuilder data = new StringBuilder();
|
StringBuilder data = new StringBuilder();
|
||||||
data.Append(UserLogin.GetSignaturex());
|
data.Append(UserLogin.GetSignaturex());
|
||||||
if (ucCheckBox1.Checked)
|
|
||||||
data.Append("&shop_id=" + string.Join(",", lstShopSelectId));
|
|
||||||
else
|
|
||||||
data.Append("&db_id=" + string.Join(",", lstProductSelectId));
|
|
||||||
data.Append("&operate_sub_sa_name=" + sub_sa);
|
data.Append("&operate_sub_sa_name=" + sub_sa);
|
||||||
data.Append("&status=待上传");
|
if (isShopAllSameSaCheck)
|
||||||
|
{
|
||||||
|
data.Append("&shop_id=" + string.Join(",", lstShopSelectId));
|
||||||
|
data.Append("&status=待上传");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
data.Append("&db_id=" + string.Join(",", lstProductSelectId));
|
||||||
|
}
|
||||||
string url = "";
|
string url = "";
|
||||||
if (setSubSaType == SetSubSaType.DbProduct)
|
if (setSubSaType == SetSubSaType.DbProduct)
|
||||||
url = BaseClass.BuildObjString("product/set_select_product_sub_sa");
|
url = BaseClass.BuildObjString("product/set_select_product_sub_sa");
|
||||||
@@ -68,19 +91,18 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
{
|
{
|
||||||
if (html.Contains("\"code\":200"))
|
if (html.Contains("\"code\":200"))
|
||||||
{
|
{
|
||||||
OnSaveComplete(ucCheckBox1.Checked, sub_sa);
|
OnSaveComplete(isShopAllSameSaCheck, sub_sa);
|
||||||
this.Close();
|
return "";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var msg = BaseRegex.GetStringJson(ref html, "msg");
|
var msg = BaseRegex.GetStringJson(ref html, "msg");
|
||||||
if (string.IsNullOrEmpty(msg))
|
if (string.IsNullOrEmpty(msg))
|
||||||
msg = html;
|
msg = html;
|
||||||
BaseMsgForm.ShowError(msg, "错误");
|
return "发生错误:" + msg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
return "未知错误,请重试!";
|
||||||
BaseMsgForm.ShowError("未知错误,请重试!", "错误");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DbProductSelectListSubSaForm_Load(object sender, EventArgs e)
|
private void DbProductSelectListSubSaForm_Load(object sender, EventArgs e)
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ using System.Drawing;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
using System.Net.Http;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@@ -223,16 +224,13 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
foreach (var prodSelect in lstTemuDBProductSelect)
|
foreach (var prodSelect in lstTemuDBProductSelect)
|
||||||
{
|
{
|
||||||
Image image = null;
|
Image image = null;
|
||||||
try
|
string imgUrl = prodSelect?.main_img?.Replace("https", "http");
|
||||||
{
|
string rst = "";
|
||||||
using (Stream stream = WebRequest.Create(prodSelect.main_img.Replace("https", "http")).GetResponse().GetResponseStream())
|
if (!string.IsNullOrWhiteSpace(imgUrl))
|
||||||
{
|
image = GetHtml.GetUrlImg(imgUrl, out rst);
|
||||||
image = Image.FromStream(stream);
|
if (!string.IsNullOrEmpty(rst))
|
||||||
}
|
BaseMsgForm.ShowError(rst);
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
Invoke(new Action(() =>
|
Invoke(new Action(() =>
|
||||||
{
|
{
|
||||||
int rowIndex = this.dgvSelectProduct.Rows.Add(
|
int rowIndex = this.dgvSelectProduct.Rows.Add(
|
||||||
@@ -263,7 +261,6 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public List<TemuDBProductSelect> GetSelectProductList(out int pageCount, int page = 1, int pageSize = 50)
|
public List<TemuDBProductSelect> GetSelectProductList(out int pageCount, int page = 1, int pageSize = 50)
|
||||||
{
|
{
|
||||||
var lstShopId = dgvShop.Rows.Cast<DataGridViewRow>().Where(row
|
var lstShopId = dgvShop.Rows.Cast<DataGridViewRow>().Where(row
|
||||||
@@ -353,9 +350,6 @@ namespace TemuKJD.KJDForms.ProductSelectForms
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "编辑备注":
|
case "编辑备注":
|
||||||
//DbProductEditNotesForm editForm = new DbProductEditNotesForm(dbProduct);
|
|
||||||
//editForm.ShowDialog();
|
|
||||||
//dgvDbProduct.Rows[e.RowIndex].Cells["col_notes"].Value = dbProduct.notes;
|
|
||||||
break;
|
break;
|
||||||
case "草稿箱Id":
|
case "草稿箱Id":
|
||||||
//if (!string.IsNullOrEmpty(draftId) && shop != null)
|
//if (!string.IsNullOrEmpty(draftId) && shop != null)
|
||||||
|
|||||||
+196
-180
@@ -33,7 +33,6 @@
|
|||||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProductThirdSelectListManageForm));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProductThirdSelectListManageForm));
|
||||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||||
this.chkNoSubSa = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
|
||||||
this.btnSetSubSa = new TemuKJD.UserControls.ButtonEx();
|
this.btnSetSubSa = new TemuKJD.UserControls.ButtonEx();
|
||||||
this.cmbStatus = new System.Windows.Forms.ComboBox();
|
this.cmbStatus = new System.Windows.Forms.ComboBox();
|
||||||
this.label8 = new System.Windows.Forms.Label();
|
this.label8 = new System.Windows.Forms.Label();
|
||||||
@@ -54,9 +53,12 @@
|
|||||||
this.label3 = new System.Windows.Forms.Label();
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
this.txtCat = new System.Windows.Forms.TextBox();
|
this.txtCat = new System.Windows.Forms.TextBox();
|
||||||
this.label2 = new System.Windows.Forms.Label();
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.chkNoSubSa = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||||
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
|
||||||
this.pbLoading = new System.Windows.Forms.PictureBox();
|
this.pbLoading = new System.Windows.Forms.PictureBox();
|
||||||
this.dgvSelectProduct = new TemuKJD.UserComponent.DataGridViewEx();
|
this.dgvSelectProduct = new TemuKJD.UserComponent.DataGridViewEx();
|
||||||
|
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
||||||
|
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||||
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||||
this.colSelectId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colSelectId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.colSupplierId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colSupplierId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
@@ -64,6 +66,7 @@
|
|||||||
this.colInShop = new System.Windows.Forms.DataGridViewLinkColumn();
|
this.colInShop = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.colLogin = new System.Windows.Forms.DataGridViewLinkColumn();
|
this.colLogin = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.colImportCookies = new System.Windows.Forms.DataGridViewLinkColumn();
|
this.colImportCookies = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
|
this.colCopyCookies = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.colSpuId = new System.Windows.Forms.DataGridViewLinkColumn();
|
this.colSpuId = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.colSkcId = new System.Windows.Forms.DataGridViewLinkColumn();
|
this.colSkcId = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.colProductSkcPic = new System.Windows.Forms.DataGridViewImageColumn();
|
this.colProductSkcPic = new System.Windows.Forms.DataGridViewImageColumn();
|
||||||
@@ -71,13 +74,13 @@
|
|||||||
this.colProductCat = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colProductCat = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.colExtCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colExtCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.colStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.colDraftId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colDraftId = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.colMdyTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colMdyTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.colSubSa = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colSubSa = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
|
this.colNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
|
this.colEditNotes = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.ColDelete = new System.Windows.Forms.DataGridViewLinkColumn();
|
this.ColDelete = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||||
this.colOpResult = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
this.colOpResult = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
|
|
||||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
|
||||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||||
this.splitContainer1.Panel1.SuspendLayout();
|
this.splitContainer1.Panel1.SuspendLayout();
|
||||||
this.splitContainer1.Panel2.SuspendLayout();
|
this.splitContainer1.Panel2.SuspendLayout();
|
||||||
@@ -130,16 +133,6 @@
|
|||||||
this.splitContainer1.SplitterDistance = 53;
|
this.splitContainer1.SplitterDistance = 53;
|
||||||
this.splitContainer1.TabIndex = 2;
|
this.splitContainer1.TabIndex = 2;
|
||||||
//
|
//
|
||||||
// chkNoSubSa
|
|
||||||
//
|
|
||||||
this.chkNoSubSa.AutoSize = true;
|
|
||||||
this.chkNoSubSa.Location = new System.Drawing.Point(1167, 17);
|
|
||||||
this.chkNoSubSa.Name = "chkNoSubSa";
|
|
||||||
this.chkNoSubSa.Size = new System.Drawing.Size(123, 21);
|
|
||||||
this.chkNoSubSa.TabIndex = 467;
|
|
||||||
this.chkNoSubSa.Text = "仅显示未分配超管";
|
|
||||||
this.chkNoSubSa.UseVisualStyleBackColor = true;
|
|
||||||
//
|
|
||||||
// btnSetSubSa
|
// btnSetSubSa
|
||||||
//
|
//
|
||||||
this.btnSetSubSa.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnSetSubSa.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
@@ -348,6 +341,16 @@
|
|||||||
this.label2.TabIndex = 426;
|
this.label2.TabIndex = 426;
|
||||||
this.label2.Text = "类目:";
|
this.label2.Text = "类目:";
|
||||||
//
|
//
|
||||||
|
// chkNoSubSa
|
||||||
|
//
|
||||||
|
this.chkNoSubSa.AutoSize = true;
|
||||||
|
this.chkNoSubSa.Location = new System.Drawing.Point(1167, 17);
|
||||||
|
this.chkNoSubSa.Name = "chkNoSubSa";
|
||||||
|
this.chkNoSubSa.Size = new System.Drawing.Size(123, 21);
|
||||||
|
this.chkNoSubSa.TabIndex = 467;
|
||||||
|
this.chkNoSubSa.Text = "仅显示未分配超管";
|
||||||
|
this.chkNoSubSa.UseVisualStyleBackColor = true;
|
||||||
|
//
|
||||||
// splitContainer2
|
// splitContainer2
|
||||||
//
|
//
|
||||||
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
@@ -406,6 +409,7 @@
|
|||||||
this.colInShop,
|
this.colInShop,
|
||||||
this.colLogin,
|
this.colLogin,
|
||||||
this.colImportCookies,
|
this.colImportCookies,
|
||||||
|
this.colCopyCookies,
|
||||||
this.colSpuId,
|
this.colSpuId,
|
||||||
this.colSkcId,
|
this.colSkcId,
|
||||||
this.colProductSkcPic,
|
this.colProductSkcPic,
|
||||||
@@ -416,6 +420,8 @@
|
|||||||
this.colDraftId,
|
this.colDraftId,
|
||||||
this.colMdyTime,
|
this.colMdyTime,
|
||||||
this.colSubSa,
|
this.colSubSa,
|
||||||
|
this.colNotes,
|
||||||
|
this.colEditNotes,
|
||||||
this.ColDelete,
|
this.ColDelete,
|
||||||
this.colOpResult});
|
this.colOpResult});
|
||||||
this.dgvSelectProduct.Dock = System.Windows.Forms.DockStyle.Fill;
|
this.dgvSelectProduct.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
@@ -425,172 +431,9 @@
|
|||||||
this.dgvSelectProduct.RowHeadersWidth = 51;
|
this.dgvSelectProduct.RowHeadersWidth = 51;
|
||||||
this.dgvSelectProduct.RowTemplate.Height = 23;
|
this.dgvSelectProduct.RowTemplate.Height = 23;
|
||||||
this.dgvSelectProduct.Size = new System.Drawing.Size(1430, 552);
|
this.dgvSelectProduct.Size = new System.Drawing.Size(1430, 552);
|
||||||
this.dgvSelectProduct.TabIndex = 188;
|
this.dgvSelectProduct.TabIndex = 190;
|
||||||
this.dgvSelectProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectProduct_CellContentClick);
|
this.dgvSelectProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectProduct_CellContentClick);
|
||||||
//
|
//
|
||||||
// colSelect
|
|
||||||
//
|
|
||||||
this.colSelect.HeaderText = "选择";
|
|
||||||
this.colSelect.MinimumWidth = 6;
|
|
||||||
this.colSelect.Name = "colSelect";
|
|
||||||
this.colSelect.ReadOnly = true;
|
|
||||||
this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
|
||||||
this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
|
||||||
this.colSelect.Width = 30;
|
|
||||||
//
|
|
||||||
// colSelectId
|
|
||||||
//
|
|
||||||
this.colSelectId.HeaderText = "认领Id";
|
|
||||||
this.colSelectId.MinimumWidth = 6;
|
|
||||||
this.colSelectId.Name = "colSelectId";
|
|
||||||
this.colSelectId.ReadOnly = true;
|
|
||||||
this.colSelectId.Visible = false;
|
|
||||||
this.colSelectId.Width = 125;
|
|
||||||
//
|
|
||||||
// colSupplierId
|
|
||||||
//
|
|
||||||
this.colSupplierId.HeaderText = "店铺Id";
|
|
||||||
this.colSupplierId.MinimumWidth = 6;
|
|
||||||
this.colSupplierId.Name = "colSupplierId";
|
|
||||||
this.colSupplierId.ReadOnly = true;
|
|
||||||
this.colSupplierId.Width = 125;
|
|
||||||
//
|
|
||||||
// colSupplierName
|
|
||||||
//
|
|
||||||
this.colSupplierName.HeaderText = "店铺名称";
|
|
||||||
this.colSupplierName.MinimumWidth = 6;
|
|
||||||
this.colSupplierName.Name = "colSupplierName";
|
|
||||||
this.colSupplierName.ReadOnly = true;
|
|
||||||
this.colSupplierName.Width = 110;
|
|
||||||
//
|
|
||||||
// colInShop
|
|
||||||
//
|
|
||||||
this.colInShop.HeaderText = "进店";
|
|
||||||
this.colInShop.MinimumWidth = 6;
|
|
||||||
this.colInShop.Name = "colInShop";
|
|
||||||
this.colInShop.ReadOnly = true;
|
|
||||||
this.colInShop.Width = 45;
|
|
||||||
//
|
|
||||||
// colLogin
|
|
||||||
//
|
|
||||||
this.colLogin.HeaderText = "登录";
|
|
||||||
this.colLogin.MinimumWidth = 6;
|
|
||||||
this.colLogin.Name = "colLogin";
|
|
||||||
this.colLogin.ReadOnly = true;
|
|
||||||
this.colLogin.Width = 45;
|
|
||||||
//
|
|
||||||
// colImportCookies
|
|
||||||
//
|
|
||||||
this.colImportCookies.HeaderText = "导入Cookies";
|
|
||||||
this.colImportCookies.Name = "colImportCookies";
|
|
||||||
this.colImportCookies.ReadOnly = true;
|
|
||||||
this.colImportCookies.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
|
||||||
this.colImportCookies.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
|
||||||
this.colImportCookies.Width = 85;
|
|
||||||
//
|
|
||||||
// colSpuId
|
|
||||||
//
|
|
||||||
this.colSpuId.HeaderText = "商品SPU";
|
|
||||||
this.colSpuId.MinimumWidth = 6;
|
|
||||||
this.colSpuId.Name = "colSpuId";
|
|
||||||
this.colSpuId.ReadOnly = true;
|
|
||||||
this.colSpuId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
|
||||||
this.colSpuId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
|
||||||
this.colSpuId.Width = 90;
|
|
||||||
//
|
|
||||||
// colSkcId
|
|
||||||
//
|
|
||||||
this.colSkcId.FillWeight = 150F;
|
|
||||||
this.colSkcId.HeaderText = "商品SKC";
|
|
||||||
this.colSkcId.MinimumWidth = 6;
|
|
||||||
this.colSkcId.Name = "colSkcId";
|
|
||||||
this.colSkcId.ReadOnly = true;
|
|
||||||
this.colSkcId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
|
||||||
this.colSkcId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
|
||||||
this.colSkcId.Width = 80;
|
|
||||||
//
|
|
||||||
// colProductSkcPic
|
|
||||||
//
|
|
||||||
this.colProductSkcPic.HeaderText = "Skc图片";
|
|
||||||
this.colProductSkcPic.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
|
|
||||||
this.colProductSkcPic.MinimumWidth = 6;
|
|
||||||
this.colProductSkcPic.Name = "colProductSkcPic";
|
|
||||||
this.colProductSkcPic.ReadOnly = true;
|
|
||||||
this.colProductSkcPic.Width = 60;
|
|
||||||
//
|
|
||||||
// colProductName
|
|
||||||
//
|
|
||||||
this.colProductName.HeaderText = "商品标题";
|
|
||||||
this.colProductName.MinimumWidth = 6;
|
|
||||||
this.colProductName.Name = "colProductName";
|
|
||||||
this.colProductName.ReadOnly = true;
|
|
||||||
this.colProductName.Width = 260;
|
|
||||||
//
|
|
||||||
// colProductCat
|
|
||||||
//
|
|
||||||
this.colProductCat.HeaderText = "商品类目";
|
|
||||||
this.colProductCat.MinimumWidth = 6;
|
|
||||||
this.colProductCat.Name = "colProductCat";
|
|
||||||
this.colProductCat.ReadOnly = true;
|
|
||||||
this.colProductCat.Width = 90;
|
|
||||||
//
|
|
||||||
// colExtCode
|
|
||||||
//
|
|
||||||
this.colExtCode.HeaderText = "商品货号";
|
|
||||||
this.colExtCode.MinimumWidth = 6;
|
|
||||||
this.colExtCode.Name = "colExtCode";
|
|
||||||
this.colExtCode.ReadOnly = true;
|
|
||||||
this.colExtCode.Width = 125;
|
|
||||||
//
|
|
||||||
// colStatus
|
|
||||||
//
|
|
||||||
this.colStatus.HeaderText = "状态";
|
|
||||||
this.colStatus.MinimumWidth = 6;
|
|
||||||
this.colStatus.Name = "colStatus";
|
|
||||||
this.colStatus.ReadOnly = true;
|
|
||||||
this.colStatus.Width = 80;
|
|
||||||
//
|
|
||||||
// colDraftId
|
|
||||||
//
|
|
||||||
this.colDraftId.HeaderText = "草稿箱Id";
|
|
||||||
this.colDraftId.MinimumWidth = 6;
|
|
||||||
this.colDraftId.Name = "colDraftId";
|
|
||||||
this.colDraftId.ReadOnly = true;
|
|
||||||
this.colDraftId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
|
||||||
this.colDraftId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
||||||
this.colDraftId.Width = 125;
|
|
||||||
//
|
|
||||||
// colMdyTime
|
|
||||||
//
|
|
||||||
this.colMdyTime.HeaderText = "上传时间";
|
|
||||||
this.colMdyTime.MinimumWidth = 6;
|
|
||||||
this.colMdyTime.Name = "colMdyTime";
|
|
||||||
this.colMdyTime.ReadOnly = true;
|
|
||||||
this.colMdyTime.Width = 120;
|
|
||||||
//
|
|
||||||
// colSubSa
|
|
||||||
//
|
|
||||||
this.colSubSa.HeaderText = "二级超管";
|
|
||||||
this.colSubSa.Name = "colSubSa";
|
|
||||||
this.colSubSa.ReadOnly = true;
|
|
||||||
//
|
|
||||||
// ColDelete
|
|
||||||
//
|
|
||||||
this.ColDelete.HeaderText = "删除";
|
|
||||||
this.ColDelete.MinimumWidth = 6;
|
|
||||||
this.ColDelete.Name = "ColDelete";
|
|
||||||
this.ColDelete.ReadOnly = true;
|
|
||||||
this.ColDelete.Visible = false;
|
|
||||||
this.ColDelete.Width = 125;
|
|
||||||
//
|
|
||||||
// colOpResult
|
|
||||||
//
|
|
||||||
this.colOpResult.HeaderText = "操作结果";
|
|
||||||
this.colOpResult.MinimumWidth = 6;
|
|
||||||
this.colOpResult.Name = "colOpResult";
|
|
||||||
this.colOpResult.ReadOnly = true;
|
|
||||||
this.colOpResult.Width = 150;
|
|
||||||
//
|
|
||||||
// ucSplitPage1
|
// ucSplitPage1
|
||||||
//
|
//
|
||||||
this.ucSplitPage1.CurrentPage = 1;
|
this.ucSplitPage1.CurrentPage = 1;
|
||||||
@@ -614,6 +457,176 @@
|
|||||||
this.statusBar.Size = new System.Drawing.Size(1438, 25);
|
this.statusBar.Size = new System.Drawing.Size(1438, 25);
|
||||||
this.statusBar.TabIndex = 5;
|
this.statusBar.TabIndex = 5;
|
||||||
//
|
//
|
||||||
|
// colSelect
|
||||||
|
//
|
||||||
|
this.colSelect.HeaderText = "选择";
|
||||||
|
this.colSelect.Name = "colSelect";
|
||||||
|
this.colSelect.ReadOnly = true;
|
||||||
|
this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
|
this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
|
this.colSelect.Width = 30;
|
||||||
|
//
|
||||||
|
// colSelectId
|
||||||
|
//
|
||||||
|
this.colSelectId.HeaderText = "认领Id";
|
||||||
|
this.colSelectId.Name = "colSelectId";
|
||||||
|
this.colSelectId.ReadOnly = true;
|
||||||
|
this.colSelectId.Visible = false;
|
||||||
|
this.colSelectId.Width = 125;
|
||||||
|
//
|
||||||
|
// colSupplierId
|
||||||
|
//
|
||||||
|
this.colSupplierId.HeaderText = "店铺Id";
|
||||||
|
this.colSupplierId.Name = "colSupplierId";
|
||||||
|
this.colSupplierId.ReadOnly = true;
|
||||||
|
this.colSupplierId.Width = 120;
|
||||||
|
//
|
||||||
|
// colSupplierName
|
||||||
|
//
|
||||||
|
this.colSupplierName.HeaderText = "店铺名称";
|
||||||
|
this.colSupplierName.Name = "colSupplierName";
|
||||||
|
this.colSupplierName.ReadOnly = true;
|
||||||
|
this.colSupplierName.Width = 110;
|
||||||
|
//
|
||||||
|
// colInShop
|
||||||
|
//
|
||||||
|
this.colInShop.HeaderText = "进店";
|
||||||
|
this.colInShop.Name = "colInShop";
|
||||||
|
this.colInShop.ReadOnly = true;
|
||||||
|
this.colInShop.Width = 38;
|
||||||
|
//
|
||||||
|
// colLogin
|
||||||
|
//
|
||||||
|
this.colLogin.HeaderText = "登录";
|
||||||
|
this.colLogin.Name = "colLogin";
|
||||||
|
this.colLogin.ReadOnly = true;
|
||||||
|
this.colLogin.Width = 38;
|
||||||
|
//
|
||||||
|
// colImportCookies
|
||||||
|
//
|
||||||
|
this.colImportCookies.HeaderText = "导入Cookies";
|
||||||
|
this.colImportCookies.Name = "colImportCookies";
|
||||||
|
this.colImportCookies.ReadOnly = true;
|
||||||
|
this.colImportCookies.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
|
this.colImportCookies.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
|
this.colImportCookies.Width = 85;
|
||||||
|
//
|
||||||
|
// colCopyCookies
|
||||||
|
//
|
||||||
|
this.colCopyCookies.HeaderText = "复制Cookies";
|
||||||
|
this.colCopyCookies.Name = "colCopyCookies";
|
||||||
|
this.colCopyCookies.ReadOnly = true;
|
||||||
|
this.colCopyCookies.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
|
this.colCopyCookies.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
|
this.colCopyCookies.Width = 85;
|
||||||
|
//
|
||||||
|
// colSpuId
|
||||||
|
//
|
||||||
|
this.colSpuId.HeaderText = "商品SPU";
|
||||||
|
this.colSpuId.Name = "colSpuId";
|
||||||
|
this.colSpuId.ReadOnly = true;
|
||||||
|
this.colSpuId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
|
this.colSpuId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
|
this.colSpuId.Width = 86;
|
||||||
|
//
|
||||||
|
// colSkcId
|
||||||
|
//
|
||||||
|
this.colSkcId.FillWeight = 150F;
|
||||||
|
this.colSkcId.HeaderText = "商品SKC";
|
||||||
|
this.colSkcId.Name = "colSkcId";
|
||||||
|
this.colSkcId.ReadOnly = true;
|
||||||
|
this.colSkcId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
|
this.colSkcId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
|
this.colSkcId.Width = 90;
|
||||||
|
//
|
||||||
|
// colProductSkcPic
|
||||||
|
//
|
||||||
|
this.colProductSkcPic.HeaderText = "Skc图片";
|
||||||
|
this.colProductSkcPic.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
|
||||||
|
this.colProductSkcPic.Name = "colProductSkcPic";
|
||||||
|
this.colProductSkcPic.ReadOnly = true;
|
||||||
|
this.colProductSkcPic.Width = 60;
|
||||||
|
//
|
||||||
|
// colProductName
|
||||||
|
//
|
||||||
|
this.colProductName.HeaderText = "商品标题";
|
||||||
|
this.colProductName.Name = "colProductName";
|
||||||
|
this.colProductName.ReadOnly = true;
|
||||||
|
this.colProductName.Width = 200;
|
||||||
|
//
|
||||||
|
// colProductCat
|
||||||
|
//
|
||||||
|
this.colProductCat.HeaderText = "商品类目";
|
||||||
|
this.colProductCat.Name = "colProductCat";
|
||||||
|
this.colProductCat.ReadOnly = true;
|
||||||
|
this.colProductCat.Width = 90;
|
||||||
|
//
|
||||||
|
// colExtCode
|
||||||
|
//
|
||||||
|
this.colExtCode.HeaderText = "商品货号";
|
||||||
|
this.colExtCode.Name = "colExtCode";
|
||||||
|
this.colExtCode.ReadOnly = true;
|
||||||
|
this.colExtCode.Width = 125;
|
||||||
|
//
|
||||||
|
// colStatus
|
||||||
|
//
|
||||||
|
this.colStatus.HeaderText = "状态";
|
||||||
|
this.colStatus.Name = "colStatus";
|
||||||
|
this.colStatus.ReadOnly = true;
|
||||||
|
this.colStatus.Width = 45;
|
||||||
|
//
|
||||||
|
// colDraftId
|
||||||
|
//
|
||||||
|
this.colDraftId.HeaderText = "草稿箱Id";
|
||||||
|
this.colDraftId.Name = "colDraftId";
|
||||||
|
this.colDraftId.ReadOnly = true;
|
||||||
|
this.colDraftId.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
|
this.colDraftId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
|
this.colDraftId.Width = 88;
|
||||||
|
//
|
||||||
|
// colMdyTime
|
||||||
|
//
|
||||||
|
this.colMdyTime.HeaderText = "上传时间";
|
||||||
|
this.colMdyTime.Name = "colMdyTime";
|
||||||
|
this.colMdyTime.ReadOnly = true;
|
||||||
|
this.colMdyTime.Width = 95;
|
||||||
|
//
|
||||||
|
// colSubSa
|
||||||
|
//
|
||||||
|
this.colSubSa.HeaderText = "二级超管";
|
||||||
|
this.colSubSa.Name = "colSubSa";
|
||||||
|
this.colSubSa.ReadOnly = true;
|
||||||
|
//
|
||||||
|
// colNotes
|
||||||
|
//
|
||||||
|
this.colNotes.HeaderText = "备注";
|
||||||
|
this.colNotes.Name = "colNotes";
|
||||||
|
this.colNotes.ReadOnly = true;
|
||||||
|
//
|
||||||
|
// colEditNotes
|
||||||
|
//
|
||||||
|
this.colEditNotes.HeaderText = "编辑备注";
|
||||||
|
this.colEditNotes.Name = "colEditNotes";
|
||||||
|
this.colEditNotes.ReadOnly = true;
|
||||||
|
this.colEditNotes.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||||
|
this.colEditNotes.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||||
|
this.colEditNotes.Width = 70;
|
||||||
|
//
|
||||||
|
// ColDelete
|
||||||
|
//
|
||||||
|
this.ColDelete.HeaderText = "删除";
|
||||||
|
this.ColDelete.Name = "ColDelete";
|
||||||
|
this.ColDelete.ReadOnly = true;
|
||||||
|
this.ColDelete.Visible = false;
|
||||||
|
this.ColDelete.Width = 125;
|
||||||
|
//
|
||||||
|
// colOpResult
|
||||||
|
//
|
||||||
|
this.colOpResult.HeaderText = "操作结果";
|
||||||
|
this.colOpResult.Name = "colOpResult";
|
||||||
|
this.colOpResult.ReadOnly = true;
|
||||||
|
this.colOpResult.Width = 150;
|
||||||
|
//
|
||||||
// ProductThirdSelectListManageForm
|
// ProductThirdSelectListManageForm
|
||||||
//
|
//
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||||
@@ -666,11 +679,11 @@
|
|||||||
private System.Windows.Forms.Label label7;
|
private System.Windows.Forms.Label label7;
|
||||||
private System.Windows.Forms.TextBox txtShopId;
|
private System.Windows.Forms.TextBox txtShopId;
|
||||||
private System.Windows.Forms.Label label6;
|
private System.Windows.Forms.Label label6;
|
||||||
private UserComponent.DataGridViewEx dgvSelectProduct;
|
|
||||||
private System.Windows.Forms.ComboBox cmbStatus;
|
private System.Windows.Forms.ComboBox cmbStatus;
|
||||||
private System.Windows.Forms.Label label8;
|
private System.Windows.Forms.Label label8;
|
||||||
private UserControls.ButtonEx btnSetSubSa;
|
private UserControls.ButtonEx btnSetSubSa;
|
||||||
private UserComponent.UcCheckBox chkNoSubSa;
|
private UserComponent.UcCheckBox chkNoSubSa;
|
||||||
|
private UserComponent.DataGridViewEx dgvSelectProduct;
|
||||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
|
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSelectId;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colSelectId;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierId;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierId;
|
||||||
@@ -678,6 +691,7 @@
|
|||||||
private System.Windows.Forms.DataGridViewLinkColumn colInShop;
|
private System.Windows.Forms.DataGridViewLinkColumn colInShop;
|
||||||
private System.Windows.Forms.DataGridViewLinkColumn colLogin;
|
private System.Windows.Forms.DataGridViewLinkColumn colLogin;
|
||||||
private System.Windows.Forms.DataGridViewLinkColumn colImportCookies;
|
private System.Windows.Forms.DataGridViewLinkColumn colImportCookies;
|
||||||
|
private System.Windows.Forms.DataGridViewLinkColumn colCopyCookies;
|
||||||
private System.Windows.Forms.DataGridViewLinkColumn colSpuId;
|
private System.Windows.Forms.DataGridViewLinkColumn colSpuId;
|
||||||
private System.Windows.Forms.DataGridViewLinkColumn colSkcId;
|
private System.Windows.Forms.DataGridViewLinkColumn colSkcId;
|
||||||
private System.Windows.Forms.DataGridViewImageColumn colProductSkcPic;
|
private System.Windows.Forms.DataGridViewImageColumn colProductSkcPic;
|
||||||
@@ -685,9 +699,11 @@
|
|||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colProductCat;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colProductCat;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colExtCode;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colExtCode;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colStatus;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colStatus;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colDraftId;
|
private System.Windows.Forms.DataGridViewLinkColumn colDraftId;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colMdyTime;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colMdyTime;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSubSa;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colSubSa;
|
||||||
|
private System.Windows.Forms.DataGridViewTextBoxColumn colNotes;
|
||||||
|
private System.Windows.Forms.DataGridViewLinkColumn colEditNotes;
|
||||||
private System.Windows.Forms.DataGridViewLinkColumn ColDelete;
|
private System.Windows.Forms.DataGridViewLinkColumn ColDelete;
|
||||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOpResult;
|
private System.Windows.Forms.DataGridViewTextBoxColumn colOpResult;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ using System.Threading;
|
|||||||
using TemuKJD.KJDForms.AdminForms;
|
using TemuKJD.KJDForms.AdminForms;
|
||||||
using TemuKJD.KJDForms.ShopForms;
|
using TemuKJD.KJDForms.ShopForms;
|
||||||
using TemuKJD.KJDForms.ProductSelectForms;
|
using TemuKJD.KJDForms.ProductSelectForms;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||||
{
|
{
|
||||||
@@ -73,6 +74,8 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
|||||||
|
|
||||||
public void SearchDbProdSelect(int page)
|
public void SearchDbProdSelect(int page)
|
||||||
{
|
{
|
||||||
|
shopLst.Clear();
|
||||||
|
|
||||||
if (InvokeRequired)
|
if (InvokeRequired)
|
||||||
{
|
{
|
||||||
Invoke(new Action(() =>
|
Invoke(new Action(() =>
|
||||||
@@ -98,19 +101,13 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
|||||||
foreach (var prodSelect in lstAdminTemuDBProductSelect)
|
foreach (var prodSelect in lstAdminTemuDBProductSelect)
|
||||||
{
|
{
|
||||||
Image image = null;
|
Image image = null;
|
||||||
try
|
string imgUrl = prodSelect?.main_img?.Replace("https", "http");
|
||||||
{
|
string rst = "";
|
||||||
if (!string.IsNullOrEmpty(prodSelect?.main_img))
|
if (!string.IsNullOrWhiteSpace(imgUrl))
|
||||||
{
|
image = GetHtml.GetUrlImg(imgUrl, out rst);
|
||||||
using (Stream stream = WebRequest.Create(prodSelect.main_img.Replace("https", "http")).GetResponse().GetResponseStream())
|
if (!string.IsNullOrEmpty(rst))
|
||||||
{
|
BaseMsgForm.ShowError(rst);
|
||||||
image = Image.FromStream(stream);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
Invoke(new Action(() =>
|
Invoke(new Action(() =>
|
||||||
{
|
{
|
||||||
int rowIndex = this.dgvSelectProduct.Rows.Add(
|
int rowIndex = this.dgvSelectProduct.Rows.Add(
|
||||||
@@ -121,6 +118,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
|||||||
"进店",
|
"进店",
|
||||||
"登录",
|
"登录",
|
||||||
"导入Cookies",
|
"导入Cookies",
|
||||||
|
"复制Cookies",
|
||||||
prodSelect.spu_id,
|
prodSelect.spu_id,
|
||||||
prodSelect.skc_id,
|
prodSelect.skc_id,
|
||||||
image,//prod.main_img,
|
image,//prod.main_img,
|
||||||
@@ -129,8 +127,10 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
|||||||
prodSelect.ext_code,
|
prodSelect.ext_code,
|
||||||
prodSelect.status,
|
prodSelect.status,
|
||||||
prodSelect.draft_id,
|
prodSelect.draft_id,
|
||||||
prodSelect.status == "待上传" ? "-" : prodSelect.mdy_time.ToString("yyyy/MM/dd HH:mm:ss"),
|
prodSelect.status == "待上传" ? "-" : prodSelect.mdy_time.ToString("yy/MM/dd HH:mm"),
|
||||||
prodSelect.operate_sub_sa_name == "" ? "-" : prodSelect.operate_sub_sa_name,
|
prodSelect.operate_sub_sa_name == "" ? "-" : prodSelect.operate_sub_sa_name,
|
||||||
|
prodSelect.notes,
|
||||||
|
"编辑",
|
||||||
"删除",
|
"删除",
|
||||||
"");
|
"");
|
||||||
|
|
||||||
@@ -223,7 +223,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
|||||||
return;
|
return;
|
||||||
string headerText = dgvSelectProduct.Columns[e.ColumnIndex].HeaderText;
|
string headerText = dgvSelectProduct.Columns[e.ColumnIndex].HeaderText;
|
||||||
var dbId = dgvSelectProduct.Rows[e.RowIndex].Cells["colSelectId"].Value.ParseToString();
|
var dbId = dgvSelectProduct.Rows[e.RowIndex].Cells["colSelectId"].Value.ParseToString();
|
||||||
var dbProduct = lstAdminTemuDBProductSelect.FirstOrDefault(p => p.id.ToString() == dbId);
|
var dbSelectProduct = lstAdminTemuDBProductSelect.FirstOrDefault(p => p.id.ToString() == dbId);
|
||||||
var shopId = dgvSelectProduct.Rows[e.RowIndex].Cells["colSupplierId"].Value.ParseToString();
|
var shopId = dgvSelectProduct.Rows[e.RowIndex].Cells["colSupplierId"].Value.ParseToString();
|
||||||
var draftId = dgvSelectProduct.Rows[e.RowIndex].Cells["colDraftId"].Value.ParseToString();
|
var draftId = dgvSelectProduct.Rows[e.RowIndex].Cells["colDraftId"].Value.ParseToString();
|
||||||
|
|
||||||
@@ -235,9 +235,9 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
|||||||
//DeleteProduct(dbId);
|
//DeleteProduct(dbId);
|
||||||
break;
|
break;
|
||||||
case "编辑备注":
|
case "编辑备注":
|
||||||
//DbProductEditNotesForm editForm = new DbProductEditNotesForm(dbProduct);
|
ProductSelectEditNotesForm editForm = new ProductSelectEditNotesForm(dbSelectProduct, SetProductSelectNotesType.ThirdProduct);
|
||||||
//editForm.ShowDialog();
|
editForm.ShowDialog();
|
||||||
//dgvDbProduct.Rows[e.RowIndex].Cells["col_notes"].Value = dbProduct.notes;
|
dgvSelectProduct.Rows[e.RowIndex].Cells["colNotes"].Value = dbSelectProduct.notes;
|
||||||
break;
|
break;
|
||||||
case "认领":
|
case "认领":
|
||||||
//Task.Run(() => { SelectProduct(new TemuDBProduct[] { dbProduct }); });
|
//Task.Run(() => { SelectProduct(new TemuDBProduct[] { dbProduct }); });
|
||||||
@@ -245,13 +245,13 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
|||||||
case "草稿箱Id":
|
case "草稿箱Id":
|
||||||
if (!string.IsNullOrEmpty(draftId))
|
if (!string.IsNullOrEmpty(draftId))
|
||||||
{
|
{
|
||||||
//var shop = GetShop(shopId);
|
var shop = GetShop(shopId);
|
||||||
//AdminShopLoginForm adminLoginForm = new AdminShopLoginForm(shop);
|
AdminShopLoginForm adminLoginForm = new AdminShopLoginForm(shop);
|
||||||
//adminLoginForm.InitUrl = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?productDraftId=" +
|
adminLoginForm.InitUrl = "https://seller.kuajingmaihuo.com/goods/product-create/product-edit?productDraftId=" +
|
||||||
// draftId + "&from=productDraftList";
|
draftId + "&from=productDraftList";
|
||||||
//adminLoginForm.openType = EnumOpenType.manage;
|
adminLoginForm.openType = EnumOpenType.manage;
|
||||||
//adminLoginForm.WindowState = FormWindowState.Maximized;
|
adminLoginForm.WindowState = FormWindowState.Maximized;
|
||||||
//adminLoginForm.ShowDialog();
|
adminLoginForm.ShowDialog();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "进店":
|
case "进店":
|
||||||
@@ -283,6 +283,34 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
|||||||
updateCookieForm.ShowDialog();
|
updateCookieForm.ShowDialog();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "复制Cookies":
|
||||||
|
{
|
||||||
|
var shop = GetShop(shopId);
|
||||||
|
string cookJs = "";
|
||||||
|
foreach (var shopCook in shop.Cookies.Split(';'))
|
||||||
|
{
|
||||||
|
var cookie = shopCook.Trim();
|
||||||
|
if (cookie.StartsWith("mc-pc-cookie-captcha-token="))
|
||||||
|
continue;
|
||||||
|
//if (!cookie.StartsWith("SUB_PASS_ID") && !cookie.StartsWith("_nano_fp"))
|
||||||
|
cookJs += "\r\ndocument.cookie='" + cookie.Substring(0, Math.Max(0, cookie.IndexOf("="))) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';";
|
||||||
|
}
|
||||||
|
foreach (var shopCook in shop.Cookies.Split(';'))
|
||||||
|
{
|
||||||
|
var cookie = shopCook.Trim();
|
||||||
|
if (cookie.StartsWith("mc-pc-cookie-captcha-token="))
|
||||||
|
continue;
|
||||||
|
if (!cookie.StartsWith("SUB_PASS_ID") && !cookie.StartsWith("_nano_fp"))
|
||||||
|
cookJs += "\r\ndocument.cookie='" + cookie + "; domain=.kuajingmaihuo.com;';";
|
||||||
|
else
|
||||||
|
cookJs += "\r\ndocument.cookie='" + cookie + "; domain=seller.kuajingmaihuo.com;';";
|
||||||
|
}
|
||||||
|
cookJs += "\r\nwindow.localStorage.setItem('" + "mall-info-id" + "', '" + shop.ShopId + "');";
|
||||||
|
cookJs += "\r\nsetTimeout(() => { window.location.href='https://seller.kuajingmaihuo.com'; }, 200)";
|
||||||
|
Clipboard.SetDataObject(cookJs);
|
||||||
|
BaseMsgForm.ShowInfo("复制成功");
|
||||||
|
}
|
||||||
|
break;
|
||||||
case "":
|
case "":
|
||||||
dgvSelectProduct.Rows[e.RowIndex].Cells["colSelect"].Value = !(bool)dgvSelectProduct.Rows[e.RowIndex].Cells["colSelect"].Value;
|
dgvSelectProduct.Rows[e.RowIndex].Cells["colSelect"].Value = !(bool)dgvSelectProduct.Rows[e.RowIndex].Cells["colSelect"].Value;
|
||||||
break;
|
break;
|
||||||
@@ -438,8 +466,17 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
|||||||
var result = "";
|
var result = "";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var prodDetailStr = GetHtml.UrlDecode(temuDBProd.product_json);
|
var prodDetailJson = GetHtml.UrlDecode(temuDBProd.product_json);
|
||||||
var productDetail = JsonHelper.DeserializeJsonToObject<TemuProductInfo>(prodDetailStr);
|
//错误原因:JSON反序列化时出现Bad JSON escape sequence错误,通常由字符串中包含非法转义字符或特殊字符导致。
|
||||||
|
// JSON标准要求反斜杠\后必须紧跟bfrnt/(如\n、\t等),否则会触发异常。
|
||||||
|
//解决方案:通过正则表达式替换字符串中的非法转义序列。
|
||||||
|
//string pattern = @"(\\[^bfrnt\\/'\""])"; //两个\后一个会被转义
|
||||||
|
//var prodDetailJsonReplace = Regex.Replace(prodDetailJson, pattern, "\\$1");
|
||||||
|
string pattern = @"([^\\])(\\[^bfrnt\\/'\""])";
|
||||||
|
var prodDetailJsonReplace = Regex.Replace(prodDetailJson, pattern, "$1\\$2");
|
||||||
|
string pattern2 = @"([^\\,:""{\[])(""[^,:""}\]])";//希伯来文中的引号转义在数据库中有时候会丢失,回来发现了给配上\符号
|
||||||
|
var prodDetailJsonReplace2 = Regex.Replace(prodDetailJsonReplace, pattern2, "$1\\$2");
|
||||||
|
var productDetail = JsonHelper.DeserializeJsonToObject<TemuProductInfo>(prodDetailJsonReplace2);
|
||||||
result = UploadProduct(shop, productDetail, temuDBProd.size_json); //将商品上传至草稿箱
|
result = UploadProduct(shop, productDetail, temuDBProd.size_json); //将商品上传至草稿箱
|
||||||
|
|
||||||
if (result.Contains("登录过期"))
|
if (result.Contains("登录过期"))
|
||||||
|
|||||||
@@ -138,6 +138,9 @@
|
|||||||
<metadata name="colImportCookies.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="colImportCookies.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="colCopyCookies.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="colSpuId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="colSpuId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
@@ -165,6 +168,12 @@
|
|||||||
<metadata name="colSubSa.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="colSubSa.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="colNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="colEditNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>True</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="ColDelete.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="ColDelete.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|||||||
@@ -223,16 +223,13 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
|||||||
foreach (var prodSelect in lstTemuDBProductSelect)
|
foreach (var prodSelect in lstTemuDBProductSelect)
|
||||||
{
|
{
|
||||||
Image image = null;
|
Image image = null;
|
||||||
try
|
string imgUrl = prodSelect?.main_img?.Replace("https", "http");
|
||||||
{
|
string rst = "";
|
||||||
using (Stream stream = WebRequest.Create(prodSelect.main_img.Replace("https", "http")).GetResponse().GetResponseStream())
|
if (!string.IsNullOrWhiteSpace(imgUrl))
|
||||||
{
|
image = GetHtml.GetUrlImg(imgUrl, out rst);
|
||||||
image = Image.FromStream(stream);
|
if (!string.IsNullOrEmpty(rst))
|
||||||
}
|
BaseMsgForm.ShowError(rst);
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
Invoke(new Action(() =>
|
Invoke(new Action(() =>
|
||||||
{
|
{
|
||||||
int rowIndex = this.dgvSelectProduct.Rows.Add(
|
int rowIndex = this.dgvSelectProduct.Rows.Add(
|
||||||
@@ -354,9 +351,6 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "编辑备注":
|
case "编辑备注":
|
||||||
//DbProductEditNotesForm editForm = new DbProductEditNotesForm(dbProduct);
|
|
||||||
//editForm.ShowDialog();
|
|
||||||
//dgvDbProduct.Rows[e.RowIndex].Cells["col_notes"].Value = dbProduct.notes;
|
|
||||||
break;
|
break;
|
||||||
case "草稿箱Id":
|
case "草稿箱Id":
|
||||||
//if (!string.IsNullOrEmpty(draftId) && shop != null)
|
//if (!string.IsNullOrEmpty(draftId) && shop != null)
|
||||||
|
|||||||
@@ -874,6 +874,7 @@ namespace TemuKJD.KJDForms.ShopForms
|
|||||||
else
|
else
|
||||||
cookJs += "\r\ndocument.cookie='" + cookie + "; domain=seller.kuajingmaihuo.com;';";
|
cookJs += "\r\ndocument.cookie='" + cookie + "; domain=seller.kuajingmaihuo.com;';";
|
||||||
}
|
}
|
||||||
|
cookJs += "\r\nwindow.localStorage.setItem('" + "mall-info-id" + "', '" + shop.ShopId + "');";
|
||||||
cookJs += "\r\nsetTimeout(() => { window.location.href='https://seller.kuajingmaihuo.com'; }, 200)";
|
cookJs += "\r\nsetTimeout(() => { window.location.href='https://seller.kuajingmaihuo.com'; }, 200)";
|
||||||
Clipboard.SetDataObject(cookJs);
|
Clipboard.SetDataObject(cookJs);
|
||||||
BaseMsgForm.ShowInfo("复制成功");
|
BaseMsgForm.ShowInfo("复制成功");
|
||||||
|
|||||||
@@ -312,6 +312,16 @@ namespace TemuKJD.KJDForms.ShopForms
|
|||||||
//cefWebBrowser.Load(shopMainUrl);
|
//cefWebBrowser.Load(shopMainUrl);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
//根据登录的具体店铺设置local storage
|
||||||
|
if (!string.IsNullOrEmpty(shop.ShopId))
|
||||||
|
{
|
||||||
|
var storageJsCode = "window.localStorage.setItem('" + "mall-info-id" + "', '" + shop.ShopId + "');\r\n";
|
||||||
|
while (!cefWebBrowser.IsBrowserInitialized || !cefWebBrowser.GetBrowser().MainFrame.IsValid)
|
||||||
|
Thread.Sleep(20);
|
||||||
|
cefWebBrowser.GetBrowser().MainFrame.ExecuteJavaScriptAsync(storageJsCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
//不是登录的话就此返回
|
||||||
if (openType != EnumOpenType.login)
|
if (openType != EnumOpenType.login)
|
||||||
{
|
{
|
||||||
Invoke(new Action(() =>
|
Invoke(new Action(() =>
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ namespace TemuKJD
|
|||||||
public partial class MainForm : BaseForm
|
public partial class MainForm : BaseForm
|
||||||
{
|
{
|
||||||
public static string sCurrentModule = string.Empty;
|
public static string sCurrentModule = string.Empty;
|
||||||
|
public static MainForm instance;
|
||||||
|
|
||||||
private Point mouseOffset;//记录鼠标指针的坐标
|
private Point mouseOffset;//记录鼠标指针的坐标
|
||||||
private bool isMouseDown;//记录鼠标左键是否按下
|
private bool isMouseDown;//记录鼠标左键是否按下
|
||||||
@@ -139,6 +140,7 @@ namespace TemuKJD
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
|
instance = this;
|
||||||
this.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
|
this.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -104,26 +104,56 @@ namespace Update
|
|||||||
Thread.Sleep(10);
|
Thread.Sleep(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
string error = "";
|
||||||
// 替换旧文件
|
// 替换旧文件
|
||||||
foreach (string filePath in Directory.GetFiles(upTempPath))
|
foreach (string filePath in Directory.GetFiles(upTempPath))
|
||||||
{
|
{
|
||||||
string fileName = filePath.Substring(filePath.LastIndexOf("\\") + 1);
|
if (!string.IsNullOrEmpty(error))
|
||||||
File.Copy(upTempPath + "\\" + fileName, mainPath + "\\" + fileName, true);
|
break;
|
||||||
Thread.Sleep(10);
|
try
|
||||||
|
{
|
||||||
|
string fileName = filePath.Substring(filePath.LastIndexOf("\\") + 1);
|
||||||
|
File.Copy(upTempPath + "\\" + fileName, mainPath + "\\" + fileName, true);
|
||||||
|
Thread.Sleep(10);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
error = "发生错误:\r\n" + ex.Message + "\r\n请关闭升级窗口重试!";
|
||||||
|
Invoke(new Action(() =>
|
||||||
|
{
|
||||||
|
lblMessage.Text = error;
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
foreach (string dirPath in Directory.GetDirectories(upTempPath))
|
foreach (string dirPath in Directory.GetDirectories(upTempPath))
|
||||||
{
|
{
|
||||||
string fileName = dirPath.Substring(dirPath.LastIndexOf("\\") + 1);
|
if (!string.IsNullOrEmpty(error))
|
||||||
CopyDirectory(upTempPath + "\\" + fileName, mainPath + "\\" + fileName);
|
break;
|
||||||
Thread.Sleep(10);
|
try
|
||||||
|
{
|
||||||
|
string fileName = dirPath.Substring(dirPath.LastIndexOf("\\") + 1);
|
||||||
|
CopyDirectory(upTempPath + "\\" + fileName, mainPath + "\\" + fileName);
|
||||||
|
Thread.Sleep(10);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
error = "发生错误:\r\n" + ex.Message + "\r\n请关闭升级窗口重试!";
|
||||||
|
Invoke(new Action(() =>
|
||||||
|
{
|
||||||
|
lblMessage.Text = error;
|
||||||
|
}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Thread.Sleep(50);
|
Thread.Sleep(50);
|
||||||
Invoke(new Action(() =>
|
Invoke(new Action(() =>
|
||||||
{
|
{
|
||||||
progressBar1.Value = 100;
|
if (string.IsNullOrEmpty(error))
|
||||||
lblMessage.Text = "升级完成,点击确定重启程序";
|
{
|
||||||
btnOk.Enabled = true;
|
progressBar1.Value = 100;
|
||||||
|
lblMessage.Text = "升级完成,点击确定重启程序";
|
||||||
|
btnOk.Enabled = true;
|
||||||
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Generated
+20
-12
@@ -43,22 +43,25 @@ namespace Update
|
|||||||
//
|
//
|
||||||
// lblMessage
|
// lblMessage
|
||||||
//
|
//
|
||||||
this.lblMessage.Location = new System.Drawing.Point(14, 8);
|
this.lblMessage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.lblMessage.Location = new System.Drawing.Point(14, 33);
|
||||||
this.lblMessage.Name = "lblMessage";
|
this.lblMessage.Name = "lblMessage";
|
||||||
this.lblMessage.Size = new System.Drawing.Size(224, 69);
|
this.lblMessage.Size = new System.Drawing.Size(327, 98);
|
||||||
this.lblMessage.TabIndex = 0;
|
this.lblMessage.TabIndex = 0;
|
||||||
this.lblMessage.Text = "发现新版本,即将为您升级!";
|
this.lblMessage.Text = "发现新版本,即将为您升级!";
|
||||||
this.lblMessage.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
this.lblMessage.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
//
|
//
|
||||||
// btnOk
|
// btnOk
|
||||||
//
|
//
|
||||||
|
this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnOk.BackColor = System.Drawing.Color.Blue;
|
this.btnOk.BackColor = System.Drawing.Color.Blue;
|
||||||
this.btnOk.Cursor = System.Windows.Forms.Cursors.Hand;
|
this.btnOk.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
|
this.btnOk.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
|
||||||
this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.btnOk.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.btnOk.Font = new System.Drawing.Font("微软雅黑", 11F);
|
this.btnOk.Font = new System.Drawing.Font("微软雅黑", 11F);
|
||||||
this.btnOk.ForeColor = System.Drawing.Color.White;
|
this.btnOk.ForeColor = System.Drawing.Color.White;
|
||||||
this.btnOk.Location = new System.Drawing.Point(129, 127);
|
this.btnOk.Location = new System.Drawing.Point(232, 177);
|
||||||
this.btnOk.Name = "btnOk";
|
this.btnOk.Name = "btnOk";
|
||||||
this.btnOk.Size = new System.Drawing.Size(109, 30);
|
this.btnOk.Size = new System.Drawing.Size(109, 30);
|
||||||
this.btnOk.TabIndex = 9;
|
this.btnOk.TabIndex = 9;
|
||||||
@@ -74,7 +77,7 @@ namespace Update
|
|||||||
this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 11F);
|
this.btnCancel.Font = new System.Drawing.Font("微软雅黑", 11F);
|
||||||
this.btnCancel.ForeColor = System.Drawing.Color.Blue;
|
this.btnCancel.ForeColor = System.Drawing.Color.Blue;
|
||||||
this.btnCancel.Location = new System.Drawing.Point(14, 127);
|
this.btnCancel.Location = new System.Drawing.Point(14, 177);
|
||||||
this.btnCancel.Name = "btnCancel";
|
this.btnCancel.Name = "btnCancel";
|
||||||
this.btnCancel.Size = new System.Drawing.Size(109, 30);
|
this.btnCancel.Size = new System.Drawing.Size(109, 30);
|
||||||
this.btnCancel.TabIndex = 10;
|
this.btnCancel.TabIndex = 10;
|
||||||
@@ -89,9 +92,9 @@ namespace Update
|
|||||||
this.panel1.BackColor = System.Drawing.Color.Blue;
|
this.panel1.BackColor = System.Drawing.Color.Blue;
|
||||||
this.panel1.Controls.Add(this.btnClose);
|
this.panel1.Controls.Add(this.btnClose);
|
||||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||||
this.panel1.Location = new System.Drawing.Point(0, 0);
|
this.panel1.Location = new System.Drawing.Point(2, 2);
|
||||||
this.panel1.Name = "panel1";
|
this.panel1.Name = "panel1";
|
||||||
this.panel1.Size = new System.Drawing.Size(256, 24);
|
this.panel1.Size = new System.Drawing.Size(355, 24);
|
||||||
this.panel1.TabIndex = 11;
|
this.panel1.TabIndex = 11;
|
||||||
this.panel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panel1_MouseDown);
|
this.panel1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.panel1_MouseDown);
|
||||||
this.panel1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.panel1_MouseMove);
|
this.panel1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.panel1_MouseMove);
|
||||||
@@ -99,12 +102,13 @@ namespace Update
|
|||||||
//
|
//
|
||||||
// btnClose
|
// btnClose
|
||||||
//
|
//
|
||||||
|
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnClose.Cursor = System.Windows.Forms.Cursors.Hand;
|
this.btnClose.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
this.btnClose.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
|
this.btnClose.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
|
||||||
this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
this.btnClose.Font = new System.Drawing.Font("微软雅黑", 11F);
|
this.btnClose.Font = new System.Drawing.Font("微软雅黑", 11F);
|
||||||
this.btnClose.ForeColor = System.Drawing.Color.White;
|
this.btnClose.ForeColor = System.Drawing.Color.White;
|
||||||
this.btnClose.Location = new System.Drawing.Point(238, -5);
|
this.btnClose.Location = new System.Drawing.Point(339, -5);
|
||||||
this.btnClose.Name = "btnClose";
|
this.btnClose.Name = "btnClose";
|
||||||
this.btnClose.Size = new System.Drawing.Size(17, 28);
|
this.btnClose.Size = new System.Drawing.Size(17, 28);
|
||||||
this.btnClose.TabIndex = 11;
|
this.btnClose.TabIndex = 11;
|
||||||
@@ -120,16 +124,19 @@ namespace Update
|
|||||||
this.panel2.Controls.Add(this.lblMessage);
|
this.panel2.Controls.Add(this.lblMessage);
|
||||||
this.panel2.Controls.Add(this.btnOk);
|
this.panel2.Controls.Add(this.btnOk);
|
||||||
this.panel2.Controls.Add(this.btnCancel);
|
this.panel2.Controls.Add(this.btnCancel);
|
||||||
this.panel2.Location = new System.Drawing.Point(2, 24);
|
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.panel2.Location = new System.Drawing.Point(2, 2);
|
||||||
this.panel2.Name = "panel2";
|
this.panel2.Name = "panel2";
|
||||||
this.panel2.Size = new System.Drawing.Size(252, 170);
|
this.panel2.Size = new System.Drawing.Size(355, 221);
|
||||||
this.panel2.TabIndex = 12;
|
this.panel2.TabIndex = 12;
|
||||||
//
|
//
|
||||||
// progressBar1
|
// progressBar1
|
||||||
//
|
//
|
||||||
this.progressBar1.Location = new System.Drawing.Point(14, 85);
|
this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.progressBar1.Location = new System.Drawing.Point(14, 139);
|
||||||
this.progressBar1.Name = "progressBar1";
|
this.progressBar1.Name = "progressBar1";
|
||||||
this.progressBar1.Size = new System.Drawing.Size(224, 23);
|
this.progressBar1.Size = new System.Drawing.Size(327, 23);
|
||||||
this.progressBar1.TabIndex = 11;
|
this.progressBar1.TabIndex = 11;
|
||||||
this.progressBar1.Visible = false;
|
this.progressBar1.Visible = false;
|
||||||
//
|
//
|
||||||
@@ -137,13 +144,14 @@ namespace Update
|
|||||||
//
|
//
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||||
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
|
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
|
||||||
this.ClientSize = new System.Drawing.Size(256, 196);
|
this.ClientSize = new System.Drawing.Size(359, 225);
|
||||||
this.Controls.Add(this.panel1);
|
this.Controls.Add(this.panel1);
|
||||||
this.Controls.Add(this.panel2);
|
this.Controls.Add(this.panel2);
|
||||||
this.Font = new System.Drawing.Font("微软雅黑", 10F);
|
this.Font = new System.Drawing.Font("微软雅黑", 10F);
|
||||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
this.Name = "MainForm";
|
this.Name = "MainForm";
|
||||||
|
this.Padding = new System.Windows.Forms.Padding(2);
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||||
this.Text = "MessageForm";
|
this.Text = "MessageForm";
|
||||||
this.Paint += new System.Windows.Forms.PaintEventHandler(this.MessageForm_Paint);
|
this.Paint += new System.Windows.Forms.PaintEventHandler(this.MessageForm_Paint);
|
||||||
|
|||||||
Reference in new issue
Block a user