1挪动一些老旧文件的位置以备后续删除 2图片显示 3店铺登录信息优化显示
This commit is contained in:
1 parent
011b909bfc
commit
157f7e9f3e
59 files changed
+1160
-432
No files matched your search
+22
-23
@@ -264,7 +264,7 @@
|
||||
"全部",
|
||||
"重上",
|
||||
"已买"});
|
||||
this.cmbUserNotes.Location = new System.Drawing.Point(1044, 8);
|
||||
this.cmbUserNotes.Location = new System.Drawing.Point(1044, 5);
|
||||
this.cmbUserNotes.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.cmbUserNotes.Name = "cmbUserNotes";
|
||||
this.cmbUserNotes.Size = new System.Drawing.Size(65, 25);
|
||||
@@ -281,7 +281,7 @@
|
||||
"核价成功",
|
||||
"核价成功(重复)",
|
||||
"重复"});
|
||||
this.cmbNotes.Location = new System.Drawing.Point(917, 8);
|
||||
this.cmbNotes.Location = new System.Drawing.Point(917, 5);
|
||||
this.cmbNotes.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.cmbNotes.Name = "cmbNotes";
|
||||
this.cmbNotes.Size = new System.Drawing.Size(65, 25);
|
||||
@@ -308,7 +308,7 @@
|
||||
"已上传",
|
||||
"草稿箱",
|
||||
"全部"});
|
||||
this.cmbStatus.Location = new System.Drawing.Point(814, 8);
|
||||
this.cmbStatus.Location = new System.Drawing.Point(814, 5);
|
||||
this.cmbStatus.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.cmbStatus.Name = "cmbStatus";
|
||||
this.cmbStatus.Size = new System.Drawing.Size(65, 25);
|
||||
@@ -354,14 +354,14 @@
|
||||
this.txtSkuHeadText.Location = new System.Drawing.Point(55, 3);
|
||||
this.txtSkuHeadText.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtSkuHeadText.Name = "txtSkuHeadText";
|
||||
this.txtSkuHeadText.Size = new System.Drawing.Size(91, 23);
|
||||
this.txtSkuHeadText.Size = new System.Drawing.Size(85, 23);
|
||||
this.txtSkuHeadText.TabIndex = 452;
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||
this.label10.AutoSize = true;
|
||||
this.label10.Location = new System.Drawing.Point(149, 6);
|
||||
this.label10.Location = new System.Drawing.Point(143, 6);
|
||||
this.label10.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(52, 17);
|
||||
@@ -371,17 +371,17 @@
|
||||
// txtSkuEndText
|
||||
//
|
||||
this.txtSkuEndText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtSkuEndText.Location = new System.Drawing.Point(201, 3);
|
||||
this.txtSkuEndText.Location = new System.Drawing.Point(195, 3);
|
||||
this.txtSkuEndText.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
|
||||
this.txtSkuEndText.Name = "txtSkuEndText";
|
||||
this.txtSkuEndText.Size = new System.Drawing.Size(92, 23);
|
||||
this.txtSkuEndText.Size = new System.Drawing.Size(85, 23);
|
||||
this.txtSkuEndText.TabIndex = 454;
|
||||
//
|
||||
// chkFission
|
||||
//
|
||||
this.chkFission.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkFission.AutoSize = true;
|
||||
this.chkFission.Location = new System.Drawing.Point(299, 4);
|
||||
this.chkFission.Location = new System.Drawing.Point(286, 4);
|
||||
this.chkFission.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.chkFission.Name = "chkFission";
|
||||
this.chkFission.Size = new System.Drawing.Size(75, 21);
|
||||
@@ -393,8 +393,8 @@
|
||||
//
|
||||
this.chkHeadWords.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkHeadWords.AutoSize = true;
|
||||
this.chkHeadWords.Location = new System.Drawing.Point(376, 4);
|
||||
this.chkHeadWords.Margin = new System.Windows.Forms.Padding(2, 0, 0, 0);
|
||||
this.chkHeadWords.Location = new System.Drawing.Point(361, 4);
|
||||
this.chkHeadWords.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkHeadWords.Name = "chkHeadWords";
|
||||
this.chkHeadWords.Size = new System.Drawing.Size(75, 21);
|
||||
this.chkHeadWords.TabIndex = 473;
|
||||
@@ -405,8 +405,8 @@
|
||||
//
|
||||
this.chkEndWords.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkEndWords.AutoSize = true;
|
||||
this.chkEndWords.Location = new System.Drawing.Point(453, 4);
|
||||
this.chkEndWords.Margin = new System.Windows.Forms.Padding(2, 0, 0, 0);
|
||||
this.chkEndWords.Location = new System.Drawing.Point(436, 4);
|
||||
this.chkEndWords.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkEndWords.Name = "chkEndWords";
|
||||
this.chkEndWords.Size = new System.Drawing.Size(75, 21);
|
||||
this.chkEndWords.TabIndex = 474;
|
||||
@@ -419,8 +419,8 @@
|
||||
this.chkDeleteLowPriceSku.AutoSize = true;
|
||||
this.chkDeleteLowPriceSku.Checked = true;
|
||||
this.chkDeleteLowPriceSku.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.chkDeleteLowPriceSku.Location = new System.Drawing.Point(530, 4);
|
||||
this.chkDeleteLowPriceSku.Margin = new System.Windows.Forms.Padding(2, 0, 0, 0);
|
||||
this.chkDeleteLowPriceSku.Location = new System.Drawing.Point(511, 4);
|
||||
this.chkDeleteLowPriceSku.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkDeleteLowPriceSku.Name = "chkDeleteLowPriceSku";
|
||||
this.chkDeleteLowPriceSku.Size = new System.Drawing.Size(95, 21);
|
||||
this.chkDeleteLowPriceSku.TabIndex = 472;
|
||||
@@ -431,8 +431,8 @@
|
||||
//
|
||||
this.chkRandomSkuOrder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkRandomSkuOrder.AutoSize = true;
|
||||
this.chkRandomSkuOrder.Location = new System.Drawing.Point(627, 4);
|
||||
this.chkRandomSkuOrder.Margin = new System.Windows.Forms.Padding(2, 0, 0, 0);
|
||||
this.chkRandomSkuOrder.Location = new System.Drawing.Point(606, 4);
|
||||
this.chkRandomSkuOrder.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkRandomSkuOrder.Name = "chkRandomSkuOrder";
|
||||
this.chkRandomSkuOrder.Size = new System.Drawing.Size(95, 21);
|
||||
this.chkRandomSkuOrder.TabIndex = 469;
|
||||
@@ -442,11 +442,10 @@
|
||||
// chkSkuRandomPrice
|
||||
//
|
||||
this.chkSkuRandomPrice.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkSkuRandomPrice.AutoSize = true;
|
||||
this.chkSkuRandomPrice.Location = new System.Drawing.Point(724, 4);
|
||||
this.chkSkuRandomPrice.Margin = new System.Windows.Forms.Padding(2, 0, 0, 0);
|
||||
this.chkSkuRandomPrice.Location = new System.Drawing.Point(701, 4);
|
||||
this.chkSkuRandomPrice.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.chkSkuRandomPrice.Name = "chkSkuRandomPrice";
|
||||
this.chkSkuRandomPrice.Size = new System.Drawing.Size(119, 21);
|
||||
this.chkSkuRandomPrice.Size = new System.Drawing.Size(110, 21);
|
||||
this.chkSkuRandomPrice.TabIndex = 468;
|
||||
this.chkSkuRandomPrice.Text = "sku随机价格变化";
|
||||
this.chkSkuRandomPrice.UseVisualStyleBackColor = true;
|
||||
@@ -459,7 +458,7 @@
|
||||
0,
|
||||
0,
|
||||
131072});
|
||||
this.numSkuRandomPrice.Location = new System.Drawing.Point(843, 3);
|
||||
this.numSkuRandomPrice.Location = new System.Drawing.Point(811, 3);
|
||||
this.numSkuRandomPrice.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);
|
||||
this.numSkuRandomPrice.Name = "numSkuRandomPrice";
|
||||
this.numSkuRandomPrice.Size = new System.Drawing.Size(44, 23);
|
||||
@@ -474,8 +473,8 @@
|
||||
//
|
||||
this.label11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label11.AutoSize = true;
|
||||
this.label11.Location = new System.Drawing.Point(893, 6);
|
||||
this.label11.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0);
|
||||
this.label11.Location = new System.Drawing.Point(855, 6);
|
||||
this.label11.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(20, 17);
|
||||
this.label11.TabIndex = 471;
|
||||
|
||||
@@ -24,6 +24,7 @@ using TemuKJD.KJDForms.ShopForms;
|
||||
using TemuKJD.KJDForms.ProductSelectForms;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Globalization;
|
||||
using TemuKJD.KJDForms.ToolForms;
|
||||
|
||||
namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
{
|
||||
@@ -327,6 +328,10 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
editForm.ShowDialog();
|
||||
dgvSelectProduct.Rows[e.RowIndex].Cells["colNotes"].Value = dbSelectProduct.notes;
|
||||
break;
|
||||
case "Skc图片":
|
||||
ShowImgForm imgFrom = new ShowImgForm(dgvSelectProduct.Rows[e.RowIndex].Cells["colImgUrl"].Value.ParseToString());
|
||||
imgFrom.ShowDialog();
|
||||
break;
|
||||
case "认领":
|
||||
//Task.Run(() => { SelectProduct(new TemuDBProduct[] { dbProduct }); });
|
||||
break;
|
||||
|
||||
+36
-16
@@ -67,6 +67,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
this.colShopLoginName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colShopNotes = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colLoginStatus = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colSelectProduct = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colCanUse = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
@@ -82,6 +83,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
this.colLogin = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colSpuId = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colSkcId = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colImgUrl = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colProductSkcPic = new System.Windows.Forms.DataGridViewImageColumn();
|
||||
this.colProductName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colProductCat = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -507,7 +509,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
this.splitContainer2.Panel2.Controls.Add(this.dgvSelectProduct);
|
||||
this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0);
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1284, 392);
|
||||
this.splitContainer2.SplitterDistance = 270;
|
||||
this.splitContainer2.SplitterDistance = 300;
|
||||
this.splitContainer2.TabIndex = 0;
|
||||
//
|
||||
// dgvShop
|
||||
@@ -532,6 +534,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
this.colShopLoginName,
|
||||
this.colShopId,
|
||||
this.colShopName,
|
||||
this.colShopNotes,
|
||||
this.colLoginStatus,
|
||||
this.colSelectProduct,
|
||||
this.colCanUse,
|
||||
@@ -541,9 +544,9 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
this.dgvShop.Location = new System.Drawing.Point(4, 0);
|
||||
this.dgvShop.Name = "dgvShop";
|
||||
this.dgvShop.ReadOnly = true;
|
||||
this.dgvShop.RowHeadersWidth = 30;
|
||||
this.dgvShop.RowHeadersWidth = 25;
|
||||
this.dgvShop.RowTemplate.Height = 23;
|
||||
this.dgvShop.Size = new System.Drawing.Size(266, 392);
|
||||
this.dgvShop.Size = new System.Drawing.Size(296, 392);
|
||||
this.dgvShop.TabIndex = 6;
|
||||
this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick);
|
||||
//
|
||||
@@ -578,7 +581,13 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
this.colShopName.Name = "colShopName";
|
||||
this.colShopName.ReadOnly = true;
|
||||
this.colShopName.Resizable = System.Windows.Forms.DataGridViewTriState.True;
|
||||
this.colShopName.Width = 120;
|
||||
//
|
||||
// colShopNotes
|
||||
//
|
||||
this.colShopNotes.HeaderText = "分组";
|
||||
this.colShopNotes.Name = "colShopNotes";
|
||||
this.colShopNotes.ReadOnly = true;
|
||||
this.colShopNotes.Width = 70;
|
||||
//
|
||||
// colLoginStatus
|
||||
//
|
||||
@@ -623,7 +632,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
//
|
||||
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
|
||||
this.pbLoading.Location = new System.Drawing.Point(480, 171);
|
||||
this.pbLoading.Location = new System.Drawing.Point(465, 171);
|
||||
this.pbLoading.Name = "pbLoading";
|
||||
this.pbLoading.Size = new System.Drawing.Size(50, 50);
|
||||
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
@@ -657,6 +666,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
this.colLogin,
|
||||
this.colSpuId,
|
||||
this.colSkcId,
|
||||
this.colImgUrl,
|
||||
this.colProductSkcPic,
|
||||
this.colProductName,
|
||||
this.colProductCat,
|
||||
@@ -671,9 +681,10 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
this.dgvSelectProduct.Name = "dgvSelectProduct";
|
||||
this.dgvSelectProduct.ReadOnly = true;
|
||||
this.dgvSelectProduct.RowTemplate.Height = 23;
|
||||
this.dgvSelectProduct.Size = new System.Drawing.Size(1006, 392);
|
||||
this.dgvSelectProduct.Size = new System.Drawing.Size(976, 392);
|
||||
this.dgvSelectProduct.TabIndex = 187;
|
||||
this.dgvSelectProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectProduct_CellContentClick);
|
||||
this.dgvSelectProduct.Scroll += new System.Windows.Forms.ScrollEventHandler(this.dgvSelectProduct_Scroll);
|
||||
//
|
||||
// colCheck
|
||||
//
|
||||
@@ -742,6 +753,13 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
this.colSkcId.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
|
||||
this.colSkcId.Width = 80;
|
||||
//
|
||||
// colImgUrl
|
||||
//
|
||||
this.colImgUrl.HeaderText = "图片地址";
|
||||
this.colImgUrl.Name = "colImgUrl";
|
||||
this.colImgUrl.ReadOnly = true;
|
||||
this.colImgUrl.Visible = false;
|
||||
//
|
||||
// colProductSkcPic
|
||||
//
|
||||
this.colProductSkcPic.HeaderText = "图片";
|
||||
@@ -959,15 +977,6 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
private System.Windows.Forms.ComboBox cmbStatus;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private DevComponents.DotNetBar.PanelEx btnDelSelect;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopLoginName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colSelectProduct;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colRemaining;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colMessage;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.TextBox txtExtCode;
|
||||
private System.Windows.Forms.Label label13;
|
||||
@@ -984,6 +993,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
private System.Windows.Forms.TextBox txtSKC;
|
||||
private System.Windows.Forms.TextBox txtSPU;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private DevComponents.DotNetBar.PanelEx pnlEmpty;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colCheck;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSelectId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colSupplierId;
|
||||
@@ -992,6 +1002,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colLogin;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colSpuId;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colSkcId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colImgUrl;
|
||||
private System.Windows.Forms.DataGridViewImageColumn colProductSkcPic;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colProductName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colProductCat;
|
||||
@@ -1001,6 +1012,15 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colNotes;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colUserNotes;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn ColDelete;
|
||||
private DevComponents.DotNetBar.PanelEx pnlEmpty;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopLoginName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopId;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopName;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colShopNotes;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colLoginStatus;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn colSelectProduct;
|
||||
private System.Windows.Forms.DataGridViewCheckBoxColumn colCanUse;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colRemaining;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colMessage;
|
||||
}
|
||||
}
|
||||
@@ -19,6 +19,7 @@ using TemuKJD.Extension;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using TemuKJD.KJDForms.ProductSelectForms;
|
||||
using TemuKJD.KJDForms.ShopForms;
|
||||
using TemuKJD.KJDForms.ToolForms;
|
||||
using Work;
|
||||
|
||||
namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
@@ -127,8 +128,9 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
shopEntity.LoginName,
|
||||
shopEntity.ShopId,
|
||||
shopEntity.ShopAccount,
|
||||
shopEntity.LoginStatus,
|
||||
shopEntity.Notes,
|
||||
"选择商品",
|
||||
canUse ? "在线" : "掉线",
|
||||
canUse,
|
||||
shopEntity.AddProductRemaining,
|
||||
string.Empty
|
||||
@@ -139,7 +141,9 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
row.Cells["colSelect"].Value = !isInit || (selectShopId.Contains(shopEntity.ShopId) && canUse);
|
||||
row.Cells["colShopLoginName"].Value = shopEntity.LoginName;
|
||||
row.Cells["colShopName"].Value = shopEntity.ShopAccount;
|
||||
row.Cells["colLoginStatus"].Value = shopEntity.LoginStatus;
|
||||
row.Cells["colShopNotes"].Value = shopEntity.Notes;
|
||||
row.Cells["colLoginStatus"].Value = canUse ? "在线" : "掉线";
|
||||
row.Cells["colLoginStatus"].Style.ForeColor = canUse ? Color.Green : Color.Red;
|
||||
row.Cells["colCanUse"].Value = canUse;
|
||||
row.Cells["colRemaining"].Value = shopEntity.AddProductRemaining;
|
||||
}
|
||||
@@ -226,13 +230,13 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
|
||||
foreach (var prodSelect in lstTemuDBProductSelect)
|
||||
{
|
||||
Image image = null;
|
||||
string imgUrl = prodSelect?.main_img?.Replace("https", "http");
|
||||
string rst = "";
|
||||
if (!string.IsNullOrWhiteSpace(imgUrl))
|
||||
image = GetHtml.GetUrlImg(imgUrl, out rst);
|
||||
if (!string.IsNullOrEmpty(rst))
|
||||
BaseMsgForm.ShowError(rst);
|
||||
//Image image = null;
|
||||
//string imgUrl = prodSelect?.main_img?.Replace("https", "http");
|
||||
//string rst = "";
|
||||
//if (!string.IsNullOrWhiteSpace(imgUrl))
|
||||
// image = GetHtml.GetUrlImg(imgUrl, out rst);
|
||||
//if (!string.IsNullOrEmpty(rst))
|
||||
// BaseMsgForm.ShowError(rst);
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
@@ -245,7 +249,8 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
"登录",
|
||||
prodSelect.spu_id,
|
||||
prodSelect.skc_id,
|
||||
image,//prod.main_img,
|
||||
prodSelect.main_img,
|
||||
defaultBitmap,
|
||||
prodSelect.product_name,
|
||||
prodSelect.cat_name,
|
||||
prodSelect.ext_code,
|
||||
@@ -261,6 +266,7 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
ShowDgvImg();
|
||||
this.pbLoading.Visible = false;
|
||||
}));
|
||||
});
|
||||
@@ -384,6 +390,10 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
dgvSelectProduct.Rows[e.RowIndex].Cells["colUserNotes"].Value = (dbProduct.user_notes + " 编辑").Trim();
|
||||
}
|
||||
break;
|
||||
case "图片":
|
||||
ShowImgForm imgFrom = new ShowImgForm(dgvSelectProduct.Rows[e.RowIndex].Cells["colImgUrl"].Value.ParseToString());
|
||||
imgFrom.ShowDialog();
|
||||
break;
|
||||
case "":
|
||||
dgvSelectProduct.Rows[e.RowIndex].Cells["colCheck"].Value = !(bool)dgvSelectProduct.Rows[e.RowIndex].Cells["colCheck"].Value;
|
||||
break;
|
||||
@@ -471,5 +481,56 @@ namespace TemuKJD.KJDForms.ProductThirdSelectForms
|
||||
this.cmbNotes.Text = "全部";
|
||||
this.cmbUserNotes.Text = "全部";
|
||||
}
|
||||
Bitmap defaultBitmap = new Bitmap(80, 80);
|
||||
void ShowDgvImg()
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
foreach (DataGridViewRow row in this.dgvSelectProduct.Rows)
|
||||
{
|
||||
if (row.Index > 0 && row.Cells["colProductSkcPic"].Displayed == false)
|
||||
{
|
||||
try
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row.Cells["colProductSkcPic"].Value = defaultBitmap;
|
||||
}));
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (row.Cells["colProductSkcPic"].Value != null && row.Cells["colProductSkcPic"].Value != defaultBitmap)
|
||||
continue;
|
||||
|
||||
Image image = null;
|
||||
string imgUrl = row.Cells["colImgUrl"]?.Value.ParseToString();
|
||||
string getImgError = "";
|
||||
if (!string.IsNullOrWhiteSpace(imgUrl))
|
||||
image = GetHtml.GetUrlImg(imgUrl, out getImgError);
|
||||
if (!string.IsNullOrEmpty(getImgError))
|
||||
BaseMsgForm.ShowError(getImgError);
|
||||
|
||||
try
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
row.Cells["colProductSkcPic"].Value = image;
|
||||
}));
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private void dgvSelectProduct_Scroll(object sender, ScrollEventArgs e)
|
||||
{
|
||||
ShowDgvImg();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -126,6 +126,9 @@
|
||||
<metadata name="colShopId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colShopNotes.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colLoginStatus.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
@@ -162,6 +165,9 @@
|
||||
<metadata name="colSpuId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colImgUrl.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="colProductSkcPic.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
Reference in new issue
Block a user