var _globals=new Globals,$visitCustomer_id=$("#form-container").attr("data-id"),VisitCustomer=_globals.apiPostDataList("visit-customers/searchFrm",{id:$visitCustomer_id}),VisitCustomers=_globals.apiPostDataList("visit-customers/searchFrm",{plate:VisitCustomer.plate}),CustomerInfo=_globals.apiPostDataList("customers/searchWithCar",{plate:VisitCustomer.plate}),_data=_globals.apiPostDataList("customers/data",{citys:"citys",districts:"districts",staffs:"staffs",branchs:"branchs",purposes:"purposes"}),sexs=[{id:1,name:_globals.language.male},{id:2,name:_globals.language.female},{id:3,name:_globals.language.other}],dataFrm={image:VisitCustomer.image,customerName:VisitCustomer.customerName,plate:VisitCustomer.plate,staffID:VisitCustomer.staffID,purpose:VisitCustomer.purpose,created_at:VisitCustomer.created_at,branchID:VisitCustomer.branchID,carType:VisitCustomer.carType,carColor:VisitCustomer.carColor,km:VisitCustomer.km,camera:VisitCustomer.camera,note:VisitCustomer.note,phone:VisitCustomer.phone,sex:VisitCustomer.sex,cityID:VisitCustomer.cityID,districtID:VisitCustomer.districtID,address:VisitCustomer.address,birthday:VisitCustomer.birthday,notify:getCustomerInfo("notify")};function getCustomerInfo(t){if(CustomerInfo.customers.length>0){var s=CustomerInfo.customers[0];switch(t){case"cityID":return s.cityID;case"districtID":return s.districtID;case"address":return s.address;case"phone":return s.phone;case"sex":return s.sex;case"birthday":return s.birthday;case"notify":return"undefined"!==typeof s.notify&&s.notify;default:return""}}return""}