64788b9eb8b2cc00cd3bbb44be3ac4e165dee5ad.svn-base 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../css/body.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" 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">
  4. <xhtml:head>
  5. <xhtml:title>
  6. <![CDATA[ 发货管理 >> 发货处理 >> 日下车计划表(UIJ010090)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <formData>
  12. <DATE/>
  13. <TRANS_TYPE>T</TRANS_TYPE>
  14. <ORD_NO/>
  15. </formData>
  16. <resData/>
  17. <reqData/>
  18. <grid1/>
  19. <datagrid1/>
  20. <DLIV_DIRNO/>
  21. <sumData>
  22. <SUM_COILRST_CNT/>
  23. <SUM_COILRST_WGT/>
  24. </sumData>
  25. <CARNO/>
  26. <SpecResult>
  27. <InitSpecResult_Row>
  28. <LABEL/>
  29. <VALUE/>
  30. </InitSpecResult_Row>
  31. </SpecResult>
  32. <tsize>
  33. <inittsize_Row>
  34. <LABEL/>
  35. <VALUE/>
  36. </inittsize_Row>
  37. </tsize>
  38. <KZ/>
  39. <Trainno>
  40. <Trainno_Row>
  41. <LABEL/>
  42. <VALUE/>
  43. </Trainno_Row>
  44. </Trainno>
  45. <suppwgt>
  46. <suppwgt_Row>
  47. <LABEL/>
  48. <VALUE/>
  49. </suppwgt_Row>
  50. </suppwgt>
  51. </root>
  52. </instance>
  53. </model>
  54. <script type="javascript">
  55. <![CDATA[
  56. function Init(node) {
  57. InitParams(node);
  58. model.duplicate("/root/formData", "/root/initData/rcvInfo/REG_ID");
  59. datagrid1.colStatus(datagrid1.colRef("CHK")) = false;
  60. commSubmit("UIJ010090-service", "success", "glueAction.do");
  61. model.copyNode("/root/suppwgt" , "/root/resData/suppwgt_VO");
  62. model.duplicate("/root/initData" , "/root/resData/InitSpecResult_VO");//交付条件标准号初始化
  63. model.copyNode("/root/SpecResult" , "/root/resData/InitSpecResult_VO");
  64. model.copyNode("/root/tsize" , "/root/resData/inittsize_VO");
  65. InitParamsEE();
  66. model.refresh();
  67. }
  68. //调用公共的初始化方法获得登录用户名
  69. function InitParams(node) {
  70. if (typeof node == "undefined" && typeof node != "object") return;
  71. model.removenode("/root/initData/rcvInfo");
  72. model.makeNode("/root/initData/rcvInfo");
  73. var nodeList = node.childNodes;
  74. node = model.instances(0).selectSingleNode("/root/initData/rcvInfo");
  75. for (var i = 0; i < nodeList.length; i++)
  76. node.appendChild(nodeList.item(i));
  77. }
  78. function InitParamsEE(){
  79. commSubmit("UIJ010040-service","success","glueAction.do");
  80. model.copyNode("/root/Trainno" , "/root/resData/Trainno_VO");
  81. model.refresh();
  82. }
  83. function excelExport(){
  84. return datagrid2;
  85. }
  86. function find(){
  87. commSendReq("/root/formData");
  88. commSubmit("UIJ010090-service","find","glueAction.do");
  89. commAppendData("/root/grid1/FAHUO_RESULT_VO","/root/resData/FAHUO_RESULT_VO");
  90. datagrid1.refresh();
  91. var COIL_CNT = null;
  92. var COIL_WGT = null;
  93. var CUR_LOAD_LOC = null;
  94. var nodeSet1 = datagrid1.nodeset;
  95. for(var i = datagrid1.fixedRows ; i < datagrid1.rows ; i++){
  96. datagrid1.valueMatrix(i,datagrid1.colRef("CHK")) = i-1;
  97. var CNT = datagrid1.valueMatrix(i,datagrid1.colRef("CNT"));
  98. var ACT_WGT = datagrid1.valueMatrix(i,datagrid1.colRef("ACT_WGT"));
  99. //求和
  100. COIL_CNT =Number(COIL_CNT) + Number(CNT);
  101. COIL_WGT =Number(COIL_WGT) + Number(ACT_WGT);
  102. }
  103. //没有值的情况下,不能赋值
  104. if(COIL_CNT == null || COIL_WGT == null){
  105. model.setValue("/root/sumData/SUM_COILRST_CNT",0);
  106. model.setValue("/root/sumData/SUM_COILRST_WGT",0);
  107. model.refresh();
  108. }else{
  109. model.setValue("/root/sumData/SUM_COILRST_CNT",COIL_CNT);
  110. model.setValue("/root/sumData/SUM_COILRST_WGT",COIL_WGT/1000);
  111. model.refresh();
  112. }
  113. for(j=0;j<datagrid1.rows;j++){
  114. CUR_LOAD_LOC = model.getValue(nodeSet1+"["+j+"]/CUR_LOAD_LOC");
  115. if(CUR_LOAD_LOC == "YZ"){
  116. datagrid1.rowStyle((j+1), "data", "background-color") = "#ffff99";
  117. }else{
  118. datagrid1.rowStyle((j+1), "data", "background-color") = "#ffffff";
  119. }
  120. }
  121. color_status();
  122. datagrid1.refresh();
  123. }
  124. function color_status()
  125. {
  126. for(var i = 2;i<=datagrid1.rows-1;i++){
  127. var v_wgt= datagrid1.valueMatrix(i,datagrid1.colRef("WGT_DEC_RST"));
  128. if(v_wgt == "2" ) {
  129. datagrid1.rowStyle(i , "data" , "color") = "#ff0000";//
  130. }
  131. }
  132. }
  133. function getcar(){
  134. //这里保存的作用是把车厢号和排车顺序号更新到钢卷公共表,
  135. //并且改变TBJ01_SHIP_DIR的状态,从03-04,物料暂时不变SFB
  136. //并且还需要改变tbh02_coil_cmm中的SHIP_PROG_CD
  137. //清空发送接点
  138. model.removenode("/root/reqData");
  139. model.makeNode("/root/reqData");
  140. //清空排车顺序节点
  141. model.removenode("/root/init/TRAIN_STEP_NO");
  142. model.makeNode("/root/init/TRAIN_STEP_NO");
  143. //把整个datagrid1中的数据发送到保存类中
  144. //这里因为改变了行数据,所以不用设置行状态
  145. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts1");
  146. model.duplicate("/root/reqData","/root/searchData/DLIV_TP");
  147. commSubmit("UIJ010041-service","getcar","glueAction.do");
  148. }
  149. function saveExcelScript(sDGridName, sExcelSheetName, saveType) {
  150. var sExcelName = window.fileDialog("save", ",", false, "", "xls", "Excel File(*.xls)|*.xls");
  151. if ( sExcelName == "" ) {
  152. return;
  153. }
  154. //var sCSVName = "C:\\TFSmartUpdater\\" + sExcelName.lastIndexOf(".") +".csv";
  155. var sCSVName = sExcelName +".csv";
  156. //alert("sExcelName = ["+ sExcelName +"]\nsCSVName = ["+ sCSVName + "]");
  157. eval(sDGridName).saveText(sCSVName, "\n", ",", '\:', true); //DataGrid? ??? CSV??? ??
  158. ObjTFExcel.launchNewInstance(0); //Execute EXCEL
  159. ObjTFExcel.createWorkbook(); //Create new Workbook(for example:Sheet1,Sheet2,Sheet3) -- createWorkBook(Excel-TemplateFile)
  160. ObjTFExcel.loadCSV(sCSVName); //Loading Contents, from CSV to Excel
  161. //Setting up EXCEL Layout.
  162. var nRows = sDGridName.rows - sDGridName.fixedRows + 1; //Keep Careful !!!
  163. var nCols = sDGridName.cols;
  164. //Header
  165. //Line 1 : Sheet Title
  166. //行高的设置
  167. //All of the range
  168. ObjTFExcel.fontcolor ( 01, 01, nRows, nCols ) = "#000000" ;
  169. ObjTFExcel.font ( 01, 01, nRows, nCols ) = "SimSun" ;
  170. //取消边框
  171. ObjTFExcel.setBorderColor( 01, 01, nRows, nCols, "#000000") ;
  172. ObjTFExcel.bold ( 01, 01, nRows, nCols ) = true ;
  173. //改变字体大小
  174. ObjTFExcel.fontsize ( 01, 01, nRows, nCols ) = 12 ;
  175. ObjTFExcel.underline ( 01, 01, nRows, nCols ) = 0 ;
  176. ObjTFExcel.valign ( 01, 01, nRows, nCols ) ="middle" ;
  177. //字体居中
  178. ObjTFExcel.halign ( 01, 01, nRows, nCols ) ="center" ;
  179. //Query-Results Data
  180. var iRow = 1; // iRow = HeaderLine + 1;
  181. //这里设置字体的行宽
  182. // for(var i = iRow; i <= nRows; i++ ) {
  183. // if( (i%5) == 1 ) {
  184. // ObjTFExcel.rowHeight( i ) = 60;
  185. // ObjTFExcel.mergeCell( i, 01, i, nCols );
  186. // } else if( (i%5) == 0 ) {
  187. // ObjTFExcel.rowHeight( i ) = 45;
  188. // ObjTFExcel.mergeCell( i, 01, i, nCols );
  189. // } else {
  190. // ObjTFExcel.rowHeight( i ) = 40;
  191. // }
  192. // }
  193. //改变文本格式的方法,未知
  194. //ObjTFExcel.setformat(02,02,02,03,'@');
  195. //设置列的宽度
  196. ObjTFExcel.colwidth ( 01 ) = 5 ;
  197. ObjTFExcel.colwidth ( 02 ) = 10 ;
  198. ObjTFExcel.colwidth ( 03 ) = 20 ;
  199. ObjTFExcel.colwidth ( 04 ) = 10 ;
  200. ObjTFExcel.colwidth ( 05 ) = 15 ;
  201. ObjTFExcel.colwidth ( 06 ) = 10 ;
  202. ObjTFExcel.colwidth ( 07 ) = 10 ;
  203. ObjTFExcel.colwidth ( 08 ) = 5 ;
  204. ObjTFExcel.colwidth ( 09 ) = 5 ;
  205. ObjTFExcel.colwidth ( 10 ) = 10 ;
  206. // ObjTFExcel.setFormat(iRow, 14, nRows, 14, "yyyy\"-\"mm\"-\"dd\"\" hh\":\"mm\":\"ss\"\";@");
  207. ObjTFExcel.sheetName(1) = sExcelSheetName;
  208. ObjTFExcel.save(sExcelName); //Saving EXCEL
  209. ObjTFExcel.close(); //Closing EXCEL. (You must be closed EXCEL !!!)
  210. window.exec("EXCEL.EXE", sExcelName); //Openning EXCEL
  211. }
  212. ]]>
  213. </script>
  214. <script type="javascript" src="../../js/boaCommon.js"/>
  215. <script type="javascript" src="../../js/bCommon.js"/>
  216. <script type="javascript" src="../../js/boaMsg.js"/>
  217. </xhtml:head>
  218. <xhtml:body style="font-family:宋体; ">
  219. <select1 id="combo1" ref="/root/formData/TRANS_TYPE" appearance="minimal" style="left:220px; top:10px; width:65px; height:20px; ">
  220. <choices>
  221. <item>
  222. <label>火运</label>
  223. <value>T</value>
  224. </item>
  225. <item>
  226. <label>汽运</label>
  227. <value>C</value>
  228. </item>
  229. </choices>
  230. <script type="javascript" ev:event="xforms-value-changed">
  231. <![CDATA[
  232. //find();
  233. ]]>
  234. </script>
  235. </select1>
  236. <input id="input2" ref="/root/formData/DATE" class="input" inputtype="date" style="left:65px; top:10px; width:90px; height:20px; ">
  237. <script type="javascript" ev:event="xforms-value-changed">
  238. <![CDATA[
  239. // if(model.getValue("/root/formData/fromDate") == null || model.getValue("/root/formData/fromDate") == ""){
  240. // model.setValue("/root/formData/fromDate",model.getValue("/root/formData/toDate"));
  241. // input1.refresh();
  242. // }
  243. ]]>
  244. </script>
  245. </input>
  246. <datagrid id="datagrid1" nodeset="/root/grid1/FAHUO_RESULT_VO/FAHUO_RESULT_Row" visibility="visible" caption="选择^计划时间^车牌号^供货商^钢座架类型^预装车号^钢架重量^到站^重量是否合格^收货单位^客户名称^钢种^产品类型^订单厚度^订单宽度^发货数量^重量^发货计划状态^合同号^计划号^是否出口^产线^实际发货时间^出库指示号^铁路运输号^合同性质^装车点^承运单位^是否水运^垛位|选择^计划时间^车牌号^供货商^钢座架类型^预装车号^钢架重量^到站^重量是否合格^收货单位^客户名称^钢种^产品类型^订单厚度^订单宽度^发货数量^重量^发货计划状态^合同号^计划号^是否出口^产线^实际发货时间^出库指示号^铁路运输号^合同性质^装车点^承运单位^是否水运^垛位" colsep="^" colwidth="50, 100, 68, 69, 56, 82, 73, 129, 69, 113, 169, 52, 100, 62, 62, 62, 100, 100, 76, 60, 50, 50, 50, 50, 48, 50, 50, 50, 50, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:45px; width:980px; height:355px; ">
  247. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  248. <col ref="PLANDATE" format="yyyy-mm-dd"/>
  249. <col ref="TRANS_CAR_NO"/>
  250. <col editmode="search" ref="FOR_NAME" type="combo" visibility="hidden" style="text-align:left; background-color:#ffff99; ">
  251. <choices>
  252. <itemset nodeset="/root/SpecResult/InitSpecResult_Row">
  253. <label ref="LABEL"/>
  254. <value ref="VALUE"/>
  255. </itemset>
  256. </choices>
  257. </col>
  258. <col editmode="search" ref="NORM" type="combo" visibility="hidden" style="text-align:left; background-color:#ffff99; ">
  259. <choices>
  260. <itemset nodeset="/root/tsize/inittsize_Row">
  261. <label ref="LABEL"/>
  262. <value ref="VALUE"/>
  263. </itemset>
  264. </choices>
  265. </col>
  266. <col disabled="flase" editmode="input" ref="YZ_CAR_NO" type="combo" style="text-align:left; background-color:#ffff99; ">
  267. <choices>
  268. <itemset nodeset="/root/Trainno/Trainno_Row">
  269. <label ref="LABEL"/>
  270. <value ref="VALUE"/>
  271. </itemset>
  272. </choices>
  273. </col>
  274. <col ref="KZ_WGT" type="combo" style="background-color:#ffff99; ">
  275. <choices>
  276. <itemset nodeset="/root/suppwgt/suppwgt_Row">
  277. <label ref="LABEL"/>
  278. <value ref="VALUE"/>
  279. </itemset>
  280. </choices>
  281. </col>
  282. <col ref="STATIONCODE"/>
  283. <col ref="WGT_DEC_RST"/>
  284. <col ref="INCEPTCORPCODE"/>
  285. <col ref="BUYERCODE"/>
  286. <col ref="SPEC_STL_GRD"/>
  287. <col ref="PRODNM_CD"/>
  288. <col ref="INSTR_COIL_THK"/>
  289. <col ref="INSTR_COIL_WTH"/>
  290. <col ref="CNT"/>
  291. <col ref="ACT_WGT"/>
  292. <col ref="SHIP_PROG_CD"/>
  293. <col editable="false" ref="PACTNO" type="input"/>
  294. <col editable="false" ref="ORDERNO" type="input"/>
  295. <col editable="false" ref="ISOUT" type="input"/>
  296. <col editable="false" ref="PL" type="input"/>
  297. <col editable="false" ref="REALSENDTIME" type="input"/>
  298. <col editable="false" ref="DLIV_DIRNO" type="input"/>
  299. <col editable="false" ref="TRAIN_DLIVNO" type="input"/>
  300. <col editable="false" ref="TRANSTYPE" type="input"/>
  301. <col editable="false" ref="LOADPOSITION" type="input"/>
  302. <col editable="false" ref="MOTORMANNAME" type="input"/>
  303. <col editable="false" ref="BY_SEA_YN" type="input"/>
  304. <col editable="false" ref="CUR_LOAD_LOC" type="input"/>
  305. <script type="javascript" ev:event="ondblclick">
  306. <![CDATA[
  307. if(combo1.value == "T")return;
  308. //双击事件获取具体计划下面的钢卷信息
  309. model.removenode("/root/reqData");
  310. model.makeNode("/root/reqData");
  311. var row = datagrid1.row;
  312. var DLIV_DIRNO = datagrid1.valueMatrix(row , datagrid1.colRef("DLIV_DIRNO"));//位置
  313. // var nodeSet1 = datagrid1.nodeset
  314. // var rw ;
  315. // for(var i=0;i<datagrid1.selectedRows;i++){
  316. // rw = datagrid1.selectedRow(i);
  317. // //把选中行的数字正确的显示
  318. // rw = parseInt(rw-1);
  319. // }
  320. //
  321. // var DLIV_DIRNO = model.getValue(nodeSet1+"["+rw+"]/DLIV_DIRNO");
  322. model.setValue("/root/DLIV_DIRNO",DLIV_DIRNO);
  323. model.duplicate("/root/reqData","/root/DLIV_DIRNO");
  324. commSubmit("UIJ010090-service","DLIV_COIL","glueAction.do");
  325. commAppendData("/root/datagrid1/DLIV_COIL_VO","/root/resData/DLIV_COIL_VO");
  326. model.refresh();
  327. ]]>
  328. </script>
  329. </datagrid>
  330. <caption id="caption1" class="cell" style="left:0px; top:10px; width:65px; height:20px; ">发货日期</caption>
  331. <caption id="caption2" class="cell" style="left:160px; top:10px; width:60px; height:20px; ">发货方式</caption>
  332. <button id="button1" style="left:910px; top:25px; width:70px; height:20px; background-image:../../images/btn_excel.gif; ">
  333. <caption>打印</caption>
  334. <script type="javascript" ev:event="DOMActivate">
  335. <![CDATA[
  336. window.print();
  337. ]]>
  338. </script>
  339. </button>
  340. <datagrid id="datagrid2" nodeset="/root/datagrid1/DLIV_COIL_VO/DLIV_COIL_Row" caption="选择^钢卷号^牌号^成品规格^订单规格^卷重(磅重)^合同号^订单号^车号^扣重^垛位^到站^收货单位^合同单位^综合判定等级^发货进程状态^发运指示号^炉号^冶炼时间^轧制时间^钢卷颜色备注^标准^ 产品类型^运输方式" colsep="^" colwidth="100, 100, 90, 100, 100, 100, 100, 100, 68, 48, 100, 100, 100, 100, 100, 87, 100, 100, 100, 100, 100, 200, 100, 100" frozencols="1" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:400px; width:980px; height:205px; ">
  341. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  342. <col ref="OLD_SAMPL_NO" style="text-align:left; "/>
  343. <col ref="SPEC_STL_GRD" style="text-align:left; "/>
  344. <col ref="T_W" style="text-align:right; "/>
  345. <col ref="IT_IW" style="text-align:right; "/>
  346. <col ref="ACT_WGT" style="text-align:right; "/>
  347. <col ref="ORD_NO" style="text-align:left; "/>
  348. <col ref="ORD_SEQ" style="text-align:left; "/>
  349. <col ref="CARNO" style="text-align:left; "/>
  350. <col ref="KZ" style="text-align:left; "/>
  351. <col ref="CUR_LOAD_LOC" style="text-align:left; background-color:#ffffff; "/>
  352. <col ref="DEST_PCD_DESC" style="text-align:left; "/>
  353. <col ref="ORD_NM" style="text-align:left; "/>
  354. <col ref="CUST_NM" style="text-align:left; "/>
  355. <col ref="TOT_DEC_GRD" style="text-align:left; "/>
  356. <col ref="CUR_PROG_CD" style="text-align:left; "/>
  357. <col ref="DLIV_DIRNO" style="text-align:left; "/>
  358. <col ref="CHARGE_NO" style="text-align:left; "/>
  359. <col ref="CAS_END_DTIME" style="text-align:left; "/>
  360. <col ref="MILL_DTIME" format="yyyy-mm-dd hh:nn:ss" style="text-align:left; "/>
  361. <col ref="HCOLOUR_REM" style="text-align:left; "/>
  362. <col disabled="false" ref="SPEC_ABBSYM" type="input" style="text-align:left; "/>
  363. <col ref="PRODNM_CD" style="text-align:left; "/>
  364. <col ref="DLIV_TP"/>
  365. </datagrid>
  366. <caption id="caption10" class="cell" style="left:730px; top:25px; width:70px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">重量合计</caption>
  367. <caption id="caption11" style="left:710px; top:26px; width:30px; height:20px; font-weight:bold; ">卷</caption>
  368. <caption id="caption12" style="left:880px; top:25px; width:20px; height:20px; font-weight:bold; ">吨</caption>
  369. <output id="output1" ref="/root/sumData/SUM_COILRST_CNT" style="left:650px; top:25px; width:60px; height:20px; text-align:center; "/>
  370. <caption id="caption9" class="cell" style="left:580px; top:25px; width:70px; height:20px; font-weight:bold; background-color:#ffcc00; border-color:#000000; ">卷数合计</caption>
  371. <output id="output2" ref="/root/sumData/SUM_COILRST_WGT" style="left:800px; top:25px; width:80px; height:20px; text-align:center; "/>
  372. <button id="button2" style="left:515px; top:25px; width:60px; height:20px; background-color:#c0c0c0; ">
  373. <caption>预装车</caption>
  374. <script type="javascript" ev:event="DOMActivate">
  375. <![CDATA[
  376. var answer = window.alert("预装车前请输入钢架重量与车号,确定进行预装?" ,"Conform", 1 | 32);
  377. if( answer == 2 )
  378. {
  379. return;
  380. }
  381. //双击事件获取具体计划下面的钢卷信息
  382. model.removenode("/root/reqData");
  383. model.makeNode("/root/reqData");
  384. //判断,没有选择的情况不能进行保存
  385. var nodeSet2 = datagrid2.nodeset;
  386. var mark = "N";
  387. var DLIV_TP = null;
  388. for(var i=0;i<datagrid2.rows;i++){
  389. var chk = model.getValue(nodeSet2+"["+i+"]/CHK");
  390. DLIV_TP = model.getValue(nodeSet2+"["+i+"]/DLIV_TP");
  391. if(chk != null && chk == "Y"){
  392. if(DLIV_TP == "T"){
  393. //存在一个没有选择的都不能进行预装车
  394. mark = "Y";
  395. }else{
  396. mark = "C";
  397. }
  398. }
  399. }
  400. if(mark == "Y"){
  401. commMultiUpdate(datagrid2,"/root/reqData","A",true,"rowStatus");
  402. var nodeSet1 = datagrid1.nodeset;
  403. var rw = 0;
  404. //获取选中的行,取出相应的信息
  405. for(var i=0;i<datagrid1.selectedRows;i++){
  406. rw = datagrid1.selectedRow(i);
  407. //把选中行的数字正确的显示
  408. //rw = parseInt(rw-1);
  409. }
  410. //这里加入登录用户名,会不会与已有的initData冲突
  411. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  412. //model.makeValue("/root/CARNO",datagrid1.valueMatrix(rw, datagrid1.colRef("YZ_CAR_NO")));
  413. //model.makeValue("/root/KZ",datagrid1.valueMatrix(rw, datagrid1.colRef("KZ_WGT")));
  414. //model.duplicate("/root/reqData","/root/CARNO");
  415. //model.duplicate("/root/reqData","/root/KZ");
  416. commSubmit("UIJ010090-service","YZ","glueAction.do");
  417. commAppendData("/root/datagrid1/DLIV_COIL_VO","/root/resData/DLIV_COIL_VO");
  418. model.refresh();
  419. find();
  420. }else if(mark == "C"){
  421. alert(" 汽车运输的情况不能进行预装操作,请确认后再进行预装车操作! ");
  422. return;
  423. }else{
  424. alert(" 存在整车没有选择的计划,请确认后再进行预装车操作! ");
  425. return;
  426. }
  427. ]]>
  428. </script>
  429. </button>
  430. <object id="ObjTFExcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" style="left:820px; top:0px; width:155px; height:19px; "/>
  431. <caption id="caption14" class="cell" style="left:290px; top:10px; width:55px; height:20px; font-weight:bold; border-color:#000000; ">合同号</caption>
  432. <input id="input1" ref="/root/formData/ORD_NO" maxlength="12" style="left:345px; top:10px; width:100px; height:20px; "/>
  433. <button id="button3" style="left:450px; top:25px; width:60px; height:20px; background-color:#c0c0c0; ">
  434. <caption>导出上</caption>
  435. <script type="javascript" ev:event="DOMActivate">
  436. <![CDATA[
  437. //导出EXCEL方法
  438. saveExcelScript(datagrid1,"Sheet1");
  439. ]]>
  440. </script>
  441. </button>
  442. <button id="button4" style="left:745px; top:0px; width:70px; height:20px; background-image:../../images/btn_excel.gif; ">
  443. <caption>确认</caption>
  444. <script type="javascript" ev:event="DOMActivate">
  445. <![CDATA[
  446. var shipDirNOs = "";
  447. for(var i = datagrid1.fixedRows ; i < datagrid1.rows + datagrid1.fixedRows -1 ; i++){
  448. if(datagrid1.valueMatrix(i,datagrid1.colRef("CHK")) == "Y"){
  449. shipDirNOs = shipDirNOs + datagrid1.valueMatrix(i,datagrid1.colRef("DLIV_DIRNO")) + "|";
  450. }
  451. }
  452. //双击事件获取具体计划下面的钢卷信息
  453. model.removenode("/root/reqData");
  454. model.makeNode("/root/reqData");
  455. model.setValue("/root/DLIV_DIRNO",shipDirNOs);
  456. model.duplicate("/root/reqData","/root/DLIV_DIRNO");
  457. commSubmit("UIJ010090-service","DLIV_COIL2","glueAction.do");
  458. commAppendData("/root/datagrid1/DLIV_COIL_VO","/root/resData/DLIV_COIL_VO");
  459. model.refresh();
  460. ]]>
  461. </script>
  462. </button>
  463. <button id="button6" visibility="hidden" style="left:615px; top:0px; width:50px; height:20px; ">
  464. <caption>button6</caption>
  465. <script type="javascript" ev:event="onclick">
  466. <![CDATA[
  467. find();
  468. ]]>
  469. </script>
  470. </button>
  471. <button id="button7" visibility="hidden" style="left:355px; top:30px; width:70px; height:20px; ">
  472. <caption>导出EXCEL</caption>
  473. <script type="javascript" ev:event="DOMActivate">
  474. <![CDATA[
  475. //saveExcelScript(datagrid1, "Sheet1");
  476. if(datagrid1.rows<=2){
  477. window.alert("无数据源,请先查询.", "提示");
  478. return;
  479. }
  480. //var jsonMerges="[{'name':'y','x':0,'y':0,'cnt':2},{'name':'x','x':2,'y':0,'cnt':4},{'name':'x','x':6,'y':0,'cnt':4},{'name':'x','x':10,'y':0,'cnt':4},{'name':'x','x':14,'y':0,'cnt':4},{'name':'x','x':18,'y':0,'cnt':4}]";
  481. var jsonMerges="[{'name':'y','x':0,'y':0,'cnt':1}]";
  482. var _cnt = datagrid1.selectedRows;
  483. commonOutExcel('fayun',datagrid1.caption,'/root/grid1/FAHUO_RESULT_VO','UIH090060-service',jsonMerges,'xls');
  484. ]]>
  485. </script>
  486. </button>
  487. <button id="button8" style="left:680px; top:0px; width:60px; height:20px; background-color:#00ffff; ">
  488. <caption>保存车号</caption>
  489. <script type="javascript" ev:event="DOMActivate">
  490. <![CDATA[
  491. //双击事件获取具体计划下面的钢卷信息
  492. model.removenode("/root/reqData");
  493. model.makeNode("/root/reqData");
  494. //判断,没有选择的情况不能进行保存
  495. var nodeSet1 = datagrid1.nodeset;
  496. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStatus");
  497. var nodeSet1 = datagrid1.nodeset;
  498. var rw = 0;
  499. //获取选中的行,取出相应的信息
  500. for(var i=0;i<datagrid1.selectedRows;i++){
  501. rw = datagrid1.selectedRow(i);
  502. //把选中行的数字正确的显示
  503. //rw = parseInt(rw-1);
  504. }
  505. //这里加入登录用户名,会不会与已有的initData冲突
  506. model.makeValue("/root/reqData/REG_ID",model.getValue("/root/initData/rcvInfo/REG_ID"));
  507. model.makeValue("/root/CARNO",datagrid1.valueMatrix(rw, datagrid1.colRef("YZ_CAR_NO")));
  508. model.makeValue("/root/KZ",datagrid1.valueMatrix(rw, datagrid1.colRef("KZ_WGT")));
  509. model.duplicate("/root/reqData","/root/CARNO");
  510. model.duplicate("/root/reqData","/root/KZ");
  511. commSubmit("UIJ010090-service","save","glueAction.do");
  512. commAppendData("/root/datagrid1/DLIV_COIL_VO","/root/resData/DLIV_COIL_VO");
  513. model.refresh();
  514. ]]>
  515. </script>
  516. </button>
  517. <button id="button9" visibility="visible" style="left:450px; top:0px; width:125px; height:20px; font-weight:bold; text-align:center; background-color:#33cccc; border-color:#000000; border-style:solid; ">
  518. <caption>轨道拉取</caption>
  519. <script type="javascript" ev:event="onclick">
  520. <![CDATA[
  521. getcar();
  522. InitParamsEE();
  523. ]]>
  524. </script>
  525. </button>
  526. </xhtml:body>
  527. </xhtml:html>