SPMNP01602_처방물품찾기.xfdl 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNP01602" position="absolute 0 0 998 630" titletext="처방(물품)찾기" onload="SPMNP01602_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 995 624" id="grp_main" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Shape position="absolute 0 26 995 32" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
  11. <Static text="방재고 리스트" position="absolute 5 8 150 25" id="caption16" class="tit_2"/>
  12. <Button position="absolute 943 6 985 25" id="button1" class="btn2" enable="true" text="닫기" onclick="grp_main_button1_onclick"/>
  13. <Button position="absolute 897 6 939 25" id="bbt_choice" class="btn2" enable="true" text="선택" onclick="grp_main_bbt_choice_onclick"/>
  14. <Button position="absolute 851 6 893 25" id="btn_search" class="btn2" text="조회" onclick="grp_main_btn_search_onclick"/>
  15. </Layout>
  16. </Layouts>
  17. </Div>
  18. <Grid position="absolute 0 31 994 623" id="grd_goodlist" class="datagrid2" binddataset="ds_main_goodlist" ontextchanged="grd_goodlist_ontextchanged" autoenter="select" onenterdown="grd_goodlist_onenterdown" cellsizingtype="col" selecttype="multirow" onheadclick="grd_goodlist_onheadclick" onselectchanged="grd_goodlist_onselectchanged">
  19. <Formats>
  20. <Format id="default">
  21. <Columns>
  22. <Column size="25"/>
  23. <Column size="30"/>
  24. <Column size="38"/>
  25. <Column size="38"/>
  26. <Column size="38"/>
  27. <Column size="75"/>
  28. <Column size="40"/>
  29. <Column size="165"/>
  30. <Column size="110"/>
  31. <Column size="100"/>
  32. <Column size="100"/>
  33. <Column size="42"/>
  34. <Column size="42"/>
  35. <Column size="42"/>
  36. <Column size="45"/>
  37. <Column size="62"/>
  38. </Columns>
  39. <Rows>
  40. <Row size="32" band="head"/>
  41. <Row size="24"/>
  42. </Rows>
  43. <Band id="head">
  44. <Cell/>
  45. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  46. <Cell col="2" text="부서&#10;구분"/>
  47. <Cell col="3" text="구매&#10;구분"/>
  48. <Cell col="4" text="수술&#10;방"/>
  49. <Cell col="5" text="물품코드"/>
  50. <Cell col="6" text="SUB"/>
  51. <Cell col="7" text="물품명"/>
  52. <Cell col="8" text="규격"/>
  53. <Cell col="9" text="모델"/>
  54. <Cell col="10" text="제조원"/>
  55. <Cell col="11" text="기준&#10;수량"/>
  56. <Cell col="12" text="안전&#10;재고"/>
  57. <Cell col="13" text="방&#10;재고"/>
  58. <Cell col="14" text="의뢰&#10;단위"/>
  59. <Cell col="15" text="의뢰&#10;수량"/>
  60. </Band>
  61. <Band id="body">
  62. <Cell celltype="head" expr="expr:currow + 1"/>
  63. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:(chkflag == &quot;true&quot; || chkflag == 1) ? 1 : 0"/>
  64. <Cell col="2" text="bind:deptflag"/>
  65. <Cell col="3" text="bind:purcflag"/>
  66. <Cell col="4" text="bind:oproomnm"/>
  67. <Cell col="5" text="bind:goodcd"/>
  68. <Cell col="6" text="bind:allsizespecid"/>
  69. <Cell col="7" style="align:left top;padding:4 2 2 2;" text="bind:goodnm" wordwrap="char"/>
  70. <Cell col="8" style="align:left top;padding:4 2 2 2;" text="bind:goodspec" wordwrap="char"/>
  71. <Cell col="9" style="align:left top;" text="bind:goodmodel" wordwrap="char"/>
  72. <Cell col="10" style="align:left;" text="bind:prodcmpynm" wordwrap="char"/>
  73. <Cell col="11" style="align:right;" text="bind:acmlbaseqty"/>
  74. <Cell col="12" style="align:right;" text="bind:safestocqty"/>
  75. <Cell col="13" style="align:right;" text="bind:stocqty"/>
  76. <Cell col="14" text="bind:deliveunit"/>
  77. <Cell col="15" displaytype="normal" edittype="text" style="align:right;padding:0 3 0 3;background:#ccffccff;background2:#ccffccff;" text="bind:reqqty" editautoselect="true" editacceptsenter="true"/>
  78. </Band>
  79. </Format>
  80. </Formats>
  81. </Grid>
  82. </Layout>
  83. </Layouts>
  84. <Objects>
  85. <Dataset id="ds_grd_goodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  86. <ColumnInfo>
  87. <Column id="chkflag" type="STRING"/>
  88. <Column id="deptflag" type="STRING"/>
  89. <Column id="purcflag" type="STRING"/>
  90. <Column id="oproomnm" type="STRING"/>
  91. <Column id="goodcd" type="STRING"/>
  92. <Column id="allsizespecid" type="STRING"/>
  93. <Column id="goodnm" type="STRING"/>
  94. <Column id="goodspec" type="STRING"/>
  95. <Column id="goodmodel" type="STRING"/>
  96. <Column id="prodcmpynm" type="STRING"/>
  97. <Column id="acmlbaseqty" type="STRING"/>
  98. <Column id="safestocqty" type="STRING"/>
  99. <Column id="stocqty" type="STRING"/>
  100. <Column id="deliveunit" type="STRING"/>
  101. <Column id="reqqty" type="STRING"/>
  102. </ColumnInfo>
  103. </Dataset>
  104. <Dataset id="ds_main_goodlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_goodlist_oncolumnchanged">
  105. <ColumnInfo>
  106. <Column id="chkflag" type="STRING" size="256"/>
  107. <Column id="deptflag" type="STRING" size="256"/>
  108. <Column id="purcflag" type="STRING" size="256"/>
  109. <Column id="oproomnm" type="STRING" size="256"/>
  110. <Column id="goodcd" type="STRING" size="256"/>
  111. <Column id="allsizespecid" type="STRING" size="256"/>
  112. <Column id="goodnm" type="STRING" size="256"/>
  113. <Column id="goodspec" type="STRING" size="256"/>
  114. <Column id="goodmodel" type="STRING" size="256"/>
  115. <Column id="prodcmpynm" type="STRING" size="256"/>
  116. <Column id="acmlbaseqty" type="STRING" size="256"/>
  117. <Column id="safestocqty" type="STRING" size="256"/>
  118. <Column id="stocqty" type="STRING" size="256"/>
  119. <Column id="deliveunit" type="STRING" size="256"/>
  120. <Column id="reqqty" type="STRING" size="256"/>
  121. <Column id="prcpunit" type="STRING" size="256"/>
  122. </ColumnInfo>
  123. <Rows>
  124. <Row>
  125. <Col id="chkflag"/>
  126. <Col id="deptflag"/>
  127. <Col id="purcflag"/>
  128. <Col id="oproomnm"/>
  129. <Col id="goodcd"/>
  130. <Col id="allsizespecid"/>
  131. <Col id="goodnm"/>
  132. <Col id="goodspec"/>
  133. <Col id="goodmodel"/>
  134. <Col id="prodcmpynm"/>
  135. <Col id="acmlbaseqty"/>
  136. <Col id="safestocqty"/>
  137. <Col id="stocqty"/>
  138. <Col id="deliveunit"/>
  139. <Col id="reqqty"/>
  140. </Row>
  141. </Rows>
  142. </Dataset>
  143. <Dataset id="ds_init_GoodData_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  144. <ColumnInfo>
  145. <Column id="refflag" type="STRING" size="256"/>
  146. <Column id="refnm" type="STRING" size="256"/>
  147. <Column id="goodflag" type="STRING" size="256"/>
  148. <Column id="goodcond" type="STRING" size="256"/>
  149. <Column id="lrgcd" type="STRING" size="256"/>
  150. <Column id="mdlcd" type="STRING" size="256"/>
  151. <Column id="smlcd" type="STRING" size="256"/>
  152. <Column id="offset" type="STRING" size="256"/>
  153. <Column id="pagesize" type="STRING" size="256"/>
  154. <Column id="tabflag" type="STRING" size="256"/>
  155. <Column id="refcmpy" type="STRING" size="256"/>
  156. <Column id="refcust" type="STRING" size="256"/>
  157. <Column id="refprcp" type="STRING" size="256"/>
  158. <Column id="prcpflag" type="STRING" size="256"/>
  159. <Column id="winflag" type="STRING" size="256"/>
  160. <Column id="oproomcd" type="STRING" size="256"/>
  161. <Column id="cartgubn" type="STRING" size="256"/>
  162. <Column id="menuparam" type="STRING" size="256"/>
  163. </ColumnInfo>
  164. <Rows>
  165. <Row>
  166. <Col id="refflag">1</Col>
  167. <Col id="refnm"/>
  168. <Col id="goodflag"/>
  169. <Col id="goodcond"/>
  170. <Col id="lrgcd"/>
  171. <Col id="mdlcd"/>
  172. <Col id="smlcd"/>
  173. <Col id="offset"/>
  174. <Col id="pagesize">500</Col>
  175. <Col id="tabflag">CCR</Col>
  176. <Col id="refcmpy"/>
  177. <Col id="refcust"/>
  178. <Col id="refprcp"/>
  179. <Col id="prcpflag">Y</Col>
  180. <Col id="winflag"/>
  181. <Col id="oproomcd"/>
  182. <Col id="cartgubn"/>
  183. <Col id="menuparam">S</Col>
  184. </Row>
  185. </Rows>
  186. </Dataset>
  187. <Dataset id="ds_init_GoodData_goodflaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  188. <ColumnInfo>
  189. <Column id="goodflagcd" type="STRING" size="256"/>
  190. <Column id="goodflagnm" type="STRING" size="256"/>
  191. </ColumnInfo>
  192. <Rows>
  193. <Row>
  194. <Col id="goodflagcd"/>
  195. <Col id="goodflagnm"/>
  196. </Row>
  197. </Rows>
  198. </Dataset>
  199. <Dataset id="ds_init_GoodData_lrglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  200. <ColumnInfo>
  201. <Column id="lrgcd" type="STRING" size="256"/>
  202. <Column id="lrgnm" type="STRING" size="256"/>
  203. </ColumnInfo>
  204. <Rows>
  205. <Row>
  206. <Col id="lrgcd"/>
  207. <Col id="lrgnm"/>
  208. </Row>
  209. </Rows>
  210. </Dataset>
  211. <Dataset id="ds_init_GoodData_mdllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  212. <ColumnInfo>
  213. <Column id="mdlcd" type="STRING" size="256"/>
  214. <Column id="mdlnm" type="STRING" size="256"/>
  215. </ColumnInfo>
  216. <Rows>
  217. <Row>
  218. <Col id="mdlcd"/>
  219. <Col id="mdlnm"/>
  220. </Row>
  221. </Rows>
  222. </Dataset>
  223. <Dataset id="ds_init_GoodData_smllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  224. <ColumnInfo>
  225. <Column id="smlcd" type="STRING" size="256"/>
  226. <Column id="smlnm" type="STRING" size="256"/>
  227. </ColumnInfo>
  228. <Rows>
  229. <Row>
  230. <Col id="smlcd"/>
  231. <Col id="smlnm"/>
  232. </Row>
  233. </Rows>
  234. </Dataset>
  235. <Dataset id="ds_init_GoodData_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  236. <ColumnInfo>
  237. <Column id="prcpclscd" type="STRING" size="256"/>
  238. <Column id="prcpclsnm" type="STRING" size="256"/>
  239. </ColumnInfo>
  240. <Rows>
  241. <Row>
  242. <Col id="prcpclscd"/>
  243. <Col id="prcpclsnm"/>
  244. </Row>
  245. </Rows>
  246. </Dataset>
  247. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  248. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  249. <Dataset id="ds_HideData_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  250. <ColumnInfo>
  251. <Column id="deptflag" type="STRING" size="256"/>
  252. <Column id="cartgubn" type="STRING" size="256"/>
  253. <Column id="oproomcd" type="STRING" size="256"/>
  254. <Column id="insukind" type="STRING" size="256"/>
  255. <Column id="payflagcd" type="STRING" size="256"/>
  256. </ColumnInfo>
  257. <Rows>
  258. <Row>
  259. <Col id="deptflag"/>
  260. <Col id="cartgubn"/>
  261. <Col id="oproomcd"/>
  262. <Col id="insukind"/>
  263. <Col id="payflagcd"/>
  264. </Row>
  265. </Rows>
  266. </Dataset>
  267. </Objects>
  268. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  269. * System Name :
  270. * Job Name :
  271. * Creator :
  272. * Make Date : 2015-11-13
  273. * Description :
  274. *---------------------------------------------------------------------------------------
  275. * Modify Date Modifier Modify Description
  276. *---------------------------------------------------------------------------------------
  277. * 2015-11-13 Live Converter TF->XP
  278. *
  279. *---------------------------------------------------------------------------------------
  280. ****************************************************************************************/
  281. include "com_commonxp::comm_main.xjs";
  282. //include "emr_opanstxp::SPMNP01602.xjs";
  283. var arErrorCode = new HashArray();
  284. /* ---------------------------------------------------------------------
  285. 처방(물품)찾기(SMMNP01602.xfm - JScript )
  286. - Version :
  287. 1) : Ver.1.00.01
  288. : Create By Francis Choi
  289. : 2015.05.02
  290. ---------------------------------------------------------------------- */
  291. var CondPath = "ds_init_GoodData_cond";
  292. var SendPath = "ds_send_reqdata";
  293. var sOproomcd = "";
  294. var sCartGubn = "";
  295. /* ------------------------------------------------- */
  296. /* SMMNP01602_처방(물품)찾기 */
  297. /* On Load 시 Call */
  298. /* ------------------------------------------------- */
  299. /* group : EMR 간호 수술마취 */
  300. /* ver : 2015.05.15 */
  301. /* by : 최학록 */
  302. /* --------------------------------------------------*/
  303. /* type : function */
  304. /* access : public */
  305. /* desc : xforms-ready시 수행한다 */
  306. /* return : */
  307. /* --------------------------------------------------*/
  308. function fGoodInit() {
  309. sOproomcd = opener.frmf_getParameter("SPMNP01602_oproomcd");
  310. sCartGubn = opener.frmf_getParameter("SPMNP01602_cartgubn");
  311. ds_HideData_condition.setColumn( 0, "cartgubn", sCartGubn);
  312. ds_HideData_condition.setColumn( 0, "oproomcd", sOproomcd);
  313. opener.frmf_setParameter("SPMNP01602_oproomcd","");
  314. opener.frmf_setParameter("SPMNP01602_cartgubn","");
  315. //grd_goodlist.fixedcellcheckbox(0,1) = true;
  316. ds_main_goodlist.clearData();
  317. if (frmf_checkOpener() ) {
  318. fDataQuery();
  319. }
  320. }
  321. // --------------------------------------
  322. // P:처방분류선택, G:물품구분선택
  323. // --------------------------------------
  324. function fDataQuery() {
  325. //model.copyNode(SendPath, CondPath);
  326. eval(SendPath).copyData(eval(CondPath));
  327. dsf_makeValue(eval(SendPath), "oproomcd", "string", sOproomcd);
  328. dsf_makeValue(eval(SendPath), "deptflag", "string", ds_HideData_condition.getColumn(0, "cartgubn"));
  329. //submit("TRMNP04606");
  330. var oParam = {};
  331. oParam.id = "TRMNP04606";
  332. oParam.service = "opanstapp.OpAnstStocMngt";
  333. oParam.method = "reqGetStocRgstGoodList";
  334. oParam.inds = "reqdata=" + SendPath;
  335. oParam.outds = "ds_main_goodlist=goodlist";
  336. oParam.async = false;
  337. tranf_submit(oParam);
  338. ds_main_goodlist.rowposition = -1;
  339. }
  340. // --------------------------------------
  341. // Grid Data Click
  342. // --------------------------------------
  343. function fGridDataClick(pGrid, pName) {
  344. var iRow = pGrid.currentrow;
  345. var pPathChkFlag = eval("ds_main_"+ pName).getColumn( iRow, "chkflag");
  346. if (pGrid.rowcount < 1 || pGrid.currentrow == -1){
  347. return;
  348. }
  349. else if (pGrid.currentcol == -1) {
  350. return;
  351. }else {
  352. var sFlag = pPathChkFlag;
  353. eval("ds_main_"+ pName).setColumn( iRow, "chkflag", "string", ((sFlag == "true") ? "false" :"true"));
  354. }
  355. }
  356. // --------------------------------------
  357. // Query Condition Select 조회 조건 선택
  358. // --------------------------------------
  359. function fChoiceData() {
  360. var iParamList = "";
  361. var wCnt = 0 ;
  362. var wIDx = 0 ;
  363. var oproomcd = ds_HideData_condition.getColumn(0, "oproomcd");
  364. var iNode = "ds_main_goodlist";
  365. var wChk = "";
  366. var iRows = eval(iNode).rowcount;
  367. dsf_setDefaultVal(eval(iNode),"all");
  368. for( var i= 0; i < iRows; i++ ) {
  369. wChk = eval(iNode).getColumn( i , "chkflag");
  370. if (wChk == "true" || wChk == "1" ) {
  371. iParamList += eval(iNode).getColumn( i , "purcflag") + "|" // 00 구매구분
  372. + eval(iNode).getColumn( i , "goodcd") + "|" // 01 물품코드
  373. + eval(iNode).getColumn( i , "allsizespecid") + "|" // 02 사이즈
  374. + eval(iNode).getColumn( i , "goodnm") + "|" // 03 물품명
  375. + eval(iNode).getColumn( i , "goodspec") + "|" // 04 물품규격
  376. + eval(iNode).getColumn( i , "goodmodel") + "|" // 05 물품모델
  377. + eval(iNode).getColumn( i , "prodcmpynm") + "|" // 06 제조회사
  378. + eval(iNode).getColumn( i , "prcpunit") + "|" // 07 처방단위
  379. + eval(iNode).getColumn( i , "safestocqty") + "|" // 08 안전재고
  380. + eval(iNode).getColumn( i , "stocqty") + "|" // 09 방재고
  381. + eval(iNode).getColumn( i , "deliveunit") + "|" // 10 불출단위
  382. + eval(iNode).getColumn( i , "reqqty") + "|" // 11 의뢰수량
  383. + oproomcd + "▩"; // 12 수술방
  384. wCnt += 1;
  385. }
  386. }
  387. if(frmf_checkOpener()){
  388. if( wCnt > 0 ) {
  389. opener.fGoodDataDisplay(iParamList);
  390. }
  391. }
  392. }
  393. /* ------------------------------------------------- */
  394. /* ------End Of List ------------------------------- */
  395. /* -------------------------------------------------- */
  396. function SPMNP01602_onload(obj:Form, e:LoadEventInfo)
  397. {
  398. frmf_initForm(obj); // 폼 초기화
  399. // grdf_initGrid(this.grd_goodlist); //Grid 초기화
  400. fGoodInit();
  401. }
  402. function grp_main_btn_search_onclick(obj:Button, e:ClickEventInfo)
  403. {
  404. fDataQuery(); // 조회
  405. }
  406. function grp_main_bbt_choice_onclick(obj:Button, e:ClickEventInfo)
  407. {
  408. fChoiceData();
  409. }
  410. function grp_main_button1_onclick(obj:Button, e:ClickEventInfo)
  411. {
  412. this.close();
  413. }
  414. function ds_main_goodlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  415. {
  416. if( e.columnid == "chkflag" ){
  417. obj.setColumn(e.row, "chkflag", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  418. tempv=1;
  419. }
  420. if(tempv !=1){
  421. var iRow = -1;
  422. iRow = e.row;
  423. if( ( utlf_isNull(ds_main_goodlist.getColumn(iRow, "reqqty")))
  424. ||( ds_main_goodlist.getColumn(iRow, "reqqty") == "0.0")
  425. ||( ds_main_goodlist.getColumn(iRow, "reqqty") == "0") ){
  426. ds_main_goodlist.setColumn( iRow , "chkflag", "false");
  427. iRow++;
  428. }else {
  429. ds_main_goodlist.setColumn( iRow , "chkflag", "true");
  430. iRow++;
  431. }
  432. // if( iRow != ds_main_goodlist.rowcount ) {
  433. // ds_main_goodlist.rowposition = iRow;
  434. // grd_goodlist.setCellPos(e.colidx);
  435. // grd_goodlist.showEditor(true); //.editCell();
  436. // }
  437. }
  438. tempv=0;
  439. }
  440. function grd_goodlist_onenterdown(obj:Grid, e:GridEditEventInfo)
  441. {
  442. if(e.col ==15){
  443. var iRow = -1;
  444. iRow = e.row;
  445. if( ( utlf_isNull(ds_main_goodlist.getColumn(iRow, "reqqty")))
  446. ||( ds_main_goodlist.getColumn(iRow, "reqqty") == "0.0")
  447. ||( ds_main_goodlist.getColumn(iRow, "reqqty") == "0") ){
  448. ds_main_goodlist.setColumn( iRow , "chkflag", "false");
  449. iRow++;
  450. }else {
  451. ds_main_goodlist.setColumn( iRow , "chkflag", "true");
  452. iRow++;
  453. }
  454. }
  455. if( ds_main_goodlist.rowposition+1 != ds_main_goodlist.rowcount ) {
  456. ds_main_goodlist.rowposition = ds_main_goodlist.rowposition+1;
  457. grd_goodlist.setCellPos(e.cell);
  458. grd_goodlist.showEditor(true); //.editCell();
  459. }
  460. }
  461. var tempv=0;
  462. function grd_goodlist_onheadclick(obj:Grid, e:GridClickEventInfo)
  463. {
  464. tempv=1;
  465. grdf_setEventGrid(grd_goodlist, e);
  466. tempv=0;
  467. }
  468. function grd_goodlist_onselectchanged(obj:Grid, e:GridSelectEventInfo)
  469. {
  470. if( e.oldrow != -1 && e.oldcol == 15 ){
  471. var iRow = -1;
  472. iRow = e.oldrow;
  473. if( ( utlf_isNull(ds_main_goodlist.getColumn(iRow, "reqqty")))
  474. ||( ds_main_goodlist.getColumn(iRow, "reqqty") == "0.0")
  475. ||( ds_main_goodlist.getColumn(iRow, "reqqty") == "0") ){
  476. ds_main_goodlist.setColumn( iRow , "chkflag", "false");
  477. iRow++;
  478. }else {
  479. ds_main_goodlist.setColumn( iRow , "chkflag", "true");
  480. iRow++;
  481. }
  482. }
  483. }
  484. ]]></Script>
  485. </Form>
  486. </FDL>