1新增抖音功能以待测试(50%) 2修复temu库存上传功能

This commit is contained in:
wule committed 2025-12-26 14:13:27 +08:00
1 parent 17e4dc4a3c
commit 9e5fed3989
25 files changed
+7427 -52

No files matched your search

+72
View File
@@ -0,0 +1,72 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using AllBase.Model.Result;
namespace TemuKJD.DYForms.ShopForms
{
public partial class UcSubAccount : UserControl
{
public ShopSubAccountInfo subAccount = null;
public delegate void SubAcountDelegate(object obj);
public event SubAcountDelegate AddSubAcountEvent;
public event SubAcountDelegate RemoveSubAcountEvent;
public UcSubAccount(ShopSubAccountInfo _subAccount, bool isNotShopSubAccount = true)
{
InitializeComponent();
subAccount = _subAccount;
if (isNotShopSubAccount)
lblRight.Visible = false;
else
lblLeft.Visible = false;
this.Load += UcSubAccount_Load;
}
public void AddAccount()
{
this.lblLeft_Click(null, null);
}
public void DeleteAccount()
{
this.lblRight_Click(null, null);
}
private void UcSubAccount_Load(object sender, EventArgs e)
{
this.lblSubAccountName.Text = subAccount.user_name;
this.lblSubAccountGroupName.Text = subAccount.group_name;
this.lblSubAccountName.Resize += Lbl_Resize;
this.lblSubAccountGroupName.Resize += Lbl_Resize;
}
private void Lbl_Resize(object sender, EventArgs e)
{
}
public void lblLeft_Click(object sender, EventArgs e)
{
this.lblRight.Visible = true;
this.lblLeft.Visible = false;
AddSubAcountEvent?.Invoke(this);
}
public void lblRight_Click(object sender, EventArgs e)
{
this.lblRight.Visible = false;
this.lblLeft.Visible = true;
RemoveSubAcountEvent?.Invoke(this);
}
}
}