Exemple #1
0
        public void Check2()
        {
            RoofTopModuleSelectRepository moduleSelectRepository = new RoofTopModuleSelectRepository();
            var moduleList = moduleSelectRepository.FindAll();

            for (int i = 0; i < foundationHeight.Count(); i++)
            {
                var list = moduleList.FindAll(x => x.minimumHeight == foundationHeight[i].ToString());
                WriteLog(list);
            }
        }
Exemple #2
0
        /// <summary>
        ///
        /// </summary>
        public void Check()
        {
            using (StreamWriter streamWriter = new StreamWriter("C:\\work\\RoofTopModuleType.txt", false, encode))
            {
                RoofTopModuleSelectRepository moduleSelectRepository = new RoofTopModuleSelectRepository();
                for (int i = 0; i < foundationHeight.Count(); i++)
                {
                    streamWriter.WriteLine(foundationHeight[i].ToString());
                    for (int j = 0; j < windLevels.Count(); j++)
                    {
                        streamWriter.WriteLine("\t" + windLevels[j].windLevelId);
                        for (int k = 0; k < snowLevels.Count(); k++)
                        {
                            streamWriter.WriteLine("\t" + "\t" + snowLevels[k].id);

                            for (int l = 0; l < moduleAngles.Count(); l++)
                            {
                                streamWriter.Write("\t" + "\t" + "\t" + moduleAngles[l].id);
                                for (int m = 0; m < moduleCount.Count(); m++)
                                {
                                    string recordExitsts =
                                        moduleSelectRepository.FindByCondition(foundationHeight[i], snowLevels[k].id, windLevels[j].windLevelId, moduleCount[m], moduleAngles[l].id) ? "○" : "×";
                                    if (m == 0)
                                    {
                                        streamWriter.Write("\t" + moduleCount[m] + "\t" + recordExitsts);
                                    }
                                    else
                                    {
                                        streamWriter.Write("\t" + "\t" + "\t" + "\t" + moduleCount[m] + "\t" + recordExitsts);
                                    }
                                    streamWriter.WriteLine();
                                }
                            }
                        }
                    }
                }
            }
        }