Example #1
0
 public void SetExportColunmName(int colunm, string exportColunmId)
 {
     if (colunm >= StartCol && colunm < Cells.Length && Cells.Length > 0)
     {
         CellStateObj cell = Cells[colunm];
         cell.ExportColunmId = exportColunmId;
     }
 }
Example #2
0
 public void SetExportColunmExport(int colunm, bool canExport)
 {
     if (colunm >= StartCol && colunm < Cells.Length && Cells.Length > 0)
     {
         CellStateObj cell = Cells[colunm];
         cell.CanExport = canExport;
     }
 }
Example #3
0
 public System.Xml.XmlElement GetExportXml(System.Xml.XmlDocument doc)
 {
     System.Xml.XmlElement xe = XmlTool.NewXmlNode(doc, "table");
     for (int i = 0; i < Cells.Length; i++)
     {
         CellStateObj cell = Cells[i];
         if (cell != null && cell.CanExport)
         {
             xe.SetAttribute(cell.ExportColunmId, cell.Value);
         }
     }
     return(xe);
 }
Example #4
0
 public LitJson.JsonData GetExportJson()
 {
     LitJson.JsonData jd = new LitJson.JsonData();
     for (int i = 0; i < Cells.Length; i++)
     {
         CellStateObj cell = Cells[i];
         if (cell != null && cell.CanExport)
         {
             jd[cell.ExportColunmId] = cell.Value;
         }
     }
     return(jd);
 }