SPLPJ02500_내시경소견입력.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLPJ02500" position="absolute 0 0 644 424" titletext="내시경소견입력" oninit="SPLPJ02500_oninit" onload="SPLPJ02500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="내시경소견입력" class="tit_1" position="absolute 0 0 140 25"/>
  8. <Div id="grp_sea" taborder="1" position="absolute 0 25 643 65" class="div_SA">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption2" text="처방일자 :" class="search_name" position="absolute 15 12 101 29" anchor="default"/>
  12. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 552 10 558 32" anchor="default"/>
  13. <Button id="btn_sea" taborder="1" text="조회" class="btn1" position="absolute 575 10 631 32" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
  14. <Calendar id="ipt_prcphopetodd" taborder="2" class="input_essential" position="absolute 227 12 327 31" anchor="default" dateformat="yyyy-MM-dd"/>
  15. <Calendar id="ipt_prcphopefromdd" taborder="3" class="input_essential" position="absolute 107 12 207 31" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
  16. <Static id="caption9" text="~" class="search_n_b" position="absolute 211 13 223 30" anchor="default"/>
  17. <Edit id="ipt_pid" taborder="4" class="input_essential" position="absolute 439 11 519 30" anchor="default" onkeydown="grp_sea_ipt_pid_onkeydown"/>
  18. <Static id="caption42" text="등록번호 :" class="search_name" position="absolute 350 12 436 29" anchor="default"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Static id="caption1" text="처방목록" class="tit_2" position="absolute 0 70 120 87"/>
  23. <Shape id="line1" class="line_10" position="absolute 0 86 643 92"/>
  24. <Grid id="grd_list" taborder="2" binddataset="ds_main_prtlhislist_item" useinputpanel="false" position="absolute 0 91 643 391" cellsizingtype="both" extendsizetype="row" selecttype="multirow" oncelldblclick="grd_list_oncelldblclick">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="25" band="left"/>
  29. <Column size="100"/>
  30. <Column size="140"/>
  31. <Column size="100"/>
  32. <Column size="279"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. </Columns>
  36. <Rows>
  37. <Row size="24" band="head"/>
  38. <Row size="24"/>
  39. </Rows>
  40. <Band id="head">
  41. <Cell/>
  42. <Cell col="1" text="처방일자"/>
  43. <Cell col="2" text="바코드번호"/>
  44. <Cell col="3" text="진료의"/>
  45. <Cell col="4" text="처방명"/>
  46. <Cell col="5" text="reqno"/>
  47. <Cell col="6" text="formrecseq"/>
  48. </Band>
  49. <Band id="body">
  50. <Cell celltype="head" text="expr:currow+1"/>
  51. <Cell col="1" displaytype="date" style="background:EXPR(formrecseq == 0 ? '#FFFFFF' : '#FFF500');background2:EXPR(formrecseq == 0 ? '#FFFFFF' : '#FFF500');" text="bind:prcpdd"/>
  52. <Cell col="2" displaytype="text" style="background:EXPR(formrecseq == 0 ? '#FFFFFF' : '#FFF500');background2:EXPR(formrecseq == 0 ? '#FFFFFF' : '#FFF500');" text="bind:spcbarcdno"/>
  53. <Cell col="3" displaytype="text" style="background:EXPR(formrecseq == 0 ? '#FFFFFF' : '#FFF500');background2:EXPR(formrecseq == 0 ? '#FFFFFF' : '#FFF500');" text="bind:orddrid"/>
  54. <Cell col="4" displaytype="text" style="background:EXPR(formrecseq == 0 ? '#FFFFFF' : '#FFF500');background2:EXPR(formrecseq == 0 ? '#FFFFFF' : '#FFF500');" text="bind:prcpnm"/>
  55. <Cell col="5" text="bind:reqno"/>
  56. <Cell col="6" text="bind:formrecseq" enable="true"/>
  57. </Band>
  58. </Format>
  59. </Formats>
  60. </Grid>
  61. <Edit id="ipt_execprcpuniqno" taborder="3" class="input_search" visible="false" position="absolute 370 67 450 86" onkeydown="ipt_execprcpuniqno_onkeydown"/>
  62. <Edit id="ipt_reqno" taborder="4" class="input_search" visible="false" position="absolute 490 67 570 86" onkeydown="ipt_reqno_onkeydown"/>
  63. <Edit id="ipt_prcpdd" taborder="5" class="input_search" visible="false" position="absolute 270 67 350 86" onkeydown="ipt_prcpdd_onkeydown"/>
  64. <Button id="btn_confirm1" taborder="6" text="확인" class="btn4" position="absolute 527 396 583 418" onclick="btn_confirm1_onclick"/>
  65. <Button id="btn_cancel1" taborder="7" text="취소" class="btn4" position="absolute 587 396 643 418" onclick="btn_cancel1_onclick"/>
  66. </Layout>
  67. </Layouts>
  68. <Objects>
  69. <Dataset id="ds_main_prtlhislist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  70. <ColumnInfo>
  71. <Column id="prcpdd" type="STRING" size="256"/>
  72. <Column id="spcbarcdno" type="STRING" size="256"/>
  73. <Column id="orddrid" type="STRING" size="256"/>
  74. <Column id="prcpnm" type="STRING" size="256"/>
  75. <Column id="reqno" type="STRING" size="256"/>
  76. <Column id="formrecseq" type="STRING" size="256"/>
  77. </ColumnInfo>
  78. <Rows>
  79. <Row>
  80. <Col id="prcpdd"/>
  81. <Col id="spcbarcdno"/>
  82. <Col id="orddrid"/>
  83. <Col id="prcpnm"/>
  84. <Col id="reqno"/>
  85. <Col id="formrecseq"/>
  86. </Row>
  87. </Rows>
  88. </Dataset>
  89. <Dataset id="ds_send_baseinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  90. <ColumnInfo>
  91. <Column id="prcphopefromdd" type="STRING" size="256"/>
  92. <Column id="prcphopetodd" type="STRING" size="256"/>
  93. <Column id="pid" type="STRING" size="256"/>
  94. <Column id="prcpdd" type="STRING" size="256"/>
  95. <Column id="execprcpuniqno" type="STRING" size="256"/>
  96. <Column id="reqno" type="STRING" size="256"/>
  97. </ColumnInfo>
  98. <Rows>
  99. <Row>
  100. <Col id="prcphopefromdd"/>
  101. <Col id="prcphopetodd"/>
  102. <Col id="pid"/>
  103. <Col id="prcpdd"/>
  104. <Col id="execprcpuniqno"/>
  105. <Col id="reqno"/>
  106. </Row>
  107. </Rows>
  108. </Dataset>
  109. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  110. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  111. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  112. </Objects>
  113. <Bind>
  114. <BindItem id="item0" compid="grp_sea.ipt_prcphopefromdd" propid="value" datasetid="ds_send_baseinfo" columnid="prcphopefromdd"/>
  115. <BindItem id="item1" compid="grp_sea.ipt_prcphopetodd" propid="value" datasetid="ds_send_baseinfo" columnid="prcphopetodd"/>
  116. <BindItem id="item2" compid="grp_sea.ipt_pid" propid="value" datasetid="ds_send_baseinfo" columnid="pid"/>
  117. <BindItem id="item3" compid="ipt_prcpdd" propid="value" datasetid="ds_send_baseinfo" columnid="prcpdd"/>
  118. <BindItem id="item4" compid="ipt_execprcpuniqno" propid="value" datasetid="ds_send_baseinfo" columnid="execprcpuniqno"/>
  119. <BindItem id="item5" compid="ipt_reqno" propid="value" datasetid="ds_send_baseinfo" columnid="reqno"/>
  120. </Bind>
  121. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  122. * System Name :
  123. * Job Name :
  124. * Creator :
  125. * Make Date : 2015-11-13
  126. * Description :
  127. *---------------------------------------------------------------------------------------
  128. * Modify Date Modifier Modify Description
  129. *---------------------------------------------------------------------------------------
  130. * 2015-11-13 Live Converter TF->XP
  131. *
  132. *---------------------------------------------------------------------------------------
  133. ****************************************************************************************/
  134. //=======================================================================================
  135. // Lib Include
  136. //---------------------------------------------------------------------------------------
  137. include "com_commonxp::comm_main.xjs";
  138. //=======================================================================================
  139. // Global Form Variable
  140. //---------------------------------------------------------------------------------------
  141. var arErrorCode = new HashArray();
  142. //=======================================================================================
  143. // Function
  144. //---------------------------------------------------------------------------------------
  145. /****************************************************************************************
  146. * Argument : N/A
  147. * Description : 내시경소견입력 formrecseq 업데이트
  148. ****************************************************************************************/
  149. function fExeEScopeCmt() {
  150. ds_send_baseinfo.setColumn(0,"reqno",ds_main_prtlhislist_item.getColumn(ds_main_prtlhislist_item.rowposition, "reqno"));
  151. var oParam = {};
  152. oParam.id = "TXLPJ02501";
  153. oParam.service = "plgyacptmngtapp.SpecimenAccept";
  154. oParam.method = "reqExeEScopeCmt";
  155. oParam.inds = "baseinfo=ds_send_baseinfo";
  156. oParam.transaction = true;
  157. oParam.async = false;
  158. oParam.callback = "cf_TXLPJ02501";
  159. tranf_submit(oParam);
  160. if(arErrorCode.pop("TXLPJ02501") > -1) {
  161. sysf_messageBox("저장이 ", "I002");
  162. fGetEScopeCmt();
  163. }
  164. }
  165. function cf_TXLPJ02501(sSvcId, nErrorCode, sErrorMsg) {
  166. arErrorCode.push(sSvcId, nErrorCode);
  167. }
  168. /****************************************************************************************
  169. * Argument : N/A
  170. * Description : 내시경소견관련 처방 조회
  171. ****************************************************************************************/
  172. function fGetEScopeCmt() {
  173. var oParam = {};
  174. oParam.id = "TRLPJ02501";
  175. oParam.service = "plgyacptmngtapp.SpecimenAccept";
  176. oParam.method = "reqGetEScopeCmt";
  177. oParam.inds = "baseinfo=ds_send_baseinfo";
  178. oParam.outds = "ds_main_prtlhislist_item=item";
  179. oParam.async = false;
  180. oParam.callback = "cf_TRLPJ02501";
  181. tranf_submit(oParam);
  182. if(arErrorCode.pop("TRLPJ02501") > -1) {
  183. // var nodelist = instance1.selectNodes("ds_main_prtlhislist_item");
  184. // for(var i = 0; i <= nodelist.length; i++){
  185. // if(ds_main_prtlhislist_item.getColumn(i, "formrecseq") == "0"){
  186. // grd_list.cellstyle("background-color", i, 0, i, 5) = "#FFFFFF";
  187. // }else {
  188. // grd_list.cellstyle("background-color", i, 0, i, 5) = "#FFF500";
  189. // }
  190. // }
  191. }
  192. }
  193. function cf_TRLPJ02501(sSvcId, nErrorCode, sErrorMsg) {
  194. arErrorCode.push(sSvcId, nErrorCode);
  195. dsf_setDefaultVal(ds_main_prtlhislist_item, "formrecseq:0");
  196. }
  197. //=======================================================================================
  198. // Event
  199. //---------------------------------------------------------------------------------------
  200. /****************************************************************************************
  201. * Components : Form
  202. * Components ID : SPLPJ02500
  203. * Event : oninit
  204. * Argument : 01.obj : Object Event has occurred
  205. * : 02.e : Event Object
  206. * Description : 화면 처음 초기화시 폼초기화
  207. ****************************************************************************************/
  208. function SPLPJ02500_oninit(obj:Form, e:InitEventInfo)
  209. {
  210. frmf_initForm(obj); // 폼 초기화
  211. }
  212. /****************************************************************************************
  213. * Components : Form
  214. * Components ID : SPLPJ02500
  215. * Event : onload
  216. * Argument : 01.obj : Object Event has occurred
  217. * : 02.e : Event Object
  218. * Description : 화면 처음 초기화시 폼초기화
  219. ****************************************************************************************/
  220. function SPLPJ02500_onload(obj:Form, e:LoadEventInfo)
  221. {
  222. // 등록번호, formrecseq 를 받아서 처방을 조회 함
  223. if (frmf_checkOpener()) { //opener 검사
  224. var param = opener.frmf_getParameter("opener_parameter_id"); //opener parameter value를 get
  225. if(!utlf_isNull(param)) { // opener parameter value가 있는 경우
  226. //parameter value를 이용하여 프로그램 수행
  227. var condarray = param.split("▦");
  228. ds_send_baseinfo.setColumn(0,"pid", condarray[0]);
  229. ds_send_baseinfo.setColumn(0,"prcpdd", condarray[1]);
  230. ds_send_baseinfo.setColumn(0,"execprcpuniqno", condarray[2]);
  231. }
  232. }
  233. ds_send_baseinfo.setColumn(0,"prcphopefromdd", utlf_getCurrentDate());
  234. ds_send_baseinfo.setColumn(0,"prcphopetodd", utlf_getCurrentDate() );
  235. grp_sea.ipt_prcphopefromdd.value = grp_sea.ipt_prcphopefromdd.value.getAddDate(-7,"D").getDateFormat("YYYYMMDD") ;
  236. fGetEScopeCmt();
  237. }
  238. /****************************************************************************************
  239. * Components : Edit
  240. * Components ID : grp_sea.ipt_pid
  241. * Event : onkeydown
  242. * Argument : 01.obj : Object Event has occurred
  243. * : 02.e : Event Object
  244. * Description : 등록번호 입력 후 조회
  245. ****************************************************************************************/
  246. function grp_sea_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  247. {
  248. if (e.keycode == 13) {
  249. obj.updateToDataset();
  250. grp_sea_btn_sea_onclick();
  251. }
  252. }
  253. /****************************************************************************************
  254. * Components : Button
  255. * Components ID : grp_sea.btn_sea
  256. * Event : onclick
  257. * Argument : 01.obj : Object Event has occurred
  258. * : 02.e : Event Object
  259. * Description : 조회
  260. ****************************************************************************************/
  261. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  262. {
  263. fGetEScopeCmt();
  264. }
  265. /****************************************************************************************
  266. * Components : Edit
  267. * Components ID : ipt_prcpdd
  268. * Event : onkeydown
  269. * Argument : 01.obj : Object Event has occurred
  270. * : 02.e : Event Object
  271. * Description :
  272. ****************************************************************************************/
  273. function ipt_prcpdd_onkeydown(obj:Edit, e:KeyEventInfo)
  274. {
  275. if (e.keycode == 13) {
  276. obj.updateToDataset();
  277. grp_sea_btn_sea_onclick();
  278. }
  279. }
  280. /****************************************************************************************
  281. * Components : Edit
  282. * Components ID : ipt_execprcpuniqno
  283. * Event : onkeydown
  284. * Argument : 01.obj : Object Event has occurred
  285. * : 02.e : Event Object
  286. * Description :
  287. ****************************************************************************************/
  288. function ipt_execprcpuniqno_onkeydown(obj:Edit, e:KeyEventInfo)
  289. {
  290. if (e.keycode == 13) {
  291. obj.updateToDataset();
  292. grp_sea_btn_sea_onclick();
  293. }
  294. }
  295. /****************************************************************************************
  296. * Components : Edit
  297. * Components ID : ipt_reqno
  298. * Event : onkeydown
  299. * Argument : 01.obj : Object Event has occurred
  300. * : 02.e : Event Object
  301. * Description :
  302. ****************************************************************************************/
  303. function ipt_reqno_onkeydown(obj:Edit, e:KeyEventInfo)
  304. {
  305. if (e.keycode == 13) {
  306. obj.updateToDataset();
  307. grp_sea_btn_sea_onclick();
  308. }
  309. }
  310. /****************************************************************************************
  311. * Components : Grid
  312. * Components ID : grd_list
  313. * Event : oncelldblclick
  314. * Argument : 01.obj : Object Event has occurred
  315. * : 02.e : Event Object
  316. * Description : 처방목록 선택
  317. ****************************************************************************************/
  318. function grd_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  319. {
  320. fExeEScopeCmt();
  321. }
  322. /****************************************************************************************
  323. * Components : Button
  324. * Components ID : grp_sea.btn_sea
  325. * Event : onclick
  326. * Argument : 01.obj : Object Event has occurred
  327. * : 02.e : Event Object
  328. * Description : 조회
  329. ****************************************************************************************/
  330. function btn_confirm1_onclick(obj:Button, e:ClickEventInfo)
  331. {
  332. if(ds_main_prtlhislist_item.rowposition > -1 ){
  333. fExeEScopeCmt();
  334. }else {
  335. sysf_messageBox("처방을 먼저 선택하세요","E999");
  336. }
  337. }
  338. /****************************************************************************************
  339. * Components : Button
  340. * Components ID : btn_cancel1
  341. * Event : onclick
  342. * Argument : 01.obj : Object Event has occurred
  343. * : 02.e : Event Object
  344. * Description : 취소
  345. ****************************************************************************************/
  346. function btn_cancel1_onclick(obj:Button, e:ClickEventInfo)
  347. {
  348. this.close();
  349. }
  350. ]]></Script>
  351. </Form>
  352. </FDL>