Exemple #1
0
        protected void CreateDataGridHistoryStato()
        {
            string language = UIManager.UserManager.GetUserLanguage();

            Fascicolo Project = UIManager.ProjectManager.getProjectInSession();

            if (Project != null && !string.IsNullOrEmpty(Project.systemID))
            {
                System.Data.DataSet ds = DiagrammiManager.getDiagrammaStoricoFasc(Project.systemID);

                if (ds != null && ds.Tables != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
                {
                    this.GridViewStoricoStati.DataSource = ds;
                    this.DatagridStoricoStati.Visible    = true;
                    this.GridViewDocHistoryPnl.Visible   = false;
                    //this.lblDettagliStato.Visible = false;
                    this.lblDettagli.Visible = false;
                    this.GridViewStoricoStati.DataBind();

                    this.GridViewStoricoStati.HeaderRow.Cells[0].Text = Utils.Languages.GetLabelFromCode("HistoryHeaderGrid1", language);
                    this.GridViewStoricoStati.HeaderRow.Cells[1].Text = Utils.Languages.GetLabelFromCode("HistoryHeaderGrid2", language);
                    this.GridViewStoricoStati.HeaderRow.Cells[2].Text = Utils.Languages.GetLabelFromCode("HistoryHeaderGrid0", language);
                    this.GridViewStoricoStati.HeaderRow.Cells[3].Text = Utils.Languages.GetLabelFromCode("HistoryHeaderGrid3", language);
                }
                else
                {
                    //this.lblDettagliStato.Text = Utils.Languages.GetLabelFromCode("HistoryLblDettagliNoMod", language);
                    //this.lblDettagliStato.Visible = true;
                    this.lblDettagli.Text    = Utils.Languages.GetLabelFromCode("HistoryLblDettagliNoMod", language);
                    this.lblDettagli.Visible = true;
                    return;
                }
            }
            else
            {
                //this.lblDettagliStato.Text = Utils.Languages.GetLabelFromCode("HistoryLblDettagliNoMod", language);
                //this.lblDettagliStato.Visible = true;
                this.lblDettagli.Text    = Utils.Languages.GetLabelFromCode("HistoryLblDettagliNoMod", language);
                this.lblDettagli.Visible = true;
                return;
            }
        }