SMPMB03500_수혈대체기준자료관리.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMB03500" position="absolute 0 0 1198 779" titletext="수혈 대체 기준 자료 관리" onload="SMPMB03500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="Div00" taborder="5" position="absolute 0 24 1195 64" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Calendar id="cal_appdd" taborder="0" position="absolute 92 11 192 31"/>
  11. <Static id="caption3" text="적용일자 :" class="search_name" position="absolute 11 13 94 30"/>
  12. </Layout>
  13. </Layouts>
  14. </Div>
  15. <Button id="btn_search" class="btn1" taborder="4" position="absolute 1045 33 1101 55" text="조회" onclick="btn_search_onclick" anchor="top right"/>
  16. <Button id="btn_excel1" class="btn7" position="absolute 1137 74 1195 93" text="엑셀" onclick="btn_excel1_onclick" anchor="top right"/>
  17. <Static id="cap_title" class="tit_1" position="absolute 0 0 180 24" style="align:left middle;font:Dotum,9,bold;" text="수혈 대체 기준 자료 관리"/>
  18. <Static id="cap_grid" class="tit_2" position="absolute 0 77 142 94" style="" text="수혈 대체 기준 자료"/>
  19. <Shape id="line2" class="line_10" linetype="horizontal" position="absolute 0 94 1195 98" style="" anchor="left top right"/>
  20. <Grid id="grd_bldc" binddataset="ds_main_bldclist_bldcinfo" position="absolute 0 98 1195 773" style="" oncellclick="grd_bldc_oncellclick" onrbuttondown="grd_bldc_onrbuttondown" anchor="all">
  21. <Formats>
  22. <Format id="default">
  23. <Columns>
  24. <Column size="24" band="left"/>
  25. <Column size="100"/>
  26. <Column size="300"/>
  27. <Column size="100"/>
  28. <Column size="300"/>
  29. <Column size="0"/>
  30. <Column size="80"/>
  31. <Column size="50"/>
  32. <Column size="0"/>
  33. <Column size="60"/>
  34. <Column size="80"/>
  35. <Column size="80"/>
  36. </Columns>
  37. <Rows>
  38. <Row size="24" band="head"/>
  39. <Row size="24"/>
  40. </Rows>
  41. <Band id="head">
  42. <Cell/>
  43. <Cell col="1" text="그룹수가코드"/>
  44. <Cell col="2" text="그룹수가명"/>
  45. <Cell col="3" text="싱글수가코드"/>
  46. <Cell col="4" text="싱글수가명"/>
  47. <Cell col="5" text="구분"/>
  48. <Cell col="6" text="혈액명"/>
  49. <Cell col="7" text="용량"/>
  50. <Cell col="8" text="ORDTYPE"/>
  51. <Cell col="9" text="구분"/>
  52. <Cell col="10" text="적용시작일"/>
  53. <Cell col="11" text="적용종료일"/>
  54. </Band>
  55. <Band id="body">
  56. <Cell celltype="head"/>
  57. <Cell col="1" style="padding:0 0 0 3;" text="bind:grupcalcscorcd" suppress="1" suppressalign="middle,over"/>
  58. <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:grupcalcscornm" suppress="2" suppressalign="middle,over"/>
  59. <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:snglcalcscorcd"/>
  60. <Cell col="4" style="align:left middle;padding:0 0 0 3;" text="bind:snglcalcscornm"/>
  61. <Cell col="5" text="bind:grupsnglflag"/>
  62. <Cell col="6" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:bldabbrgb" combodataset="ds_init_P0470list_P0470" combocodecol="cdid" combodatacol="cdnm"/>
  63. <Cell col="7" displaytype="text" edittype="text" style="align:center middle;" text="bind:bldvol"/>
  64. <Cell col="8" style="align:center middle;" text="bind:ordtype"/>
  65. <Cell col="9" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:calcflag" combodataset="ds_init_calcflag" combocodecol="value" combodatacol="label"/>
  66. <Cell col="10" displaytype="date" style="align:center middle;" text="bind:fromdd" calendardisplaynulltype="nulltext"/>
  67. <Cell col="11" displaytype="date" style="align:center middle;" text="bind:todd" calendardisplaynulltype="nulltext"/>
  68. </Band>
  69. </Format>
  70. </Formats>
  71. </Grid>
  72. <Button id="btn_save" class="btn4" position="absolute 1130 33 1186 55" style="" text="저장" onclick="btn_save_onclick" anchor="top right"/>
  73. <Shape id="line13" linetype="vertical" position="absolute 1115 31 1118 58" style="border: solid #FFD799 #FFD799;" anchor="top right"/>
  74. </Layout>
  75. </Layouts>
  76. <Objects>
  77. <Dataset id="ds_init_P0470list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  78. <ColumnInfo/>
  79. </Dataset>
  80. <Dataset id="ds_init_P0470list_P0470" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  81. <ColumnInfo>
  82. <Column id="cdid" type="STRING" size="256"/>
  83. <Column id="cdnm" type="STRING" size="256"/>
  84. </ColumnInfo>
  85. <Rows>
  86. <Row>
  87. <Col id="cdid"/>
  88. <Col id="cdnm"/>
  89. </Row>
  90. </Rows>
  91. </Dataset>
  92. <Dataset id="ds_hidden_popupmenu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  93. <ColumnInfo/>
  94. </Dataset>
  95. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  96. <ColumnInfo/>
  97. </Dataset>
  98. <Dataset id="ds_main_bldclist_bldcinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  99. <ColumnInfo>
  100. <Column id="grupcalcscorcd" type="STRING" size="256"/>
  101. <Column id="grupcalcscornm" type="STRING" size="256"/>
  102. <Column id="snglcalcscorcd" type="STRING" size="256"/>
  103. <Column id="snglcalcscornm" type="STRING" size="256"/>
  104. <Column id="grupsnglflag" type="STRING" size="256"/>
  105. <Column id="bldabbrgb" type="STRING" size="256"/>
  106. <Column id="bldvol" type="STRING" size="256"/>
  107. <Column id="ordtype" type="STRING" size="256"/>
  108. <Column id="calcflag" type="STRING" size="256"/>
  109. <Column id="fromdd" type="STRING" size="256"/>
  110. <Column id="todd" type="STRING" size="256"/>
  111. </ColumnInfo>
  112. <Rows>
  113. <Row>
  114. <Col id="grupcalcscorcd"/>
  115. <Col id="grupcalcscornm"/>
  116. <Col id="snglcalcscorcd"/>
  117. <Col id="snglcalcscornm"/>
  118. <Col id="grupsnglflag"/>
  119. <Col id="bldabbrgb"/>
  120. <Col id="bldvol"/>
  121. <Col id="ordtype"/>
  122. <Col id="calcflag"/>
  123. <Col id="fromdd"/>
  124. <Col id="todd"/>
  125. </Row>
  126. </Rows>
  127. </Dataset>
  128. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  129. <ColumnInfo/>
  130. </Dataset>
  131. <Dataset id="ds_main_bldclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  132. <ColumnInfo/>
  133. </Dataset>
  134. <Dataset id="ds_hidden_popupmenu_sngl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  135. <ColumnInfo/>
  136. </Dataset>
  137. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  138. <ColumnInfo/>
  139. </Dataset>
  140. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  141. <ColumnInfo>
  142. <Column id="bldc" type="STRING" size="256"/>
  143. <Column id="appdd" type="STRING" size="256"/>
  144. </ColumnInfo>
  145. <Rows>
  146. <Row>
  147. <Col id="bldc"/>
  148. <Col id="appdd"/>
  149. </Row>
  150. </Rows>
  151. </Dataset>
  152. <Dataset id="ds_hidden_popupmenu_grup_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  153. <ColumnInfo>
  154. <Column id="hardcdnm" type="STRING" size="256"/>
  155. <Column id="hardcd" type="STRING" size="256"/>
  156. </ColumnInfo>
  157. <Rows>
  158. <Row>
  159. <Col id="hardcdnm">그룹 수가 추가</Col>
  160. <Col id="hardcd">fAddGrup</Col>
  161. </Row>
  162. <Row>
  163. <Col id="hardcdnm">그룹 수가 삭제</Col>
  164. <Col id="hardcd">fDelGrup</Col>
  165. </Row>
  166. </Rows>
  167. </Dataset>
  168. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  169. <ColumnInfo/>
  170. </Dataset>
  171. <Dataset id="ds_hidden_popupmenu_grup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  172. <ColumnInfo/>
  173. </Dataset>
  174. <Dataset id="ds_hidden_popupmenu_sngl_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  175. <ColumnInfo>
  176. <Column id="hardcdnm" type="STRING" size="256"/>
  177. <Column id="hardcd" type="STRING" size="256"/>
  178. </ColumnInfo>
  179. <Rows>
  180. <Row>
  181. <Col id="hardcdnm">싱글 수가 추가</Col>
  182. <Col id="hardcd">fAddSngl</Col>
  183. </Row>
  184. <Row>
  185. <Col id="hardcdnm">싱글 수가 삭제</Col>
  186. <Col id="hardcd">fDelSngl</Col>
  187. </Row>
  188. </Rows>
  189. </Dataset>
  190. <Dataset id="ds_temp_bldclist_bldcinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  191. <ColumnInfo/>
  192. </Dataset>
  193. <Dataset id="ds_init_calcflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  194. <ColumnInfo>
  195. <Column id="label" type="STRING" size="256"/>
  196. <Column id="value" type="STRING" size="256"/>
  197. </ColumnInfo>
  198. <Rows>
  199. <Row>
  200. <Col id="label">1차</Col>
  201. <Col id="value">1</Col>
  202. </Row>
  203. <Row>
  204. <Col id="label">2차</Col>
  205. <Col id="value">2</Col>
  206. </Row>
  207. </Rows>
  208. </Dataset>
  209. <Dataset id="ds_send_bldc" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  210. </Objects>
  211. <Bind>
  212. <BindItem id="item0" compid="Div00.cal_appdd" propid="value" datasetid="ds_send" columnid="appdd"/>
  213. </Bind>
  214. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  215. include "com_basiccodexp::ZBC001.xjs";
  216. var arErrorCode = new HashArray();
  217. function fAddGrup() {
  218. grd_bldc.setFocus();
  219. ds_main_bldclist_bldcinfo.rowposition = ds_main_bldclist_bldcinfo.rowcount - 1;
  220. frmf_setParameter("SPPMB02300_gsflag", "G");
  221. frmf_setParameter("SPPMB02300_row", ds_main_bldclist_bldcinfo.rowcount);
  222. frmf_modal("SPPMB02300", "SPPMB02300", "", "", "", "", "", "", "", "", "", "", "M");
  223. var path = ds_main_bldclist_bldcinfo;
  224. var tmpath = ds_temp_bldclist_bldcinfo;
  225. var row = ds_main_bldclist_bldcinfo.rowposition;
  226. var cnt = ds_temp_bldclist_bldcinfo.rowcount;
  227. for (var i = 0; i < cnt; i++) {
  228. var iRow = path.addRow(); //grd_bldc.addRow(false);
  229. path.setColumn( iRow, "grupcalcscorcd", tmpath.getColumn(i, "grupcalcscorcd"));
  230. path.setColumn( iRow, "grupcalcscornm", tmpath.getColumn(i, "grupcalcscornm"));
  231. path.setColumn( iRow, "snglcalcscorcd", tmpath.getColumn(i, "snglcalcscorcd"));
  232. path.setColumn( iRow, "nglcalcscornm", tmpath.getColumn(i, "snglcalcscornm"));
  233. path.setColumn( iRow, "grupsnglflag", tmpath.getColumn(i, "grupsnglflag"));
  234. path.setColumn( iRow, "bldabbrgb", tmpath.getColumn(i, "bldabbrgb"));
  235. path.setColumn( iRow, "bldvol", tmpath.getColumn(i, "bldvol"));
  236. path.setColumn( iRow, "ordtype", tmpath.getColumn(i, "ordtype"));
  237. path.setColumn( iRow, "calcflag", tmpath.getColumn(i, "calcflag"));
  238. path.setColumn( iRow, "fromdd", tmpath.getColumn(i, "fromdd"));
  239. path.setColumn( iRow, "todd", tmpath.getColumn(i, "todd"));
  240. }
  241. //grd_bldc.refresh();
  242. grd_bldc.cellStyle("font-weight", row + 1, grd_bldc.colRef("grupcalcscorcd"), row + cnt, grd_bldc.colRef("calcflag")) = "bold";
  243. ds_temp_bldclist_bldcinfo.clearData();
  244. grd_bldc.setFocus();
  245. ds_main_bldclist_bldcinfo.rowposition = ds_main_bldclist_bldcinfo.rowcount - 1;
  246. }
  247. function fDelGrup() {
  248. var row = ds_main_bldclist_bldcinfo.rowposition;
  249. var grupcd = ds_main_bldclist_bldcinfo.getColumn(row, "grupcalcscorcd");
  250. for (var i = 0; i < ds_main_bldclist_bldcinfo.rowcount; i++) {
  251. if (ds_main_bldclist_bldcinfo.getColumn(i, "grupcalcscorcd") == grupcd) {
  252. ds_main_bldclist_bldcinfo.setRowType(i, Dataset.ROWTYPE_DELETE); //grd_bldc.addStatus(i, "delete");
  253. }
  254. }
  255. }
  256. function fAddSngl() {
  257. var path = ds_main_bldclist_bldcinfo;
  258. var row = ds_main_bldclist_bldcinfo.rowposition;
  259. grd_bldc.insertRow(row, "above", false);
  260. path.setColumn( row, "grupcalcscorcd", path.getColumn( row + 1, "grupcalcscorcd"));
  261. path.setColumn( row, "grupcalcscornm", path.getColumn( row + 1, "grupcalcscornm"));
  262. path.setColumn( row, "snglcalcscorcd", "클릭하여추가");
  263. path.setColumn( row, "snglcalcscornm", "");
  264. path.setColumn( row, "grupsnglflag", "G");
  265. path.setColumn( row, "bldabbrgb", "");
  266. path.setColumn( row, "bldvol", "");
  267. path.setColumn( row, "ordtype", "");
  268. path.setColumn( row, "calcflag", "");
  269. path.setColumn( row, "fromdd", "");
  270. path.setColumn( row, "todd", "");
  271. //grd_bldc.refresh();
  272. grd_bldc.cellStyle("font-weight", row, grd_bldc.colRef("snglcalcscorcd"), row, grd_bldc.colRef("calcflag")) = "bold";
  273. }
  274. function fDelSngl() {
  275. var row = ds_main_bldclist_bldcinfo.rowposition;
  276. ds_main_bldclist_bldcinfo.setRowType(row, Dataset.ROWTYPE_DELETE);
  277. }
  278. function SMPMB03500_onload(obj:Form, e:LoadEventInfo) {
  279. frmf_initForm(obj);
  280. grdf_initGrid(this.grd_bldc);
  281. //grdf_setGridSort(grd_XXX);
  282. grdf_setRowTypeIcon(grd_bldc, 0);
  283. var arrParam = [ {dsNm: "ds_init_P0470list_P0470", cdGrpId: "P0470" } ];
  284. appf_getCodeList(arrParam );
  285. //for (var i = 3; i < grd_bldc.cols; i++) {
  286. // grd_bldc.mergeCol(i) = false;
  287. //}
  288. frmf_createPopupMenuDs("pmn_menu_grup", "pmn_menu_grup_onmenuclick", ds_hidden_popupmenu_grup_item);
  289. frmf_createPopupMenuDs("pmn_menu_sngl", "pmn_menu_sngl_onmenuclick", ds_hidden_popupmenu_sngl_item);
  290. ds_send.setColumn(0, "appdd", utlf_getCurrentDate());
  291. btn_search.click(); //.dispatch("DOMActivate");
  292. }
  293. function pmn_menu_grup_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  294. {
  295. eval(e.id + "()");
  296. }
  297. function pmn_menu_sngl_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  298. {
  299. eval(e.id + "()");
  300. }
  301. function btn_search_onclick(obj:Button, e:ClickEventInfo) {
  302. // submit("TRPMB03501");
  303. var oParam = {};
  304. oParam.id = "TRPMB03501";
  305. oParam.service = "pambaseinfomngtapp.Etc";
  306. oParam.method = "reqGetBldcInfo";
  307. oParam.inds = "req=ds_send";
  308. oParam.outds = "ds_main_bldclist_bldcinfo=bldc";
  309. oParam.async = false;
  310. tranf_submit(oParam);
  311. //grd_bldc.rebuildStyle();
  312. }
  313. function btn_excel1_onclick(obj:Button, e:ClickEventInfo) {
  314. //var filename = window.fileDialog("save", ",", false, "수혈대체기준자료", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  315. //grd_bldc.saveExcel(filename, "sheetname:수혈대체기준자료;colhiddenextend:false;rowhiddenextend:false");
  316. grdf_exportExcel(grd_bldc, "Sheet1", "수혈대체기준자료", false, "" , 'user' , true);
  317. sysf_messageBox("엑셀 저장이 완료되었습니다.", "I999");
  318. }
  319. function grd_bldc_onmousedown(obj:Grid, e:GridMouseEventInfo) {
  320. }
  321. // function grd_bldc_onkillfocus(obj:Grid, e:KillFocusEventInfo) {
  322. //
  323. // //initPopupMenu();
  324. //
  325. // }
  326. function grd_bldc_oncellclick(obj:Grid, e:GridClickEventInfo) {
  327. if (e.col == grd_bldc.getBindCellIndex("body", "snglcalcscorcd") && e.row == 0) {
  328. frmf_setParameter("SPPMB02300_gsflag", "S");
  329. var row = ds_main_bldclist_bldcinfo.rowposition;
  330. frmf_setParameter("SPPMB02300_row", row);
  331. frmf_modal("SPPMB02300", "SPPMB02300", "", "", "", "", "", "", "", "", "", "", "M");
  332. }
  333. }
  334. function btn_save_onclick(obj:Button, e:ClickEventInfo) {
  335. if (utlf_isNull(grdf_getGridUpdateData(grd_bldc))) { // grd_bldc.getUpdateDataXml("insert") == "" && grd_bldc.getUpdateDataXml("update") == "" && grd_bldc.getUpdateDataXml("delete") == ""
  336. sysf_messageBox("변경사항이 없습니다", "E999");
  337. return;
  338. }
  339. var nodeset = ds_main_bldclist_bldcinfo;
  340. for (var i = 0; i < ds_main_bldclist_bldcinfo.rowcount; i++) {
  341. if (ds_main_bldclist_bldcinfo.getRowType(i) == Dataset.ROWTYPE_DELETE ||
  342. ds_main_bldclist_bldcinfo.getRowType(i) == Dataset.ROWTYPE_INSERT ||
  343. ds_main_bldclist_bldcinfo.getRowType(i) == Dataset.ROWTYPE_UPDATE ) { // grd_bldc.rowStatus(i) < 4
  344. if (nodeset.getColumn(i, "grupcalcscorcd") == "") {
  345. sysf_messageBox("그룹수가코드를 입력하십시오", "E999");
  346. return;
  347. }
  348. if (nodeset.getColumn(i, "snglcalcscorcd") == "클릭하여추가") {
  349. sysf_messageBox("싱글수가코드를 입력하십시오", "E999");
  350. return;
  351. }
  352. if (nodeset.getColumn(i, "bldabbrgb") == "") {
  353. sysf_messageBox("혈액명을 입력하십시오", "E999");
  354. return;
  355. }
  356. if (nodeset.getColumn(i, "bldvol") == "") {
  357. sysf_messageBox("용량을 입력하십시오", "E999");
  358. return;
  359. }
  360. if (nodeset.getColumn(i, "calcflag") == "") {
  361. sysf_messageBox("구분을 입력하십시오", "E999");
  362. return;
  363. }
  364. }
  365. }
  366. var updateDs = grdf_getGridUpdateData(grd_bldc, "all");
  367. grdf_setStatusColumn(updateDs, "status");
  368. ds_send_bldc.copyData(updateDs); //.setColumn( 0, "bldc", grd_bldc.getUpdateData());
  369. //if (submit("TXPMB03501")) {
  370. var oParam = {};
  371. oParam.id = "TXPMB03501";
  372. oParam.service = "pambaseinfomngtapp.Etc";
  373. oParam.method = "reqExeSaveBldcList";
  374. oParam.inds = "req=ds_send_bldc";
  375. oParam.outds = "ds_main_bldclist_bldcinfo=bldc";
  376. oParam.async = false;
  377. oParam.callback = "cf_TXPMB03501";
  378. tranf_submit(oParam);
  379. if(arErrorCode.pop("TXPMB03501") > -1) {
  380. grd_bldc.redraw();
  381. }
  382. }
  383. function cf_TXPMB03501(sSvcId, nErrorCode, sErrorMsg) {
  384. arErrorCode.push(sSvcId, nErrorCode);
  385. }
  386. function grd_bldc_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  387. {
  388. var col = e.col; //mouseCol;
  389. if (col < 0) {
  390. return;
  391. }
  392. if (col == grd_bldc.getBindCellIndex("body", "grupcalcscorcd") || col == grd_bldc.getBindCellIndex("body", "grupcalcscornm")) {
  393. //setPopupMenu("grd_bldc", false, "ds_hidden_popupmenu_grup_item", "name", "func");
  394. pmn_menu_grup.trackPopup(e.screenX,e.screenY);
  395. } else if (col == grd_bldc.colRef("snglcalcscorcd") || col == grd_bldc.colRef("snglcalcscornm")) {
  396. //setPopupMenu("grd_bldc", false, "ds_hidden_popupmenu_sngl_item", "name", "func");
  397. pmn_menu_sngl.trackPopup(e.screenX,e.screenY);
  398. }
  399. return true;
  400. }
  401. ]]></Script>
  402. </Form>
  403. </FDL>