资质图上次传75% 手表上传
This commit is contained in:
1 parent
35240505e3
commit
a568c685ee
10 files changed
+307
-201
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using AllBase;
|
||||
using AllBase.Model.DBModel;
|
||||
using AllBase.Model.Param.TemuProductManage;
|
||||
using AllBase.Model.Result;
|
||||
using NaiBa.Util;
|
||||
@@ -22,6 +23,7 @@ using TemuKJD.BLL;
|
||||
using TemuKJD.Extension;
|
||||
using TemuKJD.WXForms.ShopForms;
|
||||
using Work;
|
||||
using Work.BLL.Tools;
|
||||
|
||||
namespace TemuKJD.WXForms.AdminForms
|
||||
{
|
||||
@@ -33,7 +35,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
get { if (inst == null) inst = new WXAdminQualificationImageForm(); return inst; }
|
||||
set { inst = value; }
|
||||
}
|
||||
public static ConcurrentList<ShopLoginInfo> lstAdminShopInfo { get; set; } = new ConcurrentList<ShopLoginInfo>();
|
||||
public static ConcurrentList<wx_qualification_image_info> lstWxQualificationImageInfo { get; set; } = new ConcurrentList<wx_qualification_image_info>();
|
||||
|
||||
public WXAdminQualificationImageForm()
|
||||
{
|
||||
@@ -73,59 +75,37 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
{
|
||||
this.pbLoading.Visible = true;
|
||||
this.dgvShop.Rows.Clear();
|
||||
lstAdminShopInfo.Clear();
|
||||
lstWxQualificationImageInfo.Clear();
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
this.pbLoading.Visible = true;
|
||||
this.dgvShop.Rows.Clear();
|
||||
lstAdminShopInfo.Clear();
|
||||
lstWxQualificationImageInfo.Clear();
|
||||
}
|
||||
Task.Run(() =>
|
||||
{
|
||||
int pageCount;
|
||||
decimal seconds = 0;
|
||||
var list = AdminGetServerQualificationImageLst(out pageCount, out seconds, page, ucSplitPage1.PageSize);
|
||||
lstAdminShopInfo.AddRange(list);
|
||||
lstWxQualificationImageInfo.AddRange(list);
|
||||
this.ucSplitPage1.TotalPage = pageCount;
|
||||
|
||||
foreach (var shop in lstAdminShopInfo)
|
||||
foreach (var image in lstWxQualificationImageInfo)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
int rowIndex = this.dgvShop.Rows.Add(
|
||||
shopIdList.Contains(shop.ShopId + shop.UserName),
|
||||
shop.LoginName,
|
||||
shop.ShopId,
|
||||
shop.ShopAccount,
|
||||
shop.Notes,
|
||||
shop.GroupName,
|
||||
"-",
|
||||
shop.AddProductRemaining,
|
||||
"+",
|
||||
//"±",
|
||||
shop.Cookies,
|
||||
shop.UserName,
|
||||
shop.SubUserName,
|
||||
shop.UploadAccount,
|
||||
shop.BuyAccount,
|
||||
shop.ChatAccount,
|
||||
"",
|
||||
"进入",
|
||||
"检测",
|
||||
string.IsNullOrWhiteSpace(shop.LoginStatus) ? "未登录" : shop.LoginStatus.Trim(),
|
||||
string.IsNullOrWhiteSpace(shop.LoginStatus2) ? "国际版未登录" : shop.LoginStatus2.Trim(),
|
||||
"购买",
|
||||
"多重登录",
|
||||
shop.ApiAuthStatus,
|
||||
shop.BuyApiAuth.ApiAuthStatus,
|
||||
"导入Cookie",
|
||||
"复制Cookie",
|
||||
"上传",
|
||||
shop.OperateSubSaName,
|
||||
false,
|
||||
image.cat_name,
|
||||
image.img_md5,
|
||||
Base64ChangeImgUrl.Base64ToImage(image.img_thumb_base64),
|
||||
"编辑",
|
||||
"删除");
|
||||
|
||||
var row = dgvShop.Rows[rowIndex];
|
||||
row.Height = 60;
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -165,6 +145,7 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
if (e.ColumnIndex < 0 || e.RowIndex < 0)
|
||||
return;
|
||||
string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText;
|
||||
var row = dgvShop.Rows[e.RowIndex];
|
||||
|
||||
switch (headerText)
|
||||
{
|
||||
@@ -185,12 +166,13 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
//if (ShopBLL.AdminDelServerShop(shop))
|
||||
// SearchImg(this.ucSplitPage1.CurrentPage);
|
||||
break;
|
||||
case "更改图片":
|
||||
IsOperate = true;
|
||||
case "编辑图片":
|
||||
var image = lstWxQualificationImageInfo.FirstOrDefault(i => i.img_md5 == row.Cells["colImgMd5"].Value.ParseToString());
|
||||
if (image != null)
|
||||
{
|
||||
//UploadProduct(shop);
|
||||
image.img_base64.IsNullOrEmpty();
|
||||
|
||||
}
|
||||
IsOperate = false;
|
||||
break;
|
||||
case "":
|
||||
dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value = !(bool)dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value;
|
||||
@@ -215,32 +197,28 @@ namespace TemuKJD.WXForms.AdminForms
|
||||
return shopNameList;
|
||||
}
|
||||
|
||||
public List<ShopLoginInfo> AdminGetServerQualificationImageLst(out int pageCount, out decimal seconds, int page = 1, int pageSize = 50)
|
||||
public List<wx_qualification_image_info> AdminGetServerQualificationImageLst(out int pageCount, out decimal seconds, int page = 1, int pageSize = 50)
|
||||
{
|
||||
List<ShopLoginInfo> list = new List<ShopLoginInfo>();
|
||||
List<wx_qualification_image_info> list = new List<wx_qualification_image_info>();
|
||||
pageCount = 1;
|
||||
seconds = 0;
|
||||
|
||||
var url = BaseClass.BuildObjString("shop/admin_get_server_qualification_image_list");
|
||||
var url = BaseClass.BuildObjString("product/wx_get_qualification_image");
|
||||
var data = UserLogin.GetSignaturex() +
|
||||
"&page=" + page +
|
||||
"&page_size=" + pageSize +
|
||||
"&search_cat_name=" + txtCatName.Text.Trim();
|
||||
if (BaseClass.SaLevel > 1)
|
||||
data += "&operate_sub_sa_name=" + BaseClass.UserName;
|
||||
"&page_size=" + pageSize;
|
||||
data += "&is_detail=true";
|
||||
var html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html)
|
||||
|| !html.Contains("shop_id") || !html.Contains("shop_account") || !html.Contains("login_pass"))
|
||||
{
|
||||
if (!html.Contains("\"code\":200"))
|
||||
return list;
|
||||
}
|
||||
|
||||
int count = BaseRegex.GetIntJson(ref html, "count");
|
||||
pageCount = Math.Ceiling(1.0 * count / pageSize).ParseToInt();
|
||||
pageCount = Math.Max(pageCount, 1);
|
||||
seconds = BaseRegex.GetDecimalJson(ref html, "seconds");
|
||||
|
||||
return ShopBLL.DeserializationShop(html);
|
||||
JObject jObj = JsonHelper.JObjectParse(html);
|
||||
return JsonHelper.DeserializeJsonToList<wx_qualification_image_info>(jObj["data"].ParseToString());
|
||||
}
|
||||
|
||||
private void dgvShop_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
|
||||
|
||||
Reference in new issue
Block a user