Beispiel #1
0
    protected void btnAssign_Click(object sender, EventArgs e)
    {
        try
        {
            DataTable table = new DataTable();
            table.Columns.Add("PID");
            for (int i = 1; i < chkLstSelectRank.Items.Count; i++)
            {
                if (chkLstSelectRank.Items[i].Selected)
                {
                    table.Rows.Add(chkLstSelectRank.Items[i].Value);
                }
            }

            DataTable table1 = new DataTable();
            table1.Columns.Add("PID");
            for (int i = 1; i < chkVerifiersRank.Items.Count; i++)
            {
                if (chkVerifiersRank.Items[i].Selected)
                {
                    table1.Rows.Add(chkVerifiersRank.Items[i].Value);
                }
            }
            string Configuration_Type = "";
            if (rdbEval.Checked)
            {
                Configuration_Type = "EVAL";
            }
            else if (rdbRest.Checked)
            {
                Configuration_Type = "REST";
            }
            else if (rdbHandover.Checked)
            {
                Configuration_Type = "HAND";
            }
            BLL_Crew_Evaluation.Update_EvaluationRanks(UDFLib.ConvertToInteger(lstParentRanks.SelectedValue), table, table1, Configuration_Type, UDFLib.ConvertToInteger(Session["USERID"]));
            lstParentRanks_SelectedIndexChanged(null, null);
            string js = "alertmsg(1);";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "alertmsg1", js, true);
        }
        catch (Exception ex)
        {
            UDFLib.WriteExceptionLog(ex);
        }
    }