SMLLF10200_통합검사대분류중분류관리.xfdl 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLF10200" position="absolute 0 0 1197 761" titletext="검사대분류중분류관리" oninit="SMLLF10200_oninit" onload="SMLLF10200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1066 3 1122 25" onclick="btn_save_onclick" anchor="top right"/>
  8. <Button id="btn_reset" taborder="2" text="초기화" class="btn4" position="absolute 1125 3 1193 25" onclick="btn_reset_onclick" anchor="top right"/>
  9. <Static id="caption6" text="검사분류코드관리" class="tit_1" position="absolute 0 0 138 25" anchor="left top"/>
  10. <Div id="group2" taborder="3" position="absolute 0 26 1195 61" class="div_SA" anchor="left top right">
  11. <Layouts>
  12. <Layout>
  13. <Static id="caption2" text="조회구분 :" class="search_name" position="absolute 15 9 105 26" anchor="default"/>
  14. <Shape id="line11" linetype="vertical" class="line_4" position="absolute 1105 6 1111 28" anchor="top right"/>
  15. <Button id="btn_ref" taborder="1" text="조회" onclick="group3_group2_btn_ref_onclick" class="btn1" position="absolute 1123 7 1180 29" anchor="top right"/>
  16. <Combo id="cmb_refgbn" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_s_essential" position="absolute 108 8 258 27" anchor="default">
  17. <Dataset id="innerdataset">
  18. <ColumnInfo>
  19. <Column id="codecolumn"/>
  20. <Column id="datacolumn"/>
  21. </ColumnInfo>
  22. <Rows>
  23. <Row>
  24. <Col id="codecolumn">1</Col>
  25. <Col id="datacolumn">사용코드</Col>
  26. </Row>
  27. <Row>
  28. <Col id="codecolumn">2</Col>
  29. <Col id="datacolumn">전체코드</Col>
  30. </Row>
  31. </Rows>
  32. </Dataset>
  33. </Combo>
  34. </Layout>
  35. </Layouts>
  36. </Div>
  37. <Static id="caption1" text="대분류코드상세내역" class="tit_2" position="absolute 1 68 140 85" anchor="left top"/>
  38. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 85 510 91" style="strokepen:3 solid #33bbbbff;" anchor="left top"/>
  39. <Static id="caption3" text="중분류코드상세내역" class="tit_2" position="absolute 515 67 654 83" anchor="left top right"/>
  40. <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 515 85 1195 91" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  41. <Grid id="grd_testlrg" taborder="4" binddataset="ds_grd_testlrg" useinputpanel="false" oncellclick="group3_grd_testlrg_oncellclick" position="absolute 0 90 510 759" anchor="left top bottom" cellsizingtype="col">
  42. <Formats>
  43. <Format id="default">
  44. <Columns>
  45. <Column size="24"/>
  46. <Column size="85"/>
  47. <Column size="0"/>
  48. <Column size="70"/>
  49. <Column size="70"/>
  50. <Column size="100"/>
  51. <Column size="100"/>
  52. <Column size="100"/>
  53. <Column size="100"/>
  54. <Column size="100"/>
  55. </Columns>
  56. <Rows>
  57. <Row size="24" band="head"/>
  58. <Row size="24"/>
  59. </Rows>
  60. <Band id="head">
  61. <Cell/>
  62. <Cell col="1" text="사용시작일"/>
  63. <Cell col="2" text="사용종료일"/>
  64. <Cell col="3" text="대분류코드"/>
  65. <Cell col="4" text="대분류유형"/>
  66. <Cell col="5" text="대분류명"/>
  67. <Cell col="6" text="대분류명(화면)"/>
  68. <Cell col="7" text="대분류명(약어)"/>
  69. <Cell col="8" text="대분류명(출력)"/>
  70. <Cell col="9" text="대분류명(라벨)"/>
  71. </Band>
  72. <Band id="body">
  73. <Cell celltype="head"/>
  74. <Cell col="1" displaytype="date" edittype="date" text="bind:testlrgfromdd"/>
  75. <Cell col="2" displaytype="date" edittype="date" text="bind:testlrgtodd"/>
  76. <Cell col="3" displaytype="text" edittype="text" style="align:center middle;" text="bind:testlrgcd"/>
  77. <Cell col="4" displaytype="combo" edittype="combo" text="bind:testlrgkind" combodataset="ds_init_lrggubun" combocodecol="cd" combodatacol="nm"/>
  78. <Cell col="5" displaytype="text" edittype="text" text="bind:testlrgnm"/>
  79. <Cell col="6" displaytype="text" edittype="text" text="bind:testlrgscrnnm"/>
  80. <Cell col="7" displaytype="text" edittype="text" text="bind:testlrgabbrnm"/>
  81. <Cell col="8" displaytype="text" edittype="text" text="bind:testlrgprntnm"/>
  82. <Cell col="9" displaytype="text" edittype="text" text="bind:testlrglblnm"/>
  83. </Band>
  84. </Format>
  85. </Formats>
  86. </Grid>
  87. <Grid id="grd_testmdl" taborder="5" binddataset="ds_grd_testmdl" useinputpanel="false" position="absolute 515 90 1195 759" anchor="all" autofittype="col" cellsizingtype="col">
  88. <Formats>
  89. <Format id="default">
  90. <Columns>
  91. <Column size="21"/>
  92. <Column size="85"/>
  93. <Column size="0"/>
  94. <Column size="45"/>
  95. <Column size="45"/>
  96. <Column size="100"/>
  97. <Column size="100"/>
  98. <Column size="100"/>
  99. <Column size="100"/>
  100. <Column size="100"/>
  101. </Columns>
  102. <Rows>
  103. <Row size="24" band="head"/>
  104. <Row size="24" band="head"/>
  105. <Row size="24"/>
  106. </Rows>
  107. <Band id="head">
  108. <Cell rowspan="2" taborder="undefined"/>
  109. <Cell col="1" rowspan="2" text="사용시작일" taborder="undefined"/>
  110. <Cell col="2" rowspan="2" text="사용종료일" taborder="undefined"/>
  111. <Cell col="3" colspan="2" text="대/중분류코드" taborder="undefined"/>
  112. <Cell col="5" rowspan="2" text="중분류명" taborder="undefined"/>
  113. <Cell col="6" rowspan="2" text="중분류명(화면)" taborder="undefined"/>
  114. <Cell col="7" rowspan="2" text="중분류명(약어)" taborder="undefined"/>
  115. <Cell col="8" rowspan="2" text="중분류명(출력)" taborder="undefined"/>
  116. <Cell col="9" rowspan="2" text="중분류명(라벨)" taborder="undefined"/>
  117. <Cell row="1" col="3" text="대분류"/>
  118. <Cell row="1" col="4" text="중분류"/>
  119. </Band>
  120. <Band id="body">
  121. <Cell celltype="head"/>
  122. <Cell col="1" displaytype="date" edittype="date" text="bind:testmdlfromdd" enable="false"/>
  123. <Cell col="2" displaytype="date" edittype="date" text="bind:testmdltodd" enable="false"/>
  124. <Cell col="3" text="bind:testlrgcd"/>
  125. <Cell col="4" displaytype="text" edittype="text" text="bind:testmdlcd"/>
  126. <Cell col="5" displaytype="text" edittype="text" text="bind:testmdlnm"/>
  127. <Cell col="6" displaytype="text" edittype="text" text="bind:testmdlscrnnm"/>
  128. <Cell col="7" displaytype="text" edittype="text" text="bind:testmdlabbrnm"/>
  129. <Cell col="8" displaytype="text" edittype="text" text="bind:testmdlprntnm"/>
  130. <Cell col="9" displaytype="text" edittype="text" text="bind:testmdllblnm"/>
  131. </Band>
  132. </Format>
  133. </Formats>
  134. </Grid>
  135. <Button id="btn_lrg" taborder="6" text="행추가" onclick="group3_btn_lrg_onclick" class="btn2" position="absolute 457 64 510 83" anchor="left top"/>
  136. <Button id="btn_mdl" taborder="7" text="행추가" onclick="group3_btn_mdl_onclick" class="btn2" position="absolute 1142 64 1195 83" anchor="top right"/>
  137. </Layout>
  138. </Layouts>
  139. <Objects>
  140. <Dataset id="ds_grd_testlrg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  141. <ColumnInfo>
  142. <Column id="testlrgfromdd" type="STRING"/>
  143. <Column id="testlrgtodd" type="STRING"/>
  144. <Column id="testlrgcd" type="STRING"/>
  145. <Column id="testlrgkind" type="STRING"/>
  146. <Column id="testlrgnm" type="STRING"/>
  147. <Column id="testlrgscrnnm" type="STRING"/>
  148. <Column id="testlrgabbrnm" type="STRING"/>
  149. <Column id="testlrgprntnm" type="STRING"/>
  150. <Column id="testlrglblnm" type="STRING"/>
  151. </ColumnInfo>
  152. </Dataset>
  153. <Dataset id="ds_grd_testmdl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  154. <ColumnInfo>
  155. <Column id="testmdlfromdd" type="STRING"/>
  156. <Column id="testmdltodd" type="STRING"/>
  157. <Column id="testlrgcd" type="STRING"/>
  158. <Column id="testmdlcd" type="STRING"/>
  159. <Column id="testmdlnm" type="STRING"/>
  160. <Column id="testmdlscrnnm" type="STRING"/>
  161. <Column id="testmdlabbrnm" type="STRING"/>
  162. <Column id="testmdlprntnm" type="STRING"/>
  163. <Column id="testmdllblnm" type="STRING"/>
  164. </ColumnInfo>
  165. </Dataset>
  166. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  167. <ColumnInfo>
  168. <Column id="refgbn" type="STRING" size="0"/>
  169. </ColumnInfo>
  170. <Rows>
  171. <Row>
  172. <Col id="refgbn">1</Col>
  173. </Row>
  174. </Rows>
  175. </Dataset>
  176. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  177. <ColumnInfo>
  178. <Column id="deptflag" type="STRING" size="0"/>
  179. <Column id="instcd" type="STRING" size="0"/>
  180. <Column id="refgbn" type="STRING" size="0"/>
  181. <Column id="userdeptflagcd" type="STRING" size="0"/>
  182. <Column id="cd" type="STRING" size="0"/>
  183. <Column id="testlrgcd" type="STRING" size="0"/>
  184. </ColumnInfo>
  185. <Rows>
  186. <Row/>
  187. </Rows>
  188. </Dataset>
  189. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  190. <ColumnInfo>
  191. <Column id="nm" type="STRING"/>
  192. <Column id="cd" type="STRING"/>
  193. </ColumnInfo>
  194. </Dataset>
  195. <Dataset id="ds_init_lrggubun" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  196. <ColumnInfo>
  197. <Column id="nm" type="STRING"/>
  198. <Column id="cd" type="STRING"/>
  199. </ColumnInfo>
  200. <Rows>
  201. <Row/>
  202. <Row/>
  203. <Row/>
  204. <Row/>
  205. </Rows>
  206. </Dataset>
  207. <Dataset id="ds_grddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
  208. <Dataset id="ds_grddata2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
  209. </Objects>
  210. <Bind>
  211. <BindItem id="item0" compid="group2.cmb_refgbn" propid="value" datasetid="ds_hidden" columnid="refgbn"/>
  212. </Bind>
  213. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  214. * System Name :
  215. * Job Name :
  216. * Creator : SMLLF00200_검사대분류중분류계코드관리.xfdl
  217. * Make Date : 2015-12-16
  218. * Description :
  219. *---------------------------------------------------------------------------------------
  220. * Modify Date Modifier Modify Description
  221. *---------------------------------------------------------------------------------------
  222. * 2015-11-09 Live Converter TF->XP
  223. *
  224. *---------------------------------------------------------------------------------------
  225. ****************************************************************************************/
  226. include "com_commonxp::comm_main.xjs";
  227. include "lis_commonxp::LLZ001.xjs";
  228. //=======================================================================================
  229. function cbf_TRLZZ00101(strSvcID, nErrorCode, strErrorMag){
  230. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  231. }
  232. function cf_TRLLF00201(strSvcID, nErrorCode, strErrorMag){
  233. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  234. }
  235. function cf_TRLLF00202(strSvcID, nErrorCode, strErrorMag){
  236. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  237. }
  238. function cf_TXLLF00201(strSvcID, nErrorCode, strErrorMag){
  239. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  240. }
  241. function cf_TXLLF00202(strSvcID, nErrorCode, strErrorMag){
  242. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  243. }
  244. function SMLLF10200_oninit(obj:Form, e:InitEventInfo)
  245. {
  246. //폼 초기화 함수
  247. frmf_initForm(obj);
  248. }
  249. function lf_GetSectNull(){
  250. var msg = "";
  251. var nullyn = "true";
  252. var sectRow = ds_grd_testlrg.rowposition;
  253. // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectlblnm")==""){
  254. if(utlf_isNull(ds_grd_testlrg.getColumn(sectRow,"testlrglblnm"))){
  255. msg = "[대분류 라벨명] 은 " ;
  256. nullyn = "false";
  257. }
  258. if(utlf_isNull(ds_grd_testlrg.getColumn(sectRow,"testlrgprntnm"))){
  259. // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectprntnm")==""){
  260. msg = "[대분류 출력명] 은" ;
  261. nullyn = "false";
  262. }
  263. if(utlf_isNull(ds_grd_testlrg.getColumn(sectRow,"testlrgabbrnm"))){
  264. // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectabbrnm")==""){
  265. msg = "[대분류 약어명] 은 " ;
  266. nullyn = "false";
  267. }
  268. if(utlf_isNull(ds_grd_testlrg.getColumn(sectRow,"testlrgscrnnm"))){
  269. // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectscrnnm")==""){
  270. msg = "[대분류 화면명] 은 " ;
  271. nullyn = "false";
  272. }
  273. if(utlf_isNull(ds_grd_testlrg.getColumn(sectRow,"testlrgnm"))){
  274. // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectnm")==""){
  275. msg = "[대분류명] 은 " ;
  276. nullyn = "false";
  277. }
  278. if(utlf_isNull(ds_grd_testlrg.getColumn(sectRow,"testlrgcd"))){
  279. // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectcd")==""){
  280. msg = "[대분류 코드] 는 " ;
  281. nullyn = "false";
  282. }
  283. if(utlf_isNull(ds_grd_testlrg.getColumn(sectRow,"testlrgtodd"))){
  284. // if(model.getValue("/root/main/sectlist["+sectRow+"]/secttodd")==""){
  285. msg = "[사용종료일] 은 " ;
  286. nullyn = "false";
  287. }
  288. if(utlf_isNull(ds_grd_testlrg.getColumn(sectRow,"testlrgfromdd"))){
  289. // if(model.getValue("/root/main/sectlist["+sectRow+"]/sectfromdd")==""){
  290. msg = "[사용시작일] 은 " ;
  291. nullyn = "false";
  292. }
  293. if(nullyn == "false"){
  294. sysf_messageBox(msg, "I003", "");
  295. }
  296. return nullyn;
  297. }
  298. function lf_GetTestMdllist(row){
  299. // 중분류 노드 초기화 (resetinstance 하면 맨윗줄 안없어짐,,, deleteitem 해도...)
  300. // model.removeNodeset("/root/main/testmdllist");
  301. var l_current = ds_grd_testlrg.getColumn ;
  302. ds_send.setColumn(0,"refgbn", ds_hidden.getColumn(0,"refgbn"));
  303. ds_send.setColumn(0,"testlrgcd", ds_grd_testlrg.getColumn(row,"testlrgcd"));
  304. // model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/refgbn"));
  305. // model.setvalue("/root/send/testlrgcd", model.getvalue("/root/main/testlrglist["+ row +"]/testlrgcd"));
  306. var oParam = {};
  307. oParam.id = "TRLLF00202";
  308. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  309. oParam.method = "reqGetUnityTestMdlList";
  310. oParam.inds = "cond=ds_send";
  311. oParam.outds = "ds_grd_testmdl=getUnityTestMdlList";
  312. oParam.async = false;
  313. oParam.callback = "cf_TRLLF00202";
  314. tranf_submit(oParam);
  315. // submit("TRLLF10202");
  316. }
  317. function SMLLF10200_onload(obj:Form, e:LoadEventInfo)
  318. {
  319. var today = utlf_getCurrentDate();
  320. grdf_setRowTypeIcon(grd_testlrg, 0);
  321. grdf_setRowTypeIcon(grd_testmdl, 0);
  322. // 참조값 기준자료설정
  323. ds_init_lrggubun.setColumn(0, "cd","-");
  324. ds_init_lrggubun.setColumn(0, "nm","");
  325. ds_init_lrggubun.setColumn(1, "cd","M");
  326. ds_init_lrggubun.setColumn(1, "nm","미생물");
  327. ds_init_lrggubun.setColumn(2, "cd","B");
  328. ds_init_lrggubun.setColumn(2, "nm","혈액은행");
  329. ds_init_lrggubun.setColumn(3, "cd","G");
  330. ds_init_lrggubun.setColumn(3, "nm","분자/세포 유전");
  331. ds_init_lrggubun.setColumn(4, "cd","N");
  332. ds_init_lrggubun.setColumn(4, "nm","핵의학-체외");
  333. // 초기정보 조회
  334. //0001 : 병동조회, 0000 : 사용자부서코드조회, 1004 : 아침채혈 및 BT, MR 등 아침채혈화면에서 조회
  335. var sInDsName = dsf_createDsRow("ds_temp_search"
  336. , [{col: "codeflag", val: "0000|"}]);
  337. // 서브밋호출
  338. var oParam = {};
  339. oParam.id = "TRLZZ00101";
  340. oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
  341. oParam.method = "reqGetInitCodeInfo";
  342. oParam.inds = "cond="+sInDsName;
  343. oParam.outds = "ds_init_lb0000=0000";
  344. oParam.async = false;
  345. oParam.callback = "cbf_TRLZZ00101";
  346. tranf_submit(oParam);
  347. }
  348. function lf_GetTestMdllist(row){
  349. // 중분류 노드 초기화 (resetinstance 하면 맨윗줄 안없어짐,,, deleteitem 해도...)
  350. var l_current = ds_grd_testlrg.getColumn ;
  351. ds_send.setColumn(0,"refgbn", ds_hidden.getColumn(0,"refgbn"));
  352. ds_send.setColumn(0,"testlrgcd", ds_grd_testlrg.getColumn(l_current,"testlrgcd"));
  353. // model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/refgbn"));
  354. // model.setvalue("/root/send/testlrgcd", model.getvalue("/root/main/testlrglist["+ row +"]/testlrgcd"));
  355. var oParam = {};
  356. oParam.id = "TRLLF00202";
  357. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  358. oParam.method = "reqGetUnityTestMdlList";
  359. oParam.inds = "cond=ds_send";
  360. oParam.outds = "ds_grd_testmdl=getUnityTestMdlList";
  361. oParam.async = false;
  362. oParam.callback = "cf_TRLLF00202";
  363. tranf_submit(oParam);
  364. // submit("TRLLF10202");
  365. }
  366. function lf_GetTestLrgList(){
  367. ds_send.setColumn(0,"refgbn", ds_hidden.getColumn(0,"refgbn"));
  368. ds_send.setColumn(0,"deptflag", ds_init_lb0000.getColumn(0,"nm"));
  369. // model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/refgbn"));
  370. // model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
  371. var oParam = {};
  372. oParam.id = "TRLLF00201";
  373. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  374. oParam.method = "reqGetUnityTestLrgList";
  375. oParam.inds = "cond=ds_send";
  376. oParam.outds = "ds_grd_testlrg=getUnityTestLrgList";
  377. oParam.async = false;
  378. oParam.callback = "cf_TRLLF00201";
  379. tranf_submit(oParam);
  380. // if(submit("TRLLF10201")==true){
  381. // 중분류코드 자동 조회
  382. ds_grd_testlrg.rowposition = 0;
  383. lf_GetTestMdllist(0);
  384. // }
  385. }
  386. function group3_group2_btn_ref_onclick(obj:Button, e:ClickEventInfo)
  387. {
  388. // 대분류코드리스트 조회
  389. lf_GetTestLrgList();
  390. }
  391. function lf_InsRowAddlrg(){
  392. var l_current = ds_grd_testlrg.addRow();
  393. var today = utlf_getCurrentDate();
  394. ds_grd_testlrg.setColumn(l_current,"testlrgfromdd", today);
  395. ds_grd_testlrg.setColumn(l_current,"testlrgtodd", "99991231");
  396. ds_grd_testlrg.setColumn(l_current,"testlrgabbrnm", "-");
  397. ds_grd_testlrg.setColumn(l_current,"testlrgprntnm", "-");
  398. ds_grd_testlrg.setColumn(l_current,"testlrglblnm","-");
  399. ds_grd_testlrg.setColumn(l_current,"testlrgkind","-");
  400. lf_GetTestMdllist(l_current);
  401. // grd_testlrg.row = grd_testlrg.rows;
  402. // var dt = getCurrentDate();
  403. // grd_testlrg.addRow();
  404. // model.setValue("/root/main/testlrglist["+grd_testlrg.row+"]/testlrgfromdd", dt);
  405. // model.setValue("/root/main/testlrglist["+grd_testlrg.row+"]/testlrgtodd","99991231");
  406. // model.setValue("/root/main/testlrglist["+grd_testlrg.row+"]/testlrgabbrnm", "-");
  407. // model.setValue("/root/main/testlrglist["+grd_testlrg.row+"]/testlrgprntnm", "-");
  408. // model.setValue("/root/main/testlrglist["+grd_testlrg.row+"]/testlrglblnm", "-");
  409. // model.setValue("/root/main/testlrglist["+grd_testlrg.row+"]/testlrgkind", "-"); //대분류유형 기본값 '-' 셋팅
  410. // fGetTestMdllist(grd_testlrg.row);
  411. }
  412. // 중분류코드 리스트 조회
  413. function lf_GetTestMdllist(row){
  414. // 중분류 노드 초기화 (resetinstance 하면 맨윗줄 안없어짐,,, deleteitem 해도...)
  415. ds_send.setColumn(0,"refgbn", ds_hidden.getColumn(0,"refgbn"));
  416. ds_send.setColumn(0,"testlrgcd", ds_grd_testlrg.getColumn(row,"testlrgcd"));
  417. // model.removeNodeset("/root/main/testmdllist");
  418. // model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/refgbn"));
  419. // model.setvalue("/root/send/testlrgcd", model.getvalue("/root/main/testlrglist["+ row +"]/testlrgcd"));
  420. var oParam = {};
  421. oParam.id = "TRLLF00202";
  422. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  423. oParam.method = "reqGetUnityTestMdlList";
  424. oParam.inds = "cond=ds_send";
  425. oParam.outds = "ds_grd_testmdl=getUnityTestMdlList";
  426. oParam.async = false;
  427. oParam.callback = "cf_TRLLF00202";
  428. tranf_submit(oParam);
  429. // submit("TRLLF10202");
  430. }
  431. function group3_btn_lrg_onclick(obj:Button, e:ClickEventInfo)
  432. {
  433. lf_InsRowAddlrg();
  434. }
  435. function lf_InsRowAddmdl(){
  436. var l_current = ds_grd_testmdl.addRow();
  437. var today = utlf_getCurrentDate();
  438. ds_grd_testmdl.setColumn(l_current,"testmdlfromdd", today);
  439. ds_grd_testmdl.setColumn(l_current,"testmdltodd", "99991231");
  440. ds_grd_testmdl.setColumn(l_current,"testmdlabbrnm", "-");
  441. ds_grd_testmdl.setColumn(l_current,"testmdlprntnm", "-");
  442. ds_grd_testmdl.setColumn(l_current,"testmdllblnm","-");
  443. // var dt = getCurrentDate();
  444. // grd_testmdl.addRow();
  445. // model.setValue("/root/main/testmdllist["+(grd_testmdl.row-1)+"]/testmdlfromdd", dt);
  446. // model.setValue("/root/main/testmdllist["+(grd_testmdl.row-1)+"]/testmdltodd", "99991131");
  447. //
  448. // model.setValue("/root/main/testmdllist["+(grd_testmdl.row-1)+"]/testmdlabbrnm", "-");
  449. // model.setValue("/root/main/testmdllist["+(grd_testmdl.row-1)+"]/testmdlprntnm", "-");
  450. // model.setValue("/root/main/testmdllist["+(grd_testmdl.row-1)+"]/testmdllblnm", "-");
  451. }
  452. function group3_btn_mdl_onclick(obj:Button, e:ClickEventInfo)
  453. {
  454. if(lf_GetSectNull()=="true"){
  455. lf_InsRowAddmdl();
  456. }
  457. }
  458. function group3_grd_testlrg_oncellclick(obj:Grid, e:GridClickEventInfo)
  459. {
  460. lf_GetTestMdllist(obj.currentrow);
  461. }
  462. function lf_ExeTestLrgMdlInfo()
  463. {
  464. // 대분류 수정,등록
  465. var today = utlf_getCurrentDate();
  466. var l_current = ds_grd_testlrg.rowposition ;
  467. var testlrgcd = ds_grd_testlrg.getColumn(l_current,"testlrgcd");
  468. ds_send.setColumn(0,"deptflag", ds_init_lb0000.getColumn(0, "nm")); //
  469. var oDsUpdate = grdf_getGridUpdateData(grd_testlrg);
  470. grdf_setStatusColumn(oDsUpdate,"status");
  471. ds_grddata.clear();
  472. ds_grddata.copyData(oDsUpdate, true);
  473. var oParam = {};
  474. oParam.id = "TXLLF00201";
  475. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  476. oParam.method = "reqExeUnityTestLrgInfo";
  477. oParam.inds = "lrgdata=ds_grddata flist=ds_send";
  478. oParam.outds = "ds_grd_testlrg=gettestlrglist";
  479. oParam.async = false;
  480. oParam.callback = "cf_TXLLF00201";
  481. tranf_submit(oParam);
  482. // 중분류 수정,등록
  483. var oDsUpdate2 = grdf_getGridUpdateData(grd_testmdl);
  484. grdf_setStatusColumn(oDsUpdate2,"status");
  485. ds_grddata2.clear();
  486. ds_grddata2.copyData(oDsUpdate2, true);
  487. ds_send.setColumn(0,"testlrgcd", testlrgcd); //대분류
  488. var oParam = {};
  489. oParam.id = "TXLLF00202";
  490. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  491. oParam.method = "reqExeUnityTestMdlInfo";
  492. oParam.inds = "cond=ds_send mdldata=ds_grddata2";
  493. oParam.outds = "ds_grd_testmdl=gettestmdllist";
  494. oParam.async = false;
  495. oParam.callback = "cf_TXLLF00202";
  496. tranf_submit(oParam);
  497. lf_GetTestLrgList();
  498. }
  499. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  500. {
  501. lf_ExeTestLrgMdlInfo();
  502. }
  503. function btn_reset_onclick(obj:Button, e:ClickEventInfo)
  504. {
  505. ds_grd_testlrg.clearData();
  506. ds_grd_testmdl.clearData();
  507. }
  508. ]]></Script>
  509. </Form>
  510. </FDL>