Esempio n. 1
0
        private void PopulateSubjectMatter()
        {
            SubjectMatter sm = new SubjectMatter();

            sm.CurrentUser = LoginName;
            DataSet ds;

            ds = sm.GetAllActiveRecords();
            if (ds.Tables[0].Rows.Count > 0)
            {
                dgSubjectMatter.DataSource = ds.Tables[0];
                dgSubjectMatter.DataBind();
            }
        }
Esempio n. 2
0
        private void PopulateDropDowns()
        {
            DataTable tbl;

            try
            {
                //SBU sbu = new SBU();
                //tbl = sbu.GetAllActiveRecords().Tables[0];
                //tbl.Rows.InsertAt(tbl.NewRow(), 0);
                //dvSBU = tbl.DefaultView;

                BusinessUnit bu = new BusinessUnit();
                bu.CurrentUser = LoginName;
                tbl            = bu.GetAllRecords().Tables[0];
                dvBU           = tbl.DefaultView;

                Project prj = new Project();
                prj.CurrentUser = LoginName;
                tbl             = prj.GetAllActiveRecords().Tables[0];
                dvProject       = tbl.DefaultView;


                //Populate list box
                SubjectMatter sm = new SubjectMatter();
                sm.CurrentUser = LoginName;
                tbl            = sm.GetAllActiveRecords().Tables[0];
                dvProcess      = tbl.DefaultView;

                Discipline disc = new Discipline();
                disc.CurrentUser = LoginName;
                tbl          = disc.GetAllActiveRecords().Tables[0];
                dvDiscipline = tbl.DefaultView;

                Category cat = new Category();
                cat.CurrentUser = LoginName;
                tbl             = cat.GetAllActiveRecords().Tables[0];
                dvCategory      = tbl.DefaultView;

                Stages stage = new Stages();
                stage.CurrentUser = LoginName;
                tbl      = stage.GetAllActiveRecords().Tables[0];
                dvStages = tbl.DefaultView;
            }
            catch (System.Exception ex)
            {
                throw new Backend.LLException("Failed to load list boxes and drop down lists.", ex);
            }
        }