| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using System;
- using IwbZero.ToolCommon.StringModel;
- namespace IwbZero.IwbDataQuery
- {
- public class IwbDataRow : IwbBaseAttribute
- {
- public DateTime GetDateTime(string pcField)
- {
- return GetString(pcField).StrToDt();
- }
- public decimal GetDec(string pcField)
- {
- return GetString(pcField).ValD();
- }
- public int GetInt(string pcField)
- {
- return GetString(pcField).ValI();
- }
- public string GetString(string pcField)
- {
- return base[pcField].ToString().Trim();
- }
- public string GetString(string pcField, string pcDefault)
- {
- string str = GetString(pcField);
- if (str == "")
- {
- str = pcDefault;
- }
- return str;
- }
- public void Set(string pcField, object pcValue)
- {
- string key = pcField.UAndT();
- if (pcValue == null)
- {
- pcValue = "";
- }
- if (_htProperties.ContainsKey(key))
- {
- base[pcField] = pcValue;
- }
- else
- {
- _htProperties.Add(key, pcValue);
- }
- }
- }
- }
|