942fc70900b93457d3fa08078cef712d97dfc15a.svn-base 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>
  6. <![CDATA[发货管理>>发货处理>>质保书发行]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <initData>
  12. <CRET_PRINT_TP/>
  13. </initData>
  14. <datagrid1/>
  15. <conditonData>
  16. <ord_no/>
  17. <CRET_PRINT_TP/>
  18. <STDATE/>
  19. <ENDDATE/>
  20. <CAR_GP/>
  21. <DLIV_DIRNO/>
  22. <INV_NO/>
  23. <MOBAN>UIB021120</MOBAN>
  24. <SPEC_STL_GRD/>
  25. <SENDTP>ALL</SENDTP>
  26. <ZE_TP>Z</ZE_TP>
  27. </conditonData>
  28. <searchInfo>
  29. <CRET_NO/>
  30. <class>xin.glue.ui.B.PosCertificate</class>
  31. <template>UIB021120</template>
  32. <cretList/>
  33. <user_id/>
  34. <PRINT_CNT/>
  35. </searchInfo>
  36. </root>
  37. </instance>
  38. <script type="javascript" ev:event="xforms-ready">
  39. <![CDATA[
  40. Init();
  41. ]]>
  42. </script>
  43. </model>
  44. <script type="javascript" src="../../js/boaCommon.js"/>
  45. <script type="javascript" src="../../js/boaMsg.js"/>
  46. <script type="javascript" src="../../js/mesCommon.js"/>
  47. <script type="javascript">
  48. <![CDATA[
  49. var print_cnt = 0;//用于记录本次打印次数
  50. function Init(node)
  51. {
  52. InitParams(node);
  53. datagrid1.fixedcellcheckbox(0,datagrid1.colRef("CHK"))=true;//进行全选操作
  54. combo2.select(2);
  55. input1.value = commCurDate();
  56. input2.value = commCurDate();
  57. model.removenode("/root/reqData");
  58. model.makeNode("/root/reqData");
  59. commSendReq("/root/conditonData");
  60. commSubmit("UIB021100-service", "findTP", "glueAction.do");
  61. model.copyNode("/root/datagrid1","/root/resData/CRET_PRINT_TP_VO");
  62. model.refresh();
  63. datagrid1.colStatus(0) = false;
  64. setCor();//是否已审核
  65. }
  66. //是否已审核
  67. function setCor()
  68. {
  69. for(var i = 1;i < datagrid1.rows;i++)
  70. {
  71. if(datagrid1.valueMatrix(i,datagrid1.colRef("CRET_PRINT_TP")) == "Y")//已审核
  72. {
  73. datagrid1.rowstyle(i, "data", "color") = "#000000";
  74. }
  75. else//未审核
  76. {
  77. datagrid1.rowstyle(i, "data", "color") = "#ff0000";
  78. }
  79. }
  80. }
  81. function find()
  82. {
  83. model.removenode("/root/reqData");
  84. model.makeNode("/root/reqData");
  85. commSendReq("/root/conditonData");
  86. commSubmit("UIB021100-service", "findTP", "glueAction.do");
  87. model.copyNode("/root/datagrid1","/root/resData/CRET_PRINT_TP_VO");
  88. model.refresh();
  89. setCor(); //是否已审核
  90. }
  91. function save()
  92. {
  93. var ope = window.opener;
  94. var flag = model.getValue("/root/initData/rcvInfo/REG_ID");
  95. for(var i = 1;i<datagrid1.rows;i++)
  96. {
  97. datagrid1.valueMatrix(i,datagrid1.colRef("REG_ID")) = flag;
  98. }
  99. model.removenode("/root/reqData");
  100. model.makeNode("/root/reqData");
  101. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");//获得修改、插入、删除参数
  102. commSubmit("UIB021100-service", "save", "glueAction.do");
  103. model.refresh();
  104. window.alert("审核成功!", "提示");
  105. //清除删除、插入、修改状态,防止在第二次修改时候出问题
  106. datagrid1.clearStatus();
  107. }
  108. function print1(cret_no)
  109. {
  110. body.disabled = true;
  111. model.removenode("root/reqData");
  112. model.makeNode("root/reqData");
  113. model.removenode("root/temp1");
  114. model.makeNode("root/temp1");
  115. model.makeValue("/root/searchInfo/user_id",model.getValue("/root/initData/rcvInfo/REG_ID"));
  116. model.makeValue("/root/searchInfo/CRET_NO",cret_no);
  117. model.makeValue("/root/searchInfo/PRINT_CNT",print_cnt);
  118. if(combo4.value == "UIB021121")
  119. {
  120. model.makeValue("/root/searchInfo/class","xin.glue.ui.B.PosCertificateSp1");
  121. model.makeValue("/root/searchInfo/template" , "UIB021121");
  122. }
  123. else
  124. {
  125. model.makeValue("/root/searchInfo/class","xin.glue.ui.B.PosCertificate");
  126. model.makeValue("/root/searchInfo/template" , "UIB021120");
  127. }
  128. //commSendReq("/root/searchInfo","root/temp1");
  129. //commSubmit("UIB021120-service", "save", "glueAction.do");
  130. if(cret_no != "")
  131. {
  132. commSendReq("/root/searchInfo");
  133. excelSubmit1("UIB021120-service", "find");
  134. /* commSubmit("UIB021120-service", "find", "etAction.do");
  135. window.load(url+"excel.jsp", "html");*/
  136. //http://localhost:8088/xgmes3/excel.jsp
  137. }
  138. print_cnt++;
  139. body.disabled = false;
  140. }
  141. function excelSubmit1(submitID, serviceTag)
  142. {
  143. var reqData = setReqData(model.instances(0).selectSingleNode("/root/reqData"));
  144. //window.load(url + "etAction.jsp?ServiceName=" + submitID + "&" + serviceTag + "=1" + reqData, "html");
  145. model.download(url + "etAction.jsp?ServiceName=" + submitID + "&" + serviceTag + "=1" + reqData, "C:\\WINDOWS\\excel.xls", false);
  146. try
  147. {
  148. var xlApp = new ActiveXObject("Excel.Application");
  149. }
  150. catch(e)
  151. {
  152. window.alert("未安装Microsoft Office Excel 2003,请安装" , "提示");
  153. }
  154. try
  155. {
  156. xlApp.Visible = false;
  157. xlApp.Workbooks.Add();
  158. xlApp.Workbooks.Open("C:\\WINDOWS\\excel.xls");
  159. var ExcelSheet = xlApp.Worksheets(1);
  160. ExcelSheet.PrintOut();
  161. xlApp.Quit();
  162. xlApp=null;
  163. }
  164. catch(e)
  165. {
  166. window.alert("未安装打印机,请安装" , "提示");
  167. }
  168. //var fso = new ActiveXObject("Scripting.FileSystemObject");
  169. //fso.DeleteFile("C:\\WINDOWS\\excel.xls");
  170. }
  171. function print(cret_no)
  172. {
  173. body.disabled = true;
  174. model.removenode("root/reqData");
  175. model.makeNode("root/reqData");
  176. model.removenode("root/temp1");
  177. model.makeNode("root/temp1");
  178. //model.makeValue("/root/searchInfo/user_id",model.getValue("/root/initData/rcvInfo/REG_ID"));
  179. model.makeValue("/root/searchInfo/CRET_NO",cret_no);
  180. model.makeValue("/root/searchInfo/PRINT_CNT",print_cnt);
  181. model.makeValue("/root/searchInfo/ZE_TP" ,model.getValue("/root/conditonData/ZE_TP"));
  182. if(combo4.value == "UIB021121")
  183. {
  184. model.makeValue("/root/searchInfo/class","xin.glue.ui.B.PosCertificateSp1");
  185. model.makeValue("/root/searchInfo/template" , "UIB021121");
  186. }
  187. else if(combo4.value == "UIB021122")
  188. {
  189. model.makeValue("/root/searchInfo/class","xin.glue.ui.B.PosCertificate");
  190. model.makeValue("/root/searchInfo/template" , "UIB021122");
  191. }
  192. else if(combo4.value =="UIB021123")
  193. {
  194. model.makeValue("/root/searchInfo/class","xin.glue.ui.B.PosCertificate");
  195. model.makeValue("/root/searchInfo/template" , "UIB021123");
  196. }
  197. else
  198. {
  199. model.makeValue("/root/searchInfo/class","xin.glue.ui.B.PosCertificate");
  200. model.makeValue("/root/searchInfo/template" , "UIB021120");
  201. }
  202. //commSendReq("/root/searchInfo","root/temp1");
  203. //commSubmit("UIB021120-service", "save", "glueAction.do");
  204. if(cret_no != "")
  205. {
  206. commSendReq("/root/searchInfo");
  207. excelSubmit("UIB021120-service", "find");
  208. /* commSubmit("UIB021120-service", "find", "etAction.do");
  209. window.load(url+"excel.jsp", "html");*/
  210. //http://localhost:8088/xgmes3/excel.jsp
  211. }
  212. //print_cnt++;
  213. body.disabled = false;
  214. }
  215. function excelSubmit(submitID, serviceTag)
  216. {
  217. var reqData = setReqData(model.instances(0).selectSingleNode("/root/reqData"));
  218. window.load(url + "etAction.jsp?ServiceName=" + submitID + "&" + serviceTag + "=1" + reqData, "html");
  219. }
  220. ]]>
  221. </script>
  222. </xhtml:head>
  223. <xhtml:body overflow="hidden" pagewidth="980" pageheight="620" style="font-family:宋体; ">
  224. <datagrid id="datagrid1" nodeset="/root/datagrid1/CRET_PRINT_TP_Row" caption="打印^选择^已审核^已发送^明细号^运送指示号^标准号^标准钢号^规格^质保书号^合同号^订单号^产品名称^订货单位^收货单位^审核人^审核时间^车号^总重^块数^发货时间^交货日期^打印次数^caption1^caption2" colsep="^" colwidth="38, 47, 56, 40, 81, 86, 138, 97, 46, 78, 90, 42, 100, 153, 133, 66, 64, 74, 61, 38, 67, 65, 33, 100, 100" explorerbar="sort" frozencols="5" mergecellsfixedrows="bycolrec" rowheight="30" rowsep="|" tooltip="label" style="left:0px; top:80px; width:977px; height:505px; border-style:solid; ">
  225. <col type="radio"/>
  226. <col checkvalue="Y,N" editable="false" ref="CHK" type="checkbox"/>
  227. <col ref="CRET_PRINT_TP" visibility="hidden"/>
  228. <col ref="SEND_TP" style="text-align:left; "/>
  229. <col editable="false" ref="INV_NO" type="input" style="text-align:left; "/>
  230. <col editable="false" ref="DLIV_DIRNO" type="input" style="text-align:left; "/>
  231. <col editable="false" ref="SPEC_ABBSYM" type="input" style="text-align:left; "/>
  232. <col editable="false" ref="SPEC_STL_GRD" type="input" style="text-align:left; "/>
  233. <col editable="false" ref="INSTR_COIL_THK" type="input" style="text-align:right; "/>
  234. <col editable="false" ref="CRET_NO" type="input" style="text-align:left; "/>
  235. <col editable="false" ref="ORD_NO" type="input" style="text-align:left; "/>
  236. <col editable="false" ref="ORD_SEQ" type="input" style="text-align:left; "/>
  237. <col editable="false" ref="ORD_USE_TP" type="input" style="text-align:left; "/>
  238. <col editable="false" ref="CUST_CD" type="input" style="text-align:left; "/>
  239. <col editable="false" ref="ORDCUST_CD" type="input" style="text-align:left; "/>
  240. <col editable="false" ref="CRET_PRINT_ID" type="input" style="text-align:left; "/>
  241. <col editable="false" ref="CRET_PRINT_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
  242. <col editable="false" ref="CAR_GP" type="input" style="text-align:left; "/>
  243. <col editable="false" ref="SUM_WGT" type="input" style="text-align:right; "/>
  244. <col editable="false" ref="SUM_CNT" type="input" style="text-align:right; "/>
  245. <col ref="TRNF_DTIME" format="yyyy-mm-dd" style="text-align:left; "/>
  246. <col ref="ORD_DEVLMT_DATE" format="yyyy-mm-dd" style="text-align:left; "/>
  247. <col editable="false" ref="CRET_CNT" style="text-align:right; "/>
  248. <col editable="false" ref="REG_ID" type="input" visibility="hidden"/>
  249. <col editable="false" ref="ISCHECK" type="input" visibility="hidden"/>
  250. </datagrid>
  251. <button id="button5" visibility="visible" style="left:525px; top:50px; width:57px; height:20px; background-image:..\..\images\sw_normal01.gif; cursor:hand; ">
  252. <caption>查询</caption>
  253. <script type="javascript" ev:event="onclick">
  254. <![CDATA[
  255. find();
  256. ]]>
  257. </script>
  258. </button>
  259. <caption id="caption4" class="cell" style="left:200px; top:0px; width:100px; height:20px; border-style:solid; ">合同号</caption>
  260. <input id="input3" ref="/root/conditonData/ord_no" style="left:300px; top:0px; width:100px; height:20px; "/>
  261. <caption id="caption5" class="cell" style="left:410px; top:0px; width:90px; height:20px; border-style:solid; ">审核状态</caption>
  262. <select1 id="combo2" ref="/root/conditonData/CRET_PRINT_TP" appearance="minimal" style="left:500px; top:0px; width:100px; height:20px; border-style:solid; ">
  263. <choices>
  264. <item>
  265. <label>全部</label>
  266. <value/>
  267. </item>
  268. <item>
  269. <label>已审核</label>
  270. <value>Y</value>
  271. </item>
  272. <item>
  273. <label>未审核</label>
  274. <value>N</value>
  275. </item>
  276. </choices>
  277. </select1>
  278. <caption id="caption15" class="cell" style="left:200px; top:50px; width:90px; height:20px; border-style:solid; ">质保书编制时间</caption>
  279. <input id="input2" ref="/root/conditonData/STDATE" inputtype="date" style="left:290px; top:50px; width:100px; height:20px; border-color:#000000; border-style:solid; "/>
  280. <input id="input1" ref="/root/conditonData/ENDDATE" inputtype="date" style="left:405px; top:50px; width:100px; height:20px; border-color:#000000; border-style:solid; "/>
  281. <caption id="caption6" style="left:795px; top:50px; width:55px; height:20px; color:#000000; text-align:center; vertical-align:middle; background-image:..\..\images\sw_normal01.gif; cursor:hand; ">
  282. <![CDATA[打 印.]]>
  283. <script type="javascript" ev:event="onclick">
  284. <![CDATA[
  285. for(var i = 1;i<datagrid1.rows;i++)
  286. {
  287. if(datagrid1.valueMatrix(i,0) == "true")
  288. {
  289. model.removenode("root/reqData");
  290. model.makeNode("root/reqData");
  291. model.makeValue("root/reqData/CRET_NO",datagrid1.valueMatrix(i,datagrid1.colRef("CRET_NO")));
  292. commSubmit("UIB021100-service", "findTP1", "glueAction.do");
  293. if(model.getValue("root/resData/CRET_PRINT_TP_VO/CRET_PRINT_TP_Row/CRET_PRINT_TP") == "Y")
  294. {
  295. print1(datagrid1.valueMatrix(i,datagrid1.colRef("CRET_NO")));
  296. //质保书的打印次数加1
  297. model.makeValue("root/reqData/rowStatus","u")
  298. commSubmit("UIB021120-service", "save", "glueAction.do");
  299. }
  300. }
  301. }
  302. ]]>
  303. </script>
  304. <hint>
  305. <![CDATA[选择“打印”的勾选]]>
  306. </hint>
  307. </caption>
  308. <caption id="caption7" class="cell" style="left:200px; top:25px; width:100px; height:20px; border-style:solid; ">车号</caption>
  309. <input id="input4" ref="/root/conditonData/CAR_GP" style="left:300px; top:25px; width:100px; height:20px; "/>
  310. <caption id="caption8" class="cell" style="left:0px; top:0px; width:90px; height:20px; border-style:solid; ">运送指示号</caption>
  311. <input id="input5" ref="/root/conditonData/DLIV_DIRNO" style="left:90px; top:0px; width:100px; height:20px; "/>
  312. <caption id="caption9" class="cell" style="left:0px; top:25px; width:90px; height:20px; border-style:solid; ">明细号</caption>
  313. <input id="input6" ref="/root/conditonData/INV_NO" style="left:90px; top:25px; width:100px; height:20px; "/>
  314. <caption id="caption10" style="left:730px; top:50px; width:55px; height:20px; text-align:center; vertical-align:middle; background-image:..\..\images\sw_normal01.gif; cursor:hand; ">
  315. <![CDATA[打 开.]]>
  316. <script type="javascript" ev:event="onclick">
  317. <![CDATA[
  318. if(datagrid1.row < datagrid1.fixedRows) { window.alert("请选择行" , "提示"); return};
  319. if(datagrid1.valueMatrix(datagrid1.row , datagrid1.colRef("CRET_PRINT_TP"))== "Y" )
  320. {
  321. print(datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("CRET_NO")));
  322. }
  323. ]]>
  324. </script>
  325. <hint>
  326. <![CDATA[选择某行,可不用勾选]]>
  327. </hint>
  328. </caption>
  329. <button id="button3" visibility="visible" style="left:595px; top:50px; width:55px; height:20px; background-image:..\..\images\sw_normal01.gif; cursor:hand; ">
  330. <caption>审核</caption>
  331. <script type="javascript" ev:event="onclick">
  332. <![CDATA[
  333. var ope = window.opener;
  334. var REG_ID = model.getValue("/root/initData/rcvInfo/REG_ID");
  335. var check = "1";
  336. for(var i = 1;i<datagrid1.rows;i++)
  337. {
  338. if(datagrid1.valueMatrix(i,datagrid1.colRef("CHK")) == "Y")
  339. {
  340. model.removenode("root/reqData");
  341. model.makeNode("root/reqData");
  342. model.makeValue("root/reqData/CRET_NO",datagrid1.valueMatrix(i,datagrid1.colRef("CRET_NO")));
  343. commSubmit("UIB021100-service", "findTP1", "glueAction.do");
  344. if(model.getValue("root/resData/CRET_PRINT_TP_VO/CRET_PRINT_TP_Row/CRET_PRINT_TP") == "Y")
  345. {
  346. var INV_NO = datagrid1.valueMatrix(i,datagrid1.colRef("INV_NO"));
  347. var CRET_NO = datagrid1.valueMatrix(i,datagrid1.colRef("CRET_NO"));
  348. alert("明细:"+datagrid1.valueMatrix(i,datagrid1.colRef("INV_NO"))+" 质保书"+datagrid1.valueMatrix(i,datagrid1.colRef("CRET_NO"))+" 已经审核,不能再次审核","提示");
  349. datagrid1.row = i;
  350. check = "0";
  351. break;
  352. }
  353. model.removenode("root/reqData");
  354. model.makeNode("root/reqData");
  355. model.makeValue("root/reqData/CRET_NO",datagrid1.valueMatrix(i,datagrid1.colRef("CRET_NO")));
  356. commSubmit("UIB021100-service", "checkGrd", "glueAction.do");
  357. if(model.getValue("root/resData/CRET_PRINT_TP_VO/CRET_PRINT_TP_Row/CHECK_DATA") == "N")
  358. {
  359. var INV_NO = datagrid1.valueMatrix(i,datagrid1.colRef("INV_NO"));
  360. var CRET_NO = datagrid1.valueMatrix(i,datagrid1.colRef("CRET_NO"));
  361. alert("明细:"+datagrid1.valueMatrix(i,datagrid1.colRef("INV_NO"))+" 质保书"+datagrid1.valueMatrix(i,datagrid1.colRef("CRET_NO"))+" 有性能不合格的钢卷,不能审核,请检查","提示");
  362. datagrid1.row = i;
  363. check = "0";
  364. break;
  365. }
  366. datagrid1.rowStatus(i) = "2";
  367. datagrid1.valueMatrix(i,datagrid1.colRef("REG_ID")) = REG_ID;
  368. datagrid1.valueMatrix(i,datagrid1.colRef("ISCHECK")) = "Y";
  369. }
  370. else
  371. {
  372. datagrid1.rowStatus(i) = "0";
  373. }
  374. }
  375. if(check == "1")
  376. {
  377. model.removenode("/root/reqData");
  378. model.makeNode("/root/reqData");
  379. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");//获得修改、插入、删除参数
  380. commSubmit("UIB021100-service", "save", "glueAction.do");
  381. model.refresh();
  382. window.alert("审核成功!", "提示");
  383. }
  384. //清除删除、插入、修改状态,防止在第二次修改时候出问题
  385. datagrid1.clearStatus();
  386. ]]>
  387. </script>
  388. <hint>
  389. <![CDATA[被勾择的才能进行审核]]>
  390. </hint>
  391. </button>
  392. <button id="button7" visibility="visible" style="left:660px; top:50px; width:60px; height:20px; background-image:..\..\images\sw_normal01.gif; cursor:hand; ">
  393. <caption>取消审核</caption>
  394. <script type="javascript" ev:event="onclick">
  395. <![CDATA[
  396. var ope = window.opener;
  397. var REG_ID = model.getValue("/root/initData/rcvInfo/REG_ID");
  398. for(var i = 1;i<datagrid1.rows;i++)
  399. {
  400. if(datagrid1.valueMatrix(i,datagrid1.colRef("CRET_PRINT_TP")) == "Y")
  401. {
  402. datagrid1.rowStatus(i) = "2";
  403. datagrid1.valueMatrix(i,datagrid1.colRef("REG_ID")) = REG_ID;
  404. datagrid1.valueMatrix(i,datagrid1.colRef("ISCHECK")) = "N";
  405. }
  406. else
  407. {
  408. datagrid1.rowStatus(i) = "0";
  409. }
  410. }
  411. /*for(var i = 1;i<datagrid1.rows;i++)
  412. {
  413. datagrid1.valueMatrix(i,datagrid1.colRef("REG_ID")) = flag;
  414. datagrid1.valueMatrix(i,datagrid1.colRef("ISCHECK")) = "N";
  415. datagrid1.rowStatus(i) = "2";
  416. }*/
  417. model.removenode("/root/reqData");
  418. model.makeNode("/root/reqData");
  419. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");//获得修改、插入、删除参数
  420. commSubmit("UIB021100-service", "save", "glueAction.do");
  421. model.refresh();
  422. window.alert("取消审核成功!", "提示");
  423. //清除删除、插入、修改状态,防止在第二次修改时候出问题
  424. datagrid1.clearStatus();
  425. ]]>
  426. </script>
  427. </button>
  428. <button id="button1" style="left:860px; top:50px; width:60px; height:20px; text-align:center; background-image:..\..\images\sw_normal01.gif; cursor:hand; ">
  429. <caption>发送</caption>
  430. <script type="javascript" ev:event="DOMActivate">
  431. <![CDATA[
  432. for(var i = 1;i<datagrid1.rows;i++)
  433. {
  434. if(datagrid1.valueMatrix(i,datagrid1.colRef("CRET_PRINT_TP")) == "Y"
  435. && datagrid1.valueMatrix(i ,datagrid1.colRef("CHK")) == "Y")
  436. {
  437. // commSendReq("/root/datagrid1/CRET_PRINT_TP_Row["+i+"]");
  438. model.removenode("/root/formData");
  439. if(combo4.value =="UIB021121")
  440. {
  441. model.makeValue("/root/formData/TMPL_NM" , "UIB021121");
  442. }
  443. else
  444. {
  445. model.makeValue("/root/formData/TMPL_NM" , "UIB021120");
  446. }
  447. model.makeValue("/root/formData/ZE_TP" , model.getValue("/root/formData/ZE_TP"));
  448. model.makeValue("/root/formData/CRET_NO" , datagrid1.valueMatrix( i , datagrid1.colRef("CRET_NO")));
  449. model.makeValue("/root/formData/INV_NO" , datagrid1.valueMatrix( i , datagrid1.colRef("INV_NO")));
  450. model.makeValue("/root/formData/ORD_NO" , datagrid1.valueMatrix( i , datagrid1.colRef("ORD_NO")));
  451. model.makeValue("/root/formData/ORD_SEQ" ,datagrid1.valueMatrix( i , datagrid1.colRef("ORD_SEQ")) );
  452. model.makeValue("/root/formData/CUST_CD" ,datagrid1.valueMatrix( i , datagrid1.colRef("CUST_CD")) );
  453. model.makeValue("/root/formData/ORDCUST_CD" , datagrid1.valueMatrix( i , datagrid1.colRef("ORDCUST_CD")));
  454. model.makeValue("/root/formData/ORD_USE_TP" , datagrid1.valueMatrix( i , datagrid1.colRef("ORD_USE_TP")));
  455. model.makeValue("/root/formData/SPEC_ABBSYM" , datagrid1.valueMatrix( i , datagrid1.colRef("SPEC_ABBSYM")));
  456. model.makeValue("/root/formData/CAR_GP" , datagrid1.valueMatrix( i , datagrid1.colRef("CAR_GP")));
  457. model.makeValue("/root/formData/SUM_WGT" , datagrid1.valueMatrix( i , datagrid1.colRef("SUM_WGT")));
  458. model.makeValue("/root/formData/SUM_CNT" , datagrid1.valueMatrix( i , datagrid1.colRef("SUM_CNT")));
  459. model.makeValue("/root/formData/TRNF_DTIME" , datagrid1.valueMatrix( i , datagrid1.colRef("TRNF_DTIME")));
  460. model.makeValue("/root/formData/ORD_DEVLMT_DATE" , datagrid1.valueMatrix( i , datagrid1.colRef("ORD_DEVLMT_DATE")));
  461. //model.makeValue("/root/formData/TRNF_DTIME" , datagrid1.valueMatrix( i , datagrid1.colRef("SUM_CNT")));
  462. submitID = "NIB021100-service";
  463. exec("/root/formData");
  464. }
  465. }
  466. // model.makeValue("/root/formData/CRET_NO" , "XR9-000791");
  467. // model.makeValue("/root/formData/TMPL_NM" , "UIB021120");
  468. // model.makeValue("/root/formData/template" , "UIB021120");
  469. // submitID = "NIB021100-service";
  470. // exec("/root/formData");
  471. ]]>
  472. </script>
  473. <hint>
  474. <![CDATA[已审核及被勾选的才能发送]]>
  475. </hint>
  476. </button>
  477. <line id="line1" style="x1:390px; y1:60px; x2:405px; y2:60px; "/>
  478. <line id="line2" style="x1:0px; y1:0px; x2:970px; y2:0px; "/>
  479. <line id="line3" style="x1:0px; y1:75px; x2:970px; y2:75px; "/>
  480. <caption id="caption1" class="cell" style="left:615px; top:0px; width:90px; height:20px; border-style:solid; ">模板选择</caption>
  481. <caption id="caption2" class="cell" style="left:410px; top:25px; width:90px; height:20px; border-style:solid; ">牌号</caption>
  482. <input id="input7" ref="/root/conditonData/SPEC_STL_GRD" style="left:500px; top:25px; width:100px; height:20px; "/>
  483. <caption id="caption3" class="cell" style="left:615px; top:25px; width:90px; height:20px; border-style:solid; ">是否已发送</caption>
  484. <select1 id="combo3" ref="/root/conditonData/SENDTP" appearance="minimal" style="left:705px; top:25px; width:100px; height:20px; ">
  485. <choices>
  486. <item>
  487. <label>全部</label>
  488. <value>ALL</value>
  489. </item>
  490. <item>
  491. <label>已发</label>
  492. <value>Y</value>
  493. </item>
  494. <item>
  495. <label>未发</label>
  496. <value>N</value>
  497. </item>
  498. </choices>
  499. </select1>
  500. <caption id="caption11" class="cell" style="left:615px; top:0px; width:90px; height:20px; border-style:solid; ">模板选择</caption>
  501. <select1 id="combo4" ref="/root/conditonData/MOBAN" appearance="minimal" style="left:705px; top:0px; width:100px; height:20px; ">
  502. <choices>
  503. <item>
  504. <label>通用</label>
  505. <value>UIB021120</value>
  506. </item>
  507. <item>
  508. <label>压力容器专用</label>
  509. <value>UIB021121</value>
  510. </item>
  511. <item>
  512. <label>(欧标)EN10025-*:2004,EN10029:1991</label>
  513. <value>UIB021122</value>
  514. </item>
  515. <item>
  516. <label>管线钢</label>
  517. <value>UIB021123</value>
  518. </item>
  519. </choices>
  520. </select1>
  521. <caption id="caption12" class="cell" style="left:0px; top:50px; width:90px; height:20px; border-style:solid; ">中英文区分</caption>
  522. <select1 id="combo5" ref="/root/conditonData/ZE_TP" appearance="minimal" style="left:90px; top:50px; width:100px; height:20px; ">
  523. <choices>
  524. <item>
  525. <label>中文</label>
  526. <value>Z</value>
  527. </item>
  528. <item>
  529. <label>英文</label>
  530. <value>E</value>
  531. </item>
  532. </choices>
  533. </select1>
  534. </xhtml:body>
  535. </xhtml:html>