コード例 #1
0
        public Acknowledgment GetResultAcknowledgment(string resultUuid)
        {
            _Trace.TraceEvent(TraceEventType.Verbose, -1, "GetResultAcknowledgment");

            Guid guid = new Guid(resultUuid);
            CriticalResultsEntityManager manager = new CriticalResultsEntityManager();
            AcknowledgmentEntity e = manager.GetResultAcknowledgment(guid);
            if (e == null)
                return new Acknowledgment();
            Acknowledgment ack = new Acknowledgment(e);
            ack.ResolveUser();
            ack.ResolveResult();
            return ack;
        }
コード例 #2
0
        public Acknowledgment CreateResultAcknowledgment(string resultUuid, string userName, string notes)
        {
            _Trace.TraceEvent(TraceEventType.Verbose, -1, "CreateResultAcknowledgment");

            AcknowledgmentEntity e = new CriticalResultsEntityManager().CreateAcknowledgment(new Guid(resultUuid), userName, notes);
            Acknowledgment ack = new Acknowledgment(e);
            ack.ResolveResult();
            ack.ResolveUser();

            AuditEvent("AcknowledgeResult:Success", string.Format("{0}; {1}", resultUuid, userName));

            return ack;
        }
コード例 #3
0
 void ackButton_Click(object sender, EventArgs e)
 {
     if (AckNotes.Text != "")
     {
         string notes = AckNotes.Text;
         string user = _LoggedInUser.FirstName + " " + _LoggedInUser.LastName;
         string time = DateTime.Now.ToString("MM-DD-YYYY hh:mm zz");
         AckNotes.Text = String.Format("User: {0}\n\rTime: {1}\n\rNotes: {2}", user, time, notes);
         _Acknowledgement = _Service.CreateResultAcknowledgment(_Result.Uuid.ToString(), _LoggedInUser.UserName, AckNotes.Text);
         ackDiv.Visible = false;
         mask.Visible = false;
         Response.Redirect("~/ResultList.aspx");
     }
 }
コード例 #4
0
        public bool ResolveAcknowledgment()
        {
            if (_Entity == null)
                return false;
            if (_Entity.Acknowledgments == null)
                return false;

            _Acknowledgments = new List<Acknowledgment>();
            foreach (AcknowledgmentEntity e in _Entity.Acknowledgments)
            {
                Acknowledgment a = new Acknowledgment(e);
                _Acknowledgments.Add(a);
            }
            return true;
        }
コード例 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string userAgent = Request.ServerVariables.GetValues("HTTP_USER_AGENT")[0].ToString();
            string[] userAgentSections = userAgent.Split(new char[] { '/' });
            if (userAgentSections[0].ToLowerInvariant().Contains("blackberry"))
            {
                int bbMajVer = Int32.Parse(userAgentSections[1].ToCharArray()[0].ToString());
                if (bbMajVer < 5)
                {
                    //notMyPatient.Enabled = false;
                }
            }

            try
            {
                _Token = new Guid((string)Session["Token"]);
                _LoggedInUser = (User)Session["User"];
            }
            catch (ArgumentNullException)
            {
                Response.Redirect("~/Default.aspx");
            }
            _ResultUuid = new Guid(Request.QueryString["ResultUuid"]);
            string ip = Utilities.GetIP4Address();
            HTTPCheckRoles roles;
            if (CheckTokenUtil.CheckToken(_LoggedInUser.UserName, _Token.ToString(), ip, Request.HttpMethod, true, out roles))
            {
                _SystemSettings = _Service.GetSettings("System");
                _Result = _Service.GetResult(_ResultUuid.ToString());
                _Acknowledgement = _Service.GetResultAcknowledgment(_ResultUuid.ToString());
                BuildDetail();
            }
            else
            {
                Response.Write("You are not logged into ANCR.  Please login to view this page.");
            }
        }