SPLPJ02300_수탁검사접수.xfdl 96 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLPJ02300" position="absolute 0 0 1000 716" titletext="수탁검사접수" oninit="SPLPJ02300_oninit" onload="SPLPJ02300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 673 984 700" id="grp_btn" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Button position="absolute 928 5 984 27" id="btn_cls" class="btn4" taborder="31" text="닫기" onclick="grp_btn_btn_cls_onclick"/>
  11. <Shape position="absolute 0 0 984 6" linetype="vertical" id="line17" class="line_6"/>
  12. <Button position="absolute 845 5 925 27" id="btn_prcp" class="btn4" taborder="30" visible="false" text="처방등록" onclick="grp_btn_btn_prcp_onclick"/>
  13. <Button position="absolute 786 5 842 27" id="btn_acpt" class="btn4" taborder="29" text="접수" onclick="grp_btn_btn_acpt_onclick"/>
  14. <Button position="absolute 0 5 144 27" id="btn_patlistread" class="btn3" taborder="28" visible="false" text="수탁환자 Excel읽기" onclick="grp_btn_btn_patlistread_onclick"/>
  15. </Layout>
  16. </Layouts>
  17. </Div>
  18. <Div position="absolute 0 0 984 673" id="grp_biz">
  19. <Layouts>
  20. <Layout>
  21. <Combo position="absolute 892 2 982 21" id="cmb_orddrid" innerdataset="ds_init_cmb_orddrid" datacolumn="usernm" codecolumn="userid" anchor="default"/>
  22. <Static text="처방의사" position="absolute 825 0 889 23" align="align:center middle;" id="cap_orddrid" class="cell_1" anchor="default"/>
  23. <Div position="absolute 205 5 490 265" id="grp_prnt" visible="false" anchor="default">
  24. <Layouts>
  25. <Layout width="285" height="260"/>
  26. </Layouts>
  27. </Div>
  28. <Tab id="swt_trust" taborder="1" tabindex="0" position="absolute 0 23 984 670" anchor="default">
  29. <Tabpages>
  30. <Tabpage id="case_list" text="수탁검사목록" onsetfocus="grp_biz_swt_trust_case_list_onsetfocus">
  31. <Layouts>
  32. <Layout>
  33. <Grid id="grd_trustlist" class="datagrid2" taborder="1" binddataset="ds_grd_trustlist" useinputpanel="false" position="absolute 5 70 979 619" anchor="default">
  34. <Formats>
  35. <Format id="default">
  36. <Columns>
  37. <Column size="50"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. <Column size="80"/>
  41. <Column size="70"/>
  42. <Column size="0"/>
  43. <Column size="100"/>
  44. <Column size="0"/>
  45. <Column size="80"/>
  46. <Column size="70"/>
  47. <Column size="45"/>
  48. <Column size="90"/>
  49. <Column size="0"/>
  50. <Column size="0"/>
  51. <Column size="90"/>
  52. <Column size="0"/>
  53. <Column size="123"/>
  54. <Column size="0"/>
  55. <Column size="90"/>
  56. <Column size="0"/>
  57. <Column size="0"/>
  58. <Column size="0"/>
  59. <Column size="70"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. <Column size="0"/>
  65. <Column size="0"/>
  66. <Column size="0"/>
  67. <Column size="0"/>
  68. <Column size="0"/>
  69. </Columns>
  70. <Rows>
  71. <Row size="26" band="head"/>
  72. <Row size="24"/>
  73. </Rows>
  74. <Band id="head">
  75. <Cell text="선택"/>
  76. <Cell col="1" text="instcd"/>
  77. <Cell col="2" text="요청기관코드"/>
  78. <Cell col="3" text="요청기관"/>
  79. <Cell col="4" text="요청일자"/>
  80. <Cell col="5" text="요청시간"/>
  81. <Cell col="6" text="바코드번호"/>
  82. <Cell col="7" text="작업번호"/>
  83. <Cell col="8" text="요청&#10;등록번호"/>
  84. <Cell col="9" text="환자명"/>
  85. <Cell col="10" text="성별/&#10;나이"/>
  86. <Cell col="11" text="주민번호"/>
  87. <Cell col="12" text="rrgstno1"/>
  88. <Cell col="13" text="rrgstno2"/>
  89. <Cell col="14" text="여권번호"/>
  90. <Cell col="15" text="검사코드"/>
  91. <Cell col="16" text="검사명"/>
  92. <Cell col="17" text="검체코드"/>
  93. <Cell col="18" text="검체명"/>
  94. <Cell col="19" text="의뢰지번호"/>
  95. <Cell col="20" text="의뢰지구분코드"/>
  96. <Cell col="21" text="의뢰지내용"/>
  97. <Cell col="22" text="요청자명"/>
  98. <Cell col="23" text="확인일자"/>
  99. <Cell col="24" text="확인시간"/>
  100. <Cell col="25" text="확인자명"/>
  101. <Cell col="26" text="acptstatcd"/>
  102. <Cell col="27" text="bizflagcd"/>
  103. <Cell col="28" text="orddrid"/>
  104. <Cell col="29" text="orddeptcd"/>
  105. <Cell col="30" text="grostestplgyid"/>
  106. <Cell col="31" text="newreqcnts"/>
  107. </Band>
  108. <Band id="body">
  109. <Cell displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
  110. <Cell col="1" text="bind:instcd"/>
  111. <Cell col="2" text="bind:reqinstcd"/>
  112. <Cell col="3" text="bind:reqinstnm"/>
  113. <Cell col="4" displaytype="date" edittype="date" text="bind:reqdd" mask="yyyy-MM-dd"/>
  114. <Cell col="5" class="text_center" text="bind:reqtm"/>
  115. <Cell col="6" class="text_center" text="bind:bcno"/>
  116. <Cell col="7" class="text_center" text="bind:workno"/>
  117. <Cell col="8" class="text_center" text="bind:reqpid"/>
  118. <Cell col="9" displaytype="date" edittype="date" text="bind:patnm" mask="hh:mm:ss"/>
  119. <Cell col="10" text="bind:sexage"/>
  120. <Cell col="11" text="bind:rrgstno"/>
  121. <Cell col="12" text="bind:rrgstno1"/>
  122. <Cell col="13" text="bind:rrgstno2"/>
  123. <Cell col="14" text="bind:psptno"/>
  124. <Cell col="15" text="bind:testcd"/>
  125. <Cell col="16" text="bind:testnm"/>
  126. <Cell col="17" text="bind:spccd"/>
  127. <Cell col="18" text="bind:spcnm"/>
  128. <Cell col="19" text="bind:reqfrmno"/>
  129. <Cell col="20" text="bind:reqfrmflagcd"/>
  130. <Cell col="21" text="bind:reqcnts"/>
  131. <Cell col="22" text="bind:reqnm"/>
  132. <Cell col="23" text="bind:cnfmdd"/>
  133. <Cell col="24" text="bind:cnfmtm"/>
  134. <Cell col="25" text="bind:cnfmnm"/>
  135. <Cell col="26" text="bind:acptstatcd"/>
  136. <Cell col="27" text="bind:bizflagcd"/>
  137. <Cell col="28" text="bind:orddrid"/>
  138. <Cell col="29" text="bind:orddeptcd"/>
  139. <Cell col="30" text="bind:grostestplgyid"/>
  140. <Cell col="31" text="bind:newreqcnts"/>
  141. </Band>
  142. </Format>
  143. </Formats>
  144. </Grid>
  145. <Div id="grp_sea" taborder="2" position="absolute 5 5 979 40" anchor="default">
  146. <Layouts>
  147. <Layout>
  148. <Shape id="roundrect1" type="roundrectangle" class="roundrect_search" position="absolute 0 0 974 35" anchor="default"/>
  149. <Static id="caption2" text="요청일자 :" class="search_name" position="absolute 15 8 90 25" anchor="default"/>
  150. <Button id="btn_search" taborder="5" text="조회" class="btn1" position="absolute 904 7 960 29" anchor="default" onclick="grp_biz_swt_trust_case_list_grp_sea_btn_search_onclick"/>
  151. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 885 7 891 29" anchor="default"/>
  152. <Static id="caption3" text="~" class="search_no_b" position="absolute 202 10 214 27" anchor="default"/>
  153. <Calendar id="ipt_prcptodd" taborder="6" class="input_search" position="absolute 215 7 321 26" anchor="default"/>
  154. <Calendar id="ipt_prcpfromdd" taborder="7" class="input_search" position="absolute 95 7 201 26" anchor="default"/>
  155. <Static id="caption4" text="등록번호 :" class="search_name" position="absolute 681 8 755 25" anchor="default"/>
  156. <Static id="caption5" text="요청기관 :" class="search_name" position="absolute 381 10 455 27" anchor="default"/>
  157. <Combo id="combo1" taborder="8" innerdataset="ds_init_combo1" codecolumn="cdid" datacolumn="cdnm" position="absolute 464 8 619 27" anchor="default"/>
  158. <Edit id="input1" taborder="9" position="absolute 773 8 873 27" anchor="default"/>
  159. </Layout>
  160. </Layouts>
  161. </Div>
  162. <Static id="caption1" text="수탁검사목록" class="tit_2" position="absolute 8 50 113 66" anchor="default"/>
  163. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 5 66 979 72" anchor="default" style="strokepen:3 solid #33bbbbff;"/>
  164. </Layout>
  165. </Layouts>
  166. </Tabpage>
  167. <Tabpage id="case_single" text="개별수탁검사" onsetfocus="grp_biz_swt_trust_case_single_onsetfocus">
  168. <Layouts>
  169. <Layout>
  170. <Static id="caption6" text="환자정보" class="tit_2" position="absolute 10 5 171 19" anchor="default"/>
  171. <Shape id="line2" linetype="horizontal" class="line_1" position="absolute 5 21 979 27" anchor="default" style="strokepen:3 solid #33bbbbff;"/>
  172. <Combo id="cmb_exlabcd" taborder="26" innerdataset="ds_init_cmb_exlabcd" codecolumn="coophospcd" datacolumn="coophospnm" class="combo_default" position="absolute 74 26 190 45" anchor="default"/>
  173. <Static id="caption11" text="-" class="text_center" position="absolute 626 26 646 46" anchor="default"/>
  174. <Static id="caption13" text="비 고" class="cell_1" position="absolute 514 49 574 72" anchor="default"/>
  175. <Shape id="line4" linetype="horizontal" class="line_1" position="absolute 5 97 210 103" anchor="default" style="strokepen:3 solid #33bbbbff;"/>
  176. <Static id="caption14" text="처방분류" class="tit_2" position="absolute 10 81 171 95" anchor="default"/>
  177. <Grid id="trv_prcpkind" taborder="27" useinputpanel="false" treeusecheckbox="false" position="absolute 5 101 210 469" autofit="col" anchor="default" binddataset="ds_prcpkindlist" autofittype="col" oncellclick="grp_biz_swt_trust_case_single_trv_prcpkind_oncellclick">
  178. <Formats>
  179. <Format id="default">
  180. <Columns>
  181. <Column size="143"/>
  182. </Columns>
  183. <Rows>
  184. <Row size="24"/>
  185. </Rows>
  186. <Band id="body">
  187. <Cell displaytype="tree" edittype="tree" text="bind:earnclsnm" treelevel="bind:lvl"/>
  188. <Cell col="4" displaytype="normal" text="bind:earnclsnm"/>
  189. </Band>
  190. </Format>
  191. <Format id="format_copy"/>
  192. </Formats>
  193. </Grid>
  194. <Static id="caption15" text="처방명 목록" class="tit_2" position="absolute 218 81 379 94" anchor="default"/>
  195. <Shape id="line5" linetype="horizontal" class="line_1" position="absolute 213 97 433 103" anchor="default" style="strokepen:3 solid #33bbbbff;"/>
  196. <Grid id="grd_testcdlist" taborder="28" binddataset="ds_grd_testcdlist" useinputpanel="false" position="absolute 213 101 433 469" anchor="default" enable="true" autofittype="col" oncelldblclick="grp_biz_swt_trust_case_single_grd_testcdlist_oncelldblclick">
  197. <Formats>
  198. <Format id="default">
  199. <Columns>
  200. <Column size="0"/>
  201. <Column size="0"/>
  202. <Column size="0"/>
  203. <Column size="0"/>
  204. <Column size="80"/>
  205. <Column size="0"/>
  206. <Column size="0"/>
  207. <Column size="0"/>
  208. <Column size="0"/>
  209. <Column size="0"/>
  210. <Column size="0"/>
  211. <Column size="0"/>
  212. <Column size="0"/>
  213. <Column size="0"/>
  214. <Column size="0"/>
  215. <Column size="0"/>
  216. <Column size="0"/>
  217. <Column size="0"/>
  218. <Column size="0"/>
  219. <Column size="0"/>
  220. <Column size="0"/>
  221. <Column size="0"/>
  222. </Columns>
  223. <Rows>
  224. <Row size="24" band="head"/>
  225. <Row size="24"/>
  226. </Rows>
  227. <Band id="head">
  228. <Cell displaytype="normal" text="instcd"/>
  229. <Cell col="1" displaytype="normal" text="testcd"/>
  230. <Cell col="2" displaytype="normal" text="testengnm"/>
  231. <Cell col="3" displaytype="normal" text="testengabbr"/>
  232. <Cell col="4" displaytype="normal" text="처방명"/>
  233. <Cell col="5" displaytype="normal" text="testhngabbr"/>
  234. <Cell col="6" displaytype="normal" text="acptdept"/>
  235. <Cell col="7" displaytype="normal" text="ptnocd"/>
  236. <Cell col="8" displaytype="normal" text="stdyptnocd"/>
  237. <Cell col="9" displaytype="normal" text="trustptnocd"/>
  238. <Cell col="10" displaytype="normal" text="workflagcd"/>
  239. <Cell col="11" displaytype="normal" text="slidflagcd"/>
  240. <Cell col="12" displaytype="normal" text="slidisscnt"/>
  241. <Cell col="13" displaytype="normal" text="blocflagcd"/>
  242. <Cell col="14" displaytype="normal" text="initblocno"/>
  243. <Cell col="15" displaytype="normal" text="autokeepflagcd"/>
  244. <Cell col="16" displaytype="normal" text="stdy_workflagcd"/>
  245. <Cell col="17" displaytype="normal" text="stdy_slidflagcd"/>
  246. <Cell col="18" displaytype="normal" text="stdy_slidisscnt"/>
  247. <Cell col="19" displaytype="normal" text="stdy_blocflagcd"/>
  248. <Cell col="20" displaytype="normal" text="stdy_initblocno"/>
  249. <Cell col="21" displaytype="normal" text="stdy_autokeepflagcd"/>
  250. </Band>
  251. <Band id="body">
  252. <Cell displaytype="normal" text="bind:instcd"/>
  253. <Cell col="1" displaytype="normal" text="bind:testcd"/>
  254. <Cell col="2" displaytype="normal" text="bind:testengnm"/>
  255. <Cell col="3" displaytype="normal" text="bind:testengabbr"/>
  256. <Cell col="4" displaytype="normal" style="align:left middle;" text="bind:testhngnm"/>
  257. <Cell col="5" displaytype="normal" text="bind:testhngabbr"/>
  258. <Cell col="6" displaytype="normal" text="bind:acptdept"/>
  259. <Cell col="7" displaytype="normal" text="bind:ptnocd"/>
  260. <Cell col="8" displaytype="normal" text="bind:stdyptnocd"/>
  261. <Cell col="9" displaytype="normal" text="bind:trustptnocd"/>
  262. <Cell col="10" displaytype="normal" text="bind:workflagcd"/>
  263. <Cell col="11" displaytype="normal" text="bind:slidflagcd"/>
  264. <Cell col="12" displaytype="normal" text="bind:slidisscnt"/>
  265. <Cell col="13" displaytype="normal" text="bind:blocflagcd"/>
  266. <Cell col="14" displaytype="normal" text="bind:initblocno"/>
  267. <Cell col="15" displaytype="normal" text="bind:autokeepflagcd"/>
  268. <Cell col="16" displaytype="normal" text="bind:stdy_workflagcd"/>
  269. <Cell col="17" displaytype="normal" text="bind:stdy_slidflagcd"/>
  270. <Cell col="18" displaytype="normal" text="bind:stdy_slidisscnt"/>
  271. <Cell col="19" displaytype="normal" text="bind:stdy_blocflagcd"/>
  272. <Cell col="20" displaytype="normal" text="bind:stdy_initblocno"/>
  273. <Cell col="21" displaytype="normal" text="bind:stdy_autokeepflagcd"/>
  274. </Band>
  275. </Format>
  276. </Formats>
  277. </Grid>
  278. <Static id="caption16" text="대표검체 목록" class="tit_2" position="absolute 441 81 602 94" anchor="default"/>
  279. <Shape id="line7" linetype="horizontal" class="line_1" position="absolute 436 97 656 103" anchor="default" style="strokepen:3 solid #33bbbbff;"/>
  280. <Grid id="grd_spclist" taborder="29" binddataset="ds_grd_spclist" useinputpanel="false" position="absolute 436 101 656 469" anchor="default" oncellclick="grp_biz_swt_trust_case_single_grd_spclist_oncellclick" autofittype="col" oncelldblclick="grp_biz_swt_trust_case_single_grd_spclist_oncelldblclick">
  281. <Formats>
  282. <Format id="default">
  283. <Columns>
  284. <Column size="0"/>
  285. <Column size="0"/>
  286. <Column size="0"/>
  287. <Column size="0"/>
  288. <Column size="200"/>
  289. </Columns>
  290. <Rows>
  291. <Row size="24" band="head"/>
  292. <Row size="24"/>
  293. </Rows>
  294. <Band id="head">
  295. <Cell text="기관코드"/>
  296. <Cell col="1" text="처방코드"/>
  297. <Cell col="2" text="처방명"/>
  298. <Cell col="3" text="검체코드"/>
  299. <Cell col="4" text="검체명"/>
  300. </Band>
  301. <Band id="body">
  302. <Cell text="bind:instcd"/>
  303. <Cell col="1" text="bind:testcd"/>
  304. <Cell col="2" text="bind:testhngnm"/>
  305. <Cell col="3" text="bind:spccd"/>
  306. <Cell col="4" style="align:left middle;" text="bind:spcnm"/>
  307. </Band>
  308. </Format>
  309. </Formats>
  310. </Grid>
  311. <Grid id="grd_choiprcp" taborder="30" binddataset="ds_grd_choiprcp" useinputpanel="false" position="absolute 659 101 979 469" anchor="default" autofittype="col">
  312. <Formats>
  313. <Format id="default">
  314. <Columns>
  315. <Column size="0"/>
  316. <Column size="0"/>
  317. <Column size="0"/>
  318. <Column size="156"/>
  319. <Column size="0"/>
  320. <Column size="140"/>
  321. </Columns>
  322. <Rows>
  323. <Row size="24" band="head"/>
  324. <Row size="24"/>
  325. </Rows>
  326. <Band id="head">
  327. <Cell text="기관코드"/>
  328. <Cell col="1" text="처방코드"/>
  329. <Cell col="2" text="처방명"/>
  330. <Cell col="3" text="처방명"/>
  331. <Cell col="4" text="검체코드"/>
  332. <Cell col="5" text="검체명"/>
  333. </Band>
  334. <Band id="body">
  335. <Cell text="bind:instcd"/>
  336. <Cell col="1" text="bind:testcd"/>
  337. <Cell col="2" text="bind:testhngnm"/>
  338. <Cell col="3" text="bind:testengnm"/>
  339. <Cell col="4" text="bind:spccd"/>
  340. <Cell col="5" text="bind:spcnm"/>
  341. </Band>
  342. </Format>
  343. </Formats>
  344. </Grid>
  345. <Static id="caption17" text="선택 처방 및 검체" class="tit_2" position="absolute 664 81 825 95" anchor="default"/>
  346. <Shape id="line8" linetype="horizontal" class="line_1" position="absolute 659 97 979 103" anchor="default" style="strokepen:3 solid #33bbbbff;"/>
  347. <Static id="cap_exlabcd" text="위탁기관" class="cell_1" position="absolute 5 25 71 48" anchor="default"/>
  348. <Edit id="ipt_patnm" taborder="31" position="absolute 411 26 490 45" anchor="default"/>
  349. <Static id="cap_patnm" text="환자명" class="cell_1" position="absolute 348 25 408 48" anchor="default"/>
  350. <MaskEdit id="ipt_rrgstno1" taborder="32" mask="999999" position="absolute 577 26 622 45" anchor="default"/>
  351. <MaskEdit id="ipt_rrgstno2" taborder="33" mask="9999999" position="absolute 639 26 689 45" anchor="default"/>
  352. <Edit id="ipt_psptno" taborder="34" position="absolute 778 26 978 45" anchor="default"/>
  353. <Static id="cap_psptno" text="여권번호" class="cell_1" position="absolute 711 24 775 47" anchor="default"/>
  354. <MaskEdit id="ipt_age" taborder="35" mask="####" position="absolute 74 50 107 69" anchor="default"/>
  355. <Static id="cap_sexage" text="나이/성별" class="cell_1" position="absolute 5 49 71 72" anchor="default"/>
  356. <Combo id="cmb_sex" taborder="36" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 110 50 170 69" anchor="default">
  357. <Dataset id="innerdataset">
  358. <ColumnInfo>
  359. <Column id="codecolumn"/>
  360. <Column id="datacolumn"/>
  361. </ColumnInfo>
  362. <Rows>
  363. <Row>
  364. <Col id="codecolumn">M</Col>
  365. <Col id="datacolumn">남성</Col>
  366. </Row>
  367. <Row>
  368. <Col id="codecolumn">F</Col>
  369. <Col id="datacolumn">여성</Col>
  370. </Row>
  371. </Rows>
  372. </Dataset>
  373. </Combo>
  374. <Static id="cap_rrgstno1" text="주민번호" class="cell_1" position="absolute 514 25 574 48" anchor="default"/>
  375. <Static id="caption7" text="등록번호" class="cell_1" position="absolute 193 25 253 48" anchor="default"/>
  376. <Button id="btn_pidsea" taborder="37" class="icon_search" position="absolute 329 26 345 42" anchor="default" onclick="grp_biz_swt_trust_case_single_btn_pidsea_onclick"/>
  377. <Button id="btn_patnmsea" taborder="38" class="icon_search" position="absolute 493 26 509 42" anchor="default" onclick="grp_biz_swt_trust_case_single_btn_patnmsea_onclick"/>
  378. <Button id="btn_rrgstnosea" taborder="39" class="icon_search" position="absolute 692 26 708 42" anchor="default" onclick="grp_biz_swt_trust_case_single_btn_rrgstnosea_onclick"/>
  379. <Static id="caption8" text="접수대상 환자목록" class="tit_2" position="absolute 10 476 171 490" anchor="default"/>
  380. <Shape id="line9" linetype="horizontal" class="line_1" position="absolute 5 492 979 498" anchor="default" style="strokepen:3 solid #33bbbbff;"/>
  381. <Grid id="grd_acptpatlist" taborder="40" binddataset="ds_grd_acptpatlist" useinputpanel="false" position="absolute 5 496 979 619" anchor="default">
  382. <Formats>
  383. <Format id="default">
  384. <Columns>
  385. <Column size="0"/>
  386. <Column size="0"/>
  387. <Column size="21"/>
  388. <Column size="144"/>
  389. <Column size="80"/>
  390. <Column size="80"/>
  391. <Column size="0"/>
  392. <Column size="0"/>
  393. <Column size="70"/>
  394. <Column size="110"/>
  395. <Column size="0"/>
  396. <Column size="0"/>
  397. <Column size="121"/>
  398. <Column size="130"/>
  399. <Column size="100"/>
  400. <Column size="200"/>
  401. <Column size="0"/>
  402. <Column size="0"/>
  403. <Column size="0"/>
  404. <Column size="0"/>
  405. <Column size="0"/>
  406. </Columns>
  407. <Rows>
  408. <Row size="24" band="head"/>
  409. <Row size="24"/>
  410. </Rows>
  411. <Band id="head">
  412. <Cell text="기관코드"/>
  413. <Cell col="1" text="요청기관코드"/>
  414. <Cell col="2"/>
  415. <Cell col="3" text="요청기관"/>
  416. <Cell col="4" text="등록번호"/>
  417. <Cell col="5" text="환자명"/>
  418. <Cell col="6" text="sex"/>
  419. <Cell col="7" text="age"/>
  420. <Cell col="8" text="성별/나이"/>
  421. <Cell col="9" text="적용율"/>
  422. <Cell col="10" text="rrgstno1"/>
  423. <Cell col="11" text="rrgstno2"/>
  424. <Cell col="12" text="주민번호"/>
  425. <Cell col="13" text="여권번호"/>
  426. <Cell col="14" text="위탁환자번호"/>
  427. <Cell col="15" text="비 고"/>
  428. <Cell col="16" text="caption1"/>
  429. <Cell col="17" text="caption2"/>
  430. <Cell col="18" text="caption3"/>
  431. <Cell col="19" text="caption4"/>
  432. <Cell col="20" text="미수코드"/>
  433. </Band>
  434. <Band id="body">
  435. <Cell text="bind:instcd"/>
  436. <Cell col="1" text="bind:exlabcd"/>
  437. <Cell col="2" expr="expr:currow+1"/>
  438. <Cell col="3" text="bind:exlabnm"/>
  439. <Cell col="4" text="bind:pid"/>
  440. <Cell col="5" text="bind:patnm"/>
  441. <Cell col="6" text="bind:sex"/>
  442. <Cell col="7" text="bind:age"/>
  443. <Cell col="8" text="bind:sexage"/>
  444. <Cell col="9" displaytype="combo" edittype="combo" text="bind:suppkind" combodataset="ds_suppkind" combocodecol="value" combodatacol="label"/>
  445. <Cell col="10" text="bind:rrgstno1"/>
  446. <Cell col="11" text="bind:rrgstno2"/>
  447. <Cell col="12" text="bind:rrgstno"/>
  448. <Cell col="13" text="bind:psptno"/>
  449. <Cell col="14" text="bind:trusthosppid"/>
  450. <Cell col="15" text="bind:bigo"/>
  451. <Cell col="16" text="bind:bizflagcd"/>
  452. <Cell col="17" text="bind:orddrid"/>
  453. <Cell col="18" text="bind:orddeptcd"/>
  454. <Cell col="19" text="bind:grostestplgyid"/>
  455. <Cell col="20" text="bind:uncocd"/>
  456. </Band>
  457. </Format>
  458. <Format id="format_copy"/>
  459. </Formats>
  460. </Grid>
  461. <Button id="btn_cffm" taborder="41" text="임시저장" class="btn2" position="absolute 915 0 979 19" anchor="default" onclick="grp_biz_swt_trust_case_single_btn_cffm_onclick"/>
  462. <Grid id="grd_trustpatlist" taborder="42" binddataset="ds_grd_trustpatlist" useinputpanel="false" visible="false" position="absolute 670 435 965 500" anchor="default">
  463. <Formats>
  464. <Format id="default">
  465. <Columns>
  466. <Column size="100"/>
  467. <Column size="100"/>
  468. <Column size="100"/>
  469. <Column size="100"/>
  470. <Column size="100"/>
  471. <Column size="100"/>
  472. <Column size="100"/>
  473. <Column size="100"/>
  474. <Column size="100"/>
  475. <Column size="100"/>
  476. </Columns>
  477. <Rows>
  478. <Row size="24" band="head"/>
  479. <Row size="24"/>
  480. </Rows>
  481. <Band id="head">
  482. <Cell text="exlabcd"/>
  483. <Cell col="1" text="patnm"/>
  484. <Cell col="2" text="sex"/>
  485. <Cell col="3" text="age"/>
  486. <Cell col="4" text="rrgstno1"/>
  487. <Cell col="5" text="rrgstno2"/>
  488. <Cell col="6" text="psptno"/>
  489. <Cell col="7" text="bigo"/>
  490. <Cell col="8" text="suppkind"/>
  491. <Cell col="9" text="trusthosppid"/>
  492. </Band>
  493. <Band id="body">
  494. <Cell text="bind:exlabcd"/>
  495. <Cell col="1" text="bind:patnm"/>
  496. <Cell col="2" text="bind:sex"/>
  497. <Cell col="3" text="bind:age"/>
  498. <Cell col="4" text="bind:rrgstno1"/>
  499. <Cell col="5" text="bind:rrgstno2"/>
  500. <Cell col="6" text="bind:psptno"/>
  501. <Cell col="7" text="bind:bigo"/>
  502. <Cell col="8" text="bind:suppkind"/>
  503. <Cell col="9" text="bind:trusthosppid"/>
  504. </Band>
  505. </Format>
  506. </Formats>
  507. </Grid>
  508. <Edit id="ipt_bigo" taborder="43" position="absolute 577 50 979 69" anchor="default"/>
  509. <Static id="caption9" text="적용율" class="cell_1" position="absolute 173 49 233 72" anchor="default"/>
  510. <Shape id="line6" linetype="horizontal" class="line_3" position="absolute 5 69 979 75" anchor="default"/>
  511. <Combo id="cmb_suppkind" taborder="44" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 236 50 345 69" anchor="default">
  512. <Dataset id="innerdataset">
  513. <ColumnInfo>
  514. <Column id="codecolumn"/>
  515. <Column id="datacolumn"/>
  516. </ColumnInfo>
  517. <Rows>
  518. <Row>
  519. <Col id="codecolumn">12</Col>
  520. <Col id="datacolumn">수탁</Col>
  521. </Row>
  522. <Row>
  523. <Col id="codecolumn">13</Col>
  524. <Col id="datacolumn">30%가산안함</Col>
  525. </Row>
  526. </Rows>
  527. </Dataset>
  528. </Combo>
  529. <Edit id="ipt_pid" taborder="45" enable="false" position="absolute 256 26 326 45" anchor="default"/>
  530. <Shape id="line3" linetype="vertical" class="line_2" position="absolute 5 44 979 50" anchor="default"/>
  531. <Static id="caption10" text="위탁환자번호" class="cell_1" position="absolute 348 49 426 72" anchor="default" style="padding:0 0 0 2;align:left middle;"/>
  532. <Edit id="ipt_trusthosppid" taborder="46" position="absolute 430 51 509 70" anchor="default"/>
  533. </Layout>
  534. </Layouts>
  535. </Tabpage>
  536. </Tabpages>
  537. </Tab>
  538. </Layout>
  539. </Layouts>
  540. </Div>
  541. </Layout>
  542. </Layouts>
  543. <Objects>
  544. <Dataset id="ds_init_cmb_exlabcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  545. <ColumnInfo>
  546. <Column id="coophospnm" type="STRING"/>
  547. <Column id="coophospcd" type="STRING"/>
  548. <Column id="Column0" type="STRING" size="256"/>
  549. <Column id="Column1" type="STRING" size="256"/>
  550. </ColumnInfo>
  551. </Dataset>
  552. <Dataset id="ds_grd_testcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  553. <ColumnInfo>
  554. <Column id="instcd" type="STRING"/>
  555. <Column id="testcd" type="STRING"/>
  556. <Column id="testengnm" type="STRING"/>
  557. <Column id="testengabbr" type="STRING"/>
  558. <Column id="testhngnm" type="STRING"/>
  559. <Column id="testhngabbr" type="STRING"/>
  560. <Column id="acptdept" type="STRING"/>
  561. <Column id="ptnocd" type="STRING"/>
  562. <Column id="stdyptnocd" type="STRING"/>
  563. <Column id="trustptnocd" type="STRING"/>
  564. <Column id="workflagcd" type="STRING"/>
  565. <Column id="slidflagcd" type="STRING"/>
  566. <Column id="slidisscnt" type="STRING"/>
  567. <Column id="blocflagcd" type="STRING"/>
  568. <Column id="initblocno" type="STRING"/>
  569. <Column id="autokeepflagcd" type="STRING"/>
  570. <Column id="stdy_workflagcd" type="STRING"/>
  571. <Column id="stdy_slidflagcd" type="STRING"/>
  572. <Column id="stdy_slidisscnt" type="STRING"/>
  573. <Column id="stdy_blocflagcd" type="STRING"/>
  574. <Column id="stdy_initblocno" type="STRING"/>
  575. <Column id="stdy_autokeepflagcd" type="STRING"/>
  576. </ColumnInfo>
  577. </Dataset>
  578. <Dataset id="ds_grd_spclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  579. <ColumnInfo>
  580. <Column id="instcd" type="STRING"/>
  581. <Column id="testcd" type="STRING"/>
  582. <Column id="testhngnm" type="STRING"/>
  583. <Column id="spccd" type="STRING"/>
  584. <Column id="spcnm" type="STRING"/>
  585. </ColumnInfo>
  586. </Dataset>
  587. <Dataset id="ds_grd_choiprcp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  588. <ColumnInfo>
  589. <Column id="instcd" type="STRING"/>
  590. <Column id="testcd" type="STRING"/>
  591. <Column id="testhngnm" type="STRING"/>
  592. <Column id="testengnm" type="STRING"/>
  593. <Column id="spccd" type="STRING"/>
  594. <Column id="spcnm" type="STRING"/>
  595. </ColumnInfo>
  596. </Dataset>
  597. <Dataset id="ds_grd_acptpatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  598. <ColumnInfo>
  599. <Column id="instcd" type="STRING"/>
  600. <Column id="exlabcd" type="STRING"/>
  601. <Column id="exlabnm" type="STRING"/>
  602. <Column id="pid" type="STRING"/>
  603. <Column id="patnm" type="STRING"/>
  604. <Column id="sex" type="STRING"/>
  605. <Column id="age" type="STRING"/>
  606. <Column id="sexage" type="STRING"/>
  607. <Column id="suppkind" type="STRING"/>
  608. <Column id="rrgstno1" type="STRING"/>
  609. <Column id="rrgstno2" type="STRING"/>
  610. <Column id="rrgstno" type="STRING"/>
  611. <Column id="psptno" type="STRING"/>
  612. <Column id="trusthosppid" type="STRING"/>
  613. <Column id="bigo" type="STRING"/>
  614. <Column id="bizflagcd" type="STRING"/>
  615. <Column id="orddrid" type="STRING"/>
  616. <Column id="orddeptcd" type="STRING"/>
  617. <Column id="uncocd" type="STRING"/>
  618. <Column id="grotestsplgyid" type="STRING" size="0"/>
  619. </ColumnInfo>
  620. </Dataset>
  621. <Dataset id="ds_grd_trustpatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  622. <ColumnInfo>
  623. <Column id="exlabcd" type="STRING"/>
  624. <Column id="patnm" type="STRING"/>
  625. <Column id="sex" type="STRING"/>
  626. <Column id="age" type="STRING"/>
  627. <Column id="rrgstno1" type="STRING"/>
  628. <Column id="rrgstno2" type="STRING"/>
  629. <Column id="psptno" type="STRING"/>
  630. <Column id="bigo" type="STRING"/>
  631. <Column id="suppkind" type="STRING"/>
  632. <Column id="trusthosppid" type="STRING"/>
  633. </ColumnInfo>
  634. </Dataset>
  635. <Dataset id="ds_grd_trustlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  636. <ColumnInfo>
  637. <Column id="choi" type="STRING"/>
  638. <Column id="instcd" type="STRING"/>
  639. <Column id="reqinstcd" type="STRING"/>
  640. <Column id="reqinstnm" type="STRING"/>
  641. <Column id="reqdd" type="STRING"/>
  642. <Column id="reqtm" type="STRING"/>
  643. <Column id="bcno" type="STRING"/>
  644. <Column id="workno" type="STRING"/>
  645. <Column id="reqpid" type="STRING"/>
  646. <Column id="patnm" type="STRING"/>
  647. <Column id="sexage" type="STRING"/>
  648. <Column id="rrgstno" type="STRING"/>
  649. <Column id="rrgstno1" type="STRING"/>
  650. <Column id="rrgstno2" type="STRING"/>
  651. <Column id="psptno" type="STRING"/>
  652. <Column id="testcd" type="STRING"/>
  653. <Column id="testnm" type="STRING"/>
  654. <Column id="spccd" type="STRING"/>
  655. <Column id="spcnm" type="STRING"/>
  656. <Column id="reqfrmno" type="STRING"/>
  657. <Column id="reqfrmflagcd" type="STRING"/>
  658. <Column id="reqcnts" type="STRING"/>
  659. <Column id="reqnm" type="STRING"/>
  660. <Column id="cnfmdd" type="STRING"/>
  661. <Column id="cnfmtm" type="STRING"/>
  662. <Column id="cnfmnm" type="STRING"/>
  663. <Column id="acptstatcd" type="STRING"/>
  664. <Column id="bizflagcd" type="STRING"/>
  665. <Column id="orddrid" type="STRING"/>
  666. <Column id="orddeptcd" type="STRING"/>
  667. <Column id="grostestplgyid" type="STRING"/>
  668. <Column id="newreqcnts" type="STRING"/>
  669. </ColumnInfo>
  670. </Dataset>
  671. <Dataset id="ds_init_combo1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  672. <ColumnInfo>
  673. <Column id="cdnm" type="STRING"/>
  674. <Column id="cdid" type="STRING"/>
  675. </ColumnInfo>
  676. </Dataset>
  677. <Dataset id="ds_init_cmb_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  678. <ColumnInfo>
  679. <Column id="usernm" type="STRING"/>
  680. <Column id="userid" type="STRING"/>
  681. </ColumnInfo>
  682. </Dataset>
  683. <Dataset id="ds_hospenvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  684. <ColumnInfo>
  685. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  686. <Column id="lendrtnterm" type="STRING" size="256" sumtext="대출반환기간"/>
  687. <Column id="recvqualmthdcd" type="STRING" size="256" sumtext="수신확인방법"/>
  688. <Column id="plgydeptcd" type="STRING" size="256" sumtext="병리과"/>
  689. <Column id="plgyteamcd" type="STRING" size="256" sumtext="병리팀"/>
  690. <Column id="doctjobgradcd" type="STRING" size="256" sumtext="병리의사직급코드"/>
  691. <Column id="teamjobgradcd" type="STRING" size="256" sumtext="레지던트직급코드"/>
  692. <Column id="csteeqmtip" type="STRING" size="256" sumtext="Cassette장비IP"/>
  693. <Column id="csteeqmtport" type="STRING" size="256" sumtext="Cassette장비Port"/>
  694. <Column id="slideqmtip" type="STRING" size="256" sumtext="슬라이드장비IP"/>
  695. <Column id="norcptacptyn" type="STRING" size="256" sumtext="외래미수납접수여부"/>
  696. <Column id="slidbceqmtip" type="STRING" size="256" sumtext="슬라이드(라벨지)장비IP"/>
  697. <Column id="acptreaddr" type="STRING" size="256" sumtext="접수시점판독의지정여부"/>
  698. <Column id="slidbceqmtip2" type="STRING" size="256" sumtext="슬라이드(라벨지)장비IP2"/>
  699. <Column id="slidbceqmtport2" type="STRING" size="256" sumtext="슬라이드(라벨지)장비Port2"/>
  700. <Column id="repttitl" type="STRING" size="256" sumtext="보고서제목"/>
  701. <Column id="repttitl2" type="STRING" size="256" sumtext="자문의뢰제목"/>
  702. <Column id="plgyrecroom1" type="STRING" size="256" sumtext="병리과기록실1"/>
  703. <Column id="plgyrecroom2" type="STRING" size="256" sumtext="병리과기록실2"/>
  704. <Column id="ptnoacptflag" type="STRING" size="256" sumtext="병리번호접수구분"/>
  705. <Column id="autoacptflagcd" type="STRING" size="256" sumtext="자동접수구분"/>
  706. </ColumnInfo>
  707. <Rows>
  708. <Row/>
  709. </Rows>
  710. </Dataset>
  711. <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  712. <ColumnInfo>
  713. <Column id="sysdd" type="STRING" size="256"/>
  714. <Column id="systm" type="STRING" size="256"/>
  715. </ColumnInfo>
  716. </Dataset>
  717. <Dataset id="ds_prcpkindlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  718. <ColumnInfo>
  719. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  720. <Column id="lvl" type="STRING" size="256" sumtext="Level"/>
  721. <Column id="earncls1" type="STRING" size="256" sumtext="수익분류1"/>
  722. <Column id="earncls2" type="STRING" size="256" sumtext="수익분류2"/>
  723. <Column id="earncls3" type="STRING" size="256" sumtext="수익분류3"/>
  724. <Column id="earnclsnm" type="STRING" size="256" sumtext="수익분류명"/>
  725. <Column id="earnclskey" type="STRING" size="256" sumtext="수익분류Key"/>
  726. </ColumnInfo>
  727. </Dataset>
  728. <Dataset id="ds_coophosplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  729. <ColumnInfo>
  730. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  731. <Column id="coophospcd" type="STRING" size="256" sumtext="요청기관코드"/>
  732. <Column id="coophospnm" type="STRING" size="256" sumtext="요청기관명"/>
  733. <Column id="uncocd" type="STRING" size="256" sumtext="요청일자"/>
  734. </ColumnInfo>
  735. <Rows>
  736. <Row>
  737. <Col id="coophospcd">00</Col>
  738. </Row>
  739. </Rows>
  740. </Dataset>
  741. <Dataset id="ds_init_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  742. <ColumnInfo>
  743. <Column id="userid" type="STRING" size="256"/>
  744. <Column id="usernm" type="STRING" size="256"/>
  745. <Column id="jobkindcd" type="STRING" size="256"/>
  746. </ColumnInfo>
  747. <Rows>
  748. <Row/>
  749. </Rows>
  750. </Dataset>
  751. <Dataset id="ds_userinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  752. <ColumnInfo>
  753. <Column id="choi" type="STRING" size="256" sumtext="선택"/>
  754. <Column id="dutplceinstcd" type="STRING" size="256" sumtext="기관코드"/>
  755. <Column id="userid" type="STRING" size="256" sumtext="사용자ID"/>
  756. <Column id="usernm" type="STRING" size="256" sumtext="사용자명"/>
  757. <Column id="jobkindcd" type="STRING" size="256" sumtext="직종구분코드"/>
  758. <Column id="userabbr" type="STRING" size="256" sumtext="직종구분코드"/>
  759. <Column id="mpphonno" type="STRING" size="256" sumtext="직종구분코드"/>
  760. </ColumnInfo>
  761. <Rows>
  762. <Row/>
  763. </Rows>
  764. </Dataset>
  765. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  766. <ColumnInfo>
  767. <Column id="prcpdrid" type="STRING" size="256"/>
  768. <Column id="reqfromdd" type="STRING" size="256"/>
  769. <Column id="reqtodd" type="STRING" size="256"/>
  770. <Column id="reqpid" type="STRING" size="256"/>
  771. <Column id="reqinstcd" type="STRING" size="256"/>
  772. </ColumnInfo>
  773. <Rows>
  774. <Row/>
  775. </Rows>
  776. </Dataset>
  777. <Dataset id="ds_patinfocnts" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  778. <ColumnInfo>
  779. <Column id="exlabcd" type="STRING" size="256"/>
  780. <Column id="pid" type="STRING" size="256"/>
  781. <Column id="patnm" type="STRING" size="256"/>
  782. <Column id="rrgstno1" type="STRING" size="256"/>
  783. <Column id="rrgstno2" type="STRING" size="256"/>
  784. <Column id="rrgstno" type="STRING" size="256"/>
  785. <Column id="psptno" type="STRING" size="256"/>
  786. <Column id="age" type="STRING" size="256"/>
  787. <Column id="sex" type="STRING" size="256"/>
  788. <Column id="bigo" type="STRING" size="256"/>
  789. <Column id="suppkind" type="STRING" size="256"/>
  790. <Column id="uncocd" type="STRING" size="256"/>
  791. <Column id="trusthosppid" type="STRING" size="256"/>
  792. </ColumnInfo>
  793. <Rows>
  794. <Row/>
  795. </Rows>
  796. </Dataset>
  797. <Dataset id="ds_lastpage" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  798. <ColumnInfo>
  799. <Column id="lastpage" type="STRING" size="256"/>
  800. </ColumnInfo>
  801. <Rows>
  802. <Row/>
  803. </Rows>
  804. </Dataset>
  805. <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  806. <ColumnInfo>
  807. <Column id="srchcond" type="STRING" size="256"/>
  808. <Column id="pid" type="STRING" size="256"/>
  809. <Column id="hngnm" type="STRING" size="256"/>
  810. <Column id="rrgstno1" type="STRING" size="256"/>
  811. <Column id="rrgstno2" type="STRING" size="256"/>
  812. </ColumnInfo>
  813. <Rows/>
  814. </Dataset>
  815. <Dataset id="ds_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  816. <ColumnInfo>
  817. <Column id="label" type="STRING" size="256"/>
  818. <Column id="value" type="STRING" size="256"/>
  819. </ColumnInfo>
  820. <Rows>
  821. <Row>
  822. <Col id="label">수탁</Col>
  823. <Col id="value">12</Col>
  824. </Row>
  825. <Row>
  826. <Col id="label">30%가산안함</Col>
  827. <Col id="value">13</Col>
  828. </Row>
  829. </Rows>
  830. </Dataset>
  831. </Objects>
  832. <Bind>
  833. <BindItem id="item0" compid="grp_biz.swt_trust.case_list.grp_sea.ipt_prcpfromdd" propid="value" datasetid="ds_init" columnid="reqfromdd"/>
  834. <BindItem id="item1" compid="grp_biz.swt_trust.case_list.grp_sea.ipt_prcptodd" propid="value" datasetid="ds_init" columnid="reqtodd"/>
  835. <BindItem id="item2" compid="grp_biz.swt_trust.case_list.grp_sea.combo1" propid="value" datasetid="ds_init" columnid="reqinstcd"/>
  836. <BindItem id="item3" compid="grp_biz.swt_trust.case_list.grp_sea.input1" propid="value" datasetid="ds_init" columnid="reqpid"/>
  837. <BindItem id="item4" compid="grp_biz.cmb_orddrid" propid="value" datasetid="ds_init" columnid="prcpdrid"/>
  838. <BindItem id="item5" compid="grp_biz.swt_trust.case_single.ipt_psptno" propid="value" datasetid="ds_patinfocnts" columnid="psptno"/>
  839. <BindItem id="item6" compid="grp_biz.swt_trust.case_single.ipt_bigo" propid="value" datasetid="ds_patinfocnts"/>
  840. <BindItem id="item7" compid="grp_biz.swt_trust.case_single.ipt_rrgstno2" propid="value" datasetid="ds_patinfocnts" columnid="rrgstno2"/>
  841. <BindItem id="item8" compid="grp_biz.swt_trust.case_single.ipt_rrgstno1" propid="value" datasetid="ds_patinfocnts" columnid="rrgstno1"/>
  842. <BindItem id="item9" compid="grp_biz.swt_trust.case_single.ipt_trusthosppid" propid="value" datasetid="ds_patinfocnts" columnid="trusthosppid"/>
  843. <BindItem id="item10" compid="grp_biz.swt_trust.case_single.ipt_patnm" propid="value" datasetid="ds_patinfocnts" columnid="patnm"/>
  844. <BindItem id="item11" compid="grp_biz.swt_trust.case_single.ipt_pid" propid="value" datasetid="ds_patinfocnts" columnid="pid"/>
  845. <BindItem id="item12" compid="grp_biz.swt_trust.case_single.cmb_suppkind" propid="value" datasetid="ds_patinfocnts" columnid="suppkind"/>
  846. <BindItem id="item13" compid="grp_biz.swt_trust.case_single.cmb_sex" propid="value" datasetid="ds_patinfocnts" columnid="sex"/>
  847. <BindItem id="item14" compid="grp_biz.swt_trust.case_single.ipt_age" propid="value" datasetid="ds_patinfocnts" columnid="age"/>
  848. <BindItem id="item15" compid="grp_biz.swt_trust.case_single.cmb_exlabcd" propid="value" datasetid="ds_patinfocnts" columnid="exlabcd"/>
  849. </Bind>
  850. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  851. * System Name :
  852. * Job Name :
  853. * Creator :
  854. * Make Date : 2015-11-13
  855. * Description :
  856. *---------------------------------------------------------------------------------------
  857. * Modify Date Modifier Modify Description
  858. *---------------------------------------------------------------------------------------
  859. * 2015-11-13 Live Converter TF->XP
  860. *
  861. *---------------------------------------------------------------------------------------
  862. ****************************************************************************************/
  863. include "com_commonxp::comm_main.xjs";
  864. include "lis_commonxp::LPZ001.xjs";
  865. function SPLPJ02300_oninit(obj:Form, e:InitEventInfo)
  866. {
  867. frmf_initForm(obj);
  868. }
  869. function SPLPJ02300_onload(obj:Form, e:LoadEventInfo)
  870. {
  871. grdf_initGrid(grp_biz.swt_trust.case_list.grd_trustlist);
  872. grdf_initGrid(grp_biz.swt_trust.case_single.trv_prcpkind);
  873. grdf_initGrid(grp_biz.swt_trust.case_single.grd_testcdlist);
  874. grdf_initGrid(grp_biz.swt_trust.case_single.grd_spclist);
  875. grdf_initGrid(grp_biz.swt_trust.case_single.grd_choiprcp);
  876. grdf_initGrid(grp_biz.swt_trust.case_single.grd_trustpatlist);
  877. grdf_initGrid(grp_biz.swt_trust.case_single.grd_acptpatlist);
  878. fExeInitialize();
  879. }
  880. function fExeInitialize()
  881. {
  882. //------------------------
  883. // model.toggle("case_list");
  884. // btn_trustlist.selected = true;
  885. // model.removeNodeset("/root/main/trusttest/trusttestlist");
  886. // model.removeNodeset("/root/init/prcpcd/prcpcdlist");
  887. // model.removeNodeset("/root/init/testinfo/testinfolist");
  888. // model.removeNodeset("/root/main/choiprcp/choiprcplist");
  889. // model.removeNodeset("/root/main/acptpat/acptpatlist");
  890. //----------------
  891. // 시스템일자 조회
  892. // model.removeNodeset("/root/send");
  893. // model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  894. dsf_createDsRow("ds_send", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}
  895. ,{col: "deptflagcd", val: "1"}]);
  896. // model.makeValue("/root/send/deptflagcd", "1"); // 0:진단검사, 1:병리과
  897. // submit("TRLPZ00101", false);
  898. var oParam = {};
  899. oParam.id = "TRLPZ00101";
  900. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  901. oParam.method = "reqGetHospitalEnvironmentSetInfo";
  902. oParam.inds = "refData=ds_send";
  903. oParam.outds = "ds_hospenvinfo=hospenvinfo";
  904. oParam.async = false;
  905. //oParam.callback = "cf_TRLPZ00101";
  906. tranf_submit(oParam);
  907. var oParam = {};
  908. oParam.id = "TRLPZ00102";
  909. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  910. oParam.method = "reqGetSystemDateTimeInformation";
  911. oParam.inds = "refData=ds_send";
  912. oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
  913. oParam.async = false;
  914. //oParam.callback = "cf_TRLPZ00102";
  915. tranf_submit(oParam);
  916. // submit("TRLPZ00102", false);
  917. // submit("TRLPJ01001", false);
  918. var oParam = {};
  919. oParam.id = "TRLPJ01001";
  920. oParam.service = "plgyacptmngtapp.SpecimenAccept";
  921. oParam.method = "reqGetPrcpKindList";
  922. oParam.inds = "refData=ds_send";
  923. oParam.outds = "ds_prcpkindlist=reflist";
  924. oParam.async = false;
  925. //oParam.callback = "cf_TRLPJ01001";
  926. tranf_submit(oParam);
  927. // submit("TRLPJ02302", false);
  928. dsf_createDsRow("ds_send", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}
  929. ,{col: "deptflagcd", val: "0"}]);
  930. var oParam = {};
  931. oParam.id = "TRLPJ02302";
  932. oParam.service = "plgyacptmngtapp.SpecimenAccept";
  933. oParam.method = "reqGetCoopHospList";
  934. oParam.inds = "refData=ds_send";
  935. oParam.outds = "ds_coophosplist=reflist";
  936. oParam.async = false;
  937. //oParam.callback = "cf_TRLPJ02302";
  938. tranf_submit(oParam);
  939. //lpzfUserDeptCd("/root/init/hospenv/hospenvinfo", "/root/init/userinfo");
  940. lpzfUserDeptCd(ds_hospenvinfo, ds_init_userinfo);
  941. //model.makeValue("/root/send/userdeptcd", model.getValue("/root/init/userinfo/userdeptcd"));
  942. //model.makeValue("/root/send/doctjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/doctjobgradcd"));
  943. //model.makeValue("/root/send/teamjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/teamjobgradcd"));
  944. var userdeptcd = sysf_getUserInfo("dutplcecd");
  945. dsf_createDsRow("ds_send", [{col: "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  946. ,{col: "userdeptcd", val : userdeptcd}
  947. ,{col: "doctjobgradcd", val : ds_hospenvinfo.getColumn(0, "doctjobgradcd")}
  948. ,{col: "teamjobgradcd", val : ds_hospenvinfo.getColumn(0, "teamjobgradcd")}]);
  949. //submit("TRLPZ00105", false);
  950. var oParam = {};
  951. oParam.id = "TRLPZ00105";
  952. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  953. oParam.method = "reqGetUserInfoList";
  954. oParam.inds = "refdata=ds_send";
  955. oParam.outds = "ds_userinfolist=reflist";
  956. oParam.async = false;
  957. //oParam.callback = "cf_TRLPZ00105";
  958. tranf_submit(oParam);
  959. fdsf_createDsFilter("ds_doctor", "ds_userinfolist", "jobkindcd=='1'");
  960. grp_biz.cmb_orddrid.innerdataset = ds_doctor;
  961. grp_biz.cmb_orddrid.codecolumn = "userid";
  962. grp_biz.cmb_orddrid.datacolumn = "usernm";
  963. //model.makeValue("/root/send/codeflag", "0110|"); // 0110 외부기관
  964. //submit("TRLZZ00101");
  965. //-----------------------------------------------------------------------------------------------
  966. //zbcfGetCodeList(new Array("Z0007"), new Array("/root/init/instcdlist", "/root/init/instcdlist"));
  967. //------------
  968. // 초기값 설정
  969. //model.makeValue("/root/init/reqfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 요청일자(From)
  970. //model.makeValue("/root/init/reqtodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 요청일자(To)
  971. //model.makeValue("/root/init/reqpid", ""); // 요청등록번호
  972. //model.makeValue("/root/init/reqinstcd", ""); // 요청기관
  973. //model.makeValue("/root/init/prcpdrid", ""); // 병리과 처방의사
  974. ds_init.setColumn(0, "reqfromdd", ds_data_sysdtinfo.getColumn(0, "sysdd"));
  975. ds_init.setColumn(0, "reqtodd", ds_data_sysdtinfo.getColumn(0, "sysdd"));
  976. ds_init.setColumn(0, "reqpid", "");
  977. ds_init.setColumn(0, "reqinstcd", "");
  978. ds_init.setColumn(0, "prcpdrid", "");
  979. //model.makeValue("/root/main/patinfo/patinfocnts/suppkind", "13"); // 30% 가산안함
  980. ds_patinfocnts.setColumn(0, "suppkind", "13");
  981. //model.makeValue("/root/main/patinfo/patinfocnts/uncocd", ""); // 미수코드
  982. ds_patinfocnts.setColumn(0, "uncocd", "");
  983. //------------------------------------------
  984. //grd_trustlist.fixedcellcheckbox(0,0) = true;
  985. //--------------------
  986. //cmb_exlabcd.refresh();
  987. //model.refresh();
  988. }
  989. function fGetTrustTestList()
  990. {
  991. // //--------------------------------
  992. // model.removeNodeset("/root/send");
  993. // model.removeNodeset("/root/main/trusttest/trusttestlist");
  994. //
  995. //-----------------------------------------------------------------
  996. // model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  997. // model.makeValue("/root/send/deptflagcd", "P");
  998. // model.makeValue("/root/send/reqfromdd", model.getValue("/root/init/reqfromdd")); // 요청일자(From)
  999. // model.makeValue("/root/send/reqtodd", model.getValue("/root/init/reqtodd")); // 요청일자(To)
  1000. // model.makeValue("/root/send/reqpid", model.getValue("/root/init/reqpid")); // 요청등록번호
  1001. // model.makeValue("/root/send/reqinstcd", model.getValue("/root/init/reqinstcd")); // 요청기관
  1002. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  1003. ,{col : "deptflagcd", val : "P"}
  1004. ,{col : "reqfromdd", val : ds_init.getColumn(0, "reqfromdd")}
  1005. ,{col : "reqtodd", val : ds_init.getColumn(0, "reqtodd")}
  1006. ,{col : "reqpid", val : ds_init.getColumn(0, "reqpid")}
  1007. ,{col : "reqinstcd", val : ds_init.getColumn(0, "reqinstcd")}]);
  1008. //-------------------
  1009. //submit("TRLPJ02301");
  1010. var oParam = {};
  1011. oParam.id = "TRLPJ02301";
  1012. oParam.service = "plgyacptmngtapp.SpecimenAccept";
  1013. oParam.method = "reqGetTrustTestList";
  1014. oParam.inds = "refData=ds_send";
  1015. oParam.outds = "ds_grd_trustlist=refrslt";
  1016. oParam.async = false;
  1017. //oParam.callback = "cf_TRLPJ02301";
  1018. tranf_submit(oParam);
  1019. }
  1020. function fExeTrustChange(pBizFlagCd)
  1021. {
  1022. if (pBizFlagCd == "1")
  1023. {
  1024. grp_btn.btn_acpt.visible = true;
  1025. grp_btn.btn_prcp.visible = false;
  1026. grp_btn.btn_patlistread.visible = false;
  1027. }
  1028. else
  1029. {
  1030. grp_btn.btn_acpt.visible = true;
  1031. grp_btn.btn_prcp.visible = false;
  1032. grp_btn.btn_patlistread.visible = false;
  1033. }
  1034. }
  1035. function fExePrcpKindClick()
  1036. {
  1037. var sEarnCls1 = "";
  1038. var sEarnCls2 = "";
  1039. var sEarnCls3 = "";
  1040. //var item = trv_prcpkind.item(trv_prcpkind.selectedIndex);
  1041. var indx = ds_prcpkindlist.rowposition;
  1042. //-------------------------------
  1043. // 최하위 노드를 선택할 경우 처리
  1044. //if (item.depth == 2)
  1045. if (grp_biz.swt_trust.case_single.trv_prcpkind.isTreeLeafRow(indx) == true ) // 최종 노드를 클릭했을때만 적용되도록 함.
  1046. {
  1047. //sEarnCls1 = trv_prcpkind.item(trv_prcpkind.selectedIndex).value;
  1048. //var prcpclscd = ds_prcpclscdlist.getColumn(indx,"prcpclscd");
  1049. sEarnCls1 = ds_prcpkindlist.getColumn(indx, "earnclskey");
  1050. //--------------
  1051. // 처방분류 분리
  1052. sEarnCls3 = sEarnCls1.substr(5,2);
  1053. sEarnCls2 = sEarnCls1.substr(3,2);
  1054. sEarnCls1 = sEarnCls1.substr(1,2);
  1055. //--------------------------------
  1056. // model.removeNodeset("/root/send");
  1057. // model.removeNodeset("/root/init/prcpcd/prcpcdlist");
  1058. // model.removeNodeset("/root/init/testinfo/testinfolist");
  1059. ds_send.clear();
  1060. //
  1061. //----------------------------------------------------------------------
  1062. // model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  1063. // model.makeValue("/root/send/earncls1", sEarnCls1);
  1064. // model.makeValue("/root/send/earncls2", sEarnCls2);
  1065. // model.makeValue("/root/send/earncls3", sEarnCls3);
  1066. // model.makeValue("/root/send/trustflagcd", "N");
  1067. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  1068. ,{col : "earncls1", val : sEarnCls1}
  1069. ,{col : "earncls2", val : sEarnCls2}
  1070. ,{col : "earncls3", val : sEarnCls3}
  1071. ,{col : "trustflagcd", val : "N"}
  1072. ,{col : "bizflagcd", val : "0"}]);
  1073. //-------------------
  1074. //submit("TRLPJ01003");
  1075. var oParam = {};
  1076. oParam.id = "TRLPJ01003";
  1077. oParam.service = "plgyacptmngtapp.SpecimenAccept";
  1078. oParam.method = "reqGetPrcpCdList";
  1079. oParam.inds = "refData=ds_send";
  1080. oParam.outds = "ds_grd_testcdlist=reflist";
  1081. oParam.async = false;
  1082. //oParam.callback = "cf_TRLPJ01003";
  1083. tranf_submit(oParam);
  1084. }
  1085. }
  1086. function fExePrcpChoi()
  1087. {
  1088. var iFindRow = 0;
  1089. var sSpcCd = "";
  1090. //var sPrcpNode = "/root/init/prcpcd/prcpcdlist";
  1091. var sPrcpNode = ds_grd_testcdlist;
  1092. //var sSpcNode = "/root/init/testinfo/testinfolist";
  1093. var sSpcNode = ds_grd_spclist;
  1094. //------------------------------------------------------------------------------------------
  1095. //if (grd_testcdlist.isCell(event.target) && grd_testcdlist.row >= grd_testcdlist.fixedRows)
  1096. //{
  1097. //---------------------
  1098. // 선택된 검체코드 저장
  1099. //if (getNodesetCount(sSpcNode) > 0)
  1100. if(ds_grd_spclist.rowcount >= 0)
  1101. {
  1102. //if (grd_spclist.row > 0)
  1103. if(ds_grd_spclist.rowposition >= 0)
  1104. {
  1105. //sSpcCd = model.getValue(sSpcNode+"["+grd_spclist.row+"]/spccd");
  1106. sSpCd = ds_grd_spclist.getColumn(ds_grd_spclist.rowposition, "spccd");
  1107. }
  1108. }
  1109. //--------------------------------
  1110. //model.removeNodeset("/root/send");
  1111. //model.resetInstanceNode("/root/init/testinfo/testinfolist");
  1112. //-------------------------------------------
  1113. dsf_createDsRow("ds_send", [{col: "delflagcd", val: "0"} // 조회조건 사용여부구분
  1114. ,{col: "refflagcd", val: "1"} // 조회구분
  1115. ,{col: "refval", val: ds_grd_spclist.getColumn(ds_grd_spclist.rowposition, "testcd")}// 조회값
  1116. ,{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}// 기관코드
  1117. ,{col: "itemlimit", val: "5000"} // 최대건수
  1118. ,{col: "page", val: "1"}]); // 페이지번호
  1119. // model.makeValue("/root/send/delflagcd", "0");
  1120. // model.makeValue("/root/send/refflagcd", "1");
  1121. // model.makeValue("/root/send/refval", model.getValue(sPrcpNode+"["+grd_testcdlist.row+"]/testcd"));
  1122. // model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  1123. // model.makeValue("/root/send/itemlimit", "5000");
  1124. // model.makeValue("/root/send/page", "1");
  1125. //-------------------
  1126. //submit("TRLPC00701");
  1127. var oParam = {};
  1128. oParam.id = "TRLPC00701";
  1129. oParam.service = "plgybaseinfomngtapp.TestInfo";
  1130. oParam.method = "reqGetTestInfoList";
  1131. oParam.inds = "refData=ds_send";
  1132. oParam.outds = "ds_grd_spclist=refrslt ds_lastpage=lastpage";
  1133. oParam.async = false;
  1134. //oParam.callback = "cf_TRLPC00701";
  1135. tranf_submit(oParam);
  1136. //--------------------------------------------
  1137. // 저장된 검체와 같은 검체를 검색하여 자동선택
  1138. //if (getNodesetCount(sSpcNode) > 0)
  1139. if(ds_grd_spclist.rowcount >= 0)
  1140. {
  1141. //-----------------
  1142. if ( !utlf_isNull(sSpcCd))
  1143. {
  1144. //---------------------------------------------------------
  1145. //var irow = datagrid1.findRow(rgstdd, 1, datagrid1.colRef("rgstdd"), false, false);
  1146. //var irow = ds_datagrid1.findRow(rgstdd, 1, ds_datagrid1.setColumn(0, "rgstdd"), 1, 1);
  1147. //iFindRow = grd_spclist.findRow(sSpcCd, 1, 3, false, false);
  1148. iFindRow = ds_grd_spclist.findRow(sSpcCd, 1, ds_grd_spclist.setColumn(0, "spcnm"), 1,1);
  1149. //-----------------
  1150. if (iFindRow >= 0)
  1151. {
  1152. //grd_spclist.select(iFindRow, 0) = true;
  1153. grd_spclist.row = iFindRow;
  1154. //------------
  1155. fExePrcpAdd();
  1156. }
  1157. }
  1158. }
  1159. //}
  1160. }
  1161. //선택된 처방 추가 처리
  1162. function fExePrcpAdd()
  1163. {
  1164. var iMaxRowNo = 0;
  1165. //var sSrcNode = "/root/main/choiprcp/choiprcplist";
  1166. var sSrcNode = ds_grd_choiprcp;
  1167. //--------------------
  1168. //grp_biz.swt_trust.case_single.grd_choiprcp
  1169. ds_grd_choiprcp.addRow();
  1170. //iMaxRowNo = getNodesetCount(sSrcNode);
  1171. iMaxRowNo = ds_grd_choiprcp.rowposition;
  1172. //----------------------------------------------------------------------------------
  1173. // model.makeValue(sSrcNode+"["+iMaxRowNo+"]/instcd", getUserInfo("dutplceinstcd"));
  1174. // model.makeValue(sSrcNode+"["+iMaxRowNo+"]/testcd", model.getValue("/root/init/prcpcd/prcpcdlist["+grd_testcdlist.row+"]/testcd"));
  1175. // model.makeValue(sSrcNode+"["+iMaxRowNo+"]/testhngnm", model.getValue("/root/init/prcpcd/prcpcdlist["+grd_testcdlist.row+"]/testhngnm"));
  1176. // model.makeValue(sSrcNode+"["+iMaxRowNo+"]/testengnm", model.getValue("/root/init/prcpcd/prcpcdlist["+grd_testcdlist.row+"]/testengnm"));
  1177. // model.makeValue(sSrcNode+"["+iMaxRowNo+"]/spccd", model.getValue("/root/init/testinfo/testinfolist["+grd_spclist.row+"]/spccd"));
  1178. // model.makeValue(sSrcNode+"["+iMaxRowNo+"]/spcnm", model.getValue("/root/init/testinfo/testinfolist["+grd_spclist.row+"]/spcnm"));
  1179. ds_grd_choiprcp.setColumn(iMaxRowNo, "instcd", sysf_getUserInfo("dutplceinstcd"));
  1180. ds_grd_choiprcp.setColumn(iMaxRowNo, "testcd", ds_grd_testcdlist.getColumn(ds_grd_testcdlist.rowposition, "testcd"));
  1181. ds_grd_choiprcp.setColumn(iMaxRowNo, "testhngnm", ds_grd_testcdlist.getColumn(ds_grd_testcdlist.rowposition, "testhngnm"));
  1182. ds_grd_choiprcp.setColumn(iMaxRowNo, "testengnm", ds_grd_testcdlist.getColumn(ds_grd_testcdlist.rowposition, "testengnm"));
  1183. ds_grd_choiprcp.setColumn(iMaxRowNo, "spccd", ds_grd_spclist.getColumn(ds_grd_spclist.rowposition, "spccd"));
  1184. ds_grd_choiprcp.setColumn(iMaxRowNo, "spcnm", ds_grd_spclist.getColumn(ds_grd_spclist.rowposition, "spcnm"));
  1185. }
  1186. function fExeSpcChoi()
  1187. {
  1188. //---------------------------------------------------------------------------------
  1189. //if (grd_spclist.isCell(event.target) && grd_spclist.row >= grd_spclist.fixedRows)
  1190. //{
  1191. fExePrcpAdd();
  1192. //}
  1193. }
  1194. function fExePatTempSave()
  1195. {
  1196. //var sSrcNode = "/root/main/patinfo/patinfocnts";
  1197. var sSrcNode = ds_patinfocnts;
  1198. //var sDescNode = "/root/main/acptpat/acptpatlist";
  1199. var sDescNode = ds_grd_acptpatlist;
  1200. var iRowNo = 0;
  1201. //------------------------------------------------------------
  1202. //if (!isRequiredControls("cmb_orddrid", "ipt_trusthosppid"))
  1203. //
  1204. if( !frmf_isRequiredControls(new Array("grp_biz.cmb_orddrid","grp_biz.swt_trust.case_single.ipt_trusthosppid")))
  1205. {
  1206. return false;
  1207. }
  1208. //-----------------------
  1209. ds_grd_acptpatlist.addRow();
  1210. //iRowNo = Number(getNodesetCount(sDescNode));
  1211. iRowNo = Number(ds_grd_acptpatlist.rowposition);
  1212. //-------------------------------------------------------------------------------------
  1213. // model.makeValue(sDescNode+"["+iRowNo+"]/instcd", getUserInfo("dutplceinstcd"));
  1214. ds_grd_acptpatlist.setColumn(iRowNo, "instcd", sysf_getUserInfo("dutplceinstcd"));
  1215. // model.makeValue(sDescNode+"["+iRowNo+"]/exlabcd", model.getValue(sSrcNode+"/exlabcd"));
  1216. ds_grd_acptpatlist.setColumn(iRowNo, "exlabcd", ds_patinfocnts.getColumn(0, "exlabcd"));
  1217. // model.makeValue(sDescNode+"["+iRowNo+"]/exlabnm", model.getValue("/root/init/coophosp/coophosplist[coophospcd='"+model.getValue(sSrcNode+"/exlabcd")+"']/coophospnm"));
  1218. ds_grd_acptpatlist.setColumn(iRowNo, "exlabnm", ds_coophosplist.getColumn(ds_patinfocnts.getColumn(0, "exlabcd", "coophospnm")));
  1219. // model.makeValue(sDescNode+"["+iRowNo+"]/pid", model.getValue(sSrcNode+"/pid"));
  1220. ds_grd_acptpatlist.setColumn(iRowNo, "pid", ds_patinfocnts.getColumn(0, "pid"));
  1221. // model.makeValue(sDescNode+"["+iRowNo+"]/patnm", model.getValue(sSrcNode+"/patnm"));
  1222. ds_grd_acptpatlist.setColumn(iRowNo, "patnm", ds_patinfocnts.getColumn(0, "patnm"));
  1223. // model.makeValue(sDescNode+"["+iRowNo+"]/sex", model.getValue(sSrcNode+"/sex"));
  1224. ds_grd_acptpatlist.setColumn(iRowNo, "sex", ds_patinfocnts.getColumn(0, "sex"));
  1225. // model.makeValue(sDescNode+"["+iRowNo+"]/age", model.getValue(sSrcNode+"/age"));
  1226. ds_grd_acptpatlist.setColumn(iRowNo, "age", ds_patinfocnts.getColumn(0, "age"));
  1227. // model.makeValue(sDescNode+"["+iRowNo+"]/sexage", model.getValue(sSrcNode+"/sex")+"/"+model.getValue(sSrcNode+"/age"));
  1228. ds_grd_acptpatlist.setColumn(iRowNo, "sexage", grp_biz.swt_trust.case_single.cmb_sex.text+"/"+grp_biz.swt_trust.case_single.ipt_age.text);
  1229. // model.makeValue(sDescNode+"["+iRowNo+"]/rrgstno1", model.getValue(sSrcNode+"/rrgstno1"));
  1230. ds_grd_acptpatlist.setColumn(iRowNo, "rrgstno1", ds_patinfocnts.getColumn(0, "rrgstno1"));
  1231. // model.makeValue(sDescNode+"["+iRowNo+"]/rrgstno2", model.getValue(sSrcNode+"/rrgstno2"));
  1232. ds_grd_acptpatlist.setColumn(iRowNo, "rrgstno2", ds_patinfocnts.getColumn(0, "rrgstno2"));
  1233. // model.makeValue(sDescNode+"["+iRowNo+"]/rrgstno", model.getValue(sSrcNode+"/rrgstno1")+"-"+model.getValue(sSrcNode+"/rrgstno2"));
  1234. ds_grd_acptpatlist.setColumn(iRowNo, "rrgstno", grp_biz.swt_trust.case_single.ipt_rrgstno1.text + "-" + grp_biz.swt_trust.case_single.ipt_rrgstno2.text);
  1235. // model.makeValue(sDescNode+"["+iRowNo+"]/psptno", model.getValue(sSrcNode+"/psptno"));
  1236. ds_grd_acptpatlist.setColumn(iRowNo, "psptno", ds_patinfocnts.getColumn(0, "psptno"));
  1237. // model.makeValue(sDescNode+"["+iRowNo+"]/bigo", model.getValue(sSrcNode+"/bigo"));
  1238. ds_grd_acptpatlist.setColumn(iRowNo, "bigo", ds_patinfocnts.getColumn(0, "bigo"));
  1239. // model.makeValue(sDescNode+"["+iRowNo+"]/bizflagcd", "2");
  1240. ds_grd_acptpatlist.setColumn(iRowNo, "bizflagcd", "2");
  1241. // model.makeValue(sDescNode+"["+iRowNo+"]/orddrid", model.getValue("/root/init/prcpdrid"));
  1242. ds_grd_acptpatlist.setColumn(iRowNo, "orddrid", ds_init.getColumn(0, "prcpdrid"));
  1243. // model.makeValue(sDescNode+"["+iRowNo+"]/orddeptcd", model.getValue("/root/init/hospenv/hospenvinfo/plgydeptcd"));
  1244. ds_grd_acptpatlist.setColumn(iRowNo, "orddeptcd", ds_hospenvinfo.getColumn(0, "plgydeptcd"));
  1245. // model.makeValue(sDescNode+"["+iRowNo+"]/grotestsplgyid", getUserInfo("userid"));
  1246. ds_grd_acptpatlist.setColumn(iRowNo, "grotestsplgyid", sysf_getUserInfo("userid"));
  1247. // model.makeValue(sDescNode+"["+iRowNo+"]/suppkind", model.getValue(sSrcNode+"/suppkind"));
  1248. ds_grd_acptpatlist.setColumn(iRowNo, "suppkind", ds_patinfocnts.getColumn(0, "suppkind"));
  1249. //alert(ds_grd_acptpatlist.setColumn(iRowNo, "suppkind", ds_patinfocnts.getColumn(0, "suppkind")));
  1250. // model.makeValue(sDescNode+"["+iRowNo+"]/uncocd", model.getValue(sSrcNode+"/uncocd"));
  1251. ds_grd_acptpatlist.setColumn(iRowNo, "uncocd", ds_patinfocnts.getColumn(0, "uncocd"));
  1252. // model.makeValue(sDescNode+"["+iRowNo+"]/trusthosppid", model.getValue(sSrcNode+"/trusthosppid"));
  1253. ds_grd_acptpatlist.setColumn(iRowNo, "trusthosppid", ds_patinfocnts.getColumn(0, "trusthosppid"));
  1254. //
  1255. //--------------
  1256. }
  1257. function fExePrcpSave(pBizFlagCd)
  1258. {
  1259. var sTemp = "";
  1260. var bState = false;
  1261. var sPtNo = "";
  1262. //var sSrcNode1 = "/root/main/trusttest/trusttestlist";
  1263. var sSrcNode1 = ds_grd_trustlist;
  1264. //--------------------------------
  1265. // 수탁검사목록을 접수할 경우 처리
  1266. if (pBizFlagCd == "1")
  1267. {
  1268. //---------------------------------------
  1269. if(!frmf_isRequiredControls(new Array("grp_biz.cmb_orddrid")))
  1270. {
  1271. return false;
  1272. }
  1273. //--------------------------
  1274. //grd_trustlist.clearStatus();
  1275. //model.resetInstanceNode("/root/main/patinfo/patinfocnts");
  1276. //model.removeNodeset("/root/main/choiprcp/choiprcplist");
  1277. //---------------------------------------------------------
  1278. //for (var iNo=1; iNo <= getNodesetCount(sSrcNode1); iNo++)
  1279. for(var iNo = 0; iNo <= ds_grd_trustlist.rowcount; iNo++)
  1280. {
  1281. //if (model.getValue(sSrcNode1+"["+iNo+"]/choi") == "true")
  1282. if(ds_grd_trustlist.getColumn(iNo, "choi") == "1")
  1283. {
  1284. //-------------------------------------------------------------------------------
  1285. //var sNode = instance1.selectSingleNode(sSrcNode1+"["+iNo+"]/reqcnts/reqfrminfo");
  1286. //var sNode = instance1.selectSingleNode("/root/hidden/reqcntslist/trsttestlist["+ iRowNo +"]/reqcnts/reqfrminfo");
  1287. //var sNode = ds_hidden_reqcntslist.getColumn(ds_hidden_reqcntslist.findRow(iRowNo, "reqfrminfo"));
  1288. var sNode = ds_grd_trustlist.getColumn(iNo, "reqfrminfo");
  1289. //---------------------------------------------------------
  1290. //model.makeValue(sSrcNode1+"["+iNo+"]/bizflagcd", "1");
  1291. ds_grd_trustlist.setColumn(iNo, "bizflagcd", "1");
  1292. //model.makeValue(sSrcNode1+"["+iNo+"]/orddrid", model.getValue("/root/init/prcpdrid"));
  1293. ds_grd_trustlist.setColumn(iNo, "orddrid", ds_init.getColumn(0, "prcpdrid"));
  1294. //model.makeValue(sSrcNode1+"["+iNo+"]/orddeptcd", model.getValue("/root/init/hospenv/hospenvinfo/plgydeptcd"));
  1295. ds_grd_trustlist.setColumn(iNo, "orddeptcd", ds_hospenvinfo.getColumn(0, "plgydeptcd"));
  1296. //model.makeValue(sSrcNode1+"["+iNo+"]/grotestsplgyid", getUserInfo("userid"));
  1297. ds_grd_trustlist.setColumn(iNo, "grotestsplgyid", sysf_getUserInfo("userid"));
  1298. //model.makeValue(sSrcNode1+"["+iNo+"]/newreqcnts", sNode.xml);
  1299. ds_grd_trustlist.setColumn(iNo, "newreqcnts", sNode);
  1300. //grd_trustlist.addStatus(iNo, "insert");
  1301. var addRw = ds_grd_trustlist.rowposition;
  1302. var arrPostion = new Array();
  1303. arrPostion[0] = addRw;
  1304. grdf_setStatus(grp_biz.swt_trust.case_list.grd_trustlist, "I", arrPostion);
  1305. bState = true;
  1306. }
  1307. //-------------
  1308. if (!bState)
  1309. {
  1310. sysf_messageBox("접수할 수탁검사를 ", "C002");
  1311. return false;
  1312. }
  1313. }
  1314. }
  1315. else
  1316. {
  1317. //--------------------------------------
  1318. if (!frmf_isRequiredControls("cmb_orddrid"))
  1319. {
  1320. return false;
  1321. }
  1322. //if (getNodesetCount("/root/main/acptpat/acptpatlist") <= 0)
  1323. if(ds_grd_acptpatlist.rowcount <= 0)
  1324. {
  1325. sysf_messageBox("접수할 환자를 ", "C001");
  1326. return false;
  1327. }
  1328. //--------------------------
  1329. //grd_trustlist.clearStatus();
  1330. //-------------------------------------------------------------
  1331. //if (getNodesetCount("/root/main/choiprcp/choiprcplist") <= 0)
  1332. if(ds_grd_choiprcp.rowcount <=0)
  1333. {
  1334. sysf_messageBox("처방등록할 수탁검사를 ", "C002");
  1335. return false;
  1336. }
  1337. }
  1338. //--------------------------------------------------------------------------------------
  1339. // model.makeValue("/root/main/patinfo/patinfocnts/instcd", getUserInfo("dutplceinstcd"));
  1340. // model.makeValue("/root/main/patinfo/patinfocnts/pid", "");
  1341. dsf_createDsRow("ds_patinfocnts", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}
  1342. ,{col: "pid", val: ""}]);
  1343. //--------------------------------
  1344. //model.removeNodeset("/root/send");
  1345. ds_send.clearData();
  1346. //model.makeNode("/root/send/patinfo");
  1347. dsf_createDsRow("ds_send", [{col : "patinfo", val : ds_patinfocnts}
  1348. ,{col : "choiprcplist", val : grdf_getGridUpdateData(grp_biz.swt_trust.case_single.grd_choiprcp, "insert")}
  1349. ,{col : "patlist", val : grdf_getGridUpdateData(grp_biz.swt_trust.case_single.grd_acptpatlist,"insert")}
  1350. ,{col : "trusttestlist", val : grdf_getGridUpdateData(grp_biz.swt_trust.case_list.grd_trustlist,"insert")}
  1351. ,{col : "bizflagcd", val : pBizFlagCd}
  1352. ,{col : "orddrid", val : ds_init.getColumn(0, "prcpdrid")}
  1353. ,{col : "orddeptcd", val : ds_hospenvinfo.getColumn(0, "plgydeptcd")}
  1354. ,{col : "grotestsplgyid", val : sysf_getUserInfo("userid")}]);
  1355. //model.makeValue("/root/send/indate",grd_dracptlist.getupdatedataAll("i"));agetGridUpdateData(group3.grd_dracptlist),"replace");
  1356. //copyNodesetType("/root/send/patinfo", "/root/main/patinfo/patinfocnts");
  1357. //model.makeValue("/root/send/indate",grd_dracptlist.getupdatedataAll("i"));
  1358. dsf_copyDs(ds_send_dracptlist,grdf_getGridUpdateData(group3.grd_dracptlist),"replace");
  1359. //model.makeValue("/root/send/choiprcplist", grd_choiprcp.getUpdateDataAll("i"));
  1360. dsf_copyDs(ds_send_choiprcplist, grdf_getGridUpdateData(grp_biz.swt_trust.case_single.grd_choiprcp),"replace");
  1361. //model.makeValue("/root/send/patlist", grd_acptpatlist.getUpdateDataAll("i"));
  1362. dsf_copyDs(ds_send.patlist, grdf_getGridUpdateData(grp_biz,swt_trust.case_single.grd_acptpatlist), "replace");
  1363. //model.makeValue("/root/send/trusttestlist", grd_trustlist.getUpdateData());
  1364. dsf_copyDs(ds_send.patlist, grdf_getGridUpdateData(grp_biz,swt_trust.case_single.grd_acptpatlist), "replace");
  1365. //model.makeValue("/root/send/bizflagcd", pBizFlagCd);
  1366. //model.makeValue("/root/send/orddrid", model.getValue("/root/init/prcpdrid"));
  1367. //model.makeValue("/root/send/orddeptcd", model.getValue("/root/init/hospenv/hospenvinfo/plgydeptcd"));
  1368. //model.makeValue("/root/send/grotestsplgyid", getUserInfo("userid"));
  1369. //----------
  1370. //setAlertOn();
  1371. //if (submit("TXLPJ02301"))
  1372. // var oParam = {};
  1373. // oParam.id = "TXLPJ02301";
  1374. // oParam.service = "plgyacptmngtapp.SpecimenAccept";
  1375. // oParam.method = "reqExeTrustAcpt";
  1376. // oParam.inds = "patinfo=ds_ trusttestlist=ds_ choiprcplist=ds_ patlist=ds_";
  1377. // oParam.outds = "ds_=acptlist ds_=acptrsltlist";
  1378. // oParam.async = false;
  1379. // oParam.callback = "cf_TXLPJ02301";
  1380. //
  1381. // tranf_submit(oParam);
  1382. //
  1383. // //----------------------------------------------------
  1384. // model.removeNodeset("/root/main/acptpat/acptpatlist");
  1385. // model.removeNodeset("/root/main/choiprcp/choiprcplist");
  1386. // model.resetInstanceNode("/root/main/patinfo/patinfocnts");
  1387. //
  1388. // //-----------------------
  1389. // if (pBizFlagCd == "2") {
  1390. // //makeReportPreview(0, 50, 1179, 678);
  1391. // exeReportPreview("RPLPJ02300", "XMLSTR", "", "", "true", "", "", "", "", "false", "", "grp_prnt");
  1392. // }
  1393. //
  1394. // //----------------------
  1395. // if (pBizFlagCd == "1") {
  1396. //
  1397. // //-------------
  1398. // // 의뢰지 출력
  1399. // model.makeNode("/root/init/prntinfo");
  1400. // model.makeValue("/root/init/prntinfo/reptflagcd", "0"); // 의뢰지(0), 보고서(1)
  1401. // model.makeValue("/root/init/prntinfo/prntflagcd", "0"); // 출력(0), 미리보기(1)
  1402. //
  1403. // //-------------------------------------------------------------------------------------------
  1404. // for (var iRowNo=1; iRowNo <= getNodesetCount("/root/main/acptinfo/acptrsltlist"); iRowNo++) {
  1405. //
  1406. // if (sPtNo != model.getValue("/root/main/acptinfo/acptrsltlist["+iRowNo+"]/ptno")) {
  1407. // lpzfExeFrmPrnt("/root/main/acptinfo/acptrsltlist["+iRowNo+"]");
  1408. // sPtNo = model.getValue("/root/main/acptinfo/acptrsltlist["+iRowNo+"]/ptno");
  1409. // }
  1410. // }
  1411. //
  1412. // //------------------------------------------------------------------------------------
  1413. // for (var iNo=getNodesetCount("/root/main/trusttest/trusttestlist"); iNo >= 1; iNo--) {
  1414. // if (model.getValue(sSrcNode1+"["+iNo+"]/choi") == "true") {
  1415. // grd_trustlist.deleteRow(iNo);
  1416. // }
  1417. // }
  1418. // }
  1419. //--------------
  1420. model.refresh();
  1421. }
  1422. function fExeReadTrustPatList()
  1423. {
  1424. var iRowNo = 1;
  1425. var sExLabNm = "";
  1426. var sSexAge = "";
  1427. var sRRgstNo = "";
  1428. //var sSrcNode = "/root/main/trustpat/trustpatlist";
  1429. var sSrcNode = ds_grd_trustpatlist;
  1430. //var sDescNode = "/root/main/acptpat/acptpatlist";
  1431. var sDescNode = ds_grd_acptpatlist;
  1432. //var sOrgNode = "/root/main/patinfo/patinfocnts";
  1433. var sOrgNode = ds_patinfocnts;
  1434. //------------------------------------------------------------------------------------------------
  1435. //if (model.getValue("/root/init/prcpdrid") == "" || model.getValue("/root/init/prcpdrid") == "-")
  1436. if( utlf_isNull(ds_init.getColumn(0, "prcpdrid")) || ds_init.getColumn(0, "prcpdrid") == "-")
  1437. {
  1438. sysf_messageBox("처방의사를 ", "C002");
  1439. return false;
  1440. }
  1441. //----------------------------
  1442. //model.removeNodeset(sSrcNode);
  1443. //model.removeNodeset(sDescNode);
  1444. //---------------------------------------------------------------------------------------------------------------
  1445. var sFileName = window.fileDialog("open", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1446. //-----------------------------------------
  1447. // if (sFileName == "" || sFileName == null)
  1448. if( utlf_isNull(sFileName))
  1449. {
  1450. sysf_messageBox("입고할 파일을 선택하세요", "E", "");
  1451. return;
  1452. }
  1453. //------------------------
  1454. // 파일의 확장자 종류 검사
  1455. //var sStr = sFileName.substring(sFileName.length - 3);
  1456. var sStr = sFileName.substr(sFileName.length - 3);
  1457. //-------------------------------
  1458. if(sStr.toLowerCase() == "xls")
  1459. {
  1460. //grd_trustpatlist.loadExcel(sFileName);
  1461. grp_biz.swt_trust.case_single.grd_trustpatlist.loadExcel(fileName);
  1462. }
  1463. else
  1464. {
  1465. sysf_messageBox("Excel파일을 선택하세요", "E", "");
  1466. return;
  1467. }
  1468. //--------------------------------------------------------
  1469. //for (var iNo=2; iNo <= getNodesetCount(sSrcNode); iNo++)
  1470. for(var iNo=2; iNo <= ds_grd_trustpatlist.rowcount; iNo++)
  1471. {
  1472. //--------------------------------------------
  1473. // 위탁기관, 환자명, 주민번호, 여권번호는 필수
  1474. //if (model.getValue(sSrcNode+"["+iNo+"]/exlabcd") == "")
  1475. if( utlf_isNull(ds_grd_trustpatlist.getColumn(iNo, "exlabcd")))
  1476. {
  1477. sysf_messageBox("위탁기관은 ", "I003");
  1478. return false;
  1479. }
  1480. //if (model.getValue(sSrcNode+"["+iNo+"]/patnm") == "")
  1481. if( utlf_isNull(ds_grd_trustlist.getColumn(iNo, "patnm")))
  1482. {
  1483. sysf_messageBox("환자명은 ", "I003");
  1484. return false;
  1485. }
  1486. //if (model.getValue(sSrcNode+"["+iNo+"]/trusthosppid") == "")
  1487. if( utlf_isNull(ds_grd_trustpatlist.getColumn(iNo, "trusthosppid")))
  1488. {
  1489. sysf_messageBox("위탁병원 환자번호는 ", "I003");
  1490. return false;
  1491. }
  1492. //if (model.getValue(sSrcNode+"["+iNo+"]/psptno") == "")
  1493. if( utlf_isNull(ds_grd_trustpatlist.getColumn(iNo, "pstptno")))
  1494. {
  1495. //if (model.getValue(sSrcNode+"["+iNo+"]/rrgstno1") == "" && model.getValue(sSrcNode+"["+iNo+"]/rrgstno2") == "")
  1496. if(utlf_isNullds_grd_trustpatlist.getColumn(iNo, "rrgstno1") && utlf_isNull(ds_grd_trustpatlist.getColumn(iNo, "rrgstno2")))
  1497. {
  1498. sysf_messageBox("주민번호 또는 여권번호(외국인)은 ", "I003");
  1499. return false;
  1500. }
  1501. }
  1502. //-------------------------------------------------------------------------------------------------------------
  1503. //sExLabNm = model.getValue("/root/init/coophosp/coophosplist[coophospcd='"+model.getValue(sSrcNode+"["+iNo+"]/exlabcd")+"']/coophospnm");
  1504. // sExLabNm = ds_init_cmb_exlabcd.getColumn(0, "coophospcd", ds_grd_trustpatlist.getColumn(iNo, "exlabcd"));
  1505. //sUnCoCd = model.getValue("/root/init/coophosp/coophosplist[coophospcd='"+model.getValue(sSrcNode+"["+iNo+"]/exlabcd")+"']/uncocd");
  1506. // sUnCoCd = ds_init_cmb_exlabcd.getColumn(0, "coop
  1507. // sSexAge = model.getValue(sSrcNode+"["+iNo+"]/sex")+"/"+model.getValue(sSrcNode+"["+iNo+"]/age");
  1508. // sRRgstNo = model.getValue(sSrcNode+"["+iNo+"]/rrgstno1")+"-"+model.getValue(sSrcNode+"["+iNo+"]/rrgstno2");
  1509. //--------------------------------------
  1510. //model.makeNode(sDescNode+"["+iRowNo+"]");
  1511. // model.makeValue(sDescNode+"["+iRowNo+"]/instcd", getUserInfo("dutplceinstcd"));
  1512. ds_grd_acptpatlist.setColumn(iRowNo, "instcd", sysf_getUserInfo("dutplceinstcd"));
  1513. // model.makeValue(sDescNode+"["+iRowNo+"]/exlabcd", model.getValue(sSrcNode+"["+iNo+"]/exlabcd"));
  1514. ds_grd_acptpatlist.setColumn(iRowNo, "exlabcd", ds_grd_trustpatlist.getColumn(iNo, "exlabcd"));
  1515. // model.makeValue(sDescNode+"["+iRowNo+"]/exlabnm", sExLabNm);
  1516. ds_grd_acptpatlist.setColumn(iRowNo, "exlabnm", sExLabNm);
  1517. // model.makeValue(sDescNode+"["+iRowNo+"]/pid", "");
  1518. ds_grd_acptpatlist.setColumn(iRowNo, "pid", "");
  1519. // model.makeValue(sDescNode+"["+iRowNo+"]/patnm", model.getValue(sSrcNode+"["+iNo+"]/patnm"));
  1520. ds_grd_acptpatlist.setColumn(iRowNo, "patnm", ds_grd_trustpatlist.getColumn(iNo, "patnm"));
  1521. // model.makeValue(sDescNode+"["+iRowNo+"]/sex", model.getValue(sSrcNode+"["+iNo+"]/sex"));
  1522. ds_grd_acptpatlist.setColumn(iRowNo, "sex", ds_grd_trustpatlist.getColumn(iNo, "sex"));
  1523. // model.makeValue(sDescNode+"["+iRowNo+"]/age", model.getValue(sSrcNode+"["+iNo+"]/age"));
  1524. ds_grd_acptpatlist.setColumn(iRowNo, "age", ds_grd_trustpatlist.getColumn(iNo, "age"));
  1525. // model.makeValue(sDescNode+"["+iRowNo+"]/sexage", sSexAge);
  1526. ds_grd_acptpatlist.setColumn(iRowNo, "sexage", sSexAge);
  1527. // model.makeValue(sDescNode+"["+iRowNo+"]/rrgstno1", model.getValue(sSrcNode+"["+iNo+"]/rrgstno1"));
  1528. ds_grd_acptpatlist.setColumn(iRowNo, "rrgstno1", ds_grd_trustpatlist.getColumn(iNo, "rrgstno1"));
  1529. // model.makeValue(sDescNode+"["+iRowNo+"]/rrgstno2", model.getValue(sSrcNode+"["+iNo+"]/rrgstno2"));
  1530. ds_grd_acptpatlist.setColumn(iRowNo, "rrgstno2", ds_grd_trustpatlist.getColumn(iNo, "rrgstno2"));
  1531. // model.makeValue(sDescNode+"["+iRowNo+"]/rrgstno", sRRgstNo);
  1532. ds_grd_acptpatlist.setColumn(iRowNo, "rrgstno", sRRgstNo);
  1533. // model.makeValue(sDescNode+"["+iRowNo+"]/psptno", model.getValue(sSrcNode+"["+iNo+"]/psptno"));
  1534. ds_grd_acptpatlist.setColumn(iRowNo, "psptno", ds_grd_trustpatlist.getColumn(iNo, "psptno"));
  1535. // model.makeValue(sDescNode+"["+iRowNo+"]/bigo", model.getValue(sSrcNode+"["+iNo+"]/bigo"));
  1536. ds_grd_acptpatlist.setColumn(iRowNo, "bigo", ds_grd_trustpatlist.getColumn(iNo, "bigo"));
  1537. // model.makeValue(sDescNode+"["+iRowNo+"]/bizflagcd", "2");
  1538. ds_grd_acptpatlist.setColumn(iRowNo, "bizflagcd", "2");
  1539. // model.makeValue(sDescNode+"["+iRowNo+"]/orddrid", model.getValue("/root/init/prcpdrid"));
  1540. ds_grd_acptpatlist.setColumn(iRowNo, "orddrid", ds_init.getColCount(0, "prcpdrid"));
  1541. // model.makeValue(sDescNode+"["+iRowNo+"]/orddeptcd", model.getValue("/root/init/hospenv/hospenvinfo/plgydeptcd"));
  1542. ds_grd_acptpatlist.setColumn(iRowNo, "orddeptcd", ds_hospenvinfo.getColumn(0, "plgydeptcd"));
  1543. // model.makeValue(sDescNode+"["+iRowNo+"]/grotestsplgyid", getUserInfo("userid"));
  1544. ds_grd_acptpatlist.setColumn(iRowNo, "grotestsplgyid", sysf_getUserInfo("userid"));
  1545. // model.makeValue(sDescNode+"["+iRowNo+"]/suppkind", model.getValue(sSrcNode+"["+iNo+"]/suppkind"));
  1546. ds_grd_acptpatlist.setColumn(iRowNo, "suppkind", ds_grd_trustpatlist.getColumn(iNo, "suppkind"));
  1547. // model.makeValue(sDescNode+"["+iRowNo+"]/uncocd", sUnCoCd);
  1548. ds_grd_acptpatlist.setColumn(iRowNo, "uncocd", sUnCoCd);
  1549. // model.makeValue(sDescNode+"["+iRowNo+"]/trusthosppid", model.getValue(sSrcNode+"["+iNo+"]/trusthosppid"));
  1550. ds_grd_acptpatlist.setColumn(iRowNo, "trusthosppid", ds_grd_trustpatlist.getColumn(iNo, "trusthosppid"));
  1551. //
  1552. //-------
  1553. iRowNo++;
  1554. }
  1555. //------------------------
  1556. // grd_acptpatlist.refresh();
  1557. }
  1558. function fExePatPopupCall(pBizFlagCd)
  1559. {
  1560. //model.makeNode("/root/source");
  1561. //model.makeValue("/root/source/srchcond", pBizFlagCd);
  1562. //dsf_createDsRow("ds_source", [{col : "srchcond", val : pBizFlagCd}]);
  1563. ds_source.setColumn(0, "srchcond", pBizFlagCd);
  1564. if (pBizFlagCd == "1")
  1565. {
  1566. //model.makeValue("/root/source/pid", model.getValue("/root/main/patinfo/patinfocnts/pid"));
  1567. ds_source.setColumn(0, "pid", ds_patinfocnts.getColumn(0, "pid"));
  1568. ds_source.setColumn(0, "hngnm", "");
  1569. ds_source.setColumn(0, "rrgstno1", "");
  1570. ds_source.setColumn(0, "rrgstno2", "");
  1571. //model.makeValue("/root/source/hngnm", "");
  1572. //model.makeValue("/root/source/rrgstno1", "");
  1573. //model.makeValue("/root/source/rrgstno2", "");
  1574. }
  1575. else if (pBizFlagCd == "2")
  1576. {
  1577. // model.makeValue("/root/source/pid", "");
  1578. // model.makeValue("/root/source/hngnm", model.getValue("/root/main/patinfo/patinfocnts/patnm"));
  1579. // model.makeValue("/root/source/rrgstno1", "");
  1580. // model.makeValue("/root/source/rrgstno2", "");
  1581. ds_source.setColumn(0, "pid", "");
  1582. ds_source.setColumn(0, "hngnm", ds_patinfocnts.getColumn(0, "patnm"));
  1583. ds_source.setColumn(0, "rrgstno1", "");
  1584. ds_source.setColumn(0, "rrgstno2", "");
  1585. }
  1586. else
  1587. {
  1588. // model.makeValue("/root/source/pid", "");
  1589. // model.makeValue("/root/source/hngnm", "");
  1590. // model.makeValue("/root/source/rrgstno1", model.getValue("/root/main/patinfo/patinfocnts/rrgstno1"));
  1591. // model.makeValue("/root/source/rrgstno2", model.getValue("/root/main/patinfo/patinfocnts/rrgstno2"));
  1592. ds_source.setColumn(0, "pid", "");
  1593. ds_source.setColumn(0, "hngnm", "");
  1594. ds_source.setColumn(0, "rrgstno1", ds_patinfocnts.getColumn(0, "rrgstno1"));
  1595. ds_source.setColumn(0, "rrgstno2", ds_patinfocnts.getColumn(0, "rrgstno2"));
  1596. }
  1597. //--------------------------------------------------------------------------------
  1598. //modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  1599. var objArg = new Object();
  1600. objArg.arg_ds_send = ds_source;
  1601. frmf_modal("SPPMC02500", "SPPMC02500", objArg, "", 1, 150, 150, "", "", "", "", "", "M");
  1602. //----------------------------------------------------------
  1603. //if (getNodesetCount("/root/main/patinfo/patinfolist") > 0)
  1604. if(ds_patinfocnts.rowcount > 0)
  1605. {
  1606. //model.makeValue("/root/init/refval", model.getValue("/root/main/patinfo/patinfolist/pid"));
  1607. ds_init.setColumn(0, "refval", ds_patinfocnts.getColumn(0, "pid"));
  1608. }
  1609. //--------------
  1610. //model.refresh();
  1611. }
  1612. //조회
  1613. function grp_biz_swt_trust_case_list_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  1614. {
  1615. fGetTrustTestList();
  1616. }
  1617. //수탁검사목록
  1618. function grp_biz_swt_trust_case_list_onsetfocus(obj:Tabpage, e:SetFocusEventInfo)
  1619. {
  1620. fExeTrustChange("1");
  1621. }
  1622. //개별수탁검사
  1623. function grp_biz_swt_trust_case_single_onsetfocus(obj:Tabpage, e:SetFocusEventInfo)
  1624. {
  1625. fExeTrustChange("2");
  1626. }
  1627. function grp_btn_btn_cls_onclick(obj:Button, e:ClickEventInfo)
  1628. {
  1629. this.close();
  1630. }
  1631. //처방분류 TreeView 클릭 처리 Function
  1632. function grp_biz_swt_trust_case_single_trv_prcpkind_oncellclick(obj:Grid, e:GridClickEventInfo)
  1633. {
  1634. fExePrcpKindClick();
  1635. }
  1636. //검체 표시 및 처방 등록 처리 Function
  1637. function grp_biz_swt_trust_case_single_grd_testcdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1638. {
  1639. fExePrcpChoi();
  1640. }
  1641. function grp_biz_swt_trust_case_single_grd_spclist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  1642. {
  1643. fExeSpcChoi();
  1644. }
  1645. //임시저장
  1646. function grp_biz_swt_trust_case_single_btn_cffm_onclick(obj:Button, e:ClickEventInfo)
  1647. {
  1648. fExePatTempSave();
  1649. }
  1650. //접수
  1651. function grp_btn_btn_acpt_onclick(obj:Button, e:ClickEventInfo)
  1652. {
  1653. fExePrcpSave("1");
  1654. }
  1655. //수탁환자 Excel읽기
  1656. function grp_btn_btn_patlistread_onclick(obj:Button, e:ClickEventInfo)
  1657. {
  1658. fExeReadTrustPatList();
  1659. }
  1660. //등록번호 조회
  1661. function grp_biz_swt_trust_case_single_btn_pidsea_onclick(obj:Button, e:ClickEventInfo)
  1662. {
  1663. fExePatPopupCall("1");
  1664. }
  1665. //환자명 조회
  1666. function grp_biz_swt_trust_case_single_btn_patnmsea_onclick(obj:Button, e:ClickEventInfo)
  1667. {
  1668. fExePatPopupCall("2");
  1669. }
  1670. //주민번호 조회
  1671. function grp_biz_swt_trust_case_single_btn_rrgstnosea_onclick(obj:Button, e:ClickEventInfo)
  1672. {
  1673. fExePatPopupCall("3");
  1674. }]]></Script>
  1675. </Form>
  1676. </FDL>