2个回答
展开全部
grid.on('edit' , function(editor , e){
var month = Ext.util.Format.date(Ext.getCmp("month").getValue(), 'Y-m')+'-01';
Ext.Ajax.request({
url: "qam_metricsdata_post.cgi?project_id=[% project_id %]&type=grid&month="+month,
params:{
requirement_coverage : store_grid.findRecord("name2","<span style='color:blue';>Requirement Coverage By Testing</span>").get("value2"),
ontime_delivery_rate : store_grid.findRecord("name1","<span style='color:blue';>On Time Delivery Rate</span>").get("value1"),
//requirement_change_number : store_grid.findRecord("name2","<span style='color:blue';>Requirement Coverage By Testing</span>").get("value2"),
iteration_number : store_grid.findRecord("name1","<span style='color:blue';>Number of iteration (Drop, Sprint)</span>").get("value1"),
unit_test_model_code_coverage : store_grid.findRecord("name2","<span style='color:blue';>Unit Test Code Coverage – Model</span>").get("value2"),
unit_test_handwritten_code_coverage : store_grid.findRecord("name2","<span style='color:blue';>Unit Test Code Coverage – Handwritten</span>").get("value2"),
total_VERY_GOOD_check_points : store_grid.findRecord("name2","<span style='color:blue';>Total “very good” check points in quality gate</span>").get("value2"),
quality_gate_compliance : store_grid.findRecord("name1","<span style='color:blue';>Quality Gate Compliance</span>").get("value1"),
process_maturity : store_grid.findRecord("name2","<span style='color:blue';>Process Maturity</span>").get("value2")
},
success: function(response, opts) {
Ext.toast.msg('Congratulations', 'Save Success!');
},
failure: function(response, opts) {
alert("<span style='color:blue';>Save Failed!</span>");
}
});
});
var month = Ext.util.Format.date(Ext.getCmp("month").getValue(), 'Y-m')+'-01';
Ext.Ajax.request({
url: "qam_metricsdata_post.cgi?project_id=[% project_id %]&type=grid&month="+month,
params:{
requirement_coverage : store_grid.findRecord("name2","<span style='color:blue';>Requirement Coverage By Testing</span>").get("value2"),
ontime_delivery_rate : store_grid.findRecord("name1","<span style='color:blue';>On Time Delivery Rate</span>").get("value1"),
//requirement_change_number : store_grid.findRecord("name2","<span style='color:blue';>Requirement Coverage By Testing</span>").get("value2"),
iteration_number : store_grid.findRecord("name1","<span style='color:blue';>Number of iteration (Drop, Sprint)</span>").get("value1"),
unit_test_model_code_coverage : store_grid.findRecord("name2","<span style='color:blue';>Unit Test Code Coverage – Model</span>").get("value2"),
unit_test_handwritten_code_coverage : store_grid.findRecord("name2","<span style='color:blue';>Unit Test Code Coverage – Handwritten</span>").get("value2"),
total_VERY_GOOD_check_points : store_grid.findRecord("name2","<span style='color:blue';>Total “very good” check points in quality gate</span>").get("value2"),
quality_gate_compliance : store_grid.findRecord("name1","<span style='color:blue';>Quality Gate Compliance</span>").get("value1"),
process_maturity : store_grid.findRecord("name2","<span style='color:blue';>Process Maturity</span>").get("value2")
},
success: function(response, opts) {
Ext.toast.msg('Congratulations', 'Save Success!');
},
failure: function(response, opts) {
alert("<span style='color:blue';>Save Failed!</span>");
}
});
});
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询