日期:2014-05-16 浏览次数:20394 次
viewentity.prototype.getBrand = function () {
var guid = UrlParm.parm("id");
$.ajax({
contentType: 'text/json',
url: PageUrl.local + "WebServices/CommonService.svc/GetBrandModels_byBrandModelID",
type: 'post',
data: '{"guid":"' + guid+ '"}',
async: false,
success: function (result) {
if (result != null) {
debugger;
result = result.d;
for (var i = 0; i < result.length; i++) {
$("#ddl_Brand").val(result[i].value.split(";")[0]);
$("#txt_marker").val(result[i].value.split(";")[1]);
if (result[i].key.split(";")[2].indexOf("@") < 0) {
setTimeout("$(\"#ddl_Parentmarker option[value!='']\").remove()",600);