Ejemplo n.º 1
0
        private void LoadProjectData()
        {
            ArrayList allProjects = new PLProject().GetAllProjects(ClientData.LogonUser.Oid);

            this.lv_projects.Items.Clear();
            foreach (DEProject project2 in allProjects)
            {
                ListViewItem item = new ListViewItem {
                    Text     = project2.Name,
                    SubItems = { PrincipalRepository.GetPrincipalName(project2.Project_manager) },
                    Tag      = project2
                };
                this.lv_projects.Items.Add(item);
            }
        }
Ejemplo n.º 2
0
        public void SetInput(Guid g_oid)
        {
            DEProject projectByMasterOid = PLProject.Agent.GetProjectByMasterOid(ClientData.LogonUser.Oid, g_oid);

            if (projectByMasterOid == null)
            {
                PLProject project2 = new PLProject();
                foreach (DEProject project3 in project2.GetAllProjects(ClientData.LogonUser.Oid))
                {
                    if (project3.Moid == g_oid)
                    {
                        projectByMasterOid = project3;
                        break;
                    }
                }
            }
            this.curInput = projectByMasterOid;
            this.SetEditText(projectByMasterOid);
        }