SPLPJ02100_병리번호목록.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLPJ02100" position="absolute 0 0 566 566" titletext="병리번호목록" oninit="SPLPJ02100_oninit" onload="SPLPJ02100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_cls" taborder="1" text="닫기" class="btn4" position="absolute 494 527 550 549" onclick="btn_cls_onclick"/>
  8. <Static id="caption1" text="병리번호목록" class="tit_2" position="absolute 5 10 166 24"/>
  9. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 26 550 32" style="strokepen:3 solid #33bbbbff;"/>
  10. <Radio id="rdo_ptno" taborder="2" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 415 8 550 28" onitemchanged="rdo_ptno_onitemchanged" value="1" index="1">
  11. <Dataset id="innerdataset">
  12. <ColumnInfo>
  13. <Column id="codecolumn"/>
  14. <Column id="datacolumn"/>
  15. </ColumnInfo>
  16. <Rows>
  17. <Row>
  18. <Col id="codecolumn">0</Col>
  19. <Col id="datacolumn">이전번호</Col>
  20. </Row>
  21. <Row>
  22. <Col id="codecolumn">1</Col>
  23. <Col id="datacolumn">결번번호</Col>
  24. </Row>
  25. </Rows>
  26. </Dataset>
  27. </Radio>
  28. <Grid id="grd_ptnolist" taborder="3" binddataset="ds_grd_ptnolist" useinputpanel="false" position="absolute 0 30 550 522" autofittype="col" oncelldblclick="grd_ptnolist_oncelldblclick">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="80"/>
  35. <Column size="80"/>
  36. <Column size="70"/>
  37. <Column size="80"/>
  38. <Column size="80"/>
  39. <Column size="60"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="90"/>
  43. <Column size="0"/>
  44. <Column size="0"/>
  45. <Column size="0"/>
  46. </Columns>
  47. <Rows>
  48. <Row size="24" band="head"/>
  49. <Row size="24"/>
  50. </Rows>
  51. <Band id="head">
  52. <Cell text="instcd"/>
  53. <Cell col="1" text="ptno"/>
  54. <Cell col="2" text="병리번호"/>
  55. <Cell col="3" text="육안검사의"/>
  56. <Cell col="4" text="등록번호"/>
  57. <Cell col="5" text="환자명"/>
  58. <Cell col="6" text="접수일자"/>
  59. <Cell col="7" text="접수시간"/>
  60. <Cell col="8" text="접수번호"/>
  61. <Cell col="9" text="spccd"/>
  62. <Cell col="10" text="검체명"/>
  63. <Cell col="11" text="검체접수일자"/>
  64. <Cell col="12" text="검체접수번호"/>
  65. <Cell col="13" text="접수일련번호"/>
  66. </Band>
  67. <Band id="body">
  68. <Cell text="bind:instcd"/>
  69. <Cell col="1" text="bind:ptno"/>
  70. <Cell col="2" class="text_center" text="bind:dispptno"/>
  71. <Cell col="3" text="bind:grosdrnm"/>
  72. <Cell col="4" class="text_center" text="bind:pid"/>
  73. <Cell col="5" class="text_center" text="bind:patnm"/>
  74. <Cell col="6" displaytype="date" edittype="date" class="text_center" text="bind:acptdd" mask="yyyy-MM-dd"/>
  75. <Cell col="7" displaytype="date" edittype="date" text="bind:acpttm" mask="hh:mm:ss"/>
  76. <Cell col="8" text="bind:acptno"/>
  77. <Cell col="9" text="bind:spccd"/>
  78. <Cell col="10" style="align:left middle;" text="bind:spcnm"/>
  79. <Cell col="11" text="bind:spcacptdd"/>
  80. <Cell col="12" text="bind:spcacptno"/>
  81. <Cell col="13" text="bind:acptseqno"/>
  82. </Band>
  83. </Format>
  84. </Formats>
  85. </Grid>
  86. </Layout>
  87. </Layouts>
  88. <Objects>
  89. <Dataset id="ds_grd_ptnolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  90. <ColumnInfo>
  91. <Column id="instcd" type="STRING"/>
  92. <Column id="ptno" type="STRING"/>
  93. <Column id="dispptno" type="STRING"/>
  94. <Column id="grosdrnm" type="STRING"/>
  95. <Column id="pid" type="STRING"/>
  96. <Column id="patnm" type="STRING"/>
  97. <Column id="acptdd" type="STRING"/>
  98. <Column id="acpttm" type="STRING"/>
  99. <Column id="acptno" type="STRING"/>
  100. <Column id="spccd" type="STRING"/>
  101. <Column id="spcnm" type="STRING"/>
  102. <Column id="spcacptdd" type="STRING"/>
  103. <Column id="spcacptno" type="STRING"/>
  104. <Column id="acptseqno" type="STRING"/>
  105. </ColumnInfo>
  106. </Dataset>
  107. <Dataset id="ds_obj_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  108. <ColumnInfo>
  109. <Column id="instcd" type="STRING" size="256"/>
  110. <Column id="pid" type="STRING" size="256"/>
  111. <Column id="dispptno" type="STRING" size="256"/>
  112. <Column id="ptno" type="STRING" size="256"/>
  113. <Column id="path" type="STRING" size="256"/>
  114. </ColumnInfo>
  115. <Rows>
  116. <Row/>
  117. </Rows>
  118. </Dataset>
  119. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  120. <ColumnInfo>
  121. <Column id="ptnoflagcd" type="STRING" size="256"/>
  122. </ColumnInfo>
  123. <Rows>
  124. <Row/>
  125. </Rows>
  126. </Dataset>
  127. </Objects>
  128. <Bind>
  129. <BindItem id="item0" compid="rdo_ptno" propid="value" datasetid="ds_init" columnid="ptnoflagcd"/>
  130. </Bind>
  131. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  132. * System Name :
  133. * Job Name :
  134. * Creator :
  135. * Make Date : 2015-11-13
  136. * Description :
  137. *---------------------------------------------------------------------------------------
  138. * Modify Date Modifier Modify Description
  139. *---------------------------------------------------------------------------------------
  140. * 2015-11-13 Live Converter TF->XP
  141. *
  142. *---------------------------------------------------------------------------------------
  143. ****************************************************************************************/
  144. include "com_commonxp::comm_main.xjs";
  145. var bfptnocnclptno = "0";
  146. function SPLPJ02100_oninit(obj:Form, e:InitEventInfo)
  147. {
  148. frmf_initForm(obj);
  149. }
  150. function SPLPJ02100_onload(obj:Form, e:LoadEventInfo)
  151. {
  152. grdf_initGrid(grd_ptnolist);
  153. fExeInitialize();
  154. }
  155. function fExeInitialize()
  156. {
  157. if(frmf_checkOpener())
  158. {
  159. try
  160. {
  161. ds_obj_send.copyData(arg_ds_send);
  162. }
  163. catch(e)
  164. {
  165. }
  166. }
  167. if(bfptnocnclptno == "1")
  168. {
  169. rdo_ptno.value = "1";
  170. }
  171. else
  172. {
  173. rdo_ptno.value = "0";
  174. }
  175. // if (opener.ds_pop_ptno.getColumn(0,"bfptnocnclptno") == "1") {
  176. // rdo_ptno.value = "1";
  177. // }else {
  178. // rdo_ptno.value = "1";
  179. // }
  180. fGetBfAfPtNoList();
  181. }
  182. function fGetBfAfPtNoList()
  183. {
  184. // dsf_createDsRow("ds_send", [{col : "instcd", val : opener.ds_pop_ptno.getColumn(0, "instcd")}
  185. // ,{col : "pid", val : opener.ds_pop_ptno.getColumn(0, "pid")}
  186. // ,{col : "ptnoflagcd", val : rdo_ptno.value}]);
  187. dsf_createDsRow("ds_send", [{col : "instcd", val : ds_obj_send.getColumn(0, "instcd")}
  188. ,{col : "pid", val : ds_obj_send.getColumn(0, "pid")}
  189. ,{col : "ptnoflagcd", val : rdo_ptno.value}]);
  190. var oParam = {};
  191. oParam.id = "TRLPJ02101";
  192. oParam.service = "plgyacptmngtapp.SpecimenAccept";
  193. oParam.method = "reqGetBfAfPtNoList";
  194. oParam.inds = "refdata=ds_send";
  195. oParam.outds = "ds_grd_ptnolist=reflist";
  196. oParam.async = false;
  197. //oParam.callback = "cf_TRLPJ02101";
  198. tranf_submit(oParam);
  199. }
  200. function fExePtNoChange()
  201. {
  202. fGetBfAfPtNoList();
  203. }
  204. function btn_cls_onclick(obj:Button, e:ClickEventInfo)
  205. {
  206. this.close();
  207. }
  208. function rdo_ptno_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  209. {
  210. fExePtNoChange();
  211. }
  212. /* @group : 의뢰지 검체정보
  213. * @ver : 2007.07.03 (CMCDEV-0001)
  214. * @by : 유동철(ACK)
  215. * @-----------------------------------
  216. * @type : function
  217. * @access : public
  218. * @desc : 병리번호 선택 처리 Function
  219. */
  220. // function lf_ExeGridSelect() {
  221. //
  222. // var grdRow = ds_grd_ptnolist.rowposition;
  223. //
  224. // if (grdRow >= 0 ) {
  225. // // Continue
  226. // } else {
  227. // return false;
  228. // }
  229. //
  230. // trace('aaa '+ ds_grd_ptnolist.getColumn(grdRow,"ptno"));
  231. // //---------------------------------------------------------------------------------------
  232. // // opener.ds_pop_ptno.setColumn(0,"ptno",ds_grd_ptnolist.getColumn(grdRow,"ptno"));
  233. // // opener.ds_pop_ptno.setColumn(0,"dispptno",ds_grd_ptnolist.getColumn(grdRow,"dispptno"));
  234. //
  235. // ds_obj_send.setColumn(0,"ptno",ds_grd_ptnolist.getColumn(grdRow,"ptno"));
  236. // ds_obj_send.setColumn(0,"dispptno",ds_grd_ptnolist.getColumn(grdRow,"dispptno"));
  237. // //---------------------------------------------------
  238. // // if (ds_init.getColumn(0,"ptnoflagcd") == "0") {
  239. // // opener.ds_pop_ptno.setColumn(0,"bfacptdd", ds_grd_ptnolist.getColumn(grdRow,"acptdd"));
  240. // // opener.ds_pop_ptno.setColumn(0,"bfacptno", ds_grd_ptnolist.getColumn(grdRow,"acptno"));
  241. // // opener.ds_pop_ptno.setColumn(0,"bfacptseqno", ds_grd_ptnolist.getColumn(grdRow,"acptseqno"));
  242. // // opener.ds_pop_ptno.setColumn(0,"reuseflagcd", "0");
  243. // // opener.ds_pop_ptno.setColumn(0,"bfspcacptdd",ds_grd_ptnolist.getColumn(grdRow,"spcacptdd"));
  244. // // opener.ds_pop_ptno.setColumn(0,"bfspcacptno",ds_grd_ptnolist.getColumn(grdRow,"spcacptno"));
  245. // // } else {
  246. // // opener.ds_pop_ptno.setColumn(0,"bfacptdd","-");
  247. // // opener.ds_pop_ptno.setColumn(0,"bfacptno","-");
  248. // // opener.ds_pop_ptno.setColumn(0,"bfacptseqno","0");
  249. // // opener.ds_pop_ptno.setColumn(0,"reuseflagcd","1");
  250. // // opener.ds_pop_ptno.setColumn(0,"bfspcacptdd","-");
  251. // // opener.ds_pop_ptno.setColumn(0,"bfspcacptno","-");
  252. // // }
  253. //
  254. // if (ds_init.getColumn(0,"ptnoflagcd") == "0") {
  255. // ds_obj_send.setColumn(0,"bfacptdd", ds_grd_ptnolist.getColumn(grdRow,"acptdd"));
  256. // ds_obj_send.setColumn(0,"bfacptno", ds_grd_ptnolist.getColumn(grdRow,"acptno"));
  257. // ds_obj_send.setColumn(0,"bfacptseqno", ds_grd_ptnolist.getColumn(grdRow,"acptseqno"));
  258. // ds_obj_send.setColumn(0,"reuseflagcd", "0");
  259. // ds_obj_send.setColumn(0,"bfspcacptdd",ds_grd_ptnolist.getColumn(grdRow,"spcacptdd"));
  260. // ds_obj_send.setColumn(0,"bfspcacptno",ds_grd_ptnolist.getColumn(grdRow,"spcacptno"));
  261. // } else {
  262. // ds_obj_send.setColumn(0,"bfacptdd","-");
  263. // ds_obj_send.setColumn(0,"bfacptno","-");
  264. // ds_obj_send.setColumn(0,"bfacptseqno","0");
  265. // ds_obj_send.setColumn(0,"reuseflagcd","1");
  266. // ds_obj_send.setColumn(0,"bfspcacptdd","-");
  267. // ds_obj_send.setColumn(0,"bfspcacptno","-");
  268. // }
  269. //
  270. // this.close();
  271. // }
  272. function lf_ExeGridSelect()
  273. {
  274. //var grdRow = grd_ptnolist.row;
  275. var grdRow = ds_grd_ptnolist.rowposition;
  276. trace("grdRow="+ds_grd_ptnolist.rowposition);
  277. //if (grdRow > 0 && grd_ptnolist.isCell(event.target) && grdRow >= grd_ptnolist.fixedRows)
  278. if(grdRow > -1 )
  279. {
  280. // Continue
  281. }
  282. else
  283. {
  284. return false;
  285. }
  286. //---------------------------------------------------------------------------------------
  287. //model.property("ptno") = model.getValue("/root/main/ptno/ptnolist["+grdRow+"]/ptno");
  288. //model.property("dispptno") = model.getValue("/root/main/ptno/ptnolist["+grdRow+"]/dispptno");
  289. opener.frmf_setParameter("ptno", ds_grd_ptnolist.getColumn(grdRow, "ptno"));
  290. trace("ptno="+ds_grd_ptnolist.getColumn(grdRow, "ptno"));
  291. opener.frmf_setParameter("dispptno", ds_grd_ptnolist.getColumn(grdRow, "dispptno"));
  292. //---------------------------------------------------
  293. //if (model.getValue("/root/init/ptnoflagcd") == "0")
  294. if(ds_init.getColumn(0, "ptnoflagcd") == "0")
  295. {
  296. opener.frmf_setParameter("bfacptdd", ds_grd_ptnolist.getColumn(grdRow, "acptdd"));
  297. opener.frmf_setParameter("bfacptno", ds_grd_ptnolist.getColumn(grdRow, "acptno"));
  298. opener.frmf_setParameter("bfacptseqno", ds_grd_ptnolist.getColumn(grdRow, "acptseqno"));
  299. opener.frmf_setParameter("reuseflagcd", "0");
  300. opener.frmf_setParameter("bfspcacptdd", ds_grd_ptnolist.getColumn(grdRow, "spcacptdd"));
  301. opener.frmf_setParameter("bfspcacptno", ds_grd_ptnolist.getColumn(grdRow, "spcacptno"));
  302. }
  303. else
  304. {
  305. opener.frmf_setParameter("bfacptdd", "-");
  306. opener.frmf_setParameter("bfacptno", "-");
  307. opener.frmf_setParameter("bfacptseqno", "0");
  308. opener.frmf_setParameter("reuseflagcd", "1");
  309. opener.frmf_setParameter("bfspcacptdd", "-");
  310. opener.frmf_setParameter("bfspcacptno", "-");
  311. }
  312. this.close();
  313. }
  314. function grd_ptnolist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  315. {
  316. lf_ExeGridSelect();
  317. }
  318. ]]></Script>
  319. </Form>
  320. </FDL>