SMLLP01300_수정된검사결과조회.xfdl 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLP01300" position="absolute 0 0 1256 805" titletext="수정결과조회" onload="SMLLP01300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" position="absolute 0 25 1256 805" anchor="all" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="line1" class="line_1" position="absolute 0 70 1194 70" anchor="default" linetype="horizontal" positiontype="position"/>
  11. <Div id="group1" position="absolute 0 0 1256 42" anchor="left top right" positiontype="position" class="div_SA">
  12. <Layouts>
  13. <Layout>
  14. <Shape id="line3" class="line_4" position="absolute 1108 10 1108 32" anchor="default" linetype="vertical" positiontype="position"/>
  15. <Static id="caption2" class="search_name" position="absolute 8 10 76 30" anchor="default" text="등록일자" positiontype="position"/>
  16. <Button id="btn_Ref" class="btn1" position="absolute 1116 10 1172 30" anchor="top right" text="조회" onclick="group3_group1_btn_Ref_onclick" positiontype="position"/>
  17. <Static id="caption11" position="absolute 186 12 198 29" anchor="default" text="~" positiontype="position"/>
  18. <Static id="caption1" class="search_name" position="absolute 322 10 390 30" anchor="default" text="조회구분" positiontype="position"/>
  19. <Combo id="cmb_sectcd" visible="false" position="absolute 487 10 603 30" anchor="default" innerdataset="@ds_init_lb0111" codecolumn="cd" datacolumn="nm" positiontype="position"/>
  20. <Combo id="testlrgcd" position="absolute 484 10 600 30" anchor="default" innerdataset="@ds_init_lb0104" codecolumn="cd" datacolumn="nm" positiontype="position"/>
  21. <Calendar id="ipt_usdt" class="input_s_essential" position="absolute 82 10 182 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position" autoselect="true"/>
  22. <Calendar id="ipt_uedt" class="input_s_essential" position="absolute 198 10 298 30" anchor="default" dateformat="yyyy-MM-dd" value="null" positiontype="position" autoselect="true"/>
  23. <Combo id="combo2" position="absolute 396 10 481 30" anchor="default" innerdataset="@ds_refflag" codecolumn="value" datacolumn="label" index="0" value="1" text="검사분류" onitemchanged="group3_group1_combo2_onitemchanged" positiontype="position"/>
  24. <Static id="caption4" class="search_name" position="absolute 625 10 693 30" anchor="default" text="등록번호" positiontype="position"/>
  25. <Static id="caption5" class="search_name" position="absolute 813 10 894 30" anchor="default" text="바코드번호" positiontype="position"/>
  26. <Edit id="ipt_pid" class="input_s_button" position="absolute 699 10 789 30" anchor="default" onkeydown="group3_group1_ipt_pid_onkeydown" imemode="alpha" inputtype="digit" maxlength="9" positiontype="position"/>
  27. <Edit id="ipt_bcno" class="input_s_button" position="absolute 900 10 1000 30" anchor="default" onkeydown="group3_group1_ipt_bcno_onkeydown" inputmode="upper" useime="none" imemode="alpha" maxlength="15" positiontype="position"/>
  28. <CheckBox id="check1" position="absolute 1003 10 1079 30" anchor="default" text="통계 여부" falsevalue="" value="true" truevalue="Y" visible="false" positiontype="position"/>
  29. <Button id="btn_reset" taborder="1" text="초기화" class="btn3" position="absolute 1175 10 1244 30" anchor="top right" onclick="group3_group1_btn_reset_onclick"/>
  30. </Layout>
  31. </Layouts>
  32. </Div>
  33. <Static id="caption3" class="tit_2" position="absolute 0 52 139 68" anchor="default" text="수정결과조회" positiontype="position"/>
  34. <Grid id="grd_updtrsltlist" position="absolute 0 72 1253 780" anchor="all" binddataset="ds_grid_grd_updtrsltlist" onheadclick="group3_grd_updtrsltlist_onheadclick" cellsizingtype="col" positiontype="position">
  35. <Formats>
  36. <Format id="default">
  37. <Columns>
  38. <Column size="30"/>
  39. <Column size="30"/>
  40. <Column size="30"/>
  41. <Column size="137"/>
  42. <Column size="76"/>
  43. <Column size="82"/>
  44. <Column size="67"/>
  45. <Column size="82"/>
  46. <Column size="131"/>
  47. <Column size="120"/>
  48. <Column size="83"/>
  49. <Column size="120"/>
  50. <Column size="85"/>
  51. <Column size="183"/>
  52. </Columns>
  53. <Rows>
  54. <Row size="22" band="head"/>
  55. <Row size="20"/>
  56. </Rows>
  57. <Band id="head">
  58. <Cell text="No."/>
  59. <Cell col="1" text="상태"/>
  60. <Cell col="2" displaytype="checkbox" edittype="checkbox"/>
  61. <Cell col="3" text="수정일시"/>
  62. <Cell col="4" text="등록번호"/>
  63. <Cell col="5" text="성명"/>
  64. <Cell col="6" text="진료과"/>
  65. <Cell col="7" text="병동/병실"/>
  66. <Cell col="8" text="수정검사항목"/>
  67. <Cell col="9" text="수정전결과"/>
  68. <Cell col="10" text="수정전보고자"/>
  69. <Cell col="11" text="수정후결과"/>
  70. <Cell col="12" text="수정후보고자"/>
  71. <Cell col="13" text="수정사유"/>
  72. </Band>
  73. <Band id="body">
  74. <Cell celltype="head" expr="expr:currow+1"/>
  75. <Cell col="1" displaytype="image" style="align:center;" expr="expr:expr:expr: getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
  76. <Cell col="2" displaytype="expr:pid != '' ? 'checkbox' : 'default'" edittype="expr:pid != '' ? 'checkbox' : 'default'" text="bind:chk"/>
  77. <Cell col="3" text="bind:updtdt" mask="expr:updtdt !='' ? '@@@@-@@-@@ @@:@@:@@' : ''"/>
  78. <Cell col="4" displaytype="text" edittype="text" text="bind:pid"/>
  79. <Cell col="5" text="bind:patnm"/>
  80. <Cell col="6" text="bind:orddeptnm"/>
  81. <Cell col="7" text="bind:wardroom"/>
  82. <Cell col="8" style="align:left;" text="bind:tclsnm"/>
  83. <Cell col="9" style="align:left;" text="bind:updtbfrslt"/>
  84. <Cell col="10" text="bind:updtbfreptnm"/>
  85. <Cell col="11" style="align:left;" text="bind:updtaftrslt"/>
  86. <Cell col="12" text="bind:updtaftreptnm"/>
  87. <Cell col="13" style="align:left;" text="bind:updtresn"/>
  88. </Band>
  89. </Format>
  90. </Formats>
  91. </Grid>
  92. <Button id="btn_excel" class="btn7" position="absolute 1196 49 1249 69" anchor="top right" text="엑셀" onclick="group3_btn_excel_onclick" positiontype="position"/>
  93. <Grid id="grd_updtrsltlistEx" taborder="1" binddataset="ds_grid_grd_updtrsltlist" useinputpanel="false" cellsizingtype="col" onheadclick="group3_grd_updtrsltlist_onheadclick" position="absolute 213 199 694 491" anchor="all" visible="false">
  94. <Formats>
  95. <Format id="default">
  96. <Columns>
  97. <Column size="30"/>
  98. <Column size="137"/>
  99. <Column size="76"/>
  100. <Column size="82"/>
  101. <Column size="67"/>
  102. <Column size="82"/>
  103. <Column size="131"/>
  104. <Column size="120"/>
  105. <Column size="83"/>
  106. <Column size="120"/>
  107. <Column size="85"/>
  108. <Column size="183"/>
  109. <Column size="117"/>
  110. <Column size="158"/>
  111. </Columns>
  112. <Rows>
  113. <Row size="22" band="head"/>
  114. <Row size="20"/>
  115. </Rows>
  116. <Band id="head">
  117. <Cell text="No."/>
  118. <Cell col="1" text="수정일시"/>
  119. <Cell col="2" text="등록번호"/>
  120. <Cell col="3" text="성명"/>
  121. <Cell col="4" text="진료과"/>
  122. <Cell col="5" text="병동/병실"/>
  123. <Cell col="6" text="수정검사항목"/>
  124. <Cell col="7" text="수정전결과"/>
  125. <Cell col="8" text="수정전보고자"/>
  126. <Cell col="9" text="수정후결과"/>
  127. <Cell col="10" text="수정후보고자"/>
  128. <Cell col="11" text="수정사유"/>
  129. <Cell col="12" text="바코드번호"/>
  130. <Cell col="13" text="통보시간"/>
  131. </Band>
  132. <Band id="body">
  133. <Cell celltype="head" expr="expr:currow+1"/>
  134. <Cell col="1" text="bind:updtdt" mask="expr:updtdt !='' ? '@@@@-@@-@@ @@:@@:@@' : ''"/>
  135. <Cell col="2" displaytype="text" text="bind:pid"/>
  136. <Cell col="3" text="bind:patnm"/>
  137. <Cell col="4" text="bind:orddeptnm"/>
  138. <Cell col="5" text="bind:wardroom"/>
  139. <Cell col="6" style="align:left;" text="bind:tclsnm"/>
  140. <Cell col="7" style="align:left;" text="bind:updtbfrslt"/>
  141. <Cell col="8" text="bind:updtbfreptnm"/>
  142. <Cell col="9" style="align:left;" text="bind:updtaftrslt"/>
  143. <Cell col="10" text="bind:updtaftreptnm"/>
  144. <Cell col="11" style="align:left;" text="bind:updtresn"/>
  145. <Cell col="12" text="bind:bcno"/>
  146. <Cell col="13" text="bind:notidt" mask="@@@@-@@-@@ @@:@@:@@"/>
  147. </Band>
  148. </Format>
  149. </Formats>
  150. </Grid>
  151. </Layout>
  152. </Layouts>
  153. </Div>
  154. <Button id="btn_print" taborder="1" text="출력" class="btn6" position="absolute 1141 0 1197 20" anchor="top right" onclick="btn_print_onclick"/>
  155. <Button id="btn_delete" taborder="2" text="삭제" class="btn4" position="absolute 1200 0 1256 20" anchor="top right" onclick="btn_delete_onclick"/>
  156. <Static id="caption6" text="수정결과조회" class="tit_1" position="absolute 0 0 155 25"/>
  157. </Layout>
  158. </Layouts>
  159. <Objects>
  160. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  161. <ColumnInfo>
  162. <Column id="cd" type="STRING" size="256"/>
  163. <Column id="nm" type="STRING" size="256"/>
  164. </ColumnInfo>
  165. </Dataset>
  166. <Dataset id="ds_init_lb0104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  167. <ColumnInfo>
  168. <Column id="cd" type="STRING" size="256"/>
  169. <Column id="nm" type="STRING" size="256"/>
  170. </ColumnInfo>
  171. </Dataset>
  172. <Dataset id="ds_init_lb0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  173. <ColumnInfo>
  174. <Column id="cd" type="STRING" size="256"/>
  175. <Column id="nm" type="STRING" size="256"/>
  176. </ColumnInfo>
  177. </Dataset>
  178. <Dataset id="ds_refflag" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  179. <ColumnInfo>
  180. <Column id="label" type="STRING" size="256"/>
  181. <Column id="value" type="STRING" size="256"/>
  182. </ColumnInfo>
  183. <Rows>
  184. <Row>
  185. <Col id="label">검사분류</Col>
  186. <Col id="value">1</Col>
  187. </Row>
  188. <Row>
  189. <Col id="label">시행부서</Col>
  190. <Col id="value">2</Col>
  191. </Row>
  192. </Rows>
  193. </Dataset>
  194. <Dataset id="ds_grid_grd_updtrsltlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
  195. <ColumnInfo>
  196. <Column id="status" type="STRING" size="256"/>
  197. <column id="chk" type="STRING" size="256"/>
  198. <column id="updtdt" type="STRING" size="256"/>
  199. <column id="pid" type="STRING" size="256"/>
  200. <column id="patnm" type="STRING" size="256"/>
  201. <column id="orddeptnm" type="STRING" size="256"/>
  202. <column id="wardroom" type="STRING" size="256"/>
  203. <column id="tclsnm" type="STRING" size="256"/>
  204. <column id="updtbfrslt" type="STRING" size="256"/>
  205. <column id="updtbfreptnm" type="STRING" size="256"/>
  206. <column id="updtaftrslt" type="STRING" size="256"/>
  207. <column id="updtaftreptnm" type="STRING" size="256"/>
  208. <column id="updtresn" type="STRING" size="256"/>
  209. <column id="notidt" type="STRING" size="256"/>
  210. <column id="bcno" type="STRING" size="256"/>
  211. <column id="updtbfreptdt" type="STRING" size="256"/>
  212. <column id="notichrgnm" type="STRING" size="256"/>
  213. </ColumnInfo>
  214. </Dataset>
  215. <Dataset id="ds_grid_grd_updtrsltlistPrint" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" onrowposchanged="ds_grid_grd_rslt_onrowposchanged">
  216. <ColumnInfo>
  217. <column id="updtdt" type="STRING" size="256"/>
  218. <column id="pid" type="STRING" size="256"/>
  219. <column id="patnm" type="STRING" size="256"/>
  220. <column id="orddeptnm" type="STRING" size="256"/>
  221. <column id="wardroom" type="STRING" size="256"/>
  222. <column id="tclsnm" type="STRING" size="256"/>
  223. <column id="updtbfrslt" type="STRING" size="256"/>
  224. <column id="updtbfreptnm" type="STRING" size="256"/>
  225. <column id="updtaftrslt" type="STRING" size="256"/>
  226. <column id="updtaftreptnm" type="STRING" size="256"/>
  227. <column id="updtresn" type="STRING" size="256"/>
  228. <column id="notidt" type="STRING" size="256"/>
  229. <column id="bcno" type="STRING" size="256"/>
  230. </ColumnInfo>
  231. </Dataset>
  232. </Objects>
  233. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  234. * System Name :
  235. * Job Name :
  236. * Creator :
  237. * Make Date : 2015-05-01
  238. * Description :
  239. *---------------------------------------------------------------------------------------
  240. * Modify Date Modifier Modify Description
  241. *---------------------------------------------------------------------------------------
  242. * 2015-05-01 Live Converter TF->XP
  243. *
  244. *---------------------------------------------------------------------------------------
  245. ****************************************************************************************/
  246. include "com_commonxp::comm_main.xjs";
  247. include "lis_commonxp::LLZ001.xjs";
  248. function SMLLP01300_onload(obj:Form, e:LoadEventInfo)
  249. {
  250. //폼 초기화 함수
  251. frmf_initForm(obj);
  252. var toDay = utlf_getCurrentDate();
  253. group3.group1.ipt_usdt.value = toDay;
  254. group3.group1.ipt_uedt.value = toDay;
  255. // 초기정보 조회( 0104 검사 대분류)
  256. lf_getDbDeptcd("0000|0104|0111|","cbf_SMLLP01300");
  257. }
  258. function lf_updtaftrsltlist() {
  259. var usdd = group3.group1.ipt_usdt.value; // 등록시작일
  260. var uedd = group3.group1.ipt_uedt.value; // 등록종료일
  261. var testlrgcd = group3.group1.testlrgcd.value;
  262. var sectcd = group3.group1.cmb_sectcd.value;
  263. var refflag = group3.group1.combo2.value;
  264. var pid = group3.group1.ipt_pid.value;
  265. var bcno = group3.group1.ipt_bcno.value;
  266. var stsyn = "";
  267. if(group3.group1.check1.value) {
  268. stsyn = group3.group1.check1.truevalue;
  269. }else{
  270. stsyn = "";
  271. }
  272. var sInDsName = dsf_createDsRow("ds_temp_search"
  273. , [{col: "usdd" , val:usdd }
  274. , {col: "uedd" , val:uedd }
  275. , {col: "testlrgcd" , val:testlrgcd }
  276. , {col: "sectcd" , val:sectcd }
  277. , {col: "refflag" , val:refflag }
  278. , {col: "pid" , val:pid }
  279. , {col: "bcno" , val:bcno }
  280. ]);
  281. var oParam = {};
  282. oParam.id = "TRLLP01301";
  283. oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
  284. oParam.method = "reqGetUpdtRslt";
  285. oParam.inds = "cond="+sInDsName;
  286. oParam.outds = "ds_grid_grd_updtrsltlist=getUpdtRsltList";
  287. oParam.async = false;
  288. oParam.callback = "cbf_SMLLP01300";
  289. tranf_submit(oParam);
  290. }
  291. function lf_delete(){
  292. for(i=0; i<ds_grid_grd_updtrsltlist.rowcount; i++ ){
  293. ds_grid_grd_updtrsltlist.updatecontrol = false;
  294. if(ds_grid_grd_updtrsltlist.getColumn(i, "chk") =="1"){
  295. ds_grid_grd_updtrsltlist.setColumn(i, "status", "u");
  296. }else{
  297. ds_grid_grd_updtrsltlist.setColumn(i, "status", "");
  298. }
  299. ds_grid_grd_updtrsltlist.updatecontrol = true;
  300. }
  301. var oParam = {};
  302. oParam.id = "TXLLP01301";
  303. oParam.service = "refprintmngtapp.GeneralRefPrintMngt";
  304. oParam.method = "reqDelUpdtRslt";
  305. oParam.inds = "del=ds_grid_grd_updtrsltlist:U";
  306. oParam.async = false;
  307. oParam.callback = "cbf_SMLLP01300";
  308. tranf_submit(oParam);
  309. }
  310. // 엑셀 저장
  311. function lf_exeExcel() {
  312. var objExGrid = this.all["_grdExcel"];
  313. if(objExGrid == null)
  314. {
  315. objExGrid = new Grid("_grdExcel", group3.grd_updtrsltlist.position.left, group3.grd_updtrsltlist.position.top, group3.grd_updtrsltlist.position.right, group3.grd_updtrsltlist.position.bottom);
  316. this.addChild("_grdExcel", objExGrid);
  317. objExGrid.visible = false;
  318. objExGrid.show();
  319. }
  320. objExGrid.binddataset = group3.grd_updtrsltlist.binddataset;
  321. objExGrid.formats = "<Formats>" + group3.grd_updtrsltlist.getCurFormatString() + "</Formats>";
  322. objExGrid.deleteContentsCol(objExGrid.getCellProperty("body", 2, "col"));
  323. objExGrid.deleteContentsCol(objExGrid.getCellProperty("body", 1, "col"));
  324. grdf_exportExcel(objExGrid, lf_lisGetTitle(this), "sheet1", true);
  325. }
  326. // 엔터키 처리
  327. function lf_keyEvent(obj, e){
  328. if(e.keycode == 13) {
  329. // 등록번호 바코드 리딩시
  330. if(obj.name == "ipt_pid"){
  331. group3.group1.ipt_pid.value = group3.group1.ipt_pid.value.toUpperCase();
  332. if(!utlf_isNull(group3.group1.ipt_pid.value)){
  333. group3.group1.ipt_pid.value = frmf_setInputNodeCurPid_Change(group3.group1.ipt_pid.value);
  334. }
  335. lf_updtaftrsltlist();
  336. }
  337. // 검체번호 바코드 리딩시
  338. if(obj.name == "ipt_bcno"){
  339. group3.group1.ipt_bcno.value = group3.group1.ipt_bcno.value.toUpperCase();
  340. lf_updtaftrsltlist();
  341. group3.group1.ipt_bcno.setFocus();
  342. group3.group1.ipt_bcno.setSelect(0,group3.group1.ipt_bcno.getLength());
  343. }
  344. }
  345. }
  346. // callback 함수
  347. function cbf_SMLLP01300(strSvcID, nErrorCode, strErrorMag) {
  348. if(nErrorCode != 0) {
  349. sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
  350. }else{
  351. switch(strSvcID){
  352. case "TRLZZ00101":
  353. group3.group1.testlrgcd.index = 0;
  354. group3.group1.cmb_sectcd.index = 0;
  355. break;
  356. case "TRLLP01301":
  357. // ↓ 환자이름 동일하면 같은내용 안보이게
  358. var sPid = ds_grid_grd_updtrsltlist.getColumn(0, "pid");
  359. var sUpDtDt = ds_grid_grd_updtrsltlist.getColumn(0, "updtdt");
  360. ds_grid_grd_updtrsltlist.updatecontrol=false;
  361. for(i = 0; i < ds_grid_grd_updtrsltlist.rowcount; i++) {
  362. if(i == 0 || ds_grid_grd_updtrsltlist.getColumn(i,"pid") != sPid || ds_grid_grd_updtrsltlist.getColumn(i,"updtdt") != sUpDtDt){
  363. sPid = ds_grid_grd_updtrsltlist.getColumn(i,"pid");
  364. sUpDtDt = ds_grid_grd_updtrsltlist.getColumn(i,"updtdt");
  365. } else if(ds_grid_grd_updtrsltlist.getColumn(i,"pid") == sPid && ds_grid_grd_updtrsltlist.getColumn(i,"updtdt") == sUpDtDt) {
  366. ds_grid_grd_updtrsltlist.setColumn(i, "updtdt", "");
  367. ds_grid_grd_updtrsltlist.setColumn(i, "pid", "");
  368. ds_grid_grd_updtrsltlist.setColumn(i, "patnm", "");
  369. ds_grid_grd_updtrsltlist.setColumn(i, "orddeptnm", "");
  370. ds_grid_grd_updtrsltlist.setColumn(i, "wardroom", "");
  371. }
  372. }
  373. ds_grid_grd_updtrsltlist.updatecontrol=true;
  374. break;
  375. case "TXLLP01301":
  376. lf_updtaftrsltlist();
  377. break;
  378. default:
  379. break;
  380. }
  381. }
  382. }
  383. function fn_checkAll(obj,e){
  384. var strType;
  385. var vl_chk;
  386. var strVal;
  387. var strChkVal;
  388. var objDS;
  389. var nCell = e.cell;
  390. var nSubCnt = obj.getSubCellCount("head",nCell);
  391. var nSubCnt2 = 0;
  392. var nSubCntTot = 0;
  393. for(var i=0; i< nCell; i++){
  394. nSubCnt2 = obj.getSubCellCount("head",i);
  395. nSubCntTot += nSubCnt2;
  396. }
  397. objDS = eval(obj.binddataset);
  398. if (nSubCnt > 0) { // Case Merge Cell
  399. var nChkIdx = -1;
  400. for ( var i = 0; i < nSubCnt; i++)
  401. {
  402. strType = obj.getSubCellProperty("head",e.cell,i,"displaytype");
  403. if(strType == "checkbox") {
  404. nChkIdx = i;
  405. break;
  406. }
  407. }
  408. if (nChkIdx == -1)
  409. return;
  410. // Head setting
  411. strVal = obj.getSubCellProperty("head", nCell, nChkIdx, "text");
  412. if (strVal == "0" || utlf_isNull(strVal)) {
  413. obj.setSubCellProperty("head",nCell,nChkIdx,"text", '1');
  414. vl_chk="1";
  415. } else {
  416. obj.setSubCellProperty("head",nCell,nChkIdx,"text", '0');
  417. vl_chk="0";
  418. }
  419. } else { // Case not merge
  420. strType = obj.getCellProperty("head", e.cell, "displaytype");
  421. if(strType != "checkbox") {
  422. return;
  423. }
  424. // Head setting
  425. strVal = obj.getCellProperty("head", nCell, "text");
  426. try{
  427. strVal = strVal.replace("expr:","");
  428. }catch(e){};
  429. if (strVal == "0" || utlf_isNull(strVal)) {
  430. obj.setCellProperty("head", nCell, "text", '1');
  431. vl_chk="1";
  432. } else {
  433. obj.setCellProperty("head", nCell, "text", '0');
  434. vl_chk="0";
  435. }
  436. }
  437. var nCell = grdf_setGridCheckInfo(obj,e);
  438. var BodyColId = (obj.getCellProperty("body", nCell,"text")).toString().split(":"); // e.col : 바인드된 컬럼.
  439. if (BodyColId[0] != "bind") {
  440. return false;
  441. }
  442. for(var i=0 ; i< objDS.getRowCount(); i++){
  443. ////조건 추가////////////
  444. var pid = objDS.getColumn(i,"pid");
  445. if(!utlf_isNull(pid)){
  446. objDS.setColumn(i, BodyColId[1], vl_chk);
  447. }
  448. }
  449. }
  450. function group3_group1_btn_Ref_onclick(obj:Button, e:ClickEventInfo)
  451. {
  452. lf_updtaftrsltlist()
  453. }
  454. function group3_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  455. {
  456. lf_exeExcel();
  457. }
  458. function group3_group1_btn_reset_onclick(obj:Button, e:ClickEventInfo)
  459. {
  460. this.reload();
  461. }
  462. function btn_print_onclick(obj:Button, e:ClickEventInfo)
  463. {
  464. ds_grid_grd_updtrsltlistPrint.clearData();
  465. var addRw = 0;
  466. for(var i=0; i<ds_grid_grd_updtrsltlist.rowcount; i++)
  467. {
  468. addRw = ds_grid_grd_updtrsltlistPrint.addRow();
  469. ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "updtdt", ds_grid_grd_updtrsltlist.getColumn(i,"updtdt"));
  470. ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "pid", ds_grid_grd_updtrsltlist.getColumn(i,"pid"));
  471. ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "patnm", ds_grid_grd_updtrsltlist.getColumn(i,"patnm"));
  472. ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "orddeptnm", ds_grid_grd_updtrsltlist.getColumn(i,"orddeptnm"));
  473. ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "wardroom", ds_grid_grd_updtrsltlist.getColumn(i,"wardroom"));
  474. ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "tclsnm", ds_grid_grd_updtrsltlist.getColumn(i,"tclsnm"));
  475. ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "updtbfrslt", ds_grid_grd_updtrsltlist.getColumn(i,"updtbfrslt"));
  476. ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "updtbfreptnm", ds_grid_grd_updtrsltlist.getColumn(i,"updtbfreptnm"));
  477. ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "updtaftrslt", ds_grid_grd_updtrsltlist.getColumn(i,"updtaftrslt"));
  478. ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "updtaftreptnm", ds_grid_grd_updtrsltlist.getColumn(i,"updtaftreptnm"));
  479. ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "updtresn", ds_grid_grd_updtrsltlist.getColumn(i,"updtresn"));
  480. ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "notidt", ds_grid_grd_updtrsltlist.getColumn(i,"notidt"));
  481. ds_grid_grd_updtrsltlistPrint.setColumn(addRw, "bcno", ds_grid_grd_updtrsltlist.getColumn(i,"bcno"));
  482. }
  483. var objDOM = rptf_createDOM(); // DOM 객체 설정
  484. rptf_makeNodeToDOM(objDOM, "/root/main/print");
  485. rptf_setValueToDOM(objDOM, "/root/main/print/fromdd", group3.group1.ipt_usdt.value);
  486. rptf_setValueToDOM(objDOM, "/root/main/print/todd", group3.group1.ipt_uedt.value);
  487. rptf_setNodeListToDOM(objDOM, "/root/main/updtrsltlist", ds_grid_grd_updtrsltlistPrint); // 데이터셋 1
  488. var objParam = new Object();
  489. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  490. var option = "open=1;save=1;directprint=0;print=1;zoom=0";
  491. rptf_exeReportPreview30(["RPLLP01300"],[objParam], option);
  492. }
  493. function btn_delete_onclick(obj:Button, e:ClickEventInfo)
  494. {
  495. lf_delete();
  496. }
  497. // 등록번호 key down
  498. function group3_group1_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  499. {
  500. lf_keyEvent(obj, e);
  501. }
  502. // 바코드번호 key down
  503. function group3_group1_ipt_bcno_onkeydown(obj:Edit, e:KeyEventInfo)
  504. {
  505. lf_keyEvent(obj, e);
  506. }
  507. //조회구분선택 검사분류,시행부서
  508. function group3_group1_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  509. {
  510. // 검사분류
  511. if(group3.group1.combo2.value == "1"){
  512. group3.group1.testlrgcd.visible = true;
  513. group3.group1.cmb_sectcd.visible = false;
  514. // 시행부서
  515. }else{
  516. group3.group1.testlrgcd.visible = false;
  517. group3.group1.cmb_sectcd.visible = true;
  518. }
  519. }
  520. function group3_grd_updtrsltlist_onheadclick(obj:Grid, e:GridClickEventInfo)
  521. {
  522. if (e.col == 2) fn_checkAll(obj,e);
  523. }]]></Script>
  524. </Form>
  525. </FDL>