Ext.define("NewComponent.view.AddNewComponent",{extend:"Ext.form.Panel",alias:"widget.addnewcomponent",id:"addnewcomponent",ui:"simplePanel simplePanelHeaderBorder",margin:"8 8 0 8",autoScroll:true,title:homeTitle,requires:["Ext.ux.form.MultiSelectSI"],layout:{type:"vbox",align:"stretch"},tools:[{xtype:"button",text:label_Back,cls:"backbutton",iconCls:"iconBack",id:"backButton"}],dockedItems:[{xtype:"toolbar",dock:"bottom",layout:{type:"hbox",pack:"center"},ui:"toolbarBgWithTopBorder",id:"buttonContainer",items:[{xtype:"button",text:label_Add,ui:"newButtonSmall",id:"addButton",name:"addButton",margin:"10 0 9 0"}]}],items:[{xtype:"container",id:"hiddenContnr",hidden:true},{xtype:"container",layout:{type:"hbox",pack:"center"},cls:"formOuter",padding:10,margin:"15 10 0 10",items:[{xtype:"scrollcombo",fieldLabel:label_Category,labelAlign:"top",labelSeparator:" ",width:280,store:new Ext.data.Store({fields:["displayField","valueField"],data:[]}),displayField:"displayField",valueField:"valueField",queryMode:"local",id:"addCategory",},{xtype:"scrollcombo",fieldLabel:label_CompTyep,labelAlign:"top",labelSeparator:" ",width:280,margin:"0 0 0 20",store:new Ext.data.Store({fields:["displayField","valueField"],data:[]}),displayField:"displayField",valueField:"valueField",queryMode:"local",id:"stype",name:"stype",}]},{xtype:"container",id:"vMwareHorizonPodMsg",hidden:true,layout:{type:"hbox",pack:"center"},margin:10,items:[{xtype:"label",html:"*"+label_vMwareHorizonPod}]},{xtype:"container",id:"addPageContainer",layout:{type:"vbox",pack:"center",align:"center"},margin:"15 0 0 0",items:[{xtype:"fieldset",title:label_compInfo,layout:{type:"vbox",pack:"center",align:"center"},defaults:{labelSeparator:"",margin:5,width:550,labelWidth:250},items:[{xtype:"fieldcontainer",fieldLabel:label_HostIP,id:"hostIpCt",layout:"column",columnWidth:1,items:[{xtype:"textfield",id:"hostip",name:"hostip",cls:"textbox",columnWidth:1},{xtype:"label",id:"hostIpTip",html:'<img data-qtip="'+ipMsg+'" style="margin-left:5px;vertical-align: middle;" src="/final/images/clear.png" class="iconTooltipHelp"/>',labelSeparator:""}]},{xtype:"fieldcontainer",fieldLabel:label_Component,id:"hostNameCt",layout:"hbox",items:[{xtype:"textfield",id:"hostname",name:"hostname",cls:"textbox",maxLength:32,enforceMaxLength:true,listeners:{"focus":function(){var c=Ext.getCmp("stype").getValue();
var b=this.up("addnewcomponent");var a=b.down("textfield[name=hostname]");if(isMicrosoftType){a.maxLength=28;a.inputEl.dom.maxLength=28;}else{a.maxLength=32;a.inputEl.dom.maxLength=32;}}}},{xtype:"textfield",id:"hostnameSuffix",name:"hostnameSuffix",cls:"textbox",readOnly:true,hidden:true,margin:"0 0 0 2"}]},{xtype:"textfield",fieldLabel:label_port,id:"sportno",name:"sportno",cls:"textbox",hidden:true,disabled:true},{xtype:"textfield",fieldLabel:label_sid,id:"sid",name:"sid",cls:"textbox",hidden:true,disabled:true},{xtype:"checkboxgroup",fieldLabel:label_isPass,columns:1,vertical:false,hidden:true,disabled:true,id:"isPassiveCheck",name:"isPassiveCheck",items:[{name:"isPassive",id:"isPassive",inputValue:"yes",cls:"checkbt",checked:false}]},{xtype:"checkboxgroup",fieldLabel:label_mts,columns:1,vertical:false,hidden:true,disabled:true,id:"mtsCheck",name:"mtsCheck",items:[{name:"mts",id:"mts",inputValue:"yes",cls:"checkbt",checked:false}]}]},{xtype:"fieldset",title:label_monAppro,layout:{type:"vbox",pack:"center",align:"center"},defaults:{labelSeparator:"",margin:5,width:550,labelWidth:250},id:"agentlessInternal",name:"agentlessInternal",items:[{xtype:"checkboxgroup",fieldLabel:label_Agentless,columns:1,id:"agentlessCheckGr",hidden:true,vertical:false,items:[{name:"enableRemoteAgent",id:"enableRemoteAgent",inputValue:"true",checked:false,cls:"checkbt",hidden:true,disabled:true,listeners:{click:{element:"el",fn:function(a){ctrler.agentlessChange();
}}}}]},{xtype:"radiogroup",fieldLabel:label_IntAgentAssign,columns:3,vertical:false,id:"intAgentModeGr",items:[{boxLabel:"Auto",name:"intAgentMode",id:"intAgentAuto",cls:"radiobt",inputValue:"auto",listeners:{click:{element:"el",fn:function(a){ctrler.internalAssignChange();}}}},{boxLabel:"Manual",name:"intAgentMode",id:"intAgentManual",cls:"radiobt",inputValue:"manual",listeners:{click:{element:"el",fn:function(a){ctrler.internalAssignChange();
}}}}],name:"intAgentModeGr",hidden:true,disabled:true},{xtype:"scrollcombo",fieldLabel:label_OS,store:new Ext.data.Store({fields:["displayField","valueField"],data:[]}),displayField:"displayField",valueField:"valueField",queryMode:"local",id:"alos",name:"alos",hidden:true,disabled:true,editable:false,forceSelection:false},{xtype:"scrollcombo",fieldLabel:label_Mode,store:new Ext.data.Store({fields:["displayField","valueField"],data:[]}),displayField:"displayField",valueField:"valueField",queryMode:"local",id:"almode",name:"almode",hidden:true,disabled:true,editable:false,forceSelection:false},{xtype:"scrollcombo",fieldLabel:label_EncType,store:new Ext.data.Store({fields:["displayField","valueField"],data:[]}),displayField:"displayField",valueField:"valueField",queryMode:"local",id:"alencrypt",name:"alencrypt",hidden:true,disabled:true,editable:false,forceSelection:false},{xtype:"textfield",fieldLabel:label_keyFile,id:"alkeyfile",cls:"textbox",name:"alkeyfile",hidden:true,disabled:true},{xtype:"textfield",fieldLabel:label_RemPort,id:"sshPort",name:"sshPort",cls:"textbox",hidden:true,disabled:true},{xtype:"textfield",fieldLabel:label_RemUser,id:"aluser",name:"aluser",cls:"textbox",hidden:true,disabled:true},{xtype:"textfield",fieldLabel:label_RemPwd,inputType:"password",id:"alpwd",cls:"textbox",name:"alpwd",hidden:true,disabled:true},{xtype:"scrollcombo",fieldLabel:label_RemAgent,store:new Ext.data.Store({fields:["displayField","valueField"],data:[]}),displayField:"displayField",valueField:"valueField",queryMode:"local",id:"remoteAgent",name:"remoteAgent",hidden:true,disabled:true,forceSelection:false},{xtype:"scrollcombo",fieldLabel:label_IntAgent,store:new Ext.data.Store({fields:["displayField","valueField"],data:[]}),displayField:"displayField",valueField:"valueField",queryMode:"local",id:"currAgents",name:"currAgents",hidden:true,disabled:true,forceSelection:false},{xtype:"fieldcontainer",fieldLabel:label_ExtAgents,id:"extAgentsContainer",layout:"column",items:[{xtype:"multiselectSi",height:90,autoScroll:true,scroll:false,border:true,cls:"multiselect",name:"multiselect",id:"extAgents",name:"extAgents",value:"",store:new Ext.data.Store({fields:["displayField","valueField"],data:[]}),displayField:"displayField",valueField:"valueField",queryMode:"local",columnWidth:1}]}]},{xtype:"fieldset",title:label_extInfo,hidden:true,disabled:true,layout:{type:"vbox",pack:"center",align:"center"},defaults:{labelSeparator:"",margin:5,width:550,labelWidth:250},margin:"5 0 0 0",id:"cloudVirtual",name:"cloudVirtual",items:[{xtype:"checkboxgroup",fieldLabel:label_VirEnv,columns:1,vertical:false,hidden:true,disabled:true,name:"underVmwareCheck",id:"underVmwareCheck",items:[{name:"underVmware",id:"underVmware",checked:false,cls:"checkbt",listeners:{click:{element:"el",fn:function(a){ctrler.virtualEnvChange();
}}}}]},{xtype:"scrollcombo",fieldLabel:label_VirServs,store:new Ext.data.Store({fields:["displayField","valueField"],data:[]}),displayField:"displayField",valueField:"valueField",queryMode:"local",id:"esxServer",name:"esxServer",hidden:true,disabled:true,forceSelection:false},{xtype:"checkboxgroup",fieldLabel:label_CloudEnv,columns:1,vertical:false,hidden:true,disabled:true,name:"underCloudCheck",id:"underCloudCheck",items:[{name:"underCloud",id:"underCloud",cls:"checkbt",checked:false,listeners:{click:{element:"el",fn:function(a){ctrler.cloundEnvChange();
}}}}]},{xtype:"scrollcombo",fieldLabel:label_CloudServ,store:new Ext.data.Store({fields:["displayField","valueField"],data:[]}),displayField:"displayField",valueField:"valueField",queryMode:"local",id:"cloudServer",name:"cloudServer",hidden:true,disabled:true,editable:false,forceSelection:false}]}]},{xtype:"container",id:"linkPanelwithoutsite",hidden:true,layout:{type:"hbox",pack:"center"},margin:"50 0 0 0",items:[{xtype:"displayfield",id:"siteUrl"}]}],listeners:{boxready:function(){new Ext.ToolTip({target:document.getElementById("homeTitle"),anchor:"top",anchorOffset:42,mouseOffset:[-55,0],html:pageDesc3+".",cls:"adminInfoTooltip"});
},close:function(){window.location.href="/final/admin/EgAdminOperations.jsp?fromAction="+fromWizard+"&server="+wizCType+"&comeFrom=compappmodify";}}});