Esempio n. 1
0
        public override void Run(bool runChildren)
        {
            currentDataRow = new DataRowObject();
            SetText(GetText());
            base.Run(runChildren);

            if (MustAttributes.IsNullOrEmpty() == false)
            {
                var must = MustAttributes.Split(',');
                if (currentDataRow.Attributes.Intersect(must).Count() == must.Count())
                {
                    Data.AddDataRow(this, currentDataRow);
                }
            }
            else
            {
                Data.AddDataRow(this, currentDataRow);
            }
            if (currentDataRow.IsDataNull())
            {
                if (EmptyTree != null)
                {
                    EmptyTree.SetParent(this);
                    EmptyTree.Run();
                }
            }
        }
Esempio n. 2
0
 public void NextDataRow(DataRowObject cDataRow)
 {
     ReportManage.Report(this, "NextDataRow");
     if (Commited != null)
     {
         Commited(this, new EventDataRow(cDataRow));
     }
     currentDataRow = new DataRowObject();
     if (stock)
     {
         dataList.Add(cDataRow);
     }
 }
Esempio n. 3
0
        /// <summary>
        /// AddDataRowの共通呼び出し。
        /// </summary>
        /// <param name="rawler"></param>
        /// <param name="datarow"></param>
        public static void AddDataRow(RawlerBase rawler, DataRowObject datarow)
        {
            var r = (IDataRows)rawler.GetUpperInterface <IDataRows>();

            if (r != null)
            {
                r.AddDataRow(datarow);
            }
            else
            {
                ReportManage.ErrUpperNotFound <IDataRows>(rawler);
            }
        }
Esempio n. 4
0
 public void ChangeCurrentDataRow(string key)
 {
     if (dataDic.ContainsKey(key))
     {
         currentDataRow = dataDic[key];
     }
     else
     {
         currentDataRow = new DataRowObject();
         currentDataRow.AddData("Key", key);
         dataDic.Add(key, currentDataRow);
         dataList.Add(currentDataRow);
     }
 }
Esempio n. 5
0
        public override void Run(bool runChildren)
        {
            base.Run(runChildren);
            if (doLastFileSave)
            {
                SaveFile();
            }

            if (string.IsNullOrEmpty(Attribute) == false)
            {
                Data.DataWrite(this, Attribute, this.ToJson(), DataWriteType.add, DataAttributeType.Json);
            }

            if (EndDataClear || string.IsNullOrEmpty(Attribute) == false)
            {
                dataDic.Clear();
                dataList.Clear();
                currentDataRow = new DataRowObject();
                dataList.Add(currentDataRow);
            }
        }
Esempio n. 6
0
 public void AddDataRow(DataRowObject datarow)
 {
     list.Enqueue(datarow);
 }
Esempio n. 7
0
 public override void AddDataRow(DataRowObject datarow)
 {
     DataRowBlock.Post(datarow);
 }
Esempio n. 8
0
 public void UpDate(DataRowObject row)
 {
     dataTypeDic = row.dataTypeDic;
     dataDic = row.dataDic;
 }
Esempio n. 9
0
        public override void Run(bool runChildren)
        {
            currentDataRow = new DataRowObject();
            SetText(GetText());
            base.Run(runChildren);

            if (MustAttributes.IsNullOrEmpty() == false)
            {
                var must = MustAttributes.Split(',');
                if (currentDataRow.Attributes.Intersect(must).Count() == must.Count())
                {
                    Data.AddDataRow(this, currentDataRow);
                }
            }
            else
            {
                Data.AddDataRow(this, currentDataRow);
            }
            if (currentDataRow.IsDataNull())
            {
                if (EmptyTree != null)
                {
                    EmptyTree.SetParent(this);
                    EmptyTree.Run();
                }
            }
        }
Esempio n. 10
0
 public void UpDate(DataRowObject row)
 {
     dataTypeDic = row.dataTypeDic;
     dataDic     = row.dataDic;
 }
Esempio n. 11
0
 public void AddDataRow(DataRowObject datarow)
 {
     list.Enqueue(datarow);
 }
Esempio n. 12
0
 /// <summary>
 /// DataRowに関するEventArgs
 /// /// </summary>
 /// <param name="row"></param>
 public EventDataRow(DataRowObject row)
     : base()
 {
     DataRow = row;
 }
Esempio n. 13
0
 public virtual void AddDataRow(DataRowObject datarow)
 {
     currentDataRow.UpDate(datarow);
     NextDataRow();
 }