Пример #1
0
 private void btn_Find_Click(object sender, EventArgs e)
 {
     vAcctList.Items.Clear();
     vAcctList.SuspendLayout();
     Cursor = Cursors.WaitCursor;
     using (RPM_Account rpmAccount = new RPM_Account())
     {
         List <Account> accountList = rpmAccount.AccountSearch(txtBadgeNumber.Text, txtLastName.Text);
         txtBadgeNumber.Text = txtLastName.Text = string.Empty;
         if (accountList.Count > 0)
         {
             vAcctList.SelectedIndex = -1;
             foreach (Account rec in accountList)
             {
                 if (IsShowCurrentAccount)
                 {
                     LoadRecord(rec);
                 }
                 else if (Global.GlobalAccount.Id != rec.Id)
                 {
                     LoadRecord(rec);
                 }
             }
         }
     }
     vAcctList.ResumeLayout();
     Cursor = Cursors.Default;
 }
Пример #2
0
        private bool TestConnection()
        {
            bool flag = false;

            this.Cursor = Cursors.WaitCursor;
            if (!this.chk_LocalDB.Checked)
            {
                object[] text = new object[] { this.DataSource.Text, this.Catalog.Text, this.chk_Security.Checked, this.UserID.Text, this.Pwd1.Text };
                this.connectionString = string.Format("Data Source={0};Initial Catalog={1};Persist Security Info={2};User ID={3};Password={4}", text);
            }
            else
            {
                this.connectionString = "C3Sentinel";
            }
            VMGlobal.SetTestConnection(this.connectionString);
            try
            {
                using (RPM_Account rPMAccount = new RPM_Account())
                {
                    rPMAccount.AccountCount();
                    flag = true;
                }
            }
            catch (Exception exception)
            {
            }
            this.Cursor = Cursors.Default;
            return(flag);
        }
Пример #3
0
 private void LoadList(Guid deptId, Guid subId)
 {
     Cursor = Cursors.WaitCursor;
     vAcctList.Items.Clear();
     using (RPM_Account rpmAccount = new RPM_Account())
     {
         List <Account> accountList1 = new List <Account>();
         List <Account> accountList2 = !(deptId == Guid.Empty) || !(subId == Guid.Empty) ? rpmAccount.GetAccountList(deptId, subId) : rpmAccount.GetUnassignedList();
         if (accountList2 != null)
         {
             if (accountList2.Count > 0)
             {
                 foreach (Account rec in accountList2)
                 {
                     if (IsShowCurrentAccount)
                     {
                         LoadRecord(rec);
                     }
                     else if (Global.GlobalAccount.Id != rec.Id)
                     {
                         LoadRecord(rec);
                     }
                 }
             }
         }
     }
     Cursor = Cursors.Default;
 }
Пример #4
0
        public static void CheckAccountStorage(Guid AccountID)
        {
            Guid SubstationID = Guid.Empty;

            using (RPM_Account rpmAccount = new RPM_Account())
                SubstationID = rpmAccount.GetAccount(AccountID).SubStation_RecId;
            SetPath(SubstationID);
        }
Пример #5
0
 private void DisplayStats()
 {
     using (RPM_Account rpmAccount = new RPM_Account())
     {
         Account account = rpmAccount.GetAccount(AccountID);
         lblAccount.Text     = string.Format(LangCtrl.GetString("txt_ShareAccoount", "Account: {0} • {1}"), account.ToString(), account.BadgeNumber);
         lblShareStatus.Text = string.Format(LangCtrl.GetString("txt_ShareSelected", "Selected files: {0}"), FileList.Count);
     }
 }
