订单金额统计利润计算功能

This commit is contained in:
wule committed 2025-09-02 19:03:37 +08:00
1 parent eca6a8a9e7
commit cc539ce604
27 files changed
+2090 -214

No files matched your search

+60
View File
@@ -13,6 +13,26 @@ namespace TemuKJD.UserControls
{
public partial class UcSplitPage : UserControl
{
/// <summary>
/// 是否显示每页条数(启用每页条数功能)
/// </summary>
[Description("显示每页条数"), Category("UserProperty")]
public bool IsShowPageSize
{
get
{
return this.cmbPageSize.Visible;
}
set
{
if (cmbPageSize.Visible != value)
{
this.lblPageSize.Visible = this.cmbPageSize.Visible = value;
this.Invalidate();
}
}
}
int totalPage = 1;
public int TotalPage
{
@@ -58,6 +78,46 @@ namespace TemuKJD.UserControls
}
}
[Description("每页条数"), Category("UserProperty")]
public int PageSize
{
get
{
int pageSize = 50;
if (InvokeRequired)
{
Invoke(new Action(() =>
{
pageSize = Math.Max(this.cmbPageSize.Text.ParseToInt(), 50);
}));
}
else
pageSize = Math.Max(this.cmbPageSize.Text.ParseToInt(), 50);
return pageSize;
}
set
{
if (InvokeRequired)
{
Invoke(new Action(() =>
{
if (this.cmbPageSize.Text.ParseToInt() != value)
this.cmbPageSize.Text = value.ParseToString();
else
this.cmbPageSize.Text = value.ParseToString();
}));
}
else
{
if (this.cmbPageSize.Text.ParseToInt() != value)
this.cmbPageSize.Text = value.ParseToString();
else
this.cmbPageSize.Text = value.ParseToString();
}
//OnPageChange(this);
}
}
public event Action<object> PageChange;
protected virtual void OnPageChange(object sender)
{