SMMNP04600_누적물품 불출관리.xfdl 81 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNP04600" position="absolute 0 0 1194 758" titletext="방재고의뢰물품 불출의뢰" onload="SMMNP04600_onload" ontimer="SMMNP04600_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1194 25" id="grp_tle">
  8. <Layouts>
  9. <Layout>
  10. <Static text="방재고의뢰물품 불출의뢰" position="absolute 0 0 187 23" id="cap_title" class="tit_1" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 18 1194 758" id="grp_biz" scrollbars="autoboth" anchor="all">
  15. <Layouts>
  16. <Layout>
  17. <Div position="absolute 0 5 1194 65" align="align:center top;" id="grp_sea" class="div_SA" anchor="left top right">
  18. <Layouts>
  19. <Layout width="1194" height="60">
  20. <Static text="조회일자 :" position="absolute 10 33 88 53" id="caption26" class="search_name" anchor="default"/>
  21. <Button position="absolute 1125 21 1181 41" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="grp_biz_grp_sea_btn_search_onclick"/>
  22. <Shape position="absolute 1112 15 1118 50" linetype="vertical" id="line13" class="line_4" anchor="default"/>
  23. <Static text="수 술 방 :" position="absolute 325 9 400 29" id="caption1" class="search_name" anchor="default"/>
  24. <Static text="물품코드 :" position="absolute 580 9 669 29" id="caption3" class="search_name" anchor="default"/>
  25. <Button position="absolute 775 9 791 25" id="btn_goodsear" class="icon_search" text="" anchor="default" onclick="grp_biz_grp_sea_btn_goodsear_onclick"/>
  26. <Edit position="absolute 670 8 770 28" align="align:left middle;" id="ipt_goodcd" class="input_search" anchor="default" onkeyup="grp_biz_grp_sea_ipt_goodcd_onkeyup" autoselect="true"/>
  27. <Combo position="absolute 476 8 554 27" align="align:left middle;" id="cmb_oproomlist" class="combo_search" innerdataset="@ds_init_oproomlist" datacolumn="oproomnm" codecolumn="oproomcd" anchor="default"/>
  28. <Edit position="absolute 796 9 1035 29" id="ipt_goodnm" class="input_search" anchor="default" onkeyup="grp_biz_grp_sea_ipt_goodnm_onkeyup" autoselect="true"/>
  29. <Static text="불출상태 :" position="absolute 580 33 661 53" id="caption4" class="search_name" anchor="default"/>
  30. <Radio position="absolute 670 34 832 54" id="rdo_deliveflagmngt" class="radio_search" columncount="4" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="grp_biz_grp_sea_rdo_deliveflagmngt_onitemchanged">
  31. <Dataset id="innerdataset">
  32. <ColumnInfo>
  33. <Column id="codecolumn"/>
  34. <Column id="datacolumn"/>
  35. </ColumnInfo>
  36. <Rows>
  37. <Row>
  38. <Col id="codecolumn">
  39. </Col>
  40. <Col id="datacolumn">전체</Col>
  41. </Row>
  42. <Row>
  43. <Col id="codecolumn">1</Col>
  44. <Col id="datacolumn">미불출</Col>
  45. </Row>
  46. <Row>
  47. <Col id="codecolumn">2</Col>
  48. <Col id="datacolumn">불출</Col>
  49. </Row>
  50. </Rows>
  51. </Dataset>
  52. </Radio>
  53. <Static text="부서구분 :" position="absolute 10 9 88 29" id="caption2" class="search_name" anchor="default"/>
  54. <Static text="의뢰구분 :" position="absolute 325 33 398 53" id="caption5" class="search_name" anchor="default"/>
  55. <Radio position="absolute 409 32 549 52" id="radio1" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  56. <Dataset id="innerdataset">
  57. <ColumnInfo>
  58. <Column id="codecolumn"/>
  59. <Column id="datacolumn"/>
  60. </ColumnInfo>
  61. <Rows>
  62. <Row>
  63. <Col id="codecolumn">
  64. </Col>
  65. <Col id="datacolumn">전체</Col>
  66. </Row>
  67. <Row>
  68. <Col id="codecolumn">R</Col>
  69. <Col id="datacolumn">정규</Col>
  70. </Row>
  71. <Row>
  72. <Col id="codecolumn">E</Col>
  73. <Col id="datacolumn">응급</Col>
  74. </Row>
  75. </Rows>
  76. </Dataset>
  77. </Radio>
  78. <CheckBox position="absolute 834 34 919 54" id="checkbox1" anchor="default" text="응급 의뢰용" truevalue="Y" falsevalue="N"/>
  79. <Static text="~" position="absolute 195 34 207 52" id="caption6" anchor="default"/>
  80. <Combo position="absolute 408 8 471 27" id="cmb_rosette" class="combo_search" innerdataset="@ds_init_rosettelist" datacolumn="rosettenm" codecolumn="rosettecd" anchor="default" onitemchanged="grp_biz_grp_sea_cmb_rosette_onitemchanged"/>
  81. <Combo position="absolute 95 8 189 28" id="combo1" class="combo_search" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  82. <Dataset id="innerdataset">
  83. <ColumnInfo>
  84. <Column id="codecolumn"/>
  85. <Column id="datacolumn"/>
  86. </ColumnInfo>
  87. <Rows>
  88. <Row>
  89. <Col id="codecolumn">O</Col>
  90. <Col id="datacolumn">수술</Col>
  91. </Row>
  92. <Row>
  93. <Col id="codecolumn">A</Col>
  94. <Col id="datacolumn">마취</Col>
  95. </Row>
  96. <Row>
  97. <Col id="codecolumn">R</Col>
  98. <Col id="datacolumn">회복</Col>
  99. </Row>
  100. <Row>
  101. <Col id="codecolumn">E</Col>
  102. <Col id="datacolumn">안과</Col>
  103. </Row>
  104. </Rows>
  105. </Dataset>
  106. </Combo>
  107. <Button position="absolute 1040 9 1093 29" id="button3" class="btn2" text="초기화" anchor="default" onclick="grp_biz_grp_sea_button3_onclick"/>
  108. <Button position="absolute 996 33 1102 53" id="btn_noprcplist" class="btn5" visible="false" text="방재고 물품조회" anchor="default" onclick="grp_biz_grp_sea_btn_noprcplist_onclick"/>
  109. <Button position="absolute 927 33 991 53" id="btn_goodsearch" class="btn5" visible="false" text="물품조회" anchor="default" onclick="grp_biz_grp_sea_btn_goodsearch_onclick"/>
  110. <Calendar id="ipt_fromdd" taborder="2" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" class="input_s_essential" position="absolute 95 33 190 53" mask="yyyy-mm-dd" anchor="default"/>
  111. <Calendar id="input1" taborder="3" autoselect="true" dateformat="yyyy-MM-dd" class="input_s_essential" position="absolute 210 33 305 53" mask="yyyy-mm-dd" anchor="default"/>
  112. </Layout>
  113. </Layouts>
  114. </Div>
  115. <Shape position="absolute 0 91 1194 97" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
  116. <Grid position="absolute 0 96 1194 740" id="grd_acmlgooddelivelist" class="datagrid2" binddataset="ds_main_acmlgooddelivelist" anchor="all" ontextchanged="grp_biz_grd_acmlgooddelivelist_ontextchanged" selecttype="multirow" selectbandtype="default" cellclickbound="control" autoenter="select" onenterdown="grp_biz_grd_acmlgooddelivelist_onenterdown" cellsizingtype="both" extendsizetype="row" autosizingtype="none" onheadclick="grp_biz_grd_acmlgooddelivelist_onheadclick" onselectchanged="grp_biz_grd_acmlgooddelivelist_onselectchanged" onkillfocus="grp_biz_grd_acmlgooddelivelist_onkillfocus" cellsizebandtype="allband">
  117. <Formats>
  118. <Format id="default">
  119. <Columns>
  120. <Column size="25" band="left"/>
  121. <Column size="45"/>
  122. <Column size="38"/>
  123. <Column size="38"/>
  124. <Column size="38"/>
  125. <Column size="38"/>
  126. <Column size="70"/>
  127. <Column size="38"/>
  128. <Column size="125"/>
  129. <Column size="85"/>
  130. <Column size="85"/>
  131. <Column size="80"/>
  132. <Column size="55"/>
  133. <Column size="38"/>
  134. <Column size="38"/>
  135. <Column size="38"/>
  136. <Column size="38"/>
  137. <Column size="38"/>
  138. <Column size="38"/>
  139. <Column size="38"/>
  140. <Column size="35"/>
  141. <Column size="38"/>
  142. <Column size="38"/>
  143. <Column size="38"/>
  144. <Column size="70"/>
  145. <Column size="50"/>
  146. <Column size="70"/>
  147. <Column size="50"/>
  148. <Column size="150"/>
  149. <Column size="0"/>
  150. <Column size="0"/>
  151. <Column size="0"/>
  152. <Column size="0"/>
  153. <Column size="0"/>
  154. <Column size="0"/>
  155. <Column size="0"/>
  156. </Columns>
  157. <Rows>
  158. <Row size="33" band="head"/>
  159. <Row size="24"/>
  160. </Rows>
  161. <Band id="head">
  162. <Cell/>
  163. <Cell col="1" text="의뢰&#10;물품"/>
  164. <Cell col="2" text="의뢰&#10;구분"/>
  165. <Cell col="3" text="부서&#10;구분"/>
  166. <Cell col="4" text="구매&#10;구분"/>
  167. <Cell col="5" text="수술&#10;방"/>
  168. <Cell col="6" text="물품코드"/>
  169. <Cell col="7" text="SUB"/>
  170. <Cell col="8" text="물품명"/>
  171. <Cell col="9" text="규격"/>
  172. <Cell col="10" text="모델"/>
  173. <Cell col="11" text="제조원"/>
  174. <Cell col="12" text="처방&#10;단위"/>
  175. <Cell col="13" text="처방&#10;수량"/>
  176. <Cell col="14" text="기준&#10;수량"/>
  177. <Cell col="15" text="안전&#10;재고"/>
  178. <Cell col="16" text="방&#10;재고"/>
  179. <Cell col="17" colspan="2" text="의뢰수량" taborder="undefined"/>
  180. <Cell col="19" text="의뢰&#10;단위"/>
  181. <Cell col="20" displaytype="checkbox" edittype="checkbox"/>
  182. <Cell col="21" text="불출&#10;여부"/>
  183. <Cell col="22" text="불출&#10;수량"/>
  184. <Cell col="23" text="미불출&#10;수량"/>
  185. <Cell col="24" text="의뢰일자"/>
  186. <Cell col="25" text="의뢰자"/>
  187. <Cell col="26" text="확정일자"/>
  188. <Cell col="27" text="확정자"/>
  189. <Cell col="28" text="미불출사유"/>
  190. <Cell col="29" text="상태값"/>
  191. <Cell col="30" text="수술방코드"/>
  192. <Cell col="31" text="의뢰일자"/>
  193. <Cell col="32" text="의뢰순번"/>
  194. <Cell col="33" text="이전수량"/>
  195. <Cell col="34" text="의뢰물품구분코드"/>
  196. <Cell col="35" text="이전의뢰수량"/>
  197. </Band>
  198. <Band id="body">
  199. <Cell celltype="head" text="EXPR(currow + 1)"/>
  200. <Cell col="1" text="bind:reqgoodnm"/>
  201. <Cell col="2" text="bind:reqflagnm"/>
  202. <Cell col="3" text="bind:deptflag"/>
  203. <Cell col="4" text="bind:purcflag"/>
  204. <Cell col="5" style="align:left top;padding:4 2 2 2;" text="bind:oproomnm" wordwrap="char"/>
  205. <Cell col="6" text="bind:goodcd"/>
  206. <Cell col="7" text="bind:allsizespecid"/>
  207. <Cell col="8" style="align:left top;padding:4 2 2 2;" text="bind:goodnm" wordwrap="char"/>
  208. <Cell col="9" style="align:left top;padding:4 2 2 2;" text="bind:goodspec" wordwrap="char"/>
  209. <Cell col="10" style="align:left top;padding:4 2 2 2;" text="bind:goodmodel" wordwrap="char"/>
  210. <Cell col="11" style="align:left top;padding:4 2 2 2;" text="bind:prodcmpynm" wordwrap="char"/>
  211. <Cell col="12" text="bind:prcpunit"/>
  212. <Cell col="13" style="align:right;" text="bind:prcpqty"/>
  213. <Cell col="14" style="align:right;" text="bind:acmlbaseqty"/>
  214. <Cell col="15" style="align:right;" text="bind:safestocqty"/>
  215. <Cell col="16" style="align:right;" text="bind:stocqty"/>
  216. <Cell col="17" style="align:right;" text="bind:reqexchqty"/>
  217. <Cell col="18" celltype="body" displaytype="normal" edittype="text" style="align:right;background:#ccffccff;background2:#ccffccff;" text="bind:reqqty" editautoselect="true" editautoskip="false" editacceptsenter="true" editacceptstab="false" editacceptsdirectionkey="false"/>
  218. <Cell col="19" text="bind:requnit"/>
  219. <Cell col="20" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:(chkflag == &quot;Y&quot; || chkflag == 1 || chkflag == &quot;true&quot;) ? 1 : 0"/>
  220. <Cell col="21" text="bind:deliveyn"/>
  221. <Cell col="22" displaytype="text" edittype="text" style="align:right;" text="bind:deliveqty"/>
  222. <Cell col="23" displaytype="text" edittype="text" style="align:right;" text="bind:undeliveqty"/>
  223. <Cell col="24" text="bind:reqdd"/>
  224. <Cell col="25" text="bind:reqid"/>
  225. <Cell col="26" text="bind:delivedd"/>
  226. <Cell col="27" text="bind:deliveid"/>
  227. <Cell col="28" displaytype="text" edittype="text" text="bind:undeliveresn"/>
  228. <Cell col="29" text="bind:stat"/>
  229. <Cell col="30" text="bind:oproomcd"/>
  230. <Cell col="31" text="bind:delivereqdd"/>
  231. <Cell col="32" text="bind:reqno"/>
  232. <Cell col="33" text="bind:olddeliveqty"/>
  233. <Cell col="34" text="bind:reqgoodflag"/>
  234. <Cell col="35" text="bind:bfreqqty"/>
  235. </Band>
  236. </Format>
  237. </Formats>
  238. </Grid>
  239. <Static text="마감일시" position="absolute 0 69 65 91" align="align:center middle;" id="caption7" anchor="default" style="background:#ccecffff;color:black;align:center middle;font:Dotum,9,bold;"/>
  240. <MaskEdit readonly="true" position="absolute 68 70 178 90" align="align:center middle;" id="output1" mask="####-##-## ##:##" anchor="default" type="string" trimtype="both" class="output" maskchar=" " displaynulltext=" "/>
  241. <Static text="불출예정일자" position="absolute 187 69 277 91" align="align:center middle;" id="caption8" anchor="default" style="background:#ccecffff;color:black;align:center middle;font:Dotum,9,bold;"/>
  242. <MaskEdit readonly="true" position="absolute 280 70 365 90" align="align:center middle;" id="output2" mask="####-##-##" anchor="default" type="string" trimtype="both" class="output" maskchar=" " displaynulltext=" "/>
  243. <Edit readonly="true" position="absolute 370 70 755 90" align="align:left middle;" id="output3" anchor="default" class="output"/>
  244. <Button position="absolute 1130 71 1194 91" id="btn_reqsave" class="btn5" text="의뢰저장" anchor="top right" onclick="grp_biz_btn_reqsave_onclick"/>
  245. <Button position="absolute 1130 71 1194 91" id="btn_delivecnfm" class="btn5" visible="false" text="불출확정" anchor="top right" onclick="grp_biz_btn_delivecnfm_onclick"/>
  246. <Button position="absolute 1000 71 1060 91" id="btn_saveexcel" class="btn7" text="Excel" anchor="top right" onclick="grp_biz_btn_saveexcel_onclick"/>
  247. <Button position="absolute 875 71 943 91" id="button1" class="btn5" text="응급의뢰" anchor="top right" onclick="grp_biz_button1_onclick" style="color:#ff0000ff;font:Dotum,9,bold;"/>
  248. <Button position="absolute 946 71 997 91" id="button2" class="btn6" text="출력" anchor="top right" onclick="grp_biz_button2_onclick"/>
  249. <Button position="absolute 1063 71 1127 91" id="btn_tempsave" class="btn5" text="임시저장" anchor="top right" onclick="grp_biz_btn_tempsave_onclick"/>
  250. <Button position="absolute 879 71 943 91" id="btn_emplevel" class="btn5" visible="false" text="권한관리" anchor="top right" onclick="grp_biz_btn_emplevel_onclick" style="font:Dotum,9;"/>
  251. </Layout>
  252. </Layouts>
  253. </Div>
  254. </Layout>
  255. </Layouts>
  256. <Objects>
  257. <Dataset id="ds_init_cmb_oproomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  258. <ColumnInfo>
  259. <Column id="oproomnm" type="STRING"/>
  260. <Column id="oproomcd" type="STRING"/>
  261. </ColumnInfo>
  262. </Dataset>
  263. <Dataset id="ds_init_cmb_rosette" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  264. <ColumnInfo>
  265. <Column id="rosettenm" type="STRING"/>
  266. <Column id="rosettecd" type="STRING"/>
  267. </ColumnInfo>
  268. </Dataset>
  269. <Dataset id="ds_grd_acmlgooddelivelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  270. <ColumnInfo>
  271. <Column id="reqgoodnm" type="STRING"/>
  272. <Column id="reqflagnm" type="STRING"/>
  273. <Column id="deptflag" type="STRING"/>
  274. <Column id="purcflag" type="STRING"/>
  275. <Column id="oproomnm" type="STRING"/>
  276. <Column id="goodcd" type="STRING"/>
  277. <Column id="allsizespecid" type="STRING"/>
  278. <Column id="goodnm" type="STRING"/>
  279. <Column id="goodspec" type="STRING"/>
  280. <Column id="goodmodel" type="STRING"/>
  281. <Column id="prodcmpynm" type="STRING"/>
  282. <Column id="prcpunit" type="STRING"/>
  283. <Column id="prcpqty" type="STRING"/>
  284. <Column id="acmlbaseqty" type="STRING"/>
  285. <Column id="safestocqty" type="STRING"/>
  286. <Column id="stocqty" type="STRING"/>
  287. <Column id="reqexchqty" type="STRING"/>
  288. <Column id="reqqty" type="STRING"/>
  289. <Column id="requnit" type="STRING"/>
  290. <Column id="chkflag" type="STRING"/>
  291. <Column id="deliveyn" type="STRING"/>
  292. <Column id="deliveqty" type="STRING"/>
  293. <Column id="undeliveqty" type="STRING"/>
  294. <Column id="reqdd" type="STRING"/>
  295. <Column id="reqid" type="STRING"/>
  296. <Column id="delivedd" type="STRING"/>
  297. <Column id="deliveid" type="STRING"/>
  298. <Column id="undeliveresn" type="STRING"/>
  299. <Column id="stat" type="STRING"/>
  300. <Column id="oproomcd" type="STRING"/>
  301. <Column id="delivereqdd" type="STRING"/>
  302. <Column id="reqno" type="STRING"/>
  303. <Column id="olddeliveqty" type="STRING"/>
  304. <Column id="reqgoodflag" type="STRING"/>
  305. <Column id="bfreqqty" type="STRING"/>
  306. </ColumnInfo>
  307. </Dataset>
  308. <Dataset id="ds_init_oproomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  309. <ColumnInfo>
  310. <Column id="oproomcd" type="STRING" size="256"/>
  311. <Column id="oproomnm" type="STRING" size="256"/>
  312. </ColumnInfo>
  313. <Rows>
  314. <Row>
  315. <Col id="oproomcd"/>
  316. <Col id="oproomnm"/>
  317. </Row>
  318. </Rows>
  319. </Dataset>
  320. <Dataset id="ds_init_rosettelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  321. <ColumnInfo>
  322. <Column id="rosettenm" type="STRING" size="256"/>
  323. <Column id="rosettecd" type="STRING" size="256"/>
  324. </ColumnInfo>
  325. <Rows>
  326. <Row>
  327. <Col id="rosettenm"/>
  328. <Col id="rosettecd"/>
  329. </Row>
  330. </Rows>
  331. </Dataset>
  332. <Dataset id="ds_init_deliveinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  333. <ColumnInfo>
  334. <Column id="basedayflag" type="STRING" size="256"/>
  335. <Column id="basedtflag" type="STRING" size="256"/>
  336. <Column id="message" type="STRING" size="256"/>
  337. <Column id="basedelive" type="STRING" size="256"/>
  338. </ColumnInfo>
  339. <Rows>
  340. <Row>
  341. <Col id="basedayflag"/>
  342. <Col id="basedtflag"/>
  343. <Col id="message"/>
  344. <Col id="basedelive"/>
  345. </Row>
  346. </Rows>
  347. </Dataset>
  348. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  349. <ColumnInfo>
  350. <Column id="refdd" type="STRING" size="256"/>
  351. <Column id="oproomcd" type="STRING" size="256"/>
  352. <Column id="deliveflag" type="STRING" size="256"/>
  353. <Column id="goodcd" type="STRING" size="256"/>
  354. <Column id="allsizespecid" type="STRING" size="256"/>
  355. <Column id="goodnm" type="STRING" size="256"/>
  356. <Column id="deptflag" type="STRING" size="256"/>
  357. <Column id="reqflag" type="STRING" size="256"/>
  358. <Column id="fromdd" type="STRING" size="256"/>
  359. <Column id="todd" type="STRING" size="256"/>
  360. <Column id="referflag" type="STRING" size="256"/>
  361. <Column id="oprosette" type="STRING" size="256"/>
  362. </ColumnInfo>
  363. <Rows>
  364. <Row>
  365. <Col id="refdd"/>
  366. <Col id="oproomcd"/>
  367. <Col id="deliveflag"/>
  368. <Col id="goodcd"/>
  369. <Col id="allsizespecid"/>
  370. <Col id="goodnm"/>
  371. <Col id="deptflag">O</Col>
  372. <Col id="reqflag"/>
  373. <Col id="fromdd"/>
  374. <Col id="todd"/>
  375. <Col id="referflag"/>
  376. <Col id="oprosette"/>
  377. </Row>
  378. </Rows>
  379. </Dataset>
  380. <Dataset id="ds_main_acmlgooddelivelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_acmlgooddelivelist_oncolumnchanged">
  381. <ColumnInfo>
  382. <Column id="reqgoodnm" type="STRING" size="256"/>
  383. <Column id="reqflagnm" type="STRING" size="256"/>
  384. <Column id="deptflag" type="STRING" size="256"/>
  385. <Column id="purcflag" type="STRING" size="256"/>
  386. <Column id="oproomnm" type="STRING" size="256"/>
  387. <Column id="goodcd" type="STRING" size="256"/>
  388. <Column id="allsizespecid" type="STRING" size="256"/>
  389. <Column id="goodnm" type="STRING" size="256"/>
  390. <Column id="goodspec" type="STRING" size="256"/>
  391. <Column id="goodmodel" type="STRING" size="256"/>
  392. <Column id="prodcmpynm" type="STRING" size="256"/>
  393. <Column id="prcpunit" type="STRING" size="256"/>
  394. <Column id="prcpqty" type="STRING" size="256"/>
  395. <Column id="acmlbaseqty" type="STRING" size="256"/>
  396. <Column id="exchqty" type="STRING" size="256"/>
  397. <Column id="safestocqty" type="STRING" size="256"/>
  398. <Column id="stocqty" type="STRING" size="256"/>
  399. <Column id="reqexchqty" type="STRING" size="256"/>
  400. <Column id="reqqty" type="STRING" size="256"/>
  401. <Column id="requnit" type="STRING" size="256"/>
  402. <Column id="chkflag" type="STRING" size="256"/>
  403. <Column id="deliveyn" type="STRING" size="256"/>
  404. <Column id="deliveqty" type="STRING" size="256"/>
  405. <Column id="undeliveqty" type="STRING" size="256"/>
  406. <Column id="reqdd" type="STRING" size="256"/>
  407. <Column id="reqid" type="STRING" size="256"/>
  408. <Column id="delivedd" type="STRING" size="256"/>
  409. <Column id="deliveid" type="STRING" size="256"/>
  410. <Column id="undeliveresn" type="STRING" size="256"/>
  411. <Column id="stat" type="STRING" size="256"/>
  412. <Column id="oproomcd" type="STRING" size="256"/>
  413. <Column id="delivereqdd" type="STRING" size="256"/>
  414. <Column id="reqno" type="STRING" size="256"/>
  415. <Column id="olddeliveqty" type="STRING" size="256"/>
  416. <Column id="reqgoodflag" type="STRING" size="256"/>
  417. <Column id="bfreqqty" type="STRING" size="256"/>
  418. </ColumnInfo>
  419. <Rows>
  420. <Row>
  421. <Col id="reqgoodnm"/>
  422. <Col id="reqflagnm"/>
  423. <Col id="deptflag"/>
  424. <Col id="purcflag"/>
  425. <Col id="oproomnm"/>
  426. <Col id="goodcd"/>
  427. <Col id="allsizespecid"/>
  428. <Col id="goodnm"/>
  429. <Col id="goodspec"/>
  430. <Col id="goodmodel"/>
  431. <Col id="prodcmpynm"/>
  432. <Col id="prcpunit"/>
  433. <Col id="prcpqty"/>
  434. <Col id="acmlbaseqty"/>
  435. <Col id="exchqty"/>
  436. <Col id="safestocqty"/>
  437. <Col id="stocqty"/>
  438. <Col id="reqexchqty"/>
  439. <Col id="reqqty"/>
  440. <Col id="requnit"/>
  441. <Col id="chkflag"/>
  442. <Col id="deliveyn"/>
  443. <Col id="deliveqty"/>
  444. <Col id="undeliveqty"/>
  445. <Col id="reqdd"/>
  446. <Col id="reqid"/>
  447. <Col id="delivedd"/>
  448. <Col id="deliveid"/>
  449. <Col id="undeliveresn"/>
  450. <Col id="stat"/>
  451. <Col id="oproomcd"/>
  452. <Col id="delivereqdd"/>
  453. <Col id="reqno"/>
  454. <Col id="olddeliveqty"/>
  455. <Col id="reqgoodflag"/>
  456. <Col id="bfreqqty"/>
  457. </Row>
  458. </Rows>
  459. </Dataset>
  460. <Dataset id="ds_main_deliveinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  461. <ColumnInfo>
  462. <Column id="reqenddt" type="STRING" size="256"/>
  463. <Column id="delivecnfmdd" type="STRING" size="256"/>
  464. <Column id="delivemessage" type="STRING" size="256"/>
  465. </ColumnInfo>
  466. <Rows>
  467. <Row>
  468. <Col id="reqenddt"/>
  469. <Col id="delivecnfmdd"/>
  470. <Col id="delivemessage"/>
  471. </Row>
  472. </Rows>
  473. </Dataset>
  474. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  475. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  476. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  477. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  478. <ColumnInfo>
  479. <Column id="refflag" type="STRING" size="256"/>
  480. <Column id="kk" type="STRING" size="256"/>
  481. </ColumnInfo>
  482. </Dataset>
  483. <Dataset id="ds_temp_logginlevel" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  484. <ColumnInfo>
  485. <Column id="usrlevel" type="STRING" size="256"/>
  486. </ColumnInfo>
  487. </Dataset>
  488. <Dataset id="ds_main_opPatlist_opPatInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  489. </Objects>
  490. <Bind>
  491. <BindItem id="item6" compid="grp_biz.grp_sea.input1" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  492. <BindItem id="item5" compid="grp_biz.grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  493. <BindItem id="item0" compid="grp_biz.grp_sea.combo1" propid="value" datasetid="ds_main_cond" columnid="deptflag"/>
  494. <BindItem id="item1" compid="grp_biz.grp_sea.cmb_rosette" propid="value" datasetid="ds_main_cond" columnid="oprosette"/>
  495. <BindItem id="item2" compid="grp_biz.grp_sea.cmb_oproomlist" propid="value" datasetid="ds_main_cond" columnid="oproomcd"/>
  496. <BindItem id="item3" compid="grp_biz.grp_sea.ipt_goodcd" propid="value" datasetid="ds_main_cond" columnid="goodcd"/>
  497. <BindItem id="item4" compid="grp_biz.grp_sea.ipt_goodnm" propid="value" datasetid="ds_main_cond" columnid="goodnm"/>
  498. <BindItem id="item7" compid="grp_biz.grp_sea.radio1" propid="value" datasetid="ds_main_cond" columnid="reqflag"/>
  499. <BindItem id="item8" compid="grp_biz.grp_sea.rdo_deliveflagmngt" propid="value" datasetid="ds_main_cond" columnid="deliveflag"/>
  500. <BindItem id="item9" compid="grp_biz.grp_sea.checkbox1" propid="value" datasetid="ds_main_cond" columnid="referflag"/>
  501. <BindItem id="item10" compid="grp_biz.output1" propid="value" datasetid="ds_main_deliveinfo" columnid="reqenddt"/>
  502. <BindItem id="item11" compid="grp_biz.output2" propid="value" datasetid="ds_main_deliveinfo" columnid="delivecnfmdd"/>
  503. <BindItem id="item12" compid="grp_biz.output3" propid="value" datasetid="ds_main_deliveinfo" columnid="delivemessage"/>
  504. </Bind>
  505. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  506. * System Name :
  507. * Job Name :
  508. * Creator :
  509. * Make Date : 2015-11-13
  510. * Description :
  511. *---------------------------------------------------------------------------------------
  512. * Modify Date Modifier Modify Description
  513. *---------------------------------------------------------------------------------------
  514. * 2015-11-13 Live Converter TF->XP
  515. *
  516. *---------------------------------------------------------------------------------------
  517. ****************************************************************************************/
  518. include "com_commonxp::comm_main.xjs";
  519. //include "emr_opanstxp::SMMNP04600.xjs";
  520. include "emr_carecomxp::CareCom.xjs";
  521. var arErrorCode = new HashArray();
  522. /* ---------------------------------------------------------------------
  523. 누적물품 의뢰_확정 관리(SMMNP04600.xfm - JScript )
  524. - Version :
  525. 1) : Ver.1.00.01
  526. : Create By 김진명
  527. : 2007.08.11
  528. ---------------------------------------------------------------------- */
  529. /* --------------------------------------------------------*/
  530. /* model.getValue(); 를 함수로 만들었습니다. */
  531. /* param1 : node는 grid의 xPath입니다. */
  532. /* param2 : row는 grid에서 선택한 row값입니다. */
  533. /* param3 : element는 getvalue할 해당 element 명입니다. */
  534. /* */
  535. /* 해당 getvalue값을 return 해줍니다. */
  536. /* return 하지 않으면 해당값을 가져올 수 없습니다. */
  537. /* --------------------------------------------------------*/
  538. function fGetDateAdd(day) {
  539. var curtDate = utlf_getCurrentDate();
  540. curtDate = curtDate.substr(0, 8);
  541. var curtYY = parseInt(curtDate.substr(0, 4), 10);
  542. var curtMM = parseInt(curtDate.substr(4, 2), 10);
  543. var curtDD = parseInt(curtDate.substr(6, 2), 10);
  544. var cntDay = fGetCntDate(curtYY, curtMM);//구하려는 달의 일자수를 가져온다.
  545. if( (curtDD - day) > 0 ) {
  546. curtDD = curtDD - day;
  547. }else {
  548. if( curtMM == 1 ) {
  549. curtYY = curtYY - 1;
  550. curtMM = 12;
  551. curtDD = cntDay + curtDD - day;
  552. }else {
  553. curtMM = curtMM - 1;
  554. curtDD = cntDay + curtDD - day;
  555. }
  556. }
  557. curtYY = curtYY + "";
  558. curtMM = curtMM + "";
  559. curtDD = curtDD + "";
  560. var bfDay = curtYY + curtMM.getLeftPad(2, '0') + curtDD.getLeftPad(2, '0');
  561. return bfDay;
  562. }
  563. /* --------------------------------------------------*/
  564. /* type : function */
  565. /* access : public */
  566. /* desc : 구하려는 달의 총일수 */
  567. /* param : 구하려는 달 */
  568. /* return : 달의 일수 */
  569. /* --------------------------------------------------*/
  570. function fGetCntDate(year, month) {
  571. var cntday = 0;
  572. switch(month) {
  573. case 1:
  574. cntday = 31;
  575. break;
  576. case 2:
  577. if( ( (Number(year) % 4 == 0) && (Number(year) % 100 != 0) ) || (Number(year) % 400 == 0) ) {
  578. cntday = 29;
  579. }else {
  580. cntday = 28;
  581. }
  582. break;
  583. case 3:
  584. cntday = 31;
  585. break;
  586. case 4:
  587. cntday = 30;
  588. break;
  589. case 5:
  590. cntday = 31;
  591. break;
  592. case 6:
  593. cntday = 30;
  594. break;
  595. case 7:
  596. cntday = 31;
  597. break;
  598. case 8:
  599. cntday = 31;
  600. break;
  601. case 9:
  602. cntday = 30;
  603. break;
  604. case 10:
  605. cntday = 31;
  606. break;
  607. case 11:
  608. cntday = 30;
  609. break;
  610. case 12:
  611. cntday = 31;
  612. break;
  613. }
  614. return cntday;
  615. }
  616. /* --------------------------------------------------*/
  617. /* type : function */
  618. /* access : public */
  619. /* desc : 누적물품 의뢰_불출관리 초기화 */
  620. /* param : */
  621. /* return : */
  622. /* --------------------------------------------------*/
  623. function fInit() {
  624. var reqenddd, deliveday, fromdd, todd;
  625. ds_main_acmlgooddelivelist.clearData();
  626. ds_main_cond.setColumn( 0, "refdd", utlf_getCurrentDate().substr(0, 8));
  627. //submit("TRMNP04604");
  628. var oParam = {};
  629. oParam.id = "TRMNP04604";
  630. oParam.service = "opanstapp.OpAnstStocMngt";
  631. oParam.method = "reqGetEmpLevel";
  632. oParam.inds = "";
  633. oParam.outds = "ds_temp_logginlevel=logginlevel";
  634. oParam.async = false;
  635. tranf_submit(oParam);
  636. var level = ds_temp_logginlevel.getColumn(0, "usrlevel");
  637. if( ( level == "0" ) ) {//관리자가 아니면 권한관리 버튼 숨김
  638. grp_biz.grp_sea.btn_noprcplist.visible = true;//비처방 물품조회
  639. grp_biz.grp_sea.btn_goodsearch.visible = true;//물품조회
  640. grp_biz.btn_emplevel.visible = false;//권한관리 버튼
  641. grp_biz.btn_delivecnfm.visible = false;//불출확정 버튼
  642. grp_biz.btn_reqsave.visible = true;//의뢰저장 버튼
  643. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 18, "edittype", "text"); //colDisabled(18) = false;//의뢰량
  644. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 22, "edittype", "none"); //.colDisabled(22) = true;//불출수량
  645. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 23, "edittype", "none"); //.colDisabled(23) = true;//미불출수량
  646. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 28, "edittype", "none"); //.colDisabled(28) = true;//미불출사유
  647. grp_biz.btn_tempsave.disabled = false;
  648. this.titletext = "방재고의뢰물품 불출의뢰";
  649. grp_tle.cap_title.text = "방재고의뢰물품 불출의뢰";
  650. }else {
  651. grp_biz.grp_sea.btn_noprcplist.visible = false;//비처방 물품조회
  652. grp_biz.grp_sea.btn_goodsearch.visible = false;//물품조회
  653. grp_biz.btn_emplevel.visible = true;
  654. grp_biz.btn_delivecnfm.visible = true;
  655. grp_biz.btn_reqsave.visible = false;
  656. grp_biz.btn_tempsave.disabled = true;
  657. ds_main_cond.setColumn( 0, "deliveflag", "1");//관리자 미불출자동셋팅
  658. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 18, "edittype", "none"); //.colDisabled(18) = true;//의뢰량
  659. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 22, "edittype", "text"); //.colDisabled(22) = false;//불출수량
  660. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 23, "edittype", "text"); //.colDisabled(23) = false;//미불출수량
  661. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 28, "edittype", "text"); //.colDisabled(28) = false;//미불출사유
  662. this.titletext = "방재고의뢰물품 불출확정";
  663. grp_tle.cap_title.text = "방재고의뢰물품 불출확정";
  664. }
  665. ds_send_reqdata.clearData();
  666. ds_send_reqdata.copyData(ds_main_cond);
  667. //submit("TRMNP04605", false);//마감정보 조회
  668. var oParam = {};
  669. oParam.id = "TRMNP04601";
  670. oParam.service = "opanstapp.OpAnstStocMngt";
  671. oParam.method = "reqGetDeliveInfo";
  672. oParam.inds = "reqdata=ds_send_reqdata";
  673. oParam.outds = "ds_init_deliveinfo=deliveinfo";
  674. oParam.async = false;
  675. tranf_submit(oParam);
  676. var basedayflag = ds_init_deliveinfo.getColumn(0, "basedayflag");
  677. var basedtflag = ds_init_deliveinfo.getColumn(0, "basedtflag");
  678. var message = ds_init_deliveinfo.getColumn(0, "message");
  679. var basedelive = ds_init_deliveinfo.getColumn(0, "basedelive");
  680. if( basedelive == "2" ) {//월불출
  681. var maxday = new Date(utlf_getCurrentDate().substr(0,4), utlf_getCurrentDate().substr(4,2),0);
  682. var maxflag = maxday.getDay();
  683. var maxdate = maxday.getDateFormat();
  684. if( parseInt(maxflag) > parseInt(basedayflag) ) {//월말 요일이 기준요일보다 클경우
  685. reqenddd = getDateAddc(maxdate, (parseInt(basedayflag)-parseInt(maxflag)));
  686. }else if( parseInt(maxflag) == parseInt(basedayflag)) {//같은 요일일때
  687. reqenddd = maxdate;
  688. }else if( parseInt(maxflag) < parseInt(basedayflag)) {// 기준요일이 클때
  689. reqenddd = getDateAddc(maxdate, -7+(parseInt(basedayflag)-parseInt(maxflag)));
  690. }
  691. if( parseInt(basedayflag)+1 == 6 ) {//불출요일이 토요일이면
  692. deliveday = getDateAddc(reqenddd, 2);
  693. }else {
  694. deliveday = getDateAddc(reqenddd, 1);
  695. }
  696. }else if( basedelive == "1" ) {//주불출
  697. var flag = "N";
  698. var todayflag = utlf_getCurrentWeek(flag);
  699. if( parseInt(todayflag) > parseInt(basedayflag) ) { //마감요일보다 클때 차주
  700. reqenddd = getDateAddc(utlf_getCurrentDate(), 7+(parseInt(basedayflag)-parseInt(todayflag)));
  701. }else if( parseInt(todayflag) < parseInt(basedayflag) ) {//마감요일이 클때
  702. reqenddd = getDateAddc(utlf_getCurrentDate(), (parseInt(basedayflag)-parseInt(todayflag)));
  703. }else if( parseInt(todayflag) == parseInt(basedayflag) ) {//같을때
  704. if( basedtflag > parseInt(utlf_getCurrentTime().substr(0, 4)) ) {//마감시간보다 작을때
  705. reqenddd = utlf_getCurrentDate().substr(0, 8);
  706. }else {
  707. reqenddd = getDateAddc(utlf_getCurrentDate(), 7);
  708. }
  709. }
  710. if( parseInt(basedayflag)+1 == 6 ) {//불출요일이 토요일이면
  711. deliveday = getDateAddc(reqenddd, 3);
  712. }else {
  713. deliveday = getDateAddc(reqenddd, 1);
  714. }
  715. }
  716. ds_main_cond.setColumn( 0, "fromdd", getDateAddc(reqenddd, -6));
  717. ds_main_cond.setColumn( 0, "todd", reqenddd);
  718. ds_main_deliveinfo.setColumn( 0, "reqenddt", reqenddd+basedtflag);
  719. ds_main_deliveinfo.setColumn( 0, "delivecnfmdd", deliveday);
  720. ds_main_deliveinfo.setColumn( 0, "delivemessage", message );
  721. //submit("TRMNP03004") // 수술실(Rosette) 가져오기
  722. var oParam = {};
  723. oParam.id = "TRMNP03004";
  724. oParam.service = "opanstapp.OpAnstStocMngt";
  725. oParam.method = "reqGetRosettelist";
  726. oParam.inds = "";
  727. oParam.outds = "ds_init_rosettelist=rosettelist";
  728. oParam.async = false;
  729. tranf_submit(oParam);
  730. frmf_addComboItem("grp_biz.grp_sea.cmb_rosette","전체","","above");
  731. grp_biz.grp_sea.cmb_rosette.updateToDataset();
  732. grp_biz.grp_sea.cmb_rosette.index = 0;
  733. ds_send_reqdata.clearData();
  734. dsf_makeValue( ds_send_reqdata, "opcnfmdd", "string", ds_main_cond.getColumn(0, "fromdd") );
  735. dsf_makeValue( ds_send_reqdata, "rosette", "string", ds_main_cond.getColumn(0, "oprosette"));
  736. //submit("TRMNP03002"); // 수술실코드 가져오기
  737. var oParam = {};
  738. oParam.id = "TRMNP03002";
  739. oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
  740. oParam.method = "reqGetOmcdlist";
  741. oParam.inds = "req=ds_send_reqdata";
  742. oParam.outds = "ds_init_oproomlist=oproomlist";
  743. oParam.async = false;
  744. tranf_submit(oParam);
  745. frmf_addComboItem("grp_biz.grp_sea.cmb_oproomlist","전체","","above");
  746. grp_biz.grp_sea.cmb_oproomlist.updateToDataset();
  747. grp_biz.grp_sea.cmb_oproomlist.index = 0;
  748. //submit("TRMNP04603", false);
  749. //frmf_addComboItem("cmb_oproomlist", "전 체", "", "above" );
  750. //grp_biz.grd_acmlgooddelivelist.fixedcellcheckbox(0, 20) = true;
  751. //grp_biz.grd_acmlgooddelivelist.explorerbar = "sort";
  752. //model.refresh();
  753. }
  754. /* --------------------------------------------------*/
  755. /* type : function */
  756. /* access : public */
  757. /* desc : 방재고 물품조회 */
  758. /* param : */
  759. /* return : */
  760. /* --------------------------------------------------*/
  761. function fOnClickSearchGoodPopUp(){
  762. var xpos = 200; //event.screenX;
  763. var ypos = 300; //event.screenY-300;
  764. //2008-08-21 오전 12:28:09 taebum 약속 처방 조회시 현재 수술방의 방재고를 함께 조회하기 위한 파라미터 설정 추가
  765. var sOproomcd = ds_main_cond.getColumn(0, "oproomcd");
  766. var sCartGubn = ds_main_cond.getColumn(0, "deptflag");
  767. if( sOproomcd == "" ) {
  768. sysf_messageBox("수술방을 선택하지 않았습니다.!", "E000");
  769. grp_biz.grp_sea.cmb_oproomlist.setFocus();
  770. return;
  771. }
  772. frmf_setParameter("SPMNP01602_oproomcd", sOproomcd);
  773. frmf_setParameter("SPMNP01602_cartgubn", sCartGubn);
  774. //open("SPMNP01602" ,"", xpos, ypos, "SPMNP01602", "", "");
  775. frmf_open("SPMNP01602","SPMNP01602",null,null,null,xpos,ypos,null,null,null,null,null,"M");
  776. }
  777. /* --------------------------------------------------*/
  778. /* type : function */
  779. /* access : public */
  780. /* desc : 비처방성 물품조회 */
  781. /* param : */
  782. /* return : */
  783. /* --------------------------------------------------*/
  784. function fOnClickSearch(){
  785. var xpos = 200; //event.screenX;
  786. var ypos = 300; //event.screenY-300;
  787. //2008-08-21 오전 12:28:09 taebum 약속 처방 조회시 현재 수술방의 방재고를 함께 조회하기 위한 파라미터 설정 추가
  788. var sOproomcd = ds_main_cond.getColumn(0, "oproomcd");
  789. var sCartGubn = ds_main_cond.getColumn(0, "deptflag");
  790. if( sOproomcd == "" ) {
  791. sysf_messageBox("수술방을 선택하지 않았습니다.!", "E000");
  792. grp_biz.grp_sea.cmb_oproomlist.setFocus();
  793. return;
  794. }
  795. frmf_setParameter("SPMNP01601_oproomcd", sOproomcd);
  796. frmf_setParameter("SPMNP01601_cartgubn", sCartGubn);
  797. frmf_setParameter("SPMNP01601_openflag", "4600");
  798. //open("SPMNP01601" ,"", xpos, ypos, "SPMNP01601", "", "");
  799. frmf_open("SPMNP01601","SPMNP01601",null,null,null,xpos,ypos,null,null,null,null,null,"M");
  800. }
  801. /* --------------------------------------------------*/
  802. /* type : function */
  803. /* access : public */
  804. /* desc : 비처방 물품 리스트 추가 */
  805. /* param : */
  806. /* return : */
  807. /* --------------------------------------------------*/
  808. function fGoodDataDisplay(pParamList) {
  809. var iParamData = pParamList.split("▩");
  810. var pData = "", reqflagnm = "";
  811. var erflag = ds_main_cond.getColumn(0, "referflag");
  812. for (ii = 0; ii < (iParamData.length - 1) ; ii++) {
  813. var _curRow = ds_main_acmlgooddelivelist.addRow();
  814. pData = iParamData[ii];
  815. var iSplit_Value = pData.split("|");
  816. if( ds_main_cond.getColumn(0, "oproomcd") != iSplit_Value[12] ) {
  817. sysf_messageBox("물품조회 수술방이 불출의뢰 수술방과 같지않습니다.!", "E000");
  818. return;
  819. }
  820. if( erflag == "Y" ) {
  821. reqflagnm = "응급";
  822. }else {
  823. reqflagnm = "정규";
  824. }
  825. ds_main_acmlgooddelivelist.setColumn( _curRow, "reqgoodnm", "비처방");
  826. ds_main_acmlgooddelivelist.setColumn( _curRow, "reqgoodflag", "N");
  827. ds_main_acmlgooddelivelist.setColumn( _curRow, "deptflag", ds_main_cond.getColumn(0, "deptflag"));
  828. ds_main_acmlgooddelivelist.setColumn( _curRow, "purcflag", iSplit_Value[0]);
  829. ds_main_acmlgooddelivelist.setColumn( _curRow, "oproomnm", grp_biz.grp_sea.cmb_oproomlist.text);
  830. ds_main_acmlgooddelivelist.setColumn( _curRow, "goodcd", iSplit_Value[1]);
  831. ds_main_acmlgooddelivelist.setColumn( _curRow, "allsizespecid", iSplit_Value[2]);
  832. ds_main_acmlgooddelivelist.setColumn( _curRow, "goodnm", iSplit_Value[3]);
  833. ds_main_acmlgooddelivelist.setColumn( _curRow, "goodspec", iSplit_Value[4]);
  834. ds_main_acmlgooddelivelist.setColumn( _curRow, "goodmodel", iSplit_Value[5]);
  835. ds_main_acmlgooddelivelist.setColumn( _curRow, "prodcmpynm", iSplit_Value[6]);
  836. ds_main_acmlgooddelivelist.setColumn( _curRow, "prcpunit", iSplit_Value[7]);
  837. ds_main_acmlgooddelivelist.setColumn( _curRow, "prcpqty", 0);
  838. ds_main_acmlgooddelivelist.setColumn( _curRow, "acmlbaseqty", 1);
  839. ds_main_acmlgooddelivelist.setColumn( _curRow, "reqflagnm", reqflagnm);
  840. ds_main_acmlgooddelivelist.setColumn( _curRow, "safestocqty", iSplit_Value[8]);
  841. ds_main_acmlgooddelivelist.setColumn( _curRow, "stocqty", iSplit_Value[9]);
  842. ds_main_acmlgooddelivelist.setColumn( _curRow, "reqexchqty", 0);
  843. ds_main_acmlgooddelivelist.setColumn( _curRow, "reqqty", iSplit_Value[11]);
  844. ds_main_acmlgooddelivelist.setColumn( _curRow, "bfreqqty", iSplit_Value[11]);
  845. ds_main_acmlgooddelivelist.setColumn( _curRow, "requnit", iSplit_Value[10]);
  846. if( parseInt(iSplit_Value[11]) > 0 ) {
  847. ds_main_acmlgooddelivelist.setColumn( _curRow, "chkflag", "true");
  848. }else {
  849. ds_main_acmlgooddelivelist.setColumn( _curRow, "chkflag", "false");
  850. }
  851. ds_main_acmlgooddelivelist.setColumn( _curRow, "deliveyn", "N");
  852. ds_main_acmlgooddelivelist.setColumn( _curRow, "deliveqty", 0);
  853. ds_main_acmlgooddelivelist.setColumn( _curRow, "undeliveqty", 0);
  854. ds_main_acmlgooddelivelist.setColumn( _curRow, "reqdd", "");
  855. ds_main_acmlgooddelivelist.setColumn( _curRow, "reqid", "");
  856. ds_main_acmlgooddelivelist.setColumn( _curRow, "delivedd", "");
  857. ds_main_acmlgooddelivelist.setColumn( _curRow, "deliveid", "");
  858. ds_main_acmlgooddelivelist.setColumn( _curRow, "undeliveresn", "");
  859. ds_main_acmlgooddelivelist.setColumn( _curRow, "stat", "I");
  860. ds_main_acmlgooddelivelist.setColumn( _curRow, "oproomcd", iSplit_Value[12]);
  861. ds_main_acmlgooddelivelist.setColumn( _curRow, "delivereqdd", "");
  862. ds_main_acmlgooddelivelist.setColumn( _curRow, "reqno", "");
  863. ds_main_acmlgooddelivelist.setColumn( _curRow, "olddeliveqty", "");
  864. }
  865. }
  866. /* --------------------------------------------------*/
  867. /* type : function */
  868. /* access : public */
  869. /* desc : 누적물품 의뢰_불출관리 조회 */
  870. /* param : */
  871. /* return : */
  872. /* --------------------------------------------------*/
  873. function fSearch() {
  874. var oproomcd = ds_main_cond.getColumn(0, "oproomcd");
  875. var oprosette = ds_main_cond.getColumn(0, "oprosette");
  876. var referflag = ds_main_cond.getColumn(0, "referflag");//응급의뢰
  877. var goodcd = ds_main_cond.getColumn(0, "goodcd");
  878. ds_send_reqdata.clearData();
  879. ds_send_reqdata.copyData(ds_main_cond);
  880. var level = ds_temp_logginlevel.getColumn(0, "usrlevel");
  881. if( (level == "C")||(level == "M") ) {
  882. grp_biz.btn_delivecnfm.visible = true;
  883. grp_biz.btn_reqsave.visible = false;
  884. //submit("TRMNP04602");
  885. var acmlgoodpos3 = grp_biz.grd_acmlgooddelivelist.hscrollbar.pos;
  886. var oParam = {};
  887. oParam.id = "TRMNP04602";
  888. oParam.service = "opanstapp.OpAnstStocMngt";
  889. oParam.method = "reqGetAcmlGoodReqList";
  890. oParam.inds = "reqdata=ds_send_reqdata";
  891. oParam.outds = "ds_main_acmlgooddelivelist=acmlgooddelivelist";
  892. oParam.async = false;
  893. oParam.callback = "cf_TRMNP04602";
  894. tranf_submit(oParam);
  895. ds_main_acmlgooddelivelist.rowposition = -1;
  896. var rowcnt = ds_main_acmlgooddelivelist.rowcount;
  897. grp_biz.grd_acmlgooddelivelist.hscrollbar.pos = acmlgoodpos3;
  898. (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("delivereqdd")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "delivereqdd", "string", "") : "") ;
  899. (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("reqno")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "reqno", "string", "") : "") ;
  900. (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("olddeliveqty")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "olddeliveqty", "string", "") : "") ;
  901. if(rowcnt == 0) {
  902. ds_main_acmlgooddelivelist.clearData();
  903. sysf_messageBox("조회된 결과가", "I004");
  904. }
  905. //dsf_makeValue(ds_main_acmlgooddelivelist, "delivereqdd", "string", "");
  906. //dsf_makeValue(ds_main_acmlgooddelivelist, "reqno", "string", "");
  907. //dsf_makeValue(ds_main_acmlgooddelivelist, "olddeliveqty", "string", "");
  908. if(arErrorCode.pop("TRMNP04602") < 0) {
  909. sysf_messageBox("조회된 결과가", "I004");
  910. }
  911. }else {
  912. if( oproomcd == ""&&oprosette == "" ) {
  913. sysf_messageBox("수술방이나 Rosette을 선택 하지", "E007");
  914. grp_biz.grp_sea.cmb_rosette.setFocus();
  915. return;
  916. }
  917. if( referflag == "Y" ) {//응급의뢰용
  918. if( goodcd == "" ) {
  919. sysf_messageBox("응급의뢰 조회일 경우 물품코드를 입력하십시오.!", "E000");
  920. return;
  921. }
  922. }
  923. //submit("TRMNP04601");
  924. var oParam = {};
  925. oParam.id = "TRMNP04601";
  926. oParam.service = "opanstapp.OpAnstStocMngt";
  927. oParam.method = "reqGetAcmlGoodDeliveList";
  928. oParam.inds = "reqdata=ds_send_reqdata";
  929. oParam.outds = "ds_main_acmlgooddelivelist=acmlgooddelivelist";
  930. oParam.async = false;
  931. oParam.callback = "cf_TRMNP04601";
  932. tranf_submit(oParam);
  933. ds_main_acmlgooddelivelist.rowposition = -1;
  934. var rowcnt = ds_main_acmlgooddelivelist.rowcount;
  935. (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("delivereqdd")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "delivereqdd", "string", "") : "") ;
  936. (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("reqno")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "reqno", "string", "") : "") ;
  937. (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("olddeliveqty")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "olddeliveqty", "string", "") : "") ;
  938. if(rowcnt == 0) {
  939. ds_main_acmlgooddelivelist.clearData();
  940. sysf_messageBox("조회된 결과가", "I004");
  941. }
  942. if(arErrorCode.pop("TRMNP04601") < 0) {
  943. sysf_messageBox("조회된 결과가", "I004");
  944. }
  945. }
  946. // var refMsg = ds_properties_error.getColumn(0, "msg");
  947. // var refMsgCnt = refMsg.substring(0, 1);
  948. // if( refMsgCnt == "0" ) {
  949. // sysf_messageBox("조회된 결과가", "I004");
  950. // }
  951. }
  952. function cf_TRMNP04602(sSvcId, nErrorCode, sErrorMsg) {
  953. arErrorCode.push(sSvcId, nErrorCode);
  954. }
  955. function cf_TRMNP04601(sSvcId, nErrorCode, sErrorMsg) {
  956. arErrorCode.push(sSvcId, nErrorCode);
  957. }
  958. /* --------------------------------------------------*/
  959. /* type : function */
  960. /* access : public */
  961. /* desc : 누적물품 의뢰_불출관리 의뢰저장 */
  962. /* param : */
  963. /* return : */
  964. /* --------------------------------------------------*/
  965. function fReqSave(pFlag) {
  966. var iRows = -1;
  967. var deliveyn, reqdd, delivedd, oproomcd, stat, goodcd, allsizespecid, reqqty, acmldeliveqty, chkflag, reqgoodflag;
  968. var cnt = 0, cnt2 = 0;
  969. iRows = ds_main_acmlgooddelivelist.rowcount;
  970. var acmlgooddelivelist = "status▦reqdd▦delivedd▦oproomcd▦goodcd▦allsizespecid▦reqqty▦reqflag▦reqgoodflag";
  971. if( pFlag != "E" ) {
  972. if( ds_main_cond.getColumn(0, "referflag") == "Y" ) {
  973. sysf_messageBox("응급의뢰로만 저장 할 수 있습니다.!", "E000");
  974. return;
  975. }
  976. }
  977. for( var i = 0; i < iRows; i++ ) {
  978. reqdd = ds_main_acmlgooddelivelist.getColumn(i, "reqdd");
  979. delivedd = ds_main_acmlgooddelivelist.getColumn(i, "delivedd");
  980. oproomcd = ds_main_acmlgooddelivelist.getColumn(i, "oproomcd");
  981. goodcd = ds_main_acmlgooddelivelist.getColumn(i, "goodcd");
  982. allsizespecid = ds_main_acmlgooddelivelist.getColumn(i, "allsizespecid");
  983. reqqty = ds_main_acmlgooddelivelist.getColumn(i, "reqqty");
  984. stat = ds_main_acmlgooddelivelist.getColumn(i, "stat");
  985. chkflag = ds_main_acmlgooddelivelist.getColumn(i, "chkflag");
  986. deliveyn = ds_main_acmlgooddelivelist.getColumn(i, "deliveyn");
  987. reqgoodflag = ds_main_acmlgooddelivelist.getColumn(i, "reqgoodflag");
  988. if( chkflag == "true" ) {
  989. if( deliveyn == "Y" ) {
  990. sysf_messageBox("불출된 물품은 의뢰를 ", "E001");
  991. return;
  992. }
  993. if( reqqty > 0 ) {//의뢰량을 입력시에만
  994. acmlgooddelivelist = acmlgooddelivelist + "▩" + stat + "▦" + reqdd + "▦" + delivedd + "▦" + oproomcd
  995. + "▦" + goodcd + "▦" + allsizespecid + "▦" + reqqty + "▦" + pFlag + "▦" + reqgoodflag+ "▩" ;
  996. cnt += 1;
  997. }else {
  998. sysf_messageBox("의뢰량을 ", "C001");
  999. return;
  1000. }
  1001. }
  1002. }
  1003. if( cnt > 0 ) {
  1004. ds_send_reqdata.clearData();
  1005. ds_send_savedata.clearData();
  1006. ds_send_reqdata.copyData(ds_main_cond);
  1007. //ds_send.setColumn( 0, "savedata", acmlgooddelivelist);
  1008. dsf_setCSVToDs("ds_send_savedata", acmlgooddelivelist);
  1009. if(ds_send_savedata.rowcount ==0){
  1010. ds_send_savedata.addRow();
  1011. }
  1012. var acmlgoodpos = grp_biz.grd_acmlgooddelivelist.hscrollbar.pos;
  1013. //submit("TXMNP04602");
  1014. var oParam = {};
  1015. oParam.id = "TXMNP04602";
  1016. oParam.service = "opanstapp.OpAnstStocMngt";
  1017. oParam.method = "reqExeSaveAcmlGoodDeliveReq";
  1018. oParam.inds = "reqdata=ds_send_reqdata savedata=ds_send_savedata";
  1019. oParam.outds = "ds_main_acmlgooddelivelist=acmlgooddelivelist";
  1020. oParam.async = false;
  1021. tranf_submit(oParam);
  1022. var rowcnt = ds_main_acmlgooddelivelist.rowcount;
  1023. grp_biz.grd_acmlgooddelivelist.hscrollbar.pos = acmlgoodpos;
  1024. (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("delivereqdd")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "delivereqdd", "string", "") : "") ;
  1025. (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("reqno")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "reqno", "string", "") : "") ;
  1026. (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("olddeliveqty")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "olddeliveqty", "string", "") : "") ;
  1027. if(rowcnt == 0) {
  1028. ds_main_acmlgooddelivelist.clearData();
  1029. }
  1030. }else {
  1031. sysf_messageBox("선택한것이", "I004");
  1032. }
  1033. }
  1034. /* --------------------------------------------------*/
  1035. /* type : function */
  1036. /* access : public */
  1037. /* desc : 누적물품 의뢰_불출관리 불출저장 */
  1038. /* param : */
  1039. /* return : */
  1040. /* --------------------------------------------------*/
  1041. function fDeliveCnfm() {
  1042. var iRows = -1;
  1043. var delivereqdd, delivedd, oproomcd, stat, goodcd, allsizespecid, exchqty, deliveno, deptflag;
  1044. var reqno, reqqty, deliveqty, chkflag, sumqty, undeliveresn, acmlbaseqty, olddeliveqty, undeliveqty, reqgoodflag;
  1045. var cnt = 0;
  1046. iRows = ds_main_acmlgooddelivelist.rowcount;
  1047. var acmlgooddelivelist = "m▦delivereqdd▦oproomcd▦goodcd▦allsizespecid▦reqqty▦deliveqty▦reqno▦undeliveqty▦undeliveresn▦deliveno▦delivedd▦olddeliveqty▦"
  1048. + "exchqty▦deptflag▦difqty▦reqgoodflag";
  1049. for( var i = 0; i < iRows; i++ ) {
  1050. delivereqdd = ds_main_acmlgooddelivelist.getColumn(i, "delivereqdd");
  1051. delivedd = ds_main_acmlgooddelivelist.getColumn(i, "delivedd");
  1052. oproomcd = ds_main_acmlgooddelivelist.getColumn(i, "oproomcd");
  1053. goodcd = ds_main_acmlgooddelivelist.getColumn(i, "goodcd");
  1054. allsizespecid = ds_main_acmlgooddelivelist.getColumn(i, "allsizespecid");
  1055. reqqty = ds_main_acmlgooddelivelist.getColumn(i, "reqqty");
  1056. deliveqty = ds_main_acmlgooddelivelist.getColumn(i, "deliveqty");
  1057. stat = ds_main_acmlgooddelivelist.getColumn(i, "stat");
  1058. chkflag = ds_main_acmlgooddelivelist.getColumn(i, "chkflag");
  1059. reqno = ds_main_acmlgooddelivelist.getColumn(i, "reqno");
  1060. undeliveresn = ds_main_acmlgooddelivelist.getColumn(i, "undeliveresn");
  1061. olddeliveqty = ds_main_acmlgooddelivelist.getColumn(i, "olddeliveqty");
  1062. deliveno = ds_main_acmlgooddelivelist.getColumn(i, "deliveno");
  1063. acmlbaseqty = ds_main_acmlgooddelivelist.getColumn(i, "acmlbaseqty");
  1064. undeliveqty = ds_main_acmlgooddelivelist.getColumn(i, "undeliveqty");
  1065. reqgoodflag = ds_main_acmlgooddelivelist.getColumn(i, "reqgoodflag");
  1066. deptflag = ds_main_cond.getColumn(0, "deptflag");
  1067. var exchqty = (parseInt(deliveqty)-parseInt(olddeliveqty))*parseInt(acmlbaseqty);
  1068. var difqty = parseInt(deliveqty)-parseInt(olddeliveqty);
  1069. if( ds_main_cond.getColumn(0, "deliveflag") == "2" ) {
  1070. stat = "C";//취소
  1071. difqty = -(parseInt(olddeliveqty));
  1072. }
  1073. if( chkflag == "true" ) {
  1074. if( deliveqty > 0 ) {//불출수량이 입력된 경우
  1075. acmlgooddelivelist = acmlgooddelivelist + "▩" + stat + "▦" + delivereqdd + "▦" + oproomcd + "▦" + goodcd + "▦" + allsizespecid + "▦" + reqqty
  1076. + "▦" + deliveqty + "▦" + reqno + "▦" + undeliveqty + "▦" + undeliveresn + "▦" + deliveno + "▦" + delivedd
  1077. + "▦" + olddeliveqty + "▦" + exchqty + "▦" + deptflag + "▦" + difqty + "▦" + reqgoodflag;
  1078. cnt += 1;
  1079. }
  1080. }
  1081. }
  1082. if( cnt > 0 ) {
  1083. ds_send_reqdata.clearData();
  1084. ds_send_savedata.clearData();
  1085. ds_send_reqdata.copyData(ds_main_cond);
  1086. //ds_send.setColumn( 0, "savedata", acmlgooddelivelist);
  1087. dsf_setCSVToDs("ds_send_savedata", acmlgooddelivelist);
  1088. //submit("TXMNP04601");
  1089. var acmlgoodpos2 = grp_biz.grd_acmlgooddelivelist.hscrollbar.pos;
  1090. var oParam = {};
  1091. oParam.id = "TXMNP04601";
  1092. oParam.service = "opanstapp.OpAnstStocMngt";
  1093. oParam.method = "reqExeSaveAcmlGoodCnfm";
  1094. oParam.inds = "reqdata=ds_send_reqdata savedata=ds_send_savedata";
  1095. oParam.outds = "ds_main_acmlgooddelivelist=acmlgooddelivelist";
  1096. oParam.async = false;
  1097. tranf_submit(oParam);
  1098. var rowcnt = ds_main_acmlgooddelivelist.rowcount;
  1099. grp_biz.grd_acmlgooddelivelist.hscrollbar.pos = acmlgoodpos2;
  1100. (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("delivereqdd")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "delivereqdd", "string", "") : "") ;
  1101. (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("reqno")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "reqno", "string", "") : "") ;
  1102. (utlf_isNull(ds_main_acmlgooddelivelist.getColumnInfo("olddeliveqty")) ? dsf_makeValue(ds_main_acmlgooddelivelist, "olddeliveqty", "string", "") : "") ;
  1103. if(rowcnt == 0) {
  1104. ds_main_acmlgooddelivelist.clearData();
  1105. }
  1106. if( ds_properties_error.getColumn(0, "msg") == "정상적으로 처리되었습니다." ) {
  1107. sysf_messageBox("저장이", "I002");
  1108. }
  1109. }else {
  1110. sysf_messageBox("선택한것이", "I004");
  1111. }
  1112. }
  1113. function SMMNP04600_onload(obj:Form, e:LoadEventInfo)
  1114. {
  1115. frmf_initForm(obj); // 폼 초기화
  1116. //grdf_initGrid(grp_biz.grd_acmlgooddelivelist); //Grid 초기화
  1117. //fInit();
  1118. this.setTimer(0, 100);
  1119. }
  1120. function grp_biz_grp_sea_cmb_rosette_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  1121. {
  1122. ds_send_reqdata.clearData();
  1123. dsf_makeValue( ds_send_reqdata, "opcnfmdd", "string", ds_main_cond.getColumn(0, "fromdd") );
  1124. dsf_makeValue( ds_send_reqdata, "rosette", "string", ds_main_cond.getColumn(0, "oprosette"));
  1125. //if(submit("TRMNP03002")){ // 수술실코드 가져오기
  1126. var oParam = {};
  1127. oParam.id = "TRMNP03002";
  1128. oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
  1129. oParam.method = "reqGetOmcdlist";
  1130. oParam.inds = "req=ds_send_reqdata";
  1131. oParam.outds = "ds_init_oproomlist=oproomlist";
  1132. oParam.async = false;
  1133. oParam.callback = "cf_TRMNP03002";
  1134. tranf_submit(oParam);
  1135. if(arErrorCode.pop("TRMNP03002") > -1){ // 수술실코드 가져오기
  1136. frmf_addComboItem("grp_biz.grp_sea.cmb_oproomlist","전체","","above");
  1137. grp_biz.grp_sea.cmb_oproomlist.updateToDataset();
  1138. grp_biz.grp_sea.cmb_oproomlist.index = 0;
  1139. }
  1140. }
  1141. function cf_TRMNP03002(sSvcId, nErrorCode, sErrorMsg) {
  1142. arErrorCode.push(sSvcId, nErrorCode);
  1143. }
  1144. function grp_biz_grp_sea_ipt_goodcd_onkeyup(obj:Edit, e:KeyEventInfo)
  1145. {
  1146. if( e.keycode == 13 ){
  1147. frmf_inputEnterKey("grp_biz.grp_sea.btn_search", "onclick", new ClickEventInfo);
  1148. }
  1149. }
  1150. function grp_biz_grp_sea_btn_goodsear_onclick(obj:Button, e:ClickEventInfo)
  1151. {
  1152. var refflag = ds_temp.getColumn(0, "refflag");
  1153. frmf_setParameter("openflag", "STOC");
  1154. if( refflag == "1" ) { /*물품명으로 검색*/
  1155. frmf_setParameter("refnm", ds_main_cond.getColumn(0, "goodnm"));
  1156. frmf_setParameter("refflag", "1");
  1157. }else if( refflag == "2" ) { /*물품코드으로 검색*/
  1158. frmf_setParameter("refnm", "CCR");
  1159. frmf_setParameter("refflag", "2");
  1160. }
  1161. frmf_setParameter("tabflag", "CCR");
  1162. frmf_setParameter("menuparam", "S");
  1163. frmf_setParameter("cartgubn", ds_main_cond.getColumn(0, "deptflag"));
  1164. //modal("SMMNP04460" ,"", "100", "100", "SMMNP04460", "", "");
  1165. frmf_modal("SMMNP04460","SMMNP04460",null,null,null,100,100,null,null,null,null,null,"M");
  1166. var getData = frmf_getParameter("SendData"); ;//ds_properties_parameters_SendData.getColumn(0, "SendDatavalue");
  1167. if( utlf_isNull(getData)) {
  1168. return;
  1169. }else {
  1170. var getDataTemp1 = getData.split("▩");
  1171. var getDataTemp2 = getDataTemp1[0].split("|");
  1172. ds_main_cond.setColumn( 0, "goodcd", getDataTemp2[0]);
  1173. ds_main_cond.setColumn( 0, "goodnm", getDataTemp2[1]);
  1174. ds_main_cond.setColumn( 0, "allsizespecid", getDataTemp2[2]);
  1175. //ipt_goodcd.refresh();
  1176. //ipt_goodnm.refresh();
  1177. //ds_main_deliveinfo.clearData(); ds_main_deliveinfo.addRow();
  1178. ds_main_cond.addColumn("reqfromdd", "string");
  1179. ds_main_cond.addColumn("reqtodd", "string");
  1180. var fromdd = ds_main_cond.getColumn(0, "reqfromdd");
  1181. var todd = ds_main_cond.getColumn(0, "reqtodd");
  1182. fSearch();
  1183. }
  1184. }
  1185. function grp_biz_grp_sea_ipt_goodnm_onkeyup(obj:Edit, e:KeyEventInfo)
  1186. {
  1187. if(e.keycode == 13) {
  1188. obj.updateToDataset();
  1189. grp_biz.grp_sea.btn_search.click();
  1190. }
  1191. }
  1192. function grp_biz_grp_sea_button3_onclick(obj:Button, e:ClickEventInfo)
  1193. {
  1194. ds_main_cond.setColumn( 0, "goodcd", "");
  1195. ds_main_cond.setColumn( 0, "goodnm", "");
  1196. ds_main_cond.setColumn( 0, "allsizespecid", "");
  1197. //model.refresh();
  1198. }
  1199. function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  1200. {
  1201. fSearch();
  1202. }
  1203. function grp_biz_grp_sea_rdo_deliveflagmngt_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  1204. {
  1205. var level = ds_temp_logginlevel.getColumn(0, "usrlevel");
  1206. if( ( level != "0" ) ) {//관리자만 액션
  1207. if( ds_main_cond.getColumn(0, "deliveflag") == "1" ) {
  1208. grp_biz.btn_delivecnfm.enable = true;
  1209. grp_biz.btn_delivecnfm.text = "불출확정";
  1210. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 18, "edittype", "none"); //.colDisabled(18) = true;//의뢰량
  1211. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 22, "edittype", "text"); //.colDisabled(22) = false;//불출수량
  1212. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 23, "edittype", "text"); //.colDisabled(23) = false;//미불출수량
  1213. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 28, "edittype", "text"); //.colDisabled(28) = false;//미불출사유
  1214. }else if( ds_main_cond.getColumn(0, "deliveflag") == "2" ) {
  1215. grp_biz.btn_delivecnfm.enable = true;
  1216. grp_biz.btn_delivecnfm.text = "불출취소";
  1217. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 18, "edittype", "none"); //.colDisabled(18) = true;//의뢰량
  1218. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 22, "edittype", "none"); //.colDisabled(22) = true;//불출수량
  1219. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 23, "edittype", "none"); //.colDisabled(23) = true;//미불출수량
  1220. grp_biz.grd_acmlgooddelivelist.setCellProperty("body", 28, "edittype", "none"); //.colDisabled(28) = true;//미불출사유
  1221. }else {
  1222. grp_biz.btn_delivecnfm.enable = false;
  1223. }
  1224. }
  1225. }
  1226. function grp_biz_grp_sea_btn_goodsearch_onclick(obj:Button, e:ClickEventInfo)
  1227. {
  1228. fOnClickSearch();
  1229. }
  1230. function grp_biz_grp_sea_btn_noprcplist_onclick(obj:Button, e:ClickEventInfo)
  1231. {
  1232. fOnClickSearchGoodPopUp();
  1233. }
  1234. function grp_biz_btn_emplevel_onclick(obj:Button, e:ClickEventInfo)
  1235. {
  1236. //modal("SMMNP04610" ,"", "100", "100", "SMMNP04610", "", "");
  1237. frmf_modal("SMMNP04610","SMMNP04610",null,null,null,100,100,null,null,null,null,null,"M");
  1238. }
  1239. function grp_biz_button2_onclick(obj:Button, e:ClickEventInfo)
  1240. {
  1241. //exeReportPreview("RPMNP04601", "XMLSTR", "", "", "", "", "", "", "", "true");
  1242. var objParam = new Object();
  1243. var objDOM1 = rptf_createDOM(); //
  1244. rptf_setNodeListToDOM(objDOM1, "/root/main/opPatlist/opPatInfo" , ds_main_opPatlist_opPatInfo);
  1245. objParam.xml_data_XML1 = objDOM1.documentElement.source;
  1246. var objDOM2 = rptf_createDOM(); //
  1247. rptf_setNodeListToDOM(objDOM2, "/root/main/acmlgooddelivelist" , this.ds_main_acmlgooddelivelist);
  1248. objParam.xml_data_XML2 = objDOM2.documentElement.source;
  1249. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  1250. rptf_exeReportPreview30(["RPMNP04601"],[objParam], option);
  1251. }
  1252. function grp_biz_btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
  1253. {
  1254. // var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1255. //
  1256. // if (fileName != "")
  1257. // {
  1258. // grd_acmlgooddelivelist.saveExcel(fileName, "SheetName", false, false, "", "", true);
  1259. // }
  1260. grdf_exportExcel(grp_biz.grd_acmlgooddelivelist, "excel", "누적물품 불출관리 리스트", false, "" , 'user' , true);
  1261. }
  1262. function grp_biz_btn_tempsave_onclick(obj:Button, e:ClickEventInfo)
  1263. {
  1264. var pFlag = "T";
  1265. fReqSave(pFlag);
  1266. }
  1267. function grp_biz_btn_delivecnfm_onclick(obj:Button, e:ClickEventInfo)
  1268. {
  1269. fDeliveCnfm();
  1270. }
  1271. function ds_main_acmlgooddelivelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1272. {
  1273. if( e.columnid == "chkflag" ){
  1274. obj.setColumn(e.row, "chkflag", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  1275. tempv = 1;
  1276. }
  1277. if(tempv !=1){
  1278. var iRow = -1;
  1279. iRow = e.row
  1280. if( (ds_temp_logginlevel.getColumn(0, "usrlevel") == "C")||(ds_temp_logginlevel.getColumn(0, "usrlevel") == "M") ) {//관리자, 담당자로그인시 불출량, 미불출사유 유무에 따라 체크
  1281. if( ( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty")))
  1282. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0.0")
  1283. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0")
  1284. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfdeliveqty") ))
  1285. &&( ds_main_acmlgooddelivelist.getColumn(iRow, "undeliveresn") == "") ){
  1286. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
  1287. iRow++;
  1288. }else {
  1289. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
  1290. iRow++;
  1291. }
  1292. //일반간호사 로그인시 의뢰양 유무에 따라 체크
  1293. }else {
  1294. if( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty")))
  1295. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0.0")
  1296. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0")
  1297. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfreqqty")) ){
  1298. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
  1299. iRow++;
  1300. }else {
  1301. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
  1302. iRow++;
  1303. }
  1304. }
  1305. if( iRow != ds_main_acmlgooddelivelist.rowcount ) {
  1306. var deliveqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "deliveqty");
  1307. var reqqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "reqqty");
  1308. if( e.col == 22 ) {
  1309. ds_main_acmlgooddelivelist.setColumn( iRow - 1, "undeliveqty", parseInt(reqqty) - parseInt(deliveqty));
  1310. }
  1311. }
  1312. }
  1313. tempv = 0;
  1314. }
  1315. function grp_biz_grd_acmlgooddelivelist_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo)
  1316. {
  1317. }
  1318. function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
  1319. {
  1320. var pFlag = "E";
  1321. fReqSave(pFlag);
  1322. }
  1323. function grp_biz_btn_reqsave_onclick(obj:Button, e:ClickEventInfo)
  1324. {
  1325. var pFlag = "R";
  1326. fReqSave(pFlag);
  1327. }
  1328. function grp_biz_grd_acmlgooddelivelist_onenterdown(obj:Grid, e:GridEditEventInfo)
  1329. {
  1330. if( (e.col == 18 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 18, "edittype")=="text") ||
  1331. (e.col == 22 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 22, "edittype")=="text") ||
  1332. (e.col == 23 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 23, "edittype")=="text") ||
  1333. (e.col == 28 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 28, "edittype")=="text") ){
  1334. var iRow = -1;
  1335. iRow = e.row;
  1336. if( (ds_temp_logginlevel.getColumn(0, "usrlevel") == "C")||(ds_temp_logginlevel.getColumn(0, "usrlevel") == "M") ) {//관리자, 담당자로그인시 불출량, 미불출사유 유무에 따라 체크
  1337. if( ( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty")))
  1338. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0.0")
  1339. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0")
  1340. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfdeliveqty") ))
  1341. &&( ds_main_acmlgooddelivelist.getColumn(iRow, "undeliveresn") == "") ){
  1342. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
  1343. iRow++;
  1344. }else {
  1345. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
  1346. iRow++;
  1347. }
  1348. //일반간호사 로그인시 의뢰양 유무에 따라 체크
  1349. }else {
  1350. if( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty")))
  1351. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0.0")
  1352. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0")
  1353. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfreqqty")) ){
  1354. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
  1355. iRow++;
  1356. }else {
  1357. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
  1358. iRow++;
  1359. }
  1360. }
  1361. if( iRow != ds_main_acmlgooddelivelist.rowcount ) {
  1362. var deliveqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "deliveqty");
  1363. var reqqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "reqqty");
  1364. if( e.col == 22 ) {
  1365. ds_main_acmlgooddelivelist.setColumn( iRow - 1, "undeliveqty", parseInt(reqqty) - parseInt(deliveqty));
  1366. }
  1367. }
  1368. }
  1369. if( ds_main_acmlgooddelivelist.rowposition + 1 != ds_main_acmlgooddelivelist.rowcount ) {
  1370. ds_main_acmlgooddelivelist.rowposition = ds_main_acmlgooddelivelist.rowposition +1;
  1371. grp_biz.grd_acmlgooddelivelist.setCellPos(e.cell);
  1372. grp_biz.grd_acmlgooddelivelist.showEditor(true);
  1373. }else if( ds_main_acmlgooddelivelist.rowposition + 1 == ds_main_acmlgooddelivelist.rowcount ) {
  1374. grp_biz.grd_acmlgooddelivelist.showEditor(false);
  1375. grp_biz.grd_acmlgooddelivelist.showEditor(true);
  1376. }
  1377. }
  1378. function SMMNP04600_ontimer(obj:Form, e:TimerEventInfo)
  1379. {
  1380. if( e.timerid == 0 ){
  1381. this.killTimer( 0 );
  1382. fInit();
  1383. }
  1384. }
  1385. var tempv=0;
  1386. function grp_biz_grd_acmlgooddelivelist_onheadclick(obj:Grid, e:GridClickEventInfo)
  1387. {
  1388. tempv=1;
  1389. grdf_setEventGrid(grp_biz.grd_acmlgooddelivelist, e);
  1390. tempv=0;
  1391. /*
  1392. ds_main_acmlgooddelivelist.updatecontrol = false;
  1393. ds_main_acmlgooddelivelist.enableevent = false;
  1394. //grdf_gridSort(grp_biz.grd_acmlgooddelivelist,e);
  1395. //grdf_setGridCheckAll(grp_biz.grd_acmlgooddelivelist, e);
  1396. if( 20== e.col ){
  1397. if(utlf_isNull(grp_biz.grd_acmlgooddelivelist.getCellProperty("head", 19, "text")) || grp_biz.grd_acmlgooddelivelist.getCellProperty("head", 19, "text") == "expr:0"){
  1398. // grp_biz.grd_acmlgooddelivelist.setCellProperty("head", 19, "text", "expr:1");
  1399. }else{
  1400. // grp_biz.grd_acmlgooddelivelist.setCellProperty("head", 19, "text", "expr:0");
  1401. }
  1402. for(var i =0; i<ds_main_acmlgooddelivelist.rowcount ;i++){
  1403. ds_main_acmlgooddelivelist.setColumn(i, "chkflag", utlf_isNull(grp_biz.grd_acmlgooddelivelist.getCellProperty("head", 19, "text")) || grp_biz.grd_acmlgooddelivelist.getCellProperty("head", 19, "text") == "expr:0" ? "false" : "true");
  1404. }
  1405. }
  1406. ds_main_acmlgooddelivelist.enableevent = true;
  1407. ds_main_acmlgooddelivelist.updatecontrol = true;
  1408. */
  1409. }
  1410. //var tempv=0;
  1411. //var iRow = -1;
  1412. //var ecol;
  1413. function grp_biz_grd_acmlgooddelivelist_onselectchanged(obj:Grid, e:GridSelectEventInfo)
  1414. {
  1415. if( (e.oldrow != -1 && e.oldcol == 18 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 18, "edittype")=="text") ||
  1416. (e.oldrow != -1 && e.oldcol == 22 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 22, "edittype")=="text") ||
  1417. (e.oldrow != -1 && e.oldcol == 23 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 23, "edittype")=="text") ||
  1418. (e.oldrow != -1 && e.oldcol == 28 && grp_biz.grd_acmlgooddelivelist.getCellProperty("body", 28, "edittype")=="text") ){
  1419. var iRow = -1;
  1420. iRow = e.oldrow;
  1421. if( (ds_temp_logginlevel.getColumn(0, "usrlevel") == "C")||(ds_temp_logginlevel.getColumn(0, "usrlevel") == "M") ) {//관리자, 담당자로그인시 불출량, 미불출사유 유무에 따라 체크
  1422. if( ( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty")))
  1423. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0.0")
  1424. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0")
  1425. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfdeliveqty") ))
  1426. &&( ds_main_acmlgooddelivelist.getColumn(iRow, "undeliveresn") == "") ){
  1427. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
  1428. iRow++;
  1429. }else {
  1430. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
  1431. iRow++;
  1432. }
  1433. //일반간호사 로그인시 의뢰양 유무에 따라 체크
  1434. }else {
  1435. if( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty")))
  1436. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0.0")
  1437. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0")
  1438. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfreqqty")) ){
  1439. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
  1440. iRow++;
  1441. }else {
  1442. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
  1443. iRow++;
  1444. }
  1445. }
  1446. if( iRow != ds_main_acmlgooddelivelist.rowcount ) {
  1447. var deliveqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "deliveqty");
  1448. var reqqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "reqqty");
  1449. if( e.oldcol == 22 ) {
  1450. ds_main_acmlgooddelivelist.setColumn( iRow - 1, "undeliveqty", parseInt(reqqty) - parseInt(deliveqty));
  1451. }
  1452. }
  1453. }
  1454. /*
  1455. if(grp_biz.grd_acmlgooddelivelist.getCellProperty("Body", e.col, "edittype") == "text"){
  1456. tempv = 1;
  1457. iRow = e.row;
  1458. ecol = e.col;
  1459. }else{
  1460. if(tempv ==1){
  1461. tempv = 0;
  1462. if( (ds_temp_logginlevel.getColumn(0, "usrlevel") == "C")||(ds_temp_logginlevel.getColumn(0, "usrlevel") == "M") ) {//관리자, 담당자로그인시 불출량, 미불출사유 유무에 따라 체크
  1463. if( ( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty")))
  1464. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0.0")
  1465. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0")
  1466. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfdeliveqty") ))
  1467. &&( ds_main_acmlgooddelivelist.getColumn(iRow, "undeliveresn") == "") ){
  1468. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
  1469. iRow++;
  1470. }else {
  1471. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
  1472. iRow++;
  1473. }
  1474. //일반간호사 로그인시 의뢰양 유무에 따라 체크
  1475. }else {
  1476. if( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty")))
  1477. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0.0")
  1478. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0")
  1479. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfreqqty")) ){
  1480. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
  1481. iRow++;
  1482. }else {
  1483. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
  1484. iRow++;
  1485. }
  1486. }
  1487. if( iRow != ds_main_acmlgooddelivelist.rowcount ) {
  1488. var deliveqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "deliveqty");
  1489. var reqqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "reqqty");
  1490. if( ecol == 22 ) {
  1491. ds_main_acmlgooddelivelist.setColumn( iRow - 1, "undeliveqty", parseInt(reqqty) - parseInt(deliveqty));
  1492. }
  1493. }
  1494. }
  1495. }
  1496. */
  1497. }
  1498. function grp_biz_grd_acmlgooddelivelist_onkillfocus(obj:Grid, e:KillFocusEventInfo)
  1499. {/*
  1500. if(tempv ==1){
  1501. tempv = 0;
  1502. if( (ds_temp_logginlevel.getColumn(0, "usrlevel") == "C")||(ds_temp_logginlevel.getColumn(0, "usrlevel") == "M") ) {//관리자, 담당자로그인시 불출량, 미불출사유 유무에 따라 체크
  1503. if( ( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty")))
  1504. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0.0")
  1505. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == "0")
  1506. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "deliveqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfdeliveqty") ))
  1507. &&( ds_main_acmlgooddelivelist.getColumn(iRow, "undeliveresn") == "") ){
  1508. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
  1509. iRow++;
  1510. }else {
  1511. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
  1512. iRow++;
  1513. }
  1514. //일반간호사 로그인시 의뢰양 유무에 따라 체크
  1515. }else {
  1516. if( ( utlf_isNull(ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty")))
  1517. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0.0")
  1518. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == "0")
  1519. ||( ds_main_acmlgooddelivelist.getColumn(iRow, "reqqty") == ds_main_acmlgooddelivelist.getColumn(iRow, "bfreqqty")) ){
  1520. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "false");
  1521. iRow++;
  1522. }else {
  1523. ds_main_acmlgooddelivelist.setColumn( iRow , "chkflag", "true");
  1524. iRow++;
  1525. }
  1526. }
  1527. if( iRow != ds_main_acmlgooddelivelist.rowcount ) {
  1528. var deliveqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "deliveqty");
  1529. var reqqty = ds_main_acmlgooddelivelist.getColumn((iRow-1), "reqqty");
  1530. if( ecol == 22 ) {
  1531. ds_main_acmlgooddelivelist.setColumn( iRow - 1, "undeliveqty", parseInt(reqqty) - parseInt(deliveqty));
  1532. }
  1533. }
  1534. }
  1535. */
  1536. }
  1537. ]]></Script>
  1538. </Form>
  1539. </FDL>