Platformdishaddstyle:function () {
var store = Ext.data.StoreManager.lookup ("Dish_status");
Console.log (store);
Ext.create (' Ext.window.Window ', {
Width: ' 50% ',
Height: ' 70% ',
Modal:true,
Border:false,
ItemId: ' Addplatdishtypeitemid ',
padding: ' 0 0 0 5 ',
Items: [{
Xtype: ' FieldSet ',
Title:forp.model.bussiness.dishType.group1title,
In this section we use the form layout that would aggregate all of the fields
into a single table, rather than one table per field.
Defaults: {
Anchor: ' 100% '
},
Collapsible:true,
Flex:1,
Layout: {
Type: ' Table ',
Columns:4,
Tableattrs: {
Style: {
Width: ' 100% '
}
}
},
Items: [{
Xtype: ' TextField ',
Name: ' Dishtypename ',
ItemId: ' Dishtypenameitemid ',
Colspan:2,
Width: "50%",
FieldLabel:forp.model.bussiness.dishType.name
},
{
Xtype: ' ComboBox ',
FieldLabel:forp.model.bussiness.dishType.status,
' Member Type ',
Valuefield: ' Code ',
Displayfield: ' Name ',
ItemId: ' Dishtypestatusitemid ',
Colspan:2,
Width: "50%",
Store:store
},
{
Xtype: ' Textareafield ',
Grow:true,
Name: ' Dishtypeintroduces ',
ItemId: ' Dishtypeintroducesitemid ',
FieldLabel:forp.model.bussiness.dishType.introduces,
Width: ' 84.5% ',
Colspan:4
}]
}],
Buttons: [{
Text:forp.cancel,
Cancel
Handler: ' Platdishtypecancel ',
ItemId: ' Resetbuttonitemid '
},
{
Text:forp.save,
Handler: ' Platdishtypesave ',
ItemId: ' Savebuttonitemid '
}]
}). Show ();
},
Type of food products