SMLPC03000_프로토콜등록.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLPC03000" position="absolute 0 0 574 760" titletext="프로토콜관리" oninit="SMLPC03000_oninit" onload="SMLPC03000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Radio position="absolute 96 37 301 62" id="radio1" visible="false" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn">
  8. <Dataset id="innerdataset">
  9. <ColumnInfo>
  10. <Column id="codecolumn"/>
  11. <Column id="datacolumn"/>
  12. </ColumnInfo>
  13. <Rows>
  14. <Row>
  15. <Col id="codecolumn">0</Col>
  16. <Col id="datacolumn">프로토콜</Col>
  17. </Row>
  18. <Row>
  19. <Col id="codecolumn">1</Col>
  20. <Col id="datacolumn">검사코드</Col>
  21. </Row>
  22. </Rows>
  23. </Dataset>
  24. </Radio>
  25. <Grid position="absolute 3 65 570 755" id="grd_ptnocdlist" taborder="5" binddataset="ds_grd_ptnocdlist" autofittype="col" anchor="all">
  26. <Formats>
  27. <Format id="default">
  28. <Columns>
  29. <Column size="29"/>
  30. <Column size="100"/>
  31. <Column size="100"/>
  32. <Column size="100"/>
  33. <Column size="100"/>
  34. <Column size="100"/>
  35. </Columns>
  36. <Rows>
  37. <Row size="24" band="head"/>
  38. <Row size="24"/>
  39. </Rows>
  40. <Band id="head">
  41. <Cell/>
  42. <Cell col="1" text="기관코드"/>
  43. <Cell col="2" text="일련번호"/>
  44. <Cell col="3" text="프로토콜코드"/>
  45. <Cell col="4" text="프로토콜명"/>
  46. <Cell col="5" text="삭제구분"/>
  47. </Band>
  48. <Band id="body">
  49. <Cell celltype="head" text="expr:currow + 1"/>
  50. <Cell col="1" displaytype="normal" edittype="none" text="bind:instcd"/>
  51. <Cell col="2" displaytype="number" edittype="normal" style="align:left middle;" text="bind:seqno"/>
  52. <Cell col="3" displaytype="text" edittype="text" text="bind:protcd"/>
  53. <Cell col="4" displaytype="text" edittype="text" text="bind:protnm"/>
  54. <Cell col="5" displaytype="text" edittype="text" text="bind:delflagcd"/>
  55. </Band>
  56. </Format>
  57. </Formats>
  58. </Grid>
  59. <Button position="absolute 515 40 568 59" id="btn_deleqmt" class="btn2" taborder="7" text="행삭제" anchor="top right" onclick="btn_deleqmt_onclick"/>
  60. <Button position="absolute 450 40 503 59" id="btn_addeqmt" class="btn2" taborder="6" text="행추가" anchor="top right" onclick="btn_addeqmt_onclick"/>
  61. <Div id="div1" taborder="8" position="absolute 1 0 570 35" class="div_SA" anchor="left top right">
  62. <Layouts>
  63. <Layout width="569" height="35">
  64. <Button id="btn_sea" taborder="0" text="조회" class="btn1" position="absolute 430 7 486 29" anchor="top right" onclick="div1_btn_sea_onclick"/>
  65. <Shape id="line14" linetype="vertical" class="line_4" position="absolute 492 5 498 32" anchor="top right"/>
  66. <Button id="button1" taborder="1" text="저장" class="btn4" position="absolute 505 7 561 29" anchor="top right" onclick="div1_button1_onclick"/>
  67. <Static id="caption22" text="조회값 :" class="search_name" visible="false" position="absolute 16 9 91 26" anchor="default"/>
  68. </Layout>
  69. </Layouts>
  70. </Div>
  71. </Layout>
  72. </Layouts>
  73. <Objects>
  74. <Dataset id="ds_grd_ptnocdlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  75. <ColumnInfo>
  76. <Column id="instcd" type="STRING"/>
  77. <Column id="seqno" type="INT"/>
  78. <Column id="protcd" type="STRING"/>
  79. <Column id="protnm" type="STRING"/>
  80. <Column id="delflagcd" type="STRING"/>
  81. </ColumnInfo>
  82. </Dataset>
  83. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  84. <ColumnInfo>
  85. <Column id="searchcd" type="STRING" size="256"/>
  86. <Column id="hospenv" type="STRING" size="256"/>
  87. </ColumnInfo>
  88. <Rows>
  89. <Row/>
  90. </Rows>
  91. </Dataset>
  92. <Dataset id="ds_hosoenvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  93. <ColumnInfo>
  94. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  95. <Column id="lendrtnterm" type="STRING" size="256" sumtext="대출반환기간"/>
  96. <Column id="recvqualmthdcd" type="STRING" size="256" sumtext="수신확인방법"/>
  97. <Column id="plgydeptcd" type="STRING" size="256" sumtext="병리과"/>
  98. <Column id="plgyteamcd" type="STRING" size="256" sumtext="병리팀"/>
  99. <Column id="doctjobgradcd" type="STRING" size="256" sumtext="병리의사직급코드"/>
  100. <Column id="teamjobgradcd" type="STRING" size="256" sumtext="레지던트직급코드"/>
  101. <Column id="csteeqmtip" type="STRING" size="256" sumtext="Cassette장비IP"/>
  102. <Column id="csteeqmtport" type="STRING" size="256" sumtext="Cassette장비Port"/>
  103. <Column id="slideqmtip" type="STRING" size="256" sumtext="슬라이드장비IP"/>
  104. <Column id="norcptacptyn" type="STRING" size="256" sumtext="외래미수납접수여부"/>
  105. <Column id="slidbceqmtip" type="STRING" size="256" sumtext="슬라이드(라벨지)장비IP"/>
  106. <Column id="acptreaddr" type="STRING" size="256" sumtext="접수시점판독의지정여부"/>
  107. <Column id="slidbceqmtip2" type="STRING" size="256" sumtext="슬라이드(라벨지)장비IP2"/>
  108. <Column id="slidbceqmtport2" type="STRING" size="256" sumtext="슬라이드(라벨지)장비Port2"/>
  109. <Column id="repttitl" type="STRING" size="256" sumtext="보고서제목"/>
  110. <Column id="repttitl2" type="STRING" size="256" sumtext="자문의뢰제목"/>
  111. <Column id="plgyrecroom1" type="STRING" size="256" sumtext="병리과기록실1"/>
  112. <Column id="plgyrecroom2" type="STRING" size="256" sumtext="병리과기록실2"/>
  113. <Column id="ptnoacptflag" type="STRING" size="256" sumtext="병리번호접수구분"/>
  114. <Column id="autoacptflagcd" type="STRING" size="256" sumtext="자동접수구분"/>
  115. </ColumnInfo>
  116. <Rows>
  117. <Row/>
  118. </Rows>
  119. </Dataset>
  120. <Dataset id="ds_senddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  121. </Objects>
  122. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  123. * System Name :
  124. * Job Name :
  125. * Creator :
  126. * Make Date : 2015-11-13
  127. * Description :
  128. *---------------------------------------------------------------------------------------
  129. * Modify Date Modifier Modify Description
  130. *---------------------------------------------------------------------------------------
  131. * 2015-11-13 Live Converter TF->XP
  132. *
  133. *---------------------------------------------------------------------------------------
  134. ****************************************************************************************/
  135. include "com_commonxp::comm_main.xjs";
  136. function SMLPC03000_oninit(obj:Form, e:InitEventInfo)
  137. {
  138. frmf_initForm(obj);
  139. }
  140. function SMLPC03000_onload(obj:Form, e:LoadEventInfo)
  141. {
  142. grdf_initGrid(grd_ptnocdlist);
  143. fExeInitialize();
  144. }
  145. //초기화
  146. function fExeInitialize()
  147. {
  148. ds_grd_ptnocdlist.clearData();
  149. }
  150. //검체코드 조회 팝업창 처리 함수
  151. function fGetretrieve()
  152. {
  153. dsf_createDsRow("ds_send", [{col: "searchcd", val: ds_init.getColumn(0, "searchcd")}]);
  154. var oParam = {};
  155. oParam.id = "TRLPZ00101";
  156. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  157. oParam.method = "reqGetHospitalEnvironmentSetInfo";
  158. oParam.inds = "refData=ds_send";
  159. oParam.outds = "ds_hosoenvinfo=hospenvinfo";
  160. oParam.async = false;
  161. //oParam.callback = "cf_TRLPZ00101";
  162. tranf_submit(oParam);
  163. var oParam = {};
  164. oParam.id = "TRLPC03001";
  165. oParam.service = "plgybaseinfomngtapp.HospEnvSet";
  166. oParam.method = "reqGetretrieve";
  167. oParam.inds = "refData=ds_send";
  168. oParam.outds = "ds_grd_ptnocdlist=refrslt";
  169. oParam.async = false;
  170. //oParam.callback = "cf_TRLPC03001";
  171. tranf_submit(oParam);
  172. ds_grd_ptnocdlist.rowposition = -1;
  173. }
  174. //그리드 한줄추가 처리 Function
  175. function fExeEqmtAdd()
  176. {
  177. var addRw = ds_grd_ptnocdlist.addRow(ds_grd_ptnocdlist.rowcount);
  178. var arrPostion = new Array();
  179. arrPostion[0] = addRw;
  180. ds_grd_ptnocdlist.setColumn(ds_grd_ptnocdlist.rowcount-1, "instcd", sysf_getUserInfo("dutplceinstcd"));
  181. grd_ptnocdlist.setCellPos(addRw-1);
  182. }
  183. //행삭제
  184. function fExeEqmtDel()
  185. {
  186. ds_grd_ptnocdlist.deleteRow(ds_grd_ptnocdlist.rowposition);
  187. }
  188. //저장
  189. function fExeEqmtInfo()
  190. {
  191. var sEqmtCd = "";
  192. var sSrcNode = ds_grd_ptnocdlist;
  193. if(ds_grd_ptnocdlist.rowcount < -1)
  194. {
  195. sysf_messageBox("프로토콜 내역 ", "C001");
  196. return false;
  197. }
  198. else
  199. {
  200. for (var iNo=0; iNo < ds_grd_ptnocdlist.rowcount; iNo++)
  201. {
  202. if( utlf_isNull(ds_grd_ptnocdlist.getColumn(iNo, "seqno")))
  203. {
  204. sysf_messageBox("순번 ", "C002");
  205. return false;
  206. }
  207. if( utlf_isNull(ds_grd_ptnocdlist.getColumn(iNo, "protcd")))
  208. {
  209. sysf_messageBox("프로토콜코드를 ", "C001");
  210. return false;
  211. }
  212. if( utlf_isNull(ds_grd_ptnocdlist.getColumn(iNo, "protnm")))
  213. {
  214. sysf_messageBox("프로토콜명을 ", "C001");
  215. return false;
  216. }
  217. }
  218. }
  219. // var tmp = grdf_getGridUpdateData(grd_ptnocdlist, "insert");
  220. // grdf_setStatusColumn(tmp, "state");
  221. // ds_senddata.copyData(tmp, true);
  222. var oParam = {};
  223. oParam.id = "TXLPC01901";
  224. oParam.service = "plgybaseinfomngtapp.TissueBankEqmt";
  225. oParam.method = "reqExeprotocol";
  226. oParam.inds = "refData=ds_grd_ptnocdlist:U";
  227. oParam.async = false;
  228. oParam.typeStr = "state";
  229. //oParam.callback = "cf_TXLPC01901";
  230. tranf_submit(oParam);
  231. //재조회
  232. fGetretrieve();
  233. }
  234. //조회
  235. function div1_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  236. {
  237. var pos = grd_ptnocdlist.vscrollbar.pos;
  238. fGetretrieve();
  239. grd_ptnocdlist.vscrollbar.pos = pos;
  240. }
  241. //행추가
  242. function btn_addeqmt_onclick(obj:Button, e:ClickEventInfo)
  243. {
  244. fExeEqmtAdd();
  245. }
  246. //행삭제
  247. function btn_deleqmt_onclick(obj:Button, e:ClickEventInfo)
  248. {
  249. fExeEqmtDel();
  250. }
  251. //저장
  252. function div1_button1_onclick(obj:Button, e:ClickEventInfo)
  253. {
  254. var pos = grd_ptnocdlist.vscrollbar.pos;
  255. fExeEqmtInfo();
  256. grd_ptnocdlist.vscrollbar.pos = pos;
  257. }
  258. ]]></Script>
  259. </Form>
  260. </FDL>