|
|
@ -27,6 +27,62 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.Reports |
|
|
{ |
|
|
{ |
|
|
public class ComprehensiveReport : DFGridReportPage<StatPay> |
|
|
public class ComprehensiveReport : DFGridReportPage<StatPay> |
|
|
{ |
|
|
{ |
|
|
|
|
|
protected override void AddResultControls(VLayoutPanel vbox) |
|
|
|
|
|
{ |
|
|
|
|
|
base.AddResultControls(vbox); |
|
|
|
|
|
mDFGrid.AllowSorting = true; |
|
|
|
|
|
mDFGrid.HeaderPagerLock = true; |
|
|
|
|
|
mDFGrid.Height = 650; |
|
|
|
|
|
mDFGrid.Width = 1100; |
|
|
|
|
|
string bodyHeight = Request.Form["__BodyHeight"]; |
|
|
|
|
|
string bodyWidth = Request.Form["__BodyWidth"]; |
|
|
|
|
|
|
|
|
|
|
|
if (bodyHeight != null) |
|
|
|
|
|
{ |
|
|
|
|
|
int height; |
|
|
|
|
|
if (int.TryParse(bodyHeight, out height) && height > 180) |
|
|
|
|
|
{ |
|
|
|
|
|
mDFGrid.Height = height - 160; |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
mDFGrid.Height = 650; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if (bodyWidth != null) |
|
|
|
|
|
{ |
|
|
|
|
|
int width; |
|
|
|
|
|
if (int.TryParse(bodyWidth, out width) && width > 100) |
|
|
|
|
|
{ |
|
|
|
|
|
mDFGrid.Width = width - 30; |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
mDFGrid.Width = 1100; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected override void OnPreRender(EventArgs e) |
|
|
|
|
|
{ |
|
|
|
|
|
base.OnPreRender(e); |
|
|
|
|
|
|
|
|
|
|
|
var script = @"
|
|
|
|
|
|
<script type=""text/javascript""> |
|
|
|
|
|
var conH = document.getElementById('__BodyHeight'); |
|
|
|
|
|
if (conH) |
|
|
|
|
|
conH.value = $(document.body).height(); |
|
|
|
|
|
var conW = document.getElementById('__BodyWidth'); |
|
|
|
|
|
if (conW) |
|
|
|
|
|
conW.value = $(document.body).width(); |
|
|
|
|
|
</script> |
|
|
|
|
|
";
|
|
|
|
|
|
ClientScript.RegisterHiddenField("__BodyHeight", ""); |
|
|
|
|
|
ClientScript.RegisterHiddenField("__BodyWidth", ""); |
|
|
|
|
|
ClientScript.RegisterClientScriptBlock(GetType(), "gridsc", script, false); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
protected override string Caption |
|
|
protected override string Caption |
|
|
{ |
|
|
{ |
|
|
get { return "收购综合报表"; } |
|
|
get { return "收购综合报表"; } |
|
|
@ -37,7 +93,6 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.Reports |
|
|
get { return "B3QingDaoWanFu.报表.收购综合报表"; } |
|
|
get { return "B3QingDaoWanFu.报表.收购综合报表"; } |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected override void BeforeInitAllDataQueryResult(DFDataTable table) |
|
|
protected override void BeforeInitAllDataQueryResult(DFDataTable table) |
|
|
{ |
|
|
{ |
|
|
ResetTable(table); |
|
|
ResetTable(table); |
|
|
@ -160,6 +215,8 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.Reports |
|
|
return r; |
|
|
return r; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TextBox _reportLockCol; |
|
|
protected override void AddQueryControls(VLayoutPanel vPanel) |
|
|
protected override void AddQueryControls(VLayoutPanel vPanel) |
|
|
{ |
|
|
{ |
|
|
var layoutManager = new LayoutManager("Main", mDFInfo, mQueryContainer); |
|
|
var layoutManager = new LayoutManager("Main", mDFInfo, mQueryContainer); |
|
|
@ -194,6 +251,12 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.Reports |
|
|
{ |
|
|
{ |
|
|
base.InitQueryPanel(queryPanel); |
|
|
base.InitQueryPanel(queryPanel); |
|
|
var panel = queryPanel.CreateTab("显示字段"); |
|
|
var panel = queryPanel.CreateTab("显示字段"); |
|
|
|
|
|
var hPanel = new HLayoutPanel(); |
|
|
|
|
|
panel.EAdd(hPanel); |
|
|
|
|
|
hPanel.Add(new SimpleLabel("锁定列数")); |
|
|
|
|
|
_reportLockCol = hPanel.Add(new TextBox() { Width = Unit.Pixel(80) }); |
|
|
|
|
|
mQueryControls.Add("__QueryOptions_锁定列数", _reportLockCol); |
|
|
|
|
|
mQueryControls.EnableHoldLastControlNames.Add("__QueryOptions_锁定列数"); |
|
|
|
|
|
|
|
|
_checkbox = new CheckBoxListWithReverseSelect { RepeatColumns = 6, RepeatDirection = RepeatDirection.Horizontal }; |
|
|
_checkbox = new CheckBoxListWithReverseSelect { RepeatColumns = 6, RepeatDirection = RepeatDirection.Horizontal }; |
|
|
_checkbox.Items.Add(new ListItem("收购日期", "WeighTime")); |
|
|
_checkbox.Items.Add(new ListItem("收购日期", "WeighTime")); |
|
|
@ -244,8 +307,22 @@ namespace BWP.Web.Pages.B3QingDaoWanFu.Reports |
|
|
mQueryControls.EnableHoldLastControlNames.Add("显示字段"); |
|
|
mQueryControls.EnableHoldLastControlNames.Add("显示字段"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private int GetReportLockCol() |
|
|
|
|
|
{ |
|
|
|
|
|
if (_reportLockCol == null) |
|
|
|
|
|
return 0; |
|
|
|
|
|
if (string.IsNullOrEmpty(_reportLockCol.Text)) |
|
|
|
|
|
_reportLockCol.Text = "0"; |
|
|
|
|
|
int colNumber = 0; |
|
|
|
|
|
if (int.TryParse(_reportLockCol.Text, out colNumber)) |
|
|
|
|
|
return colNumber; |
|
|
|
|
|
_reportLockCol.Text = "0"; |
|
|
|
|
|
return 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
protected override DQueryDom GetQueryDom() |
|
|
protected override DQueryDom GetQueryDom() |
|
|
{ |
|
|
{ |
|
|
|
|
|
mDFGrid.LockedColumns = GetReportLockCol(); |
|
|
var query = base.GetQueryDom(); |
|
|
var query = base.GetQueryDom(); |
|
|
var bill = JoinAlias.Create("bill"); |
|
|
var bill = JoinAlias.Create("bill"); |
|
|
|
|
|
|
|
|
|