dateplan.jsp 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. <%@ page contentType="text/html; charset=utf-8" session="false" %>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
  4. <head>
  5. <title>我的工作台</title>
  6. <%@ include file="../common/header.jsp" %>
  7. <script type="text/javascript" src="${contextPath }/js/calendar/WdatePicker.js"></script>
  8. <link type="text/css" rel="stylesheet" href="${contextPath}/css/themes/easyui.css" />
  9. <script type="text/javascript" src="${contextPath }/js/jquery.easyui.min.js"></script>
  10. <script type="text/javascript" language="javascript" src="${contextPath}/js/highslide.js"></script>
  11. <script type="text/javascript">
  12. var mydata,currentId="",loadfl2=0,loadfl3=0,loadfl4=0,loadfl5=0,loadfl6=0,loadfl7=0,loadfl8=0,loadfl9=0,loadfl10=0,loadfl11=0,loadfl12=0,loadfl13=0,loadfl14=0,loadfl15=0,loadfl16=0,panelCHeight=0,panelSHeight=0;
  13. $(document).ready( function() {
  14. $("input.datebox").bind("click", function() {WdatePicker();});
  15. setNowDate();
  16. loadList(); //加载jqgrid
  17. $("#dl1Result").load("${contextPath }/admin/recipeplan/plan1.html");
  18. $("#dl2Result").load("${contextPath }/admin/recipeplan/plan2.html");
  19. panelC = $("body").layout("panel","center").panel();
  20. panelCHeight = panelC.height();
  21. $("#list").jqGrid("setGridHeight",panelC.height()-125);
  22. $("#list").jqGrid("setGridWidth",document.body.clientWidth-30);
  23. $("body").layout("panel","south").panel({
  24. onClose: function(){
  25. panelC = $("body").layout("panel","center").panel();
  26. $("#list").jqGrid("setGridHeight",panelC.height()-120);
  27. $("#list").jqGrid("setGridWidth",document.body.clientWidth - 20);
  28. },
  29. onResize: function(){
  30. panelS = $("body").layout("panel","south").panel();
  31. panelCHeight = document.body.clientHeight - panelS.height();
  32. $("#list").jqGrid("setGridHeight",panelCHeight-200);
  33. $("#p1list").jqGrid("setGridHeight",panelS.height()-50);
  34. $("#p2list").jqGrid("setGridHeight",panelS.height()-50);
  35. $("#list").jqGrid("setGridWidth",document.body.clientWidth - 30);
  36. }
  37. });
  38. });
  39. $(window).resize(function(){
  40. $("#list").jqGrid("setGridWidth",document.body.clientWidth-20);
  41. });
  42. //jqgrid初始化
  43. function loadList(){
  44. jQuery("#list").jqGrid({
  45. datatype: "local", //从服务器端返回的数据类型,(表格期望接收的数据类型)。可选类型:xml,xmlstring,json,local,function
  46. height: 150, //高度
  47. colNames:["主键","计划名称","TMR", "驾驶员", "已执行", "班次", "发料顺序", "理论量", "时间","发料1","发料2","发料3","发料4","发料5","发料6","发料7","发料8","发料9","发料10","发料11","发料12","发料13","发料14","发料15","发料16"], //列名
  48. colModel:[
  49. {
  50. name: "ID",
  51. index: "ID",
  52. width: 1,
  53. align: "center",
  54. sorttype: "string",
  55. hidden: true
  56. },
  57. {
  58. name: "ProjName",
  59. index: "ProjName",
  60. width: 70,
  61. align: "center",
  62. sorttype: "string"
  63. },
  64. {
  65. name: "TNAME",
  66. index: "TNAME",
  67. width: 70,
  68. align: "center",
  69. sorttype: "int"
  70. },
  71. {
  72. name: "DNAME",
  73. index: "DNAME",
  74. width: 70,
  75. align: "center",
  76. sorttype: "int",
  77. editable: true,
  78. edittype: "select",
  79. editoptions:{
  80. dataUrl: "${contextPath }/admin/basicdata/tmrselect.html"
  81. }
  82. },
  83. {
  84. name: "HaveButton", //对应数据库字段
  85. index: "HaveButton", //按照哪个字段进行排序
  86. width: 70,
  87. align: "center", //显示位置
  88. sorttype: "string", //字段类型
  89. formatter: "checkbox",
  90. formatoptions: {disabled:true},
  91. edittype: "checkbox", //可以编辑的类型。可选值:text, textarea, select, checkbox, password, button, image and file.
  92. editoptions: {value:"Yes:No"} //默认值 和下拉框的默认值不同
  93. },
  94. {
  95. name: "Times",
  96. index: "Times",
  97. width: 70,
  98. align: "center",
  99. sorttype: "string"
  100. },
  101. {
  102. name: "Sort",
  103. index: "Sort",
  104. width: 70,
  105. align: "center",
  106. sorttype: "string"
  107. },
  108. {
  109. name: "LWEIGHT",
  110. index: "LWEIGHT",
  111. width: 70,
  112. align: "center",
  113. sorttype: "string"
  114. },
  115. {
  116. name: "beginTime",
  117. index: "beginTime",
  118. width: 70,
  119. align: "center",
  120. sorttype: "string"
  121. },
  122. {name: "FL1",index: "FL1",width: 70,align: "center",sorttype: "string"},
  123. {name: "FL2",index: "FL2",width: 70,align: "center",sorttype: "string"},
  124. {name: "FL3",index: "FL3",width: 70,align: "center",sorttype: "string"},
  125. {name: "FL4",index: "FL4",width: 70,align: "center",sorttype: "string"},
  126. {name: "FL5",index: "FL5",width: 70,align: "center",sorttype: "string"},
  127. {name: "FL6",index: "FL6",width: 70,align: "center",sorttype: "string"},
  128. {name: "FL7",index: "FL7",width: 70,align: "center",sorttype: "string"},
  129. {name: "FL8",index: "FL8",width: 70,align: "center",sorttype: "string"},
  130. {name: "FL9",index: "FL9",width: 70,align: "center",sorttype: "string"},
  131. {name: "FL10",index: "FL10",width: 70,align: "center",sorttype: "string"},
  132. {name: "FL11",index: "FL11",width: 80,align: "center",sorttype: "string"},
  133. {name: "FL12",index: "FL12",width: 80,align: "center",sorttype: "string"},
  134. {name: "FL13",index: "FL13",width: 80,align: "center",sorttype: "string"},
  135. {name: "FL14",index: "FL14",width: 80,align: "center",sorttype: "string"},
  136. {name: "FL15",index: "FL15",width: 80,align: "center",sorttype: "string"},
  137. {name: "FL16",index: "FL16",width: 80,align: "center",sorttype: "string"}
  138. ],
  139. cellEdit: true,
  140. cellsubmit: "clientArray", //当单元格发生变化后不直接发送请求、"remote"默认直接发送请求
  141. afterSaveCell: function(rowid,name,val,iRow,iCol) {
  142. var rowData = $("#list").jqGrid("getRowData",rowid);
  143. $.ajax({
  144. async: false,
  145. type: 'POST',
  146. dataType:'json', //返回类型jsond
  147. data: "ID="+rowData.ID+"&colValue="+val,
  148. url: "${contextPath }/admin/recipeplan/dateplanupdatedyg.html",
  149. error: function(){alert("系统错误");},
  150. success: function(json){
  151. }
  152. });
  153. },
  154. onSelectCell: function(rowid){
  155. var selId = $("#list").jqGrid("getGridParam","selrow"); //获取当前选中行号
  156. var rowData = $("#list").jqGrid("getRowData",selId); //获取当前选中行真实对象
  157. $("#currentpId").val(rowData.ID);
  158. if(currentId != rowData.ID){
  159. currentId = rowData.ID;
  160. $("#dl1Result").load("${contextPath }/admin/recipeplan/plan1.html");
  161. $("#dl2Result").load("${contextPath }/admin/recipeplan/plan2.html");
  162. }
  163. //获取该车次的类型
  164. getLpplanType();
  165. },
  166. afterEditCell: function(rowid){
  167. //$("#list").jqGrid("setGridHeight",$(window).height() - 340);
  168. var selId = $("#list").jqGrid("getGridParam","selrow"); //获取当前选中行号
  169. var rowData = $("#list").jqGrid("getRowData",selId); //获取当前选中行真实对象
  170. $("#currentpId").val(rowData.ID);
  171. if(currentId != rowData.ID){
  172. currentId = rowData.ID;
  173. $("#dl1Result").load("${contextPath }/admin/recipeplan/plan1.html");
  174. $("#dl2Result").load("${contextPath }/admin/recipeplan/plan2.html");
  175. }
  176. //获取该车次的类型
  177. getLpplanType();
  178. },
  179. pager: "#page", //#page分页控件绑定的位置对象
  180. pginput: false, //不显示分页文本框
  181. pgbuttons: false, //不显示翻页按钮
  182. autowidth: true, //自动调节宽度
  183. rowNum: 1000, //每页显示条数
  184. sortname: "SORT" //按SORT进行排序 默认asc
  185. });
  186. //获取数据集
  187. mydata = getLists();
  188. if(mydata!=null){
  189. for(var i=0;i<=mydata.length;i++){
  190. jQuery("#list").jqGrid('addRowData',i+1,mydata[i]);
  191. }
  192. jQuery("#list").jqGrid().trigger("reloadGrid"); //添加完数据后客户端自动刷新一次、实现客户端数据与服务器数据的完全分离
  193. }
  194. var ids = $("#list").jqGrid("getDataIDs");
  195. for ( var i = 0; i < ids.length; i++) {
  196. var rowData = $("#list").jqGrid("getRowData",ids[i]);
  197. var FL2 = rowData.FL2.length;
  198. var FL3 = rowData.FL3.length;
  199. var FL4 = rowData.FL4.length;
  200. var FL5 = rowData.FL5.length;
  201. var FL6 = rowData.FL6.length;
  202. var FL7 = rowData.FL7.length;
  203. var FL8 = rowData.FL8.length;
  204. var FL9 = rowData.FL9.length;
  205. var FL10 = rowData.FL10.length;
  206. var FL11 = rowData.FL11.length;
  207. var FL12 = rowData.FL12.length;
  208. var FL13 = rowData.FL13.length;
  209. var FL14 = rowData.FL14.length;
  210. var FL15 = rowData.FL15.length;
  211. var FL16 = rowData.FL16.length;
  212. if(FL2 > 0){
  213. loadfl2++;
  214. }
  215. if(FL3 > 0){
  216. loadfl3++;
  217. }
  218. if(FL4 > 0){
  219. loadfl4++;
  220. }
  221. if(FL5 > 0){
  222. loadfl5++;
  223. }
  224. if(FL6 > 0){
  225. loadfl6++;
  226. }
  227. if(FL7 > 0){
  228. loadfl7++;
  229. }
  230. if(FL8 > 0){
  231. loadfl8++;
  232. }
  233. if(FL9 > 0){
  234. loadfl9++;
  235. }
  236. if(FL10 > 0){
  237. loadfl10++;
  238. }
  239. if(FL11 > 0){
  240. loadfl11++;
  241. }
  242. if(FL12 > 0){
  243. loadfl12++;
  244. }
  245. if(FL13 > 0){
  246. loadfl13++;
  247. }
  248. if(FL14 > 0){
  249. loadfl14++;
  250. }
  251. if(FL15 > 0){
  252. loadfl15++;
  253. }
  254. if(FL16 > 0){
  255. loadfl16++;
  256. }
  257. }
  258. if(loadfl2 == 0){
  259. $("#list").jqGrid("hideCol","FL2");
  260. }else{
  261. $("#list").jqGrid("showCol","FL2");
  262. }
  263. if(loadfl3 == 0){
  264. $("#list").jqGrid("hideCol","FL3");
  265. }else{
  266. $("#list").jqGrid("showCol","FL3");
  267. }
  268. if(loadfl4 == 0){
  269. $("#list").jqGrid("hideCol","FL4");
  270. }else{
  271. $("#list").jqGrid("showCol","FL4");
  272. }
  273. if(loadfl5 == 0){
  274. $("#list").jqGrid("hideCol","FL5");
  275. }else{
  276. $("#list").jqGrid("showCol","FL5");
  277. }
  278. if(loadfl6 == 0){
  279. $("#list").jqGrid("hideCol","FL6");
  280. }else{
  281. $("#list").jqGrid("showCol","FL6");
  282. }
  283. if(loadfl7 == 0){
  284. $("#list").jqGrid("hideCol","FL7");
  285. }else{
  286. $("#list").jqGrid("showCol","FL7");
  287. }
  288. if(loadfl8 == 0){
  289. $("#list").jqGrid("hideCol","FL8");
  290. }else{
  291. $("#list").jqGrid("showCol","FL8");
  292. }
  293. if(loadfl9 == 0){
  294. $("#list").jqGrid("hideCol","FL9");
  295. }else{
  296. $("#list").jqGrid("showCol","FL9");
  297. }
  298. if(loadfl10 == 0){
  299. $("#list").jqGrid("hideCol","FL10");
  300. }else{
  301. $("#list").jqGrid("showCol","FL10");
  302. }
  303. if(loadfl11 == 0){
  304. $("#list").jqGrid("hideCol","FL11");
  305. }else{
  306. $("#list").jqGrid("showCol","FL11");
  307. }
  308. if(loadfl12 == 0){
  309. $("#list").jqGrid("hideCol","FL12");
  310. }else{
  311. $("#list").jqGrid("showCol","FL12");
  312. }
  313. if(loadfl13 == 0){
  314. $("#list").jqGrid("hideCol","FL13");
  315. }else{
  316. $("#list").jqGrid("showCol","FL13");
  317. }
  318. if(loadfl14 == 0){
  319. $("#list").jqGrid("hideCol","FL14");
  320. }else{
  321. $("#list").jqGrid("showCol","FL14");
  322. }
  323. if(loadfl15 == 0){
  324. $("#list").jqGrid("hideCol","FL15");
  325. }else{
  326. $("#list").jqGrid("showCol","FL15");
  327. }
  328. if(loadfl16 == 0){
  329. $("#list").jqGrid("hideCol","FL16");
  330. }else{
  331. $("#list").jqGrid("showCol","FL16");
  332. }
  333. }
  334. //获取服务器数据
  335. function getLists(){
  336. var nowDate = $("#dlDate").val();
  337. $.ajax({
  338. async: false,
  339. type: 'POST',
  340. dataType:'json', //返回类型json
  341. url: "${contextPath }/admin/recipeplan/dateplanlist.html?nowDate=" + nowDate,
  342. error: function(){alert("系统错误");},
  343. success: function(json){
  344. mydata = json;
  345. }
  346. });
  347. return mydata;
  348. }
  349. //新生成按钮
  350. function createNewPlan(){
  351. var nowDate = $("#dlDate").val();
  352. $.ajax({
  353. async: false,
  354. type: 'POST',
  355. dataType:'json', //返回类型json
  356. url: "${contextPath }/admin/recipeplan/createNewPlan.html?nowDate=" + nowDate,
  357. error: function(){alert("系统错误");},
  358. success: function(json){
  359. if(json.status == "success"){
  360. alert("更新完成");
  361. loadfl2=0,loadfl3=0,loadfl4=0,loadfl5=0,loadfl6=0,loadfl7=0,loadfl8=0,loadfl9=0,loadfl10=0,loadfl11=0,loadfl12=0,loadfl13=0,loadfl14=0,loadfl15=0,loadfl16=0;
  362. changeDate();
  363. }
  364. }
  365. });
  366. }
  367. //复制上次计划
  368. function copyPlan(){
  369. var nowDate = $("#dlDate").val();
  370. $.ajax({
  371. async: false,
  372. type: 'POST',
  373. dataType:'json', //返回类型json
  374. url: "${contextPath }/admin/recipeplan/copyPlan.html?nowDate=" + nowDate,
  375. error: function(){alert("系统错误");},
  376. success: function(json){
  377. if(json.status == "success"){
  378. alert("更新完成");
  379. loadfl2=0,loadfl3=0,loadfl4=0,loadfl5=0,loadfl6=0,loadfl7=0,loadfl8=0,loadfl9=0,loadfl10=0,loadfl11=0,loadfl12=0,loadfl13=0,loadfl14=0,loadfl15=0,loadfl16=0;
  380. changeDate();
  381. }
  382. }
  383. });
  384. }
  385. //初始化日期
  386. function setNowDate(){
  387. var myDate = new Date();
  388. var year = myDate.getFullYear();
  389. var month = myDate.getMonth()+1;
  390. var day = myDate.getDate();
  391. var nowdate = year + "-" + month + "-" + day;
  392. $("#dlDate").val(nowdate);
  393. }
  394. //日期改变重新加载数据
  395. function changeDate(){
  396. //清空主表数据重新加载一次
  397. $("#list").clearGridData();
  398. loadList();
  399. panelC = $("body").layout("panel","center").panel();
  400. panelS = $("body").layout("panel","south").panel();
  401. panelCHeight = $(window).height() - panelC.height();
  402. $("#list").jqGrid("setGridHeight",$(window).height()-panelCHeight-115);
  403. $("#list").jqGrid("setGridWidth",document.body.clientWidth - 30);
  404. }
  405. //发微博信息
  406. function SendWeibo(){
  407. $.ajax({
  408. async: false,
  409. type: 'POST',
  410. dataType:'json', //返回类型json
  411. url: "${contextPath }/admin/recipeplan/SendWeibo.html",
  412. error: function(){alert("系统错误");},
  413. success: function(json){
  414. if(json.status == "success"){
  415. alert("微博信息完成");
  416. }
  417. }
  418. });
  419. }
  420. //删除计划
  421. function deletePlan(){
  422. var selId = $("#list").jqGrid("getGridParam","selrow"); //获取当前选中行号
  423. var rowData = $("#list").jqGrid("getRowData",selId); //获取当前选中行真实对象
  424. if(selId != null){
  425. if (confirm("您确定要删除该计划吗?")){
  426. $.ajax({
  427. async: false,
  428. type: 'POST',
  429. dataType:'json', //返回类型json
  430. url: "${contextPath }/admin/recipeplan/deletePlan.html?planId="+rowData.ID,
  431. error: function(){alert("系统错误");},
  432. success: function(json){
  433. if(json.status == "success"){
  434. alert("删除成功");
  435. loadfl2=0,loadfl3=0,loadfl4=0,loadfl5=0,loadfl6=0,loadfl7=0,loadfl8=0,loadfl9=0,loadfl10=0,loadfl11=0,loadfl12=0,loadfl13=0,loadfl14=0,loadfl15=0,loadfl16=0;
  436. changeDate();
  437. $("#dl1Result").load("${contextPath }/admin/recipeplan/plan1.html");
  438. $("#dl2Result").load("${contextPath }/admin/recipeplan/plan2.html");
  439. }
  440. }
  441. });
  442. }
  443. }else{
  444. alert("请选择记录");
  445. }
  446. }
  447. function leftDate(){
  448. var beginDate = $("#dlDate").val();
  449. var newbDate = checkDate(beginDate,"left");
  450. $("#dlDate").val(newbDate);
  451. loadfl2=0,loadfl3=0,loadfl4=0,loadfl5=0,loadfl6=0,loadfl7=0,loadfl8=0,loadfl9=0,loadfl10=0,loadfl11=0,loadfl12=0,loadfl13=0,loadfl14=0,loadfl15=0,loadfl16=0;
  452. changeDate();
  453. }
  454. function rightDate(){
  455. var beginDate = $("#dlDate").val();
  456. var newbDate = checkDate(beginDate,"");
  457. $("#dlDate").val(newbDate);
  458. loadfl2=0,loadfl3=0,loadfl4=0,loadfl5=0,loadfl6=0,loadfl7=0,loadfl8=0,loadfl9=0,loadfl10=0,loadfl11=0,loadfl12=0,loadfl13=0,loadfl14=0,loadfl15=0,loadfl16=0;
  459. changeDate();
  460. }
  461. function datePlanReport(btnType){
  462. var bc1=document.getElementsByName("bc1");
  463. var bc2=document.getElementsByName("bc2");
  464. var bc3=document.getElementsByName("bc3");
  465. if(bc1[0].checked){bc1 = 1;}else{bc1 = 0;}
  466. if(bc2[0].checked){bc2 = 1;}else{bc2 = 0;}
  467. if(bc3[0].checked){bc3 = 1;}else{bc3 = 0;}
  468. var beginDate = $("#dlDate").val();
  469. var selectId = $("#selectId").val();
  470. var xssort=document.getElementsByName("xssort");
  471. if(xssort[0].checked){xssort = 1;}else{xssort = 0;}
  472. document.getElementById("id_datePlan").setAttribute("href","${contextPath}/admin/recipeplan/dateplanreport.html?beginDate="+beginDate+"&selectId="+selectId+"&bc1="+bc1+"&bc2="+bc2+"&bc3="+bc3+"&btnType="+btnType+"&xssort="+xssort);
  473. document.getElementById("id_datePlan").click();
  474. }
  475. //记录移动
  476. function moveDatePlan(moveType){
  477. var nowDate = $("#dlDate").val();
  478. var selId = $("#list").jqGrid("getGridParam","selrow"); //获取当前选中行号
  479. var rowData = $("#list").jqGrid("getRowData",selId); //获取当前选中行真实对象
  480. if(selId != null){
  481. $.ajax({
  482. async: false,
  483. type: 'POST',
  484. dataType:'json', //返回类型json
  485. url: "${contextPath }/admin/recipeplan/moveDatePlan.html?planId="+rowData.ID+"&moveType="+moveType+"&Sort="+rowData.Sort+"&nowDate="+nowDate,
  486. error: function(){alert("系统错误");},
  487. success: function(json){
  488. if(json.status == "success"){
  489. if(moveType == "top"){
  490. selId = Number(selId) - 1;
  491. }else{
  492. selId = Number(selId) + 1;
  493. }
  494. loadfl2=0,loadfl3=0,loadfl4=0,loadfl5=0,loadfl6=0,loadfl7=0,loadfl8=0,loadfl9=0,loadfl10=0,loadfl11=0,loadfl12=0,loadfl13=0,loadfl14=0,loadfl15=0,loadfl16=0;
  495. changeDate();
  496. }else{
  497. alert("请正确移动");
  498. }
  499. }
  500. });
  501. $("#list").jqGrid("setSelection",selId);
  502. panelC = $("body").layout("panel","center").panel();
  503. panelS = $("body").layout("panel","south").panel();
  504. panelCHeight = $(window).height() - panelC.height();
  505. $("#list").jqGrid("setGridHeight",$(window).height()-panelCHeight-115);
  506. }else{
  507. alert("请选择记录");
  508. }
  509. }
  510. //获取该车次的类型
  511. function getLpplanType(){
  512. var selId = $("#list").jqGrid("getGridParam","selrow"); //获取当前选中行号
  513. var rowData = $("#list").jqGrid("getRowData",selId); //获取当前选中行真实对象
  514. $.ajax({
  515. async: false,
  516. type: 'POST',
  517. dataType:'json', //返回类型json
  518. data: "ID="+rowData.ID,
  519. url: "${contextPath }/admin/recipeplan/getLpplanType.html",
  520. error: function(){alert("系统错误");},
  521. success: function(json){
  522. if(json.status == "success"){
  523. $("#lpplanType").val(json.lpplanType);
  524. }
  525. }
  526. });
  527. }
  528. function deleteList(e){
  529. iframeBox(e, {
  530. src:"${contextPath}/admin/recipeplan/lpplandel.html",
  531. width:900,
  532. height:450
  533. });
  534. }
  535. function hsClose(){
  536. closeBox();
  537. }
  538. </script>
  539. </head>
  540. <body style="background-color: #E0E0E0;" class="easyui-layout">
  541. <div region="center" title="日执行计划" style="padding:5px;background:#eee;">
  542. <a id="id_datePlan" href="" target="_blank"></a>
  543. <input type="hidden" id="currentpId" name="currentpId" value="" />
  544. <input type="hidden" id="lpplanType" name="lpplanType" value="" />
  545. <table cellspacing="1" cellpadding="0" border="0" style="width: 99%;">
  546. <tr>
  547. <td style="width:150px;"><input id="dlDate" name="dlDate" style="width:100px;" class="datebox" value="" onchange="changeDate()" /></td>
  548. <td style="width:100px;"><input type="button" value="新生成" onclick="createNewPlan()" class="sysub" /></td>
  549. <td style="width:100px;"><input type="button" value="复制上次" onclick="copyPlan()" class="sysub" /></td>
  550. <td rowspan="2" style="width:120px;">
  551. <select id="selectId" multiple="multiple" style="width:100px;height:60px;">
  552. <option value="1" selected="selected">所有</option>
  553. <option value="2">精料</option>
  554. <option value="3">铲车</option>
  555. </select>
  556. </td>
  557. <td>
  558. <input id="bc1" name="bc1" type="checkbox" value="1" checked="checked"><label for="bc1">早</label></input>
  559. <input id="bc2" name="bc2" type="checkbox" value="2" checked="checked"><label for="bc2">中</label></input>
  560. <input id="bc3" name="bc3" type="checkbox" value="3" checked="checked"><label for="bc3">晚</label></input>
  561. <input name="xssort" id="flsx" type="radio" value="1" checked="checked" /><label for="flsx">发料顺序</label>
  562. <input name="xssort" id="tmr" type="radio" value="2" /><label for="tmr">TMR</label>
  563. </td>
  564. </tr>
  565. <tr>
  566. <td>
  567. <input type="button" value="<" onclick="leftDate();" />
  568. <input type="button" value=">" onclick="rightDate();" />
  569. <input type="button" value="↑" onclick="moveDatePlan('top');" />
  570. <input type="button" value="↓" onclick="moveDatePlan('down');" />
  571. </td>
  572. <td>
  573. <input type="button" value="删除计划" onclick="deletePlan()" class="sysub" />
  574. <!-- <input type="button" value="发微博信息" onclick="SendWeibo()" class="sysub" /> -->
  575. </td>
  576. <td>
  577. <input type="button" value="垃圾箱" onclick="deleteList(this)" class="sysub" />
  578. </td>
  579. <td>
  580. <input type="button" value="投料简打" onclick="datePlanReport(0)" class="sysub"/>
  581. <input type="button" value="累加投料" onclick="datePlanReport(1)" class="sysub" />
  582. <input type="button" value="发料简打" onclick="datePlanReport(2)" class="sysub" />
  583. <input type="button" value="投发料简打" onclick="datePlanReport(3)" class="sysub" />
  584. <input type="button" value="投发料累加" onclick="datePlanReport(5)" class="sysub" />
  585. <input type="button" value="包装简打" onclick="datePlanReport(4)" class="sysub" />
  586. <input type="button" value="实发简打" onclick="datePlanReport(6)" class="sysub" />
  587. </td>
  588. </tr>
  589. <tr>
  590. <td colspan="5"><table id="list"></table><div id="page"></div></td>
  591. </tr>
  592. </table>
  593. </div>
  594. <div region="south" split="true" title="计划内容" style="padding:5px;height:270px;">
  595. <table cellspacing="0" cellpadding="0" border="0" style="width: 99%;">
  596. <tr>
  597. <td width="49%"><div id="dl1Result"></div></td>
  598. <td width="50%"><div id="dl2Result"></div></td>
  599. </tr>
  600. </table>
  601. </div>
  602. </body>
  603. </html>