protected override void SetID() { SummitDS.DeletedUsersFromRepairProspectRow thisRow = _rowToSave as SummitDS.DeletedUsersFromRepairProspectRow; if (thisRow != null) { this._ID = thisRow.ID; } }
protected override void SaveToRow() { SummitDS.DeletedUsersFromRepairProspectDataTable _thisTable = new SummitDS.DeletedUsersFromRepairProspectDataTable(); if (_rowToSave == null) { _rowToSave = _thisTable.NewDeletedUsersFromRepairProspectRow(); } SummitDS.DeletedUsersFromRepairProspectRow _dataRow = _rowToSave as SummitDS.DeletedUsersFromRepairProspectRow; if (_dataRow != null) { if (IsExisting()) { if (m_iUseID.HasValue) { _dataRow.user_id = m_iUseID.Value; } else { _dataRow.Setuser_idNull(); } if (m_iShopID.HasValue) { _dataRow.shop_id = m_iShopID.Value; } else { _dataRow.Setshop_idNull(); } } else { if (m_iUseID.HasValue) { _dataRow.user_id = User_id.Value; } else { _dataRow.Setuser_idNull(); } if (m_iShopID.HasValue) { _dataRow.shop_id = ShopID.Value; } else { _dataRow.Setuser_idNull(); } _thisTable.AddDeletedUsersFromRepairProspectRow(_dataRow); } } }
protected override void LoadFromRow(DataRow _dataRow) { SummitDS.DeletedUsersFromRepairProspectRow row = _dataRow as SummitDS.DeletedUsersFromRepairProspectRow; if (row != null) { this._ID = row.ID; this.m_iUseID = row.user_id; this.m_iShopID = row.shop_id; _rowToSave = row; } }