UIJ010060.xrw 99 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917
  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. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <formData>
  10. <ShipProgCd/>
  11. <ShipDirNo/>
  12. <DlivDirNo/>
  13. <DlivType/>
  14. <CoilProgCd>%</CoilProgCd>
  15. <CAR_NO/>
  16. </formData>
  17. <gridData1/>
  18. <LOVData>
  19. <ShipDirNo/>
  20. <DlivDirNo/>
  21. <DlivType/>
  22. </LOVData>
  23. <resData/>
  24. <reqData/>
  25. <sumData>
  26. <SUM_ORD_WGT/>
  27. <SUM_NEED_WGT/>
  28. <SUM_COIL_CNT/>
  29. <SUM_TOT_SLAB_WGT/>
  30. <SUM_SLABRST_CNT/>
  31. <SUM_SLABRST_WGT/>
  32. <SUM_COILRST_WGT/>
  33. </sumData>
  34. <gridData2/>
  35. <EXCELHead>
  36. <ListResult_1_VO>
  37. <ListResult_1_Row>
  38. <col1>新余钢铁股份有限公司钢卷发货明细单(火车)</col1>
  39. <col2/>
  40. <col3/>
  41. <col4/>
  42. <col5/>
  43. <col6/>
  44. <col7/>
  45. <col8/>
  46. </ListResult_1_Row>
  47. <ListResult_1_Row>
  48. <col1>合 同 号:</col1>
  49. <col2/>
  50. <col3/>
  51. <col4>发货单号:</col4>
  52. <col5/>
  53. <col6/>
  54. <col7/>
  55. <col8/>
  56. </ListResult_1_Row>
  57. <ListResult_1_Row>
  58. <col1>用户编码:</col1>
  59. <col2/>
  60. <col3/>
  61. <col4>发货日:</col4>
  62. <col5/>
  63. <col6/>
  64. <col7/>
  65. <col8/>
  66. </ListResult_1_Row>
  67. <ListResult_1_Row>
  68. <col1>用户名称:</col1>
  69. <col2/>
  70. <col3/>
  71. <col4>到站:</col4>
  72. <col5/>
  73. <col6>制表:</col6>
  74. <col7/>
  75. <col8/>
  76. </ListResult_1_Row>
  77. <ListResult_1_Row>
  78. <col1>计划单号:</col1>
  79. <col2/>
  80. <col3/>
  81. <col4>车号:</col4>
  82. <col5/>
  83. <col6>收货单位:</col6>
  84. <col7/>
  85. <col8/>
  86. </ListResult_1_Row>
  87. <ListResult_1_Row>
  88. <col1>发货备注:</col1>
  89. <col2/>
  90. <col3/>
  91. <col4>产品名称:</col4>
  92. <col5/>
  93. <col6>标准:</col6>
  94. <col7/>
  95. <col8/>
  96. </ListResult_1_Row>
  97. <ListResult_1_Row>
  98. <col1>炉号</col1>
  99. <col2>钢号</col2>
  100. <col3>规格(厚*宽)mm</col3>
  101. <col4>重量(吨)</col4>
  102. <col5>钢卷号</col5>
  103. <col6>等级</col6>
  104. <col7>性能</col7>
  105. <col8>草支垫</col8>
  106. </ListResult_1_Row>
  107. </ListResult_1_VO>
  108. </EXCELHead>
  109. <EXCELHeadCAR>
  110. <ListResult_1_VO>
  111. <ListResult_1_Row>
  112. <col1>新余钢铁股份有限公司钢卷发货明细单(汽车)</col1>
  113. <col2/>
  114. <col3/>
  115. <col4/>
  116. <col5/>
  117. <col6/>
  118. <col7/>
  119. <col8/>
  120. </ListResult_1_Row>
  121. <ListResult_1_Row>
  122. <col1>合 同 号:</col1>
  123. <col2/>
  124. <col3/>
  125. <col4>发货单号:</col4>
  126. <col5/>
  127. <col6/>
  128. <col7/>
  129. <col8/>
  130. </ListResult_1_Row>
  131. <ListResult_1_Row>
  132. <col1>用户编码:</col1>
  133. <col2/>
  134. <col3/>
  135. <col4>发货日:</col4>
  136. <col5/>
  137. <col6/>
  138. <col7/>
  139. <col8/>
  140. </ListResult_1_Row>
  141. <ListResult_1_Row>
  142. <col1>用户名称:</col1>
  143. <col2/>
  144. <col3/>
  145. <col4>到站:</col4>
  146. <col5/>
  147. <col6>制表:</col6>
  148. <col7/>
  149. <col8/>
  150. </ListResult_1_Row>
  151. <ListResult_1_Row>
  152. <col1>计划单号:</col1>
  153. <col2/>
  154. <col3/>
  155. <col4>车号:</col4>
  156. <col5/>
  157. <col6>收货单位:</col6>
  158. <col7/>
  159. <col8/>
  160. </ListResult_1_Row>
  161. <ListResult_1_Row>
  162. <col1>发货备注:</col1>
  163. <col2/>
  164. <col3/>
  165. <col4>产品名称:</col4>
  166. <col5/>
  167. <col6>标准:</col6>
  168. <col7/>
  169. <col8/>
  170. </ListResult_1_Row>
  171. <ListResult_1_Row>
  172. <col1>炉号</col1>
  173. <col2>钢号</col2>
  174. <col3>规格(厚*宽)mm</col3>
  175. <col4>重量(吨)</col4>
  176. <col5>钢卷号</col5>
  177. <col6>等级</col6>
  178. <col7>性能</col7>
  179. <col8>草支垫</col8>
  180. </ListResult_1_Row>
  181. </ListResult_1_VO>
  182. </EXCELHeadCAR>
  183. <WK>
  184. <ENTRY_SHIFT/>
  185. <ENTRY_GROUP/>
  186. <ENTRY_REG/>
  187. <ENTRY_DTIME/>
  188. <ROUTE/>
  189. </WK>
  190. <CZD/>
  191. <RegResultd>
  192. <InitRegResultd_Row>
  193. <LABEL/>
  194. <VALUE/>
  195. </InitRegResultd_Row>
  196. </RegResultd>
  197. </root>
  198. </instance>
  199. <script type="javascript" ev:event="xforms-ready">
  200. <![CDATA[
  201. if(window.parent==null) Init();
  202. ]]>
  203. </script>
  204. <script type="javascript" src="../../js/boaCommon.js"/>
  205. <script type="javascript" src="../../js/boaMsg.js"/>
  206. <script type="javascript" src="../../js/mesCommon.js"/>
  207. <script type="javascript" src="../../js/dCommon.js"/>
  208. <script type="javascript" ev:event="xforms-ready">
  209. <![CDATA[
  210. ]]>
  211. </script>
  212. <script type="javascript">
  213. <![CDATA[
  214. //1、获取用户登录信息,只能在页面初始化函数中调用
  215. function InitParams(node)
  216. {
  217. if (typeof node == "undefined" && typeof node != "object") return;
  218. model.removenode("/root/initData/rcvInfo");
  219. model.makeNode("/root/initData/rcvInfo");
  220. var nodeList = node.childNodes;
  221. for (var i = 0; i < nodeList.length; i++)
  222. model.instances(0).selectSingleNode("/root/initData/rcvInfo").appendChild(nodeList.item(i));
  223. }
  224. //2. 页面初始化函数(必须)
  225. function Init(node)
  226. {
  227. InitParams(node); // 用于设置节点:/root/initData/rcvInfo,获取用户登录信息
  228. // 在程序中会重建该节点,最好不要重名
  229. // 函数 InitParams 在 mesCommon.js 中,仅在需要使用登录用户信息时调用
  230. commSubmit("UIB010278-service", "success", "glueAction.do");
  231. model.copyNode("/root/RegResultd" , "/root/resData/InitRegResultd_VO");
  232. model.refresh();
  233. //...
  234. }
  235. //3、页面标题
  236. function setTitle()
  237. {
  238. return "发货管理->发货处理->发货实绩录入与发行装车明细"; // 如:return "进程管理 >> 订单进程现况查询";
  239. }
  240. function lpad(str, len, fill) {
  241. if (fill == null) fill = " ";
  242. str = str + "";
  243. while( str.length < len ) {
  244. str = fill + str;
  245. }
  246. return str;
  247. }
  248. function calculateSummary() {
  249. //暂时系统没有做处理
  250. model.setXPathValue("/root/sumData/SUM_ORD_WGT" ,"sum(/root/gridData1/ListResult_1_VO/ListResult_1_Row/ORD_WGT )");
  251. model.setXPathValue("/root/sumData/SUM_NEED_WGT" ,"sum(/root/gridData1/ListResult_1_VO/ListResult_1_Row/NEED_WGT )");
  252. model.setXPathValue("/root/sumData/SUM_COIL_CNT" ,"sum(/root/gridData1/ListResult_1_VO/ListResult_1_Row/COIL_CNT )");
  253. model.setXPathValue("/root/sumData/SUM_TOT_SLAB_WGT","sum(/root/gridData1/ListResult_1_VO/ListResult_1_Row/TOT_SLAB_WGT )");
  254. model.setXPathValue("/root/sumData/SUM_SLABRST_CNT" ,"count(/root/gridData2/ListResult_2_VO/ListResult_2_Row )");
  255. model.setXPathValue("/root/sumData/SUM_SLABRST_WGT" ,"sum(/root/gridData2/ListResult_2_VO/ListResult_2_Row/SLAB_WGT )");
  256. model.setXPathValue("/root/sumData/SUM_COILRST_WGT" ,"sum(/root/gridData2/ListResult_2_VO/ListResult_2_Row/COIL_WGT )");
  257. }
  258. function find() {
  259. model.removeNodeset(dg1.nodeset);
  260. model.refresh();
  261. model.setValue("/root/formData/CoilProgCd","%");
  262. if( ShipProgCd.value == "" && DlivDirNo.value == "" ){
  263. alert(" 运送指示号为空时,状态区分必须选择,否则将导致数据量过大!! ");
  264. return;
  265. }
  266. if( ShipProgCd.value == "06" ){
  267. model.setValue("/root/formData/CoilProgCd","SFB");
  268. }
  269. if( (ShipProgCd.value == "07" || ShipProgCd.value == "08" || ShipProgCd.value == "09") && DlivDirNo.value == ""){
  270. model.setValue("/root/formData/CoilProgCd","SFF");
  271. //这里加入出库时间条件,减少数据量
  272. if(model.getValue("/root/WK/ENTRY_DTIME") == ""){
  273. alert(" 运送指示号为空时,出库时间需要选择,否则将导致数据量过大。不便于查找!!! ");
  274. return;
  275. }
  276. }
  277. commSendReq("/root/formData");
  278. model.duplicate("/root/reqData","/root/WK/ENTRY_DTIME");
  279. commSubmit("UIJ010060-service" ,"find" ,"glueAction.do" );
  280. commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO");
  281. //calculateSummary();
  282. model.refresh();
  283. dg1.isSelected( dg1.fixedRows ) = true;
  284. dg1.refresh();
  285. }
  286. function getNowFormatDate() {
  287. // var date = new Date();
  288. // var seperator1 = "-";
  289. // var nyear = date.getFullYear();
  290. // var month = date.getMonth() + 1;
  291. //
  292. // var strDate = date.getDate();
  293. // if (month >= 1 && month <= 9) {
  294. // month = "0" + month;
  295. // }
  296. // if (strDate >= 0 && strDate <= 9) {
  297. // strDate = "0" + strDate;
  298. // }
  299. // var currentdate =month+strDate;
  300. // var currentdate = nyear+currentdate;
  301. var currentdate = commCurDate();
  302. return currentdate;
  303. }
  304. function save() {
  305. model.removeNodeset("/root/reqData");
  306. model.makeNode("/root/reqData");
  307. //这里判断不为空
  308. if(model.getValue("/root/WK/ENTRY_SHIFT") == ""){
  309. alert(" 出库班次信息不能为空,请选择相应的出库班次! ");
  310. return;
  311. }
  312. if(model.getValue("/root/WK/ENTRY_GROUP") == ""){
  313. alert(" 出库班组信息不能为空,请选择相应的出库班组信息!! ");
  314. return;
  315. }
  316. if(model.getValue("/root/WK/ENTRY_REG") == ""){
  317. alert(" 出库人信息不能为空,请选择相应的出库人信息!! ");
  318. return;
  319. }
  320. if(model.getValue("/root/WK/ENTRY_DTIME") == ""){
  321. alert(" 出库时间信息不能为空,请输入相应的出库时间信息!! ");
  322. return;
  323. }
  324. if(model.getValue("/root/CZD") == ""){
  325. alert(" 草支垫重量必须输入,请输入相应的草支垫重量 ");
  326. return;
  327. }
  328. var tmpdate = getNowFormatDate();
  329. var inputdate =model.getValue("/root/WK/ENTRY_DTIME") ;
  330. //model.setValue("/root/WK/ENTRY_DTIME",tmpdate);
  331. if(inputdate>tmpdate)
  332. {
  333. alert("所输出库日期"+"("+inputdate+")"+"晚于当前日期"+"("+tmpdate+")"+",禁止发运,请重新输入!");
  334. return;
  335. }
  336. if(inputdate!=tmpdate)
  337. {
  338. //if(commComfirmBox("所输出库日期"+"("+inputdate+")"+"与当前日期"+"("+tmpdate+")"+"不一致,是否继续出库?","提示")=="0") return;
  339. alert("所输出库日期"+"("+inputdate+")"+"不等于当前日期"+"("+tmpdate+")"+",禁止发运,请重新输入!");
  340. return;
  341. }
  342. var CZDWGT= model.getValue("/root/CZD") ;
  343. var CZDflag= 0;
  344. //判断卷重和车号不为空
  345. var nodeSet1 = dg1.nodeset;
  346. var cntcoil=0;
  347. for(var j=1;j<dg1.rows;j++){
  348. var chk = model.getValue(nodeSet1+"["+j+"]/CHK");
  349. if(chk == "Y"){
  350. var COIL_WGT = model.getValue(nodeSet1+"["+j+"]/COIL_WGT");
  351. var TRANS_CAR_NO = model.getValue(nodeSet1+"["+j+"]/TRANS_CAR_NO");
  352. var YSFS = model.getValue(nodeSet1+"["+j+"]/DLIV_TP_DESC");//运输方式 20230608
  353. var GJ = model.getValue(nodeSet1+"["+j+"]/YZCS_REG");//钢架重量
  354. if(COIL_WGT == ""){
  355. alert("第"+j+"行的卷重数据为空,请核对后再点击保存按钮!");
  356. return;
  357. }
  358. if(COIL_WGT == "0"){
  359. alert("第"+j+"行的卷重数据为0,请核对后再点击保存按钮!");
  360. return;
  361. }
  362. if(COIL_WGT.substr(COIL_WGT.length-1) >0){
  363. alert("第"+j+"行的卷重数据为理重,不允许发运,请核对后再点击保存按钮!");
  364. return;
  365. }
  366. if(TRANS_CAR_NO == ""){
  367. alert("第"+j+"行的车号数据为空,请核对后再点击保存按钮!");
  368. return;
  369. }
  370. if(YSFS=="铁路"&&CZDWGT=="0"&&GJ=="")//扣重、火车、钢架都为0的时候做出提示
  371. {
  372. CZDflag=1;
  373. }
  374. cntcoil++;
  375. }
  376. }
  377. if(CZDflag==1){
  378. var isUse_QK = commComfirmBox("本次保存中有火车草垫输入0,请确认是否继续装车?","提示");
  379. if(isUse_QK == "0"){
  380. return;
  381. }
  382. }
  383. if(cntcoil >125){
  384. alert("单次保存卷数超过125卷,请分批保存!");
  385. return;
  386. }
  387. var nRows = 1;
  388. var nCnt = dg1.rows - dg1.fixedRows + 1;
  389. for( var i = dg1.fixedRows ; i <= nCnt ; i++ ) {
  390. //alert( "i = ["+ i +"]\nCHK = ["+ dg1.valueMatrix(i, dg1.colRef("CHK")) +"]\nCOIL_NO = ["+ dg1.valueMatrix(i, dg1.colRef("COIL_NO")) +"]");
  391. if( dg1.valueMatrix(i, dg1.colRef("CHK")) == "Y" && dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD")) == "06" ) {
  392. //如果行选中,并且钢卷公共表中体现行车命令执行完
  393. dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD")) = "07";
  394. //发货指示号
  395. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_DIRNO" , dg1.valueMatrix(i, dg1.colRef("SHIP_DIRNO" )) );
  396. //运输指示号
  397. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DLIV_DIRNO" , dg1.valueMatrix(i, dg1.colRef("DLIV_DIRNO" )) );
  398. //车辆号
  399. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/TRANS_CAR_NO" , dg1.valueMatrix(i, dg1.colRef("TRANS_CAR_NO" )) );
  400. //装车地点
  401. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/GET_ON_PCD" , dg1.valueMatrix(i, dg1.colRef("GET_ON_PCD" )) );
  402. //目的地
  403. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DEST_PCD" , dg1.valueMatrix(i, dg1.colRef("DEST_PCD" )) );
  404. //到站
  405. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DEST_PCD_DESC" , dg1.valueMatrix(i, dg1.colRef("DEST_PCD_DESC" )) );
  406. //收货单位
  407. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_NM" , dg1.valueMatrix(i, dg1.colRef("ORD_NM" )) );
  408. //合同单位
  409. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CUST_NM" , dg1.valueMatrix(i, dg1.colRef("CUST_NM" )) );
  410. //钢卷号
  411. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/OLD_SAMPL_NO" , dg1.valueMatrix(i, dg1.colRef("OLD_SAMPL_NO" )) );
  412. //产品名
  413. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SM_CFNM" , dg1.valueMatrix(i, dg1.colRef("SM_CFNM" )) );
  414. //专用线
  415. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/EXLV_LINE_CD" , dg1.valueMatrix(i, dg1.colRef("EXLV_LINE_CD" )) );
  416. //卸车地点
  417. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/GET_OFF_PCD" , dg1.valueMatrix(i, dg1.colRef("GET_OFF_PCD" )) );
  418. //水运区分
  419. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/BY_SEA_YN" , dg1.valueMatrix(i, dg1.colRef("BY_SEA_YN" )) );
  420. //出发港 这里把编码规则转换成描述便于理解
  421. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DEPARTURE_CD" , dg1.valueMatrix(i, dg1.colRef("DEPARTURE_CD" )) );
  422. //到达港
  423. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ARRIVAL_CD" , dg1.valueMatrix(i, dg1.colRef("ARRIVAL_CD" )) );
  424. //生产钢卷号
  425. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_NO" , dg1.valueMatrix(i, dg1.colRef("COIL_NO" )) );
  426. //综合判定等级
  427. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/TOT_DEC_GRD" , dg1.valueMatrix(i, dg1.colRef("TOT_DEC_GRD" )) );
  428. //钢卷重量
  429. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_WGT" , dg1.valueMatrix(i, dg1.colRef("COIL_WGT" )) );
  430. //钢卷外径
  431. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_OUTDIA" , dg1.valueMatrix(i, dg1.colRef("COIL_OUTDIA" )) );
  432. //钢卷内径
  433. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_INDIA" , dg1.valueMatrix(i, dg1.colRef("COIL_INDIA" )) );
  434. //钢卷厚度
  435. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_THK" , dg1.valueMatrix(i, dg1.colRef("COIL_THK" )) );
  436. //发货清单号码
  437. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_INVNO" , dg1.valueMatrix(i, dg1.colRef("SHIP_INVNO" )) );
  438. //品质保证书
  439. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CRET_NO" , dg1.valueMatrix(i, dg1.colRef("CRET_NO" )) );
  440. //发货时间
  441. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/TRNF_DTIME" , dg1.valueMatrix(i, dg1.colRef("TRNF_DTIME" )) );
  442. //钢卷公共表中的状态字段
  443. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_PROG_CD" , dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD" )) );
  444. //标准钢号
  445. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SPEC_STL_GRD" , dg1.valueMatrix(i, dg1.colRef("SPEC_STL_GRD" )) );
  446. //钢卷公共中的当前状态做前状态使用
  447. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/BEF_PROG_CD" , dg1.valueMatrix(i, dg1.colRef("BEF_PROG_CD" )) );
  448. //状态改变时间
  449. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/BEF_PROG_CD_DTIME" , dg1.valueMatrix(i, dg1.colRef("BEF_PROG_CD_DTIME")) );
  450. //状态改变人
  451. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/BEF_PROG_CD_PGM" , dg1.valueMatrix(i, dg1.colRef("BEF_PROG_CD_PGM" )) );
  452. //合同号
  453. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_NO" , dg1.valueMatrix(i, dg1.colRef("ORD_NO" )) );
  454. //订单号
  455. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_SEQ" , dg1.valueMatrix(i, dg1.colRef("ORD_SEQ" )) );
  456. //运输公司编码
  457. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_COMP_CD" , dg1.valueMatrix(i, dg1.colRef("SHIP_COMP_CD" )) );
  458. //运输公司名称
  459. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_COMP_NM" , dg1.valueMatrix(i, dg1.colRef("SHIP_COMP_NM" )) );
  460. //钢卷状态
  461. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_STAT" , dg1.valueMatrix(i, dg1.colRef("COIL_STAT" )) );
  462. //当前状态 SFF
  463. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CUR_PROG_CD" , dg1.valueMatrix(i, dg1.colRef("CUR_PROG_CD" )) );
  464. //当前状态修改人 UIJ010060
  465. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CUR_PROG_CD_PGM" , dg1.valueMatrix(i, dg1.colRef("CUR_PROG_CD_PGM" )) );
  466. //登录人
  467. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/REG_ID" , model.getValue("/root/initData/rcvInfo/REG_ID") );
  468. //火运汽运标志
  469. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DlivType" , dg1.valueMatrix(i, dg1.colRef("DLIV_TP" )) );
  470. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ShipProgCd" , dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD" )) );
  471. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ShipDirNo" , dg1.valueMatrix(i, dg1.colRef("SHIP_DIRNO" )) );
  472. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DlivDirNo" , dg1.valueMatrix(i, dg1.colRef("DLIV_DIRNO" )) );
  473. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_CD" , dg1.valueMatrix(i, dg1.colRef("ORD_CD" )) );
  474. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CZD_WGT" , "/root/CZD");
  475. nRows++;
  476. }
  477. }
  478. if( nRows > 1 ) {
  479. //这里加入班次、班组、出库人、时间
  480. model.duplicate("/root/reqData","/root/WK/ENTRY_SHIFT");
  481. model.duplicate("/root/reqData","/root/WK/ENTRY_GROUP");
  482. model.duplicate("/root/reqData","/root/WK/ENTRY_REG");
  483. model.duplicate("/root/reqData","/root/WK/ENTRY_DTIME");
  484. model.duplicate("/root/reqData","/root/CZD");
  485. commSubmit("UIJ010060-service" ,"save" ,"glueAction.do" );
  486. commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO");
  487. ShipProgCd.value = "07";
  488. //input6.value = commCurDate();
  489. find() ;
  490. // calculateSummary();
  491. }
  492. model.refresh();
  493. }
  494. function resend() {
  495. model.removeNodeset("/root/reqData");
  496. model.makeNode("/root/reqData");
  497. //判断卷重和车号不为空
  498. var nodeSet1 = dg1.nodeset;
  499. for(var j=1;j<dg1.rows;j++){
  500. var chk = model.getValue(nodeSet1+"["+j+"]/CHK");
  501. if(chk == "Y"){
  502. var COIL_WGT = model.getValue(nodeSet1+"["+j+"]/COIL_WGT");
  503. var TRANS_CAR_NO = model.getValue(nodeSet1+"["+j+"]/TRANS_CAR_NO");
  504. if(COIL_WGT == ""){
  505. alert("第"+j+"行的卷重数据为空,请核对后再点击货运跟踪按钮!");
  506. return;
  507. }
  508. if(TRANS_CAR_NO == ""){
  509. alert("第"+j+"行的车号数据为空,请核对后再点击货运跟踪按钮!");
  510. return;
  511. }
  512. }
  513. }
  514. var nRows = 1;
  515. var nCnt = dg1.rows - dg1.fixedRows + 1;
  516. for( var i = dg1.fixedRows ; i <= nCnt ; i++ ) {
  517. //alert( "i = ["+ i +"]\nCHK = ["+ dg1.valueMatrix(i, dg1.colRef("CHK")) +"]\nCOIL_NO = ["+ dg1.valueMatrix(i, dg1.colRef("COIL_NO")) +"]");
  518. if( dg1.valueMatrix(i, dg1.colRef("CHK")) == "Y" && dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD")) == "08" ) {
  519. //如果行选中,并且钢卷公共表中体现行车命令执行完
  520. dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD")) = "08";
  521. //车辆号
  522. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/TRANS_CAR_NO" , dg1.valueMatrix(i, dg1.colRef("TRANS_CAR_NO" )) );
  523. //运输指示号
  524. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DLIV_DIRNO" , dg1.valueMatrix(i, dg1.colRef("DLIV_DIRNO" )) );
  525. //标准钢号
  526. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SPEC_STL_GRD" , dg1.valueMatrix(i, dg1.colRef("SPEC_STL_GRD" )) );
  527. //钢卷重量
  528. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_WGT" , dg1.valueMatrix(i, dg1.colRef("COIL_WGT" )) );
  529. //发货时间
  530. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/TRNF_DTIME" , dg1.valueMatrix(i, dg1.colRef("TRNF_DTIME" )) );
  531. //收货单位
  532. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_NM" , dg1.valueMatrix(i, dg1.colRef("ORD_NM" )) );
  533. //合同单位
  534. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CUST_NM" , dg1.valueMatrix(i, dg1.colRef("CUST_NM" )) );
  535. //到站
  536. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DEST_PCD_DESC" , dg1.valueMatrix(i, dg1.colRef("DEST_PCD_DESC" )) );
  537. //运输公司编码
  538. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_COMP_CD" , dg1.valueMatrix(i, dg1.colRef("SHIP_COMP_CD" )) );
  539. //运输公司名称
  540. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_COMP_NM" , dg1.valueMatrix(i, dg1.colRef("SHIP_COMP_NM" )) );
  541. //钢卷号
  542. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/OLD_SAMPL_NO" , dg1.valueMatrix(i, dg1.colRef("OLD_SAMPL_NO" )) );
  543. //产品名
  544. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SM_CFNM" , dg1.valueMatrix(i, dg1.colRef("SM_CFNM" )) );
  545. //装车地点
  546. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/GET_ON_PCD" , dg1.valueMatrix(i, dg1.colRef("GET_ON_PCD" )) );
  547. //目的地
  548. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DEST_PCD" , dg1.valueMatrix(i, dg1.colRef("DEST_PCD" )) );
  549. //卸车地点
  550. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/GET_OFF_PCD" , dg1.valueMatrix(i, dg1.colRef("GET_OFF_PCD" )) );
  551. //发货清单号码
  552. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_INVNO" , dg1.valueMatrix(i, dg1.colRef("SHIP_INVNO" )) );
  553. //合同号
  554. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_NO" , dg1.valueMatrix(i, dg1.colRef("ORD_NO" )) );
  555. //订单号
  556. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_SEQ" , dg1.valueMatrix(i, dg1.colRef("ORD_SEQ" )) );
  557. //登录人
  558. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/REG_ID" , model.getValue("/root/initData/rcvInfo/REG_ID") );
  559. //火运汽运标志
  560. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DlivType" , dg1.valueMatrix(i, dg1.colRef("DLIV_TP" )) );
  561. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ShipProgCd" , dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD" )) );
  562. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ShipDirNo" , dg1.valueMatrix(i, dg1.colRef("SHIP_DIRNO" )) );
  563. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DlivDirNo" , dg1.valueMatrix(i, dg1.colRef("DLIV_DIRNO" )) );
  564. nRows++;
  565. }
  566. }
  567. if( nRows > 1 ) {
  568. commSubmit("UIJ010060-service","resendtbb","glueAction.do");
  569. var returnInfoMsg = model.getValue("/root/resData/returnInfoMsg_VO/returnInfoMsg_Row");
  570. //window.alert(returnInfoMsg, "操作信息");
  571. //retrunMessage();
  572. }
  573. model.refresh();
  574. }
  575. //将发货明细数据移送给货运中国系统进行物流跟踪
  576. function sendCargocn() {
  577. model.removeNodeset("/root/reqData");
  578. model.makeNode("/root/reqData");
  579. //判断卷重和车号不为空
  580. var nodeSet1 = dg1.nodeset;
  581. for(var j=1;j<dg1.rows;j++){
  582. var chk = model.getValue(nodeSet1+"["+j+"]/CHK");
  583. if(chk == "Y"){
  584. var COIL_WGT = model.getValue(nodeSet1+"["+j+"]/COIL_WGT");
  585. var TRANS_CAR_NO = model.getValue(nodeSet1+"["+j+"]/TRANS_CAR_NO");
  586. if(COIL_WGT == ""){
  587. alert("第"+j+"行的卷重数据为空,请核对后再点击货运跟踪按钮!");
  588. return;
  589. }
  590. if(TRANS_CAR_NO == ""){
  591. alert("第"+j+"行的车号数据为空,请核对后再点击货运跟踪按钮!");
  592. return;
  593. }
  594. }
  595. }
  596. var nRows = 1;
  597. var nCnt = dg1.rows - dg1.fixedRows + 1;
  598. for( var i = dg1.fixedRows ; i <= nCnt ; i++ ) {
  599. //alert( "i = ["+ i +"]\nCHK = ["+ dg1.valueMatrix(i, dg1.colRef("CHK")) +"]\nCOIL_NO = ["+ dg1.valueMatrix(i, dg1.colRef("COIL_NO")) +"]");
  600. if( dg1.valueMatrix(i, dg1.colRef("CHK")) == "Y" && dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD")) == "08" ) {
  601. //如果行选中,并且钢卷公共表中体现行车命令执行完
  602. dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD")) = "08";
  603. //车辆号
  604. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/TRANS_CAR_NO" , dg1.valueMatrix(i, dg1.colRef("TRANS_CAR_NO" )) );
  605. //运输指示号
  606. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DLIV_DIRNO" , dg1.valueMatrix(i, dg1.colRef("DLIV_DIRNO" )) );
  607. //标准钢号
  608. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SPEC_STL_GRD" , dg1.valueMatrix(i, dg1.colRef("SPEC_STL_GRD" )) );
  609. //钢卷重量
  610. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_WGT" , dg1.valueMatrix(i, dg1.colRef("COIL_WGT" )) );
  611. //发货时间
  612. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/TRNF_DTIME" , dg1.valueMatrix(i, dg1.colRef("TRNF_DTIME" )) );
  613. //收货单位
  614. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_NM" , dg1.valueMatrix(i, dg1.colRef("ORD_NM" )) );
  615. //合同单位
  616. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CUST_NM" , dg1.valueMatrix(i, dg1.colRef("CUST_NM" )) );
  617. //到站
  618. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DEST_PCD_DESC" , dg1.valueMatrix(i, dg1.colRef("DEST_PCD_DESC" )) );
  619. //运输公司编码
  620. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_COMP_CD" , dg1.valueMatrix(i, dg1.colRef("SHIP_COMP_CD" )) );
  621. //运输公司名称
  622. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_COMP_NM" , dg1.valueMatrix(i, dg1.colRef("SHIP_COMP_NM" )) );
  623. //钢卷号
  624. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/OLD_SAMPL_NO" , dg1.valueMatrix(i, dg1.colRef("OLD_SAMPL_NO" )) );
  625. //产品名
  626. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SM_CFNM" , dg1.valueMatrix(i, dg1.colRef("SM_CFNM" )) );
  627. //装车地点
  628. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/GET_ON_PCD" , dg1.valueMatrix(i, dg1.colRef("GET_ON_PCD" )) );
  629. //目的地
  630. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DEST_PCD" , dg1.valueMatrix(i, dg1.colRef("DEST_PCD" )) );
  631. //卸车地点
  632. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/GET_OFF_PCD" , dg1.valueMatrix(i, dg1.colRef("GET_OFF_PCD" )) );
  633. //发货清单号码
  634. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_INVNO" , dg1.valueMatrix(i, dg1.colRef("SHIP_INVNO" )) );
  635. //合同号
  636. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_NO" , dg1.valueMatrix(i, dg1.colRef("ORD_NO" )) );
  637. //订单号
  638. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_SEQ" , dg1.valueMatrix(i, dg1.colRef("ORD_SEQ" )) );
  639. //登录人
  640. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/REG_ID" , model.getValue("/root/initData/rcvInfo/REG_ID") );
  641. //火运汽运标志
  642. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DlivType" , dg1.valueMatrix(i, dg1.colRef("DLIV_TP" )) );
  643. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ShipProgCd" , dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD" )) );
  644. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ShipDirNo" , dg1.valueMatrix(i, dg1.colRef("SHIP_DIRNO" )) );
  645. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DlivDirNo" , dg1.valueMatrix(i, dg1.colRef("DLIV_DIRNO" )) );
  646. nRows++;
  647. }
  648. }
  649. if( nRows > 1 ) {
  650. commSubmit("UIJ010060-service","sendCargocn","glueAction.do");
  651. var returnInfoMsg = model.getValue("/root/resData/returnInfoMsg_VO/returnInfoMsg_Row");
  652. window.alert(returnInfoMsg, "操作信息");
  653. //retrunMessage();
  654. }
  655. model.refresh();
  656. }
  657. //打印的时候,必须改变相应的发货表的发货状态和钢卷公共表的发货状态
  658. //这里保存和打印使用的方法是一样的,只是传入的参数不同
  659. function print(){
  660. model.removeNodeset("/root/reqData");
  661. model.makeNode("/root/reqData");
  662. var nRows = 1;
  663. var nCnt = dg1.rows - dg1.fixedRows + 1;
  664. for( var i = dg1.fixedRows ; i <= nCnt ; i++ ) {
  665. //alert( "i = ["+ i +"]\nCHK = ["+ dg1.valueMatrix(i, dg1.colRef("CHK")) +"]\nCOIL_NO = ["+ dg1.valueMatrix(i, dg1.colRef("COIL_NO")) +"]");
  666. if( dg1.valueMatrix(i, dg1.colRef("CHK")) == "Y" && dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD")) == "07" ) {
  667. //如果行选中,并且钢卷公共表中体现行车命令执行完
  668. //打印的话,必须改为08
  669. dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD")) = "08";
  670. //发货指示号
  671. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_DIRNO" , dg1.valueMatrix(i, dg1.colRef("SHIP_DIRNO" )) );
  672. //运输指示号
  673. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DLIV_DIRNO" , dg1.valueMatrix(i, dg1.colRef("DLIV_DIRNO" )) );
  674. //车辆号
  675. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/TRANS_CAR_NO" , dg1.valueMatrix(i, dg1.colRef("TRANS_CAR_NO" )) );
  676. //装车地点
  677. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/GET_ON_PCD" , dg1.valueMatrix(i, dg1.colRef("GET_ON_PCD" )) );
  678. //目的地
  679. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DEST_PCD" , dg1.valueMatrix(i, dg1.colRef("DEST_PCD" )) );
  680. //到站
  681. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DEST_PCD_DESC" , dg1.valueMatrix(i, dg1.colRef("DEST_PCD_DESC" )) );
  682. //收货单位
  683. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_NM" , dg1.valueMatrix(i, dg1.colRef("ORD_NM" )) );
  684. //合同单位
  685. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CUST_NM" , dg1.valueMatrix(i, dg1.colRef("CUST_NM" )) );
  686. //钢卷号
  687. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/OLD_SAMPL_NO" , dg1.valueMatrix(i, dg1.colRef("OLD_SAMPL_NO" )) );
  688. //产品名
  689. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SM_CFNM" , dg1.valueMatrix(i, dg1.colRef("SM_CFNM" )) );
  690. //专用线
  691. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/EXLV_LINE_CD" , dg1.valueMatrix(i, dg1.colRef("EXLV_LINE_CD" )) );
  692. //卸车地点
  693. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/GET_OFF_PCD" , dg1.valueMatrix(i, dg1.colRef("GET_OFF_PCD" )) );
  694. //水运区分
  695. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/BY_SEA_YN" , dg1.valueMatrix(i, dg1.colRef("BY_SEA_YN" )) );
  696. //出发港 这里把编码规则转换成描述便于理解
  697. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DEPARTURE_CD" , dg1.valueMatrix(i, dg1.colRef("DEPARTURE_CD" )) );
  698. //到达港
  699. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ARRIVAL_CD" , dg1.valueMatrix(i, dg1.colRef("ARRIVAL_CD" )) );
  700. //生产钢卷号
  701. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_NO" , dg1.valueMatrix(i, dg1.colRef("COIL_NO" )) );
  702. //综合判定等级
  703. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/TOT_DEC_GRD" , dg1.valueMatrix(i, dg1.colRef("TOT_DEC_GRD" )) );
  704. //钢卷重量
  705. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_WGT" , dg1.valueMatrix(i, dg1.colRef("COIL_WGT" )) );
  706. //钢卷外径
  707. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_OUTDIA" , dg1.valueMatrix(i, dg1.colRef("COIL_OUTDIA" )) );
  708. //发货清单号码
  709. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_INVNO" , dg1.valueMatrix(i, dg1.colRef("SHIP_INVNO" )) );
  710. //品质保证书
  711. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CRET_NO" , dg1.valueMatrix(i, dg1.colRef("CRET_NO" )) );
  712. //发货时间
  713. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/TRNF_DTIME" , dg1.valueMatrix(i, dg1.colRef("TRNF_DTIME" )) );
  714. //钢卷公共表中的状态字段
  715. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_PROG_CD" , dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD" )) );
  716. //标准钢号
  717. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SPEC_STL_GRD" , dg1.valueMatrix(i, dg1.colRef("SPEC_STL_GRD" )) );
  718. //钢卷公共中的当前状态做前状态使用
  719. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/BEF_PROG_CD" , dg1.valueMatrix(i, dg1.colRef("BEF_PROG_CD" )) );
  720. //状态改变时间
  721. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/BEF_PROG_CD_DTIME" , dg1.valueMatrix(i, dg1.colRef("BEF_PROG_CD_DTIME")) );
  722. //状态改变人
  723. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/BEF_PROG_CD_PGM" , dg1.valueMatrix(i, dg1.colRef("BEF_PROG_CD_PGM" )) );
  724. //合同号
  725. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_NO" , dg1.valueMatrix(i, dg1.colRef("ORD_NO" )) );
  726. //订单号
  727. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_SEQ" , dg1.valueMatrix(i, dg1.colRef("ORD_SEQ" )) );
  728. //运输公司编码
  729. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_COMP_CD" , dg1.valueMatrix(i, dg1.colRef("SHIP_COMP_CD" )) );
  730. //运输公司名称
  731. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_COMP_NM" , dg1.valueMatrix(i, dg1.colRef("SHIP_COMP_NM" )) );
  732. //钢卷状态
  733. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_STAT" , dg1.valueMatrix(i, dg1.colRef("COIL_STAT" )) );
  734. //当前状态 SFF
  735. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CUR_PROG_CD" , dg1.valueMatrix(i, dg1.colRef("CUR_PROG_CD" )) );
  736. //当前状态修改人 UIJ010060
  737. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CUR_PROG_CD_PGM" , dg1.valueMatrix(i, dg1.colRef("CUR_PROG_CD_PGM" )) );
  738. //登录人
  739. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/REG_ID" , model.getValue("/root/initData/rcvInfo/REG_ID") );
  740. //火运汽运标志
  741. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DlivType" , dg1.valueMatrix(i, dg1.colRef("DLIV_TP" )) );
  742. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ShipProgCd" , dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD" )) );
  743. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ShipDirNo" , dg1.valueMatrix(i, dg1.colRef("SHIP_DIRNO" )) );
  744. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DlivDirNo" , dg1.valueMatrix(i, dg1.colRef("DLIV_DIRNO" )) );
  745. nRows++;
  746. }
  747. }
  748. if( nRows > 1 ) {
  749. //这里加入班次、班组、出库人、时间
  750. model.duplicate("/root/reqData","/root/WK/ENTRY_SHIFT");
  751. model.duplicate("/root/reqData","/root/WK/ENTRY_GROUP");
  752. model.duplicate("/root/reqData","/root/WK/ENTRY_REG");
  753. model.duplicate("/root/reqData","/root/WK/ENTRY_DTIME");
  754. model.duplicate("/root/reqData","/root/WK/ROUTE");
  755. model.duplicate("/root/reqData","/root/CZD");
  756. //commMultiUpdate(dg1,"/root/reqData","A",true,"rowStatus");
  757. commSubmit("UIJ010060-service" ,"print" ,"glueAction.do" );
  758. commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO");
  759. ShipProgCd.value = "08";
  760. input6.value = commCurDate();
  761. find() ;
  762. //calculateSummary();
  763. //sendCargocn(); //发送数据到货运中国
  764. }
  765. model.refresh();
  766. }
  767. //打印方法,这里需要拼出最终格式。
  768. //这里打印时需要改变钢卷公共和发货表状态的,暂时没有处理。后面需要补充进来
  769. function saveExcelScript(sDGridName, sExcelSheetName, saveType) {
  770. var sExcelName = window.fileDialog( "save", "", false, "SaveFileName", "xls", "Excel Files(*.xls)|*.xls" );
  771. if ( sExcelName == "" ) {
  772. return;
  773. }
  774. //var sCSVName = "C:\\TFSmartUpdater\\" + sExcelName.lastIndexOf(".") +".csv";
  775. var sCSVName = sExcelName +".csv";
  776. //alert("sExcelName = ["+ sExcelName +"]\nsCSVName = ["+ sCSVName + "]");
  777. eval(sDGridName).saveText(sCSVName, "\n", ",", '\:', true); //DataGrid의 내용을 CSV파일로 생성
  778. ObjTFExcel.launchNewInstance(0); //Execute EXCEL
  779. ObjTFExcel.createWorkbook(); //Create new Workbook(for example:Sheet1,Sheet2,Sheet3) -- createWorkBook(Excel-TemplateFile)
  780. ObjTFExcel.loadCSV(sCSVName); //Loading Contents, from CSV to Excel
  781. //Setting up EXCEL Layout.
  782. var nRows = sDGridName.rows - sDGridName.fixedRows + 1; //Keep Careful !!!
  783. var nCols = sDGridName.cols;
  784. //Header
  785. //Line 1 : Sheet Title
  786. //行高的设置
  787. ObjTFExcel.rowheight( 01 ) = 50 ;
  788. ObjTFExcel.bold ( 01, 01, 01, nCols ) = true ;
  789. //改变字体大小
  790. ObjTFExcel.fontsize ( 01, 01, 01, nCols ) = 18;
  791. ObjTFExcel.underline( 01, 01, 01, nCols ) = 3 ;
  792. ObjTFExcel.halign ( 01, 01, 01, nCols ) ="center" ;
  793. ObjTFExcel.valign ( 01, 01, 01, nCols ) ="top" ;
  794. ObjTFExcel.mergeCell( 01, 01, 01, nCols ) ;
  795. ObjTFExcel.colwidth ( 01 ) = 200 ;
  796. //All of the range
  797. ObjTFExcel.fontcolor ( 01, 01, nRows, nCols ) = "#000000" ;
  798. ObjTFExcel.font ( 01, 01, nRows, nCols ) = "SimSun" ;
  799. //取消边框
  800. ObjTFExcel.setBorderColor( 07, 01, nRows-2, nCols, "#000000") ;//最后一行评价留白 20210702 wl
  801. ObjTFExcel.bold ( 01, 01, nRows, nCols ) = true ;
  802. //改变字体大小
  803. ObjTFExcel.fontsize ( 02, 01, nRows, nCols ) = 12 ;
  804. ObjTFExcel.underline ( 01, 01, nRows, nCols ) = 0 ;
  805. ObjTFExcel.valign ( 01, 01, nRows, nCols ) ="middle" ;
  806. //字体居中
  807. ObjTFExcel.halign ( 01, 01, nRows, nCols ) ="center" ;
  808. //字体左对齐的特殊定义
  809. ObjTFExcel.halign ( 01, 01, 02, nCols ) ="left" ;
  810. ObjTFExcel.halign ( 01, 01, 03, nCols ) ="left" ;
  811. ObjTFExcel.halign ( 01, 01, 04, nCols ) ="left" ;
  812. ObjTFExcel.halign ( 01, 01, 05, nCols ) ="left" ;
  813. ObjTFExcel.halign ( 01, 01, 06, nCols ) ="left" ;
  814. ObjTFExcel.halign ( 01, 01, 01, nCols ) ="center" ;
  815. //Query-Results Data
  816. var iRow = 1; // iRow = HeaderLine + 1;
  817. //这里设置字体的行宽
  818. // for(var i = iRow; i <= nRows; i++ ) {
  819. // if( (i%5) == 1 ) {
  820. // ObjTFExcel.rowHeight( i ) = 60;
  821. // ObjTFExcel.mergeCell( i, 01, i, nCols );
  822. // } else if( (i%5) == 0 ) {
  823. // ObjTFExcel.rowHeight( i ) = 45;
  824. // ObjTFExcel.mergeCell( i, 01, i, nCols );
  825. // } else {
  826. // ObjTFExcel.rowHeight( i ) = 40;
  827. // }
  828. // }
  829. //合并单元格
  830. ObjTFExcel.mergeCell(02,05,02,08);
  831. ObjTFExcel.mergeCell(02,02,02,03);
  832. ObjTFExcel.mergeCell(03,02,03,03);
  833. ObjTFExcel.mergeCell(04,02,04,03);
  834. ObjTFExcel.mergeCell(05,02,05,03);
  835. ObjTFExcel.mergeCell(06,02,06,03);
  836. ObjTFExcel.mergeCell(04,07,04,08);
  837. ObjTFExcel.mergeCell(05,07,05,08);
  838. ObjTFExcel.mergeCell(06,07,06,08);
  839. ObjTFExcel.mergeCell( nRows-1,1,nRows-1, nCols);//评价行合并单元格
  840. //改变文本格式的方法,未知
  841. //ObjTFExcel.setformat(02,02,02,03,'@');
  842. //设置列的宽度
  843. ObjTFExcel.colwidth ( 01 ) = 15 ;
  844. ObjTFExcel.colwidth ( 02 ) = 10 ;
  845. ObjTFExcel.colwidth ( 03 ) = 15 ;
  846. ObjTFExcel.colwidth ( 04 ) = 10 ;
  847. ObjTFExcel.colwidth ( 05 ) = 20 ;
  848. ObjTFExcel.colwidth ( 06 ) = 10 ;
  849. ObjTFExcel.colwidth ( 07 ) = 10 ;
  850. ObjTFExcel.colwidth ( 08 ) = 15 ;
  851. // ObjTFExcel.setFormat(iRow, 14, nRows, 14, "yyyy\"-\"mm\"-\"dd\"\" hh\":\"mm\":\"ss\"\";@");
  852. ObjTFExcel.sheetName(1) = sExcelSheetName;
  853. ObjTFExcel.save(sExcelName); //Saving EXCEL
  854. ObjTFExcel.close(); //Closing EXCEL. (You must be closed EXCEL !!!)
  855. window.exec("EXCEL.EXE", sExcelName); //Openning EXCEL
  856. }
  857. //发送板加数据
  858. function send() {
  859. model.removeNodeset("/root/reqData");
  860. model.makeNode("/root/reqData");
  861. //这里判断不为空
  862. if(model.getValue("/root/WK/ENTRY_SHIFT") == ""){
  863. alert(" 移送班次信息不能为空,请选择相应的移送班次! ");
  864. return;
  865. }
  866. if(model.getValue("/root/WK/ENTRY_GROUP") == ""){
  867. alert(" 移送班组信息不能为空,请选择相应的移送班组信息!! ");
  868. return;
  869. }
  870. if(model.getValue("/root/WK/ENTRY_REG") == ""){
  871. alert(" 移送人信息不能为空,请选择相应的移送人信息!! ");
  872. return;
  873. }
  874. if(model.getValue("/root/WK/ENTRY_DTIME") == ""){
  875. alert(" 移送时间信息不能为空,请输入相应的移送时间信息!! ");
  876. return;
  877. }
  878. if(model.getValue("/root/WK/ROUTE") == ""){
  879. alert(" 移送去向信息不能为空,请输入相应的移送去向信息!! ");
  880. return;
  881. }
  882. //判断卷重和车号不为空
  883. var nodeSet1 = dg1.nodeset;
  884. for(var j=1;j<dg1.rows;j++){
  885. var chk = model.getValue(nodeSet1+"["+j+"]/CHK");
  886. if(chk == "Y"){
  887. var COIL_WGT = model.getValue(nodeSet1+"["+j+"]/COIL_WGT");
  888. var TRANS_CAR_NO = model.getValue(nodeSet1+"["+j+"]/TRANS_CAR_NO");
  889. if(COIL_WGT == ""){
  890. alert("第"+j+"行的卷重数据为空,请核对后再点击保存按钮!");
  891. return;
  892. }
  893. if(TRANS_CAR_NO == ""){
  894. alert("第"+j+"行的车号数据为空,请核对后再点击保存按钮!");
  895. return;
  896. }
  897. }
  898. }
  899. var nRows = 1;
  900. var nCnt = dg1.rows - dg1.fixedRows + 1;
  901. for( var i = dg1.fixedRows ; i <= nCnt ; i++ ) {
  902. //alert( "i = ["+ i +"]\nCHK = ["+ dg1.valueMatrix(i, dg1.colRef("CHK")) +"]\nCOIL_NO = ["+ dg1.valueMatrix(i, dg1.colRef("COIL_NO")) +"]");
  903. if( dg1.valueMatrix(i, dg1.colRef("CHK")) == "Y" && dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD")) == "08" ) {
  904. //如果行选中,并且钢卷公共表中体现行车命令执行完
  905. dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD")) = "09";
  906. //出库清单号
  907. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_INVNO" , dg1.valueMatrix(i, dg1.colRef("SHIP_INVNO" )) );
  908. //钢卷号
  909. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/OLD_SAMPL_NO" , dg1.valueMatrix(i, dg1.colRef("OLD_SAMPL_NO" )) );
  910. //流水号
  911. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_NO" , dg1.valueMatrix(i, dg1.colRef("COIL_NO" )) );
  912. //板坯号
  913. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SLAB_NO" , dg1.valueMatrix(i, dg1.colRef("SLAB_NO" )) );
  914. //合同号
  915. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_NO" , dg1.valueMatrix(i, dg1.colRef("ORD_NO" )) );
  916. //订单号
  917. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_SEQ" , dg1.valueMatrix(i, dg1.colRef("ORD_SEQ" )) );
  918. //交货期
  919. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DEVLMT_DTIME" , dg1.valueMatrix(i, dg1.colRef("DEVLMT_DTIME" )) );
  920. //订单厚度
  921. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/INSTR_COIL_THK" , dg1.valueMatrix(i, dg1.colRef("INSTR_COIL_THK" )) );
  922. //订单宽度
  923. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/INSTR_COIL_WTH" , dg1.valueMatrix(i, dg1.colRef("INSTR_COIL_WTH" )) );
  924. //订单长度
  925. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/INSTR_COIL_LEN" , dg1.valueMatrix(i, dg1.colRef("INSTR_COIL_LEN" )) );
  926. //订单内径
  927. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/INSTR_COIL_INDIA" , dg1.valueMatrix(i, dg1.colRef("INSTR_COIL_INDIA" )) );
  928. //订单外径
  929. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/INSTR_COIL_OUTDIA" , dg1.valueMatrix(i, dg1.colRef("INSTR_COIL_OUTDIA" )) );
  930. //订单重量
  931. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/INSTR_COIL_WGT" , dg1.valueMatrix(i, dg1.colRef("INSTR_COIL_WGT" )) );
  932. //目的代码
  933. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SM_CD" , dg1.valueMatrix(i, dg1.colRef("SM_CD" )) );
  934. //客户代码
  935. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_CD" , dg1.valueMatrix(i, dg1.colRef("ORD_CD" )) );
  936. //钢卷长度
  937. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_LEN" , dg1.valueMatrix(i, dg1.colRef("COIL_LEN" )) );
  938. //钢卷内径
  939. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_INDIA" , dg1.valueMatrix(i, dg1.colRef("COIL_INDIA" )) );
  940. //钢卷外径
  941. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_OUTDIA" , dg1.valueMatrix(i, dg1.colRef("COIL_OUTDIA" )) );
  942. //钢卷厚度
  943. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_THK" , dg1.valueMatrix(i, dg1.colRef("COIL_THK" )) );
  944. //钢卷宽度
  945. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_WTH" , dg1.valueMatrix(i, dg1.colRef("COIL_WTH" )) );
  946. //钢卷重量
  947. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_WGT" , dg1.valueMatrix(i, dg1.colRef("COIL_WGT")) );
  948. //产品代码
  949. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/PRODNM_CD" , dg1.valueMatrix(i, dg1.colRef("PRODNM_CD" )) );
  950. //规格略号
  951. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SPEC_ABBSYM" , dg1.valueMatrix(i, dg1.colRef("SPEC_ABBSYM" )) );
  952. //订单用途代码
  953. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ORD_USE_CD" , dg1.valueMatrix(i, dg1.colRef("ORD_USE_CD" )) );
  954. //钢种
  955. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SPEC_STL_GRD" , dg1.valueMatrix(i, dg1.colRef("SPEC_STL_GRD" )) );
  956. //成分判定等级
  957. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/INGR_DEC_GRD" , dg1.valueMatrix(i, dg1.colRef("INGR_DEC_GRD" )) );
  958. //外观判定等级
  959. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/EXTSHAPE_DEC_GRD" , dg1.valueMatrix(i, dg1.colRef("EXTSHAPE_DEC_GRD" )) );
  960. //尺寸判定等级
  961. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SIZE_DEC_RST" , dg1.valueMatrix(i, dg1.colRef("SIZE_DEC_RST" )) );
  962. //重量判定等级
  963. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/WGT_DEC_RST" ,dg1.valueMatrix(i, dg1.colRef("WGT_DEC_RST" )));
  964. //材质判定等级
  965. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/MATLQLTY_DEC_GRD" , dg1.valueMatrix(i, dg1.colRef("MATLQLTY_DEC_GRD" )) );
  966. //综合判定等级
  967. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/TOT_DEC_GRD" , dg1.valueMatrix(i, dg1.colRef("TOT_DEC_GRD" )) );
  968. //轧制时间
  969. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/MILL_DTIME" , dg1.valueMatrix(i, dg1.colRef("MILL_DTIME" )) );
  970. //成分判定时间
  971. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/INGR_DEC_DTIME" , dg1.valueMatrix(i, dg1.colRef("INGR_DEC_DTIME" )) );
  972. //材质判定时间
  973. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/MATLQLTY_DEC_DTIME" , dg1.valueMatrix(i, dg1.colRef("MATLQLTY_DEC_DTIME" )) );
  974. //外观判定时间
  975. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/EXTSHAPE_DEC_DTIME" , dg1.valueMatrix(i, dg1.colRef("EXTSHAPE_DEC_DTIME" )) );
  976. //综合判定时间
  977. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/TOT_DEC_DTIME" , dg1.valueMatrix(i, dg1.colRef("TOT_DEC_DTIME" )) );
  978. //瑕疵代码1
  979. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CRK_CD1" , dg1.valueMatrix(i, dg1.colRef("CRK_CD1" )) );
  980. //瑕疵代码2
  981. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CRK_CD2" , dg1.valueMatrix(i, dg1.colRef("CRK_CD2" )) );
  982. //瑕疵代码3
  983. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CRK_CD3" , dg1.valueMatrix(i, dg1.colRef("CRK_CD3" )) );
  984. //瑕疵代码4
  985. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CRK_CD4" , dg1.valueMatrix(i, dg1.colRef("CRK_CD4" )) );
  986. //瑕疵代码5
  987. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CRK_CD5" , dg1.valueMatrix(i, dg1.colRef("CRK_CD5" )) );
  988. //车辆号
  989. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/TRANS_CAR_NO" , dg1.valueMatrix(i, dg1.colRef("TRANS_CAR_NO" )) );
  990. //质保书编号
  991. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/CRET_NO" , dg1.valueMatrix(i, dg1.colRef("CRET_NO" )) );
  992. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ShipProgCd" , dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD" )) );
  993. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ShipDirNo" , dg1.valueMatrix(i, dg1.colRef("SHIP_DIRNO" )) );
  994. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DlivDirNo" , dg1.valueMatrix(i, dg1.colRef("DLIV_DIRNO" )) );
  995. nRows++;
  996. }
  997. }
  998. if( nRows > 1 ) {
  999. //这里加入班次、班组、出库人、时间
  1000. model.duplicate("/root/reqData","/root/WK/ENTRY_SHIFT");
  1001. model.duplicate("/root/reqData","/root/WK/ENTRY_GROUP");
  1002. model.duplicate("/root/reqData","/root/WK/ENTRY_REG");
  1003. model.duplicate("/root/reqData","/root/WK/ENTRY_DTIME");
  1004. model.duplicate("/root/reqData","/root/WK/ROUTE");
  1005. commSubmit("UIJ010060-service" ,"send" ,"glueAction.do" );
  1006. commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO");
  1007. // calculateSummary();
  1008. }
  1009. model.refresh();
  1010. }
  1011. function Xsend() {
  1012. model.removeNodeset("/root/reqData");
  1013. model.makeNode("/root/reqData");
  1014. //判断卷重和车号不为空
  1015. var nodeSet1 = dg1.nodeset;
  1016. for(var j=1;j<dg1.rows;j++){
  1017. var chk = model.getValue(nodeSet1+"["+j+"]/CHK");
  1018. if(chk == "Y"){
  1019. var COIL_WGT = model.getValue(nodeSet1+"["+j+"]/COIL_WGT");
  1020. var TRANS_CAR_NO = model.getValue(nodeSet1+"["+j+"]/TRANS_CAR_NO");
  1021. if(COIL_WGT == ""){
  1022. alert("第"+j+"行的卷重数据为空,请核对后再点击保存按钮!");
  1023. return;
  1024. }
  1025. if(TRANS_CAR_NO == ""){
  1026. alert("第"+j+"行的车号数据为空,请核对后再点击保存按钮!");
  1027. return;
  1028. }
  1029. }
  1030. }
  1031. var nRows = 1;
  1032. var nCnt = dg1.rows - dg1.fixedRows + 1;
  1033. for( var i = dg1.fixedRows ; i <= nCnt ; i++ ) {
  1034. //alert( "i = ["+ i +"]\nCHK = ["+ dg1.valueMatrix(i, dg1.colRef("CHK")) +"]\nCOIL_NO = ["+ dg1.valueMatrix(i, dg1.colRef("COIL_NO")) +"]");
  1035. if( dg1.valueMatrix(i, dg1.colRef("CHK")) == "Y" && dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD")) == "09" ) {
  1036. //如果行选中,并且钢卷公共表中体现行车命令执行完
  1037. dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD")) = "09";
  1038. //出库清单号
  1039. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/SHIP_INVNO" , dg1.valueMatrix(i, dg1.colRef("SHIP_INVNO" )) );
  1040. //钢卷号
  1041. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/OLD_SAMPL_NO" , dg1.valueMatrix(i, dg1.colRef("OLD_SAMPL_NO" )) );
  1042. //流水号
  1043. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/COIL_NO" , dg1.valueMatrix(i, dg1.colRef("COIL_NO" )) );
  1044. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ShipProgCd" , dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD" )) );
  1045. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/ShipDirNo" , dg1.valueMatrix(i, dg1.colRef("SHIP_DIRNO" )) );
  1046. model.makeValue("/root/reqData/ReqResult_1_Row["+ nRows +"]/DlivDirNo" , dg1.valueMatrix(i, dg1.colRef("DLIV_DIRNO" )) );
  1047. nRows++;
  1048. }
  1049. }
  1050. if( nRows > 1 ) {
  1051. //这里加入班次、班组、出库人、时间
  1052. model.duplicate("/root/reqData","/root/WK/ENTRY_SHIFT");
  1053. model.duplicate("/root/reqData","/root/WK/ENTRY_GROUP");
  1054. model.duplicate("/root/reqData","/root/WK/ENTRY_REG");
  1055. model.duplicate("/root/reqData","/root/WK/ENTRY_DTIME");
  1056. model.duplicate("/root/reqData","/root/WK/ROUTE");
  1057. commSubmit("UIJ010060-service" ,"Csend" ,"glueAction.do" );
  1058. commAppendData("/root/gridData1/ListResult_1_VO" ,"/root/resData/ListResult_1_VO");
  1059. // calculateSummary();
  1060. }
  1061. model.refresh();
  1062. }
  1063. ]]>
  1064. </script>
  1065. </model>
  1066. </xhtml:head>
  1067. <xhtml:body>
  1068. <caption id="caption1" class="cell" style="left:0px; top:5px; width:80px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">
  1069. <![CDATA[运输方式]]>
  1070. </caption>
  1071. <object id="ObjTFExcel" clsid="{fe8d1001-6a9d-424d-ae2a-301493bb12da}" visibility="hidden" style="left:850px; top:5px; width:115px; height:25px; "/>
  1072. <select1 id="DlivType" ref="/root/formData/DlivType" appearance="minimal" style="left:80px; top:5px; width:85px; height:20px; ">
  1073. <choices>
  1074. <item>
  1075. <label>火运</label>
  1076. <value>T</value>
  1077. </item>
  1078. <item>
  1079. <label>汽运</label>
  1080. <value>C</value>
  1081. </item>
  1082. </choices>
  1083. </select1>
  1084. <caption id="caption3" class="cell" style="left:325px; top:5px; width:88px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">
  1085. <![CDATA[运送指示号]]>
  1086. </caption>
  1087. <select1 id="DlivDirNo" ref="/root/formData/DlivDirNo" appearance="minimal" editmode="input" style="left:415px; top:5px; width:97px; height:20px; ">
  1088. <choices>
  1089. <itemset nodeset="/root/LOVData/DlivDirNo/LOVResult_1_Row">
  1090. <label ref="DlivDirNoNm"/>
  1091. <value ref="DlivDirNo"/>
  1092. </itemset>
  1093. </choices>
  1094. </select1>
  1095. <caption id="caption4" class="cell" style="left:519px; top:5px; width:88px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">
  1096. <![CDATA[状态区分]]>
  1097. </caption>
  1098. <select1 id="ShipProgCd" ref="/root/formData/ShipProgCd" appearance="minimal" style="left:609px; top:5px; width:99px; height:20px; ">
  1099. <choices>
  1100. <item>
  1101. <label>发货待机</label>
  1102. <value>06</value>
  1103. </item>
  1104. <item>
  1105. <label>发货结束</label>
  1106. <value>07</value>
  1107. </item>
  1108. <item>
  1109. <label>明细发行结束</label>
  1110. <value>08</value>
  1111. </item>
  1112. <item>
  1113. <label>板加移送</label>
  1114. <value>09</value>
  1115. </item>
  1116. </choices>
  1117. </select1>
  1118. <datagrid id="dg1" nodeset="/root/gridData1/ListResult_1_VO/ListResult_1_Row" scroll="auto" caption="选择^运送指示号^到站^^合同单位^收货单位^钢种^钢卷号^规格略号^卷重(磅重)^车辆号^卷重(理论)^区分^合同号^订单号^运输方式^运输公司^专用线^水运区分^到达港^等级^钢卷外径^清单号码^草支垫重量(公斤)^产品名称^品质保证书号^发货时间^出库班次^出库班组^出库操作时间^钢卷颜色备注^板坯号^交货期^钢卷订单规格^钢卷订单规格^钢卷订单规格^钢卷订单规格^钢卷订单规格^钢卷订单规格^钢卷实际规格^钢卷实际规格^钢卷实际规格^钢卷实际规格^钢卷实际规格^钢卷实际规格^目的地代码^客户代码^产品名称^钢架^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^^^^|选择^运送指示号^到站^^合同单位^收货单位^钢种^钢卷号^规格略号^卷重(磅重)^车辆号^卷重(理论)^区分^合同号^订单号^运输方式^运输公司^专用线^水运区分^到达港^等级^钢卷外径^清单号码^草支垫重量(公斤)^产品名称^品质保证书号^发货时间^出库班次^出库班组^出库操作时间^钢卷颜色备注^板坯号^交货期^厚度^宽度^长度^重量^内径^外径^厚度^宽度^长度^重量^内径^外径^目的地代码^客户代码^产品名称^钢架^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^^^^" colsep="^" colwidth="34, 100, 81, 78, 90, 90, 100, 100, 70, 100, 100, 100, 78, 90, 69, 68, 72, 62, 40, 62, 40, 40, 64, 60, 100, 83, 120, 80, 81, 125, 100, 100, 100, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" defaultrows="10" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:60px; width:900px; height:540px; ">
  1119. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  1120. <col editable="false" ref="DLIV_DIRNO" type="input" style="text-align:left; background-color:#ffffff; "/>
  1121. <col editable="false" ref="DEST_PCD_DESC" type="input" style="text-align:left; background-color:#ffffff; "/>
  1122. <col editable="false" ref="SHIP_DIRNO" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1123. <col editable="false" ref="CUST_NM" type="input" style="text-align:left; background-color:#ffffff; "/>
  1124. <col editable="false" ref="ORD_NM" type="input" style="text-align:left; background-color:#ffffff; "/>
  1125. <col editable="false" ref="SPEC_STL_GRD" type="input" style="text-align:left; background-color:#ffffff; "/>
  1126. <col editable="false" ref="OLD_SAMPL_NO" type="input" style="text-align:left; background-color:#ffffff; "/>
  1127. <col editable="false" ref="SPEC_ABBSYM" type="input" style="text-align:left; background-color:#ffffff; "/>
  1128. <col editable="false" ref="COIL_WGT" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  1129. <col ref="TRANS_CAR_NO" type="input" style="text-align:left; background-color:#ffff99; "/>
  1130. <col editable="false" ref="CAL_WGT" type="input" style="text-align:left; background-color:#ffffff; "/>
  1131. <col editable="false" ref="SHIP_PROG_NM" type="input" style="text-align:left; background-color:#ffffff; "/>
  1132. <col editable="false" ref="ORD_NO" type="input" style="text-align:left; background-color:#ffffff; "/>
  1133. <col editable="false" ref="ORD_SEQ" type="input" style="text-align:left; background-color:#ffffff; "/>
  1134. <col editable="false" ref="DLIV_TP_DESC" type="input" style="text-align:left; background-color:#ffffff; "/>
  1135. <col editable="false" ref="SHIP_COMP_NM" type="input" style="text-align:left; background-color:#ffffff; "/>
  1136. <col editable="false" ref="EXLV_LINE_CD_DESC" type="input" style="text-align:left; background-color:#ffffff; "/>
  1137. <col editable="false" ref="BY_SEA_YN" type="input" style="text-align:center; background-color:#ffffff; "/>
  1138. <col editable="false" ref="ARRIVAL_CD" type="input" style="background-color:#ffffff; "/>
  1139. <col editable="false" ref="TOT_DEC_GRD" type="input" style="left:1203px; top:41px; width:40px; height:21px; text-align:center; background-color:#ffffff; "/>
  1140. <col editable="false" ref="COIL_OUTDIA" type="input" format="#,###" style="text-align:right; background-color:#ffffff; "/>
  1141. <col editable="false" ref="SHIP_INVNO" type="input" style="text-align:center; background-color:#ffffff; "/>
  1142. <col editable="false" ref="CZD_WGT" type="input" style="text-align:center; background-color:#ffffff; "/>
  1143. <col editable="false" ref="SM_CFNM" type="input" style="text-align:center; background-color:#ffffff; "/>
  1144. <col editable="false" ref="CRET_NO" type="input" style="text-align:center; background-color:#ffffff; "/>
  1145. <col editable="false" ref="TRNF_DTIME" type="input" style="text-align:center; background-color:#ffffff; "/>
  1146. <col editable="false" ref="TRNF_SHIFT" type="input" style="text-align:center; background-color:#ffffff; "/>
  1147. <col editable="false" ref="TRNF_GROUP" type="input" style="text-align:center; background-color:#ffffff; "/>
  1148. <col editable="false" ref="TRNF_USE_TIME" type="input" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; background-color:#ffffff; "/>
  1149. <col editable="false" ref="HCOLOUR_REM" type="input" style="text-align:center; background-color:#ffffff; "/>
  1150. <col editable="false" ref="SLAB_NO" type="input" style="text-align:center; background-color:#ffffff; "/>
  1151. <col editable="false" ref="DEVLMT_DTIME" type="input" style="background-color:#ffffff; "/>
  1152. <col editable="false" ref="INSTR_COIL_THK" type="input" style="background-color:#ffffff; "/>
  1153. <col editable="false" ref="INSTR_COIL_WTH" type="input" style="background-color:#ffffff; "/>
  1154. <col editable="false" ref="INSTR_COIL_LEN" type="input" style="background-color:#ffffff; "/>
  1155. <col editable="false" ref="INSTR_COIL_WGT" type="input" style="background-color:#ffffff; "/>
  1156. <col editable="false" ref="INSTR_COIL_INDIA" type="input" style="background-color:#ffffff; "/>
  1157. <col editable="false" ref="INSTR_COIL_OUTDIA" type="input" style="background-color:#ffffff; "/>
  1158. <col editable="false" ref="COIL_THK" type="input" style="background-color:#ffffff; "/>
  1159. <col editable="false" ref="COIL_WTH" type="input" style="background-color:#ffffff; "/>
  1160. <col editable="false" ref="COIL_LEN" type="input" style="background-color:#ffffff; "/>
  1161. <col editable="false" ref="COIL_WGT" type="input" style="background-color:#ffffff; "/>
  1162. <col editable="false" ref="COIL_INDIA" type="input" style="background-color:#ffffff; "/>
  1163. <col editable="false" ref="COIL_OUTDIA" type="input" style="background-color:#ffffff; "/>
  1164. <col editable="false" ref="SM_CD" type="input" style="background-color:#ffffff; "/>
  1165. <col editable="false" ref="ORD_CD" type="input" style="background-color:#ffffff; "/>
  1166. <col editable="false" ref="PRODNM_CD" type="input" style="background-color:#ffffff; "/>
  1167. <col editable="false" ref="YZCS_REG" type="input" style="background-color:#ffffff; "/>
  1168. <col editable="false" ref="CRK_CD1" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  1169. <col editable="false" ref="CRK_CD2" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  1170. <col editable="false" ref="CRK_CD3" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  1171. <col editable="false" ref="CRK_CD4" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  1172. <col editable="false" ref="CRK_CD5" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  1173. <col editable="false" ref="INGR_DEC_DTIME" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  1174. <col editable="false" ref="MATLQLTY_DEC_DTIME" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  1175. <col editable="false" ref="EXTSHAPE_DEC_DTIME" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  1176. <col editable="false" ref="TOT_DEC_DTIME" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  1177. <col editable="false" ref="INGR_DEC_GRD" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  1178. <col editable="false" ref="SIZE_DEC_RST" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  1179. <col editable="false" ref="EXTSHAPE_DEC_GRD" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  1180. <col editable="false" ref="WGT_DEC_RST" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  1181. <col editable="false" ref="MILL_DTIME" type="input" visibility="hidden" style="background-color:#ffffff; "/>
  1182. <col editable="false" ref="ORD_USE_CD" type="input" visibility="hidden" style="text-align:center; background-color:#ffffff; "/>
  1183. <col editable="false" ref="GET_OFF_PCD" type="input" visibility="hidden" style="text-align:center; background-color:#ffffff; "/>
  1184. <col editable="false" ref="GET_ON_PCD" type="input" visibility="hidden" style="text-align:center; background-color:#ffffff; "/>
  1185. <col editable="false" ref="COIL_NO" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1186. <col editable="false" ref="SHIP_PROG_CD" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1187. <col editable="false" ref="BEF_PROG_CD" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1188. <col editable="false" ref="BEF_PROG_CD_DTIME" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1189. <col editable="false" ref="BEF_PROG_CD_PGM" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1190. <col editable="false" ref="SHIP_COMP_CD" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1191. <col editable="false" ref="COIL_STAT" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1192. <col editable="false" ref="CUR_PROG_CD" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1193. <col editable="false" ref="CUR_PROG_CD_PGM" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1194. <col editable="false" ref="SHIP_COMP_CD" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1195. <col editable="false" ref="DLIV_TP" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1196. <col editable="false" ref="DEST_PCD" type="input" visibility="hidden" style="text-align:center; background-color:#ffffff; "/>
  1197. <col editable="false" ref="EXLV_LINE_CD" type="input" visibility="hidden" style="text-align:center; background-color:#ffffff; "/>
  1198. <col editable="false" ref="DEPARTURE_CD" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1199. <col editable="false" ref="MATLQLTY_DEC_GRD" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1200. <col editable="false" ref="T_W" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1201. <col editable="false" ref="SYS_TIME" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1202. <col editable="false" ref="TOT_DEC_GRD_DESC" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1203. <col editable="false" ref="MATLQLTY_DEC_GRD_DESC" type="input" visibility="hidden" style="text-align:left; background-color:#ffffff; "/>
  1204. </datagrid>
  1205. <output id="output5" ref="/root/sumData/SUM_SLABRST_WGT" visibility="hidden" format="#,###" style="left:347px; top:575px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
  1206. <output id="output6" ref="/root/sumData/SUM_SLABRST_CNT" visibility="hidden" format="#,###" style="left:172px; top:575px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
  1207. <output id="output8" ref="/root/sumData/SUM_COILRST_WGT" visibility="hidden" format="#,###" style="left:523px; top:575px; width:90px; height:20px; text-align:right; background-color:#ffffff; border-color:#000000; border-style:solid; "/>
  1208. <caption id="caption10" class="cell" visibility="hidden" style="left:0px; top:574px; width:85px; height:20px; text-align:center; background-color:#ffcc99; border-color:#000000; border-style:solid; ">上表统计:</caption>
  1209. <caption id="caption11" class="cell" visibility="hidden" style="left:90px; top:575px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">板坯块数</caption>
  1210. <caption id="caption12" class="cell" visibility="hidden" style="left:265px; top:575px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">板坯总重量</caption>
  1211. <caption id="caption13" class="cell" visibility="hidden" style="left:440px; top:575px; width:80px; height:20px; text-align:center; border-color:#000000; border-style:solid; ">钢卷总重量</caption>
  1212. <button id="button1" style="left:905px; top:30px; width:60px; height:20px; background-color:#c0c0c0; ">
  1213. <caption>查询</caption>
  1214. <script type="javascript" ev:event="DOMActivate">
  1215. <![CDATA[
  1216. find();
  1217. ]]>
  1218. </script>
  1219. </button>
  1220. <button id="button2" style="left:905px; top:55px; width:60px; height:20px; background-color:#c0c0c0; ">
  1221. <caption>保存</caption>
  1222. <script type="javascript" ev:event="DOMActivate">
  1223. <![CDATA[
  1224. save();
  1225. ]]>
  1226. </script>
  1227. </button>
  1228. <script type="javascript" ev:event="xforms-value-changed">
  1229. <![CDATA[
  1230. var nodeSet1 = dg1.nodeset;
  1231. var CHK1 = dg1.valueMatrix(dg1.row,dg1.colRef("CHK"));
  1232. var DLIV_DIRNO1 = dg1.valueMatrix(dg1.row,dg1.colRef("DLIV_DIRNO"));
  1233. for(var i=1;i<=dg1.rows;i++){
  1234. var DLIV_DIRNO = model.getValue(nodeSet1+"["+i+"]/DLIV_DIRNO");
  1235. // if(CHK1 == "Y"&&DLIV_DIRNO1==DLIV_DIRNO&&dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD")) == "06"){
  1236. // model.setValue(nodeSet1+"["+i+"]/CHK","Y");
  1237. // }
  1238. // }
  1239. if(DLIV_DIRNO1==DLIV_DIRNO&&dg1.valueMatrix(i, dg1.colRef("SHIP_PROG_CD")) == "06"){
  1240. model.setValue(nodeSet1+"["+i+"]/CHK",CHK1);
  1241. }
  1242. }
  1243. ]]>
  1244. </script>
  1245. <button id="button3" style="left:905px; top:80px; width:60px; height:20px; background-color:#c0c0c0; ">
  1246. <caption>打印</caption>
  1247. <script type="javascript" ev:event="DOMActivate">
  1248. <![CDATA[
  1249. //这里发货明细的打印应该是同一客户同一运输指示号下的
  1250. var nodeSet1 = dg1.nodeset;
  1251. var DLIV_DIRNO1 = null;
  1252. //不同合同号的需要打印不同的明细
  1253. var ORD_NO_TMP = null;
  1254. //运输方式
  1255. var DLIV_TP = null;
  1256. for(var i=1;i<=dg1.rows;i++){
  1257. var chk1 = model.getValue(nodeSet1+"["+i+"]/CHK");
  1258. if(chk1 == "Y"){
  1259. DLIV_DIRNO1 = model.getValue(nodeSet1+"["+i+"]/DLIV_DIRNO");
  1260. DLIV_TP = model.getValue(nodeSet1+"["+i+"]/DLIV_TP");
  1261. ORD_NO_TMP = model.getValue(nodeSet1+"["+i+"]/ORD_NO");
  1262. break;
  1263. }
  1264. }
  1265. //再次循环datagrid1,如果发现车厢号不同的就给出提示。并且打印不成功
  1266. for(var i=1;i<=dg1.rows;i++){
  1267. var chk1 = model.getValue(nodeSet1+"["+i+"]/CHK");
  1268. if(chk1 == "Y"){
  1269. var DLIV_DIRNO = model.getValue(nodeSet1+"["+i+"]/DLIV_DIRNO");
  1270. while(DLIV_DIRNO1 != DLIV_DIRNO){
  1271. alert(" 不同运输指示号下的卷不能生成同一张发货明细,请确认后重新选择! ");
  1272. return;
  1273. }
  1274. }
  1275. }
  1276. //取出第一个合同号
  1277. var ORD_NO_TMP1 = null;
  1278. //这里合同号不一样的,需要单独提示
  1279. for(var i=1;i<=dg1.rows;i++){
  1280. var chk1 = model.getValue(nodeSet1+"["+i+"]/CHK");
  1281. while(chk1 == "Y"){
  1282. ORD_NO_TMP1 = model.getValue(nodeSet1+"["+i+"]/ORD_NO");
  1283. break;
  1284. }
  1285. if(ORD_NO_TMP != ORD_NO_TMP1 && ORD_NO_TMP != null && ORD_NO_TMP1 !=null){
  1286. alert(" 同运输指示号下的卷,合同号不一样需要分开打印发货明细! ");
  1287. return;
  1288. }
  1289. }
  1290. //这里判断不为空
  1291. if(model.getValue("/root/WK/ENTRY_SHIFT") == ""){
  1292. alert(" 出库班次信息不能为空,请选择相应的出库班次! ");
  1293. return;
  1294. }
  1295. if(model.getValue("/root/WK/ENTRY_GROUP") == ""){
  1296. alert(" 出库班组信息不能为空,请选择相应的出库班组信息!! ");
  1297. return;
  1298. }
  1299. if(model.getValue("/root/WK/ENTRY_REG") == ""){
  1300. alert(" 出库人信息不能为空,请选择相应的出库人信息!! ");
  1301. return;
  1302. }
  1303. if(model.getValue("/root/WK/ENTRY_DTIME") == ""){
  1304. alert(" 出库时间信息不能为空,请输入相应的出库时间信息!! ");
  1305. return;
  1306. }
  1307. if(model.getValue("/root/CZD") == ""){
  1308. alert(" 草支垫重量不能为空,请输入草支垫重量!! ");
  1309. return;
  1310. }
  1311. //判断完后再做打印明细准备,这里再做一个表格定义打印格式
  1312. // for(var i=dg1.fixedRows;i<=dg1.rows;i++){
  1313. // var chk1 = model.getValue(nodeSet1+"["+i+"]/CHK");
  1314. //
  1315. // if(chk1 == "Y"){
  1316. // //合同号
  1317. // var ORD_NO = model.getValue(nodeSet1+"["+i+"]/ORD_NO");
  1318. // //发货清单号,由系统生成。待确认
  1319. // var SHIP_INVNO = model.getValue(nodeSet1+"["+i+"]/SHIP_INVNO");
  1320. // //这里编号和产品名称不确认
  1321. // //总重量,总卷数放到后台去计算,这里暂时不表示
  1322. // //发货日期,这里取系统时间,从数据库中取
  1323. // //收货单位,这里需要从数据库中取
  1324. // }
  1325. // }
  1326. //这里需要分火车和汽车的情况给于不同的格式
  1327. if(DLIV_TP == "T"){
  1328. //取出表头相应的值后,填入相应的位置。再把表头数据放入dg2中
  1329. commAppendData ("/root/gridData2/ListResult_1_VO" ,"/root/EXCELHead/ListResult_1_VO" );
  1330. model.refresh();
  1331. }else if(DLIV_TP == "C"){
  1332. //取出表头相应的值后,填入相应的位置。再把表头数据放入dg2中
  1333. commAppendData ("/root/gridData2/ListResult_1_VO" ,"/root/EXCELHeadCAR/ListResult_1_VO" );
  1334. model.refresh();
  1335. }
  1336. //把表头数据放入后还需要放入主题数据
  1337. //这里表头数据就占用了前8行,主体数据从第9行开始有一个加一个
  1338. var num_row = 8;
  1339. //这里通过运输方式来区分
  1340. var DLIV_TP = null;
  1341. //合同号
  1342. var ORD_NO = null;
  1343. //发货单号,对应表单的发货清单号
  1344. var SHIP_INVNO = null;
  1345. //运输指示号
  1346. var DLIV_DIRNO = null;
  1347. //用户编码,对应合同单位
  1348. var CUST_NM = null;
  1349. //用户编码,对应收货单位
  1350. var ORD_NM = null;
  1351. //到站
  1352. var DEST_PCD_DESC = null;
  1353. //制表,这里使用登录人
  1354. var REG_ID = null;
  1355. //车号
  1356. var TRANS_CAR_NO = null;
  1357. //收货单位,对应用户编码
  1358. //产品名称
  1359. var PRODNM_CD = null;
  1360. //标准
  1361. var SPEC_ABBSYM = null;
  1362. //钢卷个数
  1363. var coil_num_tmp = null;
  1364. //钢卷重量
  1365. var coil_wgt_tmp = null;
  1366. //草支垫重量
  1367. var CZD = null;
  1368. //合同备注,新加入的
  1369. var HCOLOUR_REM = null;
  1370. for(var i=1;i<=dg1.rows;i++){
  1371. var chk1 = model.getValue(nodeSet1+"["+i+"]/CHK");
  1372. if(chk1 == "Y"){
  1373. //alert("num_row : "+num_row);
  1374. coil_num_tmp = coil_num_tmp +1;
  1375. //alert("coil_num_tmp : "+coil_num_tmp);
  1376. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col1");
  1377. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col2");
  1378. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col3");
  1379. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col4");
  1380. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col5");
  1381. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col6");
  1382. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col7");
  1383. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col8");
  1384. //轧批号//钢卷号,真实钢卷号
  1385. var COIL_NO = model.getValue(nodeSet1+"["+i+"]/OLD_SAMPL_NO");
  1386. //钢号
  1387. var SPEC_STL_GRD = model.getValue(nodeSet1+"["+i+"]/SPEC_STL_GRD");
  1388. //规格,没有
  1389. var T_W = model.getValue(nodeSet1+"["+i+"]/T_W");
  1390. //重量(吨)
  1391. var COIL_WGT = model.getValue(nodeSet1+"["+i+"]/COIL_WGT");
  1392. //等级,这里使用表述字段
  1393. var TOT_DEC_GRD = model.getValue(nodeSet1+"["+i+"]/TOT_DEC_GRD_DESC");
  1394. //性能 MATLQLTY_DEC_GRD。这里使用表述字段
  1395. var MATLQLTY_DEC_GRD = model.getValue(nodeSet1+"["+i+"]/MATLQLTY_DEC_GRD_DESC");
  1396. //备注
  1397. //板坯号
  1398. var SLAB_NO = model.getValue(nodeSet1+"["+i+"]/SLAB_NO");
  1399. //这里循环获取表格主体数据
  1400. //model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col1",COIL_NO.substr(0,10));
  1401. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col1",SLAB_NO.substr(0,10));
  1402. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col2",SPEC_STL_GRD);
  1403. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col3",T_W);
  1404. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col4",(COIL_WGT/1000));
  1405. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col5",COIL_NO);
  1406. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col6",TOT_DEC_GRD);
  1407. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col7",MATLQLTY_DEC_GRD);
  1408. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+num_row+"]/col8","");
  1409. //这里获取表头数据
  1410. //这里把需要的值放入特定的位置,写死并且需要区分火运和汽运的情况。
  1411. //这里通过运输方式来区分
  1412. DLIV_TP = model.getValue(nodeSet1+"["+i+"]/DLIV_TP");
  1413. //合同号
  1414. ORD_NO = model.getValue(nodeSet1+"["+i+"]/ORD_NO");
  1415. //发货单号,对应表单的发货清单号
  1416. SHIP_INVNO = model.getValue(nodeSet1+"["+i+"]/SHIP_INVNO");
  1417. //运输指示号
  1418. DLIV_DIRNO = model.getValue(nodeSet1+"["+i+"]/DLIV_DIRNO");
  1419. //用户编码,对应客户公司
  1420. CUST_NM = model.getValue(nodeSet1+"["+i+"]/CUST_NM");
  1421. ORD_NM = model.getValue(nodeSet1+"["+i+"]/ORD_NM");
  1422. //发货日,这里取出库时间
  1423. var SYS_TIME = model.getValue("/root/WK/ENTRY_DTIME");
  1424. //编号,这里新钢有自己的编号规则。所以先空着确认后再处理
  1425. //计划单号,这里新钢没有填入。暂时空着
  1426. //到站
  1427. DEST_PCD_DESC = model.getValue(nodeSet1+"["+i+"]/DEST_PCD_DESC");
  1428. //制表,这里使用出库人
  1429. REG_ID = model.getValue("/root/WK/ENTRY_REG");
  1430. //计划单号
  1431. //车号
  1432. TRANS_CAR_NO = model.getValue(nodeSet1+"["+i+"]/TRANS_CAR_NO");
  1433. //收货单位
  1434. //发货备注,这里为空
  1435. //产品名称
  1436. PRODNM_CD = model.getValue(nodeSet1+"["+i+"]/SM_CFNM");
  1437. //标准
  1438. SPEC_ABBSYM = model.getValue(nodeSet1+"["+i+"]/SPEC_ABBSYM");
  1439. //钢卷重量累加
  1440. coil_wgt_tmp = Number(COIL_WGT) + Number(coil_wgt_tmp);
  1441. //草支垫重量
  1442. CZD = model.getValue("/root/CZD");
  1443. //外贸合同颜色备注栏
  1444. HCOLOUR_REM = model.getValue(nodeSet1+"["+i+"]/HCOLOUR_REM");
  1445. //alert("coil_wgt_tmp : "+coil_wgt_tmp);
  1446. //先赋值再增加行
  1447. num_row = num_row+1;
  1448. }
  1449. }
  1450. //这里能不能在添加几个空行,以便后面合计使用
  1451. for(var j=dg2.rows;j<=21;j++){
  1452. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+j+"]/col1");
  1453. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+j+"]/col2");
  1454. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+j+"]/col3");
  1455. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+j+"]/col4");
  1456. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+j+"]/col5");
  1457. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+j+"]/col6");
  1458. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+j+"]/col7");
  1459. model.makeNode("/root/gridData2/ListResult_1_VO/ListResult_1_Row["+j+"]/col8");
  1460. }
  1461. //这里写在循环外面,保证取值的时候只取一次。
  1462. if(DLIV_TP == "T"){
  1463. //火运的情况
  1464. //汽运的情况
  1465. //合同号和发货单号,第二行
  1466. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[2]/col2","'"+ORD_NO);
  1467. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[2]/col5","'"+DLIV_DIRNO);
  1468. //第三行,用户编码
  1469. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[3]/col2","");
  1470. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[3]/col5",SYS_TIME);
  1471. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[3]/col6","第"+SHIP_INVNO+"号");
  1472. //第四行,用户名称
  1473. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[4]/col2",CUST_NM);
  1474. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[4]/col5",DEST_PCD_DESC.substr(0,9));
  1475. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[4]/col7",REG_ID);
  1476. //第五行,计划单号
  1477. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[5]/col2","");
  1478. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[5]/col5",TRANS_CAR_NO);
  1479. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[5]/col7",ORD_NM);
  1480. //第六行,发货备注
  1481. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[6]/col2",HCOLOUR_REM);
  1482. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[6]/col5",PRODNM_CD);
  1483. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[6]/col7",SPEC_ABBSYM);
  1484. //第20行,总计
  1485. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[20]/col1","小计");
  1486. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[20]/col3",coil_num_tmp+"卷");
  1487. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[20]/col4",Number(coil_wgt_tmp/1000));
  1488. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[20]/col8","合计:"+CZD+"公斤");
  1489. }else if(DLIV_TP == "C"){
  1490. //汽运的情况
  1491. //合同号和发货单号,第二行
  1492. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[2]/col2","'"+ORD_NO);
  1493. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[2]/col5","'"+DLIV_DIRNO);
  1494. //第三行,用户编码
  1495. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[3]/col2","");
  1496. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[3]/col5",SYS_TIME);
  1497. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[3]/col6","第"+SHIP_INVNO+"号");
  1498. //第四行,用户名称
  1499. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[4]/col2",CUST_NM);
  1500. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[4]/col5",DEST_PCD_DESC.substr(0,9));
  1501. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[4]/col7",REG_ID);
  1502. //第五行,计划单号
  1503. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[5]/col2","");
  1504. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[5]/col5",TRANS_CAR_NO);
  1505. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[5]/col7",ORD_NM);
  1506. //第六行,发货备注
  1507. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[6]/col2",HCOLOUR_REM);
  1508. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[6]/col5",PRODNM_CD);
  1509. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[6]/col7",SPEC_ABBSYM);
  1510. //第20行,总计
  1511. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[20]/col1","小计");
  1512. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[20]/col3",coil_num_tmp+"卷");
  1513. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[20]/col4",Number(coil_wgt_tmp/1000));
  1514. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[20]/col8","合计:"+CZD+"公斤");
  1515. //第21行,评价
  1516. model.setValue("/root/gridData2/ListResult_1_VO/ListResult_1_Row[21]/col1","物流评价:满意:____ 一般____ 不满意____ 不满意原因:");
  1517. }
  1518. model.refresh();
  1519. //导出EXCEL方法
  1520. saveExcelScript(dg2, "Sheet1");
  1521. //打印后修改发货状态的方法
  1522. print();
  1523. ]]>
  1524. </script>
  1525. <hint>
  1526. <![CDATA[打印的发货明细请保存在C盘]]>
  1527. </hint>
  1528. </button>
  1529. <datagrid id="dg2" nodeset="/root/gridData2/ListResult_1_VO/ListResult_1_Row" visibility="hidden" caption="cols_1^cols_2^cols_3^cols_4^cols_5^cols_6^cols_7^cols_8" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:140px; width:805px; height:290px; ">
  1530. <col ref="col1"/>
  1531. <col ref="col2"/>
  1532. <col ref="col3"/>
  1533. <col ref="col4"/>
  1534. <col ref="col5"/>
  1535. <col ref="col6"/>
  1536. <col ref="col7"/>
  1537. <col ref="col8"/>
  1538. </datagrid>
  1539. <caption id="caption21" class="cell" style="left:0px; top:35px; width:60px; height:20px; vertical-align:middle; border-color:#000000; ">班次</caption>
  1540. <caption id="caption23" class="cell" style="left:145px; top:35px; width:60px; height:20px; vertical-align:middle; border-color:#000000; ">班组</caption>
  1541. <caption id="caption5" class="cell" style="left:455px; top:35px; width:60px; height:20px; border-color:#000000; ">出库时间</caption>
  1542. <caption id="caption14" class="cell" style="left:310px; top:35px; width:60px; height:20px; vertical-align:middle; border-color:#000000; ">出库人</caption>
  1543. <select1 id="combo7" ref="/root/WK/ENTRY_REG" appearance="minimal" editmode="input" style="left:370px; top:35px; width:80px; height:20px; background-color:#ffff99; ">
  1544. <choices>
  1545. <itemset nodeset="/root/RegResultd/InitRegResultd_Row">
  1546. <label ref="LABEL"/>
  1547. <value ref="VALUE"/>
  1548. </itemset>
  1549. </choices>
  1550. </select1>
  1551. <select1 id="combo8" ref="/root/WK/ENTRY_SHIFT" appearance="minimal" style="left:60px; top:35px; width:80px; height:20px; background-color:#ffff99; ">
  1552. <choices>
  1553. <item>
  1554. <label>早</label>
  1555. <value>1</value>
  1556. </item>
  1557. <item>
  1558. <label>中</label>
  1559. <value>2</value>
  1560. </item>
  1561. <item>
  1562. <label>晚</label>
  1563. <value>3</value>
  1564. </item>
  1565. </choices>
  1566. </select1>
  1567. <select1 id="combo9" ref="/root/WK/ENTRY_GROUP" appearance="minimal" style="left:205px; top:35px; width:100px; height:20px; background-color:#ffff99; ">
  1568. <choices>
  1569. <item>
  1570. <label>甲</label>
  1571. <value>A</value>
  1572. </item>
  1573. <item>
  1574. <label>乙</label>
  1575. <value>B</value>
  1576. </item>
  1577. <item>
  1578. <label>丙</label>
  1579. <value>C</value>
  1580. </item>
  1581. <item>
  1582. <label>丁</label>
  1583. <value>D</value>
  1584. </item>
  1585. </choices>
  1586. </select1>
  1587. <input id="input6" ref="/root/WK/ENTRY_DTIME" inputtype="date" format="yyyy-mm-dd" style="left:515px; top:35px; width:100px; height:20px; background-color:#ffff99; "/>
  1588. <caption id="caption6" class="cell" style="left:630px; top:35px; width:85px; height:20px; border-color:#000000; ">草支垫重量</caption>
  1589. <input id="input1" ref="/root/CZD" format="#,###" style="left:715px; top:35px; width:70px; height:20px; background-color:#ffff99; "/>
  1590. <caption id="caption7" class="cell" style="left:785px; top:35px; width:35px; height:20px; border-color:#000000; ">公斤</caption>
  1591. <caption id="caption2" class="cell" visibility="hidden" style="left:500px; top:205px; width:88px; height:20px; text-align:center; vertical-align:middle; border-color:#000000; border-style:solid; ">
  1592. <![CDATA[发货指示号]]>
  1593. </caption>
  1594. <select1 id="ShipDirNo" ref="/root/formData/ShipDirNo" visibility="hidden" appearance="minimal" style="left:590px; top:205px; width:97px; height:20px; ">
  1595. <choices>
  1596. <itemset nodeset="/root/LOVData/ShipDirNo/LOVResult_1_Row">
  1597. <label ref="ShipDirNoNm"/>
  1598. <value ref="ShipDirNo"/>
  1599. </itemset>
  1600. </choices>
  1601. </select1>
  1602. <input id="input2" ref="/root/formData/CAR_NO" style="left:230px; top:5px; width:90px; height:20px; "/>
  1603. <caption id="caption8" class="cell" style="left:170px; top:5px; width:60px; height:20px; border-color:#000000; ">车辆号</caption>
  1604. <button id="button4" style="left:905px; top:105px; width:60px; height:20px; background-color:#c0c0c0; ">
  1605. <caption>板加移送</caption>
  1606. <script type="javascript" ev:event="DOMActivate">
  1607. <![CDATA[
  1608. send();
  1609. ]]>
  1610. </script>
  1611. <hint>
  1612. <![CDATA[打印的发货明细请保存在C盘]]>
  1613. </hint>
  1614. </button>
  1615. <button id="button41" style="left:905px; top:130px; width:60px; height:20px; background-color:#c0c0c0; ">
  1616. <caption>货运跟踪</caption>
  1617. <script type="javascript" ev:event="DOMActivate">
  1618. <![CDATA[
  1619. sendCargocn();
  1620. ]]>
  1621. </script>
  1622. <hint>
  1623. <![CDATA[将发货明细数据移送给货运中国系统进行物流跟踪!]]>
  1624. </hint>
  1625. </button>
  1626. <caption id="caption9" class="cell" style="left:715px; top:5px; width:45px; height:20px; border-color:#000000; ">去向</caption>
  1627. <select1 id="combo1" ref="/root/WK/ROUTE" appearance="minimal" style="left:760px; top:5px; width:80px; height:20px; ">
  1628. <choices>
  1629. <item>
  1630. <label>板加厂</label>
  1631. <value>BJ</value>
  1632. </item>
  1633. <item>
  1634. <label/>
  1635. <value/>
  1636. </item>
  1637. </choices>
  1638. </select1>
  1639. <button id="button5" style="left:905px; top:155px; width:60px; height:20px; background-color:#c0c0c0; ">
  1640. <caption>板加退回</caption>
  1641. <script type="javascript" ev:event="DOMActivate">
  1642. <![CDATA[
  1643. Xsend();
  1644. ]]>
  1645. </script>
  1646. <hint>
  1647. <![CDATA[打印的发货明细请保存在C盘]]>
  1648. </hint>
  1649. <script type="javascript" ev:event="onclick">
  1650. <![CDATA[
  1651. Xsend();
  1652. ]]>
  1653. </script>
  1654. </button>
  1655. <button id="button6" style="left:905px; top:180px; width:62px; height:20px; background-color:#c0c0c0; ">
  1656. <caption>货运重发</caption>
  1657. <script type="javascript" ev:event="DOMActivate">
  1658. <![CDATA[
  1659. resend();
  1660. ]]>
  1661. </script>
  1662. <hint>
  1663. <![CDATA[打印的发货明细请保存在C盘]]>
  1664. </hint>
  1665. <script type="javascript" ev:event="onclick">
  1666. <![CDATA[
  1667. Csend();
  1668. ]]>
  1669. </script>
  1670. </button>
  1671. <select1 id="combo2" ref="/root/WK/ENTRY_REG" appearance="minimal" editmode="input" style="left:825px; top:35px; width:80px; height:20px; background-color:#ffff99; ">
  1672. <choices>
  1673. <item>
  1674. <label>刘文</label>
  1675. <value>刘文</value>
  1676. </item>
  1677. <item>
  1678. <label>蔡伟平</label>
  1679. <value>蔡伟平</value>
  1680. </item>
  1681. <item>
  1682. <label>廖林敏</label>
  1683. <value>廖林敏</value>
  1684. </item>
  1685. <item>
  1686. <label>周文刚</label>
  1687. <value>周文刚</value>
  1688. </item>
  1689. <item>
  1690. <label>吴贤峰</label>
  1691. <value>吴贤峰</value>
  1692. </item>
  1693. <item>
  1694. <label>敖艳敏</label>
  1695. <value>敖艳敏</value>
  1696. </item>
  1697. <item>
  1698. <label>林珑</label>
  1699. <value>林珑</value>
  1700. </item>
  1701. <item>
  1702. <label>成武</label>
  1703. <value>成武</value>
  1704. </item>
  1705. <item>
  1706. <label>安凡能</label>
  1707. <value>安凡能</value>
  1708. </item>
  1709. <item>
  1710. <label>李学海</label>
  1711. <value>李学海</value>
  1712. </item>
  1713. <item>
  1714. <label>刘忠华</label>
  1715. <value>刘忠华</value>
  1716. </item>
  1717. </choices>
  1718. </select1>
  1719. </xhtml:body>
  1720. </xhtml:html>