Пример #6
0
        public Slide(SlideRecord sRec)
        {
            this.InitializeComponent();
            this.sRecord = sRec;
            (new ToolTip()).SetToolTip(this.lblRetention, "Retention Days Remaining");
            this.IsVideo = false;
            string[] videoFormats = this.VideoFormats;
            int      num          = 0;

            while (true)
            {
                if (num < (int)videoFormats.Length)
                {
                    string str = videoFormats[num];
                    if (this.sRecord.dRecord.FileExtension.ToUpper().Equals(str))
                    {
                        this.IsVideo = true;
                        break;
                    }
                    else
                    {
                        num++;
                    }
                }
                else
                {
                    break;
                }
            }
            this.SetSlideData();
            if (Global.IsRights(Global.RightsProfile, UserRights.SHARE))
            {
                this.mnu_ShareFile.Visible = true;
            }
            if ((this.VideoFormats.Contains <string>(sRec.dRecord.FileExtension.ToUpper()) || this.ImageFormats.Contains <string>(sRec.dRecord.FileExtension.ToUpper())) && Global.IsRights(Global.RightsProfile, UserRights.REDACT))
            {
                this.mnu_RedactVideo.Visible = true;
            }
            if (sRec != null)
            {
                using (RPM_Account rPMAccount = new RPM_Account())
                {
                    this.aRecord = rPMAccount.GetAccount(sRec.dRecord.AccountId);
                }
                this.sRecord.IsMemo = this.IsMemos();
            }
        }
Пример #7
0
        private void SetData()
        {
            Image image = Utilities.ByteArrayToImage(this.sRecord.dRecord.Thumbnail);

            this.Thumbnail.SizeMode = PictureBoxSizeMode.CenterImage;
            if (image.Height >= 137 || image.Width >= 80)
            {
                this.Thumbnail.SizeMode = PictureBoxSizeMode.StretchImage;
            }
            this.Thumbnail.Image            = image;
            this.RatingCtrl.Value           = (float)this.sRecord.dRecord.Rating;
            this.txtSetID.Text              = this.sRecord.dRecord.SetName;
            this.txtShortDesc.Text          = this.sRecord.dRecord.ShortDesc;
            this.lbl_DB_FileName.Text       = this.sRecord.dRecord.StoredFileName;
            this.lblTimestamp.Text          = string.Format("{0}", this.sRecord.dRecord.FileTimestamp);
            this.lblUploaded.Text           = string.Format("{0}", this.sRecord.dRecord.FileAddedTimestamp);
            this.lblSize.Text               = string.Format("{0} Bytes", this.sRecord.dRecord.FileSize);
            this.lblHashCode.Text           = string.Format("{0}", this.sRecord.dRecord.FileHashCode);
            this.lblGPS.Text                = (string.IsNullOrEmpty(this.sRecord.dRecord.GPS) ? "0.0,0.0" : this.sRecord.dRecord.GPS);
            this.label_0.Text               = (this.sRecord.dRecord.TrackingID == Guid.Empty ? "n/a" : this.sRecord.dRecord.TrackingID.ToString());
            this.lblFileExt.Text            = this.sRecord.dRecord.FileExtension;
            this.lblOriginalName.Text       = this.sRecord.dRecord.OriginalFileName;
            this.chk_PSIsIndefinite.Checked = this.sRecord.dRecord.IsIndefinite;
            this.lblMachineAccount.Text     = this.sRecord.dRecord.MachineAccount;
            this.lblDomain.Text             = this.sRecord.dRecord.UserDomain;
            this.lblMachineName.Text        = this.sRecord.dRecord.MachineName;
            this.label_1.Text               = this.sRecord.dRecord.LoginID;
            this.lblSourcePath.Text         = this.sRecord.dRecord.SourcePath;
            this.txtRMS.Text                = this.sRecord.dRecord.RMSNumber;
            this.txtCAD.Text                = this.sRecord.dRecord.CADNumber;
            this.chk_PSEvidence.Checked     = this.sRecord.dRecord.IsEvidence;
            using (RPM_Account rPMAccount = new RPM_Account())
            {
                Account account = rPMAccount.GetAccount(this.sRecord.dRecord.AccountId);
                this.lblAccountName.Text = string.Format("{0} • {1}", account.ToString(), account.BadgeNumber);
            }
            FormCtrl.SetComboItem(this.cboClass, this.sRecord.dRecord.Classification);
            FormCtrl.SetComboItem(this.cboSecurity, AccountSecurity.GetSecurityDesc(this.sRecord.dRecord.Security));
            bool?isPurged = this.sRecord.dRecord.IsPurged;

            if ((isPurged.GetValueOrDefault() ? false : isPurged.HasValue) && this.sRecord.dRecord.PurgeTimestamp.HasValue)
            {
                this.lblRestoreDate.Text  = this.sRecord.dRecord.PurgeTimestamp.ToString();
                this.RestorePanel.Visible = true;
            }
        }
