商品选品 更新类目 子账户单独批量修改 及其他功能

This commit is contained in:
wule committed 2026-03-23 20:34:05 +08:00
1 parent 8e919b0bd7
commit 52220daa8b
46 files changed
+4960 -211

No files matched your search

+27 -15
View File
@@ -10,6 +10,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using AllBase;
namespace TemuKJD.WXForms.ShopForms
{
@@ -52,19 +53,28 @@ namespace TemuKJD.WXForms.ShopForms
shop.LoginName = this.txtLoginName.Text.Trim();
if (!string.IsNullOrEmpty(this.txtShopPassword.Text.Trim()))
shop.Password = DataOpenSSL.EncryptString(this.txtShopPassword.Text.Trim());
shop.GroupName = this.cmbGroup.Text;
shop.Notes = this.txtNotes.Text;
if (chkNotes.Checked)
shop.Notes = this.txtNotes.Text;
if (chkShopGroup.Checked)
shop.GroupName = this.cmbGroup.Text;
if (chkSubAccount.Checked)
shop.SubUserName = shopSubAccountTmp.SubUserName;
shop.CompanyName = AllBase.BaseClass.CompanyName;
foreach (var sp in lstShopLoginInfo)
{
sp.GroupName = this.cmbGroup.Text;
sp.Notes = this.txtNotes.Text;
sp.CompanyName = AllBase.BaseClass.CompanyName;
sp.SubUserName = shop.SubUserName;
if (chkNotes.Checked)
sp.Notes = this.txtNotes.Text;
if (chkShopGroup.Checked)
sp.GroupName = this.cmbGroup.Text;
if (chkSubAccount.Checked)
sp.SubUserName = shop.SubUserName;
}
this.OnSaveComplete(lstShopLoginInfo, isAdd);
this.OnSaveComplete(lstShopLoginInfo, isAdd, this);
this.Close();
}
@@ -131,26 +141,28 @@ namespace TemuKJD.WXForms.ShopForms
}
ShopLoginInfo shopSubAccountTmp;
private void txt_Click(object sender, EventArgs e)
{
WXSubAccountShopEditForm f = new WXSubAccountShopEditForm(shop);
shopSubAccountTmp = JsonHelper.DeserializeJsonToObject<ShopLoginInfo>(JsonHelper.SerializeObject(shop));
WXSubAccountShopEditForm f = new WXSubAccountShopEditForm(shopSubAccountTmp);
f.SaveComplete += F_SaveComplete;
f.ShowDialog();
}
private void F_SaveComplete(object obj)
{
var shop = obj as ShopLoginInfo;
if (shop != null)
var shopSubAccountTmp = obj as ShopLoginInfo;
if (shopSubAccountTmp != null)
{
this.txtBuyAccount.Text = shop.BuyAccount;
this.txtChatAccount.Text = shop.ChatAccount;
this.txtUploadAccount.Text = shop.UploadAccount;
this.txtBuyAccount.Text = shopSubAccountTmp.BuyAccount;
this.txtChatAccount.Text = shopSubAccountTmp.ChatAccount;
this.txtUploadAccount.Text = shopSubAccountTmp.UploadAccount;
this.txtChatAccount.Text = shop.SubUserName;
if (!string.IsNullOrEmpty(shop.SubUserName))
this.txtChatAccount.Text = shopSubAccountTmp.SubUserName;
if (!string.IsNullOrEmpty(shopSubAccountTmp.SubUserName))
{
var subUserNames = shop.SubUserName.Split(',').Where(su => !string.IsNullOrEmpty(su));
var subUserNames = shopSubAccountTmp.SubUserName.Split(',').Where(su => !string.IsNullOrEmpty(su));
var subUsers = WXSubAccountShopEditForm.lstAllSubAccount.Where(su => subUserNames.Contains(su.user_name));
this.txtChatNick.Text = string.Join(",", subUsers.Select(s => s.nick_name));
}