This repository has been archived by the owner on Aug 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Viet Anh Nguyen
committed
Jul 23, 2019
1 parent
6064f70
commit 4162229
Showing
20 changed files
with
289 additions
and
262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 57 additions & 55 deletions
112
Sources/EPiServer.Reference.Commerce.Manager/Apps/MetaUIEntity/Config/View/Reference1N.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,60 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<View xmlns="http://schemas.mediachase.com/ecf/view"> | ||
<BafGrid> | ||
<Toolbar> | ||
<add> | ||
<!--<Button id="NewItemButton" text="{IbnFramework.Common:NewEntity}" imageUrl="~/Layouts/Images/newitem.gif" commandName="MC_MUI_NewItem" itemSplitter="Right"></Button>--> | ||
<Button id="AddButton" text="{Common:tAddEntities}" imageUrl="~/Apps/MetaUIEntity/Images/addselected.gif" commandName="MC_MUI_AddSelected" itemSplitter="Right"></Button> | ||
<Button id="DeleteSelectedButton" text="{Common:DeleteSelected}" imageUrl="~/Apps/MetaDataBase/Images/delete.gif" commandName="MC_MUI_DeleteSelected" itemSplitter="Right"></Button> | ||
</add> | ||
</Toolbar> | ||
<CustomColumns id="CM_MUI_Columns"> | ||
<add> | ||
<Column id="472F004E-AF2F-4d64-91A0-17B37248A71C" type="ColumnsActions" templateUrl="~/Apps/MetaUIEntity/Primitives/ColumnsActions.GridEntity.ascx"> | ||
<Item imageUrl="~/Apps/MetaUIEntity/Images/list_view.gif" commandName="MC_MUI_ViewItem" paddingRight="5" tooltip="{Common:ItemView}" /> | ||
<Item imageUrl="~/Apps/MetaDataBase/Images/edit.gif" commandName="MC_MUI_EditItem" paddingRight="5" tooltip="{Common:Edit}" /> | ||
</Column> | ||
</add> | ||
</CustomColumns> | ||
<Commands> | ||
<add> | ||
<Command id="MC_MUI_AddSelected"> | ||
<CommandType>OpenFrameModalPopup</CommandType> | ||
<PopupTitle>{Common:SearchObjects}</PopupTitle> | ||
<Url>~/Apps/MetaUIEntity/Pages/EntitySelect.aspx?Classes={HttpContext:ClassName}&refreshName=SelectItems_Refresh&ReturnCommand=MC_MUI_AddSelected&MultipleSelect=1&CanCreate=1&ContainerFieldName={HttpContext:FieldName}&ContainerId={HttpContext:FieldValue}</Url> | ||
<Width>640</Width> | ||
<Height>480</Height> | ||
<Left>100</Left> | ||
<Top>50</Top> | ||
<Drag>True</Drag> | ||
<UpdatePanelIds>ContentPanelPanel</UpdatePanelIds> | ||
</Command> | ||
<Command id="MC_MUI_NewItem"> | ||
<CommandType>Navigate</CommandType> | ||
<Url>~/Apps/MetaUIEntity/Pages/EntityEdit.aspx?ClassName={HttpContext:ClassName}&ContainerFieldName={HttpContext:FieldName}&ContainerId={HttpContext:FieldValue}</Url> | ||
</Command> | ||
<Command id="MC_MUI_DeleteSelected"> | ||
<CommandType>ServerAction</CommandType> | ||
<ConfirmationText>{Common:DeleteSelectedItemsConfirmation}</ConfirmationText> | ||
<Handler type="Mediachase.Ibn.Web.UI.MetaUIEntity.CommandHandlers.ExcludeSelectedEntityHandler, Mediachase.ConsoleManager" /> | ||
<UpdatePanelIds>ContentPanelPanel</UpdatePanelIds> | ||
</Command> | ||
<Command id="MC_MUI_ViewItem"> | ||
<CommandType>ClientAction</CommandType> | ||
<ClientScript>CSManagementClient.ChangeBafView('{HttpContext:ClassName}', 'View', 'ObjectId=[ClientParam:primaryKeyId]')</ClientScript> | ||
</Command> | ||
<Command id="MC_MUI_EditItem"> | ||
<CommandType>ClientAction</CommandType> | ||
<ClientScript>CSManagementClient.ChangeBafView('{HttpContext:ClassName}', 'Edit', 'ObjectId=[ClientParam:primaryKeyId]')</ClientScript> | ||
</Command> | ||
<Command id="MC_MUI_Ref1_NeedToDataBind"> | ||
<CommandType>ServerAction</CommandType> | ||
<Handler type="Mediachase.Ibn.Web.UI.MetaUIEntity.CommandHandlers.NeedToDataBindHandler, Mediachase.ConsoleManager" /> | ||
<UpdatePanelIds>ContentPanelPanel</UpdatePanelIds> | ||
</Command> | ||
</add> | ||
</Commands> | ||
</BafGrid> | ||
<BafGrid> | ||
<Toolbar> | ||
<add> | ||
<!--<Button id="NewItemButton" text="{IbnFramework.Common:NewEntity}" imageUrl="~/Layouts/Images/newitem.gif" commandName="MC_MUI_NewItem" itemSplitter="Right"></Button>--> | ||
<Button id="AddButton" text="{Common:tAddEntities}" imageUrl="~/Apps/MetaUIEntity/Images/addselected.gif" commandName="MC_MUI_AddSelected" itemSplitter="Right" permissions="businessfoundation:{ClassName}:create:permission"></Button> | ||
<Button id="DeleteSelectedButton" text="{Common:DeleteSelected}" imageUrl="~/Apps/MetaDataBase/Images/delete.gif" commandName="MC_MUI_DeleteSelected" itemSplitter="Right" permissions="businessfoundation:{ClassName}:delete:permission"></Button> | ||
</add> | ||
</Toolbar> | ||
<CustomColumns id="CM_MUI_Columns"> | ||
<add> | ||
<Column id="472F004E-AF2F-4d64-91A0-17B37248A71C" type="ColumnsActions" templateUrl="~/Apps/MetaUIEntity/Primitives/ColumnsActions.GridEntity.ascx"> | ||
<Item imageUrl="~/Apps/MetaUIEntity/Images/list_view.gif" commandName="MC_MUI_ViewItem" paddingRight="5" tooltip="{Common:ItemView}" /> | ||
<Item imageUrl="~/Apps/MetaDataBase/Images/edit.gif" commandName="MC_MUI_EditItem" paddingRight="5" tooltip="{Common:Edit}" /> | ||
</Column> | ||
</add> | ||
</CustomColumns> | ||
<Commands> | ||
<add> | ||
<Command id="MC_MUI_AddSelected"> | ||
<CommandType>OpenFrameModalPopup</CommandType> | ||
<PopupTitle>{Common:SearchObjects}</PopupTitle> | ||
<Url>~/Apps/MetaUIEntity/Pages/EntitySelect.aspx?Classes={HttpContext:ClassName}&refreshName=SelectItems_Refresh&ReturnCommand=MC_MUI_AddSelected&MultipleSelect=1&CanCreate=1&ContainerFieldName={HttpContext:FieldName}&ContainerId={HttpContext:FieldValue}</Url> | ||
<Width>640</Width> | ||
<Height>480</Height> | ||
<Left>100</Left> | ||
<Top>50</Top> | ||
<Drag>True</Drag> | ||
<UpdatePanelIds>ContentPanelPanel</UpdatePanelIds> | ||
<EnableHandler type="Mediachase.Commerce.Manager.CommandHandlers.BusinessObjectPermissionEnableHandler, Mediachase.ConsoleManager" /> | ||
</Command> | ||
<Command id="MC_MUI_NewItem"> | ||
<CommandType>Navigate</CommandType> | ||
<Url>~/Apps/MetaUIEntity/Pages/EntityEdit.aspx?ClassName={HttpContext:ClassName}&ContainerFieldName={HttpContext:FieldName}&ContainerId={HttpContext:FieldValue}</Url> | ||
</Command> | ||
<Command id="MC_MUI_DeleteSelected"> | ||
<CommandType>ServerAction</CommandType> | ||
<ConfirmationText>{Common:DeleteSelectedItemsConfirmation}</ConfirmationText> | ||
<Handler type="Mediachase.Ibn.Web.UI.MetaUIEntity.CommandHandlers.ExcludeSelectedEntityHandler, Mediachase.ConsoleManager" /> | ||
<UpdatePanelIds>ContentPanelPanel</UpdatePanelIds> | ||
<EnableHandler type="Mediachase.Commerce.Manager.CommandHandlers.BusinessObjectPermissionEnableHandler, Mediachase.ConsoleManager" /> | ||
</Command> | ||
<Command id="MC_MUI_ViewItem"> | ||
<CommandType>ClientAction</CommandType> | ||
<ClientScript>CSManagementClient.ChangeBafView('{HttpContext:ClassName}', 'View', 'ObjectId=[ClientParam:primaryKeyId]')</ClientScript> | ||
</Command> | ||
<Command id="MC_MUI_EditItem"> | ||
<CommandType>ClientAction</CommandType> | ||
<ClientScript>CSManagementClient.ChangeBafView('{HttpContext:ClassName}', 'Edit', 'ObjectId=[ClientParam:primaryKeyId]')</ClientScript> | ||
</Command> | ||
<Command id="MC_MUI_Ref1_NeedToDataBind"> | ||
<CommandType>ServerAction</CommandType> | ||
<Handler type="Mediachase.Ibn.Web.UI.MetaUIEntity.CommandHandlers.NeedToDataBindHandler, Mediachase.ConsoleManager" /> | ||
<UpdatePanelIds>ContentPanelPanel</UpdatePanelIds> | ||
</Command> | ||
</add> | ||
</Commands> | ||
</BafGrid> | ||
</View> |
96 changes: 49 additions & 47 deletions
96
Sources/EPiServer.Reference.Commerce.Manager/Apps/MetaUIEntity/Config/View/ReferenceNN.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,52 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<View xmlns="http://schemas.mediachase.com/ecf/view"> | ||
<BafGrid> | ||
<Toolbar> | ||
<add> | ||
<Button id="AddButton" text="{Common:tAddEntities}" imageUrl="~/Apps/MetaUIEntity/Images/addselected.gif" commandName="MC_MUI_AddSelected" itemSplitter="Right"></Button> | ||
<Button id="DeleteSelectedButton" text="{Common:DeleteSelected}" imageUrl="~/Apps/MetaDataBase/Images/delete.gif" commandName="MC_MUI_DeleteSelected" itemSplitter="Right"></Button> | ||
</add> | ||
</Toolbar> | ||
<CustomColumns id="CM_MUI_Columns"> | ||
<add> | ||
<Column id="472F004E-AF2F-4d64-91A0-17B37248A71C" type="ColumnsActions" templateUrl="~/Apps/MetaUIEntity/Primitives/ColumnsActions.GridEntity.ascx"> | ||
<Item imageUrl="~/Apps/MetaUIEntity/Images/list_view.gif" commandName="MC_MUI_ViewItem" paddingRight="5" tooltip="{Common:ItemView}" /> | ||
<Item imageUrl="~/Apps/MetaDataBase/Images/edit.gif" commandName="MC_MUI_EditItem" paddingRight="5" tooltip="{Common:Edit}" /> | ||
</Column> | ||
</add> | ||
</CustomColumns> | ||
<Commands> | ||
<add> | ||
<Command id="MC_MUI_AddSelected"> | ||
<CommandType>OpenFrameModalPopup</CommandType> | ||
<PopupTitle>{Common:SearchObjects}</PopupTitle> | ||
<Url>~/Apps/MetaUIEntity/Pages/EntitySelect.aspx?Classes={HttpContext:ClassName}&refreshName=SelectItems_Refresh&ReturnCommand=MC_MUI_AddSelected&MultipleSelect=1&CanCreate=1</Url> | ||
<Width>640</Width> | ||
<Height>480</Height> | ||
<Left>100</Left> | ||
<Top>50</Top> | ||
<Drag>True</Drag> | ||
</Command> | ||
<Command id="MC_MUI_DeleteSelected"> | ||
<CommandType>ServerAction</CommandType> | ||
<ConfirmationText>{Common:DeleteSelectedItemsConfirmation}</ConfirmationText> | ||
<Handler type="Mediachase.Ibn.Web.UI.MetaUIEntity.CommandHandlers.DeleteSelectedBridgeEntityHandler, Mediachase.ConsoleManager" /> | ||
</Command> | ||
<Command id="MC_MUI_ViewItem"> | ||
<CommandType>ClientAction</CommandType> | ||
<ClientScript>CSManagementClient.ChangeBafView('{HttpContext:ClassName}', 'View', 'ObjectId=[ClientParam:primaryKeyId]')</ClientScript> | ||
</Command> | ||
<Command id="MC_MUI_EditItem"> | ||
<CommandType>ClientAction</CommandType> | ||
<ClientScript>CSManagementClient.ChangeBafView('{HttpContext:ClassName}', 'Edit', 'ObjectId=[ClientParam:primaryKeyId]')</ClientScript> | ||
</Command> | ||
<Command id="MC_MUI_RefN_NeedToDataBind"> | ||
<CommandType>ServerAction</CommandType> | ||
<Handler type="Mediachase.Ibn.Web.UI.MetaUIEntity.CommandHandlers.NeedToDataBindHandler, Mediachase.ConsoleManager" /> | ||
</Command> | ||
</add> | ||
</Commands> | ||
</BafGrid> | ||
<BafGrid> | ||
<Toolbar> | ||
<add> | ||
<Button id="AddButton" text="{Common:tAddEntities}" imageUrl="~/Apps/MetaUIEntity/Images/addselected.gif" commandName="MC_MUI_AddSelected" itemSplitter="Right" permissions="businessfoundation:{ClassName}:create:permission"></Button> | ||
<Button id="DeleteSelectedButton" text="{Common:DeleteSelected}" imageUrl="~/Apps/MetaDataBase/Images/delete.gif" commandName="MC_MUI_DeleteSelected" itemSplitter="Right" permissions="businessfoundation:{ClassName}:delete:permission"></Button> | ||
</add> | ||
</Toolbar> | ||
<CustomColumns id="CM_MUI_Columns"> | ||
<add> | ||
<Column id="472F004E-AF2F-4d64-91A0-17B37248A71C" type="ColumnsActions" templateUrl="~/Apps/MetaUIEntity/Primitives/ColumnsActions.GridEntity.ascx"> | ||
<Item imageUrl="~/Apps/MetaUIEntity/Images/list_view.gif" commandName="MC_MUI_ViewItem" paddingRight="5" tooltip="{Common:ItemView}" /> | ||
<Item imageUrl="~/Apps/MetaDataBase/Images/edit.gif" commandName="MC_MUI_EditItem" paddingRight="5" tooltip="{Common:Edit}" /> | ||
</Column> | ||
</add> | ||
</CustomColumns> | ||
<Commands> | ||
<add> | ||
<Command id="MC_MUI_AddSelected"> | ||
<CommandType>OpenFrameModalPopup</CommandType> | ||
<PopupTitle>{Common:SearchObjects}</PopupTitle> | ||
<Url>~/Apps/MetaUIEntity/Pages/EntitySelect.aspx?Classes={HttpContext:ClassName}&refreshName=SelectItems_Refresh&ReturnCommand=MC_MUI_AddSelected&MultipleSelect=1&CanCreate=1</Url> | ||
<Width>640</Width> | ||
<Height>480</Height> | ||
<Left>100</Left> | ||
<Top>50</Top> | ||
<Drag>True</Drag> | ||
<EnableHandler type="Mediachase.Commerce.Manager.CommandHandlers.BusinessObjectPermissionEnableHandler, Mediachase.ConsoleManager" /> | ||
</Command> | ||
<Command id="MC_MUI_DeleteSelected"> | ||
<CommandType>ServerAction</CommandType> | ||
<ConfirmationText>{Common:DeleteSelectedItemsConfirmation}</ConfirmationText> | ||
<Handler type="Mediachase.Ibn.Web.UI.MetaUIEntity.CommandHandlers.DeleteSelectedBridgeEntityHandler, Mediachase.ConsoleManager" /> | ||
<EnableHandler type="Mediachase.Commerce.Manager.CommandHandlers.BusinessObjectPermissionEnableHandler, Mediachase.ConsoleManager" /> | ||
</Command> | ||
<Command id="MC_MUI_ViewItem"> | ||
<CommandType>ClientAction</CommandType> | ||
<ClientScript>CSManagementClient.ChangeBafView('{HttpContext:ClassName}', 'View', 'ObjectId=[ClientParam:primaryKeyId]')</ClientScript> | ||
</Command> | ||
<Command id="MC_MUI_EditItem"> | ||
<CommandType>ClientAction</CommandType> | ||
<ClientScript>CSManagementClient.ChangeBafView('{HttpContext:ClassName}', 'Edit', 'ObjectId=[ClientParam:primaryKeyId]')</ClientScript> | ||
</Command> | ||
<Command id="MC_MUI_RefN_NeedToDataBind"> | ||
<CommandType>ServerAction</CommandType> | ||
<Handler type="Mediachase.Ibn.Web.UI.MetaUIEntity.CommandHandlers.NeedToDataBindHandler, Mediachase.ConsoleManager" /> | ||
</Command> | ||
</add> | ||
</Commands> | ||
</BafGrid> | ||
</View> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.