var line = this.options.form.getWidgetByName("line").getValue();
var name = this.options.form.getWidgetByName("name").getValue();
if ((line == "" || line == null ) || ( name == "" || name == null) ) {
alert("错误,姓名和线别不可为空!");
return false;
};
//之前写的你改一下判断