| | |
| | | </h1>
|
| | | </div>
|
| | | </div> -->
|
| | | <fieldset data-role="controlgroup" class="ptr0" >
|
| | | |
| | | |
| | | <fieldset data-role="controlgroup" class="ptr0" > |
| | | <select id="newbattnum" data-mini="true">
|
| | | <option value=0>新建电池组</option>
|
| | | |
| | | </select>
|
| | | |
| | | |
| | | </fieldset>
|
| | | <option value=0>新建电池组</option> |
| | | </select> |
| | | </fieldset>
|
| | | </div>
|
| | | <!-- 主体内容 -->
|
| | | <div data-role="main">
|
| | |
| | | <tr>
|
| | | <td>省</td>
|
| | | <td>
|
| | | <input type="text" id="station_name1" data-mini="true" />
|
| | | <input type="text" id="station_name1"class="unable" data-mini="true" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>城市</td>
|
| | | <td>
|
| | | <input type="text" id="city" data-mini="true" />
|
| | | <input type="text" id="city" class="unable"data-mini="true" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>区县</td>
|
| | | <td>
|
| | | <input type="text" id="county" data-mini="true" />
|
| | | <input type="text" id="county" class="unable"data-mini="true" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td>机房名称</td>
|
| | | <td>
|
| | | <input type="text" id="StationName3" data-mini="true" />
|
| | | <input type="text" id="StationName3"class="unable" data-mini="true" />
|
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | |
| | | console.warn(opstring+'ttt');
|
| | | return $('#newbattnum').html(opstring);
|
| | | }
|
| | | var temp = getCookie("eleparm");
|
| | | var tempindex = getCookie("eleparmindex");
|
| | | var tempnum = getCookie("eleparmnum");
|
| | | //var temp
|
| | | //console.info(temp);
|
| | | var tempgroupid = getCookie("elegroupid");
|
| | | console.info(tempgroupid);
|
| | | tempgroupid = JSON.parse(tempgroupid);
|
| | | console.info(tempindex);
|
| | | console.info(tempnum);
|
| | | |
| | | var temp = getCookie("eleparm");//从上一页面传来电话组信息
|
| | | temp=JSON.parse(temp);
|
| | | tempindex = JSON.parse(tempindex);
|
| | | tempnum =JSON.parse(tempnum);
|
| | | var suoyin = temp[33];
|
| | | var addbattnum = tempindex.length;
|
| | | console.info(temp);
|
| | | var tempgroupid = new Array() ;
|
| | | for(var i=0;i<temp.length;i++){
|
| | | tempgroupid.push(temp[i].binf.BattGroupId);
|
| | | }
|
| | | console.info(tempgroupid);//电池组 ID 数组,(若添加,则需要新建);
|
| | | var addbattnum = temp.length;//添加电池组数目计数
|
| | | $(function(){
|
| | | creatAllView(tempindex.length).trigger('create');
|
| | | creatBa(tempindex.length).trigger('create');
|
| | | creatAllView(temp.length).trigger('create');
|
| | | creatBa(temp.length).trigger('create');
|
| | | });
|
| | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
|
| | | </script>
|
| | | <script type="text/javascript">
|
| | |
| | | setTimes($("#startTestrecord"),temp[30]);
|
| | | setTimes($("#endTestrecord"),temp[31]);
|
| | | document.getElementById("install_user").value = temp[32];
|
| | | for(var i=0;i<tempindex.length;i++){
|
| | | for(var i=0;i<temp.length;i++){
|
| | | battname = "#battname"+i;
|
| | | $(battname).val(tempindex[i]);
|
| | | //$(battname).val(temp[i].info);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | });
|
| | | });
|
| | |
|
| | | //修改电池组,添加到BATTINF
|
| | | //修改电池组,添加到BATTAPPLY表
|
| | | function editBatt(){
|
| | | var parm = getUpdateArredit();
|
| | | console.info(parm);
|
| | | $.ajax({
|
| | | type: "post",
|
| | | url: "BattInfAction!update", |
| | | url: "Battinf_applyAction!addPro", |
| | | async:true,
|
| | | dataType:'text',
|
| | | data:"json="+JSON.stringify(parm),
|
| | |
| | | creatAllView(addbattnum).trigger('create');
|
| | | creatBattGroupId(addbattnum);
|
| | | });
|
| | | |
| | | function creatBattGroupId(addbattnum){
|
| | | $.ajax({type: "post", |
| | | url: "BattInfAction!searchMaxBattgroupId", |
| | | async:true, |
| | | dataType:'text',
|
| | | data:null, |
| | | success: function(data){
|
| | | data=JSON.parse(data);
|
| | | data=data.result;
|
| | | data =JSON.parse(data);
|
| | | //console.info(data)
|
| | | var groupid = data.data;
|
| | | //console.info(groupid);
|
| | | //tempgroupid.push(groupid);
|
| | | console.info(tempgroupid);
|
| | | for(var i=tempgroupid.length;i<addbattnum;i++){
|
| | | tempgroupid.push(groupid++);
|
| | | console.info(tempgroupid);
|
| | | }
|
| | | }
|
| | | }); |
| | | }
|
| | |
|
| | |
|
| | | /* 操作成功
|