Changeset 17517 for schedule/js
- Timestamp:
- 01/17/14 13:20:08 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/js/function.js
r17509 r17517 5 5 var currentDate; 6 6 var transCount; 7 var transLoadPrev; 8 var Gdate; 7 9 8 10 function GetDate(d,m,y) 9 11 { 10 12 currentDate = y+'-'+m+'-'+d; 11 13 transCount = 1; 14 transLoadPrev = 1; 12 15 $('document').ready(function(){ 13 16 $('#save').click(function(){ … … 19 22 $('.datalisting').each(function(){ 20 23 var get_seq = 0; 21 get_time = $(this).find(".time").val();22 countchild = $(this).find(".tr").length;24 var get_time = $(this).find(".time").val(); 25 var countchild = $(this).find(".tr").length; 23 26 $(this).find(".tr").each(function(){ 24 get_measure = $(this).find(".measure").val();25 get_source = $(this).find(".source").val();26 get_selected = $(this).find(".selected").val();27 var get_measure = $(this).find(".measure").val(); 28 var get_source = $(this).find(".source").val(); 29 var get_selected = $(this).find(".selected").val(); 27 30 GetSaveData(get_time, get_selected, get_source, get_measure, Gdate,get_seq); 28 31 get_seq++; … … 38 41 $('.datalisting').each(function(){ 39 42 var get_seq = 0; 40 get_time = $(this).find(".time").val();41 countchild = $(this).find(".tr").length;43 var get_time = $(this).find(".time").val(); 44 var countchild = $(this).find(".tr").length; 42 45 $(this).find(".tr").each(function(){ 43 46 44 get_measure = $(this).find(".measure").val();45 get_source = $(this).find(".source").val();46 get_selected = $(this).find(".selected").val();47 var get_measure = $(this).find(".measure").val(); 48 var get_source = $(this).find(".source").val(); 49 var get_selected = $(this).find(".selected").val(); 47 50 GetUpdateData(get_time, get_selected, get_source, get_measure, Gdate, get_seq); 48 51 get_seq++; 49 52 }); 50 53 }); 51 54 } 52 55 53 54 55 }); 56 57 function GetSaveData(Time,Data,Source,Measure,date,seq){ 56 }); 57 function GetSaveData(Time,Data,Source,Measure,date,seq){ 58 58 //alert("Time:"+Time+" | Measure:"+Measure +" | Source:"+Source+" | Data:"+Data); 59 59 $.ajax({
Note:
See TracChangeset
for help on using the changeset viewer.