Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }