strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then B.TEU else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"TEU ");
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then B.TEU else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"TEU ");
if(amendstr=="true")
{
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then 1 else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"BL ");
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then B.TEU else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"TEU ");
if(amendstr=="true")
{
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then 1 else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"BL ");
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then B.TEU else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"TEU ");
if(amendstr=="true")
{
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then 1 else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"BL ");
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then B.TEU else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"TEU ");
if(amendstr=="true")
{
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then 1 else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"BL ");
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then B.TEU else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"TEU ");
if(amendstr=="true")
{
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then 1 else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"BL ");
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then B.TEU else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"TEU ");
if(amendstr=="true")
{
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then 1 else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"BL ");
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then B.TEU else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"TEU ");
if(amendstr=="true")
{
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then 1 else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"BL ");
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then B.TEU else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"TEU ");
if(amendstr=="true")
{
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then 1 else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"BL ");
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then B.TEU else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"TEU ");
if(amendstr=="true")
{
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then 1 else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"BL ");
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then B.TEU else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"TEU ");
if(amendstr=="true")
{
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then 1 else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"BL ");
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then B.TEU else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"TEU ");
if(amendstr=="true")
{
strSql.Append(",sum(case when SUBSTRING(CONVERT(char(15), B."+datetype+", 111), 1, 7)='"+enumValue.MONTHFIELDNAME+"' then 1 else 0 end) as ZL"+enumValue.MONTHNO.ToString()+"BL ");