protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    this.BuildId = ConvertUtility.Trim(Request.QueryString["id"]);
                    BuildFwService buildService = new BuildFwService();
                    BuildFw        build        = buildService.GetBuild(this.BuildId);
                    this.TitleBar = build.ToNavBar(false);

                    UnitFwService      unitService = new UnitFwService();
                    List <string>      rows        = unitService.ListFloor(this.BuildId);
                    List <string>      cols        = unitService.ListRoom(this.BuildId);
                    IList <UnitFwType> unit_all    = unitService.ListUnit(this.BuildId);

                    this.Rows    = rows;
                    this.Columns = cols;
                    this.model   = new UnitFwType[rows.Count, cols.Count];

                    string floor = string.Empty;
                    string room  = string.Empty;
                    for (int rowIndex = 0; rowIndex < rows.Count; rowIndex++)
                    {
                        for (int colIndex = 0; colIndex < cols.Count; colIndex++)
                        {
                            floor = rows[rowIndex];
                            room  = cols[colIndex];
                            UnitFwType unit_floor = unit_all.ToList().Find(m => m.CX_Axis.Equals(room) && m.CY_Axis.Equals(floor));
                            if (unit_floor != null)
                            {
                                this.model[rowIndex, colIndex] = unit_floor;
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    string buildId = ConvertUtility.Trim(Request.QueryString["id"]);

                    var unitService = new UnitFwService();
                    var rows        = unitService.ListFloor(buildId);
                    var cols        = unitService.ListRoom(buildId);
                    var unitAll     = unitService.ListUnit(buildId);

                    this.Rows    = rows;
                    this.Columns = cols;
                    this.model   = new UnitFwType[rows.Count, cols.Count];

                    for (int rowIndex = 0; rowIndex < rows.Count; rowIndex++)
                    {
                        for (int colIndex = 0; colIndex < cols.Count; colIndex++)
                        {
                            string floor     = rows[rowIndex];
                            string room      = cols[colIndex];
                            var    unitFloor = unitAll.ToList().Find(m => m.CX_Axis.Equals(room) && m.CY_Axis.Equals(floor));
                            if (unitFloor != null)
                            {
                                this.model[rowIndex, colIndex] = unitFloor;
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }