예제 #1
0
 public void SetExportRowExport(int rowIndex, bool canExport)
 {
     if (rowIndex >= 0 && rowIndex < Rows.Length && Rows.Length > 0)
     {
         RowStateObj _row = Rows[rowIndex];
         if (_row != null)
         {
             _row.SetExportRowExport(canExport);
         }
     }
 }
예제 #2
0
 public string GetExportJson()
 {
     LitJson.JsonData jd = new LitJson.JsonData();
     for (int i = StartRow; i < Rows.Length; i++)
     {
         RowStateObj row = Rows[i];
         if (row == null || !row.CanExport)
         {
             continue;
         }
         jd.Add(row.GetExportJson());
     }
     return(jd.ToJson());
 }
예제 #3
0
        public string GetExportXml()
        {
            System.Xml.XmlDocument doc  = new System.Xml.XmlDocument();
            System.Xml.XmlElement  root = XmlTool.NewXmlNode(doc, doc, ExportName);
            for (int i = StartRow; i < Rows.Length; i++)
            {
                RowStateObj row = Rows[i];
                if (row == null || !row.CanExport)
                {
                    continue;
                }

                System.Xml.XmlElement xe = row.GetExportXml(doc);
                XmlTool.SetParentXmlNode(root, xe);
            }

            return(ExcelFunction.ConvertXmlToString(doc));
        }