新代理商

This commit is contained in:
wule committed 2026-08-06 12:46:03 +08:00
1 parent e37f15737c
commit 0773eaa9fd
34 files changed
+742 -76

No files matched your search

@@ -424,8 +424,11 @@ namespace TemuKJD.WXForms.ProductForms
for (int j= ctrlLst.Count - 2; j > i; j-=2)
{
ctrlLst[j].Parent = ucGroupBoxEx4;
ctrlLst[j].Location = new Point(ctrlLst[j - 2].Location.X, ctrlLst[j - 2].Location.Y);
ctrlLst[j].Location = new Point(ctrlLst[j - 2].Location.X + ctrlLst[j - 2].Width - ctrlLst[j].Width, ctrlLst[j - 2].Location.Y);
if (ctrlLst[j] is CheckBox) // 额外减去一个像素
ctrlLst[j].Location = new Point(ctrlLst[j].Location.X - 1, ctrlLst[j].Location.Y);
ctrlLst[j + 1].Location = new Point(ctrlLst[j].Location.X + ctrlLst[j].Width - 3, ctrlLst[j - 1].Location.Y);
ctrlLst[j + 1].Width = ctrlLst[j - 1].Width;
ctrlLst[j + 1].BringToFront();
}
}
@@ -436,8 +439,8 @@ namespace TemuKJD.WXForms.ProductForms
}
if (chkWXComplateProd.Visible == false)
{
chkRandomFissionProduct.Location = new Point(chkRandomFissionProduct.Location.X + 160, chkRandomFissionProduct.Location.Y);
txtRandomFissionProductCount.Location = new Point(txtRandomFissionProductCount.Location.X + 160, txtRandomFissionProductCount.Location.Y);
chkRandomFissionProduct.Location = new Point(chkRandomFissionProduct.Location.X + 54, chkRandomFissionProduct.Location.Y);
txtRandomFissionProductCount.Location = new Point(txtRandomFissionProductCount.Location.X + 54, txtRandomFissionProductCount.Location.Y);
}
IsFormLoad = true;
@@ -899,7 +902,7 @@ namespace TemuKJD.WXForms.ProductForms
var shopId = dgvSelectProduct.Rows[e.RowIndex].Cells["colSupplierId"].Value.ParseToString();
var draftId = dgvSelectProduct.Rows[e.RowIndex].Cells["colDraftId"].Value.ParseToString();
var shop = GlobalConfig.ValidShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
if (shop == null)
if (shop == null && !string.IsNullOrEmpty(headerText))
{
BaseMsgForm.ShowError("店铺不存在或已过期");
return;
@@ -6270,19 +6273,25 @@ namespace TemuKJD.WXForms.ProductForms
private void btnClearDgv_Click(object sender, EventArgs e)
{
//this.dgvSelectProduct.Rows.Clear();
var rows = this.dgvSelectProduct.Rows.Cast<DataGridViewRow>().ToList(); //Cast后Rows做foreach循环时仍会夹花跳过,所以要ToList转一个新的数组。
foreach (var row in rows)
Task.Run(() =>
{
if (row.Cells["colCheck"].Value.ParseToBool() == true)
var rows = this.dgvSelectProduct.Rows.Cast<DataGridViewRow>().ToList(); //Cast后Rows做foreach循环时仍会夹花跳过,所以要ToList转一个新的数组。
foreach (var row in rows)
{
var draft_id = row.Cells["colDraftId"].Value.ParseToString();
var add_time = row.Cells["colAddTime"].Value.ParseToString().ParseToDateTime();
upload_draft_product_lst.RemoveAll(p => p.draft_id.ParseToString() == draft_id && p.add_time.ToString("yyyyMMddHHmmss") == add_time.ToString("yyyyMMddHHmmss"));
Invoke(new Action(() =>
{
if (row.Cells["colCheck"].Value.ParseToBool() == true)
{
var draft_id = row.Cells["colDraftId"].Value.ParseToString();
var add_time = row.Cells["colAddTime"].Value.ParseToString().ParseToDateTime();
upload_draft_product_lst.RemoveAll(p => p.draft_id.ParseToString() == draft_id && p.add_time.ToString("yyyyMMddHHmmss") == add_time.ToString("yyyyMMddHHmmss"));
this.dgvSelectProduct.Rows.Remove(row);
this.dgvSelectProduct.Rows.Remove(row);
}
}));
}
}
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_select_upload_draft_products", upload_draft_product_lst);
NaiBa.Util.Helper.ConfigHelper.SaveConfig("wx_select_upload_draft_products", upload_draft_product_lst);
});
}
private void chkAddMorePriceFirst_CheckedChanged(object sender, EventArgs e)