123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- /**
- * @id :
- * @event :
- * @return : void
- * @authur : 이윤주(20150510)
- */
- function fInitialize()
- {
- zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"),"orduseyn","W","/root/init/wardcdlsit","depthngnm","asc");
- zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"),"orduseyn","D","/root/init/orddeptlist","depthngnm","asc");
-
- addComboItem("cmb_deptcd", "전체", "-");
-
- model.setValue("/root/main/cond/orddeptcd","-");
- var jobkindcd = getUserInfo("jobkindcd");
- if ( jobkindcd.substring(0,2) == "03") {
- model.setValue("/root/main/cond/orddeptcd",getUserInfo("dutplcecd"));
- }
-
- model.setValue("/root/main/cond/flag","A");
-
- model.setValue("/root/main/cond/prcpfromdd" ,((getCurrentDate().toDate()).getAddDate(-7)).getDateFormat()); //시작일자는 3개월 전 LYJ (요청번호 1896번)
- model.setValue("/root/main/cond/prcptodd" , getCurrentDate()); //종료일자는 현재일자
-
- fSearch();
-
- model.refresh();
- }
- function fSearch() {
-
- var prcptodd = model.getValue("/root/main/cond/prcptodd");
- var prcpfromdd = model.getValue("/root/main/cond/prcpfromdd");
- var orddeptcd = model.getValue("/root/main/cond/orddeptcd");
-
- if (prcptodd == "" || prcpfromdd == "") {
- messageBox("처방일이 세팅되지 않았습니다","I");
- return;
- }
-
- if (orddeptcd == "-") {
- messageBox("부서를 전체로 조회할 수는 없습니다","I");
- return;
- }
-
- if ( getDateInterval(prcpfromdd,prcptodd) > 7 ) {
- messageBox("일주일 초과하여 조회 불가합니다","I");
- return;
- }
-
- if(submit("TRMRF03812")){
- }
-
- }
- function fDSearch() {
-
- var selectedrow = grd_eocrlist.row;
-
- if (selectedrow < 1) {
- return;
- }
-
- var pid = model.getValue("/root/main/result/eocrlist["+ selectedrow +"]/pid");
- var indd = model.getValue("/root/main/result/eocrlist["+ selectedrow +"]/indd");
- var cretno = model.getValue("/root/main/result/eocrlist["+ selectedrow +"]/cretno");
-
- model.makeValue("/root/main/cond/pid",pid);
- model.makeValue("/root/main/cond/indd",indd);
- model.makeValue("/root/main/cond/cretno",cretno);
-
- if(submit("TRMRF03813")){
- }
-
- }
- function fOpenElecOCR () {
-
- var selectedrow = grd_eocrdlist.row;
-
- var flag = "G";
- var pensize = 2;
- var pencolor1 = 0;
- var pencolor2 = 0;
- var pencolor3 = 0;
- var penstyle = 0;
-
- if (selectedrow < 1) {
- return;
- }
-
- var pid = model.getValue("/root/main/result/eocrdlist["+ selectedrow +"]/pid");
- var indd = model.getValue("/root/main/result/eocrdlist["+ selectedrow +"]/indd");
- var cretno = model.getValue("/root/main/result/eocrdlist["+ selectedrow +"]/cretno");
- var ordtype = model.getValue("/root/main/result/eocrdlist["+ selectedrow +"]/ordtype");
- var formcd = model.getValue("/root/main/result/eocrdlist["+ selectedrow +"]/formcd");
- var ocrtag = model.getValue("/root/main/result/eocrdlist["+ selectedrow +"]/ocrtag");
-
-
- model.makeValue("/root/main/cond/ocrtag",ocrtag);
- if(submit("TRMRF03814")) {
- var eocrableyn = model.getValue("/root/main/result/ocrcstatuslist/cstatusyn");
- if (eocrableyn == "Y") {
- messageBox("[반납확인 또는 스캔완료] 상태라 진행 불가 합니다","I");
- return;
- }
- }
-
- setParameter("SSMRC03160_param_patid",pid);
- setParameter("SSMRC03160_param_cretno",cretno);
- setParameter("SSMRC03160_param_indate",indd);
- setParameter("SSMRC03160_param_class",ordtype);
- setParameter("SSMRC03160_param_docucd",formcd);
- setParameter("SSMRC03160_param_flag",flag);
- setParameter("SSMRC03160_param_pensize",pensize);
- setParameter("SSMRC03160_param_pencolor1",pencolor1);
- setParameter("SSMRC03160_param_pencolor2",pencolor2);
- setParameter("SSMRC03160_param_pencolor3",pencolor3);
- setParameter("SSMRC03160_param_penstyle",penstyle);
- setParameter("SSMRC03160_param_ocrtag",ocrtag);
-
- modal ("SSMRC03160");
-
- }
- function fOpenTotalView () {
-
- var selectedrow = grd_eocrlist.row;
- var pid = "";
-
- if (selectedrow > 0) {
- pid = model.getValue("/root/main/result/eocrlist["+ selectedrow +"]/pid");
- }
- setParameter("SMMRI00400_param_pid",pid);
- open("SMMRI00400");
- }
|