<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # 組織機構操作 組織機構模型中已封裝了組織機構常用的方法,首先需要引入模型 ``` use app\common\model\Organization; ``` 模型中定義了以下常量: ``` const ROOT_NODE ='Root';//組織機構根節點 const ORG_LEVEL_ORGIN =0; //組織機構 const ORG_LEVEL_COMPANY =1; //單位或二級單位 const ORG_LEVEL_DEPT =2; //部門/科室 const ORG_LEVEL_POST =3; //崗位 ``` 實例化模型后,可以調用模型以下實例方法: - 獲取指定的組織機構幾點的所有的后續節點(子節點和子節點的所有的后代節點) ``` array getAllChilds($orgId,$oneself=false) ``` 參數: string $orgId:指定的組織機構節點的編號,要獲取所有可傳入Root boolean $oneself:是否包含當前節點自己,默認不包含(false) 返回值:獲取到空數據時返回false,有數據時返回二位數組,數組元素為已轉換為小寫的數據庫字段名 - - - - - - - 獲取指定節點的所有后代節點的組織機構編號 ``` array getAllChildsId($orgId,$oneself=false) ``` 參數: string $orgId:指定的組織機構節點編號 boolean $oneself:是否包含節點自身,默認不包含 返回值:無數據時返回false,有數據時返回一維數組 - - - - - - - 獲取指定的組織機構節點的所有的祖輩節點 ``` array getAllParents($orgId,$oneself=false) ``` 參數: string $orgId:指定的組織機構節點 boolean $oneself:是否包含節點自身 返回值:無數據時返回false,有數據時返回一維數組 - - - - - - - 獲取指定的組織機構節點的所有的子節點(不包含后代節點) ``` array getChilds($orgId) ``` 參數: string $orgId:指定的組織機構節點編號 返回值:無數據時返回false,有數據時返回一位數組 - - - - - - - 獲取指定的組織機構節點的子節點的編號(不包含后代節點) ``` array getChildsId($orgId) ``` 參數: string $orgId:指定的組織機構節點的編號 返回值:false/array - - - - - - - 統計指定的組織機構節點下的子節點的個數 ``` intger getChildsCount($orgId) ``` 參數: string $orgId:指定的組織機構節點的編號 返回值:子節點的個數,無子節點時返回0 - - - - - - \*獲取指定的組織機構節點的層級路徑信息 ``` array getOrgPath($orgId) ``` 參數: string $orgId:組織機構節點的編號 返回值:array - - - - - - 獲取指定組織機構節點的父節點的信息 ``` array/false getParents($orgId) ``` 參數: string $orgId:組織機構節點編號 返回值:array/false - - - - - - 獲取指定的節點開始的符合jstree結構的json數據 ``` string getAllList($select_root_node) ``` 參數: string $select\_root\_node:已選擇的組織機構節點的編號 返回值:string - - - - - - 按組織機構節點的編號獲取組織機構信息 ``` array/false getByOrgId($orgId) ``` 參數: string $orgId:組織機構編號 返回值:array/false - - - - - - 判斷指定的節點是否有子節點 ``` boolean hasChild($orgId) ``` 參數: string $orgId:組織機構編號 返回值:true/false
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看