Пример #1
0
        private void BindSimulationFiles(int pullRequestId)
        {
            List <vSimFile> simFileList = ApsimFilesDS.GetSimFilesByPullRequestID(pullRequestId);

            gvSimFiles.DataSource = simFileList;
            gvSimFiles.DataBind();

            //Can we
            //BindPredictedObservedVariables()
        }
Пример #2
0
        private void BindSimFilesGrid(int pullRequestId)
        {
            lblMissing.Text       = string.Empty;
            hfPullRequestId.Value = pullRequestId.ToString();

            lblPullRequestId.Text = "Simulation Files for Pull Request Id: " + pullRequestId.ToString();

            //btnDifferences.Visible = true;
            //btnDifferences.Text = "Pull Request " + pullRequestId.ToString() + " Tests - Differences " ;

            btnTestsCharts.Visible = true;
            btnTestsCharts.Text    = "Pull Request " + pullRequestId.ToString() + " Tests - Graphical Results";
            btnTestsGrids.Visible  = true;
            btnTestsGrids.Text     = "Pull Request " + pullRequestId.ToString() + " Tests - Tabulated Results";

            SimFilesList = ApsimFilesDS.GetSimFilesByPullRequestID(pullRequestId);
            SimFilesDT   = Genfuncs.ToDataTable(SimFilesList);

            Session["SimFilesDT"] = SimFilesDT;
            gvSimFiles.DataSource = SimFilesDT;
            gvSimFiles.DataBind();

            //ClientScript.RegisterStartupScript(this.GetType(), "CreateGridHeader", "<script>CreateGridHeader('GridDataDiv_SimFiles', 'ContentPlaceHolder1_gvSimFiles', 'GridHeaderDiv_SimFiles');</script>");
        }