Пример #8
0
        public static void WriteAccountLog(VMGlobal.LOG_ACTION action, string memo, Guid Id)
        {
            if (Id != Guid.Empty)
            {
                using (RPM_Account rpmAccount = new RPM_Account())
                {
                    Account account = rpmAccount.GetAccount(Id);
                    memo = string.Format("{0} [{1}]\n", account.ToString(), account.BadgeNumber) + memo;
                }
            }
            AccountLog log = new AccountLog();

            log.Action = action.ToString();
            log.Memo   = memo;
            using (RPM_Logs rpmLogs = new RPM_Logs())
                rpmLogs.LogAccount(log);
        }
Пример #9
0
 public void InitTree(string Title)
 {
     vTree.Nodes.Clear();
     ROOT            = new vTreeNode(Title);
     ROOT.ImageIndex = 0;
     ROOT.Tag        = null;
     vTree.Nodes.Add(this.ROOT);
     TreeNode = this.ROOT.Nodes;
     using (RPM_Account rpmAccount = new RPM_Account())
     {
         Account account = rpmAccount.GetAccount(this.AccountID);
         ROOT.Nodes.Add(new vTreeNode(string.Format("{0} [{1}]", account.ToString(), account.BadgeNumber))
         {
             ImageIndex = 1,
             Tag        = account.Id
         });
     }
 }
