示例#1
0
        public List <LogEntryVO> Find(DateRange range, OperationVO operation, UserVO user)
        {
            List <LogEntryVO> result = ((ILogEntryDAO)dataAccessObject).Find(range, operation, user);

            dataAccessObject.CloseConnection();

            return(result);
        }
 private void SearchB_Click(object sender, EventArgs e)
 {
     Log(OperationsManager.SEARCH_LOG);
     currentOperation            = GenerateOperation();
     currentRange                = GenerateDateRange();
     currentUser                 = GenerateUser();
     toolStripProgressBar1.Style = ProgressBarStyle.Marquee;
     SetEnabled(false);
     SetStatus("جاري البحث");
     searcherBGW.RunWorkerAsync();
 }
示例#3
0
        public void Write(string operationS, string description)
        {
            UserVO      user      = ConfigurationManager.currUser;
            OperationVO operation = manager.GetOperationByName(operationS);

            if (operation == null)
            {
                return;
            }

            LogEntryVO entry = new LogEntryVO()
            {
                DateTime    = DateTime.Now,
                Operation   = operation,
                User        = user,
                Description = description,
                Id          = -1
            };

            Insert(entry);
        }