|
@@ -532,13 +532,37 @@ Ext.onReady(function(){
|
|
|
{
|
|
|
text: '保存',
|
|
|
handler: function(){
|
|
|
- var uploadURL=Ext.getCmp('uploadURL').getValue();
|
|
|
+ var uploadURL=Ext.getCmp('uploadURL').getValue();
|
|
|
+ if(uploadURL == "" || uploadURL == null){
|
|
|
+ Ext.Msg.alert('系统提示', '请上传图标'+fa_spot_type);
|
|
|
+ return;
|
|
|
+ }
|
|
|
var fm_spot_name=Ext.getCmp('fm_spot_name').getValue();
|
|
|
+ if(fm_spot_name == null || fm_spot_name == ""){
|
|
|
+ Ext.Msg.alert('系统提示', '点位名称不能为空!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
var fm_company_code=Ext.getCmp('fm_company_code').getValue();
|
|
|
+ if(fm_company_code == null || fm_company_code == ""){
|
|
|
+ Ext.Msg.alert('系统提示', '请选择所属建筑/项目!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
var fm_spot_address=Ext.getCmp('fm_spot_address').getValue();
|
|
|
+ if(fm_spot_address == null || fm_spot_address == ""){
|
|
|
+ Ext.Msg.alert('系统提示', '点位地址不能为空!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
var fm_equipment_code=Ext.getCmp('fm_equipment_code').getValue();
|
|
|
+ if(fm_equipment_code == null || fm_equipment_code == ""){
|
|
|
+ Ext.Msg.alert('系统提示', '设备编号不能为空!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
// var fm_spot_type=Ext.getCmp('fm_spot_type').getChecked();
|
|
|
var fm_spot_type=uploadForm.form.findField("设备类型").getGroupValue()
|
|
|
+ if(fm_spot_type == null || fm_spot_type == ""){
|
|
|
+ Ext.Msg.alert('系统提示', '请选择设备类型!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
// var fm_spot_type = addForm.getForm().findField("fm_spot_type").getGroupValue();
|
|
|
var fm_message=Ext.getCmp('fm_message').getValue();
|
|
|
var fm_id=Ext.getCmp('fm_id').getValue();
|
|
@@ -597,10 +621,30 @@ Ext.onReady(function(){
|
|
|
text: '保存',
|
|
|
handler: function(){
|
|
|
var fa_spot_name=Ext.getCmp('fa_spot_name').getValue();
|
|
|
+ if(fa_spot_name == null || fa_spot_name == ""){
|
|
|
+ Ext.Msg.alert('系统提示', '点位名称不能为空!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
var fa_company_code=Ext.getCmp('fa_company_code').getValue();
|
|
|
+ if(fa_company_code == null || fa_company_code == ""){
|
|
|
+ Ext.Msg.alert('系统提示', '请选择所属建筑/项目!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
var fa_spot_address=Ext.getCmp('fa_spot_address').getValue();
|
|
|
+ if(fa_spot_address == null || fa_spot_address == ""){
|
|
|
+ Ext.Msg.alert('系统提示', '点位地址不能为空!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
var fa_equipment_code=Ext.getCmp('fa_equipment_code').getValue();
|
|
|
+ if(fa_equipment_code == null || fa_equipment_code == ""){
|
|
|
+ Ext.Msg.alert('系统提示', '设备编号不能为空!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
var fa_spot_type = addForm.getForm().findField("fa_spot_type").getGroupValue();
|
|
|
+ if(fa_spot_type == null || fa_spot_type == ""){
|
|
|
+ Ext.Msg.alert('系统提示', '请选择设备类型!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
var fa_message=Ext.getCmp('fa_message').getValue();
|
|
|
var addURL = Ext.getCmp('addURL').getValue();
|
|
|
if(addURL == "" || addURL == null){
|