예제 #1
0
        // TODO:
        // 1) should use all CaisisInputControls and BizO's to get/set data
        // 2) set lookup code values properly
        // 3) see if any data from SpecimenAccession table should be shown on this form

        override protected void Page_Load(object sender, System.EventArgs e)
        {
            specimenId   = Convert.ToInt32(Request.QueryString["specimenId"]);
            specId.Value = specimenId.ToString();

            CurrentSpecimen = new Specimen();
            CurrentSpecimen.Get(this.specimenId);

            if (!Page.IsPostBack)
            {
                //populating Contacts field
                DataTable contactsdt = da.GetContactsForSpecimens();
                Contact.DataSource = contactsdt;
                Contact.DataBind();

                LoadSpecimenInfo();
            }
        }
예제 #2
0
        protected override void Page_Load(object sender, System.EventArgs e)
        {
            // get ID type from web config
            _identifierType     = CaisisConfiguration.GetWebConfigValue("SpecimenModuleDefaultId");
            IdentifierType.Text = _identifierType;

            // Set Helper variables
            isPostBack  = Page.IsPostBack;
            setCriteria = !string.IsNullOrEmpty(getQS("setCriteria")); // No Value or Non-existant makes this false
            if (!isPostBack)
            {
                //populating Contacts field
                DataTable contactsdt = da.GetContactsForSpecimens();
                ddlContact.DataSource = contactsdt;
                ddlContact.DataBind();

                LoadPriorQueryParams();
            }
            // attach onClick events for Specimen SubType CheckBoxLists
            BloodSamplesCheckBoxList.Attributes["onClick"]  = "checkType('cbBlood');";
            TissueSamplesCheckBoxList.Attributes["onClick"] = "checkType('cbTissue');";
        }