23
This commit is contained in:
@@ -40,7 +40,7 @@ namespace GZ_LTHReportForms.YingShouBiao
|
||||
if (customFilter != null)
|
||||
{
|
||||
//获取组织名称
|
||||
string multiOrgnNameValues = this.GetMultiOrgnNameValues(customFilter["F_YKQC_OrgId_ca9"] as DynamicObject);
|
||||
string multiOrgnNameValues = this.GetMultiOrgnNameValues(customFilter["F_YKQC_OrgId_uky"] as DynamicObject);
|
||||
//获取起始日期
|
||||
string startValue = (customFilter["F_YKQC_Date_apv"] == null) ? string.Empty :
|
||||
Convert.ToDateTime(customFilter["F_YKQC_Date_apv"])
|
||||
@@ -134,9 +134,7 @@ namespace GZ_LTHReportForms.YingShouBiao
|
||||
取数SQL
|
||||
SQL查询字符串,提取所需数据并将结果存入临时表
|
||||
*/
|
||||
string sql = string.Format(@"/*dialect*/
|
||||
|
||||
", tableName, Filter);
|
||||
string sql = string.Format(@"/*dialect*/", tableName, Filter);
|
||||
//执行SQL并动态创建报表
|
||||
DBUtils.ExecuteDynamicObject(this.Context, sql);
|
||||
}
|
||||
@@ -149,10 +147,10 @@ namespace GZ_LTHReportForms.YingShouBiao
|
||||
StringBuilder strwhere = new StringBuilder();
|
||||
//初始化过滤条件
|
||||
strwhere.AppendLine("Where 1=1");
|
||||
var orgFid = customFilter["F_YKQC_OrgId_ca9"] as DynamicObject;
|
||||
var orgFid = customFilter["F_YKQC_OrgId_uky"] as DynamicObject;
|
||||
if (orgFid != null)
|
||||
{
|
||||
string org = string.IsNullOrWhiteSpace(customFilter["F_YKQC_OrgId_ca9"].ToString()) ? "" :
|
||||
string org = string.IsNullOrWhiteSpace(customFilter["F_YKQC_OrgId_uky"].ToString()) ? "" :
|
||||
string.Format("AND A.FSaleOrgId IN ({0})", orgFid["Id"].Long2Int());
|
||||
//添加组织过滤条件
|
||||
strwhere.AppendLine(org);
|
||||
|
||||
Reference in New Issue
Block a user