| | |
| | | function setHEarnestRateByHisStockGoods() { |
| | | if (option.data.length > 0 && option.data[0]["HisStockGoods"] == "true") { |
| | | var HEarnestRateList = '<option value="0" selected="selected" >0%</option>'; |
| | | HEarnestRateList += '<option value="100" >100%</option>'; |
| | | |
| | | $("#HEarnestRate").empty(); |
| | | $("#HEarnestRate").append(HEarnestRateList); |
| | | |
| | | var HEarnestRateListArray = ["0", "100"]; |
| | | if ($.inArray(HEarnestRateTemp+"", HEarnestRateListArray) > -1) { |
| | | $("#HEarnestRate").val(HEarnestRateTemp); |
| | | } |
| | | form.render('select'); |
| | | } else if (option.data.length > 0 && option.data[0]["HisStockGoods"] == "false") { |
| | | var HEarnestRateList = '<option value="50" selected="selected" >50%</option>'; |