รวม code แก้ไขหลายจุด
This commit is contained in:
@@ -8,8 +8,8 @@ function eva_adjust_postponement_quota_FeedDataToForm(data) {
|
||||
$("#eva_adjust_postponement_quota_fiscal_year").val(data.fiscal_year);
|
||||
$("#eva_adjust_postponement_quota_theDate").val(formatDate(data.theDate));
|
||||
$("#eva_adjust_postponement_quota_theRound").val(data.theRound);
|
||||
// $("#eva_adjust_postponement_quota_limit_quota").val(data.limit_quota);
|
||||
$("#eva_adjust_postponement_quota_limit_quota").maskMoney('mask', data.limit_quota);
|
||||
$("#eva_adjust_postponement_quota_limit_quota").val(data.limit_quota);
|
||||
//$("#eva_adjust_postponement_quota_limit_quota").maskMoney('mask', data.limit_quota);
|
||||
|
||||
// $("#eva_adjust_postponement_quota_limit_frame_quota").val(data.limit_frame_quota);
|
||||
$("#eva_adjust_postponement_quota_limit_frame_quota").maskMoney('mask', data.limit_frame_quota);
|
||||
@@ -124,17 +124,17 @@ function Oneva_adjust_postponement_quota_limit_frame_quotaChange() {
|
||||
var limit_frame_quota = parseFloat($("#eva_adjust_postponement_quota_limit_frame_quota").val());
|
||||
limit_frame_quota = Math.round(limit_frame_quota * 100) / 100;
|
||||
if (limit_frame_quota < 0) limit_frame_quota = 0;
|
||||
// $("#eva_adjust_postponement_quota_limit_frame_quota").val(limit_frame_quota);
|
||||
$("#eva_adjust_postponement_quota_limit_frame_quota").maskMoney('mask', limit_frame_quota);
|
||||
$("#eva_adjust_postponement_quota_limit_frame_quota").val(limit_frame_quota);
|
||||
//$("#eva_adjust_postponement_quota_limit_frame_quota").maskMoney('mask', limit_frame_quota);
|
||||
|
||||
var limit = parseFloat($("#eva_adjust_postponement_quota_limit").val());
|
||||
limit = Math.round(limit * 100) / 100;
|
||||
// $("#eva_adjust_postponement_quota_limit").val(limit);
|
||||
$("#eva_adjust_postponement_quota_limit").maskMoney('mask', limit);
|
||||
$("#eva_adjust_postponement_quota_limit").val(limit);
|
||||
//$("#eva_adjust_postponement_quota_limit").maskMoney('mask', limit);
|
||||
|
||||
limit_quota = limit_frame_quota * limit / 100;
|
||||
// $("#eva_adjust_postponement_quota_limit_quota").val(limit_quota);
|
||||
$("#eva_adjust_postponement_quota_limit_quota").maskMoney('mask', limit_quota);
|
||||
$("#eva_adjust_postponement_quota_limit_quota").val(limit_quota);
|
||||
//$("#eva_adjust_postponement_quota_limit_quota").maskMoney('mask', limit_quota);
|
||||
CalculateRemainQuota();
|
||||
}
|
||||
|
||||
@@ -170,8 +170,8 @@ console.log("xx");
|
||||
|
||||
var remain_quota = limit_quota - sum_receive_quota;
|
||||
|
||||
//$("#remain_quota").val(remain_quota);
|
||||
$("#remain_quota").maskMoney('mask', remain_quota);
|
||||
$("#remain_quota").val(remain_quota);
|
||||
//$("#remain_quota").maskMoney('mask', remain_quota);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ function array_to_string_comma(a) {
|
||||
|
||||
function rep_eva01_GetSearchParameter(fileType) {
|
||||
var rep_eva01SearchObject = new Object();
|
||||
rep_eva01SearchObject.org_id = array_to_string_comma($("#s_rep_eva01_org_id").val());
|
||||
rep_eva01SearchObject.org_id = $("#s_rep_eva01_org_id").val();
|
||||
rep_eva01SearchObject.round_id = $("#s_rep_eva01_round_id").val();
|
||||
rep_eva01SearchObject.round_text = $("#s_rep_eva01_round_id option:selected").text();
|
||||
|
||||
@@ -31,6 +31,12 @@ function rep_eva01_FeedDataToSearchForm(data) {
|
||||
|
||||
function DropDownClearFormAndFeedWithDataOrg(d, result, x, y, z, i) {
|
||||
$(d).html('');
|
||||
$(d).append($("<option></option>")
|
||||
.attr("value", "")
|
||||
.text("กรุณาเลือก"));
|
||||
$(d).append($("<option></option>")
|
||||
.attr("value", "-1")
|
||||
.text("เนติบัณฑิตยสภา ในพระบรมราชูปถัมภ์"));
|
||||
if (z !== "") {
|
||||
$.each(result[z], function (key, value) {
|
||||
$(d).append($("<option></option>")
|
||||
|
||||
@@ -13,7 +13,7 @@ function array_to_string_comma(a) {
|
||||
|
||||
function rep_eva02_GetSearchParameter(fileType) {
|
||||
var rep_eva02SearchObject = new Object();
|
||||
rep_eva02SearchObject.org_id = array_to_string_comma($("#s_rep_eva02_org_id").val());
|
||||
rep_eva02SearchObject.org_id = $("#s_rep_eva02_org_id").val();
|
||||
rep_eva02SearchObject.round_id = $("#s_rep_eva02_round_id").val();
|
||||
rep_eva02SearchObject.round_text = $("#s_rep_eva02_round_id option:selected").text();
|
||||
|
||||
@@ -31,6 +31,12 @@ function rep_eva02_FeedDataToSearchForm(data) {
|
||||
|
||||
function DropDownClearFormAndFeedWithDataOrg(d, result, x, y, z, i) {
|
||||
$(d).html('');
|
||||
$(d).append($("<option></option>")
|
||||
.attr("value", "")
|
||||
.text("กรุณาเลือก"));
|
||||
$(d).append($("<option></option>")
|
||||
.attr("value", "-1")
|
||||
.text("เนติบัณฑิตยสภา ในพระบรมราชูปถัมภ์"));
|
||||
if (z !== "") {
|
||||
$.each(result[z], function (key, value) {
|
||||
$(d).append($("<option></option>")
|
||||
|
||||
Reference in New Issue
Block a user