wxr
2020-06-15 b8e94316e41eba72d927d5ca7d931b26139ee8ff
HDL_ON/UI/UI0-Public/TopViewDivBLL.cs
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using HDL_ON.Entity;
namespace HDL_ON.UI
@@ -54,12 +55,18 @@
                    for (int i = 0; i < DB_ResidenceData.residenceData.floors.Count + 1; )
                    {
                        newFloorName = ++i + " F";
                        if (!DB_ResidenceData.residenceData.floors.Contains(newFloorName))
                        if (null != DB_ResidenceData.residenceData.floors.Find((obj)=>obj.name ==  newFloorName))
                        {
                            break;
                        }
                    }
                    new PublicAssmebly().LoadDialog_EditParater(StringId.AddFloors,newFloorName , callBackAction,StringId.FloorNameCannotBeEmpty,StringId.AddFloorFailed_FloorAlreadyExist,DB_ResidenceData.residenceData.floors);
                    var fs = new List<string>();
                    foreach(var f in DB_ResidenceData.residenceData.floors)
                    {
                        fs.Add(f.name);
                    }
                    new PublicAssmebly().LoadDialog_EditParater(StringId.AddFloors,newFloorName , callBackAction,StringId.FloorNameCannotBeEmpty,
                        StringId.AddFloorFailed_FloorAlreadyExist,fs);
                    break;
                case "rooms":
                    callBack("", "");