예제 #1
0
    protected void QAC_A5(object sender, EventArgs e)
    {
        LBMSG.Visible = false;
        var cnt = 0;

        for (var i = 0; i < 9; i++)
        {
            var r = TableA4.FindControl("CheckBoxA5_" + (i + 1).ToString()) as CheckBox;
            saveData(501 + i, r.Checked ? "1" : "");
            if (r.Checked)
            {
                cnt++;
            }


            (Panel55.FindControl("ButtonA4_3_" + (i + 1)) as Button).Visible = r.Checked;
        }
        Button6.Visible = CheckBoxListA3.Items[10].Selected;

        if (cnt == 0)
        {
            LBMSG.Text    = "Выберите хотя бы один ответ";
            LBMSG.Visible = true;
            return;
        }

        Button18.CommandName = cnt > 1 ? "Panel55" : "Panel4";

        standartNext(sender, e);
    }
예제 #2
0
    protected void QAC_A4(object sender, EventArgs e)
    {
        saveData(401, RadioButtonListA4_1.SelectedValue);
        saveData(402, RadioButtonListA4_2.SelectedValue);
        saveData(403, RadioButtonListA4_3.SelectedValue);
        saveData(404, RadioButtonListA4_4.SelectedValue);
        saveData(405, RadioButtonListA4_5.SelectedValue);
        saveData(406, RadioButtonListA4_6.SelectedValue);
        saveData(407, RadioButtonListA4_7.SelectedValue);
        saveData(408, RadioButtonListA4_8.SelectedValue);
        saveData(409, RadioButtonListA4_9.SelectedValue);
        var cnt = 0;

        for (var i = 0; i < 9; i++)
        {
            var r = TableA4.FindControl("RadioButtonListA4_" + (i + 1).ToString()) as RadioButtonList;
            TableA5.Rows[i].Visible = r.SelectedValue == "1" || r.SelectedValue == "999";
            if (r.SelectedValue == "1" || r.SelectedValue == "999")
            {
                cnt++;
            }
        }
        if (cnt == 1)
        {
            for (var i = 0; i < 9; i++)
            {
                var r = TableA4.FindControl("RadioButtonListA4_" + (i + 1).ToString()) as RadioButtonList;
                if (r.SelectedValue == "1" || r.SelectedValue == "999")
                {
                    saveData(501 + i, "1");
                }
            }
        }

        Button15.CommandName = "Panel26";
        if (cnt == 0)
        {
            Button15.CommandName = "Panel3";
        }
        if (cnt == 1)
        {
            Button15.CommandName = "Panel4";
        }


        standartNext(sender, e);
    }