SPMNI01600_예방접종과거이력조회.xfdl 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNI01600" position="absolute 0 0 1113 1510" titletext="백신조회" onload="SPMNI01600_onload">
  5. <Layouts>
  6. <Layout>
  7. <WebBrowser id="browser1" position="absolute 0 0 1040 1500" anchor="default" taborder="0" useautobitmapcache="1"/>
  8. </Layout>
  9. </Layouts>
  10. <Objects>
  11. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  12. <ColumnInfo>
  13. <Column id="vcncod" type="STRING" size="256"/>
  14. <Column id="lotno" type="STRING" size="256"/>
  15. <Column id="execdd" type="STRING" size="256"/>
  16. <Column id="masterlotno" type="STRING" size="256"/>
  17. </ColumnInfo>
  18. <Rows>
  19. <Row>
  20. <Col id="vcncod"/>
  21. <Col id="lotno"/>
  22. <Col id="execdd"/>
  23. <Col id="masterlotno"/>
  24. </Row>
  25. </Rows>
  26. </Dataset>
  27. <Dataset id="ds_vcnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  28. <ColumnInfo>
  29. <Column id="vcnnam" type="STRING" size="256"/>
  30. <Column id="vacode" type="STRING" size="256"/>
  31. <Column id="lopperid" type="STRING" size="256"/>
  32. <Column id="vaname" type="STRING" size="256"/>
  33. <Column id="vendorname" type="STRING" size="256"/>
  34. <Column id="unit" type="STRING" size="256"/>
  35. <Column id="vendorcode" type="STRING" size="256"/>
  36. <Column id="lotno" type="STRING" size="256"/>
  37. <Column id="vcncod" type="STRING" size="256"/>
  38. </ColumnInfo>
  39. <Rows>
  40. <Row>
  41. <Col id="vcnnam"/>
  42. <Col id="vacode"/>
  43. <Col id="lopperid"/>
  44. <Col id="vaname"/>
  45. <Col id="vendorname"/>
  46. <Col id="unit"/>
  47. <Col id="vendorcode"/>
  48. <Col id="lotno"/>
  49. <Col id="vcncod"/>
  50. </Row>
  51. </Rows>
  52. </Dataset>
  53. <Dataset id="ds_vcnmasterlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  54. <ColumnInfo>
  55. <Column id="vcnnam" type="STRING" size="256"/>
  56. <Column id="vacode" type="STRING" size="256"/>
  57. <Column id="lopperid" type="STRING" size="256"/>
  58. <Column id="vaname" type="STRING" size="256"/>
  59. <Column id="vendorname" type="STRING" size="256"/>
  60. <Column id="unit" type="STRING" size="256"/>
  61. <Column id="vendorcode" type="STRING" size="256"/>
  62. <Column id="lotno" type="STRING" size="256"/>
  63. <Column id="vcncod" type="STRING" size="256"/>
  64. </ColumnInfo>
  65. <Rows>
  66. <Row>
  67. <Col id="vcnnam"/>
  68. <Col id="vacode"/>
  69. <Col id="lopperid"/>
  70. <Col id="vaname"/>
  71. <Col id="vendorname"/>
  72. <Col id="unit"/>
  73. <Col id="vendorcode"/>
  74. <Col id="lotno"/>
  75. <Col id="vcncod"/>
  76. </Row>
  77. </Rows>
  78. </Dataset>
  79. <Dataset id="ds_init_vcnkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  80. </Objects>
  81. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  82. * System Name : KU2.0
  83. * Job Name :
  84. * File Name : SPMNI01600_예방접종과거이력조회.xfdl
  85. * Creator :
  86. * Make Date : 2016-02-15
  87. *
  88. * Description :
  89. *---------------------------------------------------------------------------------------
  90. * Modify Date Modifier Modify Description
  91. *---------------------------------------------------------------------------------------
  92. *
  93. *---------------------------------------------------------------------------------------
  94. ****************************************************************************************/
  95. //=======================================================================================
  96. // xjs Include
  97. //---------------------------------------------------------------------------------------
  98. include "com_commonxp::comm_main.xjs";
  99. function fInitialize()
  100. {
  101. if(frmf_checkOpener()){
  102. ds_vcnlist.clearData();
  103. ds_vcnmasterlist.clearData();
  104. //백신종류 조회
  105. var oParam = {};
  106. oParam.id = "TRMNI01503";
  107. oParam.service = "injroomapp.InjRoomPatMngt";
  108. oParam.method = "reqGetVcnKindInfo";
  109. oParam.inds = "";
  110. oParam.outds = "ds_init_vcnkind=kindinfo";
  111. oParam.async = false;
  112. //oParam.callback = "cf_TRMNI01503";
  113. tranf_submit(oParam);
  114. var vcncod = parent.parent.frmf_getParameter("vcncod");
  115. var lotno = parent.parent.frmf_getParameter("lotno");
  116. var execdd = parent.parent.frmf_getParameter("execdd");
  117. ds_cond.setColumn(0,"vcncod", vcncod);
  118. ds_cond.setColumn(0,"lotno", lotno);
  119. ds_cond.setColumn(0,"execdd", execdd);
  120. //등록된 백신정보 조회
  121. fSrchVcnRgstInfo();
  122. }
  123. }
  124. function fSrchVcnMasterInfo(){
  125. var masterlotno = model.getValue("/root/main/cond/masterlotno");
  126. if(masterlotno == ""){
  127. messageBox("로트번호를 입력하세요.", "I");
  128. model.setFocus("ipt_masterlotno");
  129. ipt_masterlotno.refresh();
  130. return;
  131. }else{
  132. model.removenode("/root/send");
  133. model.makeValue("/root/send/lotno", masterlotno);
  134. submit("TRMNI01501");
  135. }
  136. }
  137. function fSrchVcnRgstInfo(){
  138. var vcncod = ds_cond.getColumn(0,"vcncod");
  139. var lotno = ds_cond.getColumn(0,"lotno");
  140. if(utlf_isNull(vcncod) && utlf_isNull(lotno)){
  141. return;
  142. }else{
  143. dsf_createDsRow("ds_send", [{col: "vcncod", val:vcncod }
  144. ,{col: "lotno", val:lotno }
  145. ,{col: "rgstflag", val:"Y" }
  146. ]);
  147. var oParam = {};
  148. oParam.id = "TRMNI01502";
  149. oParam.service = "injroomapp.InjRoomPatMngt";
  150. oParam.method = "reqGetVcnInfo";
  151. oParam.inds = "refCond=ds_send";
  152. oParam.outds = "ds_vcnlist=vcnlist";
  153. oParam.async = false;
  154. tranf_submit(oParam);
  155. }
  156. }
  157. function fSetVacnInfo(){
  158. var iRow = grd_vcninfo.row;
  159. var execdd = model.getValue("/root/main/cond/execdd");
  160. if(model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/lopperid") != ""){
  161. if(model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/lopperid") < execdd){
  162. messageBox("유효기간이 지난 백신입니다.", "I");
  163. return;
  164. }
  165. }
  166. opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/lotno", model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/lotno"));
  167. opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/vcnnam", model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/vcnnam"));
  168. opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/vaname", model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/vaname"));
  169. opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/lopperid", model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/lopperid"));
  170. opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/vendorname", model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/vendorname"));
  171. opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/vcncod", model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/vcncod"));
  172. opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/vacode", model.getValue("/root/main/vcninfo/vcnlist[" + iRow + "]/vacode"));
  173. //opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/revcnyn", 'N');
  174. opener.model.setValue("/root/main/vcnrgstinfo/rgstactinfo/srchyn", 'Y');
  175. opener.model.refresh();
  176. model.close();
  177. }
  178. //자주쓰는 백신 삭제
  179. function fDelUseVacn(){
  180. model.removenode("/root/send");
  181. model.makeValue("/root/send/rgstyn", "N");
  182. model.makeValue("/root/send/lotno", model.getValue("/root/main/vcninfo/vcnlist[" + grd_vcninfo.row + "]/lotno"));
  183. model.makeValue("/root/send/vacode", model.getValue("/root/main/vcninfo/vcnlist[" + grd_vcninfo.row + "]/vacode"));
  184. model.makeValue("/root/send/lopperid", model.getValue("/root/main/vcninfo/vcnlist[" + grd_vcninfo.row + "]/lopperid"));
  185. if(submit("TXMNI01501")){
  186. fSrchVcnRgstInfo(); //등록된 백신정보 조회
  187. }
  188. }
  189. //자주쓰는 백신 등록
  190. function fRgstUseVacn(){
  191. model.removenode("/root/send");
  192. model.makeValue("/root/send/rgstyn", "Y");
  193. model.makeValue("/root/send/lotno", model.getValue("/root/main/vcnmasterinfo/vcnmasterlist[" + grd_vcnmasterinfo.row + "]/lotno"));
  194. model.makeValue("/root/send/vacode", model.getValue("/root/main/vcnmasterinfo/vcnmasterlist[" + grd_vcnmasterinfo.row + "]/vacode"));
  195. model.makeValue("/root/send/lopperid", model.getValue("/root/main/vcnmasterinfo/vcnmasterlist[" + grd_vcnmasterinfo.row + "]/lopperid"));
  196. if(submit("TXMNI01501")){
  197. fSrchVcnRgstInfo(); //등록된 백신정보 조회
  198. }
  199. }
  200. /****************************************************************************************
  201. * Components :
  202. * Components ID : SPMNI01600
  203. * Event : onload
  204. * Argument : 01.obj : Object Event has occurred
  205. * : 02.e : Event Object
  206. * Description :
  207. ****************************************************************************************/
  208. function SPMNI01600_onload(obj:Form, e:LoadEventInfo)
  209. {
  210. frmf_initForm(obj);
  211. }
  212. ]]></Script>
  213. </Form>
  214. </FDL>