Esempio n. 1
0
        protected override void SaveToRow()
        {
            SummitDS.ZipCodeDataTable _thisTable = new SummitDS.ZipCodeDataTable();
            if (_rowToSave == null)
            {
                _rowToSave = _thisTable.NewZipCodeRow();
            }
            SummitDS.ZipCodeRow _dataRow = _rowToSave as SummitDS.ZipCodeRow;

            if (_dataRow != null)
            {
                if (IsExisting())
                {
                    _dataRow.Zip      = m_strZipCode;
                    _dataRow.Login_id = m_iLoginId;
                }
                else
                {
                    _dataRow.Zip      = m_strZipCode;
                    _dataRow.Login_id = m_iLoginId;

                    _thisTable.AddZipCodeRow(_dataRow);
                }
            }
        }
Esempio n. 2
0
 protected override void SetID()
 {
     SummitDS.ZipCodeRow thisRow = _rowToSave as SummitDS.ZipCodeRow;
     if (thisRow != null)
     {
         this._ID = thisRow.Code_id;
     }
 }
Esempio n. 3
0
        protected override void LoadFromRow(DataRow _dataRow)
        {
            SummitDS.ZipCodeRow _thisRow = _dataRow as SummitDS.ZipCodeRow;

            if (_thisRow != null)
            {
                this._ID          = _thisRow.Code_id;
                this.m_strZipCode = _thisRow.Zip;
                this.m_iLoginId   = _thisRow.Login_id;

                //  this.m_dt_ts = _thisRow.Is_tsNull() ? (Nullable<DateTime>) null : _thisRow._ts ;
                _rowToSave = _thisRow;
            }
        }