1
This commit is contained in:
parent
4a48ef6fd0
commit
b513237b6e
@ -17,6 +17,9 @@ namespace Pilot.Report.Exploitation.SBUYingShouBiao
|
|||||||
[Description("应收款情况表(SBU)报表插件"), HotUpdate]
|
[Description("应收款情况表(SBU)报表插件"), HotUpdate]
|
||||||
public class SBUYingShouBiaoReport : SysReportBaseService
|
public class SBUYingShouBiaoReport : SysReportBaseService
|
||||||
{
|
{
|
||||||
|
|
||||||
|
public DateTime? beginTime = null;
|
||||||
|
public DateTime? endTime = null;
|
||||||
//初始化方法
|
//初始化方法
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
@ -37,7 +40,7 @@ namespace Pilot.Report.Exploitation.SBUYingShouBiao
|
|||||||
DynamicObject customFilter = filter.FilterParameter.CustomFilter;
|
DynamicObject customFilter = filter.FilterParameter.CustomFilter;
|
||||||
if (customFilter != null)
|
if (customFilter != null)
|
||||||
{
|
{
|
||||||
////获取组织名称
|
//获取组织名称
|
||||||
//string multiOrgnNameValues = this.GetMultiOrgnNameValues(customFilter["F_YKQC_OrgId_uky"] as DynamicObject);
|
//string multiOrgnNameValues = this.GetMultiOrgnNameValues(customFilter["F_YKQC_OrgId_uky"] as DynamicObject);
|
||||||
////获取起始日期
|
////获取起始日期
|
||||||
//string startValue = (customFilter["F_YKQC_Date_qtr"] == null) ? string.Empty :
|
//string startValue = (customFilter["F_YKQC_Date_qtr"] == null) ? string.Empty :
|
||||||
@ -135,6 +138,11 @@ namespace Pilot.Report.Exploitation.SBUYingShouBiao
|
|||||||
string end = now.ToString();
|
string end = now.ToString();
|
||||||
//获取过滤条件
|
//获取过滤条件
|
||||||
string Filter = GetFilterWhere(filter);
|
string Filter = GetFilterWhere(filter);
|
||||||
|
if (beginTime.HasValue)
|
||||||
|
begin = beginTime.Value.ToString("yyyy-MM-dd");
|
||||||
|
if (endTime.HasValue)
|
||||||
|
end = endTime.Value.ToString("yyyy-MM-dd");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
取数SQL
|
取数SQL
|
||||||
SQL查询字符串,提取所需数据并将结果存入临时表
|
SQL查询字符串,提取所需数据并将结果存入临时表
|
||||||
@ -223,20 +231,22 @@ FROM T_SAL_ORDERFIN aa
|
|||||||
strwhere.AppendLine(org);
|
strwhere.AppendLine(org);
|
||||||
}
|
}
|
||||||
|
|
||||||
////日期
|
//日期
|
||||||
//string startValue = (customFilter["F_YKQC_Date_qtr"] == null) ? string.Empty :
|
string startValue = (customFilter["F_YKQC_Date_qtr"] == null) ? string.Empty :
|
||||||
// Convert.ToDateTime(customFilter["F_YKQC_Date_qtr"]).ToString("yyyy-MM-dd");
|
Convert.ToDateTime(customFilter["F_YKQC_Date_qtr"]).ToString("yyyy-MM-dd");
|
||||||
//string endValue = (customFilter["F_YKQC_Date_83g"] == null) ? string.Empty :
|
string endValue = (customFilter["F_YKQC_Date_83g"] == null) ? string.Empty :
|
||||||
// Convert.ToDateTime(customFilter["F_YKQC_Date_83g"]).ToString("yyyy-MM-dd");
|
Convert.ToDateTime(customFilter["F_YKQC_Date_83g"]).ToString("yyyy-MM-dd");
|
||||||
////添加日期过滤条件
|
//添加日期过滤条件
|
||||||
//if (!String.IsNullOrWhiteSpace(startValue))
|
if (!String.IsNullOrWhiteSpace(startValue))
|
||||||
//{
|
{
|
||||||
// strwhere.AppendLine(string.Format(@"AND A.FDate >= '{0}'", startValue));
|
//strwhere.AppendLine(string.Format(@"AND A.FDate >= '{0}'", startValue));
|
||||||
//}
|
beginTime = Convert.ToDateTime(startValue).Date;
|
||||||
//if (!String.IsNullOrWhiteSpace(endValue))
|
}
|
||||||
//{
|
if (!String.IsNullOrWhiteSpace(endValue))
|
||||||
// strwhere.AppendLine(string.Format(@"AND A.FDate <= '{0}'", endValue));
|
{
|
||||||
//}
|
endTime= Convert.ToDateTime(endValue).AddDays(1).Date;
|
||||||
|
//strwhere.AppendLine(string.Format(@"AND A.FDate <= '{0}'", endValue));
|
||||||
|
}
|
||||||
return strwhere.ToString();
|
return strwhere.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user