SMADB03100_특수조제실마스터.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADB03100" position="absolute 0 0 1195 665" titletext="특수조제실 마스터" oninit="SMADB03100_oninit" onload="SMADB03100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption19" text="특수조제실 마스터" class="tit_1" position="absolute 0 0 145 25"/>
  8. <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1137 2 1193 24" onclick="btn_save_onclick" anchor="top right"/>
  9. <Div id="group2" taborder="2" style="align:center top;" class="div_SA" position="absolute 0 25 1193 65" anchor="left top right">
  10. <Layouts>
  11. <Layout>
  12. <Static id="caption3" text="약품종류 :" class="search_name" position="absolute 15 13 86 30" anchor="default"/>
  13. <Combo id="cmb_srchmthdflag" taborder="1" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 89 10 224 31" anchor="default" innerdataset="@ds_spcldrug" onitemchanged="group2_cmb_srchmthdflag_onitemchanged"/>
  14. <Static id="caption1" text="약품코드 :" class="search_name" position="absolute 290 12 361 30" anchor="default"/>
  15. <Edit id="ipt_srchmthdcd" taborder="2" class="input_search" position="absolute 364 10 554 31" anchor="default"/>
  16. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1093 9 1099 34" anchor="top right"/>
  17. <Button id="btn_seamthd" taborder="3" text="조회" class="btn1" position="absolute 1113 10 1173 32" anchor="top right" onclick="group2_btn_seamthd_onclick"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Grid id="grd_mthdlist" taborder="3" binddataset="ds_grd_mthdlist" useinputpanel="false" autofittype="col" position="absolute 0 90 1193 663" anchor="all" cellsizingtype="both" autoenter="key" extendsizetype="row">
  22. <Formats>
  23. <Format id="default">
  24. <Columns>
  25. <Column size="25" band="left"/>
  26. <Column size="92"/>
  27. <Column size="88"/>
  28. <Column size="271"/>
  29. <Column size="0"/>
  30. <Column size="72"/>
  31. <Column size="57"/>
  32. <Column size="73"/>
  33. <Column size="48"/>
  34. <Column size="57"/>
  35. <Column size="213"/>
  36. <Column size="37"/>
  37. <Column size="75"/>
  38. <Column size="68"/>
  39. <Column size="60"/>
  40. <Column size="75"/>
  41. </Columns>
  42. <Rows>
  43. <Row size="24" band="head"/>
  44. <Row size="24"/>
  45. </Rows>
  46. <Band id="head">
  47. <Cell/>
  48. <Cell col="1" text="약품종류"/>
  49. <Cell col="2" text="약품코드"/>
  50. <Cell col="3" text="약품명"/>
  51. <Cell col="4" text="라벨명"/>
  52. <Cell col="5" text="라벨그룹"/>
  53. <Cell col="6" text="라벨출력"/>
  54. <Cell col="7" text="재구성농도"/>
  55. <Cell col="8" text="단위"/>
  56. <Cell col="9" text="유효기간"/>
  57. <Cell col="10" text="비고1"/>
  58. <Cell col="11" text="차광"/>
  59. <Cell col="12" text="보관"/>
  60. <Cell col="13" text="총VOL제외"/>
  61. <Cell col="14" text="유효기간2"/>
  62. <Cell col="15" text="보관2"/>
  63. </Band>
  64. <Band id="body">
  65. <Cell celltype="head"/>
  66. <Cell col="1" displaytype="combo" edittype="combo" style="align:left middle;padding:0 0 0 5;" text="bind:spcldrug" combodataset="ds_spcldrug" combocodecol="cdid" combodatacol="cdnm"/>
  67. <Cell col="2" style="align:left middle;padding:0 0 0 5;" text="bind:drugcd"/>
  68. <Cell col="3" style="align:left middle;padding:0 0 0 5;" text="bind:ordnm"/>
  69. <Cell col="4" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 5;" text="bind:lblnm"/>
  70. <Cell col="5" displaytype="combo" edittype="combo" style="align:left middle;padding:0 0 0 5;" text="bind:lblgrup" combodataset="ds_lblgrup" combocodecol="cdid" combodatacol="cdnm"/>
  71. <Cell col="6" displaytype="checkbox" edittype="checkbox" text="bind:lblprntyn" expr="expr:(lblprntyn==&quot;Y&quot;||lblprntyn==1)?1:0"/>
  72. <Cell col="7" displaytype="number" edittype="text" editfilter="number,char" style="align:right middle;padding:0 5 0 0;" text="bind:reconvol" editautoselect="true" editlimitbymask="decimal"/>
  73. <Cell col="8" displaytype="text" edittype="text" text="bind:reconunit" editautoselect="true"/>
  74. <Cell col="9" displaytype="normal" edittype="text" editfilter="digit" style="align:right middle;padding:0 5 0 0;" text="bind:valitime" editlimit="5" editautoselect="true"/>
  75. <Cell col="10" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 5;" text="bind:lblcnts1" editautoselect="true"/>
  76. <Cell col="11" displaytype="checkbox" edittype="checkbox" text="bind:keepmthd2" expr="expr:(keepmthd2==&quot;Y&quot;||keepmthd2==1)?1:0"/>
  77. <Cell col="12" displaytype="combo" edittype="combo" style="align:left middle;padding:0 0 0 5;" text="bind:keepmthd" combodataset="ds_keepmthd" combocodecol="cdid" combodatacol="cdnm"/>
  78. <Cell col="13" displaytype="checkbox" edittype="checkbox" text="bind:totvolexptyn" expr="expr:(totvolexptyn==&quot;Y&quot;||totvolexptyn==1)?1:0"/>
  79. <Cell col="14" edittype="text" style="align:right;" text="bind:keeptime"/>
  80. <Cell col="15" displaytype="combo" edittype="combo" text="bind:lblcnts3" combodataset="ds_keepmthd" combocodecol="cdid" combodatacol="cdnm"/>
  81. </Band>
  82. </Format>
  83. </Formats>
  84. </Grid>
  85. </Layout>
  86. </Layouts>
  87. <Objects>
  88. <Dataset id="ds_grd_mthdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  89. <ColumnInfo>
  90. <Column id="spcldrug" type="STRING"/>
  91. <Column id="drugcd" type="STRING"/>
  92. <Column id="ordnm" type="STRING"/>
  93. <Column id="lblnm" type="STRING"/>
  94. <Column id="lblgrup" type="STRING"/>
  95. <Column id="lblprntyn" type="STRING"/>
  96. <Column id="reconvol" type="STRING"/>
  97. <Column id="reconunit" type="STRING"/>
  98. <Column id="valitime" type="STRING"/>
  99. <Column id="lblcnts1" type="STRING"/>
  100. <Column id="keepmthd2" type="STRING"/>
  101. <Column id="keepmthd" type="STRING"/>
  102. <Column id="totvolexptyn" type="STRING"/>
  103. <Column id="lblcnts3" type="STRING" size="256"/>
  104. <Column id="keeptime" type="STRING" size="256"/>
  105. </ColumnInfo>
  106. <Rows>
  107. <Row/>
  108. </Rows>
  109. </Dataset>
  110. <Dataset id="ds_A0017" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  111. <Dataset id="ds_spcldrug" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  112. <ColumnInfo>
  113. <Column id="cdid" type="STRING" size="256"/>
  114. <Column id="cdnm" type="STRING" size="256"/>
  115. </ColumnInfo>
  116. <Rows>
  117. <Row>
  118. <Col id="cdnm">조제TPN</Col>
  119. <Col id="cdid">T</Col>
  120. </Row>
  121. <Row>
  122. <Col id="cdnm">소아TPN</Col>
  123. <Col id="cdid">B</Col>
  124. </Row>
  125. <Row>
  126. <Col id="cdnm">완제품TPN</Col>
  127. <Col id="cdid">Q</Col>
  128. </Row>
  129. <Row>
  130. <Col id="cdid">D</Col>
  131. <Col id="cdnm">항암제(특조실)</Col>
  132. </Row>
  133. <Row>
  134. <Col id="cdnm">무균조제(특조실)</Col>
  135. <Col id="cdid">C</Col>
  136. </Row>
  137. <Row>
  138. <Col id="cdnm">면역억제제</Col>
  139. <Col id="cdid">1</Col>
  140. </Row>
  141. </Rows>
  142. </Dataset>
  143. <Dataset id="ds_lblgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  144. <ColumnInfo>
  145. <Column id="cdid" type="STRING" size="256"/>
  146. <Column id="cdnm" type="STRING" size="256"/>
  147. </ColumnInfo>
  148. <Rows>
  149. <Row>
  150. <Col id="cdid">ID</Col>
  151. <Col id="cdnm">항암제</Col>
  152. </Row>
  153. <Row>
  154. <Col id="cdid">IT</Col>
  155. <Col id="cdnm">TPN</Col>
  156. </Row>
  157. <Row>
  158. <Col id="cdid">IB</Col>
  159. <Col id="cdnm">소아TPN</Col>
  160. </Row>
  161. <Row>
  162. <Col id="cdid">IC</Col>
  163. <Col id="cdnm">무균조제</Col>
  164. </Row>
  165. <Row>
  166. <Col id="cdid">IG</Col>
  167. <Col id="cdnm">IVGV Mix</Col>
  168. </Row>
  169. <Row>
  170. <Col id="cdnm">면역억제제</Col>
  171. <Col id="cdid">IN</Col>
  172. </Row>
  173. </Rows>
  174. </Dataset>
  175. <Dataset id="ds_keepmthd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  176. <ColumnInfo>
  177. <Column id="cdid" type="STRING" size="256"/>
  178. <Column id="cdnm" type="STRING" size="256"/>
  179. </ColumnInfo>
  180. <Rows>
  181. <Row>
  182. <Col id="cdid"/>
  183. <Col id="cdnm"/>
  184. </Row>
  185. <Row>
  186. <Col id="cdid">1</Col>
  187. <Col id="cdnm">실온보관</Col>
  188. </Row>
  189. <Row>
  190. <Col id="cdid">3</Col>
  191. <Col id="cdnm">냉장보관</Col>
  192. </Row>
  193. <Row>
  194. <Col id="cdid">5</Col>
  195. <Col id="cdnm">냉장불가</Col>
  196. </Row>
  197. </Rows>
  198. </Dataset>
  199. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  200. <ColumnInfo>
  201. <Column id="srchspcldrug" type="STRING" size="256"/>
  202. <Column id="srchmthdcd" type="STRING" size="256"/>
  203. </ColumnInfo>
  204. <Rows>
  205. <Row>
  206. <Col id="srchspcldrug">D</Col>
  207. </Row>
  208. </Rows>
  209. </Dataset>
  210. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  211. </Objects>
  212. <Bind>
  213. <BindItem id="item0" compid="group2.cmb_srchmthdflag" propid="value" datasetid="ds_send" columnid="srchspcldrug"/>
  214. <BindItem id="item1" compid="group2.ipt_srchmthdcd" propid="value" datasetid="ds_send" columnid="srchmthdcd"/>
  215. </Bind>
  216. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  217. * System Name :
  218. * Job Name :
  219. * Creator :
  220. * Make Date : 2015-11-02
  221. * Description :
  222. *---------------------------------------------------------------------------------------
  223. * Modify Date Modifier Modify Description
  224. *---------------------------------------------------------------------------------------
  225. * 2015-11-02 Live Converter TF->XP
  226. *
  227. *---------------------------------------------------------------------------------------
  228. ****************************************************************************************/
  229. include "com_commonxp::comm_main.xjs";
  230. var arErrorCode = new HashArray();
  231. /******************************************************************
  232. * Argument :
  233. * Description : 초기화
  234. ******************************************************************/
  235. function SMADB03100_oninit(obj:Form, e:InitEventInfo)
  236. {
  237. frmf_initForm(obj);
  238. }
  239. function SMADB03100_onload(obj:Form, e:LoadEventInfo)
  240. {
  241. //List 0번째 상태값 설정
  242. grdf_setRowTypeIcon(grd_mthdlist, 0);
  243. //권한관리
  244. btn_save.enable = frmf_checkAuth("X"); //저장
  245. appf_getCodeList( [{dsNm: "ds_A0017", cdGrpId: "A0017"}], true );
  246. group2_btn_seamthd_onclick();
  247. grdf_initGrid(grd_mthdlist);
  248. var instcd = sysf_getUserInfo("dutplceinstcd");
  249. if(instcd=="031") {
  250. grd_mthdlist.setFormatColProperty(14, "size", 0);
  251. grd_mthdlist.setFormatColProperty(15, "size", 0);
  252. }
  253. }
  254. /******************************************************************
  255. * Argument :
  256. * Description : 조회
  257. ******************************************************************/
  258. function group2_btn_seamthd_onclick(obj:Button, e:ClickEventInfo)
  259. {
  260. var oParam = {};
  261. oParam.id = "TRADB03101";
  262. oParam.service = "pharmacybaseapp.DrugCode";
  263. oParam.method = "reqGetSpclDrugList";
  264. oParam.inds = "req=ds_send";
  265. oParam.outds = "ds_grd_mthdlist=item";
  266. oParam.async = false;
  267. oParam.callback = "cf_TRADB03101";
  268. tranf_submit(oParam);
  269. }
  270. function cf_TRADB03101(sSvcId, nErrorCode, sErrorMsg) {
  271. arErrorCode.push(sSvcId, nErrorCode);
  272. }
  273. /******************************************************************
  274. * Argument :
  275. * Description : 저장
  276. ******************************************************************/
  277. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  278. {
  279. if( sysf_messageBox("변경사항", "Q002") != 6 ){
  280. return;
  281. }
  282. var oDsUpdate = grdf_getGridUpdateData(grd_mthdlist);
  283. if( oDsUpdate.rowcount < 1 ){
  284. sysf_messageBox("변경된 데이터가 없습니다.","I");
  285. return;
  286. }
  287. grdf_setStatusColumn(oDsUpdate, "m"); // 각행의 status에 rowType 값에 따라 'i', 'u', 'd'로 업데이트 시켜준다
  288. ds_send_req.copyData(oDsUpdate, true);
  289. for( var i = 0; i < ds_send_req.rowcount; i++ ){
  290. var getLblprntyn = ds_send_req.getColumn(i, "lblprntyn");
  291. var getKeepmthd2 = ds_send_req.getColumn(i, "keepmthd2");
  292. var getTotvolexptyn = ds_send_req.getColumn(i, "totvolexptyn");
  293. if( getLblprntyn == "1" || getLblprntyn == "Y" ) ds_send_req.setColumn(i, "getLblprntyn", "Y"); else ds_send_req.setColumn(i, "getLblprntyn", "N");
  294. if( getKeepmthd2 == "1" || getKeepmthd2 == "Y" ) ds_send_req.setColumn(i, "getKeepmthd2", "Y"); else ds_send_req.setColumn(i, "getKeepmthd2", "N");
  295. if( getTotvolexptyn == "1" || getTotvolexptyn == "Y" ) ds_send_req.setColumn(i, "getTotvolexptyn", "Y"); else ds_send_req.setColumn(i, "getTotvolexptyn", "N");
  296. }
  297. dsf_setTypeFormat(ds_send_req, "reconvol:FLOAT^valitime:INT^keeptime:INT");
  298. var oParam = {};
  299. oParam.id = "TXADB03101";
  300. oParam.service = "pharmacybaseapp.DrugCode";
  301. oParam.method = "reqExeSpclDrug";
  302. oParam.inds = "req=ds_send_req";
  303. oParam.outds = "ds_grd_mthdlist=item";
  304. oParam.async = false;
  305. oParam.callback = "cf_TXADB03101";
  306. tranf_submit(oParam);
  307. //조회
  308. group2_btn_seamthd_onclick();
  309. }
  310. function cf_TXADB03101(sSvcId, nErrorCode, sErrorMsg) {
  311. arErrorCode.push(sSvcId, nErrorCode);
  312. }
  313. function group2_cmb_srchmthdflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  314. {
  315. group2_btn_seamthd_onclick();
  316. }
  317. ]]></Script>
  318. </Form>
  319. </FDL>