1. IO submission
I({
url : requestpix+'/findloaninfo.shtml',
type: 'post',
dataType: 'json',
data: {
receipt_id : receipt_id,
validates_radio: Group.getRadioValue('validates_radio').value,
validity_day : DOM.val("#validity_day"),
validates_day : DOM.val("#validates_radio_input_1")
},
success: function(result){
if(result.success == true){
var price = Number(result.price);
var avlb_qtt = Number(result.avlb_qtt);
var priceStepList = getJsonForPriceStep();
var minStepPrice = Number(priceStepList[priceStepList.length-1].price)/100.00;
var att62Scale = Number(DOM.val("#att62"))/100.00;
if(minStepPrice*att62Scale<price){
Dialog.alert("The lowest price of the listing in the pledged warehouse receipt * the payment ratio after inspection, which cannot be less than the financing unit price!");
return;
}else{
if(result.is_timeout){
Dialog.alert("The financing expiry date in the pledge warehouse receipt - the number of days of the listing deadline cannot be less than the listing validity period!");
return;
}else{
next_lp_do();
}
}
}else{
Dialog.alert(result.msg);
return;
}
}
});
2. Ajax submission supported by the EXTjs framework
Ext.Ajax.request({
url : GSC.context+"/release_mng.do",
params : {
opera : opera,
objectionid:objectionid,
date4:Ext.getCmp('date2_el1').getValue(),//New contract check date
date3:Ext.getCmp('date1_el1')!=undefined?Ext.getCmp('date1_el1').getValue():"",//New contract inspection date, obj_type==1, there is a problem with the goods, re-schedule inspection Ticket deadline 2. If the goods have not arrived, re-agreed the deadline for inspection and ticket inspection.
obj_id:(Ext.getCmp('obj_id_el1').getValue()==undefined||Ext.getCmp('obj_id_el1').getValue()=='')?//违约方
Ext.getCmp('obj_id_el2').getValue():Ext.getCmp('obj_id_el1').getValue(),
fee3:(Ext.getCmp('fee3_el1').getValue()==undefined||Ext.getCmp('fee3_el1').getValue()==0)?//违约金
Ext.getCmp('fee3_el2').getValue():Ext.getCmp('fee3_el1').getValue()
},
timeout : 1000,
method : 'POST',
waitMsg : "Submitting, please wait...",
success : function(_form,_action){
showMessage("Successful operation!");
Ext.getCmp("operateWin").close();
dataStore.reload({
params : {
start : 0,
limit : Ext.getCmp('myToolbar').pageSize
}
});
},
failure : function(_form,_action){
showMessage("Operation failed!");
}
});
3.form form submission
var form = Ext.getCmp("operateForm").getForm();
if(form.isValid()){
form.submit({
url : GSC.context+"/release_mng.do",
params : {
opera : opera,
objectionid:objectionid,
date4:Ext.getCmp('date2_el1').getValue(),//New contract check date
date3:Ext.getCmp('date1_el1')!=undefined?Ext.getCmp('date1_el1').getValue():"",//New contract inspection date, obj_type==1, there is a problem with the goods, re-schedule inspection Ticket deadline 2. If the goods have not arrived, re-agreed the deadline for inspection and ticket inspection.
obj_id:(Ext.getCmp('obj_id_el1').getValue()==undefined||Ext.getCmp('obj_id_el1').getValue()=='')?//违约方
Ext.getCmp('obj_id_el2').getValue():Ext.getCmp('obj_id_el1').getValue(),
fee3:(Ext.getCmp('fee3_el1').getValue()==undefined||Ext.getCmp('fee3_el1').getValue()==0)?//违约金
Ext.getCmp('fee3_el2').getValue():Ext.getCmp('fee3_el1').getValue()
},
timeout : 1000,
method : 'POST',
waitMsg : "Submitting, please wait...",
success : function(_form,_action){
showMsg(_action.result,'info',function(){
Ext.getCmp("operateWin").close();
dataStore.reload({
params : {
start : 0,
limit : Ext.getCmp('myToolbar').pageSize
}
});
});
},
failure : function(_form,_action){
showMsg(_action.result,'info');
}
});
}
I({
url : requestpix+'/findloaninfo.shtml',
type: 'post',
dataType: 'json',
data: {
receipt_id : receipt_id,
validates_radio: Group.getRadioValue('validates_radio').value,
validity_day : DOM.val("#validity_day"),
validates_day : DOM.val("#validates_radio_input_1")
},
success: function(result){
if(result.success == true){
var price = Number(result.price);
var avlb_qtt = Number(result.avlb_qtt);
var priceStepList = getJsonForPriceStep();
var minStepPrice = Number(priceStepList[priceStepList.length-1].price)/100.00;
var att62Scale = Number(DOM.val("#att62"))/100.00;
if(minStepPrice*att62Scale<price){
Dialog.alert("The lowest price of the listing in the pledged warehouse receipt * the payment ratio after inspection, which cannot be less than the financing unit price!");
return;
}else{
if(result.is_timeout){
Dialog.alert("The financing expiry date in the pledge warehouse receipt - the number of days of the listing deadline cannot be less than the listing validity period!");
return;
}else{
next_lp_do();
}
}
}else{
Dialog.alert(result.msg);
return;
}
}
});
2. Ajax submission supported by the EXTjs framework
Ext.Ajax.request({
url : GSC.context+"/release_mng.do",
params : {
opera : opera,
objectionid:objectionid,
date4:Ext.getCmp('date2_el1').getValue(),//New contract check date
date3:Ext.getCmp('date1_el1')!=undefined?Ext.getCmp('date1_el1').getValue():"",//New contract inspection date, obj_type==1, there is a problem with the goods, re-schedule inspection Ticket deadline 2. If the goods have not arrived, re-agreed the deadline for inspection and ticket inspection.
obj_id:(Ext.getCmp('obj_id_el1').getValue()==undefined||Ext.getCmp('obj_id_el1').getValue()=='')?//违约方
Ext.getCmp('obj_id_el2').getValue():Ext.getCmp('obj_id_el1').getValue(),
fee3:(Ext.getCmp('fee3_el1').getValue()==undefined||Ext.getCmp('fee3_el1').getValue()==0)?//违约金
Ext.getCmp('fee3_el2').getValue():Ext.getCmp('fee3_el1').getValue()
},
timeout : 1000,
method : 'POST',
waitMsg : "Submitting, please wait...",
success : function(_form,_action){
showMessage("Successful operation!");
Ext.getCmp("operateWin").close();
dataStore.reload({
params : {
start : 0,
limit : Ext.getCmp('myToolbar').pageSize
}
});
},
failure : function(_form,_action){
showMessage("Operation failed!");
}
});
3.form form submission
var form = Ext.getCmp("operateForm").getForm();
if(form.isValid()){
form.submit({
url : GSC.context+"/release_mng.do",
params : {
opera : opera,
objectionid:objectionid,
date4:Ext.getCmp('date2_el1').getValue(),//New contract check date
date3:Ext.getCmp('date1_el1')!=undefined?Ext.getCmp('date1_el1').getValue():"",//New contract inspection date, obj_type==1, there is a problem with the goods, re-schedule inspection Ticket deadline 2. If the goods have not arrived, re-agreed the deadline for inspection and ticket inspection.
obj_id:(Ext.getCmp('obj_id_el1').getValue()==undefined||Ext.getCmp('obj_id_el1').getValue()=='')?//违约方
Ext.getCmp('obj_id_el2').getValue():Ext.getCmp('obj_id_el1').getValue(),
fee3:(Ext.getCmp('fee3_el1').getValue()==undefined||Ext.getCmp('fee3_el1').getValue()==0)?//违约金
Ext.getCmp('fee3_el2').getValue():Ext.getCmp('fee3_el1').getValue()
},
timeout : 1000,
method : 'POST',
waitMsg : "Submitting, please wait...",
success : function(_form,_action){
showMsg(_action.result,'info',function(){
Ext.getCmp("operateWin").close();
dataStore.reload({
params : {
start : 0,
limit : Ext.getCmp('myToolbar').pageSize
}
});
});
},
failure : function(_form,_action){
showMsg(_action.result,'info');
}
});
}