ui适配调整 权限管理调整 上传数量调整
This commit is contained in:
1 parent
edb79b9abf
commit
deb84144cf
82 files changed
+1026
-485
No files matched your search
@@ -14,13 +14,14 @@ using System.Threading.Tasks;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Windows.Forms;
|
||||
using Work;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
|
||||
namespace TemuKJD.KJDForms.ShopForms
|
||||
{
|
||||
/// <summary>
|
||||
/// 运费模板管理窗口
|
||||
/// </summary>
|
||||
public partial class FreightTemplateAddForm : Form
|
||||
public partial class FreightTemplateAddForm : BaseForm
|
||||
{
|
||||
public static List<string> ids = new List<string>();
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ using Work.DouyinApiClass;
|
||||
|
||||
namespace TemuKJD.KJDForms.ShopForms
|
||||
{
|
||||
public partial class FreightTemplateForm : Form
|
||||
public partial class FreightTemplateForm : BaseForm
|
||||
{
|
||||
public static List<AddressAreaInfo> LstAddress = new List<AddressAreaInfo>();
|
||||
public static List<string> CustomFreightTemplateNames { get; set; } = new List<string>();
|
||||
|
||||
@@ -12,11 +12,12 @@ using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using Work.DouyinApiClass;
|
||||
|
||||
namespace TemuKJD.KJDForms.ShopForms
|
||||
{
|
||||
public partial class FreightTemplateListForm : Form
|
||||
public partial class FreightTemplateListForm : BaseForm
|
||||
{
|
||||
public ShopLoginInfo Shop = null;
|
||||
public List<FreightTemplateInfo> LstTemplate = new List<FreightTemplateInfo>();
|
||||
|
||||
@@ -17,7 +17,7 @@ using Work.DouyinApiClass;
|
||||
|
||||
namespace TemuKJD.KJDForms.ShopForms
|
||||
{
|
||||
public partial class MaterialManageForm : Form
|
||||
public partial class MaterialManageForm : BaseForm
|
||||
{
|
||||
private CheckBox chkSelectAll = null;
|
||||
CancellationTokenSource cancellationTokenSource = null;
|
||||
|
||||
@@ -10,11 +10,12 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TemuKJD.KJDForms.AdminForms;
|
||||
using TemuKJD.KJDForms.BaseForms;
|
||||
using TemuKJD.KJDForms.ProductSelectForms;
|
||||
|
||||
namespace TemuKJD.KJDForms.ShopForms
|
||||
{
|
||||
public partial class ShopForm : Form
|
||||
public partial class ShopForm : BaseForm
|
||||
{
|
||||
public Lazy<ShopListForm> shopListForm = new Lazy<ShopListForm>();
|
||||
public Lazy<SubAccountListForm> sbuAccountForm = new Lazy<SubAccountListForm>();
|
||||
@@ -40,13 +41,18 @@ namespace TemuKJD.KJDForms.ShopForms
|
||||
if (BaseClass.GroupId == 3)
|
||||
{
|
||||
hideName.Remove("用户管理");
|
||||
if (BaseClass.IsSa/*BaseClass.UserName == "18888888888" || BaseClass.UserName == "15333333333"*/)
|
||||
/*BaseClass.UserName == "18888888888" || BaseClass.UserName == "15333333333"*/
|
||||
if (BaseClass.SaLevel==1)
|
||||
{
|
||||
hideName.Remove("超级用户管理");
|
||||
hideName.Remove("超级店铺管理");
|
||||
hideName.Remove("选品数据库");
|
||||
hideName.Remove("认领待上传");
|
||||
}
|
||||
if (BaseClass.SaLevel==2)
|
||||
{
|
||||
hideName.Remove("认领待上传");
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var item in hideName)
|
||||
|
||||
+12
-16
@@ -28,9 +28,8 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
|
||||
@@ -389,19 +388,19 @@
|
||||
//
|
||||
this.dgvShop.AllowUserToAddRows = false;
|
||||
this.dgvShop.AllowUserToDeleteRows = false;
|
||||
dataGridViewCellStyle7.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
|
||||
dataGridViewCellStyle1.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
this.dgvShop.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
|
||||
this.dgvShop.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
|
||||
this.dgvShop.BackgroundColor = System.Drawing.Color.White;
|
||||
this.dgvShop.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
|
||||
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
||||
dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
|
||||
dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
|
||||
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
|
||||
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
||||
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
||||
this.dgvShop.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
|
||||
this.dgvShop.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
||||
this.colSelect,
|
||||
@@ -430,8 +429,6 @@
|
||||
this.dgvShop.Location = new System.Drawing.Point(4, 0);
|
||||
this.dgvShop.Name = "dgvShop";
|
||||
this.dgvShop.ReadOnly = true;
|
||||
dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.dgvShop.RowsDefaultCellStyle = dataGridViewCellStyle9;
|
||||
this.dgvShop.RowTemplate.Height = 23;
|
||||
this.dgvShop.Size = new System.Drawing.Size(1055, 555);
|
||||
this.dgvShop.TabIndex = 5;
|
||||
@@ -644,7 +641,6 @@
|
||||
//
|
||||
// ShopListForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.ClientSize = new System.Drawing.Size(1063, 637);
|
||||
|
||||
@@ -22,7 +22,7 @@ using NaiBa.Util;
|
||||
|
||||
namespace TemuKJD.KJDForms.ShopForms
|
||||
{
|
||||
public partial class ShopListForm : Form
|
||||
public partial class ShopListForm : BaseForm
|
||||
{
|
||||
public static List<ShopListForm> LstShopListFormInatance = new List<ShopListForm>();
|
||||
public static ShopListForm Instance { get; set; } = null;
|
||||
@@ -129,6 +129,7 @@ namespace TemuKJD.KJDForms.ShopForms
|
||||
localShop.GroupName = serverShop.GroupName;
|
||||
localShop.Notes = serverShop.Notes;
|
||||
localShop.LoginStatus = serverShop.LoginStatus;
|
||||
localShop.AddProductRemaining = serverShop.AddProductRemaining;
|
||||
if (localShop.TrialUploadCount < 0)
|
||||
localShop.TrialUploadCount = 0;
|
||||
GlobalConfig.ShopLoginList.Add(localShop);
|
||||
@@ -183,6 +184,7 @@ namespace TemuKJD.KJDForms.ShopForms
|
||||
shop.CompanyName = BaseRegex.GetStringJson(ref shopStr, "company_name");
|
||||
shop.Notes = BaseRegex.GetStringJson(ref shopStr, "notes");
|
||||
shop.LoginStatus = BaseRegex.GetStringJson(ref shopStr, "login_status");
|
||||
shop.AddProductRemaining = BaseRegex.GetIntJson(ref shopStr, "add_product_remaining");
|
||||
//shop.PayStatus = BaseRegex.GetIntJson(ref shopStr, "shop_pay_status");
|
||||
//if (list.Any(l => l.ShopId == shop.ShopId) || list.Any(l => l.ShopName == shop.ShopName))
|
||||
// continue;
|
||||
|
||||
@@ -14,7 +14,7 @@ using Work;
|
||||
|
||||
namespace TemuKJD.KJDForms.ShopForms
|
||||
{
|
||||
public partial class SubAccountListForm : Form
|
||||
public partial class SubAccountListForm : BaseForm
|
||||
{
|
||||
public static List<DouShopSubAccountInfo> AllUsers { get; set; } = new List<DouShopSubAccountInfo>();
|
||||
public MainForm Mf { get; set; } = null;
|
||||
|
||||
Reference in new issue
Block a user