SMMNS00700_기준자료관리.xfdl 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNS00700" position="absolute 0 0 890 760" titletext="기준자료관리" oninit="SMMNS00700_oninit" onload="SMMNS00700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 15 880 759" id="group1" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute 0 69 879 75" linetype="horizontal" id="line6" class="line_10"/>
  11. <Static text="처방 code관리" position="absolute 0 53 135 69" align="align:center middle;" id="caption22" class="tit_2"/>
  12. <Button position="absolute 782 49 835 68" id="button1" class="btn2" text="행삭제" onclick="group1_button1_onclick"/>
  13. <Button position="absolute 726 49 779 68" id="button2" class="btn2" text="행추가" onclick="group1_button2_onclick"/>
  14. <Button position="absolute 838 49 880 68" id="button3" class="btn5" text="저장" onclick="group1_button3_onclick"/>
  15. <Div position="absolute 0 10 880 45" align="align:center top;" id="group2" class="div_SA">
  16. <Layouts>
  17. <Layout>
  18. <Static text="전문분야 :" position="absolute 16 9 95 26" id="caption1" class="search_name"/>
  19. <Shape position="absolute 794 7 800 29" linetype="vertical" id="line1" class="line_4"/>
  20. <Combo position="absolute 95 8 310 27" id="cmb_spcl" class="combo_search" innerdataset="@ds_hidden_spclcarefildflaginfo_spclcarefildflaginfolist" datacolumn="nm" codecolumn="cd" onitemchanged="group1_group2_cmb_spcl_onitemchanged"/>
  21. <Button position="absolute 813 7 869 29" id="btn_select" class="btn1" text="조회" onclick="group1_group2_btn_select_onclick"/>
  22. </Layout>
  23. </Layouts>
  24. </Div>
  25. <Grid position="absolute 0 74 880 367" id="grd_standlist" binddataset="ds_main_spclstand_spcllist">
  26. <Formats>
  27. <Format id="default">
  28. <Columns>
  29. <Column size="20" band="left"/>
  30. <Column size="42"/>
  31. <Column size="70"/>
  32. <Column size="140"/>
  33. <Column size="321"/>
  34. <Column size="90"/>
  35. <Column size="127"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. </Columns>
  39. <Rows>
  40. <Row size="24" band="head"/>
  41. <Row size="24"/>
  42. </Rows>
  43. <Band id="head">
  44. <Cell/>
  45. <Cell col="1" text="상태"/>
  46. <Cell col="2" text="의뢰구분"/>
  47. <Cell col="3" text="처방코드"/>
  48. <Cell col="4" text="처방명/의뢰사유"/>
  49. <Cell col="5" text="현장검사"/>
  50. <Cell col="6" text="시행체크방법"/>
  51. <Cell col="7" text="전문분야"/>
  52. <Cell col="8" text="의뢰구문"/>
  53. </Band>
  54. <Band id="body">
  55. <Cell celltype="head" expr="expr:currow + 1"/>
  56. <Cell col="1" text="bind:stat"/>
  57. <Cell col="2" displaytype="combo" edittype="combo" text="bind:reqflag" combodataset="ds_reqflag" combocodecol="value" combodatacol="label"/>
  58. <Cell col="3" text="bind:prcpcd"/>
  59. <Cell col="4" text="bind:hngnm"/>
  60. <Cell col="5" displaytype="combo" edittype="combo" text="bind:poctyn" combodataset="ds_poctyn" combocodecol="value" combodatacol="label"/>
  61. <Cell col="6" displaytype="combo" edittype="combo" text="bind:execmthdflag" combodataset="ds_execmthdflag" combocodecol="value" combodatacol="label"/>
  62. <Cell col="7" text="bind:hspclflag"/>
  63. <Cell col="8" text="bind:hreqflag"/>
  64. </Band>
  65. </Format>
  66. </Formats>
  67. </Grid>
  68. <Static text="처방정보조회" position="absolute 0 393 135 409" align="align:center middle;" id="caption3" class="tit_2"/>
  69. <Shape position="absolute 0 409 879 415" linetype="horizontal" id="line2" class="line_10"/>
  70. <Static text="조회구분" position="absolute 3 414 58 437" align="align:center middle;" id="caption13" class="cell_1" style="padding:0 0 0 3;"/>
  71. <Shape position="absolute 0 437 879 443" align="align:center bottom;" linetype="horizontal" id="line3" class="line_2"/>
  72. <Radio position="absolute 65 416 200 436" id="rdo_prcp" class="radio_search" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" onitemclick="group1_rdo_prcp_onitemclick">
  73. <Dataset id="innerdataset">
  74. <ColumnInfo>
  75. <Column id="codecolumn"/>
  76. <Column id="datacolumn"/>
  77. </ColumnInfo>
  78. <Rows>
  79. <Row>
  80. <Col id="codecolumn">C</Col>
  81. <Col id="datacolumn">처방코드</Col>
  82. </Row>
  83. <Row>
  84. <Col id="codecolumn">N</Col>
  85. <Col id="datacolumn">처방명</Col>
  86. </Row>
  87. </Rows>
  88. </Dataset>
  89. </Radio>
  90. <Button position="absolute 838 414 880 433" id="btn_prcpins" class="btn5" text="저장" onclick="group1_btn_prcpins_onclick"/>
  91. <Grid position="absolute 0 444 880 737" id="grd_prcplist" binddataset="ds_main_prcpinfo_prcplist">
  92. <Formats>
  93. <Format id="default">
  94. <Columns>
  95. <Column size="20" band="left"/>
  96. <Column size="42"/>
  97. <Column size="100"/>
  98. <Column size="70"/>
  99. <Column size="140"/>
  100. <Column size="271"/>
  101. <Column size="90"/>
  102. <Column size="127"/>
  103. </Columns>
  104. <Rows>
  105. <Row size="24" band="head"/>
  106. <Row size="24"/>
  107. </Rows>
  108. <Band id="head">
  109. <Cell/>
  110. <Cell col="1" text="선택"/>
  111. <Cell col="2" text="전문분야"/>
  112. <Cell col="3" text="의뢰구분"/>
  113. <Cell col="4" text="처방코드"/>
  114. <Cell col="5" text="처방명/의뢰사유"/>
  115. <Cell col="6" text="현장검사"/>
  116. <Cell col="7" text="시행체크방법"/>
  117. </Band>
  118. <Band id="body">
  119. <Cell celltype="head" expr="expr:currow + 1"/>
  120. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == '1' || check == 'true' ? '1' : '0'"/>
  121. <Cell col="2" displaytype="combo" edittype="combo" text="bind:spclcareflag" combodataset="ds_hidden_spclcarefildflaginfo_spclcarefildflaginfolist" combocodecol="cd" combodatacol="nm"/>
  122. <Cell col="3" displaytype="combo" edittype="combo" text="bind:reqflag" combodataset="ds_reqflag" combocodecol="value" combodatacol="label"/>
  123. <Cell col="4" style="align:left;" text="bind:prcpcd"/>
  124. <Cell col="5" style="align:left;" text="bind:hngnm"/>
  125. <Cell col="6" displaytype="combo" edittype="combo" text="bind:poctyn" combodataset="ds_poctyn" combocodecol="value" combodatacol="label"/>
  126. <Cell col="7" displaytype="combo" edittype="combo" text="bind:execmthdflag" combodataset="ds_execmthdflag" combocodecol="value" combodatacol="label"/>
  127. </Band>
  128. </Format>
  129. </Formats>
  130. </Grid>
  131. <Button position="absolute 773 414 837 433" id="btn_ordselect" class="btn2" text="처방검색" onclick="group1_btn_ordselect_onclick"/>
  132. <Edit position="absolute 195 416 295 435" id="ipt_prcp" class="input_s_essential" autoselect="true" onkeydown="group1_ipt_prcp_onkeydown" onkillfocus="group1_ipt_prcp_onkillfocus"/>
  133. </Layout>
  134. </Layouts>
  135. </Div>
  136. <Static text="기준자료관리" position="absolute 0 0 111 24" id="caption6" class="tit_1"/>
  137. </Layout>
  138. </Layouts>
  139. <Objects>
  140. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  141. <ColumnInfo>
  142. <Column id="spclcareflag" type="STRING" size="256" sumtext="전문분야"/>
  143. <Column id="prcpflag" type="STRING" size="256"/>
  144. <Column id="prcpcode" type="STRING" size="256"/>
  145. <Column id="suppdeptcd" type="STRING" size="256"/>
  146. </ColumnInfo>
  147. <Rows>
  148. <Row/>
  149. </Rows>
  150. </Dataset>
  151. <Dataset id="ds_main_spclstand_spcllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_spclstand_spcllist_oncolumnchanged">
  152. <ColumnInfo>
  153. <Column id="stat" type="STRING" size="256" sumtext="상태"/>
  154. <Column id="reqflag" type="STRING" size="256" sumtext="의뢰구분"/>
  155. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  156. <Column id="hngnm" type="STRING" size="256" sumtext="처방명"/>
  157. <Column id="poctyn" type="STRING" size="256" sumtext="현장검사"/>
  158. <Column id="execmthdflag" type="STRING" size="256" sumtext="시행체크방법"/>
  159. <Column id="hspclflag" type="STRING" size="256" sumtext="전문분야"/>
  160. <Column id="hreqflag" type="STRING" size="256" sumtext="의뢰구분"/>
  161. </ColumnInfo>
  162. </Dataset>
  163. <Dataset id="ds_hidden_spclcarefildflaginfo_spclcarefildflaginfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  164. <ColumnInfo>
  165. <Column id="cd" type="STRING" size="256" sumtext="전문분야코드"/>
  166. <Column id="nm" type="STRING" size="256" sumtext="전문분야명"/>
  167. </ColumnInfo>
  168. </Dataset>
  169. <Dataset id="ds_send_standsave" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  170. <ColumnInfo>
  171. <Column id="stat" type="STRING" size="256" sumtext="상태"/>
  172. <Column id="reqflag" type="STRING" size="256" sumtext="의뢰구분"/>
  173. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  174. <Column id="poctyn" type="STRING" size="256" sumtext="현장검사"/>
  175. <Column id="execmthdflag" type="STRING" size="256" sumtext="시행체크방법"/>
  176. <Column id="hspclflag" type="STRING" size="256" sumtext="전문분야"/>
  177. <Column id="hreqflag" type="STRING" size="256" sumtext="의뢰구분"/>
  178. </ColumnInfo>
  179. </Dataset>
  180. <Dataset id="ds_main_prcpinfo_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_prcpinfo_prcplist_oncolumnchanged">
  181. <ColumnInfo>
  182. <Column id="check" type="STRING" size="256" sumtext="선택"/>
  183. <Column id="spclcareflag" type="STRING" size="256" sumtext="전문분야"/>
  184. <Column id="reqflag" type="STRING" size="256" sumtext="의뢰구분"/>
  185. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  186. <Column id="hngnm" type="STRING" size="256" sumtext="처방명"/>
  187. <Column id="poctyn" type="STRING" size="256" sumtext="현장검사"/>
  188. <Column id="execmthdflag" type="STRING" size="256" sumtext="시행체크방법"/>
  189. </ColumnInfo>
  190. </Dataset>
  191. <Dataset id="ds_send_standins" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  192. <ColumnInfo>
  193. <Column id="check" type="STRING" size="256" sumtext="상태"/>
  194. <Column id="spclcareflag" type="STRING" size="256" sumtext="전문분야"/>
  195. <Column id="reqflag" type="STRING" size="256" sumtext="의뢰구분"/>
  196. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  197. <Column id="poctyn" type="STRING" size="256" sumtext="현장검사"/>
  198. <Column id="execmthdflag" type="STRING" size="256" sumtext="시행체크방법"/>
  199. </ColumnInfo>
  200. </Dataset>
  201. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  202. <ColumnInfo>
  203. <Column id="spclcareflag" type="STRING" size="256"/>
  204. </ColumnInfo>
  205. <Rows>
  206. <Row/>
  207. </Rows>
  208. </Dataset>
  209. <Dataset id="ds_cond2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  210. <ColumnInfo>
  211. <Column id="prcpcode" type="STRING" size="256"/>
  212. <Column id="prcpflag" type="STRING" size="256"/>
  213. </ColumnInfo>
  214. <Rows>
  215. <Row/>
  216. </Rows>
  217. </Dataset>
  218. <Dataset id="ds_reqflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  219. <ColumnInfo>
  220. <Column id="label" type="STRING" size="256"/>
  221. <Column id="value" type="STRING" size="256"/>
  222. </ColumnInfo>
  223. <Rows>
  224. <Row>
  225. <Col id="label">검사</Col>
  226. <Col id="value">I</Col>
  227. </Row>
  228. <Row>
  229. <Col id="label">교육</Col>
  230. <Col id="value">E</Col>
  231. </Row>
  232. <Row>
  233. <Col id="label">의뢰</Col>
  234. <Col id="value">C</Col>
  235. </Row>
  236. </Rows>
  237. </Dataset>
  238. <Dataset id="ds_poctyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  239. <ColumnInfo>
  240. <Column id="label" type="STRING" size="256"/>
  241. <Column id="value" type="STRING" size="256"/>
  242. </ColumnInfo>
  243. <Rows>
  244. <Row>
  245. <Col id="label">Y</Col>
  246. <Col id="value">Y</Col>
  247. </Row>
  248. <Row>
  249. <Col id="label">N</Col>
  250. <Col id="value">N</Col>
  251. </Row>
  252. </Rows>
  253. </Dataset>
  254. <Dataset id="ds_execmthdflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  255. <ColumnInfo>
  256. <Column id="label" type="STRING" size="256"/>
  257. <Column id="value" type="STRING" size="256"/>
  258. </ColumnInfo>
  259. <Rows>
  260. <Row>
  261. <Col id="label">회신(결과)입력</Col>
  262. <Col id="value">1</Col>
  263. </Row>
  264. <Row>
  265. <Col id="label">직접</Col>
  266. <Col id="value">2</Col>
  267. </Row>
  268. </Rows>
  269. </Dataset>
  270. </Objects>
  271. <Bind>
  272. <BindItem id="item0" compid="group1.group2.cmb_spcl" propid="value" datasetid="ds_cond" columnid="spclcareflag"/>
  273. <BindItem id="item1" compid="group1.rdo_prcp" propid="value" datasetid="ds_cond2" columnid="prcpflag"/>
  274. <BindItem id="item2" compid="group1.ipt_prcp" propid="value" datasetid="ds_cond2" columnid="prcpcode"/>
  275. </Bind>
  276. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  277. * System Name : 경대 의료정보시스템
  278. * Job Name : emr_spclcarexp -> SMMNS00700
  279. * Creator : yjh
  280. * Make Date : 2017-09-20
  281. * Description :
  282. *---------------------------------------------------------------------------------------
  283. * Modify Date Modifier Modify Description
  284. *---------------------------------------------------------------------------------------
  285. * 2017-09-20 yjh TF->XP
  286. *
  287. *---------------------------------------------------------------------------------------
  288. ****************************************************************************************/
  289. //=======================================================================================
  290. // Lib Include
  291. //---------------------------------------------------------------------------------------
  292. include "com_commonxp::comm_main.xjs";
  293. include "emr_spclcarexp::SMMNS00700.xjs";
  294. include "emr_spclcarexp::MNS001.xjs";
  295. //=======================================================================================
  296. // Global Form Variable
  297. //---------------------------------------------------------------------------------------
  298. var arErrorCode = new HashArray();
  299. //=======================================================================================
  300. // Function
  301. //---------------------------------------------------------------------------------------
  302. function onmousedown1()
  303. {
  304. if (event.button == 3){
  305. if(datagrid1.isCell(event.target) && datagrid1.row >= datagrid1.fixedrows){
  306. window.setPopupMenu(true, "/root/menu/item", "name", "func", false);
  307. }else{
  308. window.setPopupMenu(false);
  309. }
  310. }
  311. }
  312. function a()
  313. {
  314. alert("a 메뉴 선택");
  315. }
  316. function b()
  317. {
  318. alert("b 메뉴 선택");
  319. }
  320. function c(){
  321. alert("c 메뉴 선택");
  322. }
  323. function d(){
  324. alert("d 메뉴 선택");
  325. }
  326. //=======================================================================================
  327. // Event
  328. //---------------------------------------------------------------------------------------
  329. /****************************************************************************************
  330. * Components : Form
  331. * Components ID : SMMNS00700
  332. * Event : oninit
  333. * Argument : 01.obj : Object Event has occurred
  334. * : 02.e : Event Object
  335. * Description : 화면 처음 초기화시
  336. ****************************************************************************************/
  337. function SMMNS00700_oninit(obj:Form, e:InitEventInfo)
  338. {
  339. frmf_initForm(obj); //폼 초기화
  340. }
  341. /****************************************************************************************
  342. * Components : Form
  343. * Components ID : SMMNS00700
  344. * Event : onload
  345. * Argument : 01.obj : Object Event has occurred
  346. * : 02.e : Event Object
  347. * Description : 화면 로딩 완료시
  348. ****************************************************************************************/
  349. function SMMNS00700_onload(obj:Form, e:LoadEventInfo)
  350. {
  351. ds_send.setColumn(0, "prcpflag", "C");
  352. /**
  353. * 전문분야 코드및 명칭을 조회한다.
  354. */
  355. ds_hidden_spclcarefildflaginfo_spclcarefildflaginfolist.clearData();
  356. //20090205 dhkim
  357. //전문간호/BMT전문간호 로 나눠지게 되면서 사용부서에 해당하는 분야로 각각 등록됨.
  358. suppdeptcd = lf_aezfSetSuppDeptcd();//메뉴그룹에 등록된 사용부서코드
  359. fSpclCareSearch(suppdeptcd); //전문분야를 조회한다.
  360. // 버튼 숨기기
  361. group1.button2.visible = false;
  362. group1.group2.btn_select.click();
  363. }
  364. /****************************************************************************************
  365. * Components : Button
  366. * Components ID : button1
  367. * Event : onclick
  368. * Argument : 01.obj : Object Event has occurred
  369. * : 02.e : Event Object
  370. * Description : 행삭제버튼 클릭시
  371. ****************************************************************************************/
  372. function group1_button1_onclick(obj:Button, e:ClickEventInfo)
  373. {
  374. // 행삭제
  375. fgriditem("D");
  376. }
  377. /****************************************************************************************
  378. * Components : Button
  379. * Components ID : button2
  380. * Event : onclick
  381. * Argument : 01.obj : Object Event has occurred
  382. * : 02.e : Event Object
  383. * Description : 행추가버튼 클릭시
  384. ****************************************************************************************/
  385. function group1_button2_onclick(obj:Button, e:ClickEventInfo)
  386. {
  387. // 행추가
  388. fgriditem("I");
  389. }
  390. /****************************************************************************************
  391. * Components : Button
  392. * Components ID : button3
  393. * Event : onclick
  394. * Argument : 01.obj : Object Event has occurred
  395. * : 02.e : Event Object
  396. * Description : 저장버튼 클릭시
  397. ****************************************************************************************/
  398. function group1_button3_onclick(obj:Button, e:ClickEventInfo)
  399. {
  400. // 저장
  401. Savestand();
  402. group1.group2.btn_select.click();
  403. }
  404. /****************************************************************************************
  405. * Components : Combo
  406. * Components ID : cmb_spcl
  407. * Event : onitemchanged
  408. * Argument : 01.obj : Object Event has occurred
  409. * : 02.e : Event Object
  410. * Description : 콤보 값 변경시
  411. ****************************************************************************************/
  412. function group1_group2_cmb_spcl_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  413. {
  414. ds_main_spclstand_spcllist.clearData();
  415. ds_main_prcpinfo_prcplist.clearData();
  416. group1.ipt_prcp.value = "";
  417. select_spclstand();
  418. }
  419. /****************************************************************************************
  420. * Components : Button
  421. * Components ID : btn_select
  422. * Event : onclick
  423. * Argument : 01.obj : Object Event has occurred
  424. * : 02.e : Event Object
  425. * Description : 조회버튼 클릭시
  426. ****************************************************************************************/
  427. function group1_group2_btn_select_onclick(obj:Button, e:ClickEventInfo)
  428. {
  429. // 기준자료관리 조회
  430. select_spclstand();
  431. }
  432. /****************************************************************************************
  433. * Components : Dataset
  434. * Components ID : ds_main_spclstand_spcllist
  435. * Event : oncolumnchanged
  436. * Argument : 01.obj : Object Event has occurred
  437. * : 02.e : Event Object
  438. * Description : 데이터셋 값 변경시
  439. ****************************************************************************************/
  440. function ds_main_spclstand_spcllist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  441. {
  442. // 항목변경시 상태값 변경
  443. fstandstat();
  444. }
  445. /****************************************************************************************
  446. * Components : Radio
  447. * Components ID : rdo_prcp
  448. * Event : onitemclick
  449. * Argument : 01.obj : Object Event has occurred
  450. * : 02.e : Event Object
  451. * Description : 라디오 클릭시
  452. ****************************************************************************************/
  453. function group1_rdo_prcp_onitemclick(obj:Radio, e:RadioMouseEventInfo)
  454. {
  455. // Clear
  456. group1.ipt_prcp.value = "";
  457. ds_main_prcpinfo_prcplist.clearData();
  458. // 구분에 따른 입력창 모드변경
  459. // 처방코드
  460. if (group1.rdo_prcp.value == "C") {
  461. group1.ipt_prcp.imemode = "alpha";
  462. }
  463. // 처방명
  464. else if (group1.rdo_prcp.value == "N") {
  465. group1.ipt_prcp.imemode = "hangul";
  466. }
  467. group1.ipt_prcp.setFocus();
  468. }
  469. /****************************************************************************************
  470. * Components : Edit
  471. * Components ID : ipt_prcp
  472. * Event : onkeydown
  473. * Argument : 01.obj : Object Event has occurred
  474. * : 02.e : Event Object
  475. * Description : 에디터 키 입력시
  476. ****************************************************************************************/
  477. function group1_ipt_prcp_onkeydown(obj:Edit, e:KeyEventInfo)
  478. {
  479. // 조회하기
  480. var keycode = e.keycode;
  481. if(keycode == 13){
  482. group1.btn_ordselect.setFocus();
  483. group1.btn_ordselect.click();
  484. }
  485. }
  486. /****************************************************************************************
  487. * Components : Edit
  488. * Components ID : ipt_prcp
  489. * Event : onkillfocus
  490. * Argument : 01.obj : Object Event has occurred
  491. * : 02.e : Event Object
  492. * Description : 포커스 아웃시
  493. ****************************************************************************************/
  494. function group1_ipt_prcp_onkillfocus(obj:Edit, e:KillFocusEventInfo)
  495. {
  496. group1.ipt_prcp.value = utlf_transNullToEmpty(group1.ipt_prcp.value).toUpperCase();
  497. }
  498. /****************************************************************************************
  499. * Components : Button
  500. * Components ID : btn_prcpins
  501. * Event : onclick
  502. * Argument : 01.obj : Object Event has occurred
  503. * : 02.e : Event Object
  504. * Description : 저장버튼 클릭시
  505. ****************************************************************************************/
  506. function group1_btn_prcpins_onclick(obj:Button, e:ClickEventInfo)
  507. {
  508. var cnt = 0;
  509. for(var i=0;i<ds_main_prcpinfo_prcplist.rowcount;i++){
  510. if (ds_main_prcpinfo_prcplist.getColumn(i, "check") == "true") {
  511. // 저장시 전문분야, 의뢰구분 필수체크
  512. if (utlf_isNull(ds_main_prcpinfo_prcplist.getColumn(i, "spclcareflag")) ||
  513. utlf_isNull(ds_main_prcpinfo_prcplist.getColumn(i, "reqflag"))
  514. ) {
  515. cnt = cnt +1;
  516. }
  517. }
  518. } // for end
  519. // 입력사항 Check
  520. if (cnt > 0) {
  521. sysf_messageBox("전문분야, 의뢰구분은 ","I003");
  522. }
  523. // 저장
  524. Insstand();
  525. //
  526. group1.group2.btn_select.click();
  527. group1.btn_ordselect.click();
  528. }
  529. /****************************************************************************************
  530. * Components : Dataset
  531. * Components ID : ds_main_prcpinfo_prcplist
  532. * Event : oncolumnchanged
  533. * Argument : 01.obj : Object Event has occurred
  534. * : 02.e : Event Object
  535. * Description : 데이터셋 값 변경시
  536. ****************************************************************************************/
  537. function ds_main_prcpinfo_prcplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  538. {
  539. switch( e.columnid ){
  540. case "check" :
  541. if( e.newvalue == "1" || e.newvalue == "true" ){
  542. obj.setColumn(e.row, e.columnid, "true");
  543. }else{
  544. obj.setColumn(e.row, e.columnid, "false");
  545. }
  546. break;
  547. default :
  548. break;
  549. }
  550. // 항목변경시 상태값 변경
  551. fstandstat();
  552. }
  553. /****************************************************************************************
  554. * Components : Button
  555. * Components ID : btn_ordselect
  556. * Event : onclick
  557. * Argument : 01.obj : Object Event has occurred
  558. * : 02.e : Event Object
  559. * Description : 처방검색버튼 클릭시
  560. ****************************************************************************************/
  561. function group1_btn_ordselect_onclick(obj:Button, e:ClickEventInfo)
  562. {
  563. // 처방코드/처방명정보 조회하기
  564. if (utlf_transNullToEmpty(ds_cond2.getColumn(0, "prcpcode")).length < 2) {
  565. sysf_messageBox("2자리 이상 ","C001");
  566. //model.setFocus("/root/send/prcpcode");
  567. }
  568. else {
  569. select_spclprcp();
  570. }
  571. }
  572. ]]></Script>
  573. </Form>
  574. </FDL>