SMLBF00200_혈액출고유형관리.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLBF00200" position="absolute 0 0 1181 723" titletext="New Form" oninit="SMLBF00200_oninit" onload="SMLBF00200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="혈액출고유형관리" onclick="group2_caption6_onclick" class="tit_1" position="absolute 0 1 144 26"/>
  8. <Button id="btn_reset" taborder="3" text="초기화" onclick="grp_btn_btn_reset_onclick" class="btn4" position="absolute 1111 2 1179 24" anchor="top right"/>
  9. <Button id="btn_cnfm" taborder="4" text="저장" onclick="grp_btn_btn_cnfm_onclick" class="btn4" position="absolute 1048 2 1104 24" anchor="top right"/>
  10. <Div id="group1" anchor="left top right" taborder="5" class="div_SA" position="absolute 0 26 1179 61">
  11. <Layouts>
  12. <Layout>
  13. <Button id="btn_Ref" taborder="3" text="조회" onclick="group3_group1_btn_Ref_onclick" class="btn1" position="absolute 1108 7 1164 29" anchor="top right"/>
  14. <Static id="caption1" text="출고유형 :" class="search_name" position="absolute 15 9 105 26" anchor="left top"/>
  15. <Combo id="cmbflag" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group3_group1_cmbflag_onitemchanged" position="absolute 108 8 258 27" anchor="left top">
  16. <Dataset id="innerdataset">
  17. <ColumnInfo>
  18. <Column id="codecolumn" size="256"/>
  19. <Column id="datacolumn" size="256"/>
  20. </ColumnInfo>
  21. <Rows>
  22. <Row>
  23. <Col id="codecolumn">01</Col>
  24. <Col id="datacolumn">자체폐기</Col>
  25. </Row>
  26. <Row>
  27. <Col id="codecolumn">02</Col>
  28. <Col id="datacolumn">교환출고</Col>
  29. </Row>
  30. <Row>
  31. <Col id="codecolumn">03</Col>
  32. <Col id="datacolumn">사혈</Col>
  33. </Row>
  34. </Rows>
  35. </Dataset>
  36. </Combo>
  37. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1097 7 1103 29" anchor="top right"/>
  38. </Layout>
  39. </Layouts>
  40. </Div>
  41. <Static id="caption3" text="혈액출고유형리스트" class="tit_2" position="absolute 0 71 139 90" anchor="left top"/>
  42. <Button id="btn_add" taborder="6" text="행삭제" onclick="group3_btn_add_onclick" class="btn2" position="absolute 1126 65 1179 84" anchor="top right"/>
  43. <Button id="button1" taborder="7" text="행추가" onclick="group3_button1_onclick" class="btn2" position="absolute 1066 65 1119 84" anchor="top right"/>
  44. <Grid id="grd_delivelist" taborder="8" binddataset="ds_grd_delivelist" useinputpanel="false" position="absolute 0 91 1179 696" anchor="all">
  45. <Formats>
  46. <Format id="default">
  47. <Columns>
  48. <Column size="23"/>
  49. <Column size="100"/>
  50. <Column size="130"/>
  51. <Column size="130"/>
  52. <Column size="200"/>
  53. <Column size="50"/>
  54. <Column size="0"/>
  55. </Columns>
  56. <Rows>
  57. <Row size="24" band="head"/>
  58. <Row size="24"/>
  59. </Rows>
  60. <Band id="head">
  61. <Cell/>
  62. <Cell col="1" text="출고유형코드"/>
  63. <Cell col="2" text="혈액출고유형"/>
  64. <Cell col="3" text="출고구분"/>
  65. <Cell col="4" text="출고사유 (영문120자까지)"/>
  66. <Cell col="5" text="순번"/>
  67. <Cell col="6" text="LB005"/>
  68. </Band>
  69. <Band id="body">
  70. <Cell/>
  71. <Cell col="1" displaytype="text" edittype="text" text="bind:basecd2"/>
  72. <Cell col="2" displaytype="text" edittype="text" text="bind:basecdidnm"/>
  73. <Cell col="3" displaytype="text" edittype="text" text="bind:basecdnm"/>
  74. <Cell col="4" displaytype="text" edittype="text" text="bind:basecddesc"/>
  75. <Cell col="5" displaytype="text" edittype="text" text="bind:basecddispseq"/>
  76. <Cell col="6" text="bind:basecd"/>
  77. </Band>
  78. </Format>
  79. </Formats>
  80. </Grid>
  81. </Layout>
  82. </Layouts>
  83. <Objects>
  84. <Dataset id="ds_grd_delivelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  85. <ColumnInfo>
  86. <Column id="basecd2" type="STRING"/>
  87. <Column id="basecdidnm" type="STRING"/>
  88. <Column id="basecdnm" type="STRING"/>
  89. <Column id="basecddesc" type="STRING"/>
  90. <Column id="basecddispseq" type="STRING"/>
  91. <Column id="basecd" type="STRING"/>
  92. </ColumnInfo>
  93. </Dataset>
  94. <Dataset id="ds_cmbflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  95. <ColumnInfo>
  96. <Column id="label" type="STRING" size="256"/>
  97. <Column id="value" type="STRING" size="256"/>
  98. </ColumnInfo>
  99. <Rows>
  100. <Row>
  101. <Col id="label">자체폐기</Col>
  102. <Col id="value">01</Col>
  103. </Row>
  104. <Row>
  105. <Col id="label">교환출고</Col>
  106. <Col id="value">02</Col>
  107. </Row>
  108. <Row>
  109. <Col id="label">사혈</Col>
  110. <Col id="value">03</Col>
  111. </Row>
  112. </Rows>
  113. </Dataset>
  114. <Dataset id="ds_main_bloodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  115. <ColumnInfo>
  116. <Column id="basecd2" type="STRING" size="0"/>
  117. <Column id="basecdidnm" type="STRING" size="0"/>
  118. <Column id="basecdnm" type="STRING" size="0"/>
  119. <Column id="basecddesc" type="STRING" size="0"/>
  120. <Column id="basecddispseq" type="STRING" size="0"/>
  121. <Column id="basecd" type="STRING" size="0"/>
  122. </ColumnInfo>
  123. </Dataset>
  124. <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  125. <ColumnInfo>
  126. <Column id="delivegbn" type="STRING" size="256"/>
  127. </ColumnInfo>
  128. <Rows>
  129. <Row/>
  130. </Rows>
  131. </Dataset>
  132. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  133. <ColumnInfo>
  134. <Column id="codeflag" type="STRING" size="256"/>
  135. </ColumnInfo>
  136. <Rows>
  137. <Row/>
  138. </Rows>
  139. </Dataset>
  140. <Dataset id="ds_senddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  141. <Dataset id="ds_gbn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  142. <ColumnInfo>
  143. <Column id="gbn" type="STRING" size="256"/>
  144. </ColumnInfo>
  145. <Rows>
  146. <Row/>
  147. </Rows>
  148. </Dataset>
  149. </Objects>
  150. <Bind>
  151. <BindItem id="item1" compid="" propid="" datasetid="ds_delivegbn" columnid=""/>
  152. </Bind>
  153. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  154. * System Name :
  155. * Job Name :
  156. * Creator :
  157. * Make Date : 2015-11-09
  158. * Description :
  159. *---------------------------------------------------------------------------------------
  160. * Modify Date Modifier Modify Description
  161. *---------------------------------------------------------------------------------------
  162. * 2015-11-09 Live Converter TF->XP
  163. *
  164. *---------------------------------------------------------------------------------------
  165. ****************************************************************************************/
  166. include "com_commonxp::comm_main.xjs";
  167. function SMLBF00200_oninit(obj:Form, e:InitEventInfo)
  168. {
  169. //폼 초기화 함수
  170. frmf_initForm(obj);
  171. }
  172. function SMLBF00200_onload(obj:Form, e:LoadEventInfo)
  173. {
  174. grdf_setRowTypeIcon(grd_delivelist, 0);
  175. grdf_initGrid(grd_delivelist);
  176. group1.cmbflag.value = '02';
  177. fGetDelivegbnList();
  178. }
  179. // 코드별 정보 출력
  180. function fGetDelivegbnList()
  181. {
  182. var cmbflag = group1.cmbflag.value;
  183. var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "delivegbn", val: cmbflag}]);
  184. //서브밋호출
  185. var oParam = {};
  186. oParam.id = "TRLBF00201";
  187. oParam.service = "diagtestbaseinfomngtapp.BloodBankBaseInfoMngt";
  188. oParam.method = "reqGetDeliveGbnList";
  189. oParam.inds = "cond=" + sInDsName;
  190. oParam.outds = "ds_grd_delivelist=getDeliveGbnList";
  191. oParam.async = false;
  192. tranf_submit(oParam);
  193. }
  194. //행추가
  195. function fsetgrdadd()
  196. {
  197. var addRw = ds_grd_delivelist.addRow(ds_grd_delivelist.rowcount);
  198. var arrPostion = new Array();
  199. arrPostion[0] = addRw;
  200. if(addRw > 1)
  201. {
  202. var cd = ds_grd_delivelist.getColumn(addRw - 1, "basecd2");
  203. var cd2 = parseInt(cd) + 1;
  204. var seq = parseInt(ds_grd_delivelist.getColumn(addRw - 1, "basecddispseq")) + 1;
  205. ds_grd_delivelist.setColumn(addRw, "basecd2", cd2.toString().getLeftPad(2, "0"));
  206. ds_grd_delivelist.setColumn(addRw, "basecdidnm", "혈액출고유형");
  207. ds_grd_delivelist.setColumn(addRw, "basecdnm", ds_grd_delivelist.getColumn(addRw - 1, "basecdnm"));
  208. ds_grd_delivelist.setColumn(addRw, "basecddispseq", seq);
  209. }
  210. }
  211. //행삭제
  212. function fsetgrddel()
  213. {
  214. var arrPostion = new Array();
  215. arrPostion[0] = ds_grd_delivelist.rowposition;
  216. grdf_setStatus(grd_delivelist, "D", arrPostion);
  217. }
  218. //행저장
  219. function fExeDeliveGbn()
  220. {
  221. var tmp = grdf_getGridUpdateData(grd_delivelist, "all");
  222. grdf_setStatusColumn(tmp, "status");
  223. ds_senddata.copyData(tmp, true);
  224. dsf_makeValue(ds_gbn, 'gbn', 'string', group1.cmbflag.value, 0);
  225. var oParam = {};
  226. oParam.id = "TXLBF00201";
  227. oParam.service = "diagtestbaseinfomngtapp.BloodBankBaseInfoMngt";
  228. oParam.method = "reqExeDeliveGbn";
  229. oParam.inds = "cond=ds_senddata cond2=ds_gbn";
  230. oParam.async = false;
  231. tranf_submit(oParam);
  232. //재조회
  233. fGetDelivegbnList();
  234. }
  235. //조회
  236. function group3_group1_btn_Ref_onclick(obj:Button, e:ClickEventInfo)
  237. {
  238. fGetDelivegbnList();
  239. }
  240. function group3_group1_cmbflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  241. {
  242. fGetDelivegbnList();
  243. }
  244. //초기화
  245. function grp_btn_btn_reset_onclick(obj:Button, e:ClickEventInfo)
  246. {
  247. this.reload();
  248. }
  249. //행추가
  250. function group3_button1_onclick(obj:Button, e:ClickEventInfo)
  251. {
  252. fsetgrdadd();
  253. }
  254. //행삭제
  255. function group3_btn_add_onclick(obj:Button, e:ClickEventInfo)
  256. {
  257. fsetgrddel();
  258. }
  259. //저장
  260. function grp_btn_btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
  261. {
  262. fExeDeliveGbn();
  263. }
  264. function Button00_onclick(obj:Button, e:ClickEventInfo)
  265. {
  266. frmf_open("SMLRR00400", "SMLRR00400", "" , "" , "" , "", "", "", "", "", "")
  267. }
  268. ]]></Script>
  269. </Form>
  270. </FDL>