123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- /*
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- 수술명검색 ( SMMMO04500_수술명검색.xrw - JScript )
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- */
- /**
- * @desc : 화면 초기화
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fInitialize_SPMMO05100(){
- zbcfGetCodeList(new Array("M0029" ,
- "M0007"),
- new Array("/root/init/payflagcd",
- "/root/init/opansflagcd")); //공통코드 조회
-
- model.removeNodeset("/root/prcpsrch/prcplist");
- model.removeNodeset("/root/main/opprcpsrch/prcplist");
- var prcpdd = opener.model.getValue("/root/init/prcpdd");
- if(isNull(prcpdd)){
- prcpdd = getCurrentDate();
- }
- model.setValue("/root/send/cond3" , prcpdd);
- model.setValue("/root/init/deptcd/deptcd", getUserInfo("dutplcecd"));
- model.refresh();
-
- fReqDeptIndxList(); //과수술색인 조회
-
- var currow = opener.grd_prcplist.row;
- var opnm = opener.model.getValue("/root/main/prcp/prcplist[" + currow + "]/prcpnm");
- opnm = opnm.substring(1, opnm.length); // 검색어 앞의 '/'를 제거
- model.setValue("/root/opnm", opnm);
-
- //fReqOpName(); //수술명 검색
- btn_req.dispatch("DOMActivate");
- }
- /**
- * @desc : 과수술 검색
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqOpList(){
- var item = trv_deptindxcdlist.item(trv_deptindxcdlist.selectedIndex);
- var iRow = item.index + 1;
- var deptindxcd = model.getValue("/root/main/deptindxcdlist/deptindxcdlist[" + iRow + "]/deptindxcd");
-
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/deptindxflag", "9");
- model.makeValue("/root/send/reqdata/deptindxcd" , trv_deptindxcdlist.value);
- model.makeValue("/root/send/reqdata/deptcd" , getUserInfo("dutplcecd"));
- model.makeValue("/root/send/reqdata/opwndflag" , "Y");
- if(submit("TRMMO03113")){
- }
- }
- /**
- * @desc : 과수술색인 조회
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqDeptIndxList(){
- model.removeNodeset("/root/tmp/reqdata");
- model.makeValue("/root/tmp/reqdata/deptindxflag", "9");
- model.makeValue("/root/tmp/reqdata/deptcd" , getUserInfo("dutplcecd"));
- model.makeValue("/root/tmp/reqdata/deptnm" , getUserInfo("dutplcenm"));
- if(submit("TRMMO03111")){
- }
- }
- /**
- * @desc : 수술명 검색
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqOpName(){
- if(ipt_opnm.value == ""){
- messageBox("검색할 수술명을", "C001");
- return;
- }
- model.makeValue("/root/tmp/reqdata/cond1", "2");
- model.makeValue("/root/tmp/reqdata/cond2", "3");
- model.makeValue("/root/tmp/reqdata/cond3", fIsHangul(ipt_opnm.value));
- model.makeValue("/root/tmp/reqdata/cond4", getCurrentDate());
- model.makeValue("/root/tmp/reqdata/cond5", ipt_opnm.value);
- if(submit("TRMMO00111")){
- }
- }
- /**
- * @desc : 과별 수술명 검색
- * @
- * @param :
- * @return :
- * @author : 오지훈
- * @---------------------------------------------------
- */
- function fReqDeptOpName(){
- if(ipt_opnm.value == ""){
- messageBox("검색할 수술명을", "C001");
- return;
- }
- var prcpdd = opener.model.getValue("/root/init/prcpdd");
- var deptcd = model.getValue("/root/init/deptcd/deptcd");
-
- if(fIsHangul(ipt_opnm.value) == "H"){
- var queryflag = "hng";
- }else{
- var queryflag = "eng";
- }
-
- model.removeNodeset("/root/tmp/reqdata");
- model.makeValue("/root/tmp/reqdata/opnm" , ipt_opnm.value);
- model.makeValue("/root/tmp/reqdata/deptcd" , deptcd);
- model.makeValue("/root/tmp/reqdata/currentdd", prcpdd);
- model.makeValue("/root/tmp/reqdata/queryflag", queryflag);
- model.makeValue("/root/tmp/reqdata/opwndflag", "Y"); // 수술명검색창(SPMMO5100)창에서 열어줄때는 oper.orgopcd값으로 구분하기 위해서 플레그 삽입(2008.09.20 나종천 D/L요청 : 김영학)
- if(submit("TRMMO05103")){
- }
- }
- /**
- * @desc : 수술코드 연결여부 표시
- * @
- * @param :
- * @return :
- * @author : 오지훈
- */
- function fDispCalcLnkFlag(){
- for(var i = 1; i < grd_opterm.rows; i++){
- var calclnkflag = model.getValue("/root/main/opcdinfo/opcdlist[" + i + "]/calclnkflag");
- if(calclnkflag == "Y"){
- grd_opterm.rowStyle(i, "data", "background-color") = "#ccffff";
- }else{
- grd_opterm.rowStyle(i, "data", "background-color") = "#fffffff";
- }
- }
- grd_opterm.refresh();
- }
|