protected override void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GetTreatmentArms(); DataView armList = BusinessObject.GetByParentAsDataView <ProtocolVersion>(int.Parse(BaseProtocolId)); ArmsListRptr.DataSource = armList; ArmsListRptr.DataBind(); // copy schema radio only enabled when existing schemas exist CopySchemaRB.Enabled = armList.Count > 0; } }
/// <summary> /// Build list of treatment arms. /// </summary> protected void PopulateTreatmentArms() { DataView TreatmentArmsView = GetTreatmentArms(); TreatmentArmsView.Sort = ProtocolSchema.ProtocolSchemaId + " ASC"; if (TreatmentArmsView.Count > 0) { noTreatmentArmsMsg.Visible = false; } else { noTreatmentArmsMsg.Visible = true; } ArmsListRptr.DataSource = TreatmentArmsView; ArmsListRptr.DataBind(); }
/// <summary> /// Build a list of verions /// </summary> private void BuildProtocolVersions() { ArmsListRptr.DataSource = allVersions; ArmsListRptr.DataBind(); }