123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPLPJ01900" position="absolute 0 0 10 10" titletext="병리과 처방팝업" onload="SPLPJ01900_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 502 945 529" id="grp_btn">
- <Layouts>
- <Layout>
- <Button position="absolute 889 3 945 25" id="btn_cls" class="btn4" taborder="7" text="닫기" onclick="grp_btn_btn_cls_onclick"/>
- <Button position="absolute 830 3 886 25" id="btn_save" class="btn4" taborder="6" text="확인" onclick="grp_btn_btn_save_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 0 0 945 502" id="grp_biz">
- <Layouts>
- <Layout>
- <Static text="처방목록" position="absolute 5 45 116 59" id="caption2" class="tit_2"/>
- <Shape position="absolute 0 57 945 63" linetype="vertical" id="line1" class="line_1"/>
- <Grid position="absolute 31 65 976 502" id="grd_prcpacptlist" taborder="5" binddataset="ds_grd_prcpacptlist" oncellclick="grp_biz_grd_prcpacptlist_oncellclick" oncelldblclick="grp_biz_grd_prcpacptlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="74"/>
- <Column size="0"/>
- <Column size="150"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="130"/>
- <Column size="70"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="기관코드"/>
- <Cell col="1" text="ptno"/>
- <Cell col="2" text="병리번호"/>
- <Cell col="3" text="처방코드"/>
- <Cell col="4" text="처방명"/>
- <Cell col="5" text="검체코드"/>
- <Cell col="6" text="검체명"/>
- <Cell col="7" text="처방일자"/>
- <Cell col="8" text="접수일자"/>
- <Cell col="9" text="M"/>
- <Cell col="10" text="T"/>
- <Cell col="11" text="P"/>
- <Cell col="12" text="판독의사"/>
- <Cell col="13" text="의뢰지번호"/>
- <Cell col="14" text="당일검체유무"/>
- </Band>
- <Band id="body">
- <Cell text="bind:instcd"/>
- <Cell col="1" text="bind:ptno"/>
- <Cell col="2" class="text_center" text="bind:dispptno"/>
- <Cell col="3" text="bind:prcpcd"/>
- <Cell col="4" text="bind:prcpnm"/>
- <Cell col="5" text="bind:spccd"/>
- <Cell col="6" text="bind:spcnm"/>
- <Cell col="7" class="text_center" text="bind:prcpdd" mask="yyyy-mm-dd"/>
- <Cell col="8" class="text_center" text="bind:acptdd" mask="yyyy-mm-dd"/>
- <Cell col="9" class="text_center" text="bind:extrpartcnts"/>
- <Cell col="10" class="text_center" text="bind:extrmthdcnts"/>
- <Cell col="11" class="text_center" text="bind:diagcnts"/>
- <Cell col="12" class="text_center" text="bind:readdrnm"/>
- <Cell col="13" text="bind:reqfrmno"/>
- <Cell col="14" text="bind:tdayspcyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div position="absolute 0 0 945 35" align="align:center top;" id="grp_sea">
- <Layouts>
- <Layout>
- <Shape position="absolute 0 0 945 35" id="roundrect1" class="roundrect_search" type="roundrectangle"/>
- <Static text="처방일자 :" position="absolute 15 8 101 25" id="caption1" class="search_name"/>
- <Button position="absolute 874 7 930 29" id="btn_search" class="btn1" taborder="3" text="조회" onclick="grp_biz_grp_sea_btn_search_onclick"/>
- <Shape position="absolute 855 7 861 29" linetype="vertical" id="line13" class="line_4"/>
- <Static text="~" position="absolute 197 8 209 25" align="align:center middle;" id="caption3" class="search_no_b"/>
- <Calendar position="absolute 212 8 302 27" id="ipt_prcptodd" class="input_search" taborder="2"/>
- <Calendar position="absolute 104 8 194 27" id="ipt_prcpfromdd" class="input_search" taborder="1"/>
- </Layout>
- </Layouts>
- </Div>
- <CheckBox position="absolute 873 45 898 58" id="booltdayspcyn" onclick="grp_biz_booltdayspcyn_onclick" truevalue="1" falsevalue="0"/>
- <Static text="당일검체" position="absolute 895 45 945 58" id="caption4"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_prcpacptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING"/>
- <Column id="ptno" type="STRING"/>
- <Column id="dispptno" type="STRING"/>
- <Column id="prcpcd" type="STRING"/>
- <Column id="prcpnm" type="STRING"/>
- <Column id="spccd" type="STRING"/>
- <Column id="spcnm" type="STRING"/>
- <Column id="prcpdd" type="STRING"/>
- <Column id="acptdd" type="STRING"/>
- <Column id="extrpartcnts" type="STRING"/>
- <Column id="extrmthdcnts" type="STRING"/>
- <Column id="diagcnts" type="STRING"/>
- <Column id="readdrnm" type="STRING"/>
- <Column id="reqfrmno" type="STRING"/>
- <Column id="tdayspcyn" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden_reqfrminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_reqfrminfo_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_choispclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_SMMMR03600_modalif" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onvaluechanged="ds_SMMMR03600_modalif_onvaluechanged">
- <ColumnInfo>
- <Column id="openmode" type="STRING" size="256"/>
- <Column id="imgecd" type="STRING" size="256"/>
- <Column id="base64" type="BLOB"/>
- <Column id="shape" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="openmode">OneImge</Col>
- <Col id="imgecd"/>
- <Col id="base64"/>
- <Col id="shape"/>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.booltdayspcyn" propid="value" datasetid="ds_temp" columnid="tdayspcyn"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- var arErrorCode = new HashArray();
- var objDomParser;
- var objDOM;
- var objDOMImg;
- function lf_fExeInitialize() {
-
- dsf_createDs("ds_rslt_rtnvalinfo"); //저장결과
-
- objDomParser = new DomParser;
- objDOM = objDomParser.parseFromString("<reqfrminfo></reqfrminfo>");
- objDOMImg = objDomParser.parseFromString("<SMMMR03600_modalif></SMMMR03600_modalif>");
-
- var sTDay = utlf_getCurrentDate();
- dsf_createDsRow("ds_temp",
- [{col:"tdayspcyn" , type:"string", size:256, val:"0"}, // 당일검체
- {col:"spccd" , type:"string", size:256, val:""}, // 검체코드
- {col:"spcnm" , type:"string", size:256, val:""}, // 검체명
- {col:"reqfrmno" , type:"string", size:256, val:"0"}, // 의뢰지번호
- {col:"prcpfromdd" , type:"string", size:256, val:sTDay.toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD")},
- {col:"prcptodd" , type:"string", size:256, val:sTDay}
- ]);
-
- lf_fGetPrcpAcptList(grp_biz.grp_sea.ipt_prcpfromdd.value, grp_biz.grp_sea.ipt_prcptodd.value);
- }
- /* @group : 병리과처방팝업
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 처방접수목록을 검색 처리 Function
- */
- function lf_fGetPrcpAcptList(pFromDD, pToDD) {
-
- var bState = false;
- var iFindNo = 0;
- //var sNode = "/root/main/prcpacpt/prcpacptlist";
- //var sNodeT = "/root/hidden/reqfrminfo/prcp/prcplist";
- var sTestCd = "";
-
- //var sReqNode = "/root/main/reqfrm/reqfrmtbl/reqfrminfo/choispc/choispclist";
- //var reqnode = instance1.selectSingleNode("/root/main/reqfrm/reqfrmtbl/reqfrminfo");
-
- //--------------------------------------------------------------------------
- // 병리과 처방등록 팝업창에서 호출할 경우 반드시 등록번호가 존재하여야 한다.
- dsf_createDsRow("ds_send",
- [{col:"instcd" , type:"string", size:256, val:"0"}, // 당일검체
- {col:"pid" , type:"string", size:256, val:""}, // 검체코드
- {col:"prcpfromdd" , type:"string", size:256, val:pFromDD},
- {col:"prcptodd" , type:"string", size:256, val:pToDD}
- ]);
-
-
- //-------------------
- // 공백라인 삭제 처리
-
- ds_hidden_reqfrminfo_prcplist.filter("prcpcd!=''");
- //--------------------------
- // 처방 저장중인 자료를 검색
- if (ds_hidden_reqfrminfo_prcplist.rowcount > 0) {
- grp_biz.booltdayspcyn.value = "1";
- ds_temp.setColumn(0,"tdayspcyn", "1");
- ds_temp.setColumn(0,"spccd", "");
- ds_temp.setColumn(0,"spcnm", "");
- ds_temp.setColumn(0,"reqfrmno", "0");
-
- //-------------------------------------------
- iFindNo = lf_fExeFindRowTemp("PSU", "PCY", "Y");
-
- if (Number(iFindNo) > 0) {
- lf_fExeGridClickTemp(iFindNo, "Y");
- bState = true;
- } else {
- iFindNo = lf_fExeFindRowTemp("PSU", "PCY", "Y");
- if (Number(iFindNo) > 0) {
- lf_fExeGridClickTemp(iFindNo, "Y");
- bState = true;
- } else {
- if (ds_grd_prcpacptlist.rowcount > 0) {
- bState = false;
- } else {
- lf_fExeMakeReqNo(); // 이전 처방이 없을 경우 대표검체로 의뢰지 생성
- }
- }
- }
- }
-
- //-------------------
- // 이전 처방목록 검색
- if (ds_grd_prcpacptlist.rowcount > 0 && bState == false) {
- //-----------------------------------------------
- // 이전 처방중 조직처방이 존재할 경우 검체를 사용
- iFindNo = lf_fExeFindRow("PSU", "PCY", "Y"); // 당일 검체에서 조직처방 검색
- if (Number(iFindNo) > 0) {
- lf_fExeGridClick(iFindNo, "Y");
- } else {
- iFindNo = lf_fExeFindRow("PSU", "PCY", "Y"); // 당일 검체에서 세포처방 검색
- if (Number(iFindNo) > 0) {
- lf_fExeGridClick(iFindNo, "Y");
- } else {
- iFindNo = lf_fExeFindRow("PSU", "PCY", "Y"); // 이전 검체에서 조직처방 검색
- if (Number(iFindNo) > 0) {
- lf_fExeGridClick(iFindNo, "Y");
- } else {
- iFindNo = lf_fExeFindRow("PSU", "PCY", "Y"); // 이전 검체에서 세포처방 검색
- if (Number(iFindNo) > 0) {
- lf_fExeGridClick(iFindNo, "Y");
- } else {
- grp_biz.booltdayspcyn.value = "1";
- ds_temp.setColumn(0,"tdayspcyn", "1");
- ds_temp.setColumn(0,"spccd", "");
- ds_temp.setColumn(0,"spcnm", "");
- ds_temp.setColumn(0,"reqfrmno", "0");
-
- //--------------
- lf_fExeMakeReqNo();
- }
- }
- }
- }
- }
- }
- /* @group : 병리과처방팝업
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : Other검체로 의뢰지 생성 처리 Function
- */
- function lf_fExeMakeReqNo() {
-
- //var sReqNode = "/root/main/reqfrm/reqfrmtbl/reqfrminfo/choispc/choispclist";
- //var reqnode = instance1.selectSingleNode("/root/main/reqfrm/reqfrmtbl/reqfrminfo");
- //var imgnode = instance1.selectSingleNode("/root/temp/SMMMR03600_modalif");
-
-
- var sPrcpCd = "";
- var iIndexOf = -1;
-
- var transXML = ds_SMMMR03600_modalif.saveXML();
- var XML_length = transXML.length;
- var startidx = transXML.indexOf("<Col id="+"\u0022"+"base64"+"\u0022"+">");
- var endidx = transXML.indexOf("<Col id="+"\u0022"+"shape"+"\u0022"+">");
- var BLOB_STRINNG = "<![CDATA["+transXML.substring(startidx+17,endidx-11)+"]]]]><![CDATA[>"
- if(ds_SMMMR03600_modalif.getColumn(0,"openmode") == "OneImge"){
- lgv_openmode = "<![CDATA["+ds_SMMMR03600_modalif.getColumn(0,"openmode")+"]]]]><![CDATA[>"
- lgv_imgecd = "<![CDATA["+ds_SMMMR03600_modalif.getColumn(0,"imgecd")+"]]]]><![CDATA[>"
- lgv_shape = "<![CDATA["+ds_SMMMR03600_modalif.getColumn(0,"shape")+"]]]]><![CDATA[>"
- }else{
- lgv_openmode = ""
- lgv_imgecd = ""
- lgv_shape = ""
- BLOB_STRINNG = ""
- }
-
- var imgnodeXmlText = "<SMMMR03600_modalif>"
- imgnodeXmlText = imgnodeXmlText + "<openmode>" + lgv_openmode + "</openmode>";
- imgnodeXmlText = imgnodeXmlText + "<imgecd>" + lgv_imgecd + "</imgecd>";
- imgnodeXmlText = imgnodeXmlText + "<base64>" + BLOB_STRINNG + "</base64>";
- imgnodeXmlText = imgnodeXmlText + "<shape>" + lgv_shape + "</shape>";
- imgnodeXmlText = imgnodeXmlText + "</SMMMR03600_modalif>"
-
-
- //-----------------------
- // 의뢰지 생성정보를 설정
- rptf_setValueToDOM(objDOM, "/reqfrminfo/reqcnts", "의뢰지 자동 생성");
- rptf_setValueToDOM(objDOM, "/reqfrminfo/choispc/choispclist/choi", "true");
- rptf_setValueToDOM(objDOM, "/reqfrminfo/choispc/choispclist/spcseqno", "001");
- rptf_setValueToDOM(objDOM, "/reqfrminfo/choispc/choispclist/spccd", "TZZ901");
- rptf_setValueToDOM(objDOM, "/reqfrminfo/choispc/choispclist/spccd2", "Other");
-
- var objParam = new Object();
- objParam.xml_data_XML1 = objDOM.documentElement.source;
-
-
- var sInDsName = dsf_createDsRow("ds_temp_search", [{
- col : "pid",
- val : ds_hidden_reqfrminfo.getColumn(0,"pid")
- }, {
- col : "reqno",
- val : "0"
- }, {
- col : "reqcnts",
- val : objParam.xml_data_XML1.replace("<![CDATA[","").replace("]]]]><![CDATA[>","")
- }, {
- col : "imgcnts",
- val : imgnodeXmlText
- }, {
- col : "instcd",
- val : sysf_getUserInfo("dutplceinstcd")
- }, {
- col : "scrno",
- val : "10"
- }, {
- col : "prcpdd",
- val : ds_hidden_reqfrminfo.getColumn(0,"tday")
- },
- {
- col : "scrnflagcd",
- val : "SPCREQ"
- }
- ]);
-
- tranf_submit({
- id : "TXLPJ01501",
- service : "plgyrelapplib.PlgyAcptLib",
- method : "reqExeReqFrmInfo",
- inds : "refData=" + sInDsName,
- outds : "ds_rslt_rtnvalinfo=reflist",
- callback : "cbf_SPLPJ01900",
- async : false
- });
-
-
- }
- function cbf_SPLPJ01900(strSvcID, nErrorCode, strErrorMag) {
- if(nErrorCode != 0)
- {
- sysf_messageBox("의뢰지 저장을", "E009");
- return false;
- }
- else {
- ds_temp.setColumn(0,"spccd", "T99999");
- ds_temp.setColumn(0,"spcnm", "Other");
- ds_temp.setColumn(0,"reqfrmno", ds_rslt_rtnvalinfo.getColumn(0,"lstreqno"));
- lf_fExeSave();
- }
-
- }
- /* @group : 병리과처방팝업
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 저장중인 처방목록 검색 처리 Function
- */
- function lf_fExeFindRowTemp(pFindStr, pFindStr2, pTDay) {
-
- var iFindNo = 0;
-
-
- //-------------------------------------------------------------
- // 처방 등록중인 내용이 없을 경우 Other(T99999)으로 검체를 설정
- if (ds_hidden_reqfrminfo_prcplist.rowcount <= 0) {
- // Continue
- } else {
- //-----------------------------------------------------
- for (var iNo=ds_hidden_reqfrminfo_prcplist.rowcount - 1; iNo >= 0; iNo--) {
-
- sTestCd = utlf_transNullToEmpty(ds_hidden_reqfrminfo_prcplist.getColumn(iNo,"prcpcd"));
- sTestCd = sTestCd.toUpperCase();
- //--------------------------------------------------------------------------
- if (sTestCd.substr(0, 3) == pFindStr || sTestCd.substr(0, 3) == pFindStr2) {
- iFindNo = iNo;
- break;
- }
- }
- }
-
- return iFindNo;
- }
- /* @group : 병리과처방팝업
- * @-----------------------------------
- * @type : function
- * @access : publicf
- * @desc : 이전 처방목록 검색 처리 Function
- */
- function lf_fExeFindRow(pFindStr, pFindStr2, pTDay) {
-
- var iFindNo = 0;
-
- //for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
- for (var iNo=ds_grd_prcpacptlist.rowcount - 1 ; iNo >= 0; iNo--) {
-
- if (ds_grd_prcpacptlist.getColumn(iNo,"tdayspcyn") == pTDay) {
- sTestCd = ds_grd_prcpacptlist.getColumn(iNo,"prcpcd");
- sTestCd = sTestCd.toUpperCase();
- //--------------------------------------------------------------------------
- if (sTestCd.substr(0, 3) == pFindStr || sTestCd.substr(0, 3) == pFindStr2) {
- iFindNo = iNo;
- break;
- }
- }
- }
-
- //-------------
- return iFindNo;
- }
- /* @group : 병리과처방팝업
- * @ver : 2007.06.01 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 확인버튼 클릭 시 처리 Function
- */
- function lf_fExeSave() {
-
- var iRowNo = ds_grd_prcpacptlist.rowposition;
-
- //-------------------------------------------------
- if (ds_temp.getColumn(0,"reqfrmno") == "0") {
- if (ds_temp.getColumn(0,"tdayspcyn") != "1") {
- return false;
- }
- }
-
- opener.ds_hidden_reqfrminfo.setColumn(0,"reqno", ds_temp.getColumn(0,"reqfrmno"));
- opener.ds_hidden_reqfrminfo.setColumn(0,"spccd", ds_temp.getColumn(0,"spccd"));
- opener.ds_hidden_reqfrminfo.setColumn(0,"spcnm", ds_temp.getColumn(0,"spcnm"));
- opener.ds_hidden_reqfrminfo.setColumn(0,"tdayyn", ds_temp.getColumn(0,"tdayspcyn"));
- this.close();
- }
- /* @group : 병리과처방팝업
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 닫기 Function
- */
- function lf_fExeClose() {
- this.close();
- }
- /* @group : 병리과처방팝업
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 당일검체 선택 시 처리 Function
- */
- function fExeTDaySpcChoice() {
-
- var bState = false;
- //var sSrcNode = "/root/main/prcpacpt/prcpacptlist";
-
- //----------------------------
- // 당일검체를 선택한 경우 처리
- // if (model.getValue("/root/temp/tdayspcyn") == "1") {
-
- //-------------------------------
- // 당일검체 선택 시 존재여부 검사
- for (var iRowNo=1; iRowNo <= getNodesetCount(sSrcNode); iRowNo++) {
- if (ds_grd_prcpacptlist.getColumn(iRowNo,"tdayspcyn") == "Y") {
- ds_temp.setColumn(0,"spccd", ds_grd_prcpacptlist.getColumn(iRowNo,"spccd"));
- ds_temp.setColumn(0,"spcnm", ds_grd_prcpacptlist.getColumn(iRowNo,"spcnm"));
- ds_temp.setColumn(0,"reqfrmno", ds_grd_prcpacptlist.getColumn(iRowNo,"reqfrmno"));
- bState = true;
- break;
- } else {
- ds_temp.setColumn(0,"spccd", "");
- ds_temp.setColumn(0,"/spcnm", "");
- ds_temp.setColumn(0,"reqfrmno", "0");
- }
- }
-
- //------------
- if (!bState) {
- sysf_messageBox("당일 검체가 존재하지 않습니다. 처방목록에서 처방을 선택하시거나 신규 처방을 ", "C001");
- return false;
- }
-
- //---------
- lf_fExeSave();
- // }
- }
- /* @group : 병리과처방팝업
- * @ver : 2007.06.01 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 처방접수목록 그리드 클릭 시 처리 Function
- */
- function fExeGridClick(pRowNo, pBizFlag) {
- var sSrcNode = "/root/main/prcpacpt/prcpacptlist";
-
- //------------------------------------------------------------------------------------------
- ds_temp.setColumn(0,"spccd", ds_grd_prcpacptlist.getColumn(pRowNo,"spccd"));
- ds_temp.setColumn(0,"spcnm", ds_grd_prcpacptlist.getColumn(pRowNo,"spcnm"));
- ds_temp.setColumn(0,"reqfrmno", ds_grd_prcpacptlist.getColumn(pRowNo,"reqfrmno"));
-
- //------------------------------
- if (pBizFlag == "Y") fExeSave();
- }
- function lf_fExeGridClickTemp(pRowNo, pBizFlag) {
-
- //--------------------------------------------------------------------------------------------------
- ds_temp.setColumn(0,"spccd", ds_hidden_reqfrminfo_prcplist.getColumn(pRowNo, "drugmthdspccd"));
- ds_temp.setColumn(0,"spcnm", ds_hidden_reqfrminfo_prcplist.getColumn(pRowNo, "drugmthdspccdnm"));
- ds_temp.setColumn(0,"reqfrmno", ds_hidden_reqfrminfo_prcplist.getColumn(pRowNo, "testreqlnkno"));
- //------------------------------
- if (pBizFlag == "Y") lf_fExeSave();
- }
- function SPLPJ01900_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
- ds_hidden_reqfrminfo.copyData(arg_ds_hidden_reqfrminfo);
- ds_hidden_reqfrminfo_prcplist.copyData(arg_ds_hidden_reqfrminfo_prcplist);
- lf_fExeInitialize();
- }
- function grp_btn_btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_fExeClose();
- }
- function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_fExeSave();
- }
- function grp_biz_grd_prcpacptlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- lf_fExeGridClick(grd_prcpacptlist.row, "N");
- }
- function grp_biz_grd_prcpacptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- lf_fExeGridClick(grd_prcpacptlist.row, "Y");
- }
- function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_fGetPrcpAcptList(grp_biz.grp_sea.ipt_prcpfromdd.value, grp_biz.grp_sea.ipt_prcptodd.value);
- }
- function grp_biz_booltdayspcyn_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- lf_fExeTDaySpcChoice();
- }
- ]]></Script>
- </Form>
- </FDL>
|