Пример #10
0
        private void btn_ChangePwd_Click(object sender, EventArgs e)
        {
            Guid id   = Global.GlobalAccount.Id;
            bool flag = false;

            if (!this.txtPwd1.Text.Equals(this.txtPwd2.Text))
            {
                MessageBox.Show(this, LangCtrl.GetString("msg_PwdMatch", "Passwords do not match."), "Password", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                this.txtPwd1.Select();
            }
            else if (!Utility.CheckPassword(this.txtPwd1.Text))
            {
                MessageBox.Show(this, Utility.PwdMsg, "Password", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                this.txtPwd1.Select();
                return;
            }
            if (string.IsNullOrEmpty(this.txtPwd1.Text))
            {
                MessageBox.Show(this, LangCtrl.GetString("txt_PwdEmpty", "Password cannot be empty."), "Password", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                this.txtPwd1.Select();
                return;
            }
            if (!this.txtPwd1.Text.Equals(this.txtPwd2.Text))
            {
                MessageBox.Show(this, LangCtrl.GetString("txt_PwdMatch", "Passwords do not match."), "Password", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                this.txtPwd1.Select();
                return;
            }
            using (RPM_Account rPMAccount = new RPM_Account())
            {
                string str  = CryptoIO.MD5Encrypt(this.txtPwd1.Text);
                string str1 = CryptoIO.MD5Encrypt(this.txtOldPwd.Text);
                flag = rPMAccount.UpdatePassword(id, str1, str);
            }
            if (!flag)
            {
                MessageBox.Show(this, LangCtrl.GetString("txt_PwdNotChanged", "Password NOT changed. Please check old password."), "Password", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                return;
            }
            MessageBox.Show(this, LangCtrl.GetString("txt_PwdChanged", "Password changed."), "Password", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            FormCtrl.ClearForm(this.MainPanel);
        }
Пример #11
0
 private void btn_OK_Click(object sender, EventArgs e)
 {
     if (!this.txtPwd1.Text.Equals(this.txtPwd2.Text))
     {
         MessageBox.Show(this, LangCtrl.GetString("msg_PwdMatch", "Passwords do not match."), "Password", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         this.txtPwd1.Select();
         return;
     }
     if (!Utility.CheckPassword(this.txtPwd1.Text))
     {
         MessageBox.Show(this, Utility.PwdMsg, "Password", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         this.txtPwd1.Select();
         return;
     }
     if (!this.txtPwd1.Text.Equals(this.txtPwd2.Text) || string.IsNullOrEmpty(this.txtPwd1.Text))
     {
         MessageBox.Show(this, "Password Error", "Password", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         vTextBox _vTextBox  = this.txtPwd1;
         vTextBox _vTextBox1 = this.txtPwd2;
         string   empty      = string.Empty;
         string   str        = empty;
         _vTextBox1.Text = empty;
         _vTextBox.Text  = str;
         this.txtPwd1.Select();
     }
     else if (this.AccountID != Guid.Empty)
     {
         string str1 = CryptoIO.MD5Encrypt(this.txtPwd1.Text);
         using (RPM_Account rPMAccount = new RPM_Account())
         {
             Account account = rPMAccount.GetAccount(this.AccountID);
             account.Password   = str1;
             account.IsPwdReset = new bool?(false);
             rPMAccount.InsertUpdate(account);
             rPMAccount.Save();
         }
         base.DialogResult = DialogResult.OK;
         base.Close();
         return;
     }
 }
Пример #12
0
        private void btn_ChangePIN_Click(object sender, EventArgs e)
        {
            Guid id   = Global.GlobalAccount.Id;
            bool flag = false;

            if (!string.IsNullOrEmpty(this.vTextBox_1.Text))
            {
                using (RPM_Account rPMAccount = new RPM_Account())
                {
                    flag = rPMAccount.UpdatePIN(id, this.vTextBox_0.Text, this.vTextBox_1.Text);
                }
                if (flag)
                {
                    MessageBox.Show(this, LangCtrl.GetString("txt_PINChanged", "PIN changed."), "PIN", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                    FormCtrl.ClearForm(this.MainPanel);
                    return;
                }
                MessageBox.Show(this, LangCtrl.GetString("txt_PINnotChanged", "PIN NOT changed."), "PIN", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                this.vTextBox_1.Select();
            }
        }
Пример #13
0
 private void CheckUnassigned()
 {
     using (RPM_Account rpmAccount = new RPM_Account())
     {
         if (rpmAccount.GetUnassignedList().Count <= 0)
         {
             return;
         }
         NodeRecord nodeRecord = new NodeRecord();
         nodeRecord.ImgIdx  = 3;
         nodeRecord.Name    = "Unassigned";
         nodeRecord.RecIdx  = Guid.Empty;
         nodeRecord.SubIdx  = Guid.Empty;
         nodeRecord.RecType = NodeType.UNASSIGNED;
         ROOT.Nodes.Add(new vTreeNode(LangCtrl.GetString("mnode_Unassigned", "Unassigned Accounts"))
         {
             Tag        = nodeRecord,
             ImageIndex = nodeRecord.ImgIdx
         });
     }
 }
Пример #14
0
        private void LoadAccounts()
        {
            List <Account> accounts = new List <Account>();

            using (RPM_Account rPMAccount = new RPM_Account())
            {
                accounts = rPMAccount.GetAlertList();
            }
            if (accounts.Count > 0)
            {
                foreach (Account account in accounts)
                {
                    ListItem listItem = new ListItem()
                    {
                        Text       = string.Format("{0}  •  {1}  •  {2}", account.ToString(), account.Email, account.BadgeNumber),
                        Tag        = account,
                        ImageIndex = 0,
                        IsChecked  = new bool?(false)
                    };
                    this.AccountList.Items.Add(listItem);
                }
            }
        }
Пример #15
0
        public Account GetProfileAccount(string DriveID)
        {
            Account    account    = null;
            Guid       id         = Guid.Empty;
            CamProfile camProfile = this.ReadAssetProfile(DriveID);

            if (camProfile != null)
            {
                using (RPM_Product rpmProduct = new RPM_Product())
                {
                    Inventory inventory = rpmProduct.GetInventory(camProfile.InventoryID);
                    if (inventory != null)
                    {
                        id = inventory.AccountID;
                    }
                }
            }
            if (id != Guid.Empty)
            {
                using (RPM_Account rpmAccount = new RPM_Account())
                    account = rpmAccount.GetAccount(id);
            }
            return(account);
        }
Пример #16
0
 private void AppLogin()
 {
     try
     {
         this.lbl_loginMsg.Text = LangCtrl.GetString("lbl_loginMsg", "Authenticating login...");
         this.lbl_loginMsg.Refresh();
         this.TryCount++;
         if (this.TryCount >= this.MaxTrys)
         {
             Logger.Logging.WriteAccountLog(VMGlobal.LOG_ACTION.LOGON_COUNT, this.vTextBox_0.Text, Guid.Empty);
             Process.GetCurrentProcess().Kill();
             base.DialogResult = DialogResult.Cancel;
             base.Close();
         }
         else
         {
             this.Cursor = Cursors.WaitCursor;
             using (RPM_Account rPMAccount = new RPM_Account())
             {
                 Account account = rPMAccount.Authenticate(vTextBox_0.Text, CryptoIO.MD5Encrypt(this.txtPwd.Text));
                 if (account == null)
                 {
                     Logger.Logging.WriteAccountLog(VMGlobal.LOG_ACTION.LOGON_FAILED, this.vTextBox_0.Text, Guid.Empty);
                 }
                 else
                 {
                     Global.LoginIDName   = (this.vTextBox_0.Text);
                     Global.GlobalAccount = account;
                     Global.RightsProfile = account.ApplicationRights;
                     this.Cursor          = Cursors.Default;
                     base.DialogResult    = DialogResult.OK;
                     if (account.IsPwdReset.Value)
                     {
                         PwdReset pwdReset = new PwdReset()
                         {
                             AccountID = account.Id
                         };
                         if (pwdReset.ShowDialog(this) == DialogResult.Cancel)
                         {
                             Logger.Logging.WriteAccountLog(VMGlobal.LOG_ACTION.PASSWORD, string.Concat("Password reset canceled: ", this.vTextBox_0.Text), account.Id);
                             base.DialogResult = DialogResult.Cancel;
                             base.Close();
                         }
                         Logger.Logging.WriteAccountLog(VMGlobal.LOG_ACTION.PASSWORD, string.Concat("Password reset: ", this.vTextBox_0.Text), account.Id);
                     }
                     base.DialogResult = DialogResult.OK;
                     base.Close();
                 }
             }
             this.Cursor = Cursors.Default;
         }
     }
     catch (Exception exception)
     {
     }
     if (!Global.LockLogin)
     {
         this.vTextBox_0.Text = string.Empty;
     }
     this.lbl_loginMsg.Text = string.Empty;
     this.txtPwd.Text       = string.Empty;
     this.vTextBox_0.Select();
     this.Cursor = Cursors.Default;
 }
Пример #17
0
 private void btn_Search_Click(object sender, EventArgs e)
 {
     try
     {
         int num1 = 0;
         int num2 = 0;
         if (ValidateSearch())
         {
             DataPanel.Controls.Clear();
             DataPanel.SuspendLayout();
             SECURITY        security      = Global.GlobalAccount.Security;
             Guid            guid          = Guid.Empty;
             List <DataFile> dataFileList1 = new List <DataFile>();
             string          str           = string.Empty;
             using (RPM_DataFile rpmDataFile = new RPM_DataFile())
             {
                 List <DataFile> dataFileList2 = rpmDataFile.QryGlobalCatalog(btnByFileDate.Checked, FromDate.Value.Value, ToDate.Value.Value, txtRMS.Text, txtCAD.Text, txtSet.Text, chk_FilterEvidence.Checked);
                 if (dataFileList2.Count > 0)
                 {
                     foreach (DataFile df in dataFileList2)
                     {
                         if (guid != df.AccountId)
                         {
                             guid = df.AccountId;
                             using (RPM_Account rpmAccount = new RPM_Account())
                             {
                                 Account account = rpmAccount.GetAccount(df.AccountId);
                                 str = string.Format("{0} • {1}", account.ToString(), account.BadgeNumber);
                                 string       data         = string.Format("Rank: {0}", account.Rank);
                                 AccountPanel accountPanel = new AccountPanel(str, data, account.Security);
                                 DataPanel.Controls.Add(accountPanel);
                                 DataPanel.Controls.SetChildIndex(accountPanel, 0);
                                 ++num2;
                             }
                         }
                         if (security <= df.Security)
                         {
                             CatalogObject catalogObject = new CatalogObject(num1 + 1, df, str);
                             DataPanel.Controls.Add(catalogObject);
                             DataPanel.Controls.SetChildIndex(catalogObject, 0);
                             ++num1;
                         }
                     }
                 }
                 else
                 {
                     Label label = new Label();
                     label.Dock = DockStyle.Top;
                     label.Font = new Font("Verdana", 16f);
                     label.Text = LangCtrl.GetString("gc_NoResults", "NO RESULTS FOUND");
                     DataPanel.Controls.Add(label);
                 }
             }
             gcFileCount.Text = string.Format(LangCtrl.GetString("gcFileCount", "Files: {0}"), num1);
             gc_Accounts.Text = string.Format(LangCtrl.GetString("gc_Accounts", "Accounts: {0}"), num2);
         }
         object[] objArray = new object[] { FromDate.Value.Value, ToDate.Value.Value, txtRMS.Text, txtCAD.Text, chk_FilterEvidence.Checked, num2, num1 };
         string   str2     = string.Format("{0} to {1} RMS: {2} CAD: {3} Evidence: {4}   RESULT> Accounts: {5} Files: {6}", objArray);
         Global.Log("SEARCH GC", string.Concat("Global Catalog> ", str2));
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
     DataPanel.ResumeLayout();
 }
Пример #18
0
 private void upload1_EVT_UploadComplete()
 {
     this.timer1.Stop();
     this.stopwatch.Stop();
     this.lblFileName.Text  = string.Empty;
     this.lblFileExt.Text   = string.Empty;
     this.lblTimestamp.Text = string.Empty;
     this.lblFileSize.Text  = string.Empty;
     try
     {
         if (!this.IsCancel)
         {
             if (!this.upload1.CancelFlag)
             {
                 MessageBox.Show(this, LangCtrl.GetString("txt_UploadComplete", "Upload Complete."), "UPLOAD", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
             }
             else
             {
                 MessageBox.Show(this, LangCtrl.GetString("txt_UploadStopped", "Upload Stopped."), "UPLOAD", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
             }
         }
     }
     catch
     {
     }
     try
     {
         CameraLog cameraLog = new CameraLog()
         {
             AssetTag     = "",
             LogTimestamp = new DateTime?(this.StartTimestamp),
             FileCount    = this.upload1.FileCount,
             Action       = "CAMERA UPLOAD"
         };
         if (string.IsNullOrEmpty(Global.Camera_SerialNum))
         {
             Global.Camera_SerialNum = Global.VisionSN;
         }
         cameraLog.SerialNumber = Global.Camera_SerialNum.TrimEnd(new char[0]);
         cameraLog.Battery      = Global.Camera_Battery;
         cameraLog.DiskSpace    = (double)Global.Camera_Disk;
         object[] text = new object[] { this.lblTimespan.Text, Environment.NewLine, Environment.NewLine, Environment.NewLine };
         cameraLog.Memo = string.Format("Elapsed Download Time: {0}{1}{2}CAMERA CONFIGURATION -------------------------------------{3}", text);
         CameraLog cameraLog1 = cameraLog;
         cameraLog1.Memo = string.Concat(cameraLog1.Memo, CiteCamera.CameraProfile(this.CameraDriveID));
         CameraLog cameraLog2 = cameraLog;
         cameraLog2.Memo = string.Concat(cameraLog2.Memo, string.Format("{0}CAMERA TRANSACTIONS -------------------------------------{1}", Environment.NewLine, Environment.NewLine));
         CameraLog cameraLog3 = cameraLog;
         cameraLog3.Memo       = string.Concat(cameraLog3.Memo, CiteCamera.DailyLog(this.CameraDriveID));
         cameraLog.AccountID   = Global.GlobalAccount.Id;
         cameraLog.AccountName = Global.GlobalAccount.ToString();
         cameraLog.BadgeNumber = Global.GlobalAccount.BadgeNumber;
         CamProfile camProfile = this.ReadAssetProfile(this.CameraDriveID);
         if (camProfile != null && camProfile.InventoryID != Guid.Empty)
         {
             try
             {
                 cameraLog.AssetTag = camProfile.AssetTag;
                 if (!string.IsNullOrEmpty(camProfile.TrackingID))
                 {
                     Guid empty = Guid.Empty;
                     using (RPM_Asset rPMAsset = new RPM_Asset())
                     {
                         empty = rPMAsset.GetAccountByTrackingID(camProfile.TrackingID);
                     }
                     if (empty != Guid.Empty)
                     {
                         using (RPM_Account rPMAccount = new RPM_Account())
                         {
                             Account account = rPMAccount.GetAccount(empty);
                             cameraLog.AccountID   = account.Id;
                             cameraLog.AccountName = account.ToString();
                             cameraLog.BadgeNumber = account.BadgeNumber;
                         }
                     }
                 }
             }
             catch
             {
             }
         }
         Global.Log(cameraLog);
     }
     catch
     {
     }
     this.upload1.ClearControl();
     base.Close();
 }