public static string ExportColPrint(GeneralModel.ListGeneralCfg.ListCol col)
        {
            //          if(m.ListType==2)
            //    if([email protected]!=null)
            //    cellsInvest.Add(t, $i, ((Decimal)item.${m.Name}).ToString("N2"));
            //    #elseif($m.ListType==3)
            //if(item.${m.Name}!=null)
            //    cellsInvest.Add(t, $i, ((Date)item.${m.Name}).ToString("yyyy-MM-dd"));
            //#elseif($m.ListType==4)
            //    if(item.${m.Name}!=null)
            //    cellsInvest.Add(t, $i, ((DateTime)item.${m.Name}).ToString("yyyy-MM-dd HH:mm:ss"));
            //else
            //    if(item.${m.Name}!=null)
            //    cellsInvest.Add(t, $i, item.${m.Name});


            if (col.ListType == (int)EnumType.ListType.Decimal)
            {
                return("((Decimal)item.{0}).ToString(\"N2\")".FormatWith(col.Name));
            }
            else if (col.ListType == (int)EnumType.ListType.Date)
            {
                return("((DateTime)item.{0}).ToString(\"yyyy-MM-dd\")".FormatWith(col.Name));
            }
            else if (col.ListType == (int)EnumType.ListType.DateTime)
            {
                return("((DateTime)item.{0}).ToString(\"yyyy-MM-dd HH:mm:ss\")".FormatWith(col.Name));
            }
            else
            {
                return("item.{0}".FormatWith(col.Name));
            }
        }
 public static string ListColAlignPrint(GeneralModel.ListGeneralCfg.ListCol col)
 {
     if (col.ListType == (int)EnumType.ListType.Decimal)
     {
         return("right");
     }
     else if (col.ListType == (int)EnumType.ListType.Date || col.ListType == (int)EnumType.ListType.DateTime)
     {
         return("center");
     }
     else
     {
         return("left");
     }
 }
 public static string ListColPrint(GeneralModel.ListGeneralCfg.ListCol col)
 {
     // <%=item.@(m.Name).TryDateTime().Value.ToString("yyyy-MM-dd")%>
     if (col.ListType == (int)EnumType.ListType.Decimal)
     {
         return("((Decimal)item.{0}).ToString(\"N2\")".FormatWith(col.Name));
     }
     else if (col.ListType == (int)EnumType.ListType.Date)
     {
         return("((DateTime)item.{0}).ToString(\"yyyy-MM-dd\")".FormatWith(col.Name));
     }
     else if (col.ListType == (int)EnumType.ListType.DateTime)
     {
         return("((DateTime)item.{0}).ToString(\"yyyy-MM-dd HH:mm:ss\")".FormatWith(col.Name));
     }
     else
     {
         return("item.{0}".FormatWith(col.Name));
     }
 }