SMMNR04700_간호Item 시간Setting 관리.xfdl 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNR04700" position="absolute 0 0 1199 779" titletext="간호Item 시간Setting 관리" oninit="SMMNR04700_oninit" onload="SMMNR04700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="간호Item 시간Setting 관리" class="tit_1" position="absolute 0 0 222 25"/>
  8. <Static id="caption42" text="공통 Setting" class="tit_2" position="absolute 0 41 170 62"/>
  9. <Shape id="line18" class="line_10" position="absolute 0 57 595 63" anchor="left top right"/>
  10. <Static id="caption1" text="부서 Setting" class="tit_2" position="absolute 598 41 727 62" anchor="top right"/>
  11. <Shape id="line1" class="line_10" position="absolute 598 57 1192 63" anchor="top right"/>
  12. <Button id="btn_srch" taborder="1" text="지시처방 불러오기" class="btn2" position="absolute 328 38 444 57" anchor="top right" onclick="btn_srch_onclick"/>
  13. <Button id="btn_saveitem" taborder="2" text="선택이동" class="btn2" position="absolute 445 38 509 57" anchor="top right" onclick="btn_saveitem_onclick"/>
  14. <Button id="button1" taborder="3" text="저장" class="btn5" position="absolute 1150 38 1192 57" anchor="top right" onclick="button1_onclick"/>
  15. <Grid id="grd_comprcplist" class="datagrid1" taborder="4" binddataset="ds_main_comprcpinfo_comprcplist" useinputpanel="false" position="absolute 0 62 595 772" autoenter="select" autofittype="col" cellsizingtype="col" anchor="all" treeusecheckbox="false" oncellclick="grd_comprcplist_oncellclick" oncelldblclick="grd_comprcplist_oncelldblclick" treeinitstatus="expand,null">
  16. <Formats>
  17. <Format id="default">
  18. <Columns>
  19. <Column size="20"/>
  20. <Column size="37"/>
  21. <Column size="192"/>
  22. <Column size="125"/>
  23. <Column size="213"/>
  24. <Column size="0"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="0"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="24" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell/>
  39. <Cell col="1" text="선택"/>
  40. <Cell col="2" text="지시처방"/>
  41. <Cell col="3" text="간호 Item"/>
  42. <Cell col="4" text="시간"/>
  43. <Cell col="5" text="careitemcd"/>
  44. <Cell col="6" text="prcpcd"/>
  45. <Cell col="7" text="deptcd"/>
  46. <Cell col="8" text="instcd"/>
  47. <Cell col="9" text="depth"/>
  48. <Cell col="10" text="prcpclscd1"/>
  49. <Cell col="11" text="prcpclscd2"/>
  50. <Cell col="12" text="prcpclscd3"/>
  51. </Band>
  52. <Band id="body">
  53. <Cell celltype="head"/>
  54. <Cell col="1" displaytype="checkbox" edittype="expr:edittype" style="controlbackground:EXPR(controlbackground);controlborder:EXPR(controlborder);" text="bind:check" expr="expr:check == 'true' ? 1 : 0"/>
  55. <Cell col="2" displaytype="tree" edittype="tree" text="bind:prcpnm" treestartlevel="1" treelevel="expr:depth"/>
  56. <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:careitemnm"/>
  57. <Cell col="4" style="align:left middle;padding:0 0 0 3;" text="bind:apnttmspec"/>
  58. <Cell col="5" text="bind:careitemcd"/>
  59. <Cell col="6" text="bind:prcpcd"/>
  60. <Cell col="7" text="bind:deptcd"/>
  61. <Cell col="8" text="bind:instcd"/>
  62. <Cell col="9" text="bind:depth"/>
  63. <Cell col="10" text="bind:prcpclscd1"/>
  64. <Cell col="11" text="bind:prcpclscd2"/>
  65. <Cell col="12" text="bind:prcpclscd3"/>
  66. </Band>
  67. </Format>
  68. </Formats>
  69. </Grid>
  70. <Grid id="grd_deptprcplist" class="datagrid1" taborder="5" binddataset="ds_main_deptprcpinfo_deptprcplist" useinputpanel="false" position="absolute 598 62 1193 772" autoenter="select" autofittype="col" cellsizingtype="col" anchor="top right bottom" oncellclick="grd_deptprcplist_oncellclick" oncelldblclick="grd_deptprcplist_oncelldblclick" treeuseimage="false" treeusecheckbox="false" treeinitstatus="expand,null">
  71. <Formats>
  72. <Format id="default">
  73. <Columns>
  74. <Column size="19"/>
  75. <Column size="37"/>
  76. <Column size="206"/>
  77. <Column size="132"/>
  78. <Column size="198"/>
  79. <Column size="0"/>
  80. <Column size="0"/>
  81. <Column size="0"/>
  82. <Column size="0"/>
  83. <Column size="0"/>
  84. <Column size="0"/>
  85. <Column size="0"/>
  86. <Column size="0"/>
  87. </Columns>
  88. <Rows>
  89. <Row size="24" band="head"/>
  90. <Row size="24"/>
  91. </Rows>
  92. <Band id="head">
  93. <Cell/>
  94. <Cell col="1" text="선택"/>
  95. <Cell col="2" text="지시처방"/>
  96. <Cell col="3" text="간호 Item"/>
  97. <Cell col="4" text="시간"/>
  98. <Cell col="5" text="careitemcd"/>
  99. <Cell col="6" text="prcpcd"/>
  100. <Cell col="7" text="deptcd"/>
  101. <Cell col="8" text="instcd"/>
  102. <Cell col="9" text="depth"/>
  103. <Cell col="10" text="prcpclscd1"/>
  104. <Cell col="11" text="prcpclscd2"/>
  105. <Cell col="12" text="prcpclscd3"/>
  106. </Band>
  107. <Band id="body">
  108. <Cell celltype="head"/>
  109. <Cell col="1" displaytype="checkbox" edittype="expr:edittype" style="controlbackground:EXPR(controlbackground);controlborder:EXPR(controlborder);" text="bind:check" expr="expr:check == 'true' ? 1 : 0"/>
  110. <Cell col="2" displaytype="tree" edittype="tree" style="align:left middle;padding:0 0 0 3;" text="bind:prcpnm" treestartlevel="1" treelevel="expr:depth"/>
  111. <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:careitemnm"/>
  112. <Cell col="4" style="align:left middle;padding:0 0 0 3;" text="bind:apnttmspec"/>
  113. <Cell col="5" text="bind:careitemcd"/>
  114. <Cell col="6" text="bind:prcpcd"/>
  115. <Cell col="7" text="bind:deptcd"/>
  116. <Cell col="8" text="bind:instcd"/>
  117. <Cell col="9" text="bind:depth"/>
  118. <Cell col="10" text="bind:prcpclscd1"/>
  119. <Cell col="11" text="bind:prcpclscd2"/>
  120. <Cell col="12" text="bind:prcpclscd3"/>
  121. </Band>
  122. </Format>
  123. </Formats>
  124. </Grid>
  125. <Button id="btn_comsave" taborder="6" text="저장" class="btn5" position="absolute 510 38 552 57" anchor="top right" onclick="btn_comsave_onclick"/>
  126. <Button id="btn_comdelete" taborder="7" text="삭제" class="btn5" position="absolute 553 38 595 57" anchor="top right" onclick="btn_comdelete_onclick"/>
  127. <Combo id="cmb_deptcd" taborder="8" innerdataset="@ds_init_deptlist_dept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_default" position="absolute 710 38 850 57" anchor="top right" onitemchanged="cmb_deptcd_onitemchanged"/>
  128. </Layout>
  129. </Layouts>
  130. <Objects>
  131. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  132. <ColumnInfo>
  133. <Column id="deptcd" type="STRING" size="256"/>
  134. </ColumnInfo>
  135. <Rows>
  136. <Row/>
  137. </Rows>
  138. </Dataset>
  139. <Dataset id="ds_init_deptlist_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  140. <Dataset id="ds_main_comprcpinfo_comprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_comprcpinfo_comprcplist_oncolumnchanged"/>
  141. <Dataset id="ds_main_deptprcpinfo_deptprcplist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_deptprcpinfo_deptprcplist_oncolumnchanged">
  142. <ColumnInfo>
  143. <Column id="check" type="STRING" size="256" sumtext="선택"/>
  144. <Column id="prcpnm" type="STRING" size="256" sumtext="지시처방명"/>
  145. <Column id="careitemnm" type="STRING" size="256" sumtext="간호Item명"/>
  146. <Column id="apnttmspec" type="STRING" size="256" sumtext="지정시간내역"/>
  147. <Column id="careitemcd" type="STRING" size="256" sumtext="간호Item코드"/>
  148. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  149. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  150. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  151. <Column id="depth" type="STRING" size="256" sumtext="레벨"/>
  152. <Column id="prcpclscd1" type="STRING" size="256" sumtext="처방분류코드1"/>
  153. <Column id="prcpclscd2" type="STRING" size="256" sumtext="처방분류코드2"/>
  154. <Column id="prcpclscd3" type="STRING" size="256" sumtext="처방분류코드3"/>
  155. </ColumnInfo>
  156. </Dataset>
  157. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  158. <Dataset id="ds_temp_prcpinfo_comprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  159. <ColumnInfo>
  160. <Column id="check" type="STRING" size="256" sumtext="선택"/>
  161. <Column id="prcpnm" type="STRING" size="256" sumtext="지시처방명"/>
  162. <Column id="careitemnm" type="STRING" size="256" sumtext="간호Item명"/>
  163. <Column id="apnttmspec" type="STRING" size="256" sumtext="지정시간내역"/>
  164. <Column id="careitemcd" type="STRING" size="256" sumtext="간호Item코드"/>
  165. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  166. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  167. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  168. <Column id="depth" type="STRING" size="256" sumtext="레벨"/>
  169. <Column id="prcpclscd1" type="STRING" size="256" sumtext="처방분류코드1"/>
  170. <Column id="prcpclscd2" type="STRING" size="256" sumtext="처방분류코드2"/>
  171. <Column id="prcpclscd3" type="STRING" size="256" sumtext="처방분류코드3"/>
  172. </ColumnInfo>
  173. </Dataset>
  174. <Dataset id="ds_temp_prcpinfo_deptprcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  175. <ColumnInfo>
  176. <Column id="check" type="STRING" size="256" sumtext="선택"/>
  177. <Column id="prcpnm" type="STRING" size="256" sumtext="지시처방명"/>
  178. <Column id="careitemnm" type="STRING" size="256" sumtext="간호Item명"/>
  179. <Column id="apnttmspec" type="STRING" size="256" sumtext="지정시간내역"/>
  180. <Column id="careitemcd" type="STRING" size="256" sumtext="간호Item코드"/>
  181. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  182. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  183. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  184. <Column id="depth" type="STRING" size="256" sumtext="레벨"/>
  185. <Column id="prcpclscd1" type="STRING" size="256" sumtext="처방분류코드1"/>
  186. <Column id="prcpclscd2" type="STRING" size="256" sumtext="처방분류코드2"/>
  187. <Column id="prcpclscd3" type="STRING" size="256" sumtext="처방분류코드3"/>
  188. </ColumnInfo>
  189. </Dataset>
  190. </Objects>
  191. <Bind>
  192. <BindItem id="item0" compid="cmb_deptcd" propid="value" datasetid="ds_main_cond" columnid="deptcd"/>
  193. </Bind>
  194. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  195. * System Name :
  196. * Job Name :
  197. * Creator :
  198. * Make Date : 2015-11-13
  199. * Description :
  200. *---------------------------------------------------------------------------------------
  201. * Modify Date Modifier Modify Description
  202. *---------------------------------------------------------------------------------------
  203. * 2015-11-13 Live Converter TF->XP
  204. *
  205. *---------------------------------------------------------------------------------------
  206. ****************************************************************************************/
  207. include "com_commonxp::comm_main.xjs";
  208. include "emr_carecomxp::CareCom.xjs";
  209. var arErrorCode = new HashArray();
  210. var xCondPath = ds_main_cond;
  211. var xPrcpInfoPath = "ds_temp_prcpinfo";
  212. var xComPrcpListPath = ds_main_comprcpinfo_comprcplist;
  213. var xDeptPrcpListPath = ds_main_deptprcpinfo_deptprcplist;
  214. function SMMNR04700_oninit(obj:Form, e:InitEventInfo)
  215. {
  216. frmf_initForm(obj);
  217. }
  218. function SMMNR04700_onload(obj:Form, e:LoadEventInfo)
  219. {
  220. grdf_initGrid(grd_comprcplist);
  221. grdf_setRowTypeIcon(grd_comprcplist, 0);
  222. grdf_initGrid(grd_deptprcplist);
  223. grdf_setRowTypeIcon(grd_deptprcplist, 0);
  224. fInitialize();
  225. }
  226. function fInitialize()
  227. {
  228. appf_getDeptCodeList(sysf_getUserInfo("dutplceinstcd"), "orduseyn", "W", "depthngnm", "asc", "", "", "", "ds_init_deptlist_dept", false, "");
  229. xCondPath.setColumn(0, "deptcd", sysf_getUserInfo("posdeptcd"));
  230. dsf_makeValue(ds_send,"deptcd", "string", xCondPath.getColumn(0, "deptcd"));
  231. var oParam = {};
  232. oParam.id = "TRMNR04701";
  233. oParam.service = "carerecapp.RecItemMngt";
  234. oParam.method = "reqGetCareDirecPrcpList";
  235. oParam.inds = "reqCond=ds_send";
  236. oParam.outds = "ds_temp_prcpinfo_comprcplist=comprcplist ds_temp_prcpinfo_deptprcplist=deptprcplist";
  237. oParam.async = false;
  238. oParam.callback = "cf_submit";
  239. tranf_submit(oParam);
  240. if(arErrorCode.pop("TRMNR04701") > -1)
  241. {
  242. dsf_setFixVal(ds_temp_prcpinfo_comprcplist, "check:false");
  243. dsf_setFixVal(ds_temp_prcpinfo_deptprcplist, "check:false");
  244. ds_main_comprcpinfo_comprcplist.copyData(ds_temp_prcpinfo_comprcplist);
  245. ds_main_deptprcpinfo_deptprcplist.copyData(ds_temp_prcpinfo_deptprcplist);
  246. ds_main_comprcpinfo_comprcplist.updatecontrol = false;
  247. for(var iRow = 0; iRow < ds_main_comprcpinfo_comprcplist.rowcount; iRow++)
  248. {
  249. if(xComPrcpListPath.getColumn(iRow, "depth") == "1")
  250. {
  251. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "none", iRow);
  252. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "silver", iRow);
  253. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "1 solid #708090cc", iRow);
  254. }
  255. else
  256. {
  257. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "checkbox", iRow);
  258. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "", iRow);
  259. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "", iRow);
  260. }
  261. }
  262. ds_main_comprcpinfo_comprcplist.updatecontrol = true;
  263. ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
  264. ds_main_deptprcpinfo_deptprcplist.enableevent = false;
  265. for(var iRow = 0; iRow < ds_main_deptprcpinfo_deptprcplist.rowcount; iRow++)
  266. {
  267. if(xDeptPrcpListPath.getColumn(iRow, "depth") == "1")
  268. {
  269. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "edittype", "string", "none", iRow);
  270. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlbackground", "string", "silver", iRow);
  271. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlborder", "string", "1 solid #708090cc", iRow);
  272. }
  273. else
  274. {
  275. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "edittype", "string", "checkbox", iRow);
  276. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlbackground", "string", "", iRow);
  277. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlborder", "string", "", iRow);
  278. }
  279. }
  280. ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
  281. ds_main_deptprcpinfo_deptprcplist.enableevent = true;
  282. }
  283. ds_main_deptprcpinfo_deptprcplist.addColumn("apnttmspec", "string");
  284. ds_main_deptprcpinfo_deptprcplist.addColumn("depth", "string");
  285. }
  286. function cf_submit(sSvcId, nErrorCode, sErrorMsg)
  287. {
  288. arErrorCode.push(sSvcId, nErrorCode);
  289. if(nErrorCode < 0) return;
  290. }
  291. function ds_main_comprcpinfo_comprcplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  292. {
  293. if(e.columnid == "check")
  294. {
  295. obj.setColumn(e.row, "check", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  296. }
  297. }
  298. function ds_main_deptprcpinfo_deptprcplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  299. {
  300. if(e.columnid == "check")
  301. {
  302. obj.setColumn(e.row, "check", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  303. }
  304. fChangedGridRow();
  305. }
  306. function fChangedGridRow()
  307. {
  308. var iRow = ds_main_deptprcpinfo_deptprcplist.rowposition;
  309. if(xDeptPrcpListPath.getColumn(iRow, "check") == "true")
  310. {
  311. ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
  312. ds_main_deptprcpinfo_deptprcplist.setRowType(iRow, "d");
  313. ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
  314. }
  315. else
  316. {
  317. ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
  318. ds_main_deptprcpinfo_deptprcplist.setRowType(iRow, "");
  319. ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
  320. }
  321. }
  322. function btn_srch_onclick(obj:Button, e:ClickEventInfo)
  323. {
  324. fCallDirecPrcpInfo();
  325. }
  326. function fCallDirecPrcpInfo()
  327. {
  328. frmf_setParameter("SMMNR04800_SaveFlag","N");
  329. frmf_modal("SPMNR04800", "SPMNR04800", "", "", "", "", "", "", "", "", "", "", "M");
  330. if(frmf_getParameter("SMMNR04800_SaveFlag") == "Y")
  331. {
  332. fSearchItemSetting("com");
  333. }
  334. }
  335. function fSearchItemSetting(pFlag)
  336. {
  337. ds_send.clear();
  338. switch(pFlag)
  339. {
  340. case "com" :
  341. dsf_makeValue(ds_send, "deptcd", "String","all");
  342. var oParam = {};
  343. oParam.id = "TRMNR04704";
  344. oParam.service = "carerecapp.RecItemMngt";
  345. oParam.method = "reqGetDeptDirecPrcpList";
  346. oParam.inds = "reqCond=ds_send";
  347. oParam.outds = "ds_main_comprcpinfo_comprcplist=comprcplist";
  348. oParam.async = false;
  349. oParam.callback = "cf_submit";
  350. tranf_submit(oParam);
  351. if(arErrorCode.pop("TRMNR04704") > -1)
  352. {
  353. ds_main_comprcpinfo_comprcplist.updatecontrol = false;
  354. dsf_setFixVal(ds_main_comprcpinfo_comprcplist, "check:false");
  355. ds_temp_prcpinfo_comprcplist.copyData(ds_main_comprcpinfo_comprcplist);
  356. for(var iRow = 0; iRow < ds_main_comprcpinfo_comprcplist.rowcount; iRow++)
  357. {
  358. if(xComPrcpListPath.getColumn(iRow, "depth") == "1")
  359. {
  360. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "none", iRow);
  361. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "silver", iRow);
  362. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "1 solid #708090cc", iRow);
  363. }
  364. else
  365. {
  366. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "checkbox", iRow);
  367. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "", iRow);
  368. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "", iRow);
  369. }
  370. }
  371. ds_main_comprcpinfo_comprcplist.updatecontrol = true;
  372. }
  373. break;
  374. case "dept":
  375. dsf_makeValue(ds_send, "deptcd", "string",ds_main_cond.getColumn(0, "deptcd"));
  376. var oParam = {};
  377. oParam.id = "TRMNR04703";
  378. oParam.service = "carerecapp.RecItemMngt";
  379. oParam.method = "reqGetDeptDirecPrcpList";
  380. oParam.inds = "reqCond=ds_send";
  381. oParam.outds = "ds_main_deptprcpinfo_deptprcplist=deptprcplist";
  382. oParam.async = false;
  383. oParam.callback = "cf_submit";
  384. tranf_submit(oParam);
  385. if(arErrorCode.pop("TRMNR04703") > -1)
  386. {
  387. ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
  388. dsf_setFixVal(ds_main_deptprcpinfo_deptprcplist, "check:false");
  389. ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
  390. ds_temp_prcpinfo_deptprcplist.copyData(ds_main_deptprcpinfo_deptprcplist);
  391. ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
  392. ds_main_deptprcpinfo_deptprcplist.enableevent = false;
  393. for(var iRow = 0; iRow < ds_main_deptprcpinfo_deptprcplist.rowcount; iRow++)
  394. {
  395. if(xDeptPrcpListPath.getColumn(iRow, "depth") == "1")
  396. {
  397. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "edittype", "string", "none", iRow);
  398. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlbackground", "string", "silver", iRow);
  399. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlborder", "string", "1 solid #708090cc", iRow);
  400. }
  401. else
  402. {
  403. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "edittype", "string", "checkbox", iRow);
  404. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlbackground", "string", "", iRow);
  405. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlborder", "string", "", iRow);
  406. }
  407. }
  408. ds_main_deptprcpinfo_deptprcplist.enableevent = true;
  409. ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
  410. }
  411. break;
  412. }
  413. }
  414. function grd_comprcplist_oncellclick(obj:Grid, e:GridClickEventInfo)
  415. {
  416. fClickedGridRow("com");
  417. }
  418. function grd_comprcplist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  419. {
  420. fDblClickGridRow("com");
  421. }
  422. function fClickedGridRow(pFlag)
  423. {
  424. var iRow = 0;
  425. var iCol = 0;
  426. var sDepth = "";
  427. switch(pFlag)
  428. {
  429. case "com" :
  430. iRow = ds_main_comprcpinfo_comprcplist.rowposition;
  431. iCol = grd_comprcplist.currentcol;
  432. if(iRow < 0 || iCol == 4) return;
  433. ds_main_comprcpinfo_comprcplist.updatecontrol = false;
  434. if(iCol == 1)
  435. {
  436. ds_main_comprcpinfo_comprcplist.setRowType(iRow, "");
  437. return;
  438. }
  439. sDepth = xComPrcpListPath.getColumn(iRow, "depth");
  440. if(sDepth == 1) return;
  441. if(xComPrcpListPath.getColumn(iRow, "check") == "true")
  442. {
  443. xComPrcpListPath.setColumn(iRow, "check","false");
  444. }
  445. else
  446. {
  447. xComPrcpListPath.setColumn(iRow, "check","true");
  448. }
  449. ds_main_comprcpinfo_comprcplist.updatecontrol = true;
  450. break;
  451. case "dept":
  452. iRow = ds_main_deptprcpinfo_deptprcplist.rowposition;
  453. iCol = grd_deptprcplist.currentcol;
  454. if(iCol == 1 || iCol == 4) return;
  455. if(iRow < 0) return;
  456. sDepth = xDeptPrcpListPath.getColumn(iRow, "depth");
  457. if(sDepth == 1) return;
  458. if(xDeptPrcpListPath.getColumn(iRow, "check") == "true")
  459. {
  460. xDeptPrcpListPath.setColumn(iRow, "check","false");
  461. ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
  462. ds_main_deptprcpinfo_deptprcplist.setRowType(iRow, "");
  463. ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
  464. }
  465. else
  466. {
  467. xDeptPrcpListPath.setColumn(iRow, "check","true");
  468. ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
  469. ds_main_deptprcpinfo_deptprcplist.setRowType(iRow, "d");
  470. ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
  471. }
  472. break;
  473. }
  474. }
  475. function fDblClickGridRow(pFlag)
  476. {
  477. var iCol = 0;
  478. var iRow = 0;
  479. var sParamMsg = "";
  480. var sReturnMsg = "";
  481. var sPrcpCD = "";
  482. var sDepth = 0;
  483. var sStatus = 0;
  484. switch(pFlag)
  485. {
  486. case "com" :
  487. iCol = grd_comprcplist.currentcol;
  488. iRow = ds_main_comprcpinfo_comprcplist.rowposition;
  489. sDepth = xComPrcpListPath.getColumn(iRow, "depth");
  490. if(sDepth == 1) return;
  491. if(iCol == 4)
  492. {
  493. sPrcpCD = xComPrcpListPath.getColumn(iRow, "prcpcd");
  494. sParamMsg = "prcpnm▦prcpcd▦careitemnm▦careitemcd▦apnttmspec▦flag▩";
  495. sParamMsg += utlf_transNullToEmpty(xComPrcpListPath.getColumn(iRow, "prcpnm")) + "▦"
  496. + utlf_transNullToEmpty(sPrcpCD) + "▦"
  497. + utlf_transNullToEmpty(xComPrcpListPath.getColumn(iRow, "careitemnm")) + "▦"
  498. + utlf_transNullToEmpty(xComPrcpListPath.getColumn(iRow, "careitemcd")) + "▦"
  499. + utlf_transNullToEmpty(xComPrcpListPath.getColumn(iRow, "apnttmspec")) + "▦all▩";
  500. frmf_setParameter("SPMNR04900_Param",sParamMsg);
  501. frmf_setParameter("SPMNR04900_Return","");
  502. frmf_modal("SPMNR04900", "SPMNR04900", "", "", "", "", "", "", "", "", "", "", "M");
  503. sReturnMsg = frmf_getParameter("SPMNR04900_Return");
  504. if(!utlf_isNull(sReturnMsg))
  505. {
  506. xComPrcpListPath.setColumn(iRow, "careitemnm", getArrayData(sReturnMsg,1,0));
  507. xComPrcpListPath.setColumn(iRow, "careitemcd", getArrayData(sReturnMsg,1,1));
  508. xComPrcpListPath.setColumn(iRow, "apnttmspec", getArrayData(sReturnMsg,1,2));
  509. var findRow = eval(xPrcpInfoPath+"_comprcplist").findRow("prcpcd", sPrcpCD);
  510. eval(xPrcpInfoPath+"_comprcplist").setColumn(findRow, "check", xComPrcpListPath.getColumn(iRow, "check"));
  511. var csv = dsf_getDsCSV(ds_temp_prcpinfo_comprcplist, findRow, "", "","");
  512. var csv2 = dsf_getDsCSV(xComPrcpListPath, iRow, "", "","");
  513. if(csv != csv2)
  514. {
  515. ds_main_comprcpinfo_comprcplist.updatecontrol = false;
  516. ds_main_comprcpinfo_comprcplist.setRowType(iRow, "u");
  517. ds_main_comprcpinfo_comprcplist.setColumn(iRow, "check", "false");
  518. ds_main_comprcpinfo_comprcplist.updatecontrol = true;
  519. }
  520. else
  521. {
  522. ds_main_comprcpinfo_comprcplist.updatecontrol = false;
  523. ds_main_comprcpinfo_comprcplist.setRowType(iRow, "");
  524. ds_main_comprcpinfo_comprcplist.updatecontrol = true;
  525. }
  526. }
  527. }
  528. break;
  529. case "dept" :
  530. iCol = grd_deptprcplist.currentcol;
  531. iRow = ds_main_deptprcpinfo_deptprcplist.rowposition;
  532. if(iRow < 0) return;
  533. sDepth = xDeptPrcpListPath.getColumn(iRow, "depth");
  534. if(sDepth == 1) return;
  535. if(iCol == 4)
  536. {
  537. sStatus = ds_main_deptprcpinfo_deptprcplist.getRowType(iRow);
  538. sPrcpCD = xDeptPrcpListPath.getColumn(iRow, "prcpcd");
  539. sParamMsg = "prcpnm▦prcpcd▦careitemnm▦careitemcd▦apnttmspec▩";
  540. sParamMsg += utlf_transNullToEmpty(xDeptPrcpListPath.getColumn(iRow, "prcpnm")) + "▦"
  541. + utlf_transNullToEmpty(sPrcpCD) + "▦"
  542. + utlf_transNullToEmpty(xDeptPrcpListPath.getColumn(iRow, "careitemnm")) + "▦"
  543. + utlf_transNullToEmpty(xDeptPrcpListPath.getColumn(iRow, "careitemcd")) + "▦"
  544. + utlf_transNullToEmpty(xDeptPrcpListPath.getColumn(iRow, "apnttmspec")) + "▦dept▩";
  545. frmf_setParameter("SPMNR04900_Param",sParamMsg);
  546. frmf_setParameter("SPMNR04900_Return","");
  547. frmf_modal("SPMNR04900", "SPMNR04900", "", "", "", "", "", "", "", "", "", "", "M");
  548. sReturnMsg = frmf_getParameter("SPMNR04900_Return");
  549. if(!utlf_isNull(sReturnMsg))
  550. {
  551. xDeptPrcpListPath.setColumn(iRow, "apnttmspec",getArrayData(sReturnMsg,1,2));
  552. if(sStatus == 2) return;
  553. var findRow = ds_temp_prcpinfo_deptprcplist.findRow("prcpcd", sPrcpCD);
  554. ds_temp_prcpinfo_deptprcplist.setColumn(findRow, "check", xDeptPrcpListPath.getColumn(iRow, "check"));
  555. var csv = dsf_getDsCSV(ds_temp_prcpinfo_deptprcplist, findRow, "", "","");
  556. var csv2 = dsf_getDsCSV(xDeptPrcpListPath, iRow, "", "","");
  557. if(csv != csv2)
  558. {
  559. ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
  560. ds_main_deptprcpinfo_deptprcplist.setRowType(iRow, "u");
  561. ds_main_deptprcpinfo_deptprcplist.setColumn(iRow, "check", "false");
  562. ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
  563. }
  564. else
  565. {
  566. ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
  567. ds_main_deptprcpinfo_deptprcplist.setRowType(iRow, "");
  568. ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
  569. }
  570. }
  571. }
  572. break;
  573. }
  574. }
  575. function grd_deptprcplist_oncellclick(obj:Grid, e:GridClickEventInfo)
  576. {
  577. fClickedGridRow("dept");
  578. }
  579. function grd_deptprcplist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  580. {
  581. fDblClickGridRow("dept");
  582. }
  583. function btn_saveitem_onclick(obj:Button, e:ClickEventInfo)
  584. {
  585. fSendItem();
  586. }
  587. function fSendItem()
  588. {
  589. var sDeptCD = ds_main_cond.getColumn(0, "deptcd");
  590. var iDeptPrcpRow=0;
  591. var sCareItemCD = "";
  592. var sPrcpCD = "";
  593. var iRow = 0;
  594. if(utlf_isNull(sDeptCD))
  595. {
  596. sysf_messageBox("부서를 먼저","C002");
  597. return;
  598. }
  599. for(var iRow = 0 ; iRow < ds_main_comprcpinfo_comprcplist.rowcount; iRow++)
  600. {
  601. if(xComPrcpListPath.getColumn(iRow, "check") == "true")
  602. {
  603. if(ds_main_comprcpinfo_comprcplist.getRowType(iRow) != 1)
  604. {
  605. sysf_messageBox("공통 Setting에 저장하지 않은 데이터가 있습니다.", "Q003");
  606. return;
  607. }
  608. sCareItemCD = xComPrcpListPath.getColumn(iRow, "careitemcd");
  609. if(utlf_isNull(sCareItemCD))
  610. {
  611. sysf_messageBox("간호 Item은","I003");
  612. return;
  613. }
  614. }
  615. }
  616. for(var iRow = 0; iRow < ds_main_comprcpinfo_comprcplist.rowcount; iRow++)
  617. {
  618. if(xComPrcpListPath.getColumn(iRow, "check") == "true")
  619. {
  620. sPrcpCD = xComPrcpListPath.getColumn(iRow, "prcpcd");
  621. xComPrcpListPath.updatecontrol = false;
  622. xComPrcpListPath.setColumn(iRow, "check","false");
  623. xComPrcpListPath.updatecontrol = true;
  624. if(!utlf_isNull(xDeptPrcpListPath.lookup("prcpcd", sPrcpCD, "prcpcd"))) continue;
  625. iDeptPrcpRow = ds_main_deptprcpinfo_deptprcplist.addRow();
  626. xDeptPrcpListPath.setColumn(iDeptPrcpRow, "deptcd", sDeptCD);
  627. xDeptPrcpListPath.setColumn(iDeptPrcpRow, "prcpnm", xComPrcpListPath.getColumn(iRow, "prcpnm"));
  628. xDeptPrcpListPath.setColumn(iDeptPrcpRow, "careitemnm", xComPrcpListPath.getColumn(iRow, "careitemnm"));
  629. xDeptPrcpListPath.setColumn(iDeptPrcpRow, "apnttmspec", xComPrcpListPath.getColumn(iRow, "apnttmspec"));
  630. xDeptPrcpListPath.setColumn(iDeptPrcpRow, "careitemcd", xComPrcpListPath.getColumn(iRow, "careitemcd"));
  631. xDeptPrcpListPath.setColumn(iDeptPrcpRow, "prcpcd", xComPrcpListPath.getColumn(iRow, "prcpcd"));
  632. xDeptPrcpListPath.setColumn(iDeptPrcpRow, "instcd", xComPrcpListPath.getColumn(iRow, "instcd"));
  633. xDeptPrcpListPath.setColumn(iDeptPrcpRow, "depth", xComPrcpListPath.getColumn(iRow, "depth"));
  634. xDeptPrcpListPath.setColumn(iDeptPrcpRow, "prcpclscd1", xComPrcpListPath.getColumn(iRow, "prcpclscd1"));
  635. xDeptPrcpListPath.setColumn(iDeptPrcpRow, "prcpclscd2", xComPrcpListPath.getColumn(iRow, "prcpclscd2"));
  636. xDeptPrcpListPath.setColumn(iDeptPrcpRow, "prcpclscd3", xComPrcpListPath.getColumn(iRow, "prcpclscd3"));
  637. //dsf_makeValue(xDeptPrcpListPath, "apnttmspec", "string",xComPrcpListPath.getColumn(iRow, "apnttmspec"), iDeptPrcpRow);
  638. //dsf_makeValue(xDeptPrcpListPath, "depth", "string",xComPrcpListPath.getColumn(iRow, "depth"), iDeptPrcpRow);
  639. ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
  640. ds_main_deptprcpinfo_deptprcplist.setRowType(iDeptPrcpRow, "i");
  641. ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
  642. }
  643. }
  644. }
  645. function btn_comsave_onclick(obj:Button, e:ClickEventInfo)
  646. {
  647. fSaveItem("com");
  648. }
  649. function fSaveItem(pFlag)
  650. {
  651. ds_send.clear();
  652. switch(pFlag)
  653. {
  654. case "com" :
  655. dsf_makeValue(ds_send, "deptcd", "String","all");
  656. var oParam = {};
  657. oParam.id = "TXMNR04701";
  658. oParam.service = "carerecapp.RecItemMngt";
  659. oParam.method = "reqSetDirecPrcpList";
  660. oParam.inds = "prcplist=ds_main_comprcpinfo_comprcplist:u reqCond=ds_send";
  661. oParam.outds = "ds_main_comprcpinfo_comprcplist=comprcplist";
  662. oParam.async = false;
  663. oParam.callback = "cf_submit";
  664. tranf_submit(oParam);
  665. if(arErrorCode.pop("TXMNR04701") > -1)
  666. {
  667. ds_main_comprcpinfo_comprcplist.updatecontrol = false;
  668. dsf_setFixVal(ds_main_comprcpinfo_comprcplist, "check:false");
  669. ds_temp_prcpinfo_comprcplist.copyData(ds_main_comprcpinfo_comprcplist);
  670. for(var iRow = 0; iRow < ds_main_comprcpinfo_comprcplist.rowcount; iRow++)
  671. {
  672. if(xComPrcpListPath.getColumn(iRow, "depth") == "1")
  673. {
  674. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "none", iRow);
  675. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "silver", iRow);
  676. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "1 solid #708090cc", iRow);
  677. }
  678. else
  679. {
  680. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "checkbox", iRow);
  681. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "", iRow);
  682. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "", iRow);
  683. }
  684. }
  685. ds_main_comprcpinfo_comprcplist.updatecontrol = true;
  686. }
  687. break;
  688. case "dept":
  689. dsf_makeValue(ds_send, "deptcd", "string", ds_main_cond.getColumn(0, "deptcd"));
  690. var oParam = {};
  691. oParam.id = "TXMNR04702";
  692. oParam.service = "carerecapp.RecItemMngt";
  693. oParam.method = "reqSetDirecPrcpList";
  694. oParam.inds = "prcplist=ds_main_deptprcpinfo_deptprcplist:u reqCond=ds_send";
  695. oParam.outds = "ds_main_deptprcpinfo_deptprcplist=deptprcplist";
  696. oParam.async = false;
  697. oParam.callback = "cf_submit";
  698. tranf_submit(oParam);
  699. if(arErrorCode.pop("TXMNR04702") > -1)
  700. {
  701. ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
  702. dsf_setFixVal(ds_main_deptprcpinfo_deptprcplist, "check:false");
  703. ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
  704. ds_temp_prcpinfo_deptprcplist.copyData(ds_main_deptprcpinfo_deptprcplist);
  705. ds_main_deptprcpinfo_deptprcplist.updatecontrol = false;
  706. ds_main_deptprcpinfo_deptprcplist.enableevent = false;
  707. for(var iRow = 0; iRow < ds_main_deptprcpinfo_deptprcplist.rowcount; iRow++)
  708. {
  709. if(xDeptPrcpListPath.getColumn(iRow, "depth") == "1")
  710. {
  711. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "edittype", "string", "none", iRow);
  712. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlbackground", "string", "silver", iRow);
  713. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlborder", "string", "1 solid #708090cc", iRow);
  714. }
  715. else
  716. {
  717. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "edittype", "string", "checkbox", iRow);
  718. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlbackground", "string", "", iRow);
  719. dsf_makeValue(ds_main_deptprcpinfo_deptprcplist, "controlborder", "string", "", iRow);
  720. }
  721. }
  722. ds_main_deptprcpinfo_deptprcplist.enableevent = true;
  723. ds_main_deptprcpinfo_deptprcplist.updatecontrol = true;
  724. }
  725. break;
  726. }
  727. }
  728. function btn_comdelete_onclick(obj:Button, e:ClickEventInfo)
  729. {
  730. fDeleteItem("com");
  731. }
  732. function fDeleteItem(pFlag)
  733. {
  734. switch(pFlag)
  735. {
  736. case "com" :
  737. for(var iRow = 0; iRow < ds_main_comprcpinfo_comprcplist.rowcount; iRow++)
  738. {
  739. if(xComPrcpListPath.getColumn(iRow, "check") == 'true')
  740. {
  741. ds_main_comprcpinfo_comprcplist.updatecontrol = false;
  742. ds_main_comprcpinfo_comprcplist.setRowType(iRow, "d");
  743. ds_main_comprcpinfo_comprcplist.updatecontrol = true;
  744. }
  745. }
  746. dsf_makeValue(ds_send, "deptcd", "string","all");
  747. var oParam = {};
  748. oParam.id = "TXMNR04701";
  749. oParam.service = "carerecapp.RecItemMngt";
  750. oParam.method = "reqSetDirecPrcpList";
  751. oParam.inds = "prcplist=ds_main_comprcpinfo_comprcplist:u reqCond=ds_send";
  752. oParam.outds = "ds_main_comprcpinfo_comprcplist=comprcplist";
  753. oParam.async = false;
  754. oParam.callback = "cf_submit";
  755. tranf_submit(oParam);
  756. if(arErrorCode.pop("TXMNR04701") > -1)
  757. {
  758. ds_main_comprcpinfo_comprcplist.updatecontrol = false;
  759. dsf_setFixVal(ds_main_comprcpinfo_comprcplist, "check:false");
  760. ds_temp_prcpinfo_comprcplist.copyData(ds_main_comprcpinfo_comprcplist);
  761. for(var iRow = 0; iRow < ds_main_comprcpinfo_comprcplist.rowcount; iRow++)
  762. {
  763. if(xComPrcpListPath.getColumn(iRow, "depth") == "1")
  764. {
  765. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "none", iRow);
  766. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "silver", iRow);
  767. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "1 solid #708090cc", iRow);
  768. }
  769. else
  770. {
  771. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "edittype", "string", "checkbox", iRow);
  772. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlbackground", "string", "", iRow);
  773. dsf_makeValue(ds_main_comprcpinfo_comprcplist, "controlborder", "string", "", iRow);
  774. }
  775. }
  776. ds_main_comprcpinfo_comprcplist.updatecontrol = true;
  777. }
  778. break;
  779. }
  780. }
  781. function button1_onclick(obj:Button, e:ClickEventInfo)
  782. {
  783. fSaveItem("dept");
  784. }
  785. function cmb_deptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  786. {
  787. fSearchItemSetting("dept");
  788. }
  789. ]]></Script>
  790. </Form>
  791. </FDL>