/// <summary> /// データを書き込む /// </summary> /// <param name="attribute"></param> /// <param name="value"></param> /// <param name="type"></param> /// <param name="attributeType"></param> public void DataWrite(string attribute, string value, DataWriteType type, DataAttributeType attributeType) { if (type == DataWriteType.add) { currentDataRow.AddData(attribute, value, attributeType); } else if (type == DataWriteType.replace) { currentDataRow.ReplaceData(attribute, value, attributeType); } }
/// <summary> /// 現在のDataRowに書く。DataWriteがよびだすもの。 /// </summary> /// <param name="attribute"></param> /// <param name="value"></param> public void DataWrite(string attribute, string value, DataWriteType type, DataAttributeType attributeType) { if (type == DataWriteType.add) { currentDataRow.AddData(attribute, value, attributeType); } else if (type == DataWriteType.replace) { currentDataRow.ReplaceData(attribute, value, attributeType); } if (attribute.ToLower() == "key") { dataDic.Add(value, currentDataRow); } }
/// <summary> /// DataWriteの共通呼び出し /// </summary> /// <param name="rawler"></param> /// <param name="attribute"></param> /// <param name="value"></param> /// <param name="type"></param> /// <param name="attributeType"></param> public static void DataWrite(RawlerBase rawler, string attribute, string value, DataWriteType type, DataAttributeType attributeType) { var d = (IData)rawler.GetUpperInterface <IData>(); if (d != null) { d.DataWrite(attribute, value, type, attributeType); } else { ReportManage.ErrUpperNotFound <IData>(rawler); } }
public void DataWrite(string attribute, string value, DataWriteType type) { DataWrite(attribute, value, type, DataAttributeType.Text); }
/// <summary> /// データを書き込む /// </summary> /// <param name="attribute"></param> /// <param name="value"></param> /// <param name="type"></param> /// <param name="attributeType"></param> public void DataWrite(string attribute, string value, DataWriteType type, DataAttributeType attributeType) { if (type == DataWriteType.add) { currentDataRow.AddData(attribute, value, attributeType); } else if (type == DataWriteType.replace) { currentDataRow.ReplaceData(attribute, value, attributeType); } }
public void DataWrite(string attribute, string value, DataWriteType type) { DataWrite(attribute, value, type, DataAttributeType.Text); }