1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- /*
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- 외래환자리스트 ( SMMMO04200_외래환자리스트.xrw - JScript )
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- */
- var sOUTPATLIST_PATH = "/root/main/outpatinfo/outpatlist";
- //var sDSCHDCLRT_PATH = "/root/main/dschdclrt/dschdclrt";
- var sORDERBY = "";
- /**
- * @desc : 화면 초기화
- * @
- * @param :
- * @return :
- * @author : 손성훈. 2012.11.02
- * @---------------------------------------------------
- */
- function fInitialize_SMMMO04600(){
- model.removeNodeset(sOUTPATLIST_PATH);
- model.setValue(instance1.selectSingleNode("root/main/cond/orddd"), String(getCurrentDate()));
- model.setValue("/root/main/cond/orddeptcd", getUserInfo("dutplcecd")); //진료과
- model.setValue("/root/main/cond/orddrid", "-"); //진료의
- model.setValue("/root/main/cond/hngnm", "-"); //환자명
- model.setValue("/root/main/cond/pid", ""); //차트번호
- model.setValue("/root/main/cond/elbulbodstat", "-"); //환자구분
- fReqOutPatList();
- }
- /**
- * @desc : 외래환자 환자 기본정보설정
- * @
- * @param :
- * @return :
- * @author : 손성훈. 2012.11.02
- * @---------------------------------------------------
- */
- /**
- * @desc : 외래환자 리스트 조회
- * @
- * @param :
- * @event : 조회버튼 EVENT
- * @return :
- * @author : 손성훈. 2012.11.02
- * @---------------------------------------------------
- */
- function fReqOutPatList(){
- model.makeValue("/root/main/cond/srchdd", model.getValue(instance1.selectSingleNode("root/main/cond/orddd")));
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- //2011.05.01진상찬 페이지 처리추가(10건씩)
- var offset = parseInt(model.getValue("root/page/curpage"));
- //1page면 offset은 0, 1page가 아니면 offset은 page수 * 10 (한페이지당 10건씩 보여줌)
- if(offset == 1)
- {
- offset = offset - 1;
- }
- else
- {
- offset = (offset - 1) * 10;
- }
-
- model.makeValue("/root/send/reqdata/offset", String(offset)); //몇번째 데이터 부터 조회할지 지정
- model.makeValue("/root/send/reqdata/pagesize", model.getValue("root/page/pagesize")); //한페이지에 보여줄 건수(10건고정)
- //alert(model.getValue("/root/send/reqdata/offset"));
- //alert(model.getValue("/root/send/reqdata/pagesize"));
- //if(submit("TRMMO04201")){
- if(submit("TRMOB00060")){
- model.copyNode(parent.instance1.selectSingleNode("root/temp/outpatlist"), instance1.selectSingleNode("root/init"));
- model.copyNode(parent.instance1.selectSingleNode("root/cond/outpatlist"), instance1.selectSingleNode("root/main/cond"));
- }
- ///////////////////////////////
- var maxpage = parseInt(model.getValue("/root/main/outpatinfo/retcnt/maxcnt"));
- if(maxpage < 10)
- {
- model.setValue("/root/page/maxpage", "1");
- }
- else
- {
- maxpage = (maxpage / 10) - ((maxpage % 10) / 10) + 1;
- model.setValue("/root/page/maxpage", String(maxpage));
- }
- //////////////////////////////////////
- model.setValue("/root/main/cond/totcnt", model.getValue("/root/main/outpatinfo/retcnt/maxcnt")); //총 인원수
- model.refresh();
-
- }
|