Example #1
0
        public DuAnOutput TimDuAnTheoTen(string name)
        {
            if (name == null || name.Trim() == "")
            {
                return(null);
            }
            C01_DesignProject item = db.C01_DesignProject.FirstOrDefault(s => s.ProjectName == name);

            if (item == null)
            {
                return(null);
            }
            DuAnOutput project = new DuAnOutput()
            {
                MaDuAn       = item.ProjectID,
                TenDuAn      = item.ProjectName,
                BIMmember    = item.BIM_staff,
                BIMMEP       = item.BIM_MEP_staff,
                ProjectState = item.ProjectState,
                ARCmodel     = item.Modeling_ARC_main,
                STRmodel     = item.Modeling_STR,
                MEPmodel     = item.Modeling_MEP
            };

            return(project);
        }
Example #2
0
        public DuAnOutput TimDuAnTheoId(string id)
        {
            if (id == null || id.Trim() == "")
            {
                return(null);
            }
            C01_DesignProject item = db.C01_DesignProject.Find(id);

            if (item == null)
            {
                return(null);
            }
            DuAnOutput project = new DuAnOutput()
            {
                MaDuAn       = item.ProjectID,
                TenDuAn      = item.ProjectName,
                BIMmember    = item.BIM_staff,
                BIMMEP       = item.BIM_MEP_staff,
                ProjectState = item.ProjectState,
                ARCmodel     = item.Modeling_ARC_main,
                STRmodel     = item.Modeling_STR,
                MEPmodel     = item.Modeling_MEP
            };

            return(project);
        }