SMPAS02600_미시행처방조회.xfdl 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPAS02600" position="absolute 0 0 1196 781" titletext="미시행처방조회" oninit="SMPAS02600_oninit" onload="SMPAS02600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="미시행처방조회" class="tit_1" position="absolute 0 0 140 25"/>
  8. <Div id="group4" taborder="1" position="absolute 0 25 1195 85" class="div_SA">
  9. <Layouts>
  10. <Layout>
  11. <Static id="caption4" text="기 간 :" class="search_name" position="absolute 10 11 84 28" anchor="default"/>
  12. <Static id="caption8" text="~" class="search_n_b" position="absolute 208 10 220 27" anchor="default"/>
  13. <Button id="button6" taborder="1" text="조회" class="btn1" position="absolute 1126 19 1182 41" anchor="default" onclick="group4_button6_onclick"/>
  14. <Shape id="line3" linetype="vertical" position="absolute 1109 12 1115 49" anchor="default"/>
  15. <Calendar id="ipt_srchfromdd" taborder="2" class="input_essential" position="absolute 96 9 201 28" anchor="default" dateformat="yyyy-MM-dd"/>
  16. <Calendar id="ipt_srchtodd" taborder="3" class="input_essential" position="absolute 225 9 330 28" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
  17. <Combo id="cmb_srchprcpexecdept" taborder="4" innerdataset="@ds_init_orddeptlist_dept" codecolumn="deptcd" datacolumn="depthngnm" position="absolute 455 9 720 28" anchor="default"/>
  18. <Static id="caption1" text="시행부서 :" class="search_name" position="absolute 360 11 446 28" anchor="default"/>
  19. <Static id="caption2" text="등록번호 :" class="search_name" position="absolute 10 36 96 53" anchor="default"/>
  20. <Edit id="input1" taborder="5" class="input_search" position="absolute 96 34 181 53" anchor="default" onkeydown="group4_input1_onkeydown"/>
  21. <Button id="btn_pid" taborder="6" class="icon_search" position="absolute 191 36 207 52" anchor="default" onclick="group4_btn_pid_onclick"/>
  22. <Radio id="rdo_flag" taborder="7" columncount="3" rowcount="0" innerdataset="@ds_init_flag" codecolumn="id" datacolumn="name" position="absolute 327 33 695 53" anchor="default"/>
  23. <Static id="caption3" text="구 분 :" class="search_name" position="absolute 740 11 817 28" anchor="default"/>
  24. <Radio id="radio1" taborder="8" columncount="3" rowcount="0" innerdataset="@ds_init_ioflag" position="absolute 824 8 981 28" anchor="default" codecolumn="id" datacolumn="name"/>
  25. <CheckBox id="checkbox1" taborder="9" position="absolute 230 33 300 53" anchor="default" text="액팅포함" truevalue="Y" onchanged="group4_checkbox1_onchanged" onclick="group4_checkbox1_onclick"/>
  26. </Layout>
  27. </Layouts>
  28. </Div>
  29. <Button id="button33" taborder="2" text="초기화" class="btn4" position="absolute 1127 754 1195 776" onclick="button33_onclick"/>
  30. <Grid id="grd_unexecprcplist" taborder="3" binddataset="ds_main_unexecprcplist" useinputpanel="false" position="absolute 0 118 1195 749" onrbuttonup="grd_unexecprcplist_onrbuttonup" cellsizingtype="both" selecttype="multirow" extendsizetype="row">
  31. <Formats>
  32. <Format id="default">
  33. <Columns>
  34. <Column size="25" band="left"/>
  35. <Column size="122"/>
  36. <Column size="108"/>
  37. <Column size="74"/>
  38. <Column size="73"/>
  39. <Column size="43"/>
  40. <Column size="85"/>
  41. <Column size="376"/>
  42. <Column size="55"/>
  43. <Column size="91"/>
  44. <Column size="76"/>
  45. <Column size="92"/>
  46. <Column size="73"/>
  47. <Column size="80"/>
  48. <Column size="0"/>
  49. <Column size="0"/>
  50. <Column size="0"/>
  51. <Column size="0"/>
  52. <Column size="0"/>
  53. </Columns>
  54. <Rows>
  55. <Row size="24" band="head"/>
  56. <Row size="24"/>
  57. </Rows>
  58. <Band id="head">
  59. <Cell/>
  60. <Cell col="1" text="처방등록일시"/>
  61. <Cell col="2" text="예약시간"/>
  62. <Cell col="3" text="등록번호"/>
  63. <Cell col="4" text="환자명"/>
  64. <Cell col="5" text="S/A"/>
  65. <Cell col="6" text="처방코드"/>
  66. <Cell col="7" text="처방명"/>
  67. <Cell col="8" text="상태"/>
  68. <Cell col="9" text="진료과"/>
  69. <Cell col="10" text="진료의"/>
  70. <Cell col="11" text="시행부서"/>
  71. <Cell col="12" text="처방일자"/>
  72. <Cell col="13" text="병실"/>
  73. <Cell col="14" text="실시일자"/>
  74. <Cell col="15" text="처방구분"/>
  75. <Cell col="16" text="실시처방번호"/>
  76. <Cell col="17" text="진료일자"/>
  77. <Cell col="18" text="부서"/>
  78. </Band>
  79. <Band id="body">
  80. <Cell celltype="head" text="expr:currow+1"/>
  81. <Cell col="1" style="background:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');background2:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');" text="bind:prcptm" mask="expr:utlf_isNull(prcptm) || prcptm == '-' ? '' : '####-##-## ##:##:##'"/>
  82. <Cell col="2" style="background:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');background2:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');" text="bind:rsrvtm" mask="expr:utlf_isNull(rsrvtm) || rsrvtm == '-' ? '' : '####-##-## ##:##'"/>
  83. <Cell col="3" style="background:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');background2:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');" text="bind:pid"/>
  84. <Cell col="4" style="background:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');background2:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');" text="bind:hngnm"/>
  85. <Cell col="5" style="background:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');background2:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');" text="bind:sexage"/>
  86. <Cell col="6" displaytype="text" style="background:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');background2:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');" text="bind:prcpcd"/>
  87. <Cell col="7" displaytype="text" style="background:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');background2:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');" text="bind:prcpnm"/>
  88. <Cell col="8" style="background:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');background2:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');" text="bind:prcpstats"/>
  89. <Cell col="9" displaytype="text" style="background:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');background2:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');" text="bind:orddeptnm"/>
  90. <Cell col="10" style="background:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');background2:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');" text="bind:usernm"/>
  91. <Cell col="11" displaytype="text" style="background:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');background2:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');" text="bind:execdeptnm"/>
  92. <Cell col="12" style="background:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');background2:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');" text="bind:prcpdd" mask="expr:utlf_isNull(prcpdd) || prcpdd == '-' ? '' : '####-##-##'"/>
  93. <Cell col="13" style="background:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');background2:EXPR(execdd == '00000000' ? '#FFCCCC' : '#FFFFFF');" text="bind:roomcd"/>
  94. <Cell col="14" text="bind:execdd"/>
  95. <Cell col="15" text="bind:prcpgenrflag"/>
  96. <Cell col="16" text="bind:execprcpuniqno"/>
  97. <Cell col="17" text="bind:orddd"/>
  98. <Cell col="18" text="bind:basesuppdeptcd"/>
  99. </Band>
  100. </Format>
  101. </Formats>
  102. </Grid>
  103. <Shape id="line2" class="line_1" position="absolute 0 113 1195 119" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
  104. <Static id="caption5" text="★ 입원인 경우 미시행(당일예약)은 처방일자를 기준으로 조회됩니다. ★" position="absolute 4 96 982 112" style="color:#0000ffff;font:Dotum,9,bold;"/>
  105. <Button id="button95" taborder="4" text="액셀저장" class="btn7" position="absolute 1115 91 1195 113" onclick="button95_onclick"/>
  106. </Layout>
  107. </Layouts>
  108. <Objects>
  109. <Dataset id="ds_main_unexecprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  110. <ColumnInfo>
  111. <Column id="prcptm" type="STRING" size="256"/>
  112. <Column id="rsrvtm" type="STRING" size="256"/>
  113. <Column id="pid" type="STRING" size="256"/>
  114. <Column id="hngnm" type="STRING" size="256"/>
  115. <Column id="sexage" type="STRING" size="256"/>
  116. <Column id="prcpcd" type="STRING" size="256"/>
  117. <Column id="prcpnm" type="STRING" size="256"/>
  118. <Column id="prcpstats" type="STRING" size="256"/>
  119. <Column id="orddeptnm" type="STRING" size="256"/>
  120. <Column id="usernm" type="STRING" size="256"/>
  121. <Column id="execdeptnm" type="STRING" size="256"/>
  122. <Column id="prcpdd" type="STRING" size="256"/>
  123. <Column id="roomcd" type="STRING" size="256"/>
  124. <Column id="execdd" type="STRING" size="256"/>
  125. <Column id="prcpgenrflag" type="STRING" size="256"/>
  126. <Column id="execprcpuniqno" type="STRING" size="256"/>
  127. <Column id="orddd" type="STRING" size="256"/>
  128. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  129. </ColumnInfo>
  130. <Rows>
  131. <Row>
  132. <Col id="prcptm"/>
  133. <Col id="rsrvtm"/>
  134. <Col id="pid"/>
  135. <Col id="hngnm"/>
  136. <Col id="sexage"/>
  137. <Col id="prcpcd"/>
  138. <Col id="prcpnm"/>
  139. <Col id="prcpstats"/>
  140. <Col id="orddeptnm"/>
  141. <Col id="usernm"/>
  142. <Col id="execdeptnm"/>
  143. <Col id="prcpdd"/>
  144. <Col id="roomcd"/>
  145. <Col id="execdd"/>
  146. <Col id="prcpgenrflag"/>
  147. <Col id="execprcpuniqno"/>
  148. <Col id="orddd"/>
  149. <Col id="basesuppdeptcd"/>
  150. </Row>
  151. </Rows>
  152. </Dataset>
  153. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  154. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  155. <ColumnInfo>
  156. <Column id="srchfromdd" type="STRING" size="256"/>
  157. <Column id="srchtodd" type="STRING" size="256"/>
  158. <Column id="srchprcpexecdept" type="STRING" size="256"/>
  159. <Column id="srchpid" type="STRING" size="256"/>
  160. <Column id="srchflag" type="STRING" size="256"/>
  161. <Column id="ioflag" type="STRING" size="256"/>
  162. <Column id="include" type="STRING" size="256"/>
  163. </ColumnInfo>
  164. <Rows>
  165. <Row>
  166. <Col id="srchfromdd"/>
  167. <Col id="srchtodd"/>
  168. <Col id="srchprcpexecdept"/>
  169. <Col id="srchpid"/>
  170. <Col id="srchflag"/>
  171. <Col id="ioflag"/>
  172. <Col id="include"/>
  173. </Row>
  174. </Rows>
  175. </Dataset>
  176. <Dataset id="ds_init_orddeptlist_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  177. <ColumnInfo>
  178. <Column id="depth" type="STRING" size="256"/>
  179. <Column id="deptcd" type="STRING" size="256"/>
  180. <Column id="depthngnm" type="STRING" size="256"/>
  181. <Column id="cdgrupid" type="STRING" size="256"/>
  182. </ColumnInfo>
  183. <Rows>
  184. <Row>
  185. <Col id="depth"/>
  186. <Col id="deptcd"/>
  187. <Col id="depthngnm"/>
  188. <Col id="cdgrupid"/>
  189. </Row>
  190. </Rows>
  191. </Dataset>
  192. <Dataset id="ds_init_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  193. <ColumnInfo>
  194. <Column id="name" type="STRING" size="256"/>
  195. <Column id="id" type="STRING" size="256"/>
  196. </ColumnInfo>
  197. <Rows>
  198. <Row>
  199. <Col id="name">미시행(당일예약)</Col>
  200. <Col id="id">unxr</Col>
  201. </Row>
  202. <Row>
  203. <Col id="name">미시행(당일처방)</Col>
  204. <Col id="id">unxp</Col>
  205. </Row>
  206. <Row>
  207. <Col id="name">미예약</Col>
  208. <Col id="id">rsrv</Col>
  209. </Row>
  210. </Rows>
  211. </Dataset>
  212. <Dataset id="ds_init_ioflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  213. <ColumnInfo>
  214. <Column id="name" type="STRING" size="256"/>
  215. <Column id="id" type="STRING" size="256"/>
  216. </ColumnInfo>
  217. <Rows>
  218. <Row>
  219. <Col id="name">외래</Col>
  220. <Col id="id">O</Col>
  221. </Row>
  222. <Row>
  223. <Col id="name">입원</Col>
  224. <Col id="id">I</Col>
  225. </Row>
  226. <Row>
  227. <Col id="name">전체</Col>
  228. <Col id="id">ALL</Col>
  229. </Row>
  230. </Rows>
  231. </Dataset>
  232. <Dataset id="ds_hidden_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  233. <Dataset id="ds_hidden_popupmenu_menu_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  234. <ColumnInfo>
  235. <Column id="hardcdnm" type="STRING" size="256"/>
  236. <Column id="hardcd" type="STRING" size="256"/>
  237. </ColumnInfo>
  238. <Rows>
  239. <Row>
  240. <Col id="hardcdnm">처방상세내역</Col>
  241. <Col id="hardcd">fOpenPrcpList</Col>
  242. </Row>
  243. </Rows>
  244. </Dataset>
  245. <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  246. <ColumnInfo>
  247. <Column id="autoflag" type="STRING" size="256"/>
  248. </ColumnInfo>
  249. <Rows>
  250. <Row/>
  251. </Rows>
  252. </Dataset>
  253. </Objects>
  254. <Bind>
  255. <BindItem id="item0" compid="group4.ipt_srchfromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
  256. <BindItem id="item1" compid="group4.ipt_srchtodd" propid="value" datasetid="ds_send" columnid="srchtodd"/>
  257. <BindItem id="item2" compid="group4.cmb_srchprcpexecdept" propid="value" datasetid="ds_send" columnid="srchprcpexecdept"/>
  258. <BindItem id="item3" compid="group4.radio1" propid="value" datasetid="ds_send" columnid="ioflag"/>
  259. <BindItem id="item4" compid="group4.rdo_flag" propid="value" datasetid="ds_send" columnid="srchflag"/>
  260. <BindItem id="item5" compid="group4.checkbox1" propid="value" datasetid="ds_send" columnid="include"/>
  261. <BindItem id="item6" compid="group4.input1" propid="value" datasetid="ds_send" columnid="srchpid"/>
  262. </Bind>
  263. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  264. * System Name :
  265. * Job Name :
  266. * Creator :
  267. * Make Date : 2016-11-17
  268. * Description :
  269. *---------------------------------------------------------------------------------------
  270. * Modify Date Modifier Modify Description
  271. *---------------------------------------------------------------------------------------
  272. * 2016-11-17 Live Converter TF->XP
  273. *
  274. *---------------------------------------------------------------------------------------
  275. ****************************************************************************************/
  276. //=======================================================================================
  277. // Lib Include
  278. //---------------------------------------------------------------------------------------
  279. include "com_commonxp::comm_main.xjs";
  280. include "pam_pamcomnxp::PAM.xjs";
  281. //=======================================================================================
  282. // Global Form Variable
  283. //---------------------------------------------------------------------------------------
  284. var arErrorCode = new HashArray();
  285. //=======================================================================================
  286. // Function
  287. //---------------------------------------------------------------------------------------
  288. /****************************************************************************************
  289. * Argument : N/A
  290. * Description : 조회기간을 셋팅한다.
  291. ****************************************************************************************/
  292. function fDateSet(){
  293. var cur_date = utlf_getCurrentDate();
  294. ds_send.setColumn( 0, "srchtodd" , cur_date);
  295. ds_send.setColumn( 0, "srchfromdd", cur_date);
  296. }
  297. /****************************************************************************************
  298. * Argument : N/A
  299. * Description : 시행부서를 셋팅한다.
  300. ****************************************************************************************/
  301. function fDeptSet(){
  302. var sUserInfosS = sysf_getUserInfo();
  303. sUserInfosS = sUserInfosS + "|";
  304. var UserInfosS_Array = sUserInfosS.split("|");
  305. var posinstcd = UserInfosS_Array[6]; //소속기관코드
  306. var posdeptcd = UserInfosS_Array[4]; //소속부서코드
  307. var posdeptnm = UserInfosS_Array[5]; //소속부서명
  308. var dutplcecd = sysf_getUserInfo("dutplcecd") ;
  309. if(dutplcecd == "1000000000" || dutplcecd == "4070300000" || dutplcecd == "11112233") {dutplcecd = "ALL";}
  310. ds_send.setColumn( 0, "srchprcpexecdept", dutplcecd);
  311. }
  312. /****************************************************************************************
  313. * Argument : N/A
  314. * Description : 미시행처방조회
  315. ****************************************************************************************/
  316. function fGetUnExec(){
  317. var fromdd = group4.ipt_srchfromdd.value;
  318. var todd = group4.ipt_srchtodd.value;
  319. var interval = utlf_getDateInterval(fromdd, todd);
  320. var pid = ds_send.getColumn(0, "srchpid");
  321. var uPath = "ds_main_unexecprcplist";
  322. // for(var i = 0; i < ds_main_unexecprcplist.rowcount; i++){
  323. // grd_unexecprcplist.setCellProprty("body", i, "background", "white");
  324. // grd_unexecprcplist.setCellProperty("body", i, "background2", "white");
  325. // }
  326. var oParam = {};
  327. oParam.id = "TRPAS02601";
  328. oParam.service = "healcareearnapp.UnExecPrcp";
  329. oParam.method = "reqGetUnExecPrcpList";
  330. oParam.inds = "req=ds_send";
  331. oParam.outds = "ds_main_unexecprcplist=unexecprcplist";
  332. oParam.async = false;
  333. //oParam.callback = "cf_TRPAS02601";
  334. tranf_submit(oParam);
  335. // for(var i = 1; i < ds_main_unexecprcplist.rowcount; i++){
  336. // var execdd = eval(uPath).getColumn(i, "execdd");
  337. // if(execdd == "00000000"){
  338. // grd_unexecprcplist.setCellProprty("body", i, "background", "#FFCCCC"); grd_unexecprcplist.setCellProperty("body", i, "background2", "#FFCCCC");
  339. // }
  340. // }
  341. }
  342. /****************************************************************************************
  343. * Argument : N/A
  344. * Description : 팝업 메뉴
  345. ****************************************************************************************/
  346. function fOpenPrcpList() {
  347. dsf_createDs("ds_temp");
  348. dsf_copyColInfo(ds_temp,ds_main_unexecprcplist);
  349. ds_temp.copyRow(ds_temp.addRow(),ds_main_unexecprcplist,ds_main_unexecprcplist.rowposition);
  350. var objArg = new Objects();
  351. objArg.arg_ds_init_popupdata = ds_temp;
  352. frmf_modal("SPAEA01102","SPAEA01102",objArg,"","","","","","","","","","M");
  353. }
  354. /****************************************************************************************
  355. * Argument : sCompId - 체크박스 아이디
  356. * Description : 체크박스 false선택시 empty처리
  357. ****************************************************************************************/
  358. function setFalseToEmpty(sCompId) {
  359. for(var i = 0; i < this.binds.length; i++) {
  360. if(this.binds[i].compid == sCompId) {
  361. var colNm = this.binds[i].columnid;
  362. var dsNm = this.binds[i].datasetid;
  363. eval(dsNm).setColumn(0,colNm,"");
  364. break;
  365. }
  366. }
  367. }
  368. //=======================================================================================
  369. // Event
  370. //---------------------------------------------------------------------------------------
  371. /****************************************************************************************
  372. * Components : Form
  373. * Components ID : SMPAS02600
  374. * Event : oninit
  375. * Argument : 01.obj : Object Event has occurred
  376. * : 02.e : Event Object
  377. * Description : 화면 처음 초기화시 폼초기화
  378. ****************************************************************************************/
  379. function SMPAS02600_oninit(obj:Form, e:InitEventInfo)
  380. {
  381. frmf_initForm(obj); // 폼 초기화
  382. }
  383. /****************************************************************************************
  384. * Components : Form
  385. * Components ID : SMPAS02600
  386. * Event : onload
  387. * Argument : 01.obj : Object Event has occurred
  388. * : 02.e : Event Object
  389. * Description : 화면 처음 초기화시 폼초기화
  390. ****************************************************************************************/
  391. function SMPAS02600_onload(obj:Form, e:LoadEventInfo)
  392. {
  393. //시행부서를 가져온다.
  394. var oParam = {};
  395. oParam.id = "TRPAS02602";
  396. oParam.service = "healcareearnapp.UnExecPrcp";
  397. oParam.method = "reqGetDept";
  398. oParam.inds = "";
  399. oParam.outds = "ds_init_orddeptlist_dept=dept";
  400. oParam.async = false;
  401. //oParam.callback = "cf_TRPAS02602";
  402. tranf_submit(oParam);
  403. group4.rdo_flag.index = 0;
  404. group4.radio1.index = 0;
  405. fDateSet();//조회기간을 셋팅한다.
  406. fDeptSet();//시행부서를 셋팅한다.
  407. grdf_setGridSort(grd_unexecprcplist); // 그리드 소트만
  408. frmf_createPopupMenuDs("pmn_menu", "pmn_menu_onmenuclick", ds_hidden_popupmenu_menu_item);
  409. }
  410. // ds에 생성된 id별 함수 실행
  411. function pmn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  412. {
  413. eval(e.id + "()");
  414. }
  415. /****************************************************************************************
  416. * Components : Button
  417. * Components ID : group4.button6
  418. * Event : onclick
  419. * Argument : 01.obj : Object Event has occurred
  420. * : 02.e : Event Object
  421. * Description : 조회
  422. ****************************************************************************************/
  423. function group4_button6_onclick(obj:Button, e:ClickEventInfo)
  424. {
  425. fGetUnExec();
  426. }
  427. /****************************************************************************************
  428. * Components : Edit
  429. * Components ID : group4.input1
  430. * Event : onkeydown
  431. * Argument : 01.obj : Object Event has occurred
  432. * : 02.e : Event Object
  433. * Description : 등록번호 입력 후 조회
  434. ****************************************************************************************/
  435. function group4_input1_onkeydown(obj:Edit, e:KeyEventInfo)
  436. {
  437. if (e.keycode == 13) {
  438. obj.updateToDataset();
  439. fGetUnExec();
  440. }
  441. }
  442. /****************************************************************************************
  443. * Components : Button
  444. * Components ID : group4.btn_pid
  445. * Event : onclick
  446. * Argument : 01.obj : Object Event has occurred
  447. * : 02.e : Event Object
  448. * Description : 등록번호 조회 팝업
  449. * : 조회건수가 1건일 경우 팝업창을 바로 닫는다.
  450. ****************************************************************************************/
  451. function group4_btn_pid_onclick(obj:Button, e:ClickEventInfo)
  452. {
  453. ds_source.setColumn(0,"autoflag", "Y");
  454. dsf_createDsRow("ds_temp", [{col:"pid", val:ds_send.getColumn(0,"srchpid")}
  455. ,{col:"srchcond", val:"1"}
  456. ,{col:"autoflag", val:"Y"}
  457. ]);
  458. var objArg = new Object();
  459. objArg.arg_ds_send = ds_temp;
  460. frmf_modal("SPPMC02500","SPPMC02500",objArg,"",1,150,150,"","","","","","M");
  461. ds_send.setColumn(0,"srchpid", ds_patinfolist.getColumn(0,"pid"));
  462. }
  463. /****************************************************************************************
  464. * Components : CheckBox
  465. * Components ID : group4.checkbox1
  466. * Event : onclick
  467. * Argument : 01.obj : Object Event has occurred
  468. * : 02.e : Event Object
  469. * Description : 체크박스 선택
  470. ****************************************************************************************/
  471. function group4_checkbox1_onclick(obj:CheckBox, e:ClickEventInfo)
  472. {
  473. if(obj.value == false) setFalseToEmpty(obj.name);
  474. else {
  475. var deptcd = ds_send.getColumn(0,"srchprcpexecdept");
  476. if(deptcd == "ALL"){
  477. sysf_messageBox("시행부서를", "C002");
  478. obj.value = false;
  479. }
  480. }
  481. }
  482. /****************************************************************************************
  483. * Components : Grid
  484. * Components ID : grd_unexecprcplist
  485. * Event : onrbuttonup
  486. * Argument : 01.obj : Object Event has occurred
  487. * : 02.e : Event Object
  488. * Description : 팝업메뉴 호출
  489. ****************************************************************************************/
  490. function grd_unexecprcplist_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  491. {
  492. if(e.row > -1){
  493. grdf_setSelectedCell(obj, e); // 선택된 행 확실히 선택해줌
  494. pmn_menu.trackPopup(e.screenX,e.screenY);
  495. }
  496. return true;
  497. }
  498. /****************************************************************************************
  499. * Components : Button
  500. * Components ID : button95
  501. * Event : onclick
  502. * Argument : 01.obj : Object Event has occurred
  503. * : 02.e : Event Object
  504. * Description : 엑셀저장
  505. ****************************************************************************************/
  506. function button95_onclick(obj:Button, e:ClickEventInfo)
  507. {
  508. if( ds_main_unexecprcplist.rowcount > 0 ){
  509. grdf_exportExcel(grd_unexecprcplist, "SheetName", "SheetName", false, "", "user", false);
  510. } else {
  511. sysf_messageBox("조회된 데이터가 ", "I004");
  512. }
  513. }
  514. /****************************************************************************************
  515. * Components : Button
  516. * Components ID : button33
  517. * Event : onclick
  518. * Argument : 01.obj : Object Event has occurred
  519. * : 02.e : Event Object
  520. * Description : 초기화 실행
  521. ****************************************************************************************/
  522. function button33_onclick(obj:Button, e:ClickEventInfo)
  523. {
  524. this.onload();
  525. }
  526. ]]></Script>
  527. </Form>
  528. </FDL>