SMLLF10600_계산결과수식정의.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLF10600" position="absolute 0 0 1182 757" titletext="사유코드관리" oninit="SMLLF10600_oninit" onload="SMLLF10600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="계산결과 검사항목별 수식정의 관리" class="tit_1" position="absolute 0 0 248 25"/>
  8. <Shape id="line17" linetype="horizontal" class="line_6" position="absolute 0 46 1179 52" style="strokepen:3 solid #9ebed4ff;" anchor="left top right"/>
  9. <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1051 25 1107 47" onclick="btn_save_onclick" anchor="top right"/>
  10. <Button id="btn_clear" taborder="2" text="초기화" class="btn4" position="absolute 1110 25 1178 47" onclick="btn_clear_onclick" anchor="top right"/>
  11. <Shape id="line1" class="line_1" position="absolute 0 111 1180 117" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  12. <Static id="caption1" text="검사항목별 수식정의 리스트" class="tit_2" position="absolute 0 94 191 111"/>
  13. <Grid id="grd_calf" taborder="3" binddataset="ds_grd_calf" useinputpanel="false" position="absolute 0 115 1180 500" oncellclick="grd_calf_oncellclick" onkeyup="grd_calf_onkeyup" anchor="left top right" autofittype="col">
  14. <Formats>
  15. <Format id="default">
  16. <Columns>
  17. <Column size="27"/>
  18. <Column size="65"/>
  19. <Column size="165"/>
  20. <Column size="65"/>
  21. <Column size="90"/>
  22. <Column size="60"/>
  23. <Column size="60"/>
  24. <Column size="60"/>
  25. <Column size="60"/>
  26. <Column size="60"/>
  27. <Column size="60"/>
  28. <Column size="60"/>
  29. <Column size="60"/>
  30. <Column size="60"/>
  31. <Column size="60"/>
  32. <Column size="60"/>
  33. <Column size="110"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  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="인수1"/>
  51. <Cell col="7" text="인수2"/>
  52. <Cell col="8" text="인수3"/>
  53. <Cell col="9" text="인수4"/>
  54. <Cell col="10" text="인수5"/>
  55. <Cell col="11" text="인수6"/>
  56. <Cell col="12" text="인수7"/>
  57. <Cell col="13" text="인수8"/>
  58. <Cell col="14" text="인수9"/>
  59. <Cell col="15" text="인수10"/>
  60. <Cell col="16" text="적용검사분류코드"/>
  61. <Cell col="17" text="적용검사개수"/>
  62. <Cell col="18" text="계산형식"/>
  63. <Cell col="19" text="계산식내용"/>
  64. <Cell col="20" text="숨길꺼seq"/>
  65. </Band>
  66. <Band id="body">
  67. <Cell celltype="head"/>
  68. <Cell col="1" displaytype="text" edittype="text" text="bind:tclscd"/>
  69. <Cell col="2" style="align:left middle;" text="bind:tclsnm"/>
  70. <Cell col="3" displaytype="text" edittype="text" style="align:center middle;" text="bind:spccd"/>
  71. <Cell col="4" style="align:left middle;" text="bind:spcnm"/>
  72. <Cell col="5" displaytype="text" edittype="text" text="bind:acptcnt"/>
  73. <Cell col="6" displaytype="text" edittype="text" text="bind:acpt01"/>
  74. <Cell col="7" displaytype="text" edittype="text" text="bind:acpt02"/>
  75. <Cell col="8" displaytype="text" edittype="text" text="bind:acpt03"/>
  76. <Cell col="9" displaytype="text" edittype="text" text="bind:acpt04"/>
  77. <Cell col="10" displaytype="text" edittype="text" text="bind:acpt05"/>
  78. <Cell col="11" displaytype="text" edittype="text" text="bind:acpt06"/>
  79. <Cell col="12" displaytype="text" edittype="text" text="bind:acpt07"/>
  80. <Cell col="13" displaytype="text" edittype="text" text="bind:acpt08"/>
  81. <Cell col="14" displaytype="text" edittype="text" text="bind:acpt09"/>
  82. <Cell col="15" displaytype="text" edittype="text" text="bind:acpt10"/>
  83. <Cell col="16" displaytype="text" edittype="text" text="bind:apptclscd"/>
  84. <Cell col="17" text="bind:apptestcnt"/>
  85. <Cell col="18" text="bind:calformkind"/>
  86. <Cell col="19" text="bind:calformcnts"/>
  87. <Cell col="20" text="bind:resndispseq"/>
  88. </Band>
  89. </Format>
  90. </Formats>
  91. </Grid>
  92. <Div id="group1" taborder="4" class="div_SA2" position="absolute 0 50 1180 85" anchor="left top right">
  93. <Layouts>
  94. <Layout>
  95. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1105 7 1113 29" anchor="top right"/>
  96. <Static id="caption2" text="조회구분 :" class="search_name" position="absolute 610 10 700 27" anchor="top right"/>
  97. <Button id="btn_Ref" taborder="1" text="조회" class="btn1" position="absolute 1118 7 1174 29" onclick="group1_btn_Ref_onclick" anchor="top right"/>
  98. <Combo id="cmb_selectgbn" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 705 9 795 28" anchor="top right">
  99. <Dataset id="innerdataset">
  100. <ColumnInfo>
  101. <Column id="codecolumn"/>
  102. <Column id="datacolumn"/>
  103. </ColumnInfo>
  104. <Rows>
  105. <Row>
  106. <Col id="codecolumn">1</Col>
  107. <Col id="datacolumn">검사분류</Col>
  108. </Row>
  109. <Row>
  110. <Col id="codecolumn">2</Col>
  111. <Col id="datacolumn">시행부서</Col>
  112. </Row>
  113. </Rows>
  114. </Dataset>
  115. </Combo>
  116. <Combo id="cmb_select01" taborder="3" innerdataset="ds_init_cmb_select01" codecolumn="cd" datacolumn="nm" class="combo_s_essential" position="absolute 800 9 910 28" anchor="top right"/>
  117. <Combo id="cmb_select02" taborder="4" innerdataset="ds_init_cmb_select02" codecolumn="cd" datacolumn="nm" class="combo_s_essential" position="absolute 915 9 1068 28" anchor="top right"/>
  118. </Layout>
  119. </Layouts>
  120. </Div>
  121. <Button id="btn_addrow" taborder="5" text="행추가" class="btn2" position="absolute 1126 89 1179 108" onclick="btn_addrow_onclick" anchor="top right"/>
  122. <Static id="caption3" text="검사항목별 수식" class="tit_2" position="absolute 0 509 117 529"/>
  123. <TextArea id="textarea1" taborder="6" position="absolute 0 530 1179 755" anchor="all" autoselect="true"/>
  124. <Shape id="line2" linetype="horizontal" class="line_1" position="absolute 0 526 1179 532" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  125. </Layout>
  126. </Layouts>
  127. <Objects>
  128. <Dataset id="ds_grd_calf" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  129. <ColumnInfo>
  130. <Column id="tclscd" type="STRING"/>
  131. <Column id="tclsnm" type="STRING"/>
  132. <Column id="spccd" type="STRING"/>
  133. <Column id="spcnm" type="STRING"/>
  134. <Column id="acptcnt" type="STRING"/>
  135. <Column id="acpt01" type="STRING"/>
  136. <Column id="acpt02" type="STRING"/>
  137. <Column id="acpt03" type="STRING"/>
  138. <Column id="acpt04" type="STRING"/>
  139. <Column id="acpt05" type="STRING"/>
  140. <Column id="acpt06" type="STRING"/>
  141. <Column id="acpt07" type="STRING"/>
  142. <Column id="acpt08" type="STRING"/>
  143. <Column id="acpt09" type="STRING"/>
  144. <Column id="acpt10" type="STRING"/>
  145. <Column id="apptclscd" type="STRING"/>
  146. <Column id="apptestcnt" type="STRING"/>
  147. <Column id="calformkind" type="STRING"/>
  148. <Column id="calformcnts" type="STRING"/>
  149. <Column id="resndispseq" type="STRING"/>
  150. </ColumnInfo>
  151. </Dataset>
  152. <Dataset id="ds_init_cmb_select01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  153. <ColumnInfo>
  154. <Column id="nm" type="STRING"/>
  155. <Column id="cd" type="STRING"/>
  156. </ColumnInfo>
  157. </Dataset>
  158. <Dataset id="ds_init_cmb_select02" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  159. <ColumnInfo>
  160. <Column id="nm" type="STRING"/>
  161. <Column id="cd" type="STRING"/>
  162. </ColumnInfo>
  163. </Dataset>
  164. <Dataset id="ds_init_0117" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  165. <Dataset id="ds_init_0104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  166. <Dataset id="ds_init_0102" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  167. <Dataset id="ds_init_0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  168. <Dataset id="ds_init_0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  169. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  170. <ColumnInfo>
  171. <Column id="selectgbn" type="STRING" size="256"/>
  172. <Column id="select01" type="STRING" size="256"/>
  173. <Column id="select02" type="STRING" size="256"/>
  174. </ColumnInfo>
  175. <Rows>
  176. <Row>
  177. <Col id="selectgbn">1</Col>
  178. </Row>
  179. </Rows>
  180. </Dataset>
  181. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  182. <ColumnInfo>
  183. <Column id="resncdkind" type="STRING" size="256"/>
  184. <Column id="calfdata" type="STRING" size="256"/>
  185. <Column id="codeflag" type="STRING" size="256"/>
  186. <Column id="selectgbn" type="STRING" size="256"/>
  187. <Column id="testcd" type="STRING" size="256"/>
  188. <Column id="sectcd" type="STRING" size="256"/>
  189. <Column id="testlrgcd" type="STRING" size="256"/>
  190. <Column id="testmdlcd" type="STRING" size="256"/>
  191. <Column id="t_tclscd" type="STRING" size="256"/>
  192. <Column id="t_spccd" type="STRING" size="256"/>
  193. </ColumnInfo>
  194. <Rows>
  195. <Row/>
  196. </Rows>
  197. </Dataset>
  198. <Dataset id="ds_getcalfspc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  199. <ColumnInfo>
  200. <Column id="nm" type="STRING" size="256" sumtext="검사명"/>
  201. </ColumnInfo>
  202. </Dataset>
  203. </Objects>
  204. <Bind>
  205. <BindItem id="item0" compid="group1.cmb_selectgbn" propid="value" datasetid="ds_hidden" columnid="selectgbn"/>
  206. <BindItem id="item1" compid="group1.cmb_select01" propid="value" datasetid="ds_hidden" columnid="select01"/>
  207. <BindItem id="item2" compid="group1.cmb_select02" propid="value" datasetid="ds_hidden" columnid="select02"/>
  208. </Bind>
  209. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  210. * System Name :
  211. * Job Name :
  212. * Creator :
  213. * Make Date : 2015-11-09
  214. * Description :
  215. *---------------------------------------------------------------------------------------
  216. * Modify Date Modifier Modify Description
  217. *---------------------------------------------------------------------------------------
  218. * 2015-11-09 Live Converter TF->XP
  219. *
  220. *---------------------------------------------------------------------------------------
  221. ****************************************************************************************/
  222. include "com_commonxp::comm_main.xjs";
  223. function SMLLF10600_oninit(obj:Form, e:InitEventInfo)
  224. {
  225. frmf_initForm(obj);
  226. grdf_initGrid(grd_calf);
  227. grdf_setRowTypeIcon(grd_calf, 0)
  228. }
  229. function SMLLF10600_onload(obj:Form, e:LoadEventInfo)
  230. {
  231. // 사유코드 그리드 초기화
  232. var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "codeflag", val: "0117|0104|0102|0111|0106|"}]); // 0117 사유코드관리
  233. //submit("TRLZZ00101");
  234. var oParam = {};
  235. oParam.id = "TRLZZ00101";
  236. oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
  237. oParam.method = "reqGetInitCodeInfo";
  238. oParam.inds = "cond="+sInDsName;
  239. oParam.outds = "ds_init_0117=0117 ds_init_0104=0104 ds_init_0102=0102 ds_init_0111=0111 ds_init_0106=0106";
  240. oParam.async = false;
  241. //oParam.callback = "cf_TRLZZ00101";
  242. tranf_submit(oParam);
  243. fSelectGbn();
  244. }
  245. function fSelectGbn()
  246. {
  247. //검사분류 선택
  248. if(group1.cmb_selectgbn.value == "1")
  249. {
  250. //첫번째 콤보에 대분류 셋팅
  251. group1.cmb_select01.innerdataset="ds_init_0104";
  252. group1.cmb_select01.codecolumn="cd";
  253. group1.cmb_select01.datacolumn="nm";
  254. //두번째 콤보에 중분류 셋팅
  255. ds_init_0102.filter("");
  256. group1.cmb_select02.innerdataset="ds_init_0102";
  257. group1.cmb_select02.codecolumn="cd";
  258. group1.cmb_select02.datacolumn="nm";
  259. }
  260. //시행부서 선택
  261. else if(group1.cmb_selectgbn.value== "2")
  262. {
  263. //첫번째 콤보에 계코드 셋팅
  264. group1.cmb_select01.innerdataset="ds_init_0111";
  265. group1.cmb_select01.codecolumn="cd";
  266. group1.cmb_select01.datacolumn="nm";
  267. //두번째 콤보에 검사계코드 셋팅
  268. ds_init_0106.filter("");
  269. group1.cmb_select02.innerdataset="ds_init_0106";
  270. group1.cmb_select02.codecolumn="cd";
  271. group1.cmb_select02.datacolumn="nm";
  272. }
  273. ds_hidden.setColumn(0, "select01", "00");
  274. ds_hidden.setColumn(0, "select02", "00");
  275. }
  276. //조회
  277. function group1_btn_Ref_onclick(obj:Button, e:ClickEventInfo)
  278. {
  279. fcalfList();
  280. }
  281. function fcalfList()
  282. {
  283. //조회구분 검사분류 선택시
  284. if(group1.cmb_selectgbn.value== "1")
  285. {
  286. ds_send.setColumn(0, "testlrgcd", ds_hidden.getColumn(0, "select01"));
  287. ds_send.setColumn(0, "testmdlcd", ds_hidden.getColumn(0, "select02"));
  288. }
  289. //조회구분 시행부서 선택시
  290. else if(group1.cmb_selectgbn.value== "2")
  291. {
  292. ds_send.setColumn(0, "sectcd", ds_hidden.getColumn(0, "select01"));
  293. ds_send.setColumn(0, "tsectcd", ds_hidden.getColumn(0, "select02"));
  294. }
  295. ds_send.setColumn(0, "selectgbn", group1.cmb_selectgbn.value);
  296. //submit("TRLLF01501");
  297. var oParam = {};
  298. oParam.id = "TRLLF01501";
  299. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  300. oParam.method = "reqGetcalfList";
  301. oParam.inds = "cond=ds_send";
  302. oParam.outds = "ds_grd_calf=getcalfcd";
  303. oParam.async = false;
  304. //oParam.callback = "cf_TRLLF01501";
  305. tranf_submit(oParam);
  306. }
  307. function grd_calf_oncellclick(obj:Grid, e:GridClickEventInfo)
  308. {
  309. if(ds_grd_calf.rowcount > 0)
  310. {
  311. textarea1.value = ds_grd_calf.getColumn(ds_grd_calf.rowposition, "calformcnts");
  312. }
  313. else
  314. {
  315. textarea1.text = "";
  316. }
  317. }
  318. function btn_addrow_onclick(obj:Button, e:ClickEventInfo)
  319. {
  320. ds_grd_calf.addRow();
  321. }
  322. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  323. {
  324. fExecalf();
  325. }
  326. // 사유코드 수정, 등록
  327. function fExecalf()
  328. {
  329. if(ds_grd_calf.rowcount <= 0)
  330. {
  331. alert("저장 할 내용이 없습니다." ); // 할 수 없습니다.
  332. return;
  333. }
  334. var oParam = {};
  335. oParam.id = "TXLLF01501";
  336. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  337. oParam.method = "reqsetCalfList";
  338. oParam.inds = "cond=ds_send:U";
  339. oParam.async = false;
  340. //oParam.callback = "cf_TXLLF01501";
  341. tranf_submit(oParam);
  342. alert("저장되었습니다");
  343. fcalfList();
  344. }
  345. function btn_clear_onclick(obj:Button, e:ClickEventInfo)
  346. {
  347. fExeCancel();
  348. }
  349. function fExeCancel()
  350. {
  351. this.reload();
  352. }
  353. function grd_calf_onkeyup(obj:Grid, e:KeyEventInfo)
  354. {
  355. if(e.keycode == 13)
  356. {
  357. if(obj.currentcol == 1)
  358. {
  359. var ftclscd = ds_grd_calf.getColumn(ds_grd_calf.rowposition, "tclscd");
  360. ds_send.setColumn(0, "t_spccd", "");
  361. ds_send.setColumn(0, "t_tclscd", ftclscd);
  362. var oParam = {};
  363. oParam.id = "TRLLF01601";
  364. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  365. oParam.method = "reqGetcalfspcList";
  366. oParam.inds = "cond=ds_send";
  367. oParam.outds = "ds_getcalfspc=getcalfspc";
  368. oParam.async = false;
  369. //oParam.callback = "cf_TRLLF01601";
  370. tranf_submit(oParam);
  371. ds_grd_calf.setColumn(ds_grd_calf.rowposition, "tclsnm", ds_getcalfspc.getColumn(0, "nm"));
  372. }
  373. else if(obj.currentcol == 3)
  374. {
  375. var fspccd = ds_grd_calf.getColumn(0, "spccd");
  376. ds_send.setColumn(0, "t_tclscd", "");
  377. ds_send.setColumn(0, "t_spccd", fspccd);
  378. var oParam = {};
  379. oParam.id = "TRLLF01601";
  380. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  381. oParam.method = "reqGetcalfspcList";
  382. oParam.inds = "cond=ds_send";
  383. oParam.outds = "ds_getcalfspc=getcalfspc";
  384. oParam.async = false;
  385. //oParam.callback = "cf_TRLLF01601";
  386. tranf_submit(oParam);
  387. ds_grd_calf.setColumn(ds_grd_calf.rowposition, "spcnm", ds_getcalfspc.getColumn(0, "nm"));
  388. }
  389. }
  390. }
  391. ]]></Script>
  392. </Form>
  393. </FDL>