| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?xml-stylesheet href="../../css/body.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>
- <![CDATA[炼钢作业 >> 炼钢标准 >> 作业班次登录与查询(UIG060020)]]>
- </xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <fromData>
- <year/>
- <month/>
- <FAC_CD/>
- <PROC_CD/>
- </fromData>
- <data>
- <item>
- <seq>晚班</seq>
- <S01S/>
- <S02S/>
- <S03S/>
- <S04S/>
- <S05S/>
- <S06S/>
- <S07S/>
- <S08S/>
- <S09S/>
- <S10S/>
- <S11S/>
- <S12S/>
- <S13S/>
- <S14S/>
- <S15S/>
- <S16S/>
- <S17S/>
- <S18S/>
- <S19S/>
- <S20S/>
- <S21S/>
- <S22S/>
- <S23S/>
- <S24S/>
- <S25S/>
- <S26S/>
- <S27S/>
- <S28S/>
- <S29S/>
- <S30S/>
- <S31S/>
- </item>
- <item>
- <seq>早班</seq>
- <S01S/>
- <S02S/>
- <S03S/>
- <S04S/>
- <S05S/>
- <S06S/>
- <S07S/>
- <S08S/>
- <S09S/>
- <S10S/>
- <S11S/>
- <S12S/>
- <S13S/>
- <S14S/>
- <S15S/>
- <S16S/>
- <S17S/>
- <S18S/>
- <S19S/>
- <S20S/>
- <S21S/>
- <S22S/>
- <S23S/>
- <S24S/>
- <S25S/>
- <S26S/>
- <S27S/>
- <S28S/>
- <S29S/>
- <S30S/>
- <S31S/>
- </item>
- <item>
- <seq>中班</seq>
- <S01S/>
- <S02S/>
- <S03S/>
- <S04S/>
- <S05S/>
- <S06S/>
- <S07S/>
- <S08S/>
- <S09S/>
- <S10S/>
- <S11S/>
- <S12S/>
- <S13S/>
- <S14S/>
- <S15S/>
- <S16S/>
- <S17S/>
- <S18S/>
- <S19S/>
- <S20S/>
- <S21S/>
- <S22S/>
- <S23S/>
- <S24S/>
- <S25S/>
- <S26S/>
- <S27S/>
- <S28S/>
- <S29S/>
- <S30S/>
- <S31S/>
- </item>
- <item>
- <seq>休息</seq>
- <S01S/>
- <S02S/>
- <S03S/>
- <S04S/>
- <S05S/>
- <S06S/>
- <S07S/>
- <S08S/>
- <S09S/>
- <S10S/>
- <S11S/>
- <S12S/>
- <S13S/>
- <S14S/>
- <S15S/>
- <S16S/>
- <S17S/>
- <S18S/>
- <S19S/>
- <S20S/>
- <S21S/>
- <S22S/>
- <S23S/>
- <S24S/>
- <S25S/>
- <S26S/>
- <S27S/>
- <S28S/>
- <S29S/>
- <S30S/>
- <S31S/>
- </item>
- </data>
- <tempData>
- <PROC_CD/>
- <GR_YYYYMM/>
- <GR_DD/>
- <GR_SHIFT/>
- <GR_GROUP_CD/>
- </tempData>
- <searchData/>
- <initData>
- <LG_CD>F01002,F01006</LG_CD>
- </initData>
- <codeData/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- initPage();
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../js/boaCommon.js"/>
- <script type="javascript" src="../../js/G02.js"/>
- <script type="javascript">
- <![CDATA[
- var DAYS = 0;
-
- function initPage(){
- commSendReq("/root/initData");
- commSubmit("UIGCOMMCODE-service","find","glueAction.do");
- model.copyNode("/root/codeData","/root/resData");
-
- model.setValue("/root/fromData/year",CurentYear());
- model.setValue("/root/fromData/month",CurentMonth());
- model.refresh();
- }
- function find()
- {
- var yearTg = model1.getValue("/root/fromData/year");
- var monthTg = model1.getValue("/root/fromData/month");
-
- if((monthTg == 1)|| (monthTg == 3) || (monthTg == 5) || (monthTg == 7) || (monthTg == 8) || (monthTg == 10) || (monthTg == 12))
- {
- DAYS = 31;
- }
- else if(monthTg == 2)
- {
- if((yearTg % 400 == 0)||(yearTg % 4 == 0)&&(yearTg % 100 != 0))
- DAYS = 29
- else
- DAYS = 28;
- }
- else
- {
- DAYS = 30;
- }
- datagrid1.colHidden(datagrid1.colRef("S29S"))=datagrid1.colHidden(datagrid1.colRef("S30S"))=datagrid1.colHidden(datagrid1.colRef("S31S"))=false;
- //我操! 没见过这么傻X的语句,能不能用什么方法把这三个隐藏还原???
- if(DAYS == 30)
- {
- datagrid1.colHidden(datagrid1.colRef("S31S"))= true;
- }
- else if(DAYS == 29)
- {
- datagrid1.colHidden(datagrid1.colRef("S31S"))= true;
- datagrid1.colHidden(datagrid1.colRef("S30S"))= true;
- }
- else if(DAYS == 28)
- {
- datagrid1.colHidden(datagrid1.colRef("S31S"))= true;
- datagrid1.colHidden(datagrid1.colRef("S30S"))= true;
- datagrid1.colHidden(datagrid1.colRef("S29S"))= true;
- }
- var yearTg = model1.getValue("/root/fromData/year");
- var monthTg
- model1.removenode("/root/reqData");
- model1.makeNode("/root/reqData");
- // 月份为10以下时 前面加0
- if(monthTg.length < 2){
- monthTg = "0" + monthTg;
- }
- model1.makeValue("/root/reqData/GR_YYYYMM",yearTg + monthTg);
- model1.makeValue("/root/reqData/PROC_CD",model1.getValue("/root/fromData/facStl"));
- commSubmit("UIG060020-service","find","glueAction.do");
-
- var resNode = instance1.selectSingleNode("/root/resData/searchShiftResult_VO");
- if(!resNode.childNodes.length > 0){
- alert("这个月的班次尚未编制");
- }
- else{
- var i = 0;
- var dateShift = "";
- var shiftNo = "";
- var shiftValue = "";
- var childNodeLen = resNode.childNodes.length;
- for(i = 1 ; i <= childNodeLen ; i++)
- {
- var dateShift = model1.getValue("/root/resData/searchShiftResult_VO/searchShiftResult_Row[" + i + "]/GR_DD");
- var shiftNo = model1.getValue("/root/resData/searchShiftResult_VO/searchShiftResult_Row[" + i + "]/GR_SHIFT");
-
- var shiftValue = model1.getValue("/root/resData/searchShiftResult_VO/searchShiftResult_Row[" + i + "]/GR_GROUP_CD");
-
- datagrid1.valueMatrix(parseInt(shiftNo) + 1,dateShift) = shiftValue;
-
- }
- datagrid1.rebuild();
- }
- }
-
- function save()
- {
- // 循环获得每个月每天每个班次对应的工作组
- for(var i = 0 ; i < DAYS ; i++)
- {
- for(var j = 0 ; j < 4 ; j++)
- {
- var monthValue = model1.getValue("/root/fromData/month");
- // 月份小于10时候 ,前面加0
- if(monthValue.length < 2){
- monthValue = "0" + monthValue;
- }
- model1.makeValue("/root/tempData/PROC_CD",model1.getValue("/root/fromData/facStl"));
-
- model1.makeValue("/root/tempData/GR_YYYYMM",model1.getValue("/root/fromData/year") + monthValue);
- // 数组下标是从0开始,每个月从一开始,所以加一
- if(i < 9){
- model1.makeValue("/root/tempData/GR_DD","0" + (i + 1));}
- else{
- model1.makeValue("/root/tempData/GR_DD",i + 1);
- }
- // 数组下标加一
- model1.makeValue("/root/tempData/GR_SHIFT",j + 1);
- var focuRow = j + (datagrid1.fixedRows - 1) + 1;
- var focuCol = i + 1;
- var group = datagrid1.valueMatrix(focuRow,focuCol);
- model1.makeValue("/root/tempData/GR_GROUP",group);
- model.duplicate("/root/searchData","/root/tempData");
- }
- }
- commSendReq("/root/searchData");
- commSubmit("UIG060020-service","save","glueAction.do");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,980;" style="font-family:宋体; ">
- <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; ">
- <col ref="seq"/>
- <col ref="S01S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S02S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S03S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S04S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S05S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S06S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S07S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S08S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S09S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S10S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S11S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S12S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S13S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S14S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S15S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S16S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S17S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S18S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S19S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S20S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S21S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S22S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S23S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S24S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S25S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S26S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S27S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S28S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S29S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S30S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- <col ref="S31S" type="combo">
- <choices>
- <item>
- <label>甲</label>
- <value>A</value>
- </item>
- <item>
- <label>乙</label>
- <value>B</value>
- </item>
- <item>
- <label>丙</label>
- <value>C</value>
- </item>
- <item>
- <label>丁</label>
- <value>D</value>
- </item>
- </choices>
- </col>
- </datagrid>
- <caption id="caption5" class="cell" style="left:0px; top:5px; width:110px; height:20px; vertical-align:middle; border-color:#000000; ">年 份</caption>
- <select1 id="combo1" ref="/root/fromData/year" appearance="minimal" style="left:0px; top:25px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
- <choices>
- <item>
- <label>2008</label>
- <value>2008</value>
- </item>
- <item>
- <label>2009</label>
- <value>2009</value>
- </item>
- <item>
- <label>2010</label>
- <value>2010</value>
- </item>
- <item>
- <label>2011</label>
- <value>2011</value>
- </item>
- <item>
- <label>2012</label>
- <value>2012</value>
- </item>
- <item>
- <label>2013</label>
- <value>2013</value>
- </item>
- <item>
- <label>2014</label>
- <value>2014</value>
- </item>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/fromData/month" appearance="minimal" style="left:110px; top:25px; width:110px; height:20px; background-color:#ffff99; border-color:#000000; ">
- <choices>
- <item>
- <label>1</label>
- <value>01</value>
- </item>
- <item>
- <label>2</label>
- <value>02</value>
- </item>
- <item>
- <label>3</label>
- <value>03</value>
- </item>
- <item>
- <label>4</label>
- <value>04</value>
- </item>
- <item>
- <label>5</label>
- <value>05</value>
- </item>
- <item>
- <label>6</label>
- <value>06</value>
- </item>
- <item>
- <label>7</label>
- <value>07</value>
- </item>
- <item>
- <label>8</label>
- <value>08</value>
- </item>
- <item>
- <label>9</label>
- <value>09</value>
- </item>
- <item>
- <label>10</label>
- <value>10</value>
- </item>
- <item>
- <label>11</label>
- <value>11</value>
- </item>
- <item>
- <label>12</label>
- <value>12</value>
- </item>
- </choices>
- </select1>
- <button id="button1" style="left:1005px; top:35px; width:100px; height:20px; ">
- <caption>find</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- find();
- ]]>
- </script>
- </button>
- <button id="button2" style="left:895px; top:5px; width:100px; height:20px; background-image:../../images/btn_save1.GIF; ">
- <caption>编制</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
-
-
-
- var TianShu, BanZu, LianXu;//声明三个选环的计数器,分别是天数循环、班组选环、连续工作天数循环
- var x,y;//声明两个变量来决定每行的初始值
- y=3;//读取输入的班组
-
-
-
- for(var count=0; count<4; count++) // 表内显示4行,所以做4次循环
- {
- if(y==5)y=1;//初始值=5时,将其从新设定为1
- TianShu=31;//天数在这里确定 ---------------这个可以
- x=y;//每行的初始值在这里确定
- while (TianShu > 0)
- {
-
- for(BanZu=x; BanZu<=4; BanZu++ )//4个班组循环工作
- {
-
- for(LianXu=0; LianXu<2; LianXu++ )//每个晚、早、中、休四个班次连续工作两次
- {
- if (TianShu==0) break;//天数循环完成时,跳出整个循环
- TianShu--;
- var Chinese;
- switch(BanZu)
- {
- case 1:
- Chinese="A"; break;
- case 2:
- Chinese="B"; break;
- case 3:
- Chinese="C"; break;
- case 4:
- Chinese="D"; break;
- }
- datagrid1.valueMatrix((count+1),(31-TianShu)) = Chinese;
- }
- }
- x=1;//X增加到4就从新设定为1
-
- }
- y++;//换行初始值做+1处理
- }
- ]]>
- </script>
- </button>
- <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; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'F01002']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- <button id="button3" style="left:1025px; top:155px; width:65px; height:25px; ">
- <caption>save</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- save();
- ]]>
- </script>
- </button>
- <line id="line3" style="x1:1px; y1:0px; x2:980px; y2:0px; "/>
- <line id="line4" style="x1:1px; y1:50px; x2:980px; y2:50px; "/>
- <caption id="caption13" style="left:0px; top:600px; width:980px; height:20px; background-color:#ccccff; border-top-color:#ffffff; border-style:solid; "/>
- <caption id="caption1" class="cell" style="left:110px; top:5px; width:110px; height:20px; vertical-align:middle; border-color:#000000; ">月 份</caption>
- <caption id="caption2" class="cell" style="left:220px; top:5px; width:110px; height:20px; vertical-align:middle; border-color:#000000; ">工 厂 区 分</caption>
- <caption id="caption3" class="cell" style="left:330px; top:5px; width:110px; height:20px; vertical-align:middle; border-color:#000000; ">部 门 区 分</caption>
- <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; ">
- <choices>
- <itemset nodeset="/root/codeData/COMM_CODE_RESULT_VO/COMM_CODE_RESULT_Row[LG_CD = 'F01006' or LG_CD = 'A']">
- <label ref="SM_CFNM"/>
- <value ref="SM_CD"/>
- </itemset>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|