private DataTable DeviceInsertTable(string selectQuery) { var tmpTable = controlParser.ReturnInsertTable(selectQuery); var DBRow = tmpTable.Rows[0]; //Add Add'l info if (!string.IsNullOrEmpty(MunisUser.Number)) { DBRow[DevicesCols.CurrentUser] = MunisUser.Name; DBRow[DevicesCols.MunisEmpNum] = MunisUser.Number; } DBRow[DevicesCols.LastModUser] = NetworkInfo.LocalDomainUser; DBRow[DevicesCols.LastModDate] = DateTime.Now; DBRow[DevicesCols.DeviceGuid] = newGuid; DBRow[DevicesCols.CheckedOut] = false; return(tmpTable); }
private DataTable GetInsertTable(string selectQuery, DeviceUpdateInfo updateInfo) { var tmpTable = controlParser.ReturnInsertTable(selectQuery); var row = tmpTable.Rows[0]; //Add Add'l info row[HistoricalDevicesCols.ChangeType] = updateInfo.ChangeType; row[HistoricalDevicesCols.Notes] = updateInfo.Note; row[HistoricalDevicesCols.ActionUser] = NetworkInfo.LocalDomainUser; row[HistoricalDevicesCols.DeviceGuid] = currentViewDevice.Guid; return(tmpTable); }