Ejemplo n.º 1
0
    protected void OnFunctionEditClicked(object sender, EventArgs e)
    {
        divKnowledgeFunctionEdit.Visible = true;
        btnFunctionEdit.Enabled = false;
        btnKnowledgeEdit.Enabled = false;
        lblKnowFuncDestination.Text = ResourceManager.GetString("lblCanFunctionGrid");
        lblFieldSetKnowFunc.Text = ResourceManager.GetString("lblFieldSetKnowFunc_Function");

        gridKnowFuncDestination.MasterTableView.DataKeyNames = new string[] { "FunctionID" };
        gridKnowFuncDestination.MasterTableView.DataMember = "CandidateFunction";
        gridKnowFuncDestination.MasterTableView.Columns[2].HeaderText = ResourceManager.GetString("lblCanFunctionGrid");

        SessionManager.CanFunctionDesList = CopyCanFunctionList(SessionManager.CanFunctionOldList);
        gridKnowFuncDestination.DataSource = SessionManager.CanFunctionDesList;
        gridKnowFuncDestination.DataBind();

        ParamFunctionFamRepository repo = new ParamFunctionFamRepository();
        ddlKnowFuncUnit.DataSource = repo.GetFunctionFamGenreList();
        ddlKnowFuncUnit.DataBind();
        OnKnowFuncUnitItemChanged(ddlKnowFuncUnit, null);
    }
Ejemplo n.º 2
0
    protected void OnBtnExpectEditClicked(object sender, EventArgs e)
    {
        divAddRemoveExpectancy.Visible = true;
        btnCanExpectEdit.Enabled = false;

        SessionManager.CanExpectDesList = CopyCanExpectList(SessionManager.CanExpectOldList);
        gridCanExpectDestination.DataSource = SessionManager.CanExpectDesList;
        gridCanExpectDestination.DataBind();

        ParamFunctionFamRepository repo = new ParamFunctionFamRepository();
        ddlCanExpectUnit.DataSource = repo.GetFunctionFamGenreList();
        ddlCanExpectUnit.DataBind();
        OnExpectUnitItemChanged(ddlCanExpectUnit, null);
    }