UIG040090.xrw 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet type="text/css" href="../../css/body.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>
  6. <![CDATA[炼钢作业 >> 板坯库管理 >> 中厚板移送实绩登录与查询(UIG040090) ]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <resData/>
  12. <reqData/>
  13. <searchData>
  14. <DTIME/>
  15. <CAR_NO/>
  16. <SYS_DATE/>
  17. <INVOICE_NO/>
  18. <HCR_CLF/>
  19. <SLAB_NO/>
  20. <SLAB_NO_1/>
  21. <PRINT_CHK>Y</PRINT_CHK>
  22. </searchData>
  23. <saveData>
  24. <PLT_TRS_WKSHIFT/>
  25. <PLT_TRS_WKGROUP/>
  26. <PLT_TRS_EMP_ID/>
  27. <TRS_INVOICE_NO/>
  28. <TRS_INVOICE_NO_MANUAL/>
  29. <PLT_TRS_EMP_NM/>
  30. </saveData>
  31. <datagrid1/>
  32. <datagrid2/>
  33. <datagrid3>
  34. <PltBlabNo_VO/>
  35. </datagrid3>
  36. <selectData>
  37. <SELECT_CAR_NO/>
  38. <SELECT_INVOICE_NO/>
  39. <SELECT_INVOICE_NO_MANUAL/>
  40. <SELECT_ARRV_LOC/>
  41. </selectData>
  42. <count/>
  43. <returnData>
  44. <Delete>
  45. <SLAB_NO/>
  46. <rowStatus>u</rowStatus>
  47. </Delete>
  48. <Update>
  49. <rowStatus>u</rowStatus>
  50. <RTN_CUR_STORE_LOC/>
  51. <SLAB_NO/>
  52. </Update>
  53. </returnData>
  54. <ErrorData>
  55. <Delete>
  56. <SLAB_NO/>
  57. <rowStatus>u</rowStatus>
  58. </Delete>
  59. <Update>
  60. <SLAB_NO/>
  61. <rowStatus>u</rowStatus>
  62. </Update>
  63. </ErrorData>
  64. <Row/>
  65. <tempData/>
  66. <HCR_CLF/>
  67. </root>
  68. </instance>
  69. </model>
  70. <script type="javascript" src="../../js/mesCommon.js"/>
  71. <script type="javascript">
  72. <![CDATA[
  73. var L2_SCH_NO = null;
  74. var PLT_TRS_CAR_NO = null;
  75. var PLT_TRS_INVOICE_NO_MANUAL = null;
  76. var PLT_TRS_INVOICE_NO = null;
  77. var PLT_PLANT_ARRV_LOC = null;
  78. function setColor()
  79. {
  80. datagrid2.rebuildStyle();
  81. var ZXISJS = datagrid2.colRef("ZXISJS");
  82. for(var i = datagrid2.fixedRows; i < datagrid2.rows; i++)
  83. {
  84. if(datagrid2.valueMatrix(i , ZXISJS) == "1")
  85. {
  86. //datagrid2.rowstyle(i, "data", "color") = "#0000ff";
  87. datagrid2.cellStyle("background-color" , i , ZXISJS) == "#ff0000";
  88. }
  89. }
  90. }
  91. function excelExport(){
  92. return datagrid3;
  93. }
  94. function valueChg(){
  95. if(datagrid1.col == datagrid1.colRef("L2_SCH_NO")){
  96. L2_SCH_NO = datagrid1.valueMatrix(datagrid1.row,datagrid1.col);
  97. }
  98. if(datagrid1.col == datagrid1.colRef("L2_SCH_NO")){
  99. L2_SCH_NO = datagrid1.valueMatrix(datagrid1.row,datagrid1.col);
  100. }
  101. if(datagrid1.col == datagrid1.colRef("L2_SCH_NO")){
  102. L2_SCH_NO = datagrid1.valueMatrix(datagrid1.row,datagrid1.col);
  103. }
  104. if(datagrid1.col == datagrid1.colRef("L2_SCH_NO")){
  105. L2_SCH_NO = datagrid1.valueMatrix(datagrid1.row,datagrid1.col);
  106. }
  107. if(datagrid1.col == datagrid1.colRef("L2_SCH_NO")){
  108. L2_SCH_NO = datagrid1.valueMatrix(datagrid1.row,datagrid1.col);
  109. }
  110. }
  111. //查询方法
  112. function find(){
  113. //清空发送接点
  114. model.removenode("/root/reqData");
  115. model.makeNode("/root/reqData");
  116. //把需要的数据放入发送接点
  117. commSendReq("/root/searchData");
  118. var hcr = model.getValue("/root/searchData/HCR_CLF");
  119. if(hcr == "Y") commSubmit("UIG040090-service","rs","glueAction.do");
  120. else commSubmit("UIG040090-service","ls","glueAction.do");
  121. //获取移动对象信息
  122. // commSubmit("UIG040090-service","find","glueAction.do");
  123. commAppendData("/root/datagrid1/PltBlabNo_VO","/root/resData/PltBlabNo_VO");
  124. // commAppendData("/root/datagrid2/PltTrsBlabNo_VO","/root/resData/PltTrsBlabNo_VO");
  125. model.refresh();
  126. input5.value = model.getValue("/root/initData/rcvInfo/REG_ID");
  127. }
  128. //保存
  129. function save(){
  130. // 表格中的行数
  131. var gridRows = datagrid1.rows - datagrid1.fixedRows;
  132. //清空发送接点
  133. model.removenode("/root/reqData");
  134. model.makeNode("/root/reqData");
  135. //控制输入数据不能为空,前提是该行已经CHK 选择
  136. for(var i = datagrid1.fixedRows ; i < (gridRows + datagrid1.fixedRows) ; i++){
  137. if(datagrid1.valueMatrix(i,datagrid1.colRef("CHK")) == "Y" &&
  138. ( datagrid1.valueMatrix(i,datagrid1.colRef("PLT_TRS_CAR_NO")) == "" ||
  139. datagrid1.valueMatrix(i,datagrid1.colRef("PLT_TRS_INVOICE_NO_MANUAL")) == ""||
  140. datagrid1.valueMatrix(i,datagrid1.colRef("PLT_PLANT_ARRV_LOC")) == "" )){
  141. alert(" 提交数据有误,不能有空值 ");return;
  142. }
  143. if(datagrid1.valueMatrix(i,datagrid1.colRef("CHK")) == "Y" &&
  144. ( datagrid1.valueMatrix(i,datagrid1.colRef("SLAB_OUT_TP")) == "不允许出库")){
  145. alert(" 坯料不允许出库,联系质检! ");return;
  146. }
  147. datagrid1.valueMatrix(i,datagrid1.colRef("PLT_TRS_WKSHIFT")) = model.getValue("/root/saveData/PLT_TRS_WKSHIFT");
  148. datagrid1.valueMatrix(i,datagrid1.colRef("PLT_TRS_WKGROUP")) = model.getValue("/root/saveData/PLT_TRS_WKGROUP");
  149. //datagrid1.valueMatrix(i,datagrid1.colRef("PLT_TRS_EMP_ID")) = model.getValue("/root/saveData/PLT_TRS_EMP_ID");
  150. model.duplicate("/root/reqData","/root/saveData/PLT_TRS_EMP_NM");
  151. datagrid1.valueMatrix(i,datagrid1.colRef("HCR_CLF")) = model.getValue("/root/searchData/HCR_CLF");
  152. }
  153. commMultiUpdate(datagrid1,"/root/reqData","A",true,"rowStuts");
  154. //把需要存储的数据放入发送接点
  155. commSubmit("UIG040090-service","save","glueAction.do");
  156. var msgs = model.getValue("/root/resData/MESSAGES_VO/MESSAGES_Row");
  157. if(msgs != "")
  158. alert(msgs);
  159. for(var i = 0 ; i <= (datagrid1.rows);i++)
  160. { var ref = "/root/datagrid1/PltBlabNo_VO/PltBlabNo_Row[" + (i-1) +"]";
  161. if(datagrid1.valueMatrix(i,datagrid1.colRef("CHK")) == "Y"){
  162. model.duplicate("/root/datagrid3/PltBlabNo_VO",ref);
  163. }
  164. }
  165. find();
  166. excelExport();
  167. model.removenode("/root/datagrid3/PltBlabNo_VO");
  168. model.makeNode("/root/datagrid3/PltBlabNo_VO");
  169. model.refresh();
  170. }
  171. //对从中厚板退回的板坯,返回我们自己仓库的保存按钮
  172. function SaveReturn(){
  173. //表格中的行数
  174. var gridRows = datagrid2.rows - datagrid1.fixedRows;
  175. var flag = 0;
  176. //清空发送接点
  177. model.removenode("/root/reqData");
  178. model.makeNode("/root/reqData");
  179. //如何选择的行的移送状态为 2 时 目标接受标志为 退回
  180. for(var i = datagrid2.fixedRows ; i < (gridRows + datagrid2.fixedRows) ; i++){
  181. /*if(datagrid2.valueMatrix(i,datagrid2.colRef("CHK")) == "Y"
  182. || datagrid2.valueMatrix(i,datagrid2.colRef("RECEV_FLAG")) != "2"
  183. || datagrid2.valueMatrix(i,datagrid2.colRef("RTN_CUR_STORE_LOC")) == ""){
  184. alert("移送状态是否为 ”接收“ 或则 回送板坯位置为空 !");return;
  185. }*/
  186. if(datagrid2.valueMatrix(i,datagrid2.colRef("CHK")) == "Y" ){
  187. if(datagrid2.valueMatrix(i,datagrid2.colRef("ZXISJS")) == "1" ){
  188. alert("中厚板已接收并入库,不允许撤回,请联系中厚板!");
  189. return;
  190. }
  191. if(datagrid2.valueMatrix(i,datagrid2.colRef("RTN_CUR_STORE_LOC")) == ""){
  192. alert("回送板坯位置为空 ,不允许撤回!");
  193. return;
  194. }
  195. flag++;
  196. }
  197. }
  198. if(flag == 0){
  199. alert("请选中一条数据再进行撤回操作!");
  200. return;
  201. }
  202. commMultiUpdate(datagrid2,"/root/reqData","A",true,"rowStatus");
  203. model.duplicate("/root/reqData","/root/saveData/PLT_TRS_EMP_NM");
  204. //把需要存储的数据放入发送接点
  205. commSubmit("UIG040090-service","saveReturn","glueAction.do");
  206. }
  207. function chemResend(){
  208. model.removenode("/root/reqData");
  209. model.makeNode("/root/reqData");
  210. commMultiUpdate(datagrid2,"/root/reqData","A",true,"rowStatus");
  211. //把需要存储的数据放入发送接点
  212. commSubmit("UIG040090-service","chemResend","glueAction.do");
  213. }
  214. //操作员手工录入错误的情况
  215. function SaveError(){
  216. //表格中的行数
  217. var gridRows = datagrid2.rows - datagrid1.fixedRows;
  218. var flag = 0;
  219. //清空发送接点
  220. model.removenode("/root/reqData");
  221. model.makeNode("/root/reqData");
  222. for(var i = datagrid2.fixedRows ; i < (gridRows + datagrid2.fixedRows) ; i++){
  223. /*if( datagrid2.valueMatrix(i,datagrid2.colRef("CHK")) == "Y"
  224. && ( datagrid2.valueMatrix(i,datagrid2.colRef("RECEV_FLAG")) != "0"
  225. || datagrid2.valueMatrix(i,datagrid2.colRef("RTN_CUR_STORE_LOC")) == "")){
  226. alert("移送状态是否为 ”等待“ 或则 回送板坯位置为空 !");return;
  227. }*/
  228. if(datagrid2.valueMatrix(i,datagrid2.colRef("CHK")) == "Y" ){
  229. if(datagrid2.valueMatrix(i,datagrid2.colRef("ZXISJS")) == "1" ){
  230. alert("中厚板已接收并入库,不允许撤回,请联系中厚板撤回已接收的板坯!");
  231. return;
  232. }
  233. if(datagrid2.valueMatrix(i,datagrid2.colRef("RTN_CUR_STORE_LOC")) == ""){
  234. alert("回送板坯位置为空 ,不允许撤回!");
  235. return;
  236. }
  237. flag++;
  238. }
  239. }
  240. if(flag == 0){
  241. alert("请选中一条数据再进行撤回操作!");
  242. return;
  243. }
  244. model.duplicate("/root/reqData","/root/saveData/PLT_TRS_EMP_NM");
  245. commMultiUpdate(datagrid2,"/root/reqData","A",true,"rowStatus");
  246. commSubmit("UIG040090-service","saveError","glueAction.do");
  247. commAppendData("/root/datagrid1/PltBlabNo_VO","/root/resData/PltBlabNo_VO");
  248. commAppendData("/root/datagrid2/PltTrsBlabNo_VO","/root/resData/PltTrsBlabNo_VO");
  249. model.refresh();
  250. }
  251. function xformSelect(){
  252. if(datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_TRS_CAR_NO")) == "" ||
  253. datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_TRS_INVOICE_NO_MANUAL")) == "" ||
  254. datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_PLANT_ARRV_LOC")) == ""
  255. )return;
  256. if(datagrid1.row != datagrid1.fixedRows){
  257. datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_TRS_CAR_NO")) = datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_TRS_CAR_NO"));
  258. datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_TRS_INVOICE_NO_MANUAL")) = datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_TRS_INVOICE_NO_MANUAL"));
  259. datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_PLANT_ARRV_LOC")) = datagrid1.valueMatrix(datagrid1.row-1,datagrid1.colRef("PLT_PLANT_ARRV_LOC"));
  260. }
  261. }
  262. function xformDeselect(){
  263. datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_TRS_CAR_NO")) = "";
  264. datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_TRS_INVOICE_NO_MANUAL")) = "";
  265. datagrid1.valueMatrix(datagrid1.row,datagrid1.colRef("PLT_PLANT_ARRV_LOC")) = "";
  266. datagrid1.rowStatus(datagrid1.row) = 0;
  267. }
  268. function call_righ_UIG040090()
  269. {
  270. var rowId = datagrid2.row;
  271. // 设置跺位查询的默认跺位为 L 开头的炼钢板坯库
  272. model.setValue("/root/tempData","L");
  273. window.load("UIG040044.xrw","modal","", "left:600; top:78; width:320; height:480; sysmenu:visible; min:visible; max:true; resize:true; caption:visible;");
  274. datagrid2.valueMatrix(rowId,datagrid2.colRef("RTN_CUR_STORE_LOC")) = model.getValue("/root/tempData");
  275. model1.removenode("/root/tempData");
  276. model1.makeNode("/root/tempData");
  277. }
  278. function excelSubmit1(submitID, serviceTag)
  279. {
  280. var reqData = setReqData(model.instances(0).selectSingleNode("/root/reqData"));
  281. //window.load(url + "etAction.jsp?ServiceName=" + submitID + "&" + serviceTag + "=1" + reqData, "html");
  282. // model.download(url + "etAction.jsp?ServiceName=" + submitID + "&" + serviceTag + "=1" + reqData, "C:\\WINDOWS\\excel.xls", false);
  283. var flag = downURL(url + "etAction.jsp?ServiceName=" + submitID + "&" + serviceTag + "=1" + reqData, "C:\\WINDOWS\\excel.xls");
  284. if(!flag)
  285. {
  286. return;
  287. }
  288. //print() ;
  289. //var fso = new ActiveXObject("Scripting.FileSystemObject");
  290. //fso.DeleteFile("C:\\WINDOWS\\excel.xls");
  291. }
  292. function print()
  293. {
  294. try
  295. {
  296. var xlApp = new ActiveXObject("Excel.Application");
  297. }
  298. catch(e)
  299. {
  300. window.alert("未安装Microsoft Office Excel 2003,请安装" , "提示");
  301. }
  302. try
  303. {
  304. xlApp.Visible = false;
  305. xlApp.Workbooks.Add();
  306. xlApp.Workbooks.Open("C:\\WINDOWS\\excel.xls");
  307. var ExcelSheet = xlApp.Worksheets(1);
  308. ExcelSheet.PrintOut(1, 1, 2, false,"打印机名称", false, false);//打印两份
  309. //ExcelSheet.PrintOut();
  310. xlApp.Quit();
  311. xlApp=null;
  312. }
  313. catch(e)
  314. {
  315. window.alert("未安装打印机,请安装" , "提示");
  316. }
  317. }
  318. ]]>
  319. </script>
  320. <script type="javascript" src="../../js/boaCommon.js"/>
  321. <script type="javascript" src="../../js/boaMsg.js"/>
  322. <script type="javascript" src="../../js/mesCommon.js"/>
  323. </xhtml:head>
  324. <xhtml:body pagewidth="980" pageheight="620" guideline="2,0;">
  325. <caption id="caption9" class="cell" style="left:800px; top:265px; width:80px; height:20px; font-weight:bold; border-color:#000000; "/>
  326. <caption id="caption8" class="cell" visibility="hidden" style="left:885px; top:265px; width:80px; height:20px; font-weight:bold; border-color:#000000; "/>
  327. <caption id="caption10" class="cell" style="left:0px; top:0px; width:100px; height:20px; font-weight:bold; border-color:#000000; ">移送对象</caption>
  328. <caption id="caption2" class="cell" style="left:465px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">班次</caption>
  329. <select1 id="combo2" ref="/root/saveData/PLT_TRS_WKGROUP" appearance="minimal" editmode="input" style="left:685px; top:0px; width:105px; height:20px; background-color:#ffff99; border-color:#000000; ">
  330. <choices>
  331. <item>
  332. <label>甲</label>
  333. <value>甲</value>
  334. </item>
  335. <item>
  336. <label>乙</label>
  337. <value>乙</value>
  338. </item>
  339. <item>
  340. <label>丙</label>
  341. <value>丙</value>
  342. </item>
  343. <item>
  344. <label>丁</label>
  345. <value>丁</value>
  346. </item>
  347. </choices>
  348. </select1>
  349. <caption id="caption1" class="cell" style="left:630px; top:0px; width:55px; height:20px; font-weight:bold; border-color:#000000; ">组</caption>
  350. <select1 id="combo1" ref="/root/saveData/PLT_TRS_WKSHIFT" appearance="minimal" editmode="input" style="left:525px; top:0px; width:105px; height:20px; background-color:#ffff99; border-color:#000000; ">
  351. <choices>
  352. <item>
  353. <label>早班</label>
  354. <value>1</value>
  355. </item>
  356. <item>
  357. <label>中班</label>
  358. <value>2</value>
  359. </item>
  360. <item>
  361. <label>晚班</label>
  362. <value>3</value>
  363. </item>
  364. </choices>
  365. </select1>
  366. <caption id="caption3" class="cell" style="left:790px; top:0px; width:75px; height:20px; font-weight:bold; border-color:#000000; ">登录人</caption>
  367. <select1 id="combo3" ref="/root/saveData/PLT_TRS_EMP_ID" appearance="minimal" editmode="input" style="left:865px; top:0px; width:105px; height:20px; background-color:#ffff99; border-color:#000000; ">
  368. <choices>
  369. <item>
  370. <label>tt</label>
  371. <value>tt</value>
  372. </item>
  373. <item>
  374. <label>yy</label>
  375. <value>yy</value>
  376. </item>
  377. <item>
  378. <label>uu</label>
  379. <value>uu</value>
  380. </item>
  381. </choices>
  382. </select1>
  383. <datagrid id="datagrid1" nodeset="/root/datagrid1/PltBlabNo_VO/PltBlabNo_Row" scroll="both" allowuserresize="true" caption="选择^板坯号^钢码^合同号^炉次号^出库判定^板坯^板坯^板坯^板坯^板坯^堆置位置^车辆号^移送货单^移送货单^目的地^移送日期^外观等级^成分判定等级^瑕疵代码1^瑕疵代码2^瑕疵代码3^瑕疵代码4^PLT_TRS_WKSHIFT^PLT_TRS_WKGROUP^PLT_TRS_EMP_ID^热送区分|选择^板坯号^钢码^合同号^炉次号^出库判定^厚度^宽度^长度^重量^称重重量(吨)^堆置位置^车辆号^移送货单^移送货单^目的地^移送日期^外观等级^成分判定等级^瑕疵代码1^瑕疵代码2^瑕疵代码3^瑕疵代码4^PLT_TRS_WKSHIFT^PLT_TRS_WKGROUP^PLT_TRS_EMP_ID^热送区分" colsep="^" colwidth="31, 100, 75, 100, 81, 100, 39, 39, 38, 39, 100, 70, 87, 83, 49, 51, 100, 39, 45, 100, 100, 100, 100, 100, 100, 100, 100" defaultrows="9" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:21px; width:975px; height:235px; border-color:#000000; ">
  384. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  385. <col editable="false" ref="SLAB_NO" type="input"/>
  386. <col editable="false" ref="STL_GRD" type="input"/>
  387. <col ref="L2_SCH_NO"/>
  388. <col editable="false" ref="CHARGE_NO" type="input"/>
  389. <col ref="SLAB_OUT_TP"/>
  390. <col editable="false" ref="SLAB_THK" type="input"/>
  391. <col editable="false" ref="SLAB_WTH" type="input"/>
  392. <col editable="false" ref="SLAB_LEN" type="input"/>
  393. <col editable="false" ref="SLAB_WGT" type="input"/>
  394. <col editable="false" ref="WEIGHT_WGT" type="input"/>
  395. <col editable="false" ref="CUR_LOAD_LOC" type="input"/>
  396. <col editmode="input" ref="PLT_TRS_CAR_NO" type="combo" style="background-color:#ffff99; ">
  397. <choices>
  398. <item>
  399. <label>01</label>
  400. <value>01</value>
  401. </item>
  402. <item>
  403. <label>02</label>
  404. <value>02</value>
  405. </item>
  406. <item>
  407. <label>03</label>
  408. <value>03</value>
  409. </item>
  410. <item>
  411. <label>04</label>
  412. <value>04</value>
  413. </item>
  414. <item>
  415. <label>05</label>
  416. <value>05</value>
  417. </item>
  418. <item>
  419. <label>06</label>
  420. <value>06</value>
  421. </item>
  422. <item>
  423. <label>07</label>
  424. <value>07</value>
  425. </item>
  426. <item>
  427. <label>08</label>
  428. <value>08</value>
  429. </item>
  430. <item>
  431. <label>09</label>
  432. <value>09</value>
  433. </item>
  434. <item>
  435. <label>10</label>
  436. <value>10</value>
  437. </item>
  438. </choices>
  439. </col>
  440. <col ref="PLT_TRS_INVOICE_NO" type="input" style="background-color:#ffff99; "/>
  441. <col editmode="input" ref="PLT_TRS_INVOICE_NO_MANUAL" type="combo" style="background-color:#ffff99; ">
  442. <choices>
  443. <item>
  444. <label>01</label>
  445. <value>01</value>
  446. </item>
  447. <item>
  448. <label>02</label>
  449. <value>02</value>
  450. </item>
  451. <item>
  452. <label>03</label>
  453. <value>03</value>
  454. </item>
  455. <item>
  456. <label>04</label>
  457. <value>04</value>
  458. </item>
  459. <item>
  460. <label>05</label>
  461. <value>05</value>
  462. </item>
  463. <item>
  464. <label>06</label>
  465. <value>06</value>
  466. </item>
  467. <item>
  468. <label>07</label>
  469. <value>07</value>
  470. </item>
  471. <item>
  472. <label>08</label>
  473. <value>08</value>
  474. </item>
  475. <item>
  476. <label>09</label>
  477. <value>09</value>
  478. </item>
  479. <item>
  480. <label>10</label>
  481. <value>10</value>
  482. </item>
  483. <item>
  484. <label>11</label>
  485. <value>11</value>
  486. </item>
  487. </choices>
  488. </col>
  489. <col ref="PLT_PLANT_ARRV_LOC" type="combo" style="background-color:#ffff99; ">
  490. <choices>
  491. <item>
  492. <label>厚板厂</label>
  493. <value>hb</value>
  494. </item>
  495. <item>
  496. <label>中板厂</label>
  497. <value>zb</value>
  498. </item>
  499. <item>
  500. <label>外销</label>
  501. <value>lg</value>
  502. </item>
  503. </choices>
  504. </col>
  505. <col editable="false" ref="PLT_TRS_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss"/>
  506. <col ref="EXTSHAPE_GRD"/>
  507. <col ref="SLAB_INGR_DEC_GRD"/>
  508. <col ref="CRK_CD1" type="output"/>
  509. <col ref="CRK_CD2" type="output"/>
  510. <col ref="CRK_CD3" type="output"/>
  511. <col ref="CRK_CD4" type="output"/>
  512. <col ref="PLT_TRS_WKSHIFT" visibility="hidden"/>
  513. <col ref="PLT_TRS_WKGROUP" visibility="hidden"/>
  514. <col ref="PLT_TRS_EMP_ID" visibility="hidden"/>
  515. <col ref="HCR_CLF"/>
  516. <script type="javascript" ev:event="xforms-select">
  517. <![CDATA[
  518. xformSelect();
  519. ]]>
  520. </script>
  521. <script type="javascript" ev:event="xforms-deselect">
  522. <![CDATA[
  523. xformDeselect();
  524. ]]>
  525. </script>
  526. </datagrid>
  527. <datagrid id="datagrid2" nodeset="/root/datagrid2/PltTrsBlabNo_VO/PltTrsBlabNo_Row" allowuserresize="true" caption="选择^板坯号^钢码^合同号^板坯^板坯^板坯^板坯^车辆号^移送货单^目的地^移送日期^中厚板接收^板坯退回放置位置^移送状态^接收人^接收时间^热送区分|选择^板坯号^钢码^合同号^厚度^宽度^长度^重量^车辆号^移送货单^目的地^移送日期^中厚板接收^板坯退回放置位置^移送状态^接收人^接收时间^热送区分" colsep="^" colwidth="43, 91, 84, 70, 32, 33, 33, 51, 83, 89, 65, 88, 54, 90, 43, 45, 71, 100" defaultrows="18" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:310px; width:975px; height:300px; border-color:#000000; ">
  528. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  529. <col editable="false" ref="SLAB_NO" type="input"/>
  530. <col editable="false" ref="STL_GRD" type="input"/>
  531. <col editable="false" ref="ORD_NO" type="input"/>
  532. <col editable="false" ref="SLAB_THK" type="input"/>
  533. <col editable="false" ref="SLAB_WTH" type="input"/>
  534. <col editable="false" ref="SLAB_LEN" type="input"/>
  535. <col editable="false" ref="SLAB_WGT" type="input"/>
  536. <col editable="false" ref="PLT_TRS_CAR_NO" type="input"/>
  537. <col editable="false" ref="PLT_TRS_INVOICE_NO" type="input"/>
  538. <col disabled="true" ref="PLT_PLANT_ARRV_LOC" type="combo">
  539. <choices>
  540. <item>
  541. <label>厚板厂</label>
  542. <value>hb</value>
  543. </item>
  544. <item>
  545. <label>中板厂</label>
  546. <value>zb</value>
  547. </item>
  548. <item>
  549. <label>外销</label>
  550. <value>lg</value>
  551. </item>
  552. </choices>
  553. </col>
  554. <col editable="false" ref="PLT_TRS_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss"/>
  555. <col disabled="true" editable="false" ref="ZXISJS" type="combo">
  556. <choices>
  557. <item>
  558. <label>未接收</label>
  559. <value>0</value>
  560. </item>
  561. <item>
  562. <label>已接收</label>
  563. <value>1</value>
  564. </item>
  565. </choices>
  566. </col>
  567. <col ref="RTN_CUR_STORE_LOC" type="inputbutton" style="background-color:#ffff99; "/>
  568. <col disabled="true" ref="RECEV_FLAG" type="combo">
  569. <choices>
  570. <item>
  571. <label>等待</label>
  572. <value>0</value>
  573. </item>
  574. <item>
  575. <label>接收</label>
  576. <value>1</value>
  577. </item>
  578. <item>
  579. <label>退回</label>
  580. <value>2</value>
  581. </item>
  582. </choices>
  583. </col>
  584. <col editable="false" ref="RECEV_REG_ID" type="input"/>
  585. <col editable="false" ref="RECEV_DTIME" type="input"/>
  586. <col ref="HCR_CLF"/>
  587. <script type="javascript" ev:event="onbuttonclick">
  588. <![CDATA[
  589. call_righ_UIG040090();
  590. ]]>
  591. </script>
  592. <script type="javascript" ev:event="xforms-deselect">
  593. <![CDATA[
  594. datagrid2.rowStatus(datagrid2.row) = 0;
  595. ]]>
  596. </script>
  597. </datagrid>
  598. <caption id="caption5" class="cell" style="left:0px; top:265px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">移送日期</caption>
  599. <caption id="caption6" class="cell" style="left:0px; top:290px; width:80px; height:20px; font-weight:bold; border-color:#000000; ">车辆号</caption>
  600. <input id="input2" ref="/root/searchData/DTIME" inputtype="date" style="left:75px; top:265px; width:110px; height:20px; background-color:#ffff99; "/>
  601. <input id="input1" ref="/root/searchData/CAR_NO" style="left:75px; top:290px; width:110px; height:20px; background-color:#ffff99; "/>
  602. <input id="input3" ref="/root/searchData/INVOICE_NO" style="left:280px; top:265px; width:100px; height:20px; background-color:#ffff99; "/>
  603. <caption id="caption7" class="cell" style="left:195px; top:265px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">移送货单</caption>
  604. <button id="button3" visibility="hidden" style="left:890px; top:265px; width:65px; height:20px; border-color:#000000; ">
  605. <caption>中厚板退回</caption>
  606. <script type="javascript" ev:event="DOMActivate">
  607. <![CDATA[
  608. SaveReturn();
  609. ]]>
  610. </script>
  611. </button>
  612. <select id="checkbox1" ref="/root/searchData/HCR_CLF" class="cell" overflow="visible" appearance="full" style="left:102px; top:3px; width:80px; height:14px; border-style:none; ">
  613. <choices>
  614. <item>
  615. <label>是否热坯</label>
  616. <value>Y</value>
  617. </item>
  618. </choices>
  619. <script type="javascript" ev:event="xforms-value-changed">
  620. <![CDATA[
  621. find();
  622. ]]>
  623. </script>
  624. </select>
  625. <input id="combo4" ref="/root/searchData/SLAB_NO" editmode="input" appearance="minimal" style="left:260px; top:0px; width:105px; height:20px; background-color:#ffff99; border-color:#000000; "/>
  626. <caption id="caption11" class="cell" style="left:195px; top:0px; width:60px; height:20px; font-weight:bold; border-color:#000000; ">板坯号</caption>
  627. <button id="button2" style="left:800px; top:265px; width:80px; height:20px; border-color:#000000; ">
  628. <caption>移送退回</caption>
  629. <script type="javascript" ev:event="DOMActivate">
  630. <![CDATA[
  631. SaveReturn();//SaveError();因单按钮操作使用SaveError()删除数据有先后顺序容易出现问题 故改为SaveReturn()方法 jiangxin 20210927
  632. ]]>
  633. </script>
  634. </button>
  635. <caption id="caption12" class="cell" style="left:885px; top:290px; width:80px; height:20px; font-weight:bold; border-color:#000000; "/>
  636. <button id="button4" style="left:890px; top:290px; width:80px; height:20px; text-align:left; border-color:#000000; ">
  637. <caption>成分重新发送</caption>
  638. <script type="javascript" ev:event="DOMActivate">
  639. <![CDATA[
  640. chemResend();
  641. ]]>
  642. </script>
  643. </button>
  644. <datagrid id="datagrid3" nodeset="/root/datagrid3/PltBlabNo_VO/PltBlabNo_Row" visibility="hidden" scroll="both" allowuserresize="true" caption="选择^板坯号^钢码^合同号^炉次号^板坯^板坯^板坯^板坯^堆置位置^车辆号^移送货单^移送货单^目的地^移送日期^外观等级^成分判定等级^瑕疵代码1^瑕疵代码2^瑕疵代码3^瑕疵代码4^PLT_TRS_WKSHIFT^PLT_TRS_WKGROUP^PLT_TRS_EMP_ID^热送区分|选择^板坯号^钢码^合同号^炉次号^厚度^宽度^长度^重量^堆置位置^车辆号^移送货单^移送货单^目的地^移送日期^外观等级^成分判定等级^瑕疵代码1^瑕疵代码2^瑕疵代码3^瑕疵代码4^PLT_TRS_WKSHIFT^PLT_TRS_WKGROUP^PLT_TRS_EMP_ID^热送区分" colsep="^" colwidth="31, 100, 75, 100, 81, 39, 39, 38, 39, 70, 87, 83, 49, 51, 100, 39, 45, 100, 100, 100, 100, 100, 100, 100, 100" defaultrows="9" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:190px; top:415px; width:185px; height:100px; border-color:#000000; ">
  645. <col checkvalue="Y,N" ref="CHK" type="checkbox"/>
  646. <col editable="false" ref="SLAB_NO" type="input"/>
  647. <col editable="false" ref="STL_GRD" type="input"/>
  648. <col ref="L2_SCH_NO"/>
  649. <col editable="false" ref="CHARGE_NO" type="input"/>
  650. <col editable="false" ref="SLAB_THK" type="input"/>
  651. <col editable="false" ref="SLAB_WTH" type="input"/>
  652. <col editable="false" ref="SLAB_LEN" type="input"/>
  653. <col editable="false" ref="SLAB_WGT" type="input"/>
  654. <col editable="false" ref="CUR_LOAD_LOC" type="input"/>
  655. <col editmode="input" ref="PLT_TRS_CAR_NO" type="combo" style="background-color:#ffff99; ">
  656. <choices>
  657. <item>
  658. <label>01</label>
  659. <value>01</value>
  660. </item>
  661. <item>
  662. <label>02</label>
  663. <value>02</value>
  664. </item>
  665. <item>
  666. <label>03</label>
  667. <value>03</value>
  668. </item>
  669. <item>
  670. <label>04</label>
  671. <value>04</value>
  672. </item>
  673. <item>
  674. <label>05</label>
  675. <value>05</value>
  676. </item>
  677. <item>
  678. <label>06</label>
  679. <value>06</value>
  680. </item>
  681. <item>
  682. <label>07</label>
  683. <value>07</value>
  684. </item>
  685. <item>
  686. <label>08</label>
  687. <value>08</value>
  688. </item>
  689. <item>
  690. <label>09</label>
  691. <value>09</value>
  692. </item>
  693. <item>
  694. <label>10</label>
  695. <value>10</value>
  696. </item>
  697. </choices>
  698. </col>
  699. <col ref="PLT_TRS_INVOICE_NO" type="input" style="background-color:#ffff99; "/>
  700. <col editmode="input" ref="PLT_TRS_INVOICE_NO_MANUAL" type="combo" style="background-color:#ffff99; ">
  701. <choices>
  702. <item>
  703. <label>01</label>
  704. <value>01</value>
  705. </item>
  706. <item>
  707. <label>02</label>
  708. <value>02</value>
  709. </item>
  710. <item>
  711. <label>03</label>
  712. <value>03</value>
  713. </item>
  714. <item>
  715. <label>04</label>
  716. <value>04</value>
  717. </item>
  718. <item>
  719. <label>05</label>
  720. <value>05</value>
  721. </item>
  722. <item>
  723. <label>06</label>
  724. <value>06</value>
  725. </item>
  726. <item>
  727. <label>07</label>
  728. <value>07</value>
  729. </item>
  730. <item>
  731. <label>08</label>
  732. <value>08</value>
  733. </item>
  734. <item>
  735. <label>09</label>
  736. <value>09</value>
  737. </item>
  738. <item>
  739. <label>10</label>
  740. <value>10</value>
  741. </item>
  742. <item>
  743. <label>11</label>
  744. <value>11</value>
  745. </item>
  746. </choices>
  747. </col>
  748. <col ref="PLT_PLANT_ARRV_LOC" type="combo" style="background-color:#ffff99; ">
  749. <choices>
  750. <item>
  751. <label>厚板厂</label>
  752. <value>hb</value>
  753. </item>
  754. <item>
  755. <label>中板厂</label>
  756. <value>zb</value>
  757. </item>
  758. </choices>
  759. </col>
  760. <col editable="false" ref="PLT_TRS_DTIME" type="input" format="yyyy-mm-dd hh:nn:ss"/>
  761. <col ref="EXTSHAPE_GRD"/>
  762. <col ref="SLAB_INGR_DEC_GRD"/>
  763. <col ref="CRK_CD1" type="output"/>
  764. <col ref="CRK_CD2" type="output"/>
  765. <col ref="CRK_CD3" type="output"/>
  766. <col ref="CRK_CD4" type="output"/>
  767. <col ref="PLT_TRS_WKSHIFT" visibility="hidden"/>
  768. <col ref="PLT_TRS_WKGROUP" visibility="hidden"/>
  769. <col ref="PLT_TRS_EMP_ID" visibility="hidden"/>
  770. <col ref="HCR_CLF"/>
  771. <script type="javascript" ev:event="xforms-select">
  772. <![CDATA[
  773. xformSelect();
  774. ]]>
  775. </script>
  776. <script type="javascript" ev:event="xforms-deselect">
  777. <![CDATA[
  778. xformDeselect();
  779. ]]>
  780. </script>
  781. </datagrid>
  782. <caption id="caption13" class="cell" style="left:800px; top:290px; width:80px; height:20px; font-weight:bold; border-color:#000000; "/>
  783. <button id="button1" style="left:800px; top:290px; width:80px; height:20px; ">
  784. <caption>打印</caption>
  785. <script type="javascript" ev:event="DOMActivate">
  786. <![CDATA[
  787. model.removenode("/root/reqData");
  788. model.makeNode("/root/reqData");
  789. model.makeValue("/root/searchInfo/class","xin.glue.ui.B.LGLzkPrint");
  790. model.makeValue("/root/searchInfo/template" , "UIG000000");
  791. var slabnos = "";
  792. var slabnos1 = "";
  793. for(var i = datagrid2.fixedRows; i <= datagrid2.rows; i++)
  794. {
  795. slabnos1 = slabnos1 + datagrid2.valueMatrix(i , datagrid2.colRef("SLAB_NO"));
  796. if(datagrid2.valueMatrix(i , 0) == "Y")
  797. {
  798. slabnos = slabnos+datagrid2.valueMatrix(i , datagrid2.colRef("SLAB_NO"));
  799. }
  800. }
  801. //默认打印全部
  802. if(slabnos == "")
  803. {
  804. slabnos = slabnos1;
  805. }
  806. if(slabnos.length/13 > 7)
  807. {
  808. window.alert("一次打印不允许超过7行!" , "提示");
  809. return;
  810. }
  811. model.removenode("/root/printNode/SLABNOX");
  812. model.makeValue("/root/printNode/SLABNOX" , slabnos);
  813. model.makeValue("/root/searchInfo/REG_ID" , model.getValue("/root/initData/rcvInfo/REG_ID"));
  814. // model.makeValue("/root/searchData/PRINT_CHK" , combo5.value);
  815. // commSendReq("/root/searchInfo" , "/root/printNode/SLABNOX" , "/root/searchData");
  816. excelSubmit1("UIG040090-service", "findXXX");
  817. model.refresh();
  818. ]]>
  819. </script>
  820. </button>
  821. <caption id="caption14" class="cell" style="left:705px; top:265px; width:85px; height:20px; font-weight:bold; border-color:#000000; "/>
  822. <button id="button5" style="left:700px; top:265px; width:90px; height:20px; ">
  823. <caption>查询</caption>
  824. <script type="javascript" ev:event="DOMActivate">
  825. <![CDATA[
  826. if(input1.value.Trim() == "" && input2.value.Trim() == ""
  827. &&input3.value.Trim() == "" && input4.value.Trim() == "")
  828. {
  829. window.alert("数据量过大,请输入查询条件" , "提示");
  830. return;
  831. }
  832. model.removenode("/root/reqData");
  833. model.makeNode("/root/reqData");
  834. commSendReq("/root/searchData");
  835. input5.value = model.getValue("/root/initData/rcvInfo/REG_ID");
  836. commSubmit("UIG040090-service","find","glueAction.do");
  837. commAppendData("/root/datagrid2/PltTrsBlabNo_VO","/root/resData/PltTrsBlabNo_VO");
  838. model.refresh();
  839. ]]>
  840. </script>
  841. </button>
  842. <caption id="caption15" class="cell" style="left:195px; top:290px; width:85px; height:20px; font-weight:bold; border-color:#000000; ">板坯号</caption>
  843. <input id="input4" ref="/root/searchData/SLAB_NO_1" style="left:280px; top:290px; width:100px; height:20px; background-color:#ffff99; "/>
  844. <select1 id="combo5" ref="/root/searchData/PRINT_CHK" appearance="minimal" style="left:705px; top:290px; width:95px; height:20px; ">
  845. <choices>
  846. <item>
  847. <label>打印成分</label>
  848. <value>Y</value>
  849. </item>
  850. <item>
  851. <label>不打印成分</label>
  852. <value>N</value>
  853. </item>
  854. </choices>
  855. </select1>
  856. <input id="input5" ref="/root/saveData/PLT_TRS_EMP_NM" visibility="hidden" editable="false" style="left:410px; top:0px; width:45px; height:17px; background-color:#c0c0c0; "/>
  857. </xhtml:body>
  858. </xhtml:html>