SPLPP02900_블록번호수정.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLPP02900" position="absolute 0 0 500 350" titletext="블록번호수정" oninit="model1_oninit" class="frm_POP" onload="SPLPP02900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="stt_titleText" text="블록번호수정" class="sta_POP_title" position="absolute 12 8 192 28"/>
  8. <Button id="btn_close" taborder="1" class="btn_POP_cls" position="absolute 474 11 488 25" style="color:#333333ff;" onclick="btn_close_onclick"/>
  9. <Button id="btn_cfm" taborder="2" text="확인" onclick="btn_cfm_onclick" class="btn5" position="absolute 444 318 488 338" positiontype="position"/>
  10. <Static id="caption2" text="카세트/슬라이드 목록" class="tit_2" position="absolute 12 46 212 66" positiontype="position"/>
  11. <Grid id="grd_slidelist" class="CSS::lis.css" taborder="3" useinputpanel="false" position="absolute 12 66 488 315" binddataset="ds_grid_grd_slidelist" positiontype="position" ondbclick="grd_slidelist_ondbclick" oncellclick="grd_slidelist_oncellclick" oncelldblclick="grd_slidelist_oncelldblclick">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="20"/>
  16. <Column size="108"/>
  17. <Column size="175"/>
  18. <Column size="67"/>
  19. <Column size="82"/>
  20. </Columns>
  21. <Rows>
  22. <Row size="35" band="head"/>
  23. <Row size="20"/>
  24. </Rows>
  25. <Band id="head">
  26. <Cell text="선&#10;택"/>
  27. <Cell col="1" text="병리번호"/>
  28. <Cell col="2" text="검체명"/>
  29. <Cell col="3" text="블록번호"/>
  30. <Cell col="4" text="블록표시내용"/>
  31. </Band>
  32. <Band id="body">
  33. <Cell displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
  34. <Cell col="1" text="bind:dispptno"/>
  35. <Cell col="2" text="bind:spcnm"/>
  36. <Cell col="3" text="bind:csteno"/>
  37. <Cell col="4" text="bind:blockcnts"/>
  38. <Cell col="5"/>
  39. <Cell col="6"/>
  40. </Band>
  41. </Format>
  42. </Formats>
  43. </Grid>
  44. </Layout>
  45. </Layouts>
  46. <Objects>
  47. <Dataset id="ds_grid_grd_slidelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  48. <ColumnInfo>
  49. <Column id="choi" type="STRING"/>
  50. <Column id="ptno" type="STRING"/>
  51. <Column id="spcnm" type="STRING"/>
  52. <Column id="csteno" type="STRING"/>
  53. <Column id="slidno" type="STRING"/>
  54. <Column id="blockcnts" type="STRING"/>
  55. <Column id="slidecnts" type="STRING"/>
  56. <Column id="spcacptseqno" type="STRING"/>
  57. <Column id="dispptno" type="STRING"/>
  58. </ColumnInfo>
  59. </Dataset>
  60. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  61. <ColumnInfo>
  62. <Column id="fromscrno" type="STRING"/>
  63. <Column id="ptno" type="STRING"/>
  64. <Column id="relaptno" type="STRING"/>
  65. <Column id="spcacptseqno" type="STRING"/>
  66. <Column id="blocno" type="STRING"/>
  67. <Column id="slidno" type="STRING"/>
  68. </ColumnInfo>
  69. </Dataset>
  70. </Objects>
  71. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  72. * System Name : KU2.0
  73. * Job Name :
  74. * File Name : SPLPP02900_블록번호수정.xfdl
  75. * Creator :
  76. * Make Date : 2015-11-11
  77. *
  78. * Description :
  79. *---------------------------------------------------------------------------------------
  80. * Modify Date Modifier Modify Description
  81. *---------------------------------------------------------------------------------------
  82. * 2015-11-11 DBS Converting Program(TF->XP)
  83. *
  84. *---------------------------------------------------------------------------------------
  85. ****************************************************************************************/
  86. //=======================================================================================
  87. // xjs Include
  88. //---------------------------------------------------------------------------------------
  89. include "com_commonxp::comm_main.xjs";
  90. include "lis_commonxp::LPZ001.xjs";
  91. //=======================================================================================
  92. // Function
  93. //---------------------------------------------------------------------------------------
  94. /**********************************************************************************
  95. * Name : lf_exeInitialize
  96. * Description : 오픈시 화면 초기화
  97. * Argument :
  98. * return Type : Null
  99. * Author : Autumn
  100. ***********************************************************************************/
  101. function lf_exeInitialize(){
  102. var objParentWin = opener.getOwnerFrame().name;
  103. if(frmf_checkOpener()) {
  104. if(opener.frmf_getParameter("SPLPP02900_relaptno") != ""){
  105. var slideblocflag = "B";
  106. var fromscrno = "";
  107. //이 화면 부모창에서 무조건 SMLPP00200값을 보냄.
  108. if(opener.frmf_getParameter("SPLPP02900_fromsrcno")=="SMLPP00200"){
  109. slideblocflag="B";
  110. ds_cond.setColumn(0,"fromscrno","SMLPP00200")
  111. } else if(opener.frmf_getParameter("SPLPP02900_fromsrcno")=="SPLPJ02600"){
  112. slideblocflag="B";
  113. ds_cond.setColumn(0,"fromscrno","SPLPJ02600");
  114. } else{
  115. slideblocflag="S";
  116. }
  117. var sInDsName = dsf_createDsRow("ds_temp_search"
  118. , [{col: "instcd" , val: sysf_getUserInfo("dutplceinstcd")}
  119. , {col: "ptno" , val: opener.frmf_getParameter("SPLPP02900_relaptno")}
  120. , {col: "slideblocflag", val: slideblocflag}
  121. ]);
  122. tranf_submit({
  123. id: "TRLPD00706"
  124. , service: "plgylendmngtapp.SlidLendRtn"
  125. , method: "reqGetSlideList"
  126. , inds : "refData="+sInDsName
  127. , outds: "ds_grid_grd_slidelist=slidelist"
  128. , async: false
  129. });
  130. if (ds_grid_grd_slidelist.rowcount > 0) {
  131. if(opener.frmf_getParameter("SPLPP02900_spcacptseqno") != "-" && opener.frmf_getParameter("SPLPP02900_spcacptseqno") != "" &&
  132. opener.frmf_getParameter("SPLPP02900_slidno") != "-" && opener.frmf_getParameter("SPLPP02900_slidno") != "" &&
  133. opener.frmf_getParameter("SPLPP02900_blocno") != "-" && opener.frmf_getParameter("SPLPP02900_blocno") != "") {
  134. for(var iNo=0; iNo<ds_grid_grd_slidelist.rowcount; iNo++) {
  135. if(opener.frmf_getParameter("SPLPP02900_spcacptseqno")==ds_grid_grd_slidelist.getColumn(iNo,"spcacptseqno")){
  136. if(opener.frmf_getParameter("SPLPP02900_blocno")==ds_grid_grd_slidelist.getColumn(iNo,"csteno")){
  137. if(opener.frmf_getParameter("SPLPP02900_slidno")==ds_grid_grd_slidelist.getColumn(iNo,"slidno")){
  138. ds_grid_grd_slidelist.setColumn(iNo,"choi","1");
  139. break;
  140. }
  141. }
  142. }
  143. }
  144. }
  145. }
  146. }
  147. }
  148. }
  149. /**********************************************************************************
  150. * Name : lf_exeSave
  151. * Description : 저장
  152. * Argument :
  153. * return Type : Null
  154. * Author : Autumn
  155. ***********************************************************************************/
  156. function lf_exeSave(){
  157. var sSpcacptseqno = "-";
  158. var sBlocno = "-";
  159. var sBlocNm = "";
  160. var nRoNo = ds_grid_grd_slidelist.findRow("choi", "1");
  161. if(nRoNo > -1 ){
  162. sSpcacptseqno = ds_grid_grd_slidelist.getColumn(nRoNo,"spcacptseqno");
  163. sBlocno = ds_grid_grd_slidelist.getColumn(nRoNo,"csteno");
  164. sBlocNm = ds_grid_grd_slidelist.getColumn(nRoNo,"blockcnts");
  165. } else {
  166. sSpcacptseqno = "-";
  167. sBlocno = "-";
  168. sBlocNm = "";
  169. }
  170. var sInDsName = dsf_createDsRow("ds_temp_saveflag"
  171. , [{col: "instcd" , val: sysf_getUserInfo("dutplceinstcd")}
  172. , {col: "fromsrcno" , val: opener.frmf_getParameter("SPLPP02900_fromsrcno")}
  173. , {col: "ptno" , val: opener.frmf_getParameter("SPLPP02900_ptno")}
  174. , {col: "spcacptseqno", val: sSpcacptseqno}
  175. , {col: "blocno" , val: sBlocno}
  176. ]);
  177. if( opener.frmf_getParameter("SPLPP02900_fromsrcno") != "SPLPJ02600"){
  178. tranf_submit({
  179. id: "TXLPP02901"
  180. , service: "plgyrefmngtapp.AcptSpecRef"
  181. , method: "reqExeRelaPtnoBloc"
  182. , inds : "refData=" + sInDsName
  183. , callback: "cbf_TXLPP02901"
  184. , async: false
  185. });
  186. lf_exeClsScrn();
  187. } else {
  188. opener.frmf_setParameter("spcacptseqno",sSpcacptseqno);
  189. opener.frmf_setParameter("csteno",sBlocno);
  190. opener.frmf_setParameter("blocnm",sBlocNm);
  191. lf_exeClsScrn();
  192. }
  193. }
  194. /**********************************************************************************
  195. * Name : cbf_TRLLP00700
  196. * Description : 콜백함수
  197. * Argument :
  198. * return Type : Null
  199. * Author : Autumn
  200. ***********************************************************************************/
  201. function cbf_TXLPP02901(strSvcID, nErrorCode, strErrorMag){
  202. if(nErrorCode != 0){
  203. sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  204. return;
  205. }
  206. }
  207. function lf_exeClsScrn(){
  208. this.close();
  209. }
  210. /**********************************************************************************
  211. * Name : lf_ChkSelect
  212. * Description : 체크박스 클릭/더블클릭 시 선택 처리
  213. * Argument : string:환자번호
  214. * return Type : Null
  215. * Author : Autumn
  216. ***********************************************************************************/
  217. function lf_ChkSelect(obj:Grid, e:GridClickEventInfo, sFlag){
  218. if (sFlag == "D" || (sFlag == "S" && obj.getCellValue(e.row, e.col) == 1)) {
  219. for (var i = 0; i < ds_grid_grd_slidelist.rowcount; i++) {
  220. if (e.row != i) {
  221. ds_grid_grd_slidelist.setColumn(i, "choi", 0);
  222. }
  223. }
  224. if (sFlag == "D") {
  225. ds_grid_grd_slidelist.setColumn(e.row , "choi", 1);
  226. }
  227. }
  228. }
  229. //=======================================================================================
  230. // Event
  231. //---------------------------------------------------------------------------------------
  232. /****************************************************************************************
  233. * Components :
  234. * Components ID : SPLPP02900
  235. * Event : onload
  236. * Argument : 01.obj : Object Event has occurred
  237. * : 02.e : Event Object
  238. * Description :
  239. ****************************************************************************************/
  240. function SPLPP02900_onload(obj:Form, e:LoadEventInfo)
  241. {
  242. frmf_initForm(obj); // 화면공통
  243. lf_exeInitialize();
  244. }
  245. /****************************************************************************************
  246. * Components :
  247. * Components ID : btn_close
  248. * Event : onclick
  249. * Argument : 01.obj : Object Event has occurred
  250. * : 02.e : Event Object
  251. * Description :
  252. ****************************************************************************************/
  253. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  254. {
  255. lf_exeClsScrn();
  256. }
  257. /****************************************************************************************
  258. * Components :
  259. * Components ID : btn_cfm
  260. * Event : onclick
  261. * Argument : 01.obj : Object Event has occurred
  262. * : 02.e : Event Object
  263. * Description :
  264. ****************************************************************************************/
  265. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  266. {
  267. lf_exeSave();
  268. }
  269. /****************************************************************************************
  270. * Components :
  271. * Components ID : grd_slidelist
  272. * Event : oncellclick
  273. * Argument : 01.obj : Object Event has occurred
  274. * : 02.e : Event Object
  275. * Description :
  276. ****************************************************************************************/
  277. function grd_slidelist_oncellclick(obj:Grid, e:GridClickEventInfo)
  278. {
  279. if(e.col==0){ //체크박스 있는 칼럼만 선택되었을 경우
  280. lf_ChkSelect(obj, e, "S");
  281. }
  282. }
  283. /****************************************************************************************
  284. * Components :
  285. * Components ID : grd_slidelist
  286. * Event : oncelldblclick
  287. * Argument : 01.obj : Object Event has occurred
  288. * : 02.e : Event Object
  289. * Description :
  290. ****************************************************************************************/
  291. function grd_slidelist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  292. {
  293. lf_ChkSelect(obj, e, "D");
  294. }
  295. ]]></Script>
  296. </Form>
  297. </FDL>