SPPIZ00700_심사Comment조회.xfdl 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPIZ00700" position="absolute 0 0 569 512" titletext="심사메모조회" oninit="model1_oninit" onload="SPPIZ00700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="grd_memolist" taborder="2" useinputpanel="false" position="absolute 0 79 564 486" autofittype="col" binddataset="ds_grid_grd_memolist" positiontype="position" ondbclick="grd_memolist_ondbclick" oncelldblclick="grd_memolist_oncelldblclick" cellsizingtype="col">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="0"/>
  12. <Column size="23"/>
  13. <Column size="535"/>
  14. </Columns>
  15. <Rows>
  16. <Row size="22" band="head"/>
  17. <Row size="20"/>
  18. </Rows>
  19. <Band id="head">
  20. <Cell text="메모코드"/>
  21. <Cell col="1" celltype="head" displaytype="checkbox" edittype="checkbox"/>
  22. <Cell col="2" text="Comment"/>
  23. </Band>
  24. <Band id="body">
  25. <Cell text="bind:memocd"/>
  26. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  27. <Cell col="2" style="align:left top;" text="bind:memo"/>
  28. <Cell col="3"/>
  29. <Cell col="4"/>
  30. </Band>
  31. </Format>
  32. </Formats>
  33. </Grid>
  34. <Div id="group2" taborder="8" class="div_SA" position="absolute 0 27 564 69">
  35. <Layouts>
  36. <Layout>
  37. <Static id="caption18" text="Comment" class="search_name" position="absolute 8 10 99 30" positiontype="position"/>
  38. <Edit id="ipt_comment" taborder="3" oneditclick="group3_ipt_comment_oneditclick" class="input_comment" position="absolute 89 10 366 30" imemode="hangul" positiontype="position" onkeydown="group2_ipt_comment_onkeydown"/>
  39. <Button id="btn_srch" taborder="4" text="조회" onclick="btn_srch_onclick" class="btn1" position="absolute 497 10 553 30" positiontype="position"/>
  40. </Layout>
  41. </Layouts>
  42. </Div>
  43. <Button id="button42" taborder="10" text="선택" onclick="button42_onclick" onlbuttonup="button42_onlbuttonup" class="btn4" position="absolute 450 488 506 508"/>
  44. <Static id="caption00" text="심사메모조회" class="tit_1" position="absolute 0 0 177 26"/>
  45. <Button id="btn_close" taborder="11" text="닫기" class="btn4" position="absolute 508 488 564 508" onclick="btn_close_onclick"/>
  46. </Layout>
  47. </Layouts>
  48. <Objects>
  49. <Dataset id="ds_grid_grd_memolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  50. <ColumnInfo>
  51. <Column id="memocd" type="STRING"/>
  52. <Column id="chk" type="STRING"/>
  53. <Column id="memo" type="STRING"/>
  54. </ColumnInfo>
  55. </Dataset>
  56. <Dataset id="ds_temp_grd_memolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  57. <ColumnInfo>
  58. <Column id="memocd" type="STRING"/>
  59. <Column id="chk" type="STRING"/>
  60. <Column id="memo" type="STRING"/>
  61. </ColumnInfo>
  62. </Dataset>
  63. </Objects>
  64. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  65. * System Name :
  66. * Job Name :
  67. * Creator :
  68. * Make Date : 2015-05-01
  69. * Description :
  70. *---------------------------------------------------------------------------------------
  71. * Modify Date Modifier Modify Description
  72. *---------------------------------------------------------------------------------------
  73. * 2015-05-01 Live Converter TF->XP
  74. *
  75. *---------------------------------------------------------------------------------------
  76. ****************************************************************************************/
  77. include "com_commonxp::comm_main.xjs";
  78. function fInitialize() {
  79. ds_grid_grd_memolist.clearData();
  80. // 특정 메뉴분류를 지정하지 않고 항을 전달한 경우
  81. if( utlf_isNull(sMemocls) ) {
  82. if (sEdiitem1 == "03") { sEdiitem1 = "01"; } // '항'이 투약일경우 '약'
  83. else if (sEdiitem1 == "04") { sEdiitem1 = "02"; } // '항'이 주사일경우 '주사'
  84. else if (sEdiitem1 == "08") { sEdiitem1 = "03"; } // '항'이 수술일경우 '처치'
  85. else if (sEdiitem1 == "09") { sEdiitem1 = "04"; } // '항'이 검사일경우 '검사'
  86. else if (sEdiitem1 == "") { sEdiitem1 = ""; } // '항'이 없는 경우
  87. else { sEdiitem1 = "99"; } // 그외는 '기타'
  88. }
  89. var sInDs = dsf_createDsRow("ds_search"
  90. , [{col: "memoflag" , val: sMemoflag }
  91. , {col: "judgrid", type:"STRING", size:256, val:sysf_getUserId() }
  92. , {col: "memocls" , val: sMemocls }
  93. , {col: "ediitem1" , val: sEdiitem1 }
  94. ]);
  95. var oParam = {};
  96. oParam.id = "TRPIZ00701";
  97. oParam.service = "insucomapp.JudgCmtRef";
  98. oParam.method = "reqGetJudgCmtRef";
  99. oParam.inds = "req="+sInDs;
  100. oParam.outds = "ds_grid_grd_memolist=selectdata";
  101. oParam.async = false;
  102. tranf_submit(oParam);
  103. ds_grid_grd_memolist.addColumn("chk", "STRING");
  104. }
  105. function fSetSelectedData(dbclick){
  106. ds_temp_grd_memolist.clearData();
  107. //자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
  108. if( frmf_checkOpener() ) {
  109. if( dbclick == "N" ){
  110. var rtnObj = new Dataset();
  111. ds_grid_grd_memolist.filter("chk==1");
  112. rtnObj.copyData(ds_grid_grd_memolist, true);
  113. ds_grid_grd_memolist.filter("");
  114. this.close(rtnObj);
  115. }
  116. else{
  117. var curRow = grd_memolist.currentrow;
  118. var rtnObj = new Dataset();
  119. var nRow = ds_temp_grd_memolist.addRow();
  120. ds_temp_grd_memolist.setColumn(nRow, "chk", ds_grid_grd_memolist.getColumn(curRow, "chk") );
  121. ds_temp_grd_memolist.setColumn(nRow, "memocd", ds_grid_grd_memolist.getColumn(curRow, "memocd") );
  122. ds_temp_grd_memolist.setColumn(nRow, "memo", ds_grid_grd_memolist.getColumn(curRow, "memo") );
  123. rtnObj.copyData(ds_temp_grd_memolist);
  124. this.close(rtnObj);
  125. }
  126. }
  127. else {
  128. sysf_messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004"); //없습니다.
  129. this.close();
  130. }
  131. }
  132. function SPPIZ00700_onload(obj:Form, e:LoadEventInfo)
  133. {
  134. frmf_initForm(obj); // 화면공통
  135. fInitialize(); // 화면을 초기화한다.
  136. grdf_initGrid(grd_memolist);
  137. }
  138. function btn_srch_onclick(obj:Button, e:ClickEventInfo)
  139. {
  140. if( !utlf_isNull(group2.ipt_comment.value) ) { // 1글자 이상이면
  141. // 특정 메뉴분류를 지정하지 않고 항을 전달한 경우
  142. if( utlf_isNull(sMemocls) ) {
  143. if (sEdiitem1 == "03") { sEdiitem1 = "01"; } // '항'이 투약일경우 '약'
  144. else if (sEdiitem1 == "04") { sEdiitem1 = "02"; } // '항'이 주사일경우 '주사'
  145. else if (sEdiitem1 == "08") { sEdiitem1 = "03"; } // '항'이 수술일경우 '처치'
  146. else if (sEdiitem1 == "09") { sEdiitem1 = "04"; } // '항'이 검사일경우 '검사'
  147. else if (sEdiitem1 == "") { sEdiitem1 = ""; } // '항'이 없는 경우
  148. else { sEdiitem1 = "99"; } // 그외는 '기타'
  149. }
  150. var sInDs = dsf_createDsRow("ds_search"
  151. , [{col: "memoflag" , val: sMemoflag }
  152. , {col: "memocls" , val: sMemocls }
  153. , {col: "judgrid", type:"STRING", size:256, val:sysf_getUserId() }
  154. , {col: "ediitem1" , val: sEdiitem1 }
  155. , {col: "memo" , val: group2.ipt_comment.value }
  156. ]);
  157. var oParam = {};
  158. oParam.id = "TRPIZ00702";
  159. oParam.service = "insucomapp.JudgCmtRef";
  160. oParam.method = "reqGetJudgMemoRef";
  161. oParam.inds = "req="+sInDs;
  162. oParam.outds = "ds_grid_grd_memolist=selectdata";
  163. oParam.async = false;
  164. tranf_submit(oParam);
  165. ds_grid_grd_memolist.addColumn("chk", "STRING");
  166. }
  167. else {
  168. fInitialize();
  169. }
  170. }
  171. function button42_onclick(obj:Button, e:ClickEventInfo)
  172. {
  173. fSetSelectedData("N");
  174. }
  175. function group2_ipt_comment_onkeydown(obj:Edit, e:KeyEventInfo)
  176. {
  177. if(e.keycode == 13)
  178. {
  179. btn_srch_onclick();
  180. }
  181. }
  182. function grd_memolist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  183. {
  184. fSetSelectedData("Y");
  185. }
  186. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  187. {
  188. this.close();
  189. }
  190. ]]></Script>
  191. </Form>
  192. </FDL>