SPMNB00202_메모이력.xfdl 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNB00202" position="absolute 0 0 700 575" titletext="카덱스 팀별메모" oninit="SPMNB00202_oninit" onload="SPMNB00202_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape position="absolute 5 30 690 36" linetype="horizontal" id="line1" class="line_10"/>
  8. <Static text="메모이력" position="absolute 10 14 110 30" id="caption1" class="tit_2"/>
  9. <Grid position="absolute 5 35 690 565" id="grd_memo" class="datagrid2" binddataset="ds_main_kardexinfo_memolist" cellsizingtype="both" autosizingtype="row" extendsizetype="row" autoenter="select" onheadclick="grd_memo_onheadclick" scrollpixel="all">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="25" band="left"/>
  14. <Column size="22"/>
  15. <Column size="37"/>
  16. <Column size="100"/>
  17. <Column size="48"/>
  18. <Column size="287"/>
  19. <Column size="48"/>
  20. <Column size="104"/>
  21. <Column size="0"/>
  22. <Column size="0"/>
  23. <Column size="0"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. </Columns>
  32. <Rows>
  33. <Row size="35" band="head"/>
  34. <Row size="24"/>
  35. </Rows>
  36. <Band id="head">
  37. <Cell/>
  38. <Cell col="1"/>
  39. <Cell col="2" text="구분"/>
  40. <Cell col="3" text="수정/삭제일시"/>
  41. <Cell col="4" text="수정/&#10;삭제자"/>
  42. <Cell col="5" text="메모내용(CTRL + ENTER시 다음줄에 기입가능)"/>
  43. <Cell col="6" text="작성자"/>
  44. <Cell col="7" text="작성일시"/>
  45. <Cell col="8" text="작성시간"/>
  46. <Cell col="9" text="등록번호"/>
  47. <Cell col="10" text="메모항목구분"/>
  48. <Cell col="11" text="일련번호"/>
  49. <Cell col="12" text="기록일시"/>
  50. <Cell col="13" text="이전기록일자"/>
  51. <Cell col="14" text="이전기록시간"/>
  52. <Cell col="15" text="입원일"/>
  53. <Cell col="16" text="생성번호"/>
  54. <Cell col="17" text="기관코드"/>
  55. </Band>
  56. <Band id="body">
  57. <Cell celltype="head"/>
  58. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkyn" expr="expr:(chkyn == &quot;Y&quot; || chkyn == 1) ? 1 : 0"/>
  59. <Cell col="2" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:status" combodataset="ds_inner_status" combocodecol="value" combodatacol="label"/>
  60. <Cell col="3" style="linetype: ;" text="bind:cncldt" mask="####-##-## ##:##"/>
  61. <Cell col="4" style="align:center middle;" text="bind:cnclid"/>
  62. <Cell col="5" displaytype="text" edittype="textarea" text="bind:memocnts" wordwrap="word" editlimit="666" editimemode="hangul" autosizerow="limitmin"/>
  63. <Cell col="6" style="align:center middle;" text="bind:writ"/>
  64. <Cell col="7" style="align:center middle;" text="bind:recdt" mask="####-##-## ##:##"/>
  65. <Cell col="8" text="bind:rectm"/>
  66. <Cell col="9" text="bind:pid"/>
  67. <Cell col="10" text="bind:memoitemflag"/>
  68. <Cell col="11" text="bind:seqno"/>
  69. <Cell col="12" text="bind:recdd"/>
  70. <Cell col="13" text="bind:recdd_b"/>
  71. <Cell col="14" text="bind:rectm_b"/>
  72. <Cell col="15" text="bind:indd"/>
  73. <Cell col="16" text="bind:cretno"/>
  74. <Cell col="17" text="bind:instcd"/>
  75. </Band>
  76. </Format>
  77. </Formats>
  78. </Grid>
  79. <Button position="absolute 645 10 687 29" id="btn_ref" class="btn2" text="조회" onclick="btn_ref_onclick"/>
  80. <Button position="absolute 600 10 642 29" id="button1" class="btn5" text="복구" onclick="button1_onclick"/>
  81. </Layout>
  82. </Layouts>
  83. <Objects>
  84. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  85. <Dataset id="ds_main_kardexinfo_memolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_kardexinfo_memolist_oncolumnchanged"/>
  86. <Dataset id="ds_inner_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  87. <ColumnInfo>
  88. <Column id="label" type="STRING" size="256"/>
  89. <Column id="value" type="STRING" size="256"/>
  90. </ColumnInfo>
  91. <Rows>
  92. <Row>
  93. <Col id="label">추가</Col>
  94. <Col id="value">i</Col>
  95. </Row>
  96. <Row>
  97. <Col id="label">수정</Col>
  98. <Col id="value">u</Col>
  99. </Row>
  100. <Row>
  101. <Col id="label">삭제</Col>
  102. <Col id="value">d</Col>
  103. </Row>
  104. </Rows>
  105. </Dataset>
  106. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  107. </Objects>
  108. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  109. * System Name :
  110. * Job Name :
  111. * Creator :
  112. * Make Date : 2015-11-13
  113. * Description :
  114. *---------------------------------------------------------------------------------------
  115. * Modify Date Modifier Modify Description
  116. *---------------------------------------------------------------------------------------
  117. * 2015-11-13 Live Converter TF->XP
  118. *
  119. *---------------------------------------------------------------------------------------
  120. ****************************************************************************************/
  121. include "com_commonxp::comm_main.xjs";
  122. /*SPMNB00202_oninit*/
  123. function SPMNB00202_oninit(obj:Form, e:InitEventInfo)
  124. {
  125. frmf_initForm(obj);
  126. }
  127. /*SPMNB00202_onload*/
  128. function SPMNB00202_onload(obj:Form, e:LoadEventInfo)
  129. {
  130. grdf_setRowTypeIcon(grd_memo,0);
  131. fInitialize();
  132. }
  133. /*fInitialize*/
  134. function fInitialize()
  135. {
  136. fSearch();
  137. }
  138. /*fSearch*/
  139. function fSearch() {
  140. var pid = opener.frmf_getParameter("SPMNB00202_pid");
  141. var indd = opener.frmf_getParameter("SPMNB00202_indd");
  142. var cretno = opener.frmf_getParameter("SPMNB00202_cretno");
  143. var memoitemflag = opener.frmf_getParameter("SPMNB00202_memoitemflag");
  144. dsf_makeValue(ds_send_reqdata,"pid","string", pid);
  145. dsf_makeValue(ds_send_reqdata,"indd","string", indd);
  146. dsf_makeValue(ds_send_reqdata,"cretno","string", cretno);
  147. dsf_makeValue(ds_send_reqdata,"memoitemflag","string", memoitemflag);
  148. var oParam = {};
  149. oParam.id = "TRMNB00211";
  150. oParam.service = "wardcareapp.WardCardexMngt";
  151. oParam.method = "reqGetMemoInfo";
  152. oParam.inds = "req=ds_send_reqdata";
  153. oParam.outds = "ds_main_kardexinfo_memolist=memolist";
  154. oParam.async = false;
  155. tranf_submit(oParam);
  156. ds_main_kardexinfo_memolist.enableevent = false;
  157. ds_main_kardexinfo_memolist.updatecontrol =false;
  158. dsf_setFixVal(ds_main_kardexinfo_memolist, "chkyn:N");
  159. ds_main_kardexinfo_memolist.enableevent = true;
  160. ds_main_kardexinfo_memolist.updatecontrol =true;
  161. ds_main_kardexinfo_memolist.rowposition = -1;
  162. }
  163. /*ds_main_kardexinfo_memolist_oncolumnchanged*/
  164. function ds_main_kardexinfo_memolist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  165. {
  166. if ( e.columnid == "chkyn" ) {
  167. var currow = e.row;
  168. obj.setColumn(currow, e.columnid, (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  169. }
  170. }
  171. /*btn_ref_onclick*/
  172. function btn_ref_onclick(obj:Button, e:ClickEventInfo)
  173. {
  174. fSearch();
  175. }
  176. /*button1_onclick*/
  177. function button1_onclick(obj:Button, e:ClickEventInfo)
  178. {
  179. var rtn = sysf_messageBox("해당항목을 복귀하시겠습니까?", "Q");
  180. if(rtn == "6") {
  181. var updateData = grdf_getGridUpdateData(grd_memo);
  182. grdf_setStatusColumn(updateData, "status");
  183. dsf_createDs("ds_send_savedata");
  184. ds_send_savedata.copyData(updateData, true);
  185. var oParam = {};
  186. oParam.id = "TXMNB00211";
  187. oParam.service = "wardcareapp.WardCardexMngt";
  188. oParam.method = "reqExeRecvMemoList";
  189. oParam.inds = "req=ds_send_savedata";
  190. oParam.outds = "";
  191. oParam.async = false;
  192. tranf_submit(oParam);
  193. fSearch();
  194. var curNurKadexObj = frmf_findPopup("SMMNB00200");
  195. if( !utlf_isNull(curNurKadexObj) ){//카덱스]
  196. curNurKadexObj.fInitialize();
  197. }
  198. }
  199. }
  200. /*grd_memo_onheadclick*/
  201. function grd_memo_onheadclick(obj:Grid, e:GridClickEventInfo)
  202. {
  203. grdf_gridSort(grd_memo,e);
  204. }
  205. ]]></Script>
  206. </Form>
  207. </FDL>