SMLLF10100_통합계검사계코드관리.xfdl 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLF10100" position="absolute 0 0 1197 765" titletext="검사시행부서코드관리" oninit="SMLLF10100_oninit" onload="SMLLF10100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1068 3 1124 25" onclick="btn_save_onclick" anchor="top right"/>
  8. <Button id="btn_reset" taborder="2" text="초기화" class="btn4" position="absolute 1127 3 1195 25" onclick="btn_reset_onclick" anchor="top right"/>
  9. <Div id="group2" taborder="3" position="absolute 0 26 1195 61" class="div_SA" anchor="left top right">
  10. <Layouts>
  11. <Layout>
  12. <Static id="caption2" text="조회구분 :" class="search_name" position="absolute 15 9 105 26" anchor="default"/>
  13. <Shape id="line11" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
  14. <Button id="btn_search" taborder="1" text="조회" onclick="group2_btn_search_onclick" class="btn1" position="absolute 1123 7 1180 29" anchor="top right"/>
  15. <Combo id="cmb_refgbn" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_s_essential" position="absolute 108 8 258 27" anchor="default">
  16. <Dataset id="innerdataset">
  17. <ColumnInfo>
  18. <Column id="codecolumn"/>
  19. <Column id="datacolumn"/>
  20. </ColumnInfo>
  21. <Rows>
  22. <Row>
  23. <Col id="codecolumn">1</Col>
  24. <Col id="datacolumn">사용코드</Col>
  25. </Row>
  26. <Row>
  27. <Col id="codecolumn">2</Col>
  28. <Col id="datacolumn">전체코드</Col>
  29. </Row>
  30. </Rows>
  31. </Dataset>
  32. </Combo>
  33. </Layout>
  34. </Layouts>
  35. </Div>
  36. <Static id="caption1" text="시행부서코드목록" class="tit_2" position="absolute 1 71 134 87" anchor="left top"/>
  37. <Shape id="line2" linetype="horizontal" class="line_1" position="absolute 0 87 495 93" style="strokepen:3 solid #33bbbbff;" anchor="left top"/>
  38. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 500 87 1194 93" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  39. <Static id="caption3" text="시행부서상세코드목록" class="tit_2" position="absolute 501 70 656 86" anchor="left top right"/>
  40. <Grid id="grd_sect" taborder="4" binddataset="ds_grd_sect" useinputpanel="false" oncellclick="group3_grd_sect_oncellclick" position="absolute 0 92 495 761" cellsizingtype="col" anchor="left top bottom">
  41. <Formats>
  42. <Format id="default">
  43. <Columns>
  44. <Column size="24"/>
  45. <Column size="85"/>
  46. <Column size="0"/>
  47. <Column size="50"/>
  48. <Column size="70"/>
  49. <Column size="90"/>
  50. <Column size="80"/>
  51. <Column size="80"/>
  52. <Column size="80"/>
  53. </Columns>
  54. <Rows>
  55. <Row size="24" band="head"/>
  56. <Row size="24"/>
  57. </Rows>
  58. <Band id="head">
  59. <Cell/>
  60. <Cell col="1" text="사용시작일"/>
  61. <Cell col="2" text="사용종료일"/>
  62. <Cell col="3" text="계코드"/>
  63. <Cell col="4" text="계명"/>
  64. <Cell col="5" text="계명(화면)"/>
  65. <Cell col="6" text="계명(약어)"/>
  66. <Cell col="7" text="계명(출력)"/>
  67. <Cell col="8" text="계명(라벨)"/>
  68. </Band>
  69. <Band id="body">
  70. <Cell celltype="head"/>
  71. <Cell col="1" displaytype="date" edittype="date" text="bind:sectfromdd"/>
  72. <Cell col="2" displaytype="date" edittype="date" text="bind:secttodd"/>
  73. <Cell col="3" displaytype="text" edittype="text" text="bind:sectcd"/>
  74. <Cell col="4" displaytype="text" edittype="text" text="bind:sectnm"/>
  75. <Cell col="5" displaytype="text" edittype="text" text="bind:sectscrnnm"/>
  76. <Cell col="6" displaytype="text" edittype="text" text="bind:sectabbrnm"/>
  77. <Cell col="7" displaytype="text" edittype="text" text="bind:sectprntnm"/>
  78. <Cell col="8" displaytype="text" edittype="text" text="bind:sectlblnm"/>
  79. </Band>
  80. </Format>
  81. </Formats>
  82. </Grid>
  83. <Grid id="grd_tsect" taborder="5" binddataset="ds_grd_tsect" useinputpanel="false" position="absolute 500 92 1195 761" cellsizingtype="col" anchor="all" autofittype="col">
  84. <Formats>
  85. <Format id="default">
  86. <Columns>
  87. <Column size="26"/>
  88. <Column size="99"/>
  89. <Column size="0"/>
  90. <Column size="38"/>
  91. <Column size="49"/>
  92. <Column size="81"/>
  93. <Column size="104"/>
  94. <Column size="117"/>
  95. <Column size="90"/>
  96. <Column size="90"/>
  97. </Columns>
  98. <Rows>
  99. <Row size="24" band="head"/>
  100. <Row size="24" band="head"/>
  101. <Row size="24"/>
  102. </Rows>
  103. <Band id="head">
  104. <Cell rowspan="2" taborder="undefined"/>
  105. <Cell col="1" rowspan="2" text="사용시작일" taborder="undefined"/>
  106. <Cell col="2" rowspan="2" text="사용종료일" taborder="undefined"/>
  107. <Cell col="3" colspan="2" text="검사계코드" taborder="undefined"/>
  108. <Cell col="5" rowspan="2" text="검사계명" taborder="undefined"/>
  109. <Cell col="6" rowspan="2" text="검사계명(화면)" taborder="undefined"/>
  110. <Cell col="7" rowspan="2" text="검사계명(약어)" taborder="undefined"/>
  111. <Cell col="8" rowspan="2" text="검사계명(출력)" taborder="undefined"/>
  112. <Cell col="9" rowspan="2" text="검사계명(라벨)" taborder="undefined"/>
  113. <Cell row="1" col="3" text="계"/>
  114. <Cell row="1" col="4" text="검사계"/>
  115. </Band>
  116. <Band id="body">
  117. <Cell celltype="head"/>
  118. <Cell col="1" displaytype="date" edittype="date" text="bind:tsectfromdd"/>
  119. <Cell col="2" displaytype="date" edittype="date" text="bind:tsecttodd"/>
  120. <Cell col="3" text="bind:sectcd"/>
  121. <Cell col="4" displaytype="text" edittype="text" text="bind:tsectcd"/>
  122. <Cell col="5" displaytype="text" edittype="text" text="bind:tsectnm"/>
  123. <Cell col="6" displaytype="text" edittype="text" text="bind:tsectscrnnm"/>
  124. <Cell col="7" displaytype="text" edittype="text" text="bind:tsectabbrnm"/>
  125. <Cell col="8" displaytype="text" edittype="text" text="bind:tsectprntnm"/>
  126. <Cell col="9" displaytype="text" edittype="text" text="bind:tsectlblnm"/>
  127. </Band>
  128. </Format>
  129. </Formats>
  130. </Grid>
  131. <Button id="btn_addnew1" taborder="6" text="행추가" onclick="group3_btn_addnew1_onclick" class="btn2" position="absolute 442 68 495 87" anchor="left top"/>
  132. <Button id="btn_addnew2" taborder="7" text="행추가" onclick="group3_btn_addnew2_onclick" class="btn2" position="absolute 1142 68 1195 87" anchor="top right"/>
  133. <Static id="caption6" text="검사시행부서코드관리" class="tit_1" position="absolute 0 0 168 25" anchor="left top"/>
  134. </Layout>
  135. </Layouts>
  136. <Objects>
  137. <Dataset id="ds_grd_sect" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  138. <ColumnInfo>
  139. <Column id="sectfromdd" type="STRING"/>
  140. <Column id="secttodd" type="STRING"/>
  141. <Column id="sectcd" type="STRING"/>
  142. <Column id="sectnm" type="STRING"/>
  143. <Column id="sectscrnnm" type="STRING"/>
  144. <Column id="sectabbrnm" type="STRING"/>
  145. <Column id="sectprntnm" type="STRING"/>
  146. <Column id="sectlblnm" type="STRING"/>
  147. </ColumnInfo>
  148. </Dataset>
  149. <Dataset id="ds_grd_tsect" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  150. <ColumnInfo>
  151. <Column id="tsectfromdd" type="STRING"/>
  152. <Column id="tsecttodd" type="STRING"/>
  153. <Column id="sectcd" type="STRING"/>
  154. <Column id="tsectcd" type="STRING"/>
  155. <Column id="tsectnm" type="STRING"/>
  156. <Column id="tsectscrnnm" type="STRING"/>
  157. <Column id="tsectabbrnm" type="STRING"/>
  158. <Column id="tsectprntnm" type="STRING"/>
  159. <Column id="tsectlblnm" type="STRING"/>
  160. </ColumnInfo>
  161. </Dataset>
  162. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  163. <ColumnInfo>
  164. <Column id="deptflag" type="STRING" size="0"/>
  165. <Column id="instcd" type="STRING" size="0"/>
  166. <Column id="refgbn" type="STRING" size="0"/>
  167. <Column id="userdeptflagcd" type="STRING" size="0"/>
  168. <Column id="sectcd" type="STRING" size="0"/>
  169. <Column id="cd" type="STRING" size="0"/>
  170. <Column id="tsected" type="STRING" size="0"/>
  171. </ColumnInfo>
  172. <Rows>
  173. <Row/>
  174. </Rows>
  175. </Dataset>
  176. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  177. <ColumnInfo>
  178. <Column id="refgbn" type="STRING" size="0"/>
  179. </ColumnInfo>
  180. <Rows>
  181. <Row>
  182. <Col id="refgbn">1</Col>
  183. </Row>
  184. </Rows>
  185. </Dataset>
  186. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  187. <ColumnInfo>
  188. <Column id="nm" type="STRING"/>
  189. <Column id="cd" type="STRING"/>
  190. </ColumnInfo>
  191. </Dataset>
  192. <Dataset id="ds_grddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
  193. <Dataset id="ds_grddata2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
  194. </Objects>
  195. <Bind>
  196. <BindItem id="item0" compid="group2.cmb_refgbn" propid="value" datasetid="ds_hidden" columnid="refgbn"/>
  197. </Bind>
  198. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  199. * System Name :
  200. * Job Name :
  201. * Creator : SPLLF90800_통합계검사계코드관리.xfdl
  202. * Make Date : 2015-12-16
  203. * Description :
  204. *---------------------------------------------------------------------------------------
  205. * Modify Date Modifier Modify Description
  206. *---------------------------------------------------------------------------------------
  207. * 2015-11-09 Live Converter TF->XP
  208. *
  209. *---------------------------------------------------------------------------------------
  210. ****************************************************************************************/
  211. include "com_commonxp::comm_main.xjs";
  212. include "lis_commonxp::LLZ001.xjs";
  213. //=======================================================================================
  214. function cbf_TRLZZ00101(strSvcID, nErrorCode, strErrorMag){
  215. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  216. }
  217. function cf_TRLLF00101(strSvcID, nErrorCode, strErrorMag){
  218. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  219. }
  220. function cf_TRLLF00102(strSvcID, nErrorCode, strErrorMag){
  221. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  222. }
  223. function cf_TXLLF00101(strSvcID, nErrorCode, strErrorMag){
  224. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  225. }
  226. function cf_TXLLF00102(strSvcID, nErrorCode, strErrorMag){
  227. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  228. }
  229. function SMLLF10100_oninit(obj:Form, e:InitEventInfo)
  230. {
  231. //폼 초기화 함수
  232. frmf_initForm(obj);
  233. }
  234. // Null 체크
  235. function lf_NullCheck(){
  236. var msg = "";
  237. var nullyn = "true";
  238. if(ds_grd_tsect.rowcount < 1){
  239. // if(grd_tsect.rows <3){
  240. //alert("시행부서 상세 코드 정보를 입력하십시오.");
  241. sysf_messageBox("시행부서 상세 코드 정보를 ", "C001");
  242. return;
  243. }
  244. // for(i=1; i<grd_tsect.rows; i++ ){
  245. for(i=0; i<ds_grd_tsect.rowcount; i++ ){
  246. if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsectlblnm"))){
  247. msg = "[계라벨명] 은 " ;
  248. nullyn = "false";
  249. }
  250. if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsectprntnm"))){
  251. msg = "[계출력명] 은 " ;
  252. nullyn = "false";
  253. }
  254. if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsectabbrnm"))){
  255. msg = "[계약어명] 은 " ;
  256. nullyn = "false";
  257. }
  258. if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsectscrnnm"))){
  259. msg = "[계화면명] 은 " ;
  260. nullyn = "false";
  261. }
  262. if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsectnm"))){
  263. msg = "[계명] 은 " ;
  264. nullyn = "false";
  265. }
  266. if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsectcd"))){
  267. msg = "[계코드] 는 " ;
  268. nullyn = "false";
  269. }
  270. if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsecttodd"))){
  271. msg = "[사용종료일] 은 " ;
  272. nullyn = "false";
  273. }
  274. if(utlf_isNull(ds_grd_tsect.getColumn(i,"tsectfromdd"))){
  275. msg = "[사용시작일] 은 " ;
  276. nullyn = "false";
  277. }
  278. // if(model.getValue("/root/main/tsectlist["+i+"]/tsectlblnm")==""){
  279. // msg = "[검사계라벨명] 은 " ;
  280. // nullyn = "false";
  281. // }
  282. //
  283. // if(model.getValue("/root/main/tsectlist["+i+"]/tsectprntnm")==""){
  284. // msg = "[검사계출력명] 은 " ;
  285. // nullyn = "false";
  286. // }
  287. //
  288. // if(model.getValue("/root/main/tsectlist["+i+"]/tsectabbrnm")==""){
  289. // msg = "[검사계약어명] 은 " ;
  290. // nullyn = "false";
  291. // }
  292. //
  293. // if(model.getValue("/root/main/tsectlist["+i+"]/tsectscrnnm")==""){
  294. // msg = "[검사계화면명] 은 " ;
  295. // nullyn = "false";
  296. // }
  297. //
  298. // if(model.getValue("/root/main/tsectlist["+i+"]/tsectnm")==""){
  299. // msg = "[검사계명] 은 " ;
  300. // nullyn = "false";
  301. // }
  302. //
  303. // if(model.getValue("/root/main/tsectlist["+i+"]/tsectcd")==""){
  304. // msg = "[검사계코드] 는 " ;
  305. // nullyn = "false";
  306. // }
  307. //
  308. // if(model.getValue("/root/main/tsectlist["+i+"]/tsecttodd")==""){
  309. // msg = "[사용종료일] 은 " ;
  310. // nullyn = "false";
  311. // }
  312. //
  313. // if(model.getValue("/root/main/tsectlist["+i+"]/tsectfromdd")==""){
  314. // msg = "[사용시작일] 은 " ;
  315. // nullyn = "false";
  316. // }
  317. //}
  318. if(nullyn == "false"){
  319. sysf_messageBox(msg, "I003", "");
  320. }
  321. return nullyn;
  322. }
  323. }
  324. function lf_GetSectNull(){
  325. var msg = "";
  326. var nullyn = "true";
  327. var sectRow = ds_grd_sect.rowposition;
  328. // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectlblnm")==""){
  329. if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"sectlblnm"))){
  330. msg = "[계라벨명] 은 " ;
  331. nullyn = "false";
  332. }
  333. if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"sectprntnm"))){
  334. // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectprntnm")==""){
  335. msg = "[계출력명] 은 " ;
  336. nullyn = "false";
  337. }
  338. if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"sectabbrnm"))){
  339. // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectabbrnm")==""){
  340. msg = "[계약어명] 은 " ;
  341. nullyn = "false";
  342. }
  343. if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"sectscrnnm"))){
  344. // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectscrnnm")==""){
  345. msg = "[계화면명] 은 " ;
  346. nullyn = "false";
  347. }
  348. if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"sectnm"))){
  349. // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectnm")==""){
  350. msg = "[계명] 은 " ;
  351. nullyn = "false";
  352. }
  353. if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"sectcd"))){
  354. // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectcd")==""){
  355. msg = "[계코드] 는 " ;
  356. nullyn = "false";
  357. }
  358. if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"secttodd"))){
  359. // if(model.getValue("/root/main/sectlist["+sectRow+"]/secttodd")==""){
  360. msg = "[사용종료일] 은 " ;
  361. nullyn = "false";
  362. }
  363. if(utlf_isNull(ds_grd_sect.getColumn(sectRow,"sectfromdd"))){
  364. // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectfromdd")==""){
  365. msg = "[사용시작일] 은 " ;
  366. nullyn = "false";
  367. }
  368. if(nullyn == "false"){
  369. sysf_messageBox(msg, "I003", "");
  370. }
  371. return nullyn;
  372. }
  373. function SMLLF10100_onload(obj:Form, e:LoadEventInfo)
  374. {
  375. var today = utlf_getCurrentDate();
  376. grdf_setRowTypeIcon(grd_sect, 0);
  377. grdf_setRowTypeIcon(grd_tsect, 0);
  378. //세부내역갱신을 위한 초기화
  379. //grdf_setRowTypeIcon(group6.swt_tclscd.case5.grd_detltest, 0);
  380. // 초기정보 조회
  381. //0001 : 병동조회, 0000 : 사용자부서코드조회, 1004 : 아침채혈 및 BT, MR 등 아침채혈화면에서 조회
  382. var sInDsName = dsf_createDsRow("ds_temp_search"
  383. , [{col: "codeflag", val: "0000|"}]);
  384. //메뉴권한별로 버튼 권한주기.
  385. //setScreenBtnDisabled();
  386. // 서브밋호출
  387. var oParam = {};
  388. oParam.id = "TRLZZ00101";
  389. oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
  390. oParam.method = "reqGetInitCodeInfo";
  391. oParam.inds = "cond="+sInDsName;
  392. oParam.outds = "ds_init_lb0000=0000";
  393. oParam.async = false;
  394. oParam.callback = "cbf_TRLZZ00101";
  395. tranf_submit(oParam);
  396. lf_SetHddentodd();
  397. }
  398. function lf_ExeSectTsect(){
  399. var oDsUpdate = grdf_getGridUpdateData(grd_sect);
  400. grdf_setStatusColumn(oDsUpdate,"status");
  401. ds_grddata.clear();
  402. ds_grddata.copyData(oDsUpdate, true);
  403. var today = utlf_getCurrentDate();
  404. // var sectdata = getGridUpdateData(grd_sect);
  405. // var row = grd_sect.row;
  406. // var today = getCurrentDate();
  407. var tsectRow = ds_grd_tsect.rowcount;
  408. if(tsectRow < 1){
  409. // if(tsectRow < 3){
  410. sysf_messageBox("시행부서 상세 코드 정보를 ", "C001");
  411. return;
  412. }
  413. //var tsectRow = grd_tsect.rows;
  414. //var sectcd = model.getValue("/root/main/sectlist["+grd_sect.row+"]/sectcd");
  415. //계 정보 등록
  416. // model.setValue("/root/send/sectdata", sectdata);
  417. // model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
  418. ds_send.setColumn(0,"deptflag", ds_init_lb0000.getColumn(0, "nm" )); //
  419. var oParam = {};
  420. oParam.id = "TXLLF00101";
  421. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  422. oParam.method = "reqExeSaveUnitySectInfo";
  423. oParam.inds = "slist=ds_grddata flist=ds_send";
  424. oParam.outds = "ds_grd_sect=getsect";
  425. oParam.async = false;
  426. oParam.callback = "cf_TXLLF00101";
  427. tranf_submit(oParam);
  428. // submit("TXLLF10101");
  429. // 검사계 정보 등록
  430. var oDsUpdate2 = grdf_getGridUpdateData(grd_tsect);
  431. grdf_setStatusColumn(oDsUpdate2,"status");
  432. ds_grddata2.clear();
  433. ds_grddata2.copyData(oDsUpdate2, true);
  434. // var tsectdata = getGridUpdateData(grd_tsect);
  435. var l_current = ds_grd_sect.rowposition;
  436. var sectcd = ds_grd_sect.getColumn(l_current,"sectcd");
  437. // alert(sectcd);
  438. ds_send.setColumn(0,"sectcd", sectcd);
  439. // model.setValue("/root/send/sectcd", sectcd);
  440. // model.setValue("/root/send/tsectdata", tsectdata);
  441. // model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
  442. var oParam = {};
  443. oParam.id = "TXLLF00102";
  444. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  445. oParam.method = "reqExeSaveUnityTsectInfo";
  446. oParam.inds = "cond=ds_send tlist=ds_grddata2 flist=ds_send";
  447. oParam.outds = "ds_grd_tsect=getsect";
  448. oParam.async = false;
  449. oParam.callback = "cf_TXLLF00102";
  450. tranf_submit(oParam);
  451. // ds_grddata.clear();
  452. // submit("TXLLF10102");
  453. }
  454. function lf_SetHddentodd(){
  455. // if(cmb_refgbn.value == "1"){
  456. // grd_sect.colHidden(2) = true;
  457. // grd_tsect.colHidden(2) = true;
  458. // }else if(cmb_refgbn.value =="2"){
  459. // grd_sect.colHidden(2) = false;
  460. // grd_tsect.colHidden(2) = false;
  461. // }
  462. }
  463. function lf_GetSectTsect(){
  464. // grd_sect.rebuildstyle();
  465. //검사코드 추가 권한자이면 검사코드추가 버튼 활성화
  466. ds_send.setColumn(0,"refgbn", ds_hidden.getColumn(0,"refgbn"));
  467. ds_send.setColumn(0,"deptflag", ds_init_lb0000.getColumn(0,"nm"));
  468. // model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/refgbn"));
  469. // model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
  470. var oParam = {};
  471. oParam.id = "TRLLF00101";
  472. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  473. oParam.method = "reqGetUnitySectList";
  474. oParam.inds = "cond=ds_send";
  475. oParam.outds = "ds_grd_sect=getUnitySectList";
  476. oParam.async = false;
  477. oParam.callback = "cf_TRLLF00101";
  478. tranf_submit(oParam);
  479. // submit("TRLLF10101"); // 계 리스트 조회
  480. var gbn = ds_hidden.getColumn(0,"refgbn");
  481. // var gbn = model.getValue("/root/hidden/ref/refgbn");
  482. var today = utlf_getCurrentDate();
  483. // 전체조회일때 종료된 데이터 배경색 바꾸기
  484. if(gbn=="2"){
  485. grdf_setRowStyle( group3.grd_sect , "0" ,today,"secttodd","small") // 병실정보row의 색상을 변경한다.
  486. // setRowStyle("grd_sect", "0", today, "secttodd", "small");
  487. }
  488. // 계리스트 존재시 검사계 자동조회
  489. if(ds_grd_sect.rowcount > 0){
  490. // if(grd_sect.rows > 0){
  491. ds_grd_sect.rowposition = 0;
  492. // grd_sect.row = 1;
  493. lf_GetTsect(0);
  494. }
  495. }
  496. // 검사계 리스트 조회
  497. function lf_GetTsect(sectRow){
  498. // grd_tsect.allStyle("all", "background-color") = "#FFFFFF";
  499. var today = utlf_getCurrentDate();
  500. var cdd = ds_grd_sect.getColumn(sectRow,"sectcd");
  501. ds_send.setColumn(0,"refgbn", ds_hidden.getColumn(0,"refgbn"));
  502. ds_send.setColumn(0,"cd", cdd);
  503. var oParam = {};
  504. oParam.id = "TRLLF00102";
  505. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  506. oParam.method = "reqGetUnityTsectList";
  507. oParam.inds = "cond=ds_send";
  508. oParam.outds = "ds_grd_tsect=getUnityTsectList";
  509. oParam.async = false;
  510. oParam.callback = "cf_TRLLF00102";
  511. tranf_submit(oParam);
  512. // submit("TRLLF10102");
  513. grdf_setRowStyle(grd_tsect , "0" ,today,"tsecttodd","small") //
  514. // setRowStyle("grd_tsect", "0", getCurrentDate(), "tsecttodd", "small");
  515. // grd_tsect.allStyle("all", "background-color") = "#FFFFFF";
  516. // var cdd = model.getValue("/root/main/sectlist["+sectRow+"]/sectcd");
  517. //
  518. // model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/refgbn"));
  519. // model.setValue("/root/send/sectcd", cdd);
  520. //
  521. // submit("TRLLF10102");
  522. //
  523. // setRowStyle("grd_tsect", "0", getCurrentDate(), "tsecttodd", "small");
  524. }
  525. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  526. {
  527. // 계코드 조회
  528. lf_GetSectTsect();
  529. }
  530. function group3_grd_sect_oncellclick(obj:Grid, e:GridClickEventInfo)
  531. {
  532. lf_GetTsect(obj.currentrow);
  533. }
  534. function lf_SetSectRowAdd(){
  535. var l_current = ds_grd_sect.addRow();
  536. // grd_sect.rowStatus(0) = 1;
  537. var today = utlf_getCurrentDate();
  538. ds_grd_sect.setColumn(l_current,"sectfromdd", today);
  539. ds_grd_sect.setColumn(l_current,"secttodd", "99991231");
  540. ds_grd_sect.setColumn(l_current,"sectabbrnm", "-");
  541. ds_grd_sect.setColumn(l_current,"sectprntnm", "-");
  542. ds_grd_sect.setColumn(l_current,"sectlblnm","-");
  543. // model.setValue("/root/main/sectlist["+grd_sect.row+"]/sectfromdd", today);
  544. // model.setValue("/root/main/sectlist["+grd_sect.row+"]/secttodd", "99991231");
  545. // model.setValue("/root/main/sectlist["+grd_sect.row+"]/sectabbrnm", "-");
  546. // model.setValue("/root/main/sectlist["+grd_sect.row+"]/sectprntnm", "-");
  547. // model.setValue("/root/main/sectlist["+grd_sect.row+"]/sectlblnm", "-");
  548. // model.removeNodeset("/root/main/tsectlist");
  549. // grd_tsect.refresh();
  550. }
  551. function lf_SetTsectRowAdd(){
  552. //grd_tsect.addRow();
  553. var l_current = ds_grd_tsect.addRow();
  554. var today = utlf_getCurrentDate();
  555. ds_grd_tsect.setColumn(l_current,"tsectfromdd", today);
  556. ds_grd_tsect.setColumn(l_current,"tsecttodd", "99991231");
  557. ds_grd_tsect.setColumn(l_current,"tsectabbrnm", "-");
  558. ds_grd_tsect.setColumn(l_current,"tsectprntnm", "-");
  559. ds_grd_tsect.setColumn(l_current,"tsectlblnm","-");
  560. // model.setValue("/root/main/tsectlist["+(grd_tsect.row-1)+"]/tsectfromdd", today);
  561. // model.setValue("/root/main/tsectlist["+(grd_tsect.row-1)+"]/tsecttodd", "99991231");
  562. // model.setValue("/root/main/tsectlist["+(grd_tsect.row-1)+"]/tsectabbrnm", "-");
  563. // model.setValue("/root/main/tsectlist["+(grd_tsect.row-1)+"]/tsectprntnm", "-");
  564. // model.setValue("/root/main/tsectlist["+(grd_tsect.row-1)+"]/tsectlblnm", "-");
  565. }
  566. function group3_btn_addnew1_onclick(obj:Button, e:ClickEventInfo)
  567. {
  568. lf_SetSectRowAdd();
  569. }
  570. function group3_btn_addnew2_onclick(obj:Button, e:ClickEventInfo)
  571. {
  572. if(lf_GetSectNull()=="true"){
  573. lf_SetTsectRowAdd();
  574. }
  575. }
  576. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  577. {
  578. if(lf_NullCheck()=="true"){
  579. lf_ExeSectTsect();
  580. }
  581. }
  582. function btn_reset_onclick(obj:Button, e:ClickEventInfo)
  583. {
  584. fSetInit();
  585. }
  586. // 초기화 버튼
  587. function fSetInit()
  588. {
  589. ds_grd_sect.clearData();
  590. ds_grd_tsect.clearData();
  591. }
  592. ]]></Script>
  593. </Form>
  594. </FDL>