ca41aeebc72e9b659c9c7be8d82eff70d4d47ec9.svn-base 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="../../css/body.css" type="text/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[炼钢作业 >> 炼钢标准 >> 作业班次登录与查询(UIG060020)]]>
  7. </xhtml:title>
  8. <model id="model1">
  9. <instance id="instance1">
  10. <root xmlns="">
  11. <fromData>
  12. <year/>
  13. <month/>
  14. <FAC_CD/>
  15. <PROC_CD/>
  16. </fromData>
  17. <data>
  18. <item>
  19. <seq>晚班</seq>
  20. <S01S/>
  21. <S02S/>
  22. <S03S/>
  23. <S04S/>
  24. <S05S/>
  25. <S06S/>
  26. <S07S/>
  27. <S08S/>
  28. <S09S/>
  29. <S10S/>
  30. <S11S/>
  31. <S12S/>
  32. <S13S/>
  33. <S14S/>
  34. <S15S/>
  35. <S16S/>
  36. <S17S/>
  37. <S18S/>
  38. <S19S/>
  39. <S20S/>
  40. <S21S/>
  41. <S22S/>
  42. <S23S/>
  43. <S24S/>
  44. <S25S/>
  45. <S26S/>
  46. <S27S/>
  47. <S28S/>
  48. <S29S/>
  49. <S30S/>
  50. <S31S/>
  51. </item>
  52. <item>
  53. <seq>早班</seq>
  54. <S01S/>
  55. <S02S/>
  56. <S03S/>
  57. <S04S/>
  58. <S05S/>
  59. <S06S/>
  60. <S07S/>
  61. <S08S/>
  62. <S09S/>
  63. <S10S/>
  64. <S11S/>
  65. <S12S/>
  66. <S13S/>
  67. <S14S/>
  68. <S15S/>
  69. <S16S/>
  70. <S17S/>
  71. <S18S/>
  72. <S19S/>
  73. <S20S/>
  74. <S21S/>
  75. <S22S/>
  76. <S23S/>
  77. <S24S/>
  78. <S25S/>
  79. <S26S/>
  80. <S27S/>
  81. <S28S/>
  82. <S29S/>
  83. <S30S/>
  84. <S31S/>
  85. </item>
  86. <item>
  87. <seq>中班</seq>
  88. <S01S/>
  89. <S02S/>
  90. <S03S/>
  91. <S04S/>
  92. <S05S/>
  93. <S06S/>
  94. <S07S/>
  95. <S08S/>
  96. <S09S/>
  97. <S10S/>
  98. <S11S/>
  99. <S12S/>
  100. <S13S/>
  101. <S14S/>
  102. <S15S/>
  103. <S16S/>
  104. <S17S/>
  105. <S18S/>
  106. <S19S/>
  107. <S20S/>
  108. <S21S/>
  109. <S22S/>
  110. <S23S/>
  111. <S24S/>
  112. <S25S/>
  113. <S26S/>
  114. <S27S/>
  115. <S28S/>
  116. <S29S/>
  117. <S30S/>
  118. <S31S/>
  119. </item>
  120. <item>
  121. <seq>休息</seq>
  122. <S01S/>
  123. <S02S/>
  124. <S03S/>
  125. <S04S/>
  126. <S05S/>
  127. <S06S/>
  128. <S07S/>
  129. <S08S/>
  130. <S09S/>
  131. <S10S/>
  132. <S11S/>
  133. <S12S/>
  134. <S13S/>
  135. <S14S/>
  136. <S15S/>
  137. <S16S/>
  138. <S17S/>
  139. <S18S/>
  140. <S19S/>
  141. <S20S/>
  142. <S21S/>
  143. <S22S/>
  144. <S23S/>
  145. <S24S/>
  146. <S25S/>
  147. <S26S/>
  148. <S27S/>
  149. <S28S/>
  150. <S29S/>
  151. <S30S/>
  152. <S31S/>
  153. </item>
  154. </data>
  155. <tempData>
  156. <PROC_CD/>
  157. <GR_YYYYMM/>
  158. <GR_DD/>
  159. <GR_SHIFT/>
  160. <GR_GROUP_CD/>
  161. </tempData>
  162. <searchData/>
  163. <initData>
  164. <LG_CD>F01002,F01006</LG_CD>
  165. </initData>
  166. <codeData/>
  167. </root>
  168. </instance>
  169. <script type="javascript" ev:event="xforms-ready">
  170. <![CDATA[
  171. initPage();
  172. ]]>
  173. </script>
  174. </model>
  175. <script type="javascript" src="../../js/boaCommon.js"/>
  176. <script type="javascript" src="../../js/G02.js"/>
  177. <script type="javascript">
  178. <![CDATA[
  179. var DAYS = 0;
  180. function initPage(){
  181. commSendReq("/root/initData");
  182. commSubmit("UIGCOMMCODE-service","find","glueAction.do");
  183. model.copyNode("/root/codeData","/root/resData");
  184. model.setValue("/root/fromData/year",CurentYear());
  185. model.setValue("/root/fromData/month",CurentMonth());
  186. model.refresh();
  187. }
  188. function find()
  189. {
  190. var yearTg = model1.getValue("/root/fromData/year");
  191. var monthTg = model1.getValue("/root/fromData/month");
  192. if((monthTg == 1)|| (monthTg == 3) || (monthTg == 5) || (monthTg == 7) || (monthTg == 8) || (monthTg == 10) || (monthTg == 12))
  193. {
  194. DAYS = 31;
  195. }
  196. else if(monthTg == 2)
  197. {
  198. if((yearTg % 400 == 0)||(yearTg % 4 == 0)&&(yearTg % 100 != 0))
  199. DAYS = 29
  200. else
  201. DAYS = 28;
  202. }
  203. else
  204. {
  205. DAYS = 30;
  206. }
  207. datagrid1.colHidden(datagrid1.colRef("S29S"))=datagrid1.colHidden(datagrid1.colRef("S30S"))=datagrid1.colHidden(datagrid1.colRef("S31S"))=false;
  208. //我操! 没见过这么傻X的语句,能不能用什么方法把这三个隐藏还原???
  209. if(DAYS == 30)
  210. {
  211. datagrid1.colHidden(datagrid1.colRef("S31S"))= true;
  212. }
  213. else if(DAYS == 29)
  214. {
  215. datagrid1.colHidden(datagrid1.colRef("S31S"))= true;
  216. datagrid1.colHidden(datagrid1.colRef("S30S"))= true;
  217. }
  218. else if(DAYS == 28)
  219. {
  220. datagrid1.colHidden(datagrid1.colRef("S31S"))= true;
  221. datagrid1.colHidden(datagrid1.colRef("S30S"))= true;
  222. datagrid1.colHidden(datagrid1.colRef("S29S"))= true;
  223. }
  224. var yearTg = model1.getValue("/root/fromData/year");
  225. var monthTg
  226. model1.removenode("/root/reqData");
  227. model1.makeNode("/root/reqData");
  228. // 月份为10以下时 前面加0
  229. if(monthTg.length < 2){
  230. monthTg = "0" + monthTg;
  231. }
  232. model1.makeValue("/root/reqData/GR_YYYYMM",yearTg + monthTg);
  233. model1.makeValue("/root/reqData/PROC_CD",model1.getValue("/root/fromData/facStl"));
  234. commSubmit("UIG060020-service","find","glueAction.do");
  235. var resNode = instance1.selectSingleNode("/root/resData/searchShiftResult_VO");
  236. if(!resNode.childNodes.length > 0){
  237. alert("这个月的班次尚未编制");
  238. }
  239. else{
  240. var i = 0;
  241. var dateShift = "";
  242. var shiftNo = "";
  243. var shiftValue = "";
  244. var childNodeLen = resNode.childNodes.length;
  245. for(i = 1 ; i <= childNodeLen ; i++)
  246. {
  247. var dateShift = model1.getValue("/root/resData/searchShiftResult_VO/searchShiftResult_Row[" + i + "]/GR_DD");
  248. var shiftNo = model1.getValue("/root/resData/searchShiftResult_VO/searchShiftResult_Row[" + i + "]/GR_SHIFT");
  249. var shiftValue = model1.getValue("/root/resData/searchShiftResult_VO/searchShiftResult_Row[" + i + "]/GR_GROUP_CD");
  250. datagrid1.valueMatrix(parseInt(shiftNo) + 1,dateShift) = shiftValue;
  251. }
  252. datagrid1.rebuild();
  253. }
  254. }
  255. function save()
  256. {
  257. // 循环获得每个月每天每个班次对应的工作组
  258. for(var i = 0 ; i < DAYS ; i++)
  259. {
  260. for(var j = 0 ; j < 4 ; j++)
  261. {
  262. var monthValue = model1.getValue("/root/fromData/month");
  263. // 月份小于10时候 ,前面加0
  264. if(monthValue.length < 2){
  265. monthValue = "0" + monthValue;
  266. }
  267. model1.makeValue("/root/tempData/PROC_CD",model1.getValue("/root/fromData/facStl"));
  268. model1.makeValue("/root/tempData/GR_YYYYMM",model1.getValue("/root/fromData/year") + monthValue);
  269. // 数组下标是从0开始,每个月从一开始,所以加一
  270. if(i < 9){
  271. model1.makeValue("/root/tempData/GR_DD","0" + (i + 1));}
  272. else{
  273. model1.makeValue("/root/tempData/GR_DD",i + 1);
  274. }
  275. // 数组下标加一
  276. model1.makeValue("/root/tempData/GR_SHIFT",j + 1);
  277. var focuRow = j + (datagrid1.fixedRows - 1) + 1;
  278. var focuCol = i + 1;
  279. var group = datagrid1.valueMatrix(focuRow,focuCol);
  280. model1.makeValue("/root/tempData/GR_GROUP",group);
  281. model.duplicate("/root/searchData","/root/tempData");
  282. }
  283. }
  284. commSendReq("/root/searchData");
  285. commSubmit("UIG060020-service","save","glueAction.do");
  286. }
  287. ]]>
  288. </script>
  289. </xhtml:head>
  290. <xhtml:body guideline="1,980;" style="font-family:宋体; ">
  291. <datagrid id="datagrid1" nodeset="/root/data/item" caption="^01^02^03^04^05^06^07^08^09^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31" colsep="^" colwidth="48, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30" defaultrows="6" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:55px; width:980px; height:550px; ">
  292. <col ref="seq"/>
  293. <col ref="S01S" type="combo">
  294. <choices>
  295. <item>
  296. <label>甲</label>
  297. <value>A</value>
  298. </item>
  299. <item>
  300. <label>乙</label>
  301. <value>B</value>
  302. </item>
  303. <item>
  304. <label>丙</label>
  305. <value>C</value>
  306. </item>
  307. <item>
  308. <label>丁</label>
  309. <value>D</value>
  310. </item>
  311. </choices>
  312. </col>
  313. <col ref="S02S" type="combo">
  314. <choices>
  315. <item>
  316. <label>甲</label>
  317. <value>A</value>
  318. </item>
  319. <item>
  320. <label>乙</label>
  321. <value>B</value>
  322. </item>
  323. <item>
  324. <label>丙</label>
  325. <value>C</value>
  326. </item>
  327. <item>
  328. <label>丁</label>
  329. <value>D</value>
  330. </item>
  331. </choices>
  332. </col>
  333. <col ref="S03S" type="combo">
  334. <choices>
  335. <item>
  336. <label>甲</label>
  337. <value>A</value>
  338. </item>
  339. <item>
  340. <label>乙</label>
  341. <value>B</value>
  342. </item>
  343. <item>
  344. <label>丙</label>
  345. <value>C</value>
  346. </item>
  347. <item>
  348. <label>丁</label>
  349. <value>D</value>
  350. </item>
  351. </choices>
  352. </col>
  353. <col ref="S04S" type="combo">
  354. <choices>
  355. <item>
  356. <label>甲</label>
  357. <value>A</value>
  358. </item>
  359. <item>
  360. <label>乙</label>
  361. <value>B</value>
  362. </item>
  363. <item>
  364. <label>丙</label>
  365. <value>C</value>
  366. </item>
  367. <item>
  368. <label>丁</label>
  369. <value>D</value>
  370. </item>
  371. </choices>
  372. </col>
  373. <col ref="S05S" type="combo">
  374. <choices>
  375. <item>
  376. <label>甲</label>
  377. <value>A</value>
  378. </item>
  379. <item>
  380. <label>乙</label>
  381. <value>B</value>
  382. </item>
  383. <item>
  384. <label>丙</label>
  385. <value>C</value>
  386. </item>
  387. <item>
  388. <label>丁</label>
  389. <value>D</value>
  390. </item>
  391. </choices>
  392. </col>
  393. <col ref="S06S" type="combo">
  394. <choices>
  395. <item>
  396. <label>甲</label>
  397. <value>A</value>
  398. </item>
  399. <item>
  400. <label>乙</label>
  401. <value>B</value>
  402. </item>
  403. <item>
  404. <label>丙</label>
  405. <value>C</value>
  406. </item>
  407. <item>
  408. <label>丁</label>
  409. <value>D</value>
  410. </item>
  411. </choices>
  412. </col>
  413. <col ref="S07S" type="combo">
  414. <choices>
  415. <item>
  416. <label>甲</label>
  417. <value>A</value>
  418. </item>
  419. <item>
  420. <label>乙</label>
  421. <value>B</value>
  422. </item>
  423. <item>
  424. <label>丙</label>
  425. <value>C</value>
  426. </item>
  427. <item>
  428. <label>丁</label>
  429. <value>D</value>
  430. </item>
  431. </choices>
  432. </col>
  433. <col ref="S08S" type="combo">
  434. <choices>
  435. <item>
  436. <label>甲</label>
  437. <value>A</value>
  438. </item>
  439. <item>
  440. <label>乙</label>
  441. <value>B</value>
  442. </item>
  443. <item>
  444. <label>丙</label>
  445. <value>C</value>
  446. </item>
  447. <item>
  448. <label>丁</label>
  449. <value>D</value>
  450. </item>
  451. </choices>
  452. </col>
  453. <col ref="S09S" type="combo">
  454. <choices>
  455. <item>
  456. <label>甲</label>
  457. <value>A</value>
  458. </item>
  459. <item>
  460. <label>乙</label>
  461. <value>B</value>
  462. </item>
  463. <item>
  464. <label>丙</label>
  465. <value>C</value>
  466. </item>
  467. <item>
  468. <label>丁</label>
  469. <value>D</value>
  470. </item>
  471. </choices>
  472. </col>
  473. <col ref="S10S" type="combo">
  474. <choices>
  475. <item>
  476. <label>甲</label>
  477. <value>A</value>
  478. </item>
  479. <item>
  480. <label>乙</label>
  481. <value>B</value>
  482. </item>
  483. <item>
  484. <label>丙</label>
  485. <value>C</value>
  486. </item>
  487. <item>
  488. <label>丁</label>
  489. <value>D</value>
  490. </item>
  491. </choices>
  492. </col>
  493. <col ref="S11S" type="combo">
  494. <choices>
  495. <item>
  496. <label>甲</label>
  497. <value>A</value>
  498. </item>
  499. <item>
  500. <label>乙</label>
  501. <value>B</value>
  502. </item>
  503. <item>
  504. <label>丙</label>
  505. <value>C</value>
  506. </item>
  507. <item>
  508. <label>丁</label>
  509. <value>D</value>
  510. </item>
  511. </choices>
  512. </col>
  513. <col ref="S12S" type="combo">
  514. <choices>
  515. <item>
  516. <label>甲</label>
  517. <value>A</value>
  518. </item>
  519. <item>
  520. <label>乙</label>
  521. <value>B</value>
  522. </item>
  523. <item>
  524. <label>丙</label>
  525. <value>C</value>
  526. </item>
  527. <item>
  528. <label>丁</label>
  529. <value>D</value>
  530. </item>
  531. </choices>
  532. </col>
  533. <col ref="S13S" type="combo">
  534. <choices>
  535. <item>
  536. <label>甲</label>
  537. <value>A</value>
  538. </item>
  539. <item>
  540. <label>乙</label>
  541. <value>B</value>
  542. </item>
  543. <item>
  544. <label>丙</label>
  545. <value>C</value>
  546. </item>
  547. <item>
  548. <label>丁</label>
  549. <value>D</value>
  550. </item>
  551. </choices>
  552. </col>
  553. <col ref="S14S" type="combo">
  554. <choices>
  555. <item>
  556. <label>甲</label>
  557. <value>A</value>
  558. </item>
  559. <item>
  560. <label>乙</label>
  561. <value>B</value>
  562. </item>
  563. <item>
  564. <label>丙</label>
  565. <value>C</value>
  566. </item>
  567. <item>
  568. <label>丁</label>
  569. <value>D</value>
  570. </item>
  571. </choices>
  572. </col>
  573. <col ref="S15S" type="combo">
  574. <choices>
  575. <item>
  576. <label>甲</label>
  577. <value>A</value>
  578. </item>
  579. <item>
  580. <label>乙</label>
  581. <value>B</value>
  582. </item>
  583. <item>
  584. <label>丙</label>
  585. <value>C</value>
  586. </item>
  587. <item>
  588. <label>丁</label>
  589. <value>D</value>
  590. </item>
  591. </choices>
  592. </col>
  593. <col ref="S16S" type="combo">
  594. <choices>
  595. <item>
  596. <label>甲</label>
  597. <value>A</value>
  598. </item>
  599. <item>
  600. <label>乙</label>
  601. <value>B</value>
  602. </item>
  603. <item>
  604. <label>丙</label>
  605. <value>C</value>
  606. </item>
  607. <item>
  608. <label>丁</label>
  609. <value>D</value>
  610. </item>
  611. </choices>
  612. </col>
  613. <col ref="S17S" type="combo">
  614. <choices>
  615. <item>
  616. <label>甲</label>
  617. <value>A</value>
  618. </item>
  619. <item>
  620. <label>乙</label>
  621. <value>B</value>
  622. </item>
  623. <item>
  624. <label>丙</label>
  625. <value>C</value>
  626. </item>
  627. <item>
  628. <label>丁</label>
  629. <value>D</value>
  630. </item>
  631. </choices>
  632. </col>
  633. <col ref="S18S" type="combo">
  634. <choices>
  635. <item>
  636. <label>甲</label>
  637. <value>A</value>
  638. </item>
  639. <item>
  640. <label>乙</label>
  641. <value>B</value>
  642. </item>
  643. <item>
  644. <label>丙</label>
  645. <value>C</value>
  646. </item>
  647. <item>
  648. <label>丁</label>
  649. <value>D</value>
  650. </item>
  651. </choices>
  652. </col>
  653. <col ref="S19S" type="combo">
  654. <choices>
  655. <item>
  656. <label>甲</label>
  657. <value>A</value>
  658. </item>
  659. <item>
  660. <label>乙</label>
  661. <value>B</value>
  662. </item>
  663. <item>
  664. <label>丙</label>
  665. <value>C</value>
  666. </item>
  667. <item>
  668. <label>丁</label>
  669. <value>D</value>
  670. </item>
  671. </choices>
  672. </col>
  673. <col ref="S20S" type="combo">
  674. <choices>
  675. <item>
  676. <label>甲</label>
  677. <value>A</value>
  678. </item>
  679. <item>
  680. <label>乙</label>
  681. <value>B</value>
  682. </item>
  683. <item>
  684. <label>丙</label>
  685. <value>C</value>
  686. </item>
  687. <item>
  688. <label>丁</label>
  689. <value>D</value>
  690. </item>
  691. </choices>
  692. </col>
  693. <col ref="S21S" type="combo">
  694. <choices>
  695. <item>
  696. <label>甲</label>
  697. <value>A</value>
  698. </item>
  699. <item>
  700. <label>乙</label>
  701. <value>B</value>
  702. </item>
  703. <item>
  704. <label>丙</label>
  705. <value>C</value>
  706. </item>
  707. <item>
  708. <label>丁</label>
  709. <value>D</value>
  710. </item>
  711. </choices>
  712. </col>
  713. <col ref="S22S" type="combo">
  714. <choices>
  715. <item>
  716. <label>甲</label>
  717. <value>A</value>
  718. </item>
  719. <item>
  720. <label>乙</label>
  721. <value>B</value>
  722. </item>
  723. <item>
  724. <label>丙</label>
  725. <value>C</value>
  726. </item>
  727. <item>
  728. <label>丁</label>
  729. <value>D</value>
  730. </item>
  731. </choices>
  732. </col>
  733. <col ref="S23S" type="combo">
  734. <choices>
  735. <item>
  736. <label>甲</label>
  737. <value>A</value>
  738. </item>
  739. <item>
  740. <label>乙</label>
  741. <value>B</value>
  742. </item>
  743. <item>
  744. <label>丙</label>
  745. <value>C</value>
  746. </item>
  747. <item>
  748. <label>丁</label>
  749. <value>D</value>
  750. </item>
  751. </choices>
  752. </col>
  753. <col ref="S24S" type="combo">
  754. <choices>
  755. <item>
  756. <label>甲</label>
  757. <value>A</value>
  758. </item>
  759. <item>
  760. <label>乙</label>
  761. <value>B</value>
  762. </item>
  763. <item>
  764. <label>丙</label>
  765. <value>C</value>
  766. </item>
  767. <item>
  768. <label>丁</label>
  769. <value>D</value>
  770. </item>
  771. </choices>
  772. </col>
  773. <col ref="S25S" type="combo">
  774. <choices>
  775. <item>
  776. <label>甲</label>
  777. <value>A</value>
  778. </item>
  779. <item>
  780. <label>乙</label>
  781. <value>B</value>
  782. </item>
  783. <item>
  784. <label>丙</label>
  785. <value>C</value>
  786. </item>
  787. <item>
  788. <label>丁</label>
  789. <value>D</value>
  790. </item>
  791. </choices>
  792. </col>
  793. <col ref="S26S" type="combo">
  794. <choices>
  795. <item>
  796. <label>甲</label>
  797. <value>A</value>
  798. </item>
  799. <item>
  800. <label>乙</label>
  801. <value>B</value>
  802. </item>
  803. <item>
  804. <label>丙</label>
  805. <value>C</value>
  806. </item>
  807. <item>
  808. <label>丁</label>
  809. <value>D</value>
  810. </item>
  811. </choices>
  812. </col>
  813. <col ref="S27S" type="combo">
  814. <choices>
  815. <item>
  816. <label>甲</label>
  817. <value>A</value>
  818. </item>
  819. <item>
  820. <label>乙</label>
  821. <value>B</value>
  822. </item>
  823. <item>
  824. <label>丙</label>
  825. <value>C</value>
  826. </item>
  827. <item>
  828. <label>丁</label>
  829. <value>D</value>
  830. </item>
  831. </choices>
  832. </col>
  833. <col ref="S28S" type="combo">
  834. <choices>
  835. <item>
  836. <label>甲</label>
  837. <value>A</value>
  838. </item>
  839. <item>
  840. <label>乙</label>
  841. <value>B</value>
  842. </item>
  843. <item>
  844. <label>丙</label>
  845. <value>C</value>
  846. </item>
  847. <item>
  848. <label>丁</label>
  849. <value>D</value>
  850. </item>
  851. </choices>
  852. </col>
  853. <col ref="S29S" type="combo">
  854. <choices>
  855. <item>
  856. <label>甲</label>
  857. <value>A</value>
  858. </item>
  859. <item>
  860. <label>乙</label>
  861. <value>B</value>
  862. </item>
  863. <item>
  864. <label>丙</label>
  865. <value>C</value>
  866. </item>
  867. <item>
  868. <label>丁</label>
  869. <value>D</value>
  870. </item>
  871. </choices>
  872. </col>
  873. <col ref="S30S" type="combo">
  874. <choices>
  875. <item>
  876. <label>甲</label>
  877. <value>A</value>
  878. </item>
  879. <item>
  880. <label>乙</label>
  881. <value>B</value>
  882. </item>
  883. <item>
  884. <label>丙</label>
  885. <value>C</value>
  886. </item>
  887. <item>
  888. <label>丁</label>
  889. <value>D</value>
  890. </item>
  891. </choices>
  892. </col>
  893. <col ref="S31S" type="combo">
  894. <choices>
  895. <item>
  896. <label>甲</label>
  897. <value>A</value>
  898. </item>
  899. <item>
  900. <label>乙</label>
  901. <value>B</value>
  902. </item>
  903. <item>
  904. <label>丙</label>
  905. <value>C</value>
  906. </item>
  907. <item>
  908. <label>丁</label>
  909. <value>D</value>
  910. </item>
  911. </choices>
  912. </col>
  913. </datagrid>
  914. <caption id="caption5" class="cell" style="left:0px; top:5px; width:110px; height:20px; vertical-align:middle; border-color:#000000; ">年 份</caption>
  915. <select1 id="combo1" ref="/root/fromData/year" appearance="minimal" style="left:0px; top:25px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
  916. <choices>
  917. <item>
  918. <label>2008</label>
  919. <value>2008</value>
  920. </item>
  921. <item>
  922. <label>2009</label>
  923. <value>2009</value>
  924. </item>
  925. <item>
  926. <label>2010</label>
  927. <value>2010</value>
  928. </item>
  929. <item>
  930. <label>2011</label>
  931. <value>2011</value>
  932. </item>
  933. <item>
  934. <label>2012</label>
  935. <value>2012</value>
  936. </item>
  937. <item>
  938. <label>2013</label>
  939. <value>2013</value>
  940. </item>
  941. <item>
  942. <label>2014</label>
  943. <value>2014</value>
  944. </item>
  945. </choices>
  946. </select1>
  947. <select1 id="combo2" ref="/root/fromData/month" appearance="minimal" style="left:110px; top:25px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
  948. <choices>
  949. <item>
  950. <label>1</label>
  951. <value>01</value>
  952. </item>
  953. <item>
  954. <label>2</label>
  955. <value>02</value>
  956. </item>
  957. <item>
  958. <label>3</label>
  959. <value>03</value>
  960. </item>
  961. <item>
  962. <label>4</label>
  963. <value>04</value>
  964. </item>
  965. <item>
  966. <label>5</label>
  967. <value>05</value>
  968. </item>
  969. <item>
  970. <label>6</label>
  971. <value>06</value>
  972. </item>
  973. <item>
  974. <label>7</label>
  975. <value>07</value>
  976. </item>
  977. <item>
  978. <label>8</label>
  979. <value>08</value>
  980. </item>
  981. <item>
  982. <label>9</label>
  983. <value>09</value>
  984. </item>
  985. <item>
  986. <label>10</label>
  987. <value>10</value>
  988. </item>
  989. <item>
  990. <label>11</label>
  991. <value>11</value>
  992. </item>
  993. <item>
  994. <label>12</label>
  995. <value>12</value>
  996. </item>
  997. </choices>
  998. </select1>
  999. <button id="button1" style="left:1005px; top:35px; width:100px; height:20px; ">
  1000. <caption>find</caption>
  1001. <script type="javascript" ev:event="DOMActivate">
  1002. <![CDATA[
  1003. find();
  1004. ]]>
  1005. </script>
  1006. </button>
  1007. <button id="button2" style="left:895px; top:5px; width:100px; height:20px; background-image:../../images/btn_save1.GIF; ">
  1008. <caption>编制</caption>
  1009. <script type="javascript" ev:event="onclick">
  1010. <![CDATA[
  1011. var TianShu, BanZu, LianXu;//声明三个选环的计数器,分别是天数循环、班组选环、连续工作天数循环
  1012. var x,y;//声明两个变量来决定每行的初始值
  1013. y=3;//读取输入的班组
  1014. for(var count=0; count<4; count++) // 表内显示4行,所以做4次循环
  1015. {
  1016. if(y==5)y=1;//初始值=5时,将其从新设定为1
  1017. TianShu=31;//天数在这里确定 ---------------这个可以
  1018. x=y;//每行的初始值在这里确定
  1019. while (TianShu > 0)
  1020. {
  1021. for(BanZu=x; BanZu<=4; BanZu++ )//4个班组循环工作
  1022. {
  1023. for(LianXu=0; LianXu<2; LianXu++ )//每个晚、早、中、休四个班次连续工作两次
  1024. {
  1025. if (TianShu==0) break;//天数循环完成时,跳出整个循环
  1026. TianShu--;
  1027. var Chinese;
  1028. switch(BanZu)
  1029. {
  1030. case 1:
  1031. Chinese="A"; break;
  1032. case 2:
  1033. Chinese="B"; break;
  1034. case 3:
  1035. Chinese="C"; break;
  1036. case 4:
  1037. Chinese="D"; break;
  1038. }
  1039. datagrid1.valueMatrix((count+1),(31-TianShu)) = Chinese;
  1040. }
  1041. }
  1042. x=1;//X增加到4就从新设定为1
  1043. }
  1044. y++;//换行初始值做+1处理
  1045. }
  1046. ]]>
  1047. </script>
  1048. </button>
  1049. <select1 id="combo3" ref="/root/fromData/FAC_CD" appearance="minimal" style="left:220px; top:25px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
  1050. <choices>
  1051. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'F01002']">
  1052. <label ref="SM_CFNM"/>
  1053. <value ref="SM_CD"/>
  1054. </itemset>
  1055. </choices>
  1056. </select1>
  1057. <button id="button3" style="left:1025px; top:155px; width:65px; height:25px; ">
  1058. <caption>save</caption>
  1059. <script type="javascript" ev:event="DOMActivate">
  1060. <![CDATA[
  1061. save();
  1062. ]]>
  1063. </script>
  1064. </button>
  1065. <line id="line3" style="x1:1px; y1:0px; x2:980px; y2:0px; "/>
  1066. <line id="line4" style="x1:1px; y1:50px; x2:980px; y2:50px; "/>
  1067. <caption id="caption13" style="left:0px; top:600px; width:980px; height:20px; background-color:#ccccff; border-top-color:#ffffff; border-style:solid; "/>
  1068. <caption id="caption1" class="cell" style="left:110px; top:5px; width:110px; height:20px; vertical-align:middle; border-color:#000000; ">月 份</caption>
  1069. <caption id="caption2" class="cell" style="left:220px; top:5px; width:110px; height:20px; vertical-align:middle; border-color:#000000; ">工 厂 区 分</caption>
  1070. <caption id="caption3" class="cell" style="left:330px; top:5px; width:110px; height:20px; vertical-align:middle; border-color:#000000; ">部 门 区 分</caption>
  1071. <select1 id="combo4" ref="/root/fromData/PROC_CD" appearance="minimal" style="left:330px; top:25px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
  1072. <choices>
  1073. <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'F01006' or LG_CD = 'A']">
  1074. <label ref="SM_CFNM"/>
  1075. <value ref="SM_CD"/>
  1076. </itemset>
  1077. </choices>
  1078. </select1>
  1079. </xhtml:body>
  1080. </xhtml:html>