Example #1
0
        protected void GetContainers()
        {
            string myStorageId = Request.Form["StoragesId"];
            int    containerId = int.Parse(myStorageId);

            //SpecimenContainer biz = new SpecimenContainer();
            //biz.GetByParent(containerId);
            //DropDownResults.DataSource = biz.DataSourceView;
            DropDownResults.DataSource     = BusinessObject.GetByParentAsDataView <SpecimenContainer>(containerId);
            DropDownResults.DataValueField = SpecimenContainer.ContainerId;
            DropDownResults.DataTextField  = SpecimenContainer.ContainerName;
            DropDownResults.DataBind();
        }
Example #2
0
        protected void GetBoxes()
        {
            string myContainerId = Request.Form["ContainersId"];
            int    boxId         = int.Parse(myContainerId);

            //SpecimenBox biz = new SpecimenBox();
            //biz.GetByParent(boxId);
            //DropDownResults.DataSource = biz.DataSourceView;
            DropDownResults.DataSource     = BusinessObject.GetByParentAsDataView <SpecimenBox>(boxId);
            DropDownResults.DataValueField = SpecimenBox.BoxId;
            DropDownResults.DataTextField  = SpecimenBox.BoxName;
            DropDownResults.DataBind();
        }
Example #3
0
        protected void GetStorages()
        {
            string mySiteId = Request.Form["SitesId"];
            int    siteId   = int.Parse(mySiteId);

            //SpecimenStorage biz = new SpecimenStorage();
            //biz.GetByParent(siteId);
            //DropDownResults.DataSource = biz.DataSourceView;
            DropDownResults.DataSource     = BusinessObject.GetByParentAsDataView <SpecimenStorage>(siteId);
            DropDownResults.DataValueField = SpecimenStorage.StorageId;
            DropDownResults.DataTextField  = SpecimenStorage.StorageName;
            DropDownResults.DataBind();
        }