                      rows[i]._parentId = rows[i].parentId;
                            }
                        } else {
                            if (rows[i].parentId !== 0) {
                                rows[i]._parentId = rows[i].parentId;
                            }
                        }

                        if (rows[i].type === 1) {
                            rows[i].state = "open";
                        } else {
                            rows[i].state = "closed";
               