Example #1
0
        /// <summary>
        /// Transfer to the SAE details
        /// </summary>
        /// <param name="toxicityId"></param>
        private void TransferToSAEDetails(int?toxicityId)
        {
            // get params
            var urlParams = PageUtil.GetUrlPairs(Request.Url.Query);

            if (urlParams.ContainsKey("toxicityId"))
            {
                urlParams["toxicityId"] = toxicityId + "";
            }
            else
            {
                urlParams.Add("toxicityId", toxicityId + "");
            }
            if (urlParams.ContainsKey("patientItemId"))
            {
                urlParams["patientItemId"] = PatientItemId.Value + "";
            }
            else
            {
                urlParams.Add("patientItemId", PatientItemId.Value + "");
            }
            string saeURL = string.Format("PatientToxicitiesSAE.aspx?{0}", PageUtil.CreateUrlPairs(urlParams));

            // go to SAE details
            Response.Redirect(saeURL, true);
        }
        protected void UpdateAdminFilters(object sender, EventArgs e)
        {
            Dictionary <string, string> urlParams = new Dictionary <string, string>
            {
                { "patientItemId", patientItemId.Value },
                { "dateStart", dateStart.Value },
                { "dateEnd", dateEnd.Value },
                { "restrict", restrict.Checked.ToString().ToLower() }
            };
            string url = "PatientEditScheduleItem.aspx?" + PageUtil.CreateUrlPairs(urlParams);

            Response.Redirect(url, true);
        }
Example #3
0
        protected override void SetRptIdentifiers(object sender, RepeaterItemEventArgs e)
        {
            base.SetRptIdentifiers(sender, e);

            if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                Literal encPID      = e.Item.FindControl("encPID") as Literal;
                string  patientId   = DataBinder.Eval(e.Item.DataItem, BOL.EForm.PatientId).ToString();
                string  eformId     = DataBinder.Eval(e.Item.DataItem, BOL.EForm.EFormId).ToString();
                string  eformName   = DataBinder.Eval(e.Item.DataItem, BOL.EForm.EFormName).ToString();
                string  eformStatus = DataBinder.Eval(e.Item.DataItem, BOL.EForm.CurrentStatus).ToString();

                var kvp = new Dictionary <string, string>()
                {
                    { "epid", Security.CustomCryptoHelper.Encrypt(patientId) },
                    { "eformId", eformId },
                    { "status", eformStatus }
                };
                string eformPath = Page.ResolveUrl("~/Core/Eforms/Index.aspx?") + PageUtil.CreateUrlPairs(kvp);
                encPID.Text = eformPath;


                Image   StatusImg   = (Image)e.Item.FindControl("StatusImg") as Image;
                Literal EFormStatus = (Literal)e.Item.FindControl("EFormStatus");
                switch (eformStatus)
                {
                case EformStatusManager.Status_DataEntryInProgress:
                    StatusImg.ImageUrl = "~/Images/EFormStatus_InProgress.gif";
                    break;

                case EformStatusManager.Status_DataEntryComplete:
                    StatusImg.ImageUrl = "~/Images/EFormStatus_DataComplete.gif";
                    break;

                case EformStatusManager.Status_Narrated:
                    StatusImg.ImageUrl = "~/Images/EFormStatus_DataReviewed.gif";
                    break;

                case EformStatusManager.Status_Approved:
                    StatusImg.ImageUrl = "~/Images/EFormStatus_Approved.gif";
                    break;

                default:
                    EFormStatus.Text  = eformStatus;
                    StatusImg.Visible = false;
                    break;
                }
            }
        }