SMMNN00800_분만장부.xfdl 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNN00800" position="absolute 0 0 1214 794" titletext="분만장부" onload="SMMNN00800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="분만장부" class="tit_1" position="absolute 0 0 100 25"/>
  8. <Static id="caption8" text="* 단태아 이상 조회조건을 체크하면 분만간호기록에서 신생아 출생정보를 입력한 환자만 조회되고 체크하지 않으면 신생아 출생정보를 입력하지 않은 산모만 조회됩니다." position="absolute 5 767 1006 787" style="font:Dotum,9,bold;"/>
  9. <Shape id="line1" class="line_1" position="absolute 0 126 1195 132" style="strokepen:3 solid #33bbbbff;"/>
  10. <Div id="grp" taborder="1" class="div_SA" position="absolute 0 25 1194 105">
  11. <Layouts>
  12. <Layout width="1194" height="80">
  13. <Static id="caption2" text="산모명:" class="search_name" position="absolute 300 10 385 27"/>
  14. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1051 10 1057 52"/>
  15. <Static id="caption4" text="~" position="absolute 176 12 191 26"/>
  16. <Static id="caption3" text="조회일자:" class="search_name" position="absolute 5 10 99 27"/>
  17. <Static id="caption5" text="등록번호:" class="search_name" position="absolute 590 10 676 27"/>
  18. <Button id="btn_select" taborder="1" text="조회" class="btn1" position="absolute 1125 8 1181 30" onclick="grp_btn_select_onclick"/>
  19. <Edit id="ipt_patnm" taborder="2" class="input_search" position="absolute 376 9 441 28" onkeydown="grp_sea_ipt_patnm_onkeydown" autoselect="true"/>
  20. <Edit id="ipt_pid" taborder="3" class="input_search" position="absolute 668 9 738 28" onkeydown="grp_ipt_pid_onkeydown" autoselect="true"/>
  21. <Calendar id="ipt_bthddfromdd" taborder="4" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 84 9 174 28" autoselect="true" autoskip="true"/>
  22. <Calendar id="ipt_bthddtodd" taborder="5" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 191 9 281 28" autoselect="true" autoskip="true"/>
  23. <CheckBox id="bool1" taborder="6" position="absolute 820 9 845 29" onclick="grp_bool1_onclick" truevalue="true" falsevalue="false"/>
  24. <Static id="caption1" text="임상질지표" position="absolute 752 9 822 29" style="font:Dotum,9,bold;"/>
  25. <Static id="caption7" text="재원환자만" position="absolute 847 9 914 29" style="font:Dotum,9,bold;"/>
  26. <CheckBox id="bool2" taborder="7" position="absolute 917 9 942 29" truevalue="true" falsevalue="false" onclick="grp_bool2_onclick"/>
  27. <CheckBox id="bool3" taborder="8" position="absolute 1017 9 1042 29" truevalue="true" falsevalue="false" onclick="grp_bool3_onclick"/>
  28. <Static id="caption9" text="단태아 이상" position="absolute 943 9 1018 29" style="font:Dotum,9,bold;"/>
  29. <Static id="caption11" text="분만형태:" class="search_name" position="absolute 5 32 99 49"/>
  30. <Radio id="rdo_dlivkindcd" taborder="9" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 85 32 277 50" index="-1" columncount="-1" rowcount="-1" style="textpadding:0 3 0 3;">
  31. <Dataset id="innerdataset">
  32. <ColumnInfo>
  33. <Column id="codecolumn"/>
  34. <Column id="datacolumn"/>
  35. </ColumnInfo>
  36. <Rows>
  37. <Row>
  38. <Col id="codecolumn"/>
  39. <Col id="datacolumn">전체</Col>
  40. </Row>
  41. <Row>
  42. <Col id="codecolumn">01</Col>
  43. <Col id="datacolumn">자연분만</Col>
  44. </Row>
  45. <Row>
  46. <Col id="codecolumn">02</Col>
  47. <Col id="datacolumn">수술분만</Col>
  48. </Row>
  49. </Rows>
  50. </Dataset>
  51. </Radio>
  52. <Static id="caption12" text="임신주수:" class="search_name" position="absolute 300 32 385 49"/>
  53. <Radio id="radio2" taborder="10" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 376 32 576 50" direction="horizontal" style="textpadding:0 3 0 3;" columncount="-1" rowcount="-1">
  54. <Dataset id="innerdataset">
  55. <ColumnInfo>
  56. <Column id="codecolumn"/>
  57. <Column id="datacolumn"/>
  58. </ColumnInfo>
  59. <Rows>
  60. <Row>
  61. <Col id="codecolumn"/>
  62. <Col id="datacolumn">전체</Col>
  63. </Row>
  64. <Row>
  65. <Col id="codecolumn">1</Col>
  66. <Col id="datacolumn">37주미만</Col>
  67. </Row>
  68. <Row>
  69. <Col id="codecolumn">2</Col>
  70. <Col id="datacolumn">37주이상</Col>
  71. </Row>
  72. </Rows>
  73. </Dataset>
  74. </Radio>
  75. <Static id="caption13" text="태아체중:" class="search_name" position="absolute 590 54 690 71"/>
  76. <Radio id="radio3" taborder="11" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 668 54 1152 72" direction="horizontal" style="textpadding:0 3 0 3;" columncount="-1" rowcount="-1">
  77. <Dataset id="innerdataset">
  78. <ColumnInfo>
  79. <Column id="codecolumn"/>
  80. <Column id="datacolumn"/>
  81. </ColumnInfo>
  82. <Rows>
  83. <Row>
  84. <Col id="codecolumn"/>
  85. <Col id="datacolumn">전체</Col>
  86. </Row>
  87. <Row>
  88. <Col id="codecolumn">1</Col>
  89. <Col id="datacolumn">1000g미만</Col>
  90. </Row>
  91. <Row>
  92. <Col id="codecolumn">2</Col>
  93. <Col id="datacolumn">1000g이상~1500g미만</Col>
  94. </Row>
  95. <Row>
  96. <Col id="codecolumn">3</Col>
  97. <Col id="datacolumn">1500g이상~2500g미만</Col>
  98. </Row>
  99. <Row>
  100. <Col id="codecolumn">4</Col>
  101. <Col id="datacolumn">2500g이상</Col>
  102. </Row>
  103. </Rows>
  104. </Dataset>
  105. </Radio>
  106. <Static id="caption14" text="신생아중환자실입원:" class="search_name" position="absolute 300 54 448 71"/>
  107. <Radio id="radio4" taborder="12" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 443 54 565 72" direction="horizontal" style="textpadding:0 3 0 3;" rowcount="-1" columncount="-1">
  108. <Dataset id="innerdataset">
  109. <ColumnInfo>
  110. <Column id="codecolumn"/>
  111. <Column id="datacolumn"/>
  112. </ColumnInfo>
  113. <Rows>
  114. <Row>
  115. <Col id="codecolumn"/>
  116. <Col id="datacolumn">전체</Col>
  117. </Row>
  118. <Row>
  119. <Col id="codecolumn">Y</Col>
  120. <Col id="datacolumn">유</Col>
  121. </Row>
  122. <Row>
  123. <Col id="codecolumn">N</Col>
  124. <Col id="datacolumn">무</Col>
  125. </Row>
  126. </Rows>
  127. </Dataset>
  128. </Radio>
  129. <Static id="caption15" text="태아성별:" class="search_name" position="absolute 5 54 95 71"/>
  130. <Static id="caption16" text="산모유형:" class="search_name" position="absolute 591 32 681 49"/>
  131. <Radio id="radio5" taborder="14" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 668 31 837 49" rowcount="-1" direction="horizontal" style="textpadding:0 3 0 3;" columncount="-1">
  132. <Dataset id="innerdataset">
  133. <ColumnInfo>
  134. <Column id="codecolumn"/>
  135. <Column id="datacolumn"/>
  136. </ColumnInfo>
  137. <Rows>
  138. <Row>
  139. <Col id="codecolumn"/>
  140. <Col id="datacolumn">전체</Col>
  141. </Row>
  142. <Row>
  143. <Col id="codecolumn">1</Col>
  144. <Col id="datacolumn">초산모</Col>
  145. </Row>
  146. <Row>
  147. <Col id="codecolumn">2</Col>
  148. <Col id="datacolumn">경산모</Col>
  149. </Row>
  150. </Rows>
  151. </Dataset>
  152. </Radio>
  153. <Button id="btn_print" taborder="15" text="출력" onclick="btn_print_onclick" class="btn6" position="absolute 1128 34 1180 53"/>
  154. <Button id="btn_saveexcel" taborder="16" text="엑셀저장" onclick="btn_saveexcel_onclick" class="btn2" position="absolute 1060 34 1124 53"/>
  155. <Radio id="radio1" taborder="17" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 85 54 220 72" style="textpadding:0 3 0 3;" direction="vertical">
  156. <Dataset id="innerdataset">
  157. <ColumnInfo>
  158. <Column id="codecolumn"/>
  159. <Column id="datacolumn"/>
  160. </ColumnInfo>
  161. <Rows>
  162. <Row>
  163. <Col id="codecolumn"/>
  164. <Col id="datacolumn">전체</Col>
  165. </Row>
  166. <Row>
  167. <Col id="codecolumn">M</Col>
  168. <Col id="datacolumn">남</Col>
  169. </Row>
  170. <Row>
  171. <Col id="codecolumn">F</Col>
  172. <Col id="datacolumn">여</Col>
  173. </Row>
  174. </Rows>
  175. </Dataset>
  176. </Radio>
  177. </Layout>
  178. </Layouts>
  179. </Div>
  180. <Static id="caption10" text="분만환자내역" class="tit_2" position="absolute 0 109 108 125"/>
  181. <Grid id="grd_wardpatlist" class="datagrid3" taborder="2" binddataset="ds_main_womanlist" scrollpixel="all" useinputpanel="false" cellsizingtype="both" cellsizebandtype="allband" oncelldblclick="grd_wardpatlist_oncelldblclick" position="absolute 0 131 1195 760" tooltiptype="hover" onheadclick="grd_wardpatlist_onheaddblclick">
  182. <Formats>
  183. <Format id="default">
  184. <Columns>
  185. <Column size="25" band="left"/>
  186. <Column size="70"/>
  187. <Column size="56"/>
  188. <Column size="40"/>
  189. <Column size="75"/>
  190. <Column size="75"/>
  191. <Column size="35"/>
  192. <Column size="94"/>
  193. <Column size="57"/>
  194. <Column size="57"/>
  195. <Column size="57"/>
  196. <Column size="45"/>
  197. <Column size="57"/>
  198. <Column size="71"/>
  199. <Column size="59"/>
  200. <Column size="89"/>
  201. <Column size="90"/>
  202. <Column size="70"/>
  203. <Column size="70"/>
  204. <Column size="67"/>
  205. <Column size="60"/>
  206. <Column size="100"/>
  207. <Column size="58"/>
  208. <Column size="24"/>
  209. <Column size="50"/>
  210. <Column size="125"/>
  211. <Column size="40"/>
  212. <Column size="93"/>
  213. <Column size="110"/>
  214. <Column size="56"/>
  215. <Column size="81"/>
  216. <Column size="60"/>
  217. <Column size="56"/>
  218. <Column size="56"/>
  219. <Column size="60"/>
  220. <Column size="60"/>
  221. <Column size="60"/>
  222. <Column size="0"/>
  223. <Column size="0"/>
  224. <Column size="0"/>
  225. <Column size="0"/>
  226. </Columns>
  227. <Rows>
  228. <Row size="24" band="head"/>
  229. <Row size="48" band="head"/>
  230. <Row size="24"/>
  231. </Rows>
  232. <Band id="head">
  233. <Cell taborder="undefined"/>
  234. <Cell col="1" colspan="17" text="산모정보" taborder="undefined"/>
  235. <Cell col="18" colspan="14" text="신생아정보" taborder="undefined"/>
  236. <Cell col="32" colspan="2" text="태반정보" taborder="undefined"/>
  237. <Cell col="34" colspan="3" text="기타사항" taborder="undefined"/>
  238. <Cell col="37" text="cretno"/>
  239. <Cell col="38" text="wardcd"/>
  240. <Cell col="39" text="roomcd"/>
  241. <Cell col="40" text="indschacptstat"/>
  242. <Cell row="1" taborder="undefined"/>
  243. <Cell row="1" col="1" text="등록번호" taborder="undefined"/>
  244. <Cell row="1" col="2" text="산모명" taborder="undefined"/>
  245. <Cell row="1" col="3" text="S/A" taborder="undefined"/>
  246. <Cell row="1" col="4" text="입원일자" taborder="undefined"/>
  247. <Cell row="1" col="5" text="분만일자" taborder="undefined"/>
  248. <Cell row="1" col="6" text="분만일시" wordwrap="char" taborder="undefined"/>
  249. <Cell row="1" col="7" text="산과력" taborder="undefined"/>
  250. <Cell row="1" col="8" text="산모유형" taborder="undefined"/>
  251. <Cell row="1" col="9" text="임신주수" taborder="undefined"/>
  252. <Cell row="1" col="10" text="임신주수구분" wordwrap="char" taborder="undefined"/>
  253. <Cell row="1" col="11" text="단태아" taborder="undefined"/>
  254. <Cell row="1" col="12" text="보조&#10;생식술" taborder="undefined"/>
  255. <Cell row="1" col="13" text="산전진찰" taborder="undefined"/>
  256. <Cell row="1" col="14" text="남편명" taborder="undefined"/>
  257. <Cell row="1" col="15" text="특이사항" taborder="undefined"/>
  258. <Cell row="1" col="16" text="퇴원시&#10;수유형태" taborder="undefined"/>
  259. <Cell row="1" col="17" text="퇴원일" taborder="undefined"/>
  260. <Cell row="1" col="18" text="등록번호" taborder="undefined"/>
  261. <Cell row="1" col="19" colspan="2" text="분만형태" taborder="undefined"/>
  262. <Cell row="1" col="21" text="분만장소" taborder="undefined"/>
  263. <Cell row="1" col="22" text="생사여부" taborder="undefined"/>
  264. <Cell row="1" col="23" text="성&#13;&#10;별" taborder="undefined"/>
  265. <Cell row="1" col="24" text="몸무게&#10;(g)" taborder="undefined"/>
  266. <Cell row="1" col="25" text=" 몸무게 구분(g)" taborder="undefined"/>
  267. <Cell row="1" col="26" text="A/S" taborder="undefined"/>
  268. <Cell row="1" col="27" text="특이사항" taborder="undefined"/>
  269. <Cell row="1" col="28" text="모유수유힘든이유" taborder="undefined"/>
  270. <Cell row="1" col="29" text="모유수유시도여부" wordwrap="char" taborder="undefined"/>
  271. <Cell row="1" col="30" text="모유수유최초시도일시" wordwrap="char" taborder="undefined"/>
  272. <Cell row="1" col="31" text="진행상태" taborder="undefined"/>
  273. <Cell row="1" col="32" text="중량(g)" taborder="undefined"/>
  274. <Cell row="1" col="33" text="길이(cm)" taborder="undefined"/>
  275. <Cell row="1" col="34" text="담당의" taborder="undefined"/>
  276. <Cell row="1" col="35" text="분만의" taborder="undefined"/>
  277. <Cell row="1" col="36" text="간호사" taborder="undefined"/>
  278. <Cell row="1" col="37" text="cretno"/>
  279. <Cell row="1" col="38" text="wardcd"/>
  280. <Cell row="1" col="39" text="roomcd"/>
  281. <Cell row="1" col="40" text="indschacptstat"/>
  282. </Band>
  283. <Band id="body">
  284. <Cell celltype="head" text="expr:currow + 1"/>
  285. <Cell col="1" style="align:left middle;" text="bind:pid" suppress="1" suppressalign="middle,over" tooltiptext="bind:pid"/>
  286. <Cell col="2" style="align:center middle;" text="bind:patnm" suppress="1" suppressalign="middle,over" tooltiptext="bind:patnm"/>
  287. <Cell col="3" style="align:center middle;" text="bind:sexage" tooltiptext="bind:sexage"/>
  288. <Cell col="4" displaytype="date" style="align:center middle;" text="bind:indd" calendardisplaynulltype="none" tooltiptext="bind:indd"/>
  289. <Cell col="5" displaytype="date" style="align:center middle;" text="bind:bthdd" calendardisplaynulltype="none" tooltiptext="bind:bthdd"/>
  290. <Cell col="6" displaytype="expr:utlf_isNull(bthtm) ? 'none' : 'text'" style="align:center middle;padding:4 2 4 2;" text="bind:bthtm" mask="##:##" maskchar=" " tooltiptext="bind:bthtm"/>
  291. <Cell col="7" style="align:left middle;" text="bind:partrtnhis" tooltiptext="bind:partrtnhis"/>
  292. <Cell col="8" text="bind:mothertype" tooltiptext="bind:mothertype"/>
  293. <Cell col="9" text="bind:prgweekday" tooltiptext="bind:prgweekday"/>
  294. <Cell col="10" style="background:EXPR(prgweekday2== '37주미만' ? '#FFFF00' : '');background2:EXPR(prgweekday2== '37주미만' ? '#FFFF00' : '');" text="bind:prgweekday2" tooltiptext="bind:prgweekday2"/>
  295. <Cell col="11" text="bind:onebabyyn" tooltiptext="bind:onebabyyn"/>
  296. <Cell col="12" style="align:left top;padding:4 2 2 2;" text="bind:artinfo" wordwrap="char" tooltiptext="bind:artinfo"/>
  297. <Cell col="13" style="align:left;" text="bind:befchildbrthmed"/>
  298. <Cell col="14" style="align:center middle;" text="bind:ptnernm" tooltiptext="bind:ptnernm"/>
  299. <Cell col="15" style="align:left top;padding:2 2 0 2;" text="bind:womanremk" wordwrap="char" tooltiptext="bind:womanremk"/>
  300. <Cell col="16" style="align:left middle;" text="bind:dschlactype" tooltiptext="bind:dschlactype"/>
  301. <Cell col="17" style="align:center middle;" text="bind:dschnotirgstdt" tooltiptext="bind:dschnotirgstdt"/>
  302. <Cell col="18" style="align:left middle;" text="bind:babyno" tooltiptext="bind:babyno"/>
  303. <Cell col="19" style="align:center middle;padding:4 2 4 2;" text="bind:dlivkindnm" tooltiptext="bind:dlivkindnm" enable="false"/>
  304. <Cell col="20" style="align:center top;padding:2 2 0 2;" text="bind:dlivflagnm" wordwrap="char" tooltiptext="bind:dlivflagnm"/>
  305. <Cell col="21" style="align:left middle;" text="bind:dlivplcenm" tooltiptext="bind:dlivplcenm"/>
  306. <Cell col="22" displaytype="combo" style="align:center middle;" text="bind:deathyn" combodataset="ds_deathyn" combocodecol="value" combodatacol="label" tooltiptext="bind:deathyn" enable="false"/>
  307. <Cell col="23" text="bind:gndr" tooltiptext="bind:gndr"/>
  308. <Cell col="24" style="align:left middle;" text="bind:weig" tooltiptext="bind:weig"/>
  309. <Cell col="25" style="align:left top;padding:2 2 0 2;" text="bind:weig2" wordwrap="char" tooltiptext="bind:weig2"/>
  310. <Cell col="26" displaytype="text" style="align:center middle;" text="bind:apgarscore" tooltiptext="bind:apgarscore"/>
  311. <Cell col="27" style="align:left top;padding:2 2 0 2;" text="bind:babyremk" wordwrap="char" tooltiptext="bind:babyremk"/>
  312. <Cell col="28" style="align:left top;padding:4 2 2 2;" text="bind:fstnrea" wordwrap="char" tooltiptext="bind:fstnrea"/>
  313. <Cell col="29" style="align:center middle;" text="bind:fstlctyn" tooltiptext="bind:fstlctyn"/>
  314. <Cell col="30" style="align:center middle;" text="bind:fsttm" tooltiptext="bind:fsttm"/>
  315. <Cell col="31" style="align:center middle;" text="bind:dschstat" tooltiptext="bind:dschstat"/>
  316. <Cell col="32" style="align:right middle;" text="bind:avulsionweig" tooltiptext="bind:avulsionweig"/>
  317. <Cell col="33" style="align:right middle;" text="bind:avulsionheig" tooltiptext="bind:avulsionheig"/>
  318. <Cell col="34" style="align:center middle;" text="bind:atdoctnm" tooltiptext="bind:atdoctnm"/>
  319. <Cell col="35" style="align:center middle;" text="bind:medispclnm" tooltiptext="bind:medispclnm"/>
  320. <Cell col="36" style="align:center middle;" text="bind:nurseid" tooltiptext="bind:nurseid"/>
  321. <Cell col="37" text="bind:cretno"/>
  322. <Cell col="38" text="bind:wardcd"/>
  323. <Cell col="39" text="bind:roomcd"/>
  324. <Cell col="40" text="bind:indschacptstat"/>
  325. </Band>
  326. </Format>
  327. </Formats>
  328. </Grid>
  329. </Layout>
  330. </Layouts>
  331. <Objects>
  332. <Dataset id="ds_main_womanlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  333. <ColumnInfo>
  334. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  335. <Column id="patnm" type="STRING" size="256" sumtext="산모명"/>
  336. <Column id="sexage" type="STRING" size="256" sumtext="산모 성별/나이"/>
  337. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  338. <Column id="bthdd" type="STRING" size="256" sumtext="분만일자"/>
  339. <Column id="bthtm" type="STRING" size="256" sumtext="분만시간"/>
  340. <Column id="prgweekday" type="STRING" size="256" sumtext="임신주수"/>
  341. <Column id="prgweekday2" type="STRING" size="256" sumtext="임신주수구분"/>
  342. <Column id="ptnernm" type="STRING" size="256" sumtext="남편명"/>
  343. <Column id="womanremk" type="STRING" size="256" sumtext="산모정보 비고"/>
  344. <Column id="dlivkindnm" type="STRING" size="256" sumtext="분만형태"/>
  345. <Column id="dlivplcenm" type="STRING" size="256" sumtext="분만장소"/>
  346. <Column id="dlivflagnm" type="STRING" size="256" sumtext="분만구분"/>
  347. <Column id="deathyn" type="STRING" size="256" sumtext="생사여부"/>
  348. <Column id="weig" type="STRING" size="256" sumtext="몸무게"/>
  349. <Column id="weig2" type="STRING" size="256" sumtext="몸무게구분"/>
  350. <Column id="gndr" type="STRING" size="256" sumtext="성별"/>
  351. <Column id="apgarscore" type="STRING" size="256" sumtext="A/S"/>
  352. <Column id="babyremk" type="STRING" size="256" sumtext="신생아정보 비고"/>
  353. <Column id="avulsionweig" type="STRING" size="256" sumtext="태반무게"/>
  354. <Column id="avulsionheig" type="STRING" size="256" sumtext="태반길이"/>
  355. <Column id="medispclnm" type="STRING" size="256" sumtext="주치의"/>
  356. <Column id="atdoctnm" type="STRING" size="256" sumtext="분만의"/>
  357. <Column id="nurseid" type="STRING" size="256" sumtext="간호사"/>
  358. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  359. <Column id="seqno" type="STRING" size="256" sumtext="일련번호"/>
  360. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  361. <Column id="onebabyyn" type="STRING" size="256" sumtext="단태아여부"/>
  362. <Column id="babyno" type="STRING" size="256" sumtext="신생아등록번호"/>
  363. <Column id="partrtnhis" type="STRING" size="256" sumtext="출산력"/>
  364. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  365. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  366. <Column id="indschacptstat" type="STRING" size="256" sumtext="입퇴원접수상태"/>
  367. <Column id="dschnotirgstdt" type="STRING" size="256" sumtext="퇴원일"/>
  368. <Column id="fstnrea" type="STRING" size="256" sumtext="모유수유힘든이유"/>
  369. <Column id="fstlctyn" type="STRING" size="256" sumtext="모유수유시도여부"/>
  370. <Column id="fsttm" type="STRING" size="256" sumtext="모유수유최초시도일시"/>
  371. <Column id="dschstat" type="STRING" size="256" sumtext="진행상태"/>
  372. <Column id="dschlactype" type="STRING" size="256" sumtext="퇴원시수유형태"/>
  373. <Column id="mothertype" type="STRING" size="256" sumtext="산모유형"/>
  374. <Column id="artinfo" type="STRING" size="256" sumtext="보조생식술"/>
  375. <Column id="befchildbrthmed" type="STRING" size="256" sumtext="산전진찰"/>
  376. </ColumnInfo>
  377. </Dataset>
  378. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  379. <ColumnInfo>
  380. <Column id="bthddfromdd" type="STRING" size="256" sumtext="조회 시작일자"/>
  381. <Column id="bthddtodd" type="STRING" size="256" sumtext="조회 종료일자"/>
  382. <Column id="pid" type="STRING" size="256" sumtext="산모 등록번호"/>
  383. <Column id="patnm" type="STRING" size="256" sumtext="산모명"/>
  384. <Column id="clinicyn" type="STRING" size="256" sumtext="임상질지표조건"/>
  385. <Column id="indschacptstat" type="STRING" size="256" sumtext="재원여부"/>
  386. <Column id="babyyn" type="STRING" size="256" sumtext="신생아존재유무"/>
  387. <Column id="innbabyyn" type="STRING" size="256" sumtext="신생아입원"/>
  388. <Column id="dlivkindcd" type="STRING" size="256" sumtext="분만형태"/>
  389. <Column id="prgweekcntflag" type="STRING" size="256" sumtext="임신주수"/>
  390. <Column id="weigflag" type="STRING" size="256" sumtext="출생시체중"/>
  391. <Column id="sexflag" type="STRING" size="256" sumtext="성별"/>
  392. <Column id="mothertypeflag" type="STRING" size="256" sumtext="산모유형"/>
  393. </ColumnInfo>
  394. <Rows>
  395. <Row>
  396. <Col id="indschacptstat">true</Col>
  397. <Col id="babyyn">true</Col>
  398. </Row>
  399. </Rows>
  400. </Dataset>
  401. <Dataset id="ds_deathyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  402. <ColumnInfo>
  403. <Column id="label" type="STRING" size="256"/>
  404. <Column id="value" type="STRING" size="256"/>
  405. </ColumnInfo>
  406. <Rows>
  407. <Row>
  408. <Col id="label">live</Col>
  409. <Col id="value">Y</Col>
  410. </Row>
  411. <Row>
  412. <Col id="value">N</Col>
  413. <Col id="label">dead</Col>
  414. </Row>
  415. </Rows>
  416. </Dataset>
  417. <Dataset id="ds_temp_womanlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  418. <ColumnInfo>
  419. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  420. <Column id="patnm" type="STRING" size="256" sumtext="산모명"/>
  421. <Column id="sexage" type="STRING" size="256" sumtext="산모 성별/나이"/>
  422. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  423. <Column id="bthdd" type="STRING" size="256" sumtext="분만일자"/>
  424. <Column id="bthtm" type="STRING" size="256" sumtext="분만시간"/>
  425. <Column id="prgweekday" type="STRING" size="256" sumtext="임신주수"/>
  426. <Column id="prgweekday2" type="STRING" size="256" sumtext="임신주수구분"/>
  427. <Column id="ptnernm" type="STRING" size="256" sumtext="남편명"/>
  428. <Column id="womanremk" type="STRING" size="256" sumtext="산모정보 비고"/>
  429. <Column id="dlivkindnm" type="STRING" size="256" sumtext="분만형태"/>
  430. <Column id="dlivplcenm" type="STRING" size="256" sumtext="분만장소"/>
  431. <Column id="dlivflagnm" type="STRING" size="256" sumtext="분만구분"/>
  432. <Column id="deathyn" type="STRING" size="256" sumtext="생사여부"/>
  433. <Column id="weig" type="STRING" size="256" sumtext="몸무게"/>
  434. <Column id="weig2" type="STRING" size="256" sumtext="몸무게구분"/>
  435. <Column id="gndr" type="STRING" size="256" sumtext="성별"/>
  436. <Column id="apgarscore" type="STRING" size="256" sumtext="A/S"/>
  437. <Column id="babyremk" type="STRING" size="256" sumtext="신생아정보 비고"/>
  438. <Column id="avulsionweig" type="STRING" size="256" sumtext="태반무게"/>
  439. <Column id="avulsionheig" type="STRING" size="256" sumtext="태반길이"/>
  440. <Column id="medispclnm" type="STRING" size="256" sumtext="주치의"/>
  441. <Column id="atdoctnm" type="STRING" size="256" sumtext="분만의"/>
  442. <Column id="nurseid" type="STRING" size="256" sumtext="간호사"/>
  443. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  444. <Column id="seqno" type="STRING" size="256" sumtext="일련번호"/>
  445. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  446. <Column id="onebabyyn" type="STRING" size="256" sumtext="단태아여부"/>
  447. <Column id="babyno" type="STRING" size="256" sumtext="신생아등록번호"/>
  448. <Column id="partrtnhis" type="STRING" size="256" sumtext="출산력"/>
  449. <Column id="wardcd" type="STRING" size="256" sumtext="병동코드"/>
  450. <Column id="roomcd" type="STRING" size="256" sumtext="병실코드"/>
  451. <Column id="indschacptstat" type="STRING" size="256" sumtext="입퇴원접수상태"/>
  452. <Column id="dschnotirgstdt" type="STRING" size="256" sumtext="퇴원일"/>
  453. <Column id="fstnrea" type="STRING" size="256" sumtext="모유수유힘든이유"/>
  454. <Column id="fstlctyn" type="STRING" size="256" sumtext="모유수유시도여부"/>
  455. <Column id="fsttm" type="STRING" size="256" sumtext="모유수유최초시도일시"/>
  456. <Column id="attrnm" type="STRING" size="256" sumtext="입원신생아제공음식물"/>
  457. <Column id="dschstat" type="STRING" size="256" sumtext="진행상태"/>
  458. <Column id="dschlactype" type="STRING" size="256" sumtext="퇴원시수유형태"/>
  459. <Column id="mothertype" type="STRING" size="256" sumtext="산모유형"/>
  460. <Column id="artinfo" type="STRING" size="256" sumtext="보조생식술"/>
  461. </ColumnInfo>
  462. </Dataset>
  463. </Objects>
  464. <Bind>
  465. <BindItem id="item10" compid="grp.radio1" propid="value" datasetid="ds_main_cond" columnid="sexflag"/>
  466. <BindItem id="item0" compid="grp.ipt_bthddfromdd" propid="value" datasetid="ds_main_cond" columnid="bthddfromdd"/>
  467. <BindItem id="item1" compid="grp.ipt_bthddtodd" propid="value" datasetid="ds_main_cond" columnid="bthddtodd"/>
  468. <BindItem id="item2" compid="grp.ipt_patnm" propid="value" datasetid="ds_main_cond" columnid="patnm"/>
  469. <BindItem id="item3" compid="grp.ipt_pid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
  470. <BindItem id="item4" compid="grp.bool1" propid="value" datasetid="ds_main_cond" columnid="clinicyn"/>
  471. <BindItem id="item5" compid="grp.bool2" propid="value" datasetid="ds_main_cond" columnid="indschacptstat"/>
  472. <BindItem id="item6" compid="grp.bool3" propid="value" datasetid="ds_main_cond" columnid="babyyn"/>
  473. <BindItem id="item7" compid="grp.rdo_dlivkindcd" propid="value" datasetid="ds_main_cond" columnid="dlivkindcd"/>
  474. <BindItem id="item8" compid="grp.radio2" propid="value" datasetid="ds_main_cond" columnid="prgweekcntflag"/>
  475. <BindItem id="item9" compid="grp.radio5" propid="value" datasetid="ds_main_cond" columnid="mothertypeflag"/>
  476. <BindItem id="item11" compid="grp.radio4" propid="value" datasetid="ds_main_cond" columnid="innbabyyn"/>
  477. <BindItem id="item12" compid="grp.radio3" propid="value" datasetid="ds_main_cond" columnid="weigflag"/>
  478. </Bind>
  479. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  480. * System Name :
  481. * Job Name :
  482. * Creator :
  483. * Make Date : 2015-11-13
  484. * Description :
  485. *---------------------------------------------------------------------------------------
  486. * Modify Date Modifier Modify Description
  487. *---------------------------------------------------------------------------------------
  488. * 2015-11-13 Live Converter TF->XP
  489. *
  490. *---------------------------------------------------------------------------------------
  491. ****************************************************************************************/
  492. //=======================================================================================
  493. // Lib Include
  494. //---------------------------------------------------------------------------------------
  495. include 'com_commonxp::comm_main.xjs';
  496. var arErrorCode = new HashArray();
  497. //=======================================================================================
  498. // Local methods
  499. //---------------------------------------------------------------------------------------
  500. /****************************************************************************************
  501. * Argument :
  502. * Description : 초기화 작업을 합니다.
  503. ****************************************************************************************/
  504. function fInitialize(){
  505. var today = utlf_getCurrentDate();
  506. ds_main_cond.setColumn(0, 'bthddfromdd', today.substr(0, 6) + '01');
  507. ds_main_cond.setColumn(0, 'bthddtodd', today);
  508. //fSearchClick();
  509. }
  510. /****************************************************************************************
  511. * Argument :
  512. * Description : 분만장부 리스트 조회
  513. ****************************************************************************************/
  514. function fSearchClick(){
  515. ds_main_womanlist.clearData();
  516. ds_main_womanlist.addRow();
  517. var oParam = {};
  518. oParam.id = "TRMNN00801";
  519. oParam.service = "partrtnnbabyapp.PartrtnPatMngt";
  520. oParam.method = "reqGetWomanStatisticsList";
  521. oParam.inds = "req=ds_main_cond";
  522. oParam.outds = "ds_main_womanlist=womanlist";
  523. oParam.async = false;
  524. //oParam.callback = "cf_TRMNN00801";
  525. tranf_submit(oParam);
  526. dsf_setTypeFormat(ds_main_womanlist, "avulsionweig:STRING");
  527. ds_main_womanlist.rowposition = -1;
  528. }
  529. /****************************************************************************************
  530. * Argument :
  531. * Description : Excel파일로 저장
  532. ****************************************************************************************/
  533. function fSaveExcel(){
  534. grdf_exportExcel(grd_wardpatlist, '', 'Sheet1', true, '', 'user', true);
  535. }
  536. /****************************************************************************************
  537. * Argument :
  538. * Description : 분만장부 출력
  539. ****************************************************************************************/
  540. function fClickPrint(){
  541. ds_temp_womanlist.copyData(ds_main_womanlist);
  542. for( var i=0 ; i<ds_temp_womanlist.rowcount ; i++ ){
  543. ds_temp_womanlist.setColumn(i, "deathyn", (ds_temp_womanlist.getColumn(i, "deathyn") == "Y" ? "live" : "dead"));
  544. }
  545. // DOM 객체 설정
  546. var objDOM = rptf_createDOM();
  547. rptf_setNodeListToDOM(objDOM, 'root/send/printdata/womanlist/womanlist', ds_temp_womanlist);
  548. rptf_setNodeListToDOM(objDOM, 'root/send/printdata/cond', ds_main_cond);
  549. rptf_exeReportPreview30(["RPMNN00801"],
  550. [{ xml_data_XML1: objDOM.documentElement.source }],
  551. 'open=1;save=1;directprint=0;printdialog=0;print=1;zoom=0');
  552. }
  553. //=======================================================================================
  554. // callback
  555. //---------------------------------------------------------------------------------------
  556. function callback(sSvcId, nErrorCode, sErrorMsg){
  557. arErrorCode.push(sSvcId, nErrorCode);
  558. }
  559. //=======================================================================================
  560. // Events
  561. //---------------------------------------------------------------------------------------
  562. /****************************************************************************************
  563. * Argument :
  564. * Description : onload
  565. ****************************************************************************************/
  566. function SMMNN00800_onload(obj:Form, e:LoadEventInfo){
  567. // 폼 초기화
  568. frmf_initForm(obj);
  569. trace("in");
  570. ds_main_cond.setColumn(0, "dlivkindcd", "");
  571. ds_main_cond.setColumn(0, "sexflag", "");
  572. ds_main_cond.setColumn(0, "prgweekcntflag", "");
  573. ds_main_cond.setColumn(0, "innbabyyn", "");
  574. ds_main_cond.setColumn(0, "mothertypeflag", "");
  575. ds_main_cond.setColumn(0, "weigflag", "");
  576. //grdf_initGrid(grd_wardpatlist);
  577. fInitialize();
  578. }
  579. /****************************************************************************************
  580. * Argument :
  581. * Description : 산모명 키보드 입력 이벤트
  582. ****************************************************************************************/
  583. function grp_sea_ipt_patnm_onkeydown(obj:Edit, e:KeyEventInfo){
  584. if(e.keycode == 13){
  585. obj.updateToDataset();
  586. grp.btn_select.setFocus();
  587. fSearchClick();
  588. }
  589. }
  590. /****************************************************************************************
  591. * Argument :
  592. * Description : 산모명 키보드 입력 이벤트
  593. ****************************************************************************************/
  594. function grp_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo){
  595. if(e.keycode == 13){
  596. obj.updateToDataset();
  597. grp.btn_select.setFocus();
  598. fSearchClick();
  599. }
  600. }
  601. /****************************************************************************************
  602. * Argument :
  603. * Description : 임상질지표 체크박스 클릭 이벤트
  604. ****************************************************************************************/
  605. function grp_bool1_onclick(obj:CheckBox, e:ClickEventInfo){
  606. //fSearchClick();
  607. }
  608. /****************************************************************************************
  609. * Argument :
  610. * Description : 임상질지표 체크박스 클릭 이벤트
  611. ****************************************************************************************/
  612. function grp_bool2_onclick(obj:CheckBox, e:ClickEventInfo){
  613. //fSearchClick();
  614. }
  615. /****************************************************************************************
  616. * Argument :
  617. * Description : 임상질지표 체크박스 클릭 이벤트
  618. ****************************************************************************************/
  619. function grp_bool3_onclick(obj:CheckBox, e:ClickEventInfo){
  620. //fSearchClick();
  621. }
  622. /****************************************************************************************
  623. * Argument :
  624. * Description : 조회 버튼 클릭 이벤트
  625. ****************************************************************************************/
  626. function grp_btn_select_onclick(obj:Button, e:ClickEventInfo){
  627. var pos = grd_wardpatlist.hscrollbar.pos;
  628. fSearchClick();
  629. grd_wardpatlist.hscrollbar.pos = pos;
  630. }
  631. /****************************************************************************************
  632. * Argument :
  633. * Description : 엑셀저장 버튼 클릭 이벤트
  634. ****************************************************************************************/
  635. function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo){
  636. fSaveExcel();
  637. }
  638. /****************************************************************************************
  639. * Argument :
  640. * Description : 출력 버튼 클릭 이벤트
  641. ****************************************************************************************/
  642. function btn_print_onclick(obj:Button, e:ClickEventInfo){
  643. fClickPrint();
  644. }
  645. function grd_wardpatlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  646. {
  647. fGridDbClick(ds_main_womanlist.rowposition);
  648. }
  649. /**
  650. * @group :
  651. * @ver : 2007.07.09
  652. * @by : 최경용
  653. * @---------------------------------------------------
  654. * @type : function
  655. * @access : public
  656. * @desc : 분만실 환자 정보 더블클릭시
  657. * @param :
  658. * @param :
  659. * @return :
  660. * @---------------------------------------------------
  661. */
  662. function fGridDbClick(row){
  663. var pid = ds_main_womanlist.getColumn(row, "pid") ;
  664. var indd = ds_main_womanlist.getColumn(row, "indd") ;
  665. var cretno = ds_main_womanlist.getColumn(row, "cretno");
  666. var instcd = ds_main_womanlist.getColumn(row, "instcd");
  667. var bthdd = ds_main_womanlist.getColumn(row, "bthdd") ;
  668. var patnm = ds_main_womanlist.getColumn(row, "patnm") ;
  669. //파라미터 추가_2009-02-17_SMY
  670. var wardcd = ds_main_womanlist.getColumn(row, "wardcd");
  671. var roomcd = ds_main_womanlist.getColumn(row, "roomcd");
  672. //파라미터 추가_2009-02-24_SMY
  673. var indschacptstat = ds_main_womanlist.getColumn(row, "indschacptstat");
  674. frmf_setParameter("pid" , pid );
  675. frmf_setParameter("patnm" , patnm);
  676. frmf_setParameter("indd" , indd);
  677. frmf_setParameter("cretno", cretno);
  678. frmf_setParameter("wardcd", wardcd);
  679. frmf_setParameter("roomcd", roomcd);
  680. frmf_setParameter("indschacptstat", indschacptstat);
  681. frmf_modal("SMMNN00700", "SMMNN00700", "", null, "", "", "", null, null, null, null, null, "M");
  682. }
  683. function grd_wardpatlist_onheaddblclick(obj:Grid, e:GridClickEventInfo)
  684. {
  685. grid_sort_modi(grd_wardpatlist,e);
  686. }
  687. //191014_AYS_Head Row 2개 존재 시 Grid Sort 기능 추가
  688. var CONST_ASC_MARK = "▲";
  689. var CONST_DESC_MARK = "▼";
  690. function grid_sort_modi(obj:Grid, e:GridClickEventInfo)
  691. {
  692. var bindDs = eval(obj.binddataset);
  693. if (bindDs.rowcount == 0) return false;
  694. var CONST_SORT_MARK = "";
  695. // 클릭한 위치 그 앞에까지 존재하는 서브셀의 갯수 만큼 e.cell 에 더 해주면 body 영역의 col 위치 값이 나올듯?
  696. var colspanHeadCnt = 0;
  697. var colspanBodyCnt = 0;
  698. var headCnt = 0;
  699. var bodyCnt = 0;
  700. var head0 = 0;
  701. var head1 = 0;
  702. var headcellcnt = obj.getCellCount("Body");
  703. // trace("Cell Cnt : " + obj.getCellCount("Head"));
  704. // trace("cell : " + e.cell);
  705. for(var i = 0; i <= e.cell; i++) {
  706. headCnt = obj.getCellProperty("Head", i, "colspan");
  707. bodyCnt = obj.getCellProperty("body", i, "colspan");
  708. colspanHeadCnt += headCnt;
  709. colspanBodyCnt += bodyCnt;
  710. // trace(i + " : " + headCnt + " / " + bodyCnt);
  711. // trace("cnt : " + colspanHeadCnt + " / " + colspanBodyCnt);
  712. // trace(obj.getCellProperty("Head", i, "text"));
  713. // trace(obj.getCellProperty("Head", i, "row"));
  714. }
  715. //191002_AYS_test
  716. for(var i = 0; i <= headcellcnt; i++){
  717. if( obj.getCellProperty("Head", i, "row") == "0" ){
  718. head0++;
  719. } else if( obj.getCellProperty("Head", i, "row") == "1" ) {
  720. head1++;
  721. }
  722. }
  723. // trace("head0 : " + head0);
  724. // trace("head1 : " + head1);
  725. var colspanCnt = colspanHeadCnt - colspanBodyCnt;
  726. // trace("colspanCnt B : " + colspanCnt + " / headcng : " + headCnt);
  727. // 선택한 컬럼의 head가 합쳐져 있고 body는 안합쳐져 있을 때는 body의 제일 앞 컬럼 기준으로 sort 하도록 수정
  728. if(headCnt > 1 && bodyCnt == 1) {
  729. colspanCnt = colspanCnt - headCnt + 1;
  730. // trace("colspanCnt A : " + colspanCnt);
  731. }
  732. // trace("sText : " + obj.getCellProperty("body", e.cell, "text"));
  733. //var sText = obj.getCellProperty("body", e.cell + colspanCnt, "text");
  734. var sText = obj.getCellProperty("body", e.cell - head0, "text");
  735. if(utlf_isNull(sText)) return false;
  736. var BodyColId = sText.split(":"); // e.col : 바인드된 컬럼.
  737. if (BodyColId[0] != "bind") {
  738. return false;
  739. }
  740. //for (var i = 0; i < obj.getCellCount("head"); i++) {
  741. if(obj.getCellText(-1, e.cell) == "undefined")
  742. return;
  743. //continue;
  744. var strHeadText = obj.getCellText(-1, e.cell);
  745. // trace("strHeadText : " + strHeadText);
  746. // tfmode 일때는 TF와 동일하게 두 개 컬럼까지만 연속 정렬되고 세개째부터는 다시 한개만 정렬되도록 함
  747. if(obj.tfmode == "Y") {
  748. var sameCnt = 0;
  749. for (var i = 0; i < obj.getCellCount("head"); i++) {
  750. if(i == e.cell) continue;
  751. var tempStrHeadText = obj.getCellText(-1, i);
  752. var status = tempStrHeadText.substr(tempStrHeadText.length - 1);
  753. if(status == CONST_DESC_MARK || status == CONST_ASC_MARK)
  754. {
  755. if(++sameCnt > 1) { // 기존에 2개가 있다면 초기화 하고 다시 한개만
  756. //초기화
  757. grdf_clearSort(obj);
  758. }
  759. }
  760. }
  761. }
  762. //if(i == e.cell) {
  763. var keystring = bindDs.keystring;
  764. var sortcolumns = "";
  765. // trace("keystring : " + keystring);
  766. if(!utlf_isNull(keystring)) {
  767. // trace("IN!!");
  768. keystring = keystring.toString();
  769. var isGroup = keystring.indexOf("G:");
  770. if(isGroup > -1) return;
  771. keystring = keystring.replace(/undefined/g, "");
  772. if(keystring != "S:") {
  773. var nStart = keystring.indexOf("S:");
  774. sortcolumns = keystring.substring(nStart + 2, keystring.length);
  775. var nS = sortcolumns.indexOf(BodyColId[1]); // keystring에 이미 들어가 있는 컬럼이면 먼저 제거 해준다.
  776. if( nS > -1) {
  777. //sysf_trace("1 : " + sortcolumns + ", " + sortcolumns.substring(0, nS) + ", " + sortcolumns.substring(nS, sortcolumns.length));
  778. sortcolumns = sortcolumns.substring(0, nS - 1) + sortcolumns.substring(nS, sortcolumns.length); // '+', '-' 제거
  779. sortcolumns = sortcolumns.replace(BodyColId[1], ""); // 기존에 있는 컬럼명 제거
  780. }
  781. }
  782. }
  783. if (strHeadText.substr(strHeadText.length - 1) == CONST_ASC_MARK) {
  784. obj.setCellProperty( "head", e.cell, "text", strHeadText.substr(0, strHeadText.length - 2) + " " + CONST_DESC_MARK);
  785. bindDs.keystring = "S:" + "-" + BodyColId[1] + sortcolumns;
  786. } else if (strHeadText.substr(strHeadText.length - 1) == CONST_DESC_MARK) {
  787. obj.setCellProperty( "head", e.cell, "text", strHeadText.substr(0, strHeadText.length - 2));
  788. bindDs.keystring = "S:" + sortcolumns;
  789. } else {
  790. obj.setCellProperty( "head", e.cell, "text", strHeadText + " " + CONST_ASC_MARK);
  791. bindDs.keystring = "S:" + "+" + BodyColId[1] + sortcolumns;
  792. }
  793. //}
  794. //}
  795. }]]></Script>
  796. </Form>
  797. </FDL>