SMMNP04900_물품청구관리.xfdl 45 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNP04900" position="absolute 0 0 1202 758" titletext="물품입고관리" oninit="SMMNP04900_oninit" onload="SMMNP04900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1194 85" align="align:center top;" id="group2" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Static text="청구일자 :" position="absolute 2 9 88 28" id="caption3" class="search_name"/>
  11. <Button position="absolute 1110 7 1166 29" id="btn_search" class="btn1" text="조회" onclick="group2_btn_search_onclick"/>
  12. <Shape position="absolute 1102 10 1108 52" linetype="vertical" id="line3" class="line_4"/>
  13. <Static text="~" position="absolute 186 9 198 28" id="caption8" class="search_n_b"/>
  14. <Calendar position="absolute 90 9 180 28" id="ipt_reqfromdd" class="input_s_essential" autoselect="true"/>
  15. <Calendar position="absolute 203 9 293 28" id="ipt_reqtodd" class="input_s_essential" autoselect="true"/>
  16. <Static text="물품조회 :" position="absolute 630 35 716 54" id="caption9" class="search_name"/>
  17. <Button position="absolute 1110 32 1190 54" id="btn_excelsave" class="btn7" text="엑셀저장" onclick="group2_btn_excelsave_onclick"/>
  18. <Edit position="absolute 720 35 800 54" id="ipt_goodcd" class="input_search" autoselect="true" onkeydown="group2_ipt_goodcd_onkeydown"/>
  19. <Button position="absolute 804 36 820 52" id="btn_goodsearch" class="icon_search" text="" onclick="group2_btn_goodsearch_onclick"/>
  20. <Edit position="absolute 825 35 990 54" id="ipt_goodnm" class="input_search" autoselect="true" onkeydown="group2_ipt_goodnm_onkeydown"/>
  21. <Static text="집계구분 :" position="absolute 315 35 404 54" id="caption12" class="search_name"/>
  22. <Radio position="absolute 405 35 620 54" id="rdo_reqprid" class="radio_search" columncount="4" codecolumn="codecolumn" datacolumn="datacolumn">
  23. <Dataset id="innerdataset">
  24. <ColumnInfo>
  25. <Column id="codecolumn"/>
  26. <Column id="datacolumn"/>
  27. </ColumnInfo>
  28. <Rows>
  29. <Row>
  30. <Col id="codecolumn">0</Col>
  31. <Col id="datacolumn">전체</Col>
  32. </Row>
  33. <Row>
  34. <Col id="codecolumn">1</Col>
  35. <Col id="datacolumn">일집계</Col>
  36. </Row>
  37. <Row>
  38. <Col id="codecolumn">4</Col>
  39. <Col id="datacolumn">월집계</Col>
  40. </Row>
  41. <Row>
  42. <Col id="codecolumn">2</Col>
  43. <Col id="datacolumn">주집계</Col>
  44. </Row>
  45. </Rows>
  46. </Dataset>
  47. </Radio>
  48. <Static text="입고구분 :" position="absolute 2 35 91 54" id="caption1" class="search_name"/>
  49. <Radio position="absolute 90 35 305 54" id="rdo_endflag" class="radio_search" columncount="4" codecolumn="codecolumn" datacolumn="datacolumn">
  50. <Dataset id="innerdataset">
  51. <ColumnInfo>
  52. <Column id="codecolumn"/>
  53. <Column id="datacolumn"/>
  54. </ColumnInfo>
  55. <Rows>
  56. <Row>
  57. <Col id="codecolumn">
  58. </Col>
  59. <Col id="datacolumn">전체</Col>
  60. </Row>
  61. <Row>
  62. <Col id="codecolumn">Y</Col>
  63. <Col id="datacolumn">입고</Col>
  64. </Row>
  65. <Row>
  66. <Col id="codecolumn">N</Col>
  67. <Col id="datacolumn">미입고</Col>
  68. </Row>
  69. </Rows>
  70. </Dataset>
  71. </Radio>
  72. <Static text="조회구분 :" position="absolute 315 9 404 28" id="caption2" class="search_name"/>
  73. <Radio position="absolute 405 9 545 28" id="radio1" class="radio_search" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn">
  74. <Dataset id="innerdataset">
  75. <ColumnInfo>
  76. <Column id="codecolumn"/>
  77. <Column id="datacolumn"/>
  78. </ColumnInfo>
  79. <Rows>
  80. <Row>
  81. <Col id="codecolumn">
  82. </Col>
  83. <Col id="datacolumn">전체</Col>
  84. </Row>
  85. <Row>
  86. <Col id="codecolumn">1</Col>
  87. <Col id="datacolumn">청구</Col>
  88. </Row>
  89. <Row>
  90. <Col id="codecolumn">2</Col>
  91. <Col id="datacolumn">처방</Col>
  92. </Row>
  93. </Rows>
  94. </Dataset>
  95. </Radio>
  96. <Static text="부서구분 :" position="absolute 855 9 944 28" id="caption4" class="search_name"/>
  97. <Radio position="absolute 945 9 1080 28" id="radio2" class="radio_search" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group2_radio2_onitemchanged">
  98. <Dataset id="innerdataset">
  99. <ColumnInfo>
  100. <Column id="codecolumn"/>
  101. <Column id="datacolumn"/>
  102. </ColumnInfo>
  103. <Rows>
  104. <Row>
  105. <Col id="codecolumn">O</Col>
  106. <Col id="datacolumn">수술</Col>
  107. </Row>
  108. <Row>
  109. <Col id="codecolumn">A</Col>
  110. <Col id="datacolumn">마취</Col>
  111. </Row>
  112. <Row>
  113. <Col id="codecolumn">R</Col>
  114. <Col id="datacolumn">회복</Col>
  115. </Row>
  116. </Rows>
  117. </Dataset>
  118. </Radio>
  119. <Button position="absolute 995 35 1048 54" id="button1" class="btn2" text="초기화" onclick="group2_button1_onclick"/>
  120. <Static text="청구방법 :" position="absolute 570 9 659 28" id="caption5" class="search_name"/>
  121. <Radio position="absolute 660 9 840 28" id="radio3" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" rowcount="-1">
  122. <Dataset id="innerdataset">
  123. <ColumnInfo>
  124. <Column id="codecolumn"/>
  125. <Column id="datacolumn"/>
  126. </ColumnInfo>
  127. <Rows>
  128. <Row>
  129. <Col id="codecolumn">
  130. </Col>
  131. <Col id="datacolumn">전체</Col>
  132. </Row>
  133. <Row>
  134. <Col id="codecolumn">1</Col>
  135. <Col id="datacolumn">처방집계</Col>
  136. </Row>
  137. <Row>
  138. <Col id="codecolumn">3</Col>
  139. <Col id="datacolumn">일반청구</Col>
  140. </Row>
  141. </Rows>
  142. </Dataset>
  143. </Radio>
  144. </Layout>
  145. </Layouts>
  146. </Div>
  147. <Tab position="absolute 0 92 1195 754" id="switch1" onchanged="switch1_onchanged">
  148. <Tabpages>
  149. <Tabpage text="구 매" position="absolute 0 0 1194 629" id="case1">
  150. <Layouts>
  151. <Layout>
  152. <Grid position="absolute 0 7 1194 629" id="grd_purclist" class="datagrid2" binddataset="ds_main_rsdhdemdinfo_rsdhdemdlist" autoenter="key" cellclickbound="cell" cellsizebandtype="allband" cellsizingtype="col">
  153. <Formats>
  154. <Format id="default">
  155. <Columns>
  156. <Column size="24"/>
  157. <Column size="80"/>
  158. <Column size="80"/>
  159. <Column size="37"/>
  160. <Column size="260"/>
  161. <Column size="110"/>
  162. <Column size="100"/>
  163. <Column size="95"/>
  164. <Column size="55"/>
  165. <Column size="45"/>
  166. <Column size="45"/>
  167. <Column size="35"/>
  168. <Column size="45"/>
  169. <Column size="55"/>
  170. <Column size="100"/>
  171. <Column size="0"/>
  172. <Column size="0"/>
  173. <Column size="0"/>
  174. <Column size="0"/>
  175. <Column size="0"/>
  176. <Column size="0"/>
  177. <Column size="0"/>
  178. <Column size="0"/>
  179. <Column size="0"/>
  180. <Column size="0"/>
  181. <Column size="0"/>
  182. </Columns>
  183. <Rows>
  184. <Row size="27" band="head"/>
  185. <Row size="24"/>
  186. </Rows>
  187. <Band id="head">
  188. <Cell/>
  189. <Cell col="1" text="청구일자"/>
  190. <Cell col="2" text="물품코드"/>
  191. <Cell col="3" text="SIZE"/>
  192. <Cell col="4" text="물품명"/>
  193. <Cell col="5" text="규격"/>
  194. <Cell col="6" text="모델"/>
  195. <Cell col="7" text="제조원"/>
  196. <Cell col="8" text="단위"/>
  197. <Cell col="9" text="청구&#10;수량"/>
  198. <Cell col="10" text="구매&#10;수량"/>
  199. <Cell col="11" displaytype="checkbox" edittype="checkbox"/>
  200. <Cell col="12" text="입고&#10;수량"/>
  201. <Cell col="13" text="재고&#10;반영"/>
  202. <Cell col="14" text="비고"/>
  203. <Cell col="15"/>
  204. <Cell col="16"/>
  205. <Cell col="17"/>
  206. <Cell col="18"/>
  207. <Cell col="19"/>
  208. <Cell col="20"/>
  209. <Cell col="21"/>
  210. <Cell col="22"/>
  211. <Cell col="23"/>
  212. <Cell col="24"/>
  213. <Cell col="25"/>
  214. </Band>
  215. <Band id="body">
  216. <Cell celltype="head" expr="currow + 1"/>
  217. <Cell col="1" displaytype="date" text="bind:reqdd" mask="yyyy-mm-dd" calendardisplaynulltype="none"/>
  218. <Cell col="2" text="bind:goodcd"/>
  219. <Cell col="3" text="bind:allsizespecid"/>
  220. <Cell col="4" style="align:left top;padding:5 2 1 2;" text="bind:goodnm" wordwrap="word"/>
  221. <Cell col="5" style="align:left top;padding:5 2 1 2;" text="bind:goodspec" wordwrap="word"/>
  222. <Cell col="6" style="align:left top;padding:5 2 1 2;" text="bind:goodmodel" wordwrap="word"/>
  223. <Cell col="7" style="align:left top;padding:5 2 1 2;" text="bind:prodcmpynm" wordwrap="word"/>
  224. <Cell col="8" text="bind:prcpunit"/>
  225. <Cell col="9" displaytype="number" text="bind:reqqty"/>
  226. <Cell col="10" displaytype="number" text="bind:deliveqty"/>
  227. <Cell col="11" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:chkflag == 'true' || chkflag == '1' ? '1' : '0'"/>
  228. <Cell col="12" displaytype="number" edittype="text" text="bind:winqty" editautoselect="true"/>
  229. <Cell col="13" displaytype="combo" edittype="none" style="padding:1 2 1 2;" text="bind:opinflag" combodataset="ds_cbo_opinflag" combocodecol="value" combodatacol="label" enable="false"/>
  230. <Cell col="14" displaytype="text" edittype="text" text="bind:cmt"/>
  231. <Cell col="15" text="bind:goodflag"/>
  232. <Cell col="16" text="bind:reqmthd"/>
  233. <Cell col="17" text="bind:reqdeptcd"/>
  234. <Cell col="18" text="bind:deliveno"/>
  235. <Cell col="19" text="bind:deliveseqno"/>
  236. <Cell col="20" text="bind:reqno"/>
  237. <Cell col="21" text="bind:reqseqno"/>
  238. <Cell col="22" text="bind:reqflag"/>
  239. <Cell col="23" text="bind:bfwinqty"/>
  240. <Cell col="24" text="bind:opprocflag"/>
  241. <Cell col="25" text="bind:prcpexchqty"/>
  242. </Band>
  243. </Format>
  244. </Formats>
  245. </Grid>
  246. <Shape position="absolute 0 2 1194 8" linetype="horizontal" id="line4" class="line_10"/>
  247. </Layout>
  248. </Layouts>
  249. </Tabpage>
  250. <Tabpage text="수 탁" position="absolute 0 0 1194 629" id="case2">
  251. <Layouts>
  252. <Layout>
  253. <Grid position="absolute 0 7 1194 629" id="grd_trustlist" class="datagrid2" binddataset="ds_main_rsdhdemdinfo_rsdhdemdlist" cellclickbound="cell" cellsizebandtype="allband" cellsizingtype="col">
  254. <Formats>
  255. <Format id="default">
  256. <Columns>
  257. <Column size="24"/>
  258. <Column size="80"/>
  259. <Column size="80"/>
  260. <Column size="37"/>
  261. <Column size="260"/>
  262. <Column size="110"/>
  263. <Column size="100"/>
  264. <Column size="95"/>
  265. <Column size="55"/>
  266. <Column size="45"/>
  267. <Column size="45"/>
  268. <Column size="35"/>
  269. <Column size="45"/>
  270. <Column size="55"/>
  271. <Column size="100"/>
  272. <Column size="0"/>
  273. <Column size="0"/>
  274. <Column size="0"/>
  275. <Column size="0"/>
  276. <Column size="0"/>
  277. <Column size="0"/>
  278. <Column size="0"/>
  279. <Column size="0"/>
  280. <Column size="0"/>
  281. <Column size="0"/>
  282. </Columns>
  283. <Rows>
  284. <Row size="27" band="head"/>
  285. <Row size="24"/>
  286. </Rows>
  287. <Band id="head">
  288. <Cell/>
  289. <Cell col="1" text="청구일자"/>
  290. <Cell col="2" text="물품코드"/>
  291. <Cell col="3" text="SIZE"/>
  292. <Cell col="4" text="물품명"/>
  293. <Cell col="5" text="규격"/>
  294. <Cell col="6" text="모델"/>
  295. <Cell col="7" text="제조원"/>
  296. <Cell col="8" text="단위"/>
  297. <Cell col="9" text="청구&#10;수량"/>
  298. <Cell col="10" text="구매&#10;수량"/>
  299. <Cell col="11" displaytype="checkbox" edittype="checkbox"/>
  300. <Cell col="12" text="입고&#10;수량"/>
  301. <Cell col="13" text="재고&#10;반영"/>
  302. <Cell col="14" text="비고"/>
  303. <Cell col="15"/>
  304. <Cell col="16"/>
  305. <Cell col="17"/>
  306. <Cell col="18"/>
  307. <Cell col="19"/>
  308. <Cell col="20"/>
  309. <Cell col="21"/>
  310. <Cell col="22"/>
  311. <Cell col="23"/>
  312. <Cell col="24"/>
  313. </Band>
  314. <Band id="body">
  315. <Cell celltype="head" expr="currow + 1"/>
  316. <Cell col="1" displaytype="date" text="bind:reqdd" calendardisplaynulltype="none"/>
  317. <Cell col="2" text="bind:goodcd"/>
  318. <Cell col="3" text="bind:allsizespecid"/>
  319. <Cell col="4" style="align:left top;padding:5 2 1 2;" text="bind:goodnm" wordwrap="word"/>
  320. <Cell col="5" style="align:left top;padding:5 2 1 2;" text="bind:goodspec" wordwrap="word"/>
  321. <Cell col="6" style="align:left top;padding:5 2 1 2;" text="bind:goodmodel" wordwrap="word"/>
  322. <Cell col="7" style="align:left top;padding:5 2 1 2;" text="bind:prodcmpynm" wordwrap="word"/>
  323. <Cell col="8" text="bind:prcpunit"/>
  324. <Cell col="9" displaytype="number" text="bind:reqqty"/>
  325. <Cell col="10" displaytype="number" text="bind:deliveqty"/>
  326. <Cell col="11" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:chkflag == 'true' || chkflag == '1' ? '1' : '0'"/>
  327. <Cell col="12" displaytype="number" edittype="text" text="bind:winqty" editautoselect="true"/>
  328. <Cell col="13" displaytype="combo" edittype="none" text="bind:opinflag" combodataset="ds_cbo_opinflag" combocodecol="value" combodatacol="label" enable="false"/>
  329. <Cell col="14" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:cmt" wordwrap="word"/>
  330. <Cell col="15" text="bind:goodflag"/>
  331. <Cell col="16" text="bind:reqmthd"/>
  332. <Cell col="17" text="bind:reqdeptcd"/>
  333. <Cell col="18" text="bind:deliveno"/>
  334. <Cell col="19" text="bind:deliveseqno"/>
  335. <Cell col="20" text="bind:reqno"/>
  336. <Cell col="21" text="bind:reqseqno"/>
  337. <Cell col="22" text="bind:reqflag"/>
  338. <Cell col="23" text="bind:bfwinqty"/>
  339. <Cell col="24" text="bind:opprocflag"/>
  340. </Band>
  341. </Format>
  342. </Formats>
  343. </Grid>
  344. <Shape position="absolute 0 2 1194 8" linetype="horizontal" id="line1" class="line_10"/>
  345. </Layout>
  346. </Layouts>
  347. </Tabpage>
  348. <Tabpage text="가 납" position="absolute 0 0 1194 629" id="case3">
  349. <Layouts>
  350. <Layout>
  351. <Grid position="absolute 0 7 1194 629" id="grd_depositlist" class="datagrid2" binddataset="ds_main_rsdhdemdinfo_rsdhdemdlist" cellclickbound="cell" cellsizebandtype="allband" cellsizingtype="col">
  352. <Formats>
  353. <Format id="default">
  354. <Columns>
  355. <Column size="24"/>
  356. <Column size="80"/>
  357. <Column size="80"/>
  358. <Column size="37"/>
  359. <Column size="260"/>
  360. <Column size="110"/>
  361. <Column size="100"/>
  362. <Column size="95"/>
  363. <Column size="55"/>
  364. <Column size="45"/>
  365. <Column size="45"/>
  366. <Column size="35"/>
  367. <Column size="45"/>
  368. <Column size="55"/>
  369. <Column size="100"/>
  370. <Column size="0"/>
  371. <Column size="0"/>
  372. <Column size="0"/>
  373. <Column size="0"/>
  374. <Column size="0"/>
  375. <Column size="0"/>
  376. <Column size="0"/>
  377. <Column size="0"/>
  378. <Column size="0"/>
  379. <Column size="0"/>
  380. </Columns>
  381. <Rows>
  382. <Row size="27" band="head"/>
  383. <Row size="24"/>
  384. </Rows>
  385. <Band id="head">
  386. <Cell/>
  387. <Cell col="1" text="청구일자"/>
  388. <Cell col="2" text="물품코드"/>
  389. <Cell col="3" text="SIZE"/>
  390. <Cell col="4" text="물품명"/>
  391. <Cell col="5" text="규격"/>
  392. <Cell col="6" text="모델"/>
  393. <Cell col="7" text="제조원"/>
  394. <Cell col="8" text="단위"/>
  395. <Cell col="9" text="청구&#10;수량"/>
  396. <Cell col="10" text="구매&#10;수량"/>
  397. <Cell col="11" displaytype="checkbox" edittype="checkbox"/>
  398. <Cell col="12" text="입고&#10;수량"/>
  399. <Cell col="13" text="재고&#10;반영"/>
  400. <Cell col="14" text="비고"/>
  401. <Cell col="15"/>
  402. <Cell col="16"/>
  403. <Cell col="17"/>
  404. <Cell col="18"/>
  405. <Cell col="19"/>
  406. <Cell col="20"/>
  407. <Cell col="21"/>
  408. <Cell col="22"/>
  409. <Cell col="23"/>
  410. <Cell col="24"/>
  411. </Band>
  412. <Band id="body">
  413. <Cell celltype="head" expr="currow + 1"/>
  414. <Cell col="1" displaytype="date" text="bind:reqdd" calendardisplaynulltype="none"/>
  415. <Cell col="2" text="bind:goodcd"/>
  416. <Cell col="3" text="bind:allsizespecid"/>
  417. <Cell col="4" style="align:left top;padding:5 2 1 2;" text="bind:goodnm" wordwrap="word"/>
  418. <Cell col="5" style="align:left top;padding:5 2 1 2;" text="bind:goodspec" wordwrap="word"/>
  419. <Cell col="6" style="align:left top;padding:5 2 1 2;" text="bind:goodmodel" wordwrap="word"/>
  420. <Cell col="7" style="align:left top;padding:5 2 1 2;" text="bind:prodcmpynm" wordwrap="word"/>
  421. <Cell col="8" text="bind:prcpunit"/>
  422. <Cell col="9" displaytype="number" text="bind:reqqty"/>
  423. <Cell col="10" displaytype="number" text="bind:deliveqty"/>
  424. <Cell col="11" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:chkflag == 'true' || chkflag == '1' ? '1' : '0'"/>
  425. <Cell col="12" displaytype="number" edittype="text" text="bind:winqty" editautoselect="true"/>
  426. <Cell col="13" displaytype="combo" edittype="none" text="bind:opinflag" combodataset="ds_cbo_opinflag" combocodecol="value" combodatacol="label" enable="false"/>
  427. <Cell col="14" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:cmt" wordwrap="word"/>
  428. <Cell col="15" text="bind:goodflag"/>
  429. <Cell col="16" text="bind:reqmthd"/>
  430. <Cell col="17" text="bind:reqdeptcd"/>
  431. <Cell col="18" text="bind:deliveno"/>
  432. <Cell col="19" text="bind:deliveseqno"/>
  433. <Cell col="20" text="bind:reqno"/>
  434. <Cell col="21" text="bind:reqseqno"/>
  435. <Cell col="22" text="bind:reqflag"/>
  436. <Cell col="23" text="bind:bfwinqty"/>
  437. <Cell col="24" text="bind:opprocflag"/>
  438. </Band>
  439. </Format>
  440. </Formats>
  441. </Grid>
  442. <Shape position="absolute 0 2 1194 8" linetype="horizontal" id="line2" class="line_10"/>
  443. </Layout>
  444. </Layouts>
  445. </Tabpage>
  446. <Tabpage text="신 규" position="absolute 0 0 1194 629" id="case4">
  447. <Layouts>
  448. <Layout>
  449. <Grid position="absolute 0 7 1194 629" id="grd_newlist" class="datagrid2" binddataset="ds_main_rsdhdemdinfo_rsdhdemdlist" cellclickbound="cell" cellsizebandtype="allband" cellsizingtype="col">
  450. <Formats>
  451. <Format id="default">
  452. <Columns>
  453. <Column size="24"/>
  454. <Column size="90"/>
  455. <Column size="90"/>
  456. <Column size="40"/>
  457. <Column size="357"/>
  458. <Column size="135"/>
  459. <Column size="125"/>
  460. <Column size="120"/>
  461. <Column size="70"/>
  462. <Column size="40"/>
  463. <Column size="60"/>
  464. <Column size="0"/>
  465. <Column size="0"/>
  466. <Column size="0"/>
  467. <Column size="0"/>
  468. <Column size="0"/>
  469. <Column size="0"/>
  470. <Column size="0"/>
  471. <Column size="0"/>
  472. <Column size="0"/>
  473. <Column size="0"/>
  474. <Column size="0"/>
  475. <Column size="0"/>
  476. <Column size="0"/>
  477. <Column size="0"/>
  478. </Columns>
  479. <Rows>
  480. <Row size="27" band="head"/>
  481. <Row size="24"/>
  482. </Rows>
  483. <Band id="head">
  484. <Cell/>
  485. <Cell col="1" text="청구일자"/>
  486. <Cell col="2" text="물품코드"/>
  487. <Cell col="3" text="SIZE"/>
  488. <Cell col="4" text="물품명"/>
  489. <Cell col="5" text="규격"/>
  490. <Cell col="6" text="모델"/>
  491. <Cell col="7" text="제조원"/>
  492. <Cell col="8" text="단위"/>
  493. <Cell col="9" displaytype="checkbox" edittype="checkbox"/>
  494. <Cell col="10" text="입고&#10;수량"/>
  495. <Cell col="11"/>
  496. <Cell col="12"/>
  497. <Cell col="13"/>
  498. <Cell col="14"/>
  499. <Cell col="15"/>
  500. <Cell col="16"/>
  501. <Cell col="17"/>
  502. <Cell col="18"/>
  503. <Cell col="19"/>
  504. <Cell col="20"/>
  505. <Cell col="21"/>
  506. <Cell col="22"/>
  507. <Cell col="23"/>
  508. <Cell col="24"/>
  509. </Band>
  510. <Band id="body">
  511. <Cell celltype="head" expr="currow + 1"/>
  512. <Cell col="1" displaytype="date" text="bind:reqdd" calendardisplaynulltype="none"/>
  513. <Cell col="2" text="bind:goodcd"/>
  514. <Cell col="3" text="bind:allsizespecid"/>
  515. <Cell col="4" style="align:left top;padding:5 2 1 2;" text="bind:goodnm" wordwrap="word"/>
  516. <Cell col="5" style="align:left top;padding:5 2 1 2;" text="bind:goodspec" wordwrap="word"/>
  517. <Cell col="6" style="align:left top;padding:5 2 1 2;" text="bind:goodmodel" wordwrap="word"/>
  518. <Cell col="7" style="align:left top;padding:5 2 1 2;" text="bind:prodcmpynm" wordwrap="word"/>
  519. <Cell col="8" text="bind:prcpunit"/>
  520. <Cell col="9" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:chkflag == 'true' || chkflag == '1' ? '1' : '0'"/>
  521. <Cell col="10" displaytype="number" edittype="text" style="background:#ccffccff;background2:#ccffccff;" text="bind:winqty" editautoselect="true"/>
  522. <Cell col="11" displaytype="combo" edittype="combo" text="bind:opinflag" enable="false"/>
  523. <Cell col="12" text="bind:cmt"/>
  524. <Cell col="13" text="bind:reqqty"/>
  525. <Cell col="14" text="bind:deliveqty"/>
  526. <Cell col="15" text="bind:goodflag"/>
  527. <Cell col="16" text="bind:reqmthd"/>
  528. <Cell col="17" text="bind:reqdeptcd"/>
  529. <Cell col="18" text="bind:deliveno"/>
  530. <Cell col="19" text="bind:deliveseqno"/>
  531. <Cell col="20" text="bind:reqno"/>
  532. <Cell col="21" text="bind:reqseqno"/>
  533. <Cell col="22" text="bind:reqflag"/>
  534. <Cell col="23" text="bind:bfwinqty"/>
  535. <Cell col="24" text="bind:opprocflag"/>
  536. </Band>
  537. </Format>
  538. </Formats>
  539. </Grid>
  540. <Shape position="absolute 0 2 1194 8" linetype="horizontal" id="line5" class="line_10"/>
  541. </Layout>
  542. </Layouts>
  543. </Tabpage>
  544. </Tabpages>
  545. </Tab>
  546. <Static id="caption6" text="물품입고관리" class="tit_1" position="absolute 0 0 248 25"/>
  547. <Button position="absolute 1059 95 1123 114" id="btn_cncl" class="btn2" text="입고취소" onclick="btn_cncl_onclick"/>
  548. <Button position="absolute 780 95 822 114" id="btn_cnfm" class="btn2" visible="false" text="확정" onclick="btn_cnfm_onclick"/>
  549. <Button position="absolute 1126 95 1190 114" id="btn_save" class="btn2" text="입고저장" onclick="btn_save_onclick"/>
  550. </Layout>
  551. </Layouts>
  552. <Objects>
  553. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  554. <ColumnInfo>
  555. <Column id="reqfromdd" type="STRING" size="256"/>
  556. <Column id="reqtodd" type="STRING" size="256"/>
  557. <Column id="purcflag" type="STRING" size="256"/>
  558. <Column id="goodcd" type="STRING" size="256"/>
  559. <Column id="goodnm" type="STRING" size="256"/>
  560. <Column id="reqprid" type="STRING" size="256"/>
  561. <Column id="endflag" type="STRING" size="256"/>
  562. <Column id="allsizespecid" type="STRING" size="256"/>
  563. <Column id="deptflag" type="STRING" size="256"/>
  564. <Column id="reqmthd" type="STRING" size="256"/>
  565. <Column id="reqdeptcd" type="STRING" size="256"/>
  566. <Column id="refflag" type="STRING" size="256"/>
  567. </ColumnInfo>
  568. <Rows>
  569. <Row>
  570. <Col id="reqfromdd"/>
  571. <Col id="reqtodd"/>
  572. <Col id="purcflag">1</Col>
  573. <Col id="goodcd"/>
  574. <Col id="goodnm"/>
  575. <Col id="reqprid">0</Col>
  576. <Col id="endflag">N</Col>
  577. <Col id="allsizespecid"/>
  578. <Col id="deptflag">O</Col>
  579. <Col id="reqmthd"/>
  580. <Col id="reqdeptcd"/>
  581. <Col id="refflag"/>
  582. </Row>
  583. </Rows>
  584. </Dataset>
  585. <Dataset id="ds_main_rsdhdemdinfo_rsdhdemdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_rsdhdemdinfo_rsdhdemdlist_oncolumnchanged">
  586. <ColumnInfo>
  587. <Column id="reqdd" type="STRING" size="256"/>
  588. <Column id="goodcd" type="STRING" size="256"/>
  589. <Column id="allsizespecid" type="STRING" size="256"/>
  590. <Column id="goodspec" type="STRING" size="256"/>
  591. <Column id="goodnm" type="STRING" size="256"/>
  592. <Column id="goodmodel" type="STRING" size="256"/>
  593. <Column id="prodcmpynm" type="STRING" size="256"/>
  594. <Column id="prcpunit" type="STRING" size="256"/>
  595. <Column id="reqqty" type="STRING" size="256"/>
  596. <Column id="deliveqty" type="STRING" size="256"/>
  597. <Column id="chkflag" type="STRING" size="256"/>
  598. <Column id="winqty" type="STRING" size="256"/>
  599. <Column id="opinflag" type="STRING" size="256"/>
  600. <Column id="cmt" type="STRING" size="256"/>
  601. <Column id="goodflag" type="STRING" size="256"/>
  602. <Column id="reqmthd" type="STRING" size="256"/>
  603. <Column id="reqdeptcd" type="STRING" size="256"/>
  604. <Column id="deliveno" type="STRING" size="256"/>
  605. <Column id="deliveseqno" type="STRING" size="256"/>
  606. <Column id="reqno" type="STRING" size="256"/>
  607. <Column id="reqseqno" type="STRING" size="256"/>
  608. <Column id="reqflag" type="STRING" size="256"/>
  609. <Column id="bfwinqty" type="STRING" size="256"/>
  610. <Column id="opprocflag" type="STRING" size="256"/>
  611. <Column id="prcpexchqty" type="STRING" size="256"/>
  612. </ColumnInfo>
  613. <Rows>
  614. <Row>
  615. <Col id="reqdd"/>
  616. <Col id="goodcd"/>
  617. <Col id="allsizespecid"/>
  618. <Col id="goodspec"/>
  619. <Col id="goodnm"/>
  620. <Col id="goodmodel"/>
  621. <Col id="prodcmpynm"/>
  622. <Col id="prcpunit"/>
  623. <Col id="reqqty"/>
  624. <Col id="deliveqty"/>
  625. <Col id="chkflag"/>
  626. <Col id="winqty"/>
  627. <Col id="opinflag"/>
  628. <Col id="cmt"/>
  629. <Col id="goodflag"/>
  630. <Col id="reqmthd"/>
  631. <Col id="reqdeptcd"/>
  632. <Col id="deliveno"/>
  633. <Col id="deliveseqno"/>
  634. <Col id="reqno"/>
  635. <Col id="reqseqno"/>
  636. <Col id="reqflag"/>
  637. <Col id="bfwinqty"/>
  638. <Col id="opprocflag"/>
  639. <Col id="prcpexchqty"/>
  640. </Row>
  641. </Rows>
  642. </Dataset>
  643. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  644. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  645. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  646. <Dataset id="ds_temp_refflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  647. <Dataset id="ds_cbo_opinflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  648. <ColumnInfo>
  649. <Column id="label" type="STRING" size="256"/>
  650. <Column id="value" type="STRING" size="256"/>
  651. </ColumnInfo>
  652. <Rows>
  653. <Row>
  654. <Col id="label">반영</Col>
  655. <Col id="value">Y</Col>
  656. </Row>
  657. <Row>
  658. <Col id="label">일부반영</Col>
  659. <Col id="value">S</Col>
  660. </Row>
  661. <Row>
  662. <Col id="label">미반영</Col>
  663. <Col id="value">N</Col>
  664. </Row>
  665. </Rows>
  666. </Dataset>
  667. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  668. <ColumnInfo>
  669. <Column id="refflag" type="STRING" size="256"/>
  670. <Column id="chkcncl" type="STRING" size="256"/>
  671. </ColumnInfo>
  672. <Rows>
  673. <Row>
  674. <Col id="refflag"/>
  675. <Col id="chkcncl"/>
  676. </Row>
  677. </Rows>
  678. </Dataset>
  679. <Dataset id="ds_init_hardcodeinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  680. </Objects>
  681. <Bind>
  682. <BindItem id="item0" compid="group2.ipt_reqfromdd" propid="value" datasetid="ds_main_cond" columnid="reqfromdd"/>
  683. <BindItem id="item1" compid="group2.ipt_reqtodd" propid="value" datasetid="ds_main_cond" columnid="reqtodd"/>
  684. <BindItem id="item2" compid="group2.radio1" propid="value" datasetid="ds_main_cond" columnid="refflag"/>
  685. <BindItem id="item3" compid="group2.radio3" propid="value" datasetid="ds_main_cond" columnid="reqmthd"/>
  686. <BindItem id="item4" compid="group2.radio2" propid="value" datasetid="ds_main_cond" columnid="deptflag"/>
  687. <BindItem id="item5" compid="group2.rdo_endflag" propid="value" datasetid="ds_main_cond" columnid="endflag"/>
  688. <BindItem id="item6" compid="group2.rdo_reqprid" propid="value" datasetid="ds_main_cond" columnid="reqprid"/>
  689. <BindItem id="item7" compid="group2.ipt_goodcd" propid="value" datasetid="ds_main_cond" columnid="goodcd"/>
  690. <BindItem id="item8" compid="group2.ipt_goodnm" propid="value" datasetid="ds_main_cond" columnid="goodnm"/>
  691. </Bind>
  692. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  693. * System Name :
  694. * Job Name :
  695. * Creator :
  696. * Make Date : 2016-10-12
  697. * Description :
  698. *---------------------------------------------------------------------------------------
  699. * Modify Date Modifier Modify Description
  700. *---------------------------------------------------------------------------------------
  701. * 2016-10-12 Live Converter TF->XP
  702. *
  703. *---------------------------------------------------------------------------------------
  704. ****************************************************************************************/
  705. include "com_commonxp::comm_main.xjs";
  706. include "emr_opanstxp::SMMNP04900.xjs";
  707. var arErrorCode = new HashArray();
  708. function SMMNP04900_oninit(obj:Form, e:InitEventInfo)
  709. {
  710. frmf_initForm(obj); //폼 초기화
  711. grdf_initGrid(switch1.case1.grd_purclist);
  712. grdf_initGrid(switch1.case2.grd_trustlist);
  713. grdf_initGrid(switch1.case3.grd_depositlist);
  714. grdf_initGrid(switch1.case4.grd_newlist);
  715. }
  716. function SMMNP04900_onload(obj:Form, e:LoadEventInfo)
  717. {
  718. fInit();
  719. }
  720. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  721. {
  722. fSearch();
  723. }
  724. function ds_main_rsdhdemdinfo_rsdhdemdlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  725. {
  726. // ds_main_rsdhdemdinfo_rsdhdemdlist.updatecontrol = false;
  727. // if( ds_main_rsdhdemdinfo_rsdhdemdlist.getColumn(ds_main_rsdhdemdinfo_rsdhdemdlist.rowposition, "chkflag" == "true") ||
  728. // ds_main_rsdhdemdinfo_rsdhdemdlist.getColumn(ds_main_rsdhdemdinfo_rsdhdemdlist.rowposition, "chkflag" == "1")){
  729. // ds_main_rsdhdemdinfo_rsdhdemdlist.setColumn(ds_main_rsdhdemdinfo_rsdhdemdlist.rowposition, "chkflag", "true");
  730. // }else{
  731. // ds_main_rsdhdemdinfo_rsdhdemdlist.setColumn(ds_main_rsdhdemdinfo_rsdhdemdlist.rowposition, "chkflag", "");
  732. // }
  733. // ds_main_rsdhdemdinfo_rsdhdemdlist.updatecontrol = true;
  734. if( switch1.case1.grd_purclist.currentcol == switch1.case1.grd_purclist.getBindCellIndex("body", "winqty") ||
  735. switch1.case2.grd_trustlist.currentcol == switch1.case1.grd_purclist.getBindCellIndex("body", "winqty") ||
  736. switch1.case3.grd_depositlist.currentcol == switch1.case1.grd_purclist.getBindCellIndex("body", "winqty") ||
  737. switch1.case4.grd_newlist.currentcol == switch1.case1.grd_purclist.getBindCellIndex("body", "winqty")){
  738. ds_main_rsdhdemdinfo_rsdhdemdlist.updatecontrol = false;
  739. if( ds_main_rsdhdemdinfo_rsdhdemdlist.getColumn(ds_main_rsdhdemdinfo_rsdhdemdlist.rowposition, "winqty") > "0" ) {
  740. ds_main_rsdhdemdinfo_rsdhdemdlist.setColumn(ds_main_rsdhdemdinfo_rsdhdemdlist.rowposition, "chkflag", "1");
  741. }
  742. if( ds_main_rsdhdemdinfo_rsdhdemdlist.getColumn(ds_main_rsdhdemdinfo_rsdhdemdlist.rowposition, "winqty") != ds_main_rsdhdemdinfo_rsdhdemdlist.getColumn(ds_main_rsdhdemdinfo_rsdhdemdlist.rowposition, "bfwinqty") ) {
  743. ds_main_rsdhdemdinfo_rsdhdemdlist.setColumn(ds_main_rsdhdemdinfo_rsdhdemdlist.rowposition, "chkflag", "1");//이전수량과 틀릴때 체크
  744. }
  745. if( ds_main_rsdhdemdinfo_rsdhdemdlist.getColumn(ds_main_rsdhdemdinfo_rsdhdemdlist.rowposition, "winqty") == "0" ) {//입고수량이 0일때 미체크
  746. ds_main_rsdhdemdinfo_rsdhdemdlist.setColumn(ds_main_rsdhdemdinfo_rsdhdemdlist.rowposition, "chkflag", "0");
  747. }
  748. ds_main_rsdhdemdinfo_rsdhdemdlist.updatecontrol = true;
  749. }
  750. }
  751. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  752. {
  753. if(switch1.tabindex == 0){
  754. ds_main_rsdhdemdinfo_rsdhdemdlist.clearData();
  755. ds_main_cond.setColumn(0, "purcflag", "1");
  756. btn_cncl.visible = true;
  757. btn_save.visible = true;
  758. }else if(switch1.tabindex == 1){
  759. ds_main_rsdhdemdinfo_rsdhdemdlist.clearData();
  760. ds_main_cond.setColumn(0, "purcflag", "2");
  761. btn_cncl.visible = true;
  762. btn_save.visible = true;
  763. }else if(switch1.tabindex == 2){
  764. ds_main_rsdhdemdinfo_rsdhdemdlist.clearData();
  765. ds_main_cond.setColumn(0, "purcflag", "3");
  766. btn_cncl.visible = true;
  767. btn_save.visible = true;
  768. }else if(switch1.tabindex == 3){
  769. ds_main_rsdhdemdinfo_rsdhdemdlist.clearData();
  770. ds_main_cond.setColumn(0, "purcflag", "N");
  771. btn_cncl.visible = false;
  772. btn_save.visible = true;
  773. }
  774. }
  775. function group2_radio2_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  776. {
  777. ds_send_reqdata.clearData();
  778. dsf_makeValue(ds_send_reqdata, "cdgrupid", "string", "093");//퇴실장소
  779. dsf_makeValue(ds_send_reqdata, "supcdid", "string", "");//서브구분
  780. dsf_makeValue(ds_send_reqdata, "cdid", "string", ds_main_cond.getColumn(0, "deptflag"));//서브구분
  781. var oParam = {};
  782. oParam.id = "TRMNP04903";
  783. oParam.service = "opanstapp.OpAnstRef";
  784. oParam.method = "reqGetOpCommonCd";
  785. oParam.inds = "reqdata=ds_send_reqdata";
  786. oParam.outds = "ds_init_hardcodeinfo=hardcodeinfo";
  787. oParam.async = false;
  788. tranf_submit(oParam);
  789. ds_main_cond.setColumn(0, "reqdeptcd", ds_init_hardcodeinfo.getColumn(0, "cdnm"));
  790. }
  791. function group2_ipt_goodcd_onkeydown(obj:Edit, e:KeyEventInfo)
  792. {
  793. if(e.keycode == 13){
  794. group2_btn_search_onclick();
  795. }
  796. }
  797. function group2_btn_goodsearch_onclick(obj:Button, e:ClickEventInfo)
  798. {
  799. fPopup();
  800. }
  801. function group2_ipt_goodnm_onkeydown(obj:Edit, e:KeyEventInfo)
  802. {
  803. if(e.keycode == 13){
  804. group2_btn_search_onclick();
  805. }
  806. }
  807. function group2_button1_onclick(obj:Button, e:ClickEventInfo)
  808. {
  809. ds_main_cond.setColumn(0, "goodcd", "");
  810. ds_main_cond.setColumn(0, "goodnm", "");
  811. ds_main_cond.setColumn(0, "allsizespecid", "");
  812. }
  813. function group2_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  814. {
  815. if( ds_main_cond.getColumn(0, "purcflag") == "1" ) {//구매
  816. grdf_exportExcel(switch1.case1.grd_purclist, "구매" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  817. }else if( ds_main_cond.getColumn(0, "purcflag") == "2" ) {//수탁
  818. grdf_exportExcel(switch1.case2.grd_trustlist, "수탁" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  819. }else if( ds_main_cond.getColumn(0, "purcflag") == "3" ) {//가납
  820. grdf_exportExcel(switch1.case3.grd_depositlist, "가납" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  821. }else if( ds_main_cond.getColumn(0, "purcflag") == "N" ) {//신규
  822. grdf_exportExcel(switch1.case4.grd_newlist, "신규" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  823. }
  824. }
  825. function btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
  826. {
  827. fSaveCnfm();
  828. }
  829. function btn_cncl_onclick(obj:Button, e:ClickEventInfo)
  830. {
  831. fSaveCncl();
  832. }
  833. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  834. {
  835. fSaveCnfm();
  836. }
  837. ]]></Script>
  838. </Form>
  839. </FDL>