This commit is contained in:
@@ -9,11 +9,11 @@
|
|||||||
</gz-extensions>
|
</gz-extensions>
|
||||||
<gz-data-table
|
<gz-data-table
|
||||||
ref="gzdatatable"
|
ref="gzdatatable"
|
||||||
form-key="customer-list"
|
form-key="subscription-server-list"
|
||||||
data-list-key="CustomerDataList"
|
data-list-key="SubscriptionServerDataList"
|
||||||
:show-select="rights.read"
|
:show-select="rights.read"
|
||||||
:reload="reload"
|
:reload="reload"
|
||||||
data-cy="customersTable"
|
data-cy="subscription-serversTable"
|
||||||
:client-criteria="clientCriteria"
|
:client-criteria="clientCriteria"
|
||||||
:pre-filter-mode="preFilterMode"
|
:pre-filter-mode="preFilterMode"
|
||||||
@selection-change="handleSelected"
|
@selection-change="handleSelected"
|
||||||
@@ -24,12 +24,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const FORM_KEY = "customer-list";
|
const FORM_KEY = "subscription-server-list";
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
rights: window.$gz.role.defaultRightsObject(),
|
rights: window.$gz.role.defaultRightsObject(),
|
||||||
aType: window.$gz.type.Customer,
|
aType: window.$gz.type.SubscriptionServer,
|
||||||
selectedItems: [],
|
selectedItems: [],
|
||||||
reload: false,
|
reload: false,
|
||||||
clientCriteria: undefined,
|
clientCriteria: undefined,
|
||||||
@@ -37,11 +37,11 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.rights = window.$gz.role.getRights(window.$gz.type.Customer);
|
this.rights = window.$gz.role.getRights(window.$gz.type.SubscriptionServer);
|
||||||
window.$gz.eventBus.$on("menu-click", clickHandler);
|
window.$gz.eventBus.$on("menu-click", clickHandler);
|
||||||
|
|
||||||
//------ pre-filter ----
|
//------ pre-filter ----
|
||||||
//OPTIONAL "Show All customers of head office" FILTER
|
//OPTIONAL "Show All subscription-servers of head office" FILTER
|
||||||
this.objectId = window.$gz.util.stringToIntOrNull(
|
this.objectId = window.$gz.util.stringToIntOrNull(
|
||||||
this.$route.params.objectId
|
this.$route.params.objectId
|
||||||
);
|
);
|
||||||
@@ -89,7 +89,7 @@ async function clickHandler(menuItem) {
|
|||||||
switch (m.key) {
|
switch (m.key) {
|
||||||
case "new":
|
case "new":
|
||||||
m.vm.$router.push({
|
m.vm.$router.push({
|
||||||
name: "customer-edit",
|
name: "subscription-server-edit",
|
||||||
params: { recordid: 0 }
|
params: { recordid: 0 }
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
@@ -97,7 +97,7 @@ async function clickHandler(menuItem) {
|
|||||||
{
|
{
|
||||||
const res = await m.vm.$refs.extensions.open(
|
const res = await m.vm.$refs.extensions.open(
|
||||||
m.vm.$refs.gzdatatable.getDataListSelection(
|
m.vm.$refs.gzdatatable.getDataListSelection(
|
||||||
window.$gz.type.Customer
|
window.$gz.type.SubscriptionServer
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
if (res && res.refresh == true) {
|
if (res && res.refresh == true) {
|
||||||
@@ -109,7 +109,7 @@ async function clickHandler(menuItem) {
|
|||||||
{
|
{
|
||||||
const res = await m.vm.$refs.reportSelector.open(
|
const res = await m.vm.$refs.reportSelector.open(
|
||||||
m.vm.$refs.gzdatatable.getDataListSelection(
|
m.vm.$refs.gzdatatable.getDataListSelection(
|
||||||
window.$gz.type.Customer
|
window.$gz.type.SubscriptionServer
|
||||||
),
|
),
|
||||||
m.id
|
m.id
|
||||||
);
|
);
|
||||||
@@ -134,12 +134,12 @@ async function clickHandler(menuItem) {
|
|||||||
function generateMenu(vm) {
|
function generateMenu(vm) {
|
||||||
const menuOptions = {
|
const menuOptions = {
|
||||||
isMain: true,
|
isMain: true,
|
||||||
icon: "$sockiAddressCard",
|
icon: "$sockiCloud",
|
||||||
title: "CustomerList",
|
title: "SubscriptionServerList",
|
||||||
helpUrl: "customers",
|
helpUrl: "subscription-servers",
|
||||||
menuItems: [],
|
menuItems: [],
|
||||||
formData: {
|
formData: {
|
||||||
sockType: window.$gz.type.Customer
|
sockType: window.$gz.type.SubscriptionServer
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -633,7 +633,7 @@ function generateMenu(vm) {
|
|||||||
const menuOptions = {
|
const menuOptions = {
|
||||||
isMain: false,
|
isMain: false,
|
||||||
readOnly: vm.formState.readOnly,
|
readOnly: vm.formState.readOnly,
|
||||||
icon: "$sockiBarCode",
|
icon: "$sockiCloud",
|
||||||
title: "SubscriptionServer",
|
title: "SubscriptionServer",
|
||||||
helpUrl: "svc-subscription-servers",
|
helpUrl: "svc-subscription-servers",
|
||||||
formData: {
|
formData: {
|
||||||
|
|||||||
@@ -391,6 +391,26 @@ namespace Sockeye.Biz
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region SubscriptionServer
|
||||||
|
{
|
||||||
|
List<FormField> l = new List<FormField>();
|
||||||
|
l.Add(new FormField { TKey = "SubServerNotes", FieldKey = "SubServerNotes" });
|
||||||
|
l.Add(new FormField { TKey = "SubServerLastUpdated", FieldKey = "SubServerLastUpdated" });
|
||||||
|
l.Add(new FormField { TKey = "SubServerTrialContact", FieldKey = "SubServerTrialContact" });
|
||||||
|
l.Add(new FormField { TKey = "SubServerOperatingSystem", FieldKey = "SubServerOperatingSystem" });
|
||||||
|
l.Add(new FormField { TKey = "SubServerTrialCompany", FieldKey = "SubServerTrialCompany" });
|
||||||
|
l.Add(new FormField { TKey = "SubServerTrialEmail", FieldKey = "SubServerTrialEmail" });
|
||||||
|
l.Add(new FormField { TKey = "SubServerCustomerDomain", FieldKey = "SubServerCustomerDomain" });
|
||||||
|
|
||||||
|
l.Add(new FormField { TKey = "Tags", FieldKey = "Tags" });
|
||||||
|
l.Add(new FormField { TKey = "Wiki", FieldKey = "Wiki" });
|
||||||
|
l.Add(new FormField { TKey = "Attachments", FieldKey = "Attachments", Requireable = false });
|
||||||
|
|
||||||
|
|
||||||
|
_formFields.Add(SockType.SubscriptionServer.ToString(), l);
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
//******************************************************
|
//******************************************************
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user