表格自定义属性:{isShowToolBar:true,PageBar:true,PageBarAddBtnShow:false}
,表头按钮:[
{"实体":"Base_Org,公司","标签":"公司","绑定":"","类型":"实体","type":"参照框","Eid":"公司","名称":"公司","宽":200,"标签宽":55,"边白":"5 0 0 0","标签位置":"right","值":"",listeners:{change:function(oo,newValue,oldValue){var SellistTab=oo.up("SellistTab");if(SellistTab){SellistTab.OtherInfo["条件选择"](oo,"公司",newValue);}}}},
{"实体":"CBO_BomMaster,父件编码","标签":"父件编码","绑定":"","类型":"实体","type":"参照框","Eid":"父件编码","名称":"父件编码","宽":200,"标签宽":55,"边白":"5 0 0 0","标签位置":"right","值":"",listeners:{change:function(oo,newValue,oldValue){var SellistTab=oo.up("SellistTab");if(SellistTab){SellistTab.OtherInfo["条件选择"](oo,"父件编码",newValue);}}}},
{"实体":"CBO_ItemMaster,子件编码","标签":"子件编码","绑定":"","类型":"实体","type":"参照框","Eid":"子件编码","名称":"子件编码","宽":200,"标签宽":55,"边白":"5 0 0 0","标签位置":"right","值":"",listeners:{change:function(oo,newValue,oldValue){var SellistTab=oo.up("SellistTab");if(SellistTab){SellistTab.OtherInfo["条件选择"](oo,"子件编码",newValue);}}}},
{text: '搜索',cls:"myself-toolbarbtn btnBackground","margin":"0 0 0 5",handler:function(o){
var oo=o.up("SellistTab");
var grid=oo.down("xDgrid");
var Org=findEidV(o.up("SellistTab"),"公司");
var FCode=findEidV(o.up("SellistTab"),"父件编码");
var ZCode=findEidV(o.up("SellistTab"),"子件编码");
var Sql="exec BOM_mod_del '搜索',0,'',@User,@UserName,@Org,'',1,'"+Org+"','"+FCode+"','"+ZCode+"'";
GetHtmlTB({Lei:"execSql",Sql:Sql});
grid.store.reload();
}}
,其它表头栏:[[
{"实体":"CBO_ItemMaster,新子件编码","标签":"新子件编码","绑定":"","类型":"实体","type":"参照框","Eid":"新子件编码","名称":"新子件编码","宽":200,"标签宽":55,"边白":"5 0 0 0","标签位置":"right","值":"",listeners:{change:function(oo,newValue,oldValue){var SellistTab=oo.up("SellistTab");if(SellistTab){SellistTab.OtherInfo["条件选择"](oo,"新子件编码",newValue);}}}},
{text: '替换',cls:"myself-toolbarbtn btnBackground","margin":"0 0 0 5",handler:function(o){
var oo=o.up("SellistTab");
var grid=oo.down("xDgrid");
var Org=findEidV(o.up("SellistTab"),"公司");
var FCode=findEidV(o.up("SellistTab"),"父件编码");
var ZCode=findEidV(o.up("SellistTab"),"子件编码");
var XCode=findEidV(o.up("SellistTab"),"新子件编码");
var Sql="exec BOM_mod_del '替换',0,'',@User,@UserName,@Org,'',1,'"+Org+"','"+FCode+"','"+ZCode+"','"+XCode+"'";
GetHtmlTB({Lei:"execSql",Sql:Sql});
grid.store.reload();
}},
{text: '删除所选物料',cls:"myself-toolbarbtn btnBackground","margin":"0 0 0 5",handler:function(o){
var oo=o.up("SellistTab");
var grid=oo.down("xDgrid");
var Org=findEidV(o.up("SellistTab"),"公司");
var FCode=findEidV(o.up("SellistTab"),"父件编码");
var ZCode=findEidV(o.up("SellistTab"),"子件编码");
var Sql="exec BOM_mod_del '搜索',0,'',@User,@UserName,@Org,'',1,'"+Org+"','"+FCode+"','"+ZCode+"'";
GetHtmlTB({Lei:"execSql",Sql:Sql});
grid.store.reload();
}},
{text: '删除当前所有数据',cls:"myself-toolbarbtn btnBackground","margin":"0 0 0 5",handler:function(o){
var oo=o.up("SellistTab");
var grid=oo.down("xDgrid");
var Org=findEidV(o.up("SellistTab"),"公司");
var FCode=findEidV(o.up("SellistTab"),"父件编码");
var ZCode=findEidV(o.up("SellistTab"),"子件编码");
var Sql="exec BOM_mod_del '搜索',0,'',@User,@UserName,@Org,'',1,'"+Org+"','"+FCode+"','"+ZCode+"'";
GetHtmlTB({Lei:"execSql",Sql:Sql});
grid.store.reload();
}}
]]
,列表开启:function(SellistTab,toolbar,grid){
console.log(SellistTab);
SellistTab.OtherInfo["条件选择"](SellistTab,"开启","");
console.log(SellistTab);
}