예제 #1
0
    protected void duplicarModelo_Click(object sender, EventArgs e)
    {
        // adicionar novo modelo
        Session.Add("mode", "DUPLICATE");
        ModeloCompetencias novoModelo = new ModeloCompetencias();
        novoModelo = currModelo.copy();
        novoModelo.duplicateModeloFamilias(currModelo);

        selectedObject = novoModelo;
        Session["selectedObject"] = selectedObject;
        Session["currModelo"] = novoModelo;

        View selView;

        selView = ModeloView;
        if (selView != null)
        {
            MView.SetActiveView(selView);
        }
        else
        {
            MView.Visible = false;
            commonDataFieldsTable.Visible = false;
        }
        updateCommonFields();
        updateSpecialFields();
    }