SMLPS00600_세포조직진단비교.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLPS00600" position="absolute 0 0 1199 761" titletext="세포/조직 진단비교" oninit="SMLPS00600_oninit" onload="SMLPS00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_excel" taborder="1" text="EXCEL저장" class="btn7" position="absolute 1101 73 1193 95" anchor="top right" onclick="btn_excel_onclick"/>
  8. <Static id="caption6" text="세포/조직 진단비교" class="tit_1" position="absolute 0 0 148 25" anchor="left top"/>
  9. <Grid id="grd_statsinfolist" class="datagrid2" taborder="2" binddataset="ds_grd_statsinfolist" useinputpanel="false" position="absolute 0 105 1194 758" cellsizingtype="both" autosizingtype="none" anchor="all" autofittype="none" cellmovingtype="none" extendsizetype="row">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="0"/>
  14. <Column size="27"/>
  15. <Column size="80"/>
  16. <Column size="80"/>
  17. <Column size="0"/>
  18. <Column size="90"/>
  19. <Column size="216"/>
  20. <Column size="40"/>
  21. <Column size="0"/>
  22. <Column size="90"/>
  23. <Column size="210"/>
  24. <Column size="0"/>
  25. <Column size="90"/>
  26. <Column size="220"/>
  27. <Column size="50"/>
  28. </Columns>
  29. <Rows>
  30. <Row size="26" band="head"/>
  31. <Row size="24"/>
  32. </Rows>
  33. <Band id="head">
  34. <Cell text="기관코드"/>
  35. <Cell col="1"/>
  36. <Cell col="2" text="등록번호"/>
  37. <Cell col="3" text="환자명"/>
  38. <Cell col="4" text="sptno"/>
  39. <Cell col="5" text="세포 &#10;병리번호"/>
  40. <Cell col="6" text="세포진단"/>
  41. <Cell col="7" text="등급"/>
  42. <Cell col="8" text="jptno"/>
  43. <Cell col="9" text="조직 &#10;병리번호"/>
  44. <Cell col="10" text="조직진단"/>
  45. <Cell col="11" text="mptno"/>
  46. <Cell col="12" text="분자 &#10;병리번호"/>
  47. <Cell col="13" text="분자진단"/>
  48. <Cell col="14" text="판정"/>
  49. </Band>
  50. <Band id="body">
  51. <Cell text="bind:instcd"/>
  52. <Cell col="1" text="expr:currow + 1"/>
  53. <Cell col="2" class="text_center" text="bind:pid"/>
  54. <Cell col="3" class="text_center" text="bind:patnm"/>
  55. <Cell col="4" class="text_center" text="bind:sptno"/>
  56. <Cell col="5" class="text_center" text="bind:sdispptno"/>
  57. <Cell col="6" style="align:left middle;" class="text_center" text="bind:sdiagcnts"/>
  58. <Cell col="7" text="bind:readgrade"/>
  59. <Cell col="8" text="bind:jptno"/>
  60. <Cell col="9" class="text_center" text="bind:jdispptno"/>
  61. <Cell col="10" class="text_center" text="bind:jdiagcnts"/>
  62. <Cell col="11" text="bind:mptno"/>
  63. <Cell col="12" class="text_center" text="bind:mdispptno"/>
  64. <Cell col="13" class="text_center" text="bind:mdiagcnts" wordwrap="char" autosizerow="limitmin"/>
  65. <Cell col="14" text="bind:sepojudg"/>
  66. </Band>
  67. </Format>
  68. </Formats>
  69. </Grid>
  70. <Div id="grp_sea" taborder="3" class="div_SA" position="absolute 0 25 1195 70" anchor="left top right">
  71. <Layouts>
  72. <Layout width="1195" height="45">
  73. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1100 12 1106 34" anchor="top right"/>
  74. <Button id="btn_sea" taborder="1" text="조회" onclick="grp_sea_btn_sea_onclick" class="btn1" position="absolute 1109 12 1165 34" anchor="top right"/>
  75. <Calendar id="ipt_cncltodd" taborder="2" onkeyup="grp_sea_ipt_cncltodd_onkeyup" class="input_s_essential" position="absolute 996 13 1096 32" anchor="top right" mask="yyyy-mm-dd"/>
  76. <Calendar id="ipt_cnclfromdd" taborder="3" class="input_s_essential" position="absolute 877 13 977 32" anchor="top right" mask="yyyy-mm-dd"/>
  77. <Static id="caption2" text="접수일자 :" class="search_name" position="absolute 788 14 874 31" anchor="top right"/>
  78. <Static id="caption5" text="~" class="search_no_b" position="absolute 980 13 992 30" anchor="top right"/>
  79. <Combo id="cbo_ptnocd" taborder="4" innerdataset="ds_init_cbo_ptnocd" codecolumn="ptnocd" datacolumn="ptnonm" position="absolute 94 14 220 33" anchor="left top"/>
  80. <Edit id="ipt_fromptno" taborder="5" class="text_center" position="absolute 253 14 293 33" anchor="left top"/>
  81. <Static id="caption1" text="병리번호 :" class="search_name" position="absolute 6 15 78 31" anchor="left top"/>
  82. <Static id="caption3" text="~" class="search_no_b" position="absolute 296 15 308 32" anchor="left top"/>
  83. <Edit id="input1" taborder="6" class="text_center" position="absolute 341 14 376 33" anchor="left top"/>
  84. <Edit id="input2" taborder="7" class="text_center" position="absolute 311 14 338 33" anchor="left top"/>
  85. <Edit id="ipt_fromyear" taborder="8" class="text_center" position="absolute 223 14 250 33" anchor="left top"/>
  86. <Edit id="ipt_refval" taborder="9" onkeyup="grp_sea_ipt_refval_onkeyup" position="absolute 698 14 783 33" anchor="top right"/>
  87. <Static id="caption7" text="등록번호 :" class="search_name" position="absolute 611 15 697 32" anchor="top right"/>
  88. <Edit id="input5" taborder="10" class="input_search" position="absolute 445 14 605 33" anchor="left top"/>
  89. <Static id="caption8" text="문자열" class="search_name" position="absolute 380 15 439 32" anchor="left top"/>
  90. </Layout>
  91. </Layouts>
  92. </Div>
  93. <Static id="caption4" text="접수 검사/진료과 목록" class="tit_2" position="absolute 1 84 158 100" anchor="left top"/>
  94. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 101 1194 107" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  95. </Layout>
  96. </Layouts>
  97. <Objects>
  98. <Dataset id="ds_grd_statsinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  99. <ColumnInfo>
  100. <Column id="instcd" type="STRING"/>
  101. <Column id="pid" type="STRING"/>
  102. <Column id="patnm" type="STRING"/>
  103. <Column id="sptno" type="STRING"/>
  104. <Column id="sdispptno" type="STRING"/>
  105. <Column id="sdiagcnts" type="STRING"/>
  106. <Column id="readgrade" type="STRING"/>
  107. <Column id="jptno" type="STRING"/>
  108. <Column id="jdispptno" type="STRING"/>
  109. <Column id="jdiagcnts" type="STRING"/>
  110. <Column id="mptno" type="STRING"/>
  111. <Column id="mdispptno" type="STRING"/>
  112. <Column id="mdiagcnts" type="STRING"/>
  113. <Column id="sepojudg" type="STRING"/>
  114. </ColumnInfo>
  115. </Dataset>
  116. <Dataset id="ds_init_cbo_ptnocd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  117. <ColumnInfo>
  118. <Column id="ptnonm" type="STRING"/>
  119. <Column id="ptnocd" type="STRING"/>
  120. </ColumnInfo>
  121. </Dataset>
  122. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  123. <ColumnInfo>
  124. <Column id="sysdt" type="STRING" size="256"/>
  125. <Column id="ptnocd" type="STRING" size="256"/>
  126. <Column id="ptnocode" type="STRING" size="256"/>
  127. <Column id="fromyear" type="STRING" size="256"/>
  128. <Column id="fromptno" type="STRING" size="256"/>
  129. <Column id="toyear" type="STRING" size="256"/>
  130. <Column id="toptno" type="STRING" size="256"/>
  131. <Column id="refmthdcd" type="STRING" size="256"/>
  132. <Column id="refval" type="STRING" size="256"/>
  133. <Column id="acptfromdd" type="STRING" size="256"/>
  134. <Column id="acpttodd" type="STRING" size="256"/>
  135. <Column id="statscondcd" type="STRING" size="256"/>
  136. </ColumnInfo>
  137. <Rows>
  138. <Row/>
  139. </Rows>
  140. </Dataset>
  141. <Dataset id="ds_hidden_detlrefcrite" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  142. <ColumnInfo>
  143. <Column id="diag" type="STRING" size="256"/>
  144. </ColumnInfo>
  145. </Dataset>
  146. </Objects>
  147. <Bind>
  148. <BindItem id="item0" compid="grp_sea.ipt_refval" propid="value" datasetid="ds_init" columnid="refval"/>
  149. <BindItem id="item3" compid="grp_sea.ipt_fromyear" propid="value" datasetid="ds_init" columnid="fromyear"/>
  150. <BindItem id="item5" compid="grp_sea.input2" propid="value" datasetid="ds_init" columnid="toyear"/>
  151. <BindItem id="item6" compid="grp_sea.input1" propid="value" datasetid="ds_init" columnid="toptno"/>
  152. <BindItem id="item4" compid="grp_sea.ipt_fromptno" propid="value" datasetid="ds_init" columnid="fromptno"/>
  153. <BindItem id="item1" compid="grp_sea.ipt_cnclfromdd" propid="value" datasetid="ds_init" columnid="acptfromdd"/>
  154. <BindItem id="item2" compid="grp_sea.ipt_cncltodd" propid="value" datasetid="ds_init" columnid="acpttodd"/>
  155. </Bind>
  156. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  157. * System Name :
  158. * Job Name :
  159. * Creator :
  160. * Make Date : 2015-11-13
  161. * Description :
  162. *---------------------------------------------------------------------------------------
  163. * Modify Date Modifier Modify Description
  164. *---------------------------------------------------------------------------------------
  165. * 2015-11-13 Live Converter TF->XP
  166. *
  167. *---------------------------------------------------------------------------------------
  168. ****************************************************************************************/
  169. include "com_commonxp::comm_main.xjs";
  170. function SMLPS00600_oninit(obj:Form, e:InitEventInfo)
  171. {
  172. frmf_initForm(obj);
  173. }
  174. function SMLPS00600_onload(obj:Form, e:LoadEventInfo)
  175. {
  176. grdf_initGrid(grd_statsinfolist);
  177. fExeInitialize();
  178. }
  179. function fExeInitialize()
  180. {
  181. var sCurDate = "";
  182. // 시스템일자 조회
  183. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}]);
  184. var oParam = {};
  185. oParam.id = "TRLPZ00102";
  186. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  187. oParam.method = "reqGetSystemDateTimeInformation";
  188. oParam.inds = "refData=ds_send";
  189. oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
  190. oParam.async = false;
  191. //oParam.callback = "cf_TRLPZ00102";
  192. tranf_submit(oParam);
  193. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  194. ,{col : "refflagcd", val : "0"}]);
  195. var oParam = {};
  196. oParam.id = "TRLPZ00109";
  197. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  198. oParam.method = "reqGetPtNoCdList";
  199. oParam.inds = "refdata=ds_send";
  200. oParam.outds = "ds_init_cbo_ptnocd=rsltlist";
  201. oParam.async = false;
  202. //oParam.callback = "cf_TRLPZ00109";
  203. tranf_submit(oParam);
  204. // 초기값 설정
  205. sCurDate = utlf_getCurrentDate();
  206. dsf_createDsRow("ds_init", [{col : "ptnocode", val : ""}
  207. ,{col : "fromyear", val : sCurDate.substr(2,2)}
  208. ,{col : "toyear", val : sCurDate.substr(2,2)}
  209. ,{col : "fromptno", val : ""}
  210. ,{col : "toptno", val : ""}
  211. ,{col : "acptfromdd", val : sCurDate}
  212. ,{col : "acpttodd", val : sCurDate}
  213. ,{col : "refmthdcd", val : "1"}
  214. ,{col : "refval", val : ""}
  215. ,{col : "statscondcd", val : "0"}]);
  216. grp_sea.ipt_refval.setFocus();
  217. }
  218. //조회
  219. function fGetStatsInfoList()
  220. {
  221. var sTemp = "";
  222. var sFromDD = ds_init.getColumn(0, "acptfromdd", utlf_getCurrentDate());
  223. var sToDD = ds_init.getColumn(0, "acpttodd", utlf_getCurrentDate());
  224. if( !utlf_isNull(ds_init.getColumn(0, "ptnocode")))
  225. {
  226. if( utlf_isNull(ds_init.getColumn(0, "fromyear")))
  227. {
  228. ds_init.setColumn(0, "fromyear", sFromDD.substr(2,2));
  229. }
  230. else
  231. {
  232. sTemp = ds_init.getColumn(0, "fromyear");
  233. ds_init.getColumn(0, "fromyear", sTemp.getLeftPad(2, "0"));
  234. }
  235. if( utlf_isNull(ds_init.getColumn(0,"toyear")))
  236. {
  237. ds_init.setColumn(0, "toyear", sFromDD.substr(2,2));
  238. }
  239. else
  240. {
  241. sTemp = ds_init.getColumn(0, "toyear");
  242. ds_init.getColumn(0, "toyear", sTemp.getLeftPad(2, "0"));
  243. }
  244. if( utlf_isNull(ds_init.getColumn(0, "fromptno")))
  245. {
  246. ds_init.getColumn(0,"fromptno", "000000");
  247. }
  248. else
  249. {
  250. sTemp = ds_init.getColumn(0, "fromptno");
  251. ds_init.getColumn(0, "fromptno", sTemp.getLeftPad(6, "0"));
  252. }
  253. if( utlf_isNull(ds_init.getColumn(0, "toptno")))
  254. {
  255. ds_init.getColumn(0,"toptno", "999999");
  256. }
  257. else
  258. {
  259. sTemp = ds_init.getColumn(0, "toptno");
  260. ds_init.getColumn(0, "toptno", sTemp.getLeftPad(6, "0"));
  261. }
  262. }
  263. sTemp = ds_init.getColumn(0, "ptnocode");
  264. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  265. ,{col : "acptfromdd", val : ds_init.getColumn(0, "acptfromdd")}
  266. ,{col : "acpttodd", val : ds_init.getColumn(0, "acpttodd")}
  267. ,{col : "refmthdcd", val : ds_init.getColumn(0, "refmthdcd")}
  268. ,{col : "refval", val : ds_init.getColumn(0, "refval")}
  269. ,{col : "statscondcd", val : ds_init.getColumn(0, "statscondcd")}
  270. ,{col : "fromyear", val : ds_init.getColumn(0, "fromyear")}
  271. ,{col : "fromptno", val : ds_init.getColumn(0, "fromptno")}
  272. ,{col : "toyear", val : ds_init.getColumn(0, "toyear")}
  273. ,{col : "toptno", val : ds_init.getColumn(0, "toptno")}
  274. ,{col : "diag", val : ds_hidden_detlrefcrite.getColumn(0, "diag")}]);
  275. var oParam = {};
  276. oParam.id = "TRLPS00601";
  277. oParam.service = "plgystatsmngtapp.StatsMngtRef";
  278. oParam.method = "reqGetDiagCpreList";
  279. oParam.inds = "refData=ds_send";
  280. oParam.outds = "ds_grd_statsinfolist=reflist";
  281. oParam.async = false;
  282. //oParam.callback = "cf_TRLPS00601";
  283. tranf_submit(oParam);
  284. }
  285. //조회
  286. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  287. {
  288. fGetStatsInfoList();
  289. }
  290. function grp_sea_ipt_cncltodd_onkeyup(obj:Calendar, e:KeyEventInfo)
  291. {
  292. if(e.keycode == 13)
  293. {
  294. fGetStatsInfoList();
  295. }
  296. }
  297. function grp_sea_ipt_refval_onkeyup(obj:Edit, e:KeyEventInfo)
  298. {
  299. if(e.keycode == 13)
  300. {
  301. fGetStatsInfoList();
  302. }
  303. }
  304. //엑셀저장
  305. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  306. {
  307. grdf_exportExcel(grd_statsinfolist, "SMLPS00600_세포조직진단비교", "SMLPS00600_세포조직진단비교", false);
  308. //sysf_messageBox("C:\\SMLPS00600_세포조직진단비교.xls 파일 생성이 ", "I002");
  309. }
  310. ]]></Script>
  311. </Form>
  312. </FDL>