12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?xml version="1.0" encoding="utf-8"?>
- <Script type="xscript4.0"><![CDATA[/****************************************************************************************
- * Function : fCheckedBindPid
- * Description : 환자번호 합번여부 체크
- * Argument : pPid - 환자번호
- * return type : String sResult
- * Creator :
- ****************************************************************************************/
- function fCheckedBindPid(pPid){
- var sResult = "";
- if(!utlf_isNull(pPid)){
- /*TRMRC00509에 사용할 환자번호 설정*/
-
- dsf_createDsRow("ds_temp_TRMRC00510", [{col:"pid", type:"string", size:256, val:pPid}] ,"true");
- dsf_createDs("ds_temp_rtn", [{col:"pid" , type:"string" , size:256}
- ,{col:"hngnm" , type:"string" , size:256}
- ,{col:"bindpid", type:"string" , size:256}
- ], "true");
-
- var oParam = {};
- oParam.id = "TRMRC00510";
- oParam.service = "chrtmngtapp.BaseInfoMngt";
- oParam.method = "reqGetDblNoPidList";
- oParam.inds = "item=ds_temp_TRMRC00510";
- oParam.outds = "ds_temp_rtn=item";
- oParam.async = false;
- // oParam.callback = "";
- tranf_submit(oParam);
-
- if(ds_temp_rtn.rowcount > 0) {
-
- var sBindPid = ds_temp_rtn.getColumn(0,"bindpid");
-
- if(sBindPid != "-" && !utlf_isNull(sBindPid) && sBindPid != " "){
- var sHngnm = ds_temp_rtn.getColumn(0,"hngnm");
- var messageValue = sysf_messageBox(pPid + "(" + sHngnm + ") 환자의 등록번호가 [ " + sBindPid + " ] 로 합번 되었습니다. 합번된 등록번호를 사용 하시겠습니까?", "Q999", "");
-
- if(messageValue == "6"){
- sResult = sBindPid;
- } else {
- sResult = pPid;
- }
- } else {
- sResult = pPid;
- }
- } else {
- sResult = pPid;
- }
-
- dsf_deleteDs("ds_temp_TRMRC00510");
- dsf_deleteDs("ds_temp_rtn");
-
- } else {
- sResult = pPid;
- }
- return sResult;
- }
- ]]></Script>
|