123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLR90300_현장검사결과등록.xrw
- * 설 명 : 현장검사결과등록
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2007.06.19
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>현장검사결과등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <getPoctlist>
- <getTestInfoCnts>
- <bcgbn/>
- <bcbtn/>
- <choi/>
- <bcno2/>
- <bcno/>
- <prcpdd/>
- <tclsnm/>
- <reptrslt/>
- <rsltunit/>
- <ref/>
- <prcpgenrflagnm/>
- <execdeptcd/>
- <tclscd/>
- <testlrgkind/>
- <spccd/>
- <diffcntyn/>
- <tclskind/>
- <prcpgenrflag/>
- <rcptyn/>
- <execdd/>
- </getTestInfoCnts>
- <patnm>
- <pname/>
- </patnm>
- </getPoctlist>
- <getUsernm>
- <usernm/>
- </getUsernm>
- <poctlist>
- <bcgbn/>
- <bcbtn/>
- <choi/>
- <bcno2/>
- <bcno/>
- <tclsnm/>
- <reptrslt/>
- <ref/>
- <refval/>
- <reptdd/>
- <reptnm/>
- <testcd/>
- <spccd/>
- <rsltseq/>
- <testlrgkind/>
- </poctlist>
- <getJaeWonTrue>
- <jaewonyn/>
- </getJaeWonTrue>
- </main>
- <send>
- <pid/>
- <prcpgenrflag/>
- <sdd/>
- <edd/>
- <userid/>
- <data1/>
- <data2/>
- <codeflag/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <pid/>
- <usernm/>
- <userid/>
- <sdd/>
- <edd/>
- <pidstr/>
- <prcpgenrflag/>
- <bcno/>
- </ref>
- <popupmenu>
- <grid>
- <item>
- </item>
- </grid>
- </popupmenu>
- <newElement/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fOpenList();
-
- ]]>
- </script>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TXLLR91101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLLR91102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/poctlist"/>
- <submission id="TRLLR91101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getPoctlist"/>
- <submission id="TRLLR91103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getJaeWonTrue"/>
- <submission id="TXLLR91102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLZZ00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getUsernm"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fExeCancel() {
- window.close();
- }
-
- function fOpenList(){
- //model.removeNodeset("/root/main/getTestInfoCnts");
- var toDay = getCurrentDate();
- model.setValue("/root/hidden/ref/sdd", toDay);
- model.setValue("/root/hidden/ref/edd", toDay);
- model.setValue("/root/hidden/ref/userid", getUserId());
- //model.setValue("/root/main/getUsernm/usernm", getUserName());
- model.setValue("/root/hidden/ref/pid", getPatientInfo("pid"));
- //model.setValue("/root/hidden/ref/patnm", getPatientInfo("pname"));
-
- model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid"));
-
- //입원 환자 여부 조회
- submit("TRLLR91103");
- var jaewonyn = model.getValue("/root/main/getJaeWonTrue/jaewonyn");
- if(jaewonyn == "Y"){
- model.setValue("/root/hidden/ref/prcpgenrflag", "2");
- }else{
- model.setValue("/root/hidden/ref/prcpgenrflag", "1");
- }
- model.setValue("/root/send/prcpgenrflag", model.getValue("/root/hidden/ref/prcpgenrflag"));
-
- model.setValue("/root/hidden/ref/pidstr", model.getValue("/root/hidden/ref/pid"));
- fBaseInfoRef("0109|");
- submit("TRLLR91101");
- fRemark(1);
- freprint();
- iptSearch.selBegin = 0;
- iptSearch.selEnd = iptSearch.currentText.length;
- model.setFocus("iptSearch");
-
- }
-
- function fRemark(flag){
-
- var sunab = false;
- var sunabcnts = "";
- if(flag == 1){
- grd_TestInfoCnts.rebuildStyle();
- for(iRow=1; iRow < grd_TestInfoCnts.rows; iRow ++ ){
-
- if(model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/bcgbn") == "true"){
-
- grd_TestInfoCnts.cellstyle("background-image", iRow, 1) = "../../../lis/commonweb/images/chkBC1.gif";
- grd_TestInfoCnts.cellstyle("background-position", iRow, 1) = "center"
- }
- else if(model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/bcgbn").getTrim().toString() == "false"){
-
- grd_TestInfoCnts.cellstyle("background-image", iRow, 1) = "../../../lis/commonweb/images/chkBC2.gif";
- grd_TestInfoCnts.cellstyle("background-position", iRow, 1) = "center"
- }
- else if(model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/bcgbn").getTrim().toString() == "-"){
-
- grd_TestInfoCnts.cellstyle("background-image", iRow, 1) = "../../../lis/commonweb/images/chkBC0.gif";
- grd_TestInfoCnts.cellstyle("background-position", iRow, 1) = "center"
- }
-
- if(model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/tclscd") ==
- model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/testcd")){
-
- if((model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/prcpgenrflag") == "O" &&
- model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/rcptstatcd") != "230") ||
- (model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/prcpgenrflag") == "D" &&
- model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/rcptstatcd") != "230") ||
- (model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/prcpgenrflag") == "S" &&
- model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/rcptstatcd") != "230")){
- /* 이재오 VIP 수정 2013 2월 15일 */
- if(model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/rcptyn") == "V" )
- {
- sunab = false;
- //sunab = true;
- }
- else
- {
- sunab = true;
- }
- sunabcnts = sunabcnts +" "+model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/tclsnm") + ",";
-
- }
- }
- }
- if(sunab){
-
- sunabcnts = sunabcnts.substring(0, sunabcnts.length -1);
-
- alert(sunabcnts + " 항목은 수납되지 않았습니다. ");
-
-
- }
-
-
- }
- else{
- poctgrid.rebuildStyle();
- for(iRow=1;iRow < poctgrid.rows; iRow ++ ){
-
- if(model.getvalue("/root/main/poctlist["+iRow+"]/bcgbn").toString() == "true"){
- poctgrid.cellstyle("background-image", iRow, 1) = "../../../lis/commonweb/images/chkBC1.gif";
- poctgrid.cellstyle("background-position", iRow, 1) = "center"
- }
- else if(model.getvalue("/root/main/poctlist["+iRow+"]/bcgbn").toString() == "false"){
- poctgrid.cellstyle("background-image", iRow, 1) = "../../../lis/commonweb/images/chkBC2.gif";
- poctgrid.cellstyle("background-position", iRow, 1) = "center"
- }
- else if(model.getvalue("/root/main/poctlist["+iRow+"]/bcgbn").toString() == "-"){
- poctgrid.cellstyle("background-image", iRow, 1) = "../../../lis/commonweb/images/chkBC0.gif";
- poctgrid.cellstyle("background-position", iRow, 1) = "center"
- }
- }
- //grd_TestInfoCnts.rebuildStyle();
- }
- }
-
- function fSetGridChoi(flag){
-
- if(flag == 1){
- var row = grd_TestInfoCnts.row;
- var col = grd_TestInfoCnts.col;
-
- if(grd_TestInfoCnts.isCell(event.target) && grd_TestInfoCnts.row >= grd_TestInfoCnts.fixedRows){
-
- if(col == 1){
-
- if(model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+row+"]/bcgbn") == "true"){
-
- model.setvalue("/root/main/getPoctlist/getTestInfoCnts["+row+"]/bcgbn","false");
- model.setvalue("/root/main/getPoctlist/getTestInfoCnts["+row+"]/choi" , "false");
-
- grd_TestInfoCnts.cellstyle("background-image", row, 1) = "../../../lis/commonweb/images/chkBC0.gif";
- grd_TestInfoCnts.cellstyle("background-position", row, 1) = "center"
-
- if(row + 1 <= grd_TestInfoCnts.rows- 1){
- for(iRow = row + 1 ; ; iRow ++ ){
- if(model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/bcgbn") == "true" ||
- model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/bcgbn") == "false" ||
- iRow > grd_TestInfoCnts.rows- 1){
- break;
- }
-
- model.setvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/choi" , "false");
-
- }
- }
- }
- else if(model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+row+"]/bcgbn") == "false"){
-
- model.setvalue("/root/main/getPoctlist/getTestInfoCnts["+row+"]/bcgbn","true");
- model.setvalue("/root/main/getPoctlist/getTestInfoCnts["+row+"]/choi" , "true");
-
- grd_TestInfoCnts.cellstyle("background-image", row, 1) = "../../../lis/commonweb/images/chkBC1.gif";
- grd_TestInfoCnts.cellstyle("background-position", row, 1) = "center"
-
- if(row + 1 <= grd_TestInfoCnts.rows- 1){
- for(iRow = row + 1 ; ; iRow ++ ){
- if(model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/bcgbn") == "true" ||
- model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/bcgbn") == "false" ||
- iRow > grd_TestInfoCnts.rows- 1){
- break;
- }
- model.setvalue("/root/main/getPoctlist/getTestInfoCnts["+iRow+"]/choi" , "true");
- }
- }
- }
- }
- }
- }
- else{
- var row = poctgrid.row;
- var col = poctgrid.col;
-
- if(poctgrid.isCell(event.target) && poctgrid.row >= poctgrid.fixedRows){
-
- if(col == 1){
-
- if(model.getvalue("/root/main/poctlist["+row+"]/bcgbn") == "true"){
-
- model.setvalue("/root/main/poctlist["+row+"]/bcgbn","false");
- model.setvalue("/root/main/poctlist["+row+"]/choi" , "false");
-
- poctgrid.cellstyle("background-image", row, 1) = "../../../lis/commonweb/images/chkBC0.gif";
- poctgrid.cellstyle("background-position", row, 1) = "center"
-
- if(row + 1 <= poctgrid.rows- 1){
- for(iRow = row + 1 ; ; iRow ++ ){
- if(model.getvalue("/root/main/poctlist["+iRow+"]/bcgbn") == "true" ||
- model.getvalue("/root/main/poctlist["+iRow+"]/bcgbn") == "false" ||
- iRow > poctgrid.rows- 1){
- break;
- }
-
- model.setvalue("/root/main/poctlist["+iRow+"]/choi" , "false");
-
- }
- }
- }
- else if(model.getvalue("/root/main/poctlist["+row+"]/bcgbn") == "false"){
-
- model.setvalue("/root/main/poctlist["+row+"]/bcgbn","true");
- model.setvalue("/root/main/poctlist["+row+"]/choi" , "true");
-
- poctgrid.cellstyle("background-image", row, 1) = "../../../lis/commonweb/images/chkBC1.gif";
- poctgrid.cellstyle("background-position", row, 1) = "center"
-
- if(row + 1 <= poctgrid.rows- 1){
- for(iRow = row + 1 ; ; iRow ++ ){
- if(model.getvalue("/root/main/poctlist["+iRow+"]/bcgbn") == "true" ||
- model.getvalue("/root/main/poctlists["+iRow+"]/bcgbn") == "false" ||
- iRow > poctgrid.rows- 1){
- break;
- }
- model.setvalue("/root/main/poctlist["+iRow+"]/choi" , "true");
- }
- }
- }
- }
- }
- }
- }
-
- function fExeSave(){
- //fSaveChk();
- /*
- var chk = false;
- for(i = 1 ; i < grd_TestInfoCnts.rows ; i ++){
- if(model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/testcd") == "LOS101"){
- grd_TestInfoCnts.rowStatus(i) = 0;
- model.setValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/choi", "false");
- chk = true;
- }
- }
- if(chk){
- alert("Glucose(Strip)(POCT) 검사는 조회만 가능 합니다.");
- }
- */
-
- var jaewonyn = model.getValue("/root/main/getJaeWonTrue/jaewonyn");
- var prcpgenrflag = model.getValue("/root/hidden/ref/prcpgenrflag");
- var execddyncnt = 0;
-
- for(i = 1 ; i < grd_TestInfoCnts.rows ; i ++){
- grd_TestInfoCnts.rowStatus(i) = 0;
- if(model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/choi") == "true"){
- grd_TestInfoCnts.rowStatus(i) = 2;
- //액팅이 된 처방인지 체크
- if(model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/execdd") != "00000000") {
- execddyncnt++;
- }
- }
- }
-
- if(jaewonyn == "Y" && prcpgenrflag == "1"){
- if(execddyncnt == 0) {
- messageBox("입원 환자는 외래처방의 채혈 및 접수가 불가능합니다.", "I");
- return;
- }
- }else if(jaewonyn == "N" && prcpgenrflag == "2"){
- if(execddyncnt == 0) {
- messageBox("재원중인 환자만 입원처방의 채혈 및 접수가 가능합니다.", "I");
- return;
- }
- }
-
- model.setValue("/root/send/userid", model.getValue("/root/hidden/ref/userid"));
- model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid"));
- model.setValue("/root/send/data1", grd_TestInfoCnts.getUpdateData());
-
- //alert(grd_TestInfoCnts.getUpdateData());
-
- submit("TXLLR91101");
- fOpenList();
-
-
- //fOpenList();
- }
-
- function freprint(){
- //model.removeNodeset("/root/main/poctlist/");
- model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid"));
- model.setValue("/root/send/sdd", model.getValue("/root/hidden/ref/sdd"));
- model.setValue("/root/send/edd", model.getValue("/root/hidden/ref/edd"));
- submit("TRLLR91102");
- fRemark(2);
-
- }
-
- function fReExeSave(){
-
- var chk = false;
-
- for(i = 1 ; i < poctgrid.rows ; i ++){
- if(model.getValue("/root/main/poctlist["+i+"]/choi") == "true"){
- if(model.getValue("/root/main/poctlist["+i+"]/testcd") == "LOS101"){
- poctgrid.rowStatus(i) = 0;
- model.setValue("/root/main/poctlist["+i+"]/choi", "false");
- chk = true;
- }
- }else{
- if(model.getValue("/root/main/poctlist["+i+"]/testcd") == "LOS101"){
- poctgrid.rowStatus(i) = 0;
- model.setValue("/root/main/poctlist["+i+"]/choi", "false");
-
- }
- }
- }
-
- if(chk){
- alert("Glucose(Strip)(POCT) 검사는 조회만 가능 합니다.");
- }
-
-
- model.setValue("/root/send/userid", model.getValue("/root/hidden/ref/userid"));
- model.setValue("/root/send/data2", poctgrid.getUpdateData());
- submit("TXLLR91102");
- freprint();
- }
-
- function frsltdown(){
-
- var gRow = grd_TestInfoCnts.row;
- if(grd_TestInfoCnts.col == 7){
- if(event.keyCode == 13){
- if(gRow < grd_TestInfoCnts.rows){
- model.setValue("/root/main/getPoctlist/getTestInfoCnts["+grd_TestInfoCnts.row+"]/choi", "true");
-
- var tclscd = model.getValue("/root/main/getPoctlist/getTestInfoCnts["+grd_TestInfoCnts.row+"]/tclscd");
-
- grd_TestInfoCnts.row = gRow + 1;
-
- if(model.getValue("/root/main/getPoctlist/getTestInfoCnts["+grd_TestInfoCnts.row+"]/bcgbn") != "true"){
- for(i=gRow ; i > 0 ; i--){
- if(model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/tclskind") == "1"){
- if(tclscd == model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/tclscd")){
- model.setValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/choi", "true");
- return;
- }
- }
- }
- }
- }
- }
- }
- //model.refresh();
- }
-
- function fpoctdown(){
-
- if(poctgrid.col == 6){
- if(event.keyCode == 13){
- if(poctgrid.row < poctgrid.rows){
- if(model.getValue("/root/main/poctlist["+poctgrid.row+"]/testcd") == "LOS101"){
- alert("Glucose(Strip)(POCT) 검사는 수정할수 없습니다.");
- poctgrid.rowStatus(poctgrid.row) = 0;
- poctgrid.row = poctgrid.row + 1;
- }else{
- model.setValue("/root/main/poctlist["+poctgrid.row+"]/choi", "true");
- poctgrid.row = poctgrid.row + 1;
- }
- }
- }
- }
- model.refresh();
- }
-
- function fchecktrue(){
- for(i=1 ; i < grd_TestInfoCnts.rows ; i++){
- if(model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/choi") == "true"){
- grd_TestInfoCnts.rowStatus(i) = 2;
- }
- else{
- grd_TestInfoCnts.rowStatus(i) = 0;
- }
- }
- }
-
- function fcheckfalse(){
- for(i=1 ; i < poctgrid.rows ; i++){
- if(model.getValue("/root/main/poctlist["+i+"]/choi") == "true"){
- poctgrid.rowStatus(i) = 2;
- }
- else{
- poctgrid.rowStatus(i) = 0;
- }
- }
- }
-
- function fUserNMRef(){
- if(event.keyCode == 13){
- var inputval = ipt_userid.currentText;
- model.setValue("/root/hidden/ref/userid", inputval);
- if(model.getvalue("/root/hidden/ref/userid") != ""){
- model.makeValue("/root/send/userid" , model.getvalue("/root/hidden/ref/userid"));
- submit("TRLZZ00104");
- }
- }
- }
- function fKeyEvent(){
- if(event.keyCode == 13){
- // 등록번호
- if(event.target == "iptSearch"){
- fpidset();
- }
-
- // 검사자
- if(event.target == "ipt_userid"){
- fUserNMRef();
- }
- }
-
- }
-
- function fpidset(){
- var inputval = iptSearch.currentText;
- model.setValue("/root/hidden/ref/pid", inputval);
- if(model.getvalue("/root/hidden/ref/bcno") != ""){
-
- }
-
- var inputval = iptSearch.currentText;
- model.setValue("/root/hidden/ref/pid", inputval);
- if(model.getvalue("/root/hidden/ref/pid") != ""){
- model.setValue("/root/hidden/ref/pidstr" , inputval);
- //model.setValue("/root/hidden/ref/pid" , iptSearch.currentText);
- model.makeValue("/root/send/pid" , inputval);
-
- //입원 환자 여부 조회
- submit("TRLLR91103");
- var jaewonyn = model.getValue("/root/main/getJaeWonTrue/jaewonyn");
- if(jaewonyn == "Y"){
- model.setValue("/root/hidden/ref/prcpgenrflag", "2");
- }else{
- model.setValue("/root/hidden/ref/prcpgenrflag", "1");
- }
- model.setValue("/root/send/prcpgenrflag", model.getValue("/root/hidden/ref/prcpgenrflag"));
- submit("TRLLR91101");
- fRemark(1);
- freprint();
- iptSearch.selBegin = 0;
- iptSearch.selEnd = iptSearch.currentText.length;
- model.setFocus("iptSearch");
- }
- }
-
-
- function fprcpgenrflagset(){
- var inputval = iptSearch.currentText;
- model.setValue("/root/hidden/ref/pid", inputval);
- if(model.getvalue("/root/hidden/ref/pid") != ""){
- model.setValue("/root/hidden/ref/pidstr" , inputval);
- //model.setValue("/root/hidden/ref/pid" , iptSearch.currentText);
- model.makeValue("/root/send/pid" , inputval);
-
- if(model.getValue("/root/hidden/ref/prcpgenrflag") == ""){
- messageBox("처방구분을 선택해주세요.", "I");
- return;
- }
-
- model.setValue("/root/send/prcpgenrflag", model.getValue("/root/hidden/ref/prcpgenrflag"));
- submit("TRLLR91101");
- fRemark(1);
- freprint();
- iptSearch.selBegin = 0;
- iptSearch.selEnd = iptSearch.currentText.length;
- model.setFocus("iptSearch");
- }
- }
-
-
- function fGetMouseDown(grid){
- var pGrid = grid;
- model.removeNodeset("/root/hidden/popupmenu");
-
- if(event.button == 3){ // 라이트클릭 메뉴만들기...
- model.makeNode("/root/hidden/popupmenu/grid");
- model.makeNode("/root/hidden/popupmenu/grid/item");
-
- if(pGrid.mouseCol== pGrid.colRef("reptrslt")){
-
- var testcd, flag;
- if(pGrid == grd_TestInfoCnts){
- testcd = model.getvalue("/root/main/getPoctlist/getTestInfoCnts["+pGrid.mouseRow+"]/tclscd");
- flag = 1;
- }else{
- testcd = model.getvalue("/root/main/poctlist["+pGrid.mouseRow+"]/testcd");
- flag = 2;
- }
- //결과코드관련
- var n = getNodesetCount("/root/init/LB0109[etc01='" + testcd + "']");
-
- if (n > 0) {
-
- var cdNodes = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd + "']/cd");
- var cdNodes2 = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd + "']/nm");
- var dispyn = instance1.selectNodes("/root/init/LB0109[etc01='" + testcd + "']/etc03");
-
- for (i = 1; i <= n; i++) {
-
- var cd = cdNodes.item(i - 1).text;
- var nm = cdNodes2.item(i - 1).text;
- var yn = dispyn.item(i - 1).text;
- if(yn == "Y"){
- //var cd = model.getvalue("/root/init/LB0109[etc01='" + testcd + "']["+ i +"]/cd");
- //var nm = model.getvalue("/root/init/LB0109[etc01='" + testcd + "']["+ i +"]/nm");
-
- model.makeValue("/root/hidden/popupmenu/grid/item["+ i +"]/name" , "["+cd+"] "+ nm);
- model.makeValue("/root/hidden/popupmenu/grid/item["+ i +"]/func" , nm + "▦" +pGrid.mouseRow + "▦" + flag);
- //model.makeValue("/root/hidden/popupmenu/grid/item["+i+"]/value" , cd);
- }
- }
-
- }
- }
- if(pGrid.isCell(event.target) && pGrid.mouseRow >= pGrid.fixedrows){
- window.setPopupMenu(true , "/root/hidden/popupmenu/grid/item" , "name", "func" , true);
- //setPopupMenu("grd_TestInfoCnts" , true, "/root/hidden/popupmenu/grid/item", "name", "func");
- }else{
- window.setPopupMenu(false);
- }
- }
- }
-
- function fOnmenu(popupParam){
-
- if(popupParam != ""){
- var aL = popupParam.split("▦");
- fRsltCode(aL[0] , aL[1], aL[2]);
- }
- }
-
- function fRsltCode(nm , pRow , flag){
- if(flag == 1){
- model.setvalue("/root/main/getPoctlist/getTestInfoCnts["+pRow+"]/reptrslt" ,nm);
- }else{
- model.setvalue("/root/main/poctlist["+pRow+"]/reptrslt", nm);
- }
- }
-
- function fSaveChk() {
- var oldbcno = "";
- for(i=1 ; i < grd_TestInfoCnts.rows ; i++){
- if(oldbcno != "" && model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/bcgbn") == "true"
- && model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/choi") == "true"){
- if(model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/bcno") != oldbcno){
- oldbcno = model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/bcno");
- fSaveChk2(oldbcno);
-
- }
- }
- if(oldbcno == "" && model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/bcgbn") == "true"
- && model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/choi") == "true"){
-
- oldbcno = model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/bcno");
- fSaveChk2(oldbcno);
- }
-
- }
- }
-
- function fSaveChk2(bcno){
- var chk = 0;
- for(i=1 ; i < grd_TestInfoCnts.rows ; i++){
- if(model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/bcno") == bcno){
- if(model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/reptrslt") == "" && (model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/tclskind") == "2"
- || model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/tclskind") == "4" || model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/tclskind") == "5")){
- if(model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/bcno").length == 9){
- alert(model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/bcno") + " 에 누락된 결과가 있어 저장할 수 없습니다.");
- }else{
- alert(model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/tclsnm") + " 에 누락된 결과가 있어 저장할 수 없습니다.");
- }
- fNonSave(bcno);
- return;
- }
- }
- }
- }
-
- function fNonSave(bcno){
- for(i=1 ; i < grd_TestInfoCnts.rows ; i++){
- if(model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/bcno") == bcno){
- grd_TestInfoCnts.rowStatus(i) = 0;
- }
- }
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="820" pageheight="770" style="font-weight:bold; margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="group1" style="left:0px; top:0px; width:795px; height:705px; ">
- <caption id="caption2" class="tit_2" style="left:0px; top:1px; width:126px; height:13px; ">현장검사결과등록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:780px; y2:69px; "/>
- <line id="line2" class="line_1" style="x1:0px; y1:16px; x2:780px; y2:16px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:-140px; width:72px; height:23px; vertical-align:middle; ">환자명</caption>
- <output id="patnm" ref="/root/main/getPoctlist/patnm/pname" class="output_fix" style="left:350px; top:23px; width:135px; height:19px; "/>
- <line id="line3" class="line_2" style="x1:0px; y1:45px; x2:780px; y2:45px; "/>
- <caption id="caption3" class="cell_1" style="left:490px; top:21px; width:72px; height:23px; text-align:center; vertical-align:middle; ">검 사 자</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:21px; width:72px; height:23px; text-align:center; vertical-align:middle; ">등 록 번 호</caption>
- <caption id="caption9" class="cell_1" style="left:275px; top:21px; width:72px; height:23px; text-align:center; vertical-align:middle; ">환 자 명</caption>
- <output id="input1" ref="/root/hidden/ref/pid" class="output_fix" appearance="output" style="left:75px; top:23px; width:85px; height:19px; "/>
- <input id="ipt_userid" ref="/root/hidden/ref/userid" style="left:565px; top:23px; width:70px; height:19px; "/>
- <output id="output1" ref="/root/main/getUsernm/usernm" class="output_fix" style="left:638px; top:23px; width:75px; height:19px; "/>
- <button id="button23" class="btn3_letter2" style="left:719px; top:21px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeSave();
- ]]>
- </script>
- </button>
- <datagrid id="grd_TestInfoCnts" nodeset="/root/main/getPoctlist/getTestInfoCnts" class="datagrid2" caption="바코드^바코드^바코드^바코드번호^bcno^처방일자^검사명^검사결과^단위^검체명^참고치^수납^처방구분^execdeptcd^tclscd^testlrgkind^execdd" colsep="▦" colwidth="0, 30, 25, 70, 0, 80, 200, 65, 55, 90, 85, 40, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100,0" dataheight="23" ellipsis="true" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="▩" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:74px; width:780px; height:311px; border-color:#c0c0c0; ">
- <col ref="bcgbn" type="output" uncheckimage="1" style="left:20px; top:32px; width:43px; height:23px; "/>
- <col ref="bcbtn" type="output" uncheckimage="1" style="left:20px; top:32px; width:43px; height:23px; "/>
- <col checkvalue="true,false" ref="choi" type="checkbox"/>
- <col ref="bcno2"/>
- <col ref="bcno"/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="tclsnm"/>
- <col ref="reptrslt" type="input"/>
- <col ref="rsltunit"/>
- <col ref="spcnm"/>
- <col ref="ref"/>
- <col ref="rcptyn" style="text-align:center; "/>
- <col ref="prcpgenrflagnm"/>
- <col ref="execdeptcd" visibility="hidden"/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="tclscd" visibility="hidden"/>
- <col ref="testlrgkind" visibility="hidden"/>
- <col ref="spccd" visibility="hidden" style="left:683px; top:32px; width:100px; height:23px; "/>
- <col ref="prcpgenrflag" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphopedd" visibility="hidden"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="prcpdd2" visibility="hidden"/>
- <col ref="rcptstatcd" visibility="hidden"/>
- <col ref="execdd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetGridChoi(1);
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- frsltdown();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fGetMouseDown(grd_TestInfoCnts);
- ]]>
- </script>
- </datagrid>
- <caption id="caption6" class="cell_1" style="left:0px; top:391px; width:72px; height:23px; text-align:center; vertical-align:middle; ">조 회 구 간</caption>
- <caption id="caption7" style="left:198px; top:393px; width:15px; height:20px; ">~</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:415px; x2:780px; y2:415px; "/>
- <button id="button1" class="btn3_letter2" style="left:666px; top:392px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- freprint();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn3_letter2" style="left:724px; top:392px; width:56px; height:22px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fReExeSave();
- ]]>
- </script>
- </button>
- <datagrid id="poctgrid" nodeset="/root/main/poctlist" class="datagrid2" caption="바코드^바코드^바코드^바코드번호^bcno^검사명^검사결과^단위^검체명^참고치^결과일시^검사자" colsep="▦" colwidth="0, 50, 25, 80, 0, 170, 65, 50, 80,80, 125, 100, 100, 100, 100, 100" dataheight="23" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="▩" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" bind="bind_grd_TestInfoCnts" style="left:0px; top:420px; width:780px; height:280px; border-color:#c0c0c0; ">
- <col ref="bcgbn" type="output" uncheckimage="1" style="left:20px; top:32px; width:43px; height:23px; "/>
- <col ref="bcbtn" type="output" uncheckimage="1" style="left:20px; top:32px; width:43px; height:23px; "/>
- <col checkvalue="true,false" ref="choi" type="checkbox"/>
- <col ref="bcno2"/>
- <col ref="bcno"/>
- <col ref="tclsnm"/>
- <col ref="reptrslt" type="input"/>
- <col ref="ref"/>
- <col ref="spcnm"/>
- <col ref="refval"/>
- <col ref="reptdd" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="reptnm"/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="spccd" visibility="hidden"/>
- <col ref="rsltseq" visibility="hidden"/>
- <col ref="testlrgkind" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetGridChoi(0);
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- fpoctdown();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fGetMouseDown(poctgrid);
- ]]>
- </script>
- </datagrid>
- <input id="ipt_usdt" ref="/root/hidden/ref/sdd" class="input_s_essential" inputtype="date" style="left:77px; top:393px; width:110px; height:19px; "/>
- <input id="ipt_uedt" ref="/root/hidden/ref/edd" class="input_s_essential" inputtype="date" style="left:217px; top:393px; width:110px; height:19px; "/>
- <input id="iptSearch" ref="/root/hidden/ref/pid" class="input_button" navindex="1" imemode="alpha" inputtype="button" style="left:163px; top:23px; width:95px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fpidset();
- ]]>
- </script>
- <!--
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- fpidset();
- ]]>
- </script>-->
- </input>
- <caption id="caption1" class="cell_1" style="left:0px; top:47px; width:72px; height:20px; text-align:center; vertical-align:middle; ">처 방 구 분</caption>
- <select1 id="rad_prcpgenrflag" ref="/root/hidden/ref/prcpgenrflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:75px; top:49px; width:105px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>외래</label>
- <value>1</value>
- </item>
- <item>
- <label>입원</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fprcpgenrflagset();
- ]]>
- </script>
- </select1>
- <input id="ipt_3" ref="/root/hidden/ref/bcno" visibility="hidden" appearance="input" style="left:325px; top:49px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fpidset();
- ]]>
- </script>
- </input>
- <caption id="caption8" class="cell_1" visibility="hidden" style="left:250px; top:49px; width:72px; height:23px; text-align:center; vertical-align:middle; ">바코드번호</caption>
- <caption id="caption10" style="left:630px; top:50px; width:145px; height:15px; color:#ff0000; ">수납:V는 VIP 대상자임</caption>
- </group>
- <group id="group2" style="left:0px; top:710px; width:785px; height:27px; ">
- <button id="button9" class="btn4_letter2" style="left:724px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCancel();
- ]]>
- </script>
- </button>
- </group>
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
-
- var popupParam = event.description;
- fOnmenu(popupParam);
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- fKeyEvent();
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|