แก้บักหน้า โควต้า
This commit is contained in:
@@ -55,6 +55,7 @@ function eva_adjust_postponement_quota_SetEditForm(a) {
|
||||
var successFunc = function (result) {
|
||||
eva_adjust_postponement_quota_editMode = "UPDATE";
|
||||
eva_adjust_postponement_quota_FeedDataToForm(result);
|
||||
|
||||
endLoad();
|
||||
};
|
||||
startLoad();
|
||||
@@ -121,8 +122,27 @@ function Oneva_adjust_postponement_quota_limit_frame_quotaChange()
|
||||
{
|
||||
var limit_frame_quota = parseFloat($("#eva_adjust_postponement_quota_limit_frame_quota").val());
|
||||
var limit = parseFloat($("#eva_adjust_postponement_quota_limit").val());
|
||||
|
||||
limit_quota = limit_frame_quota * limit / 100;
|
||||
|
||||
$("#eva_adjust_postponement_quota_limit_quota").val(limit_quota);
|
||||
}
|
||||
CalculateRemainQuota();
|
||||
}
|
||||
|
||||
function CalculateRemainQuota(){
|
||||
var sum_receive_quota = 0;
|
||||
var limit_quota = parseFloat($("#eva_adjust_postponement_quota_limit_quota").val());
|
||||
|
||||
var eva_adjust_postponement_detail_quota_02 = [];
|
||||
$('#eva_adjust_postponement_detail_quota_02Body tr').each(function () {
|
||||
var i = $(this).find("#rowCount").text();
|
||||
var new_sarary = parseFloat($("#eva_adjust_postponement_detail_quota_02_new_sarary_" + i).text());
|
||||
var receive_quota = parseFloat($("#eva_adjust_postponement_detail_quota_02_receive_quota_" + i).val());
|
||||
var new_sarary_with_quota = new_sarary + receive_quota;
|
||||
$("#eva_adjust_postponement_detail_quota_02_new_sarary_with_quota_" + i).text(new_sarary_with_quota);
|
||||
sum_receive_quota += receive_quota;
|
||||
});
|
||||
|
||||
var remain_quota = limit_quota - sum_receive_quota;
|
||||
$("#remain_quota").val(remain_quota);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user