Ejemplo n.º 1
0
        private void BindProject()
        {
            CompanysRepositorySqlDataProvider crsp = new CompanysRepositorySqlDataProvider();
            int cid = crsp.GetCompanyId("Sunnet");
            IList <ProjectDetailDTO> listProject = proApp.GetAllProjects();

            listProject = listProject.Where(c => c.CompanyID != cid).ToList();

            this.ddlProject.DataSource = listProject;
            this.ddlProject.DataBind((ProjectDetailDTO project, string status) => project.Status.ToString() == status);
            this.ddlProject.SelectItem("0");
        }
Ejemplo n.º 2
0
        private void InitDdlBind()
        {
            CompanysRepositorySqlDataProvider crsp = new CompanysRepositorySqlDataProvider();
            int cid = crsp.GetCompanyId("Sunnet");
            IList <ProjectDetailDTO> listProject = proApp.GetAllProjects();

            listProject = listProject.Where(c => c.CompanyID != cid).ToList();

            this.ddlProject.DataSource = listProject;
            this.ddlProject.DataBind((ProjectDetailDTO project, string status) => project.Status.ToString() == status);
            this.ddlProject.SelectItem("0");

            this.tm_ddlProject.DataSource = listProject;
            this.tm_ddlProject.DataBind((ProjectDetailDTO project, string status) => project.Status.ToString() == status);
            this.tm_ddlProject.SelectItem("0");

            List <CompanysEntity> list = companyApp.GetCompaniesHasProject();

            list.BindDropdown(tm_ddlCompany, "CompanyName", "ComID", "All", "0", QS("company"));
        }