1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- /*
- 호스피스 코드 조회
- - Version :
- 1) : Ver.1.00.01
- 2) : 2008.05. 26
- 3) : 김진명
- */
- var zbcResultRef = "/root/temp/code/resultref";
- var gvZBCCodeCachePath="/root/hidden/zbccode"
- var removeNodePath = "/root/init/";
- function makeZbcResultRef(){ model.makeNode(zbcResultRef); }
- function removeZbcResultRef(){ model.removeNode(zbcResultRef); }
- // 공통코드 조회(Cache 방식)
- function fGetCodeList(cd_grup_id_list, rslt_ref_list) {
- fGetCodeListSubmit(cd_grup_id_list, rslt_ref_list);
- }
- function fGetCodeListSubmit(cd_grup_id_list, rslt_ref_list){
- makeZbcResultRef();
- for (key in cd_grup_id_list){
- addParameter("cdgrupid", cd_grup_id_list[key]);
- }
- var success = submit("TRMNH00001", "false", getParameterPath(), zbcResultRef);
- for(key in cd_grup_id_list){
- var target_path = rslt_ref_list[key];
- if(target_path==null){
- target_path = rslt_ref_list[key-1];
- }
- var source_path = zbcResultRef+"/"+cd_grup_id_list[key]+"/"+cd_grup_id_list[key];
- var sourceNode = instance1.selectNodes(zbcResultRef+"/"+cd_grup_id_list[key]+"/"+cd_grup_id_list[key]);
- for(i=0; i<sourceNode.length; i++){
- model.duplicate(target_path, sourceNode.item(i));
- }
- }
- removeZbcResultRef();
- clearParameter("cdgrupid");
- }
- /* --------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 그리드 콤보 아이템 제거(공백) */
- /* param : */
- /* return : */
- /* --------------------------------------------------*/
- function fRemoveNode(path_list){
- for(key in path_list){
- var target_path = path_list[key];
- model.destroy( removeNodePath + target_path + "[1]" );
- }
- }
|