System generated commit, initial commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export default {
|
||||
async setCreateMode() {
|
||||
await storeValue("editContext", {
|
||||
mode: "create"
|
||||
}, false);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"gitSyncId": "6a57350b6665afa2c813ed3d_e040b7c6-34a5-4991-af80-0dddb29bdd1d",
|
||||
"id": "Bearbeitung Sportclubs_Button_Create_Mode",
|
||||
"unpublishedCollection": {
|
||||
"name": "Button_Create_Mode",
|
||||
"pageId": "Bearbeitung Sportclubs",
|
||||
"pluginId": "js-plugin",
|
||||
"pluginType": "JS",
|
||||
"variables": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
export default {
|
||||
saveEdit() {
|
||||
return storeValue("editDraft", {
|
||||
Kürzel: Kuerzel.text,
|
||||
Hausname: Hausname.text,
|
||||
Adresse: Adresse.text,
|
||||
Land: Land.selectedOptionValue,
|
||||
Produkt: Produktart.text,
|
||||
Status: Status.selectedOptionValue
|
||||
}, false);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"gitSyncId": "6a57350b6665afa2c813ed3d_bd643e3f-8a51-4244-9029-e17e07faacfa",
|
||||
"id": "Bearbeitung Sportclubs_Input_Store",
|
||||
"unpublishedCollection": {
|
||||
"name": "Input_Store",
|
||||
"pageId": "Bearbeitung Sportclubs",
|
||||
"pluginId": "js-plugin",
|
||||
"pluginType": "JS",
|
||||
"variables": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"gitSyncId": "6a57350b6665afa2c813ed3d_3a630c2f-0e39-4141-864b-70866bbbf872",
|
||||
"id": "Bearbeitung Sportclubs__$NavBar_Variables1$_NavBar_Variables",
|
||||
"isPublic": true,
|
||||
"moduleInstanceId": "Bearbeitung Sportclubs_NavBar_Variables1",
|
||||
"rootModuleInstanceId": "Bearbeitung Sportclubs_NavBar_Variables1",
|
||||
"unpublishedCollection": {
|
||||
"contextType": "PAGE",
|
||||
"name": "_$NavBar_Variables1$_NavBar_Variables",
|
||||
"pageId": "Bearbeitung Sportclubs",
|
||||
"pluginId": "js-plugin",
|
||||
"pluginType": "JS"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
export default {
|
||||
saveEdit() {
|
||||
return Update_Haus.run(() => {
|
||||
Haus_Schweiz.run();
|
||||
Haus__Oesterreich.run();
|
||||
Haus_Italien.run();
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"gitSyncId": "6a57350b6665afa2c813ed3d_75a29df9-143c-41d2-a307-44ef8c0af063",
|
||||
"id": "Bearbeitung Sportclubs_Reload",
|
||||
"unpublishedCollection": {
|
||||
"name": "Reload",
|
||||
"pageId": "Bearbeitung Sportclubs",
|
||||
"pluginId": "js-plugin",
|
||||
"pluginType": "JS",
|
||||
"variables": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
export default {
|
||||
async openEditModal(row, sourceTable) {
|
||||
await storeValue("editContext", {
|
||||
mode: "edit",
|
||||
row,
|
||||
sourceTable
|
||||
}, false);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"gitSyncId": "6a57350b6665afa2c813ed3d_1d133ef0-3130-4039-969d-38ba544d60c6",
|
||||
"id": "Bearbeitung Sportclubs_Rowselect",
|
||||
"unpublishedCollection": {
|
||||
"name": "Rowselect",
|
||||
"pageId": "Bearbeitung Sportclubs",
|
||||
"pluginId": "js-plugin",
|
||||
"pluginType": "JS",
|
||||
"variables": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
export default {
|
||||
async saveRecord() {
|
||||
if (appsmith.store.editContext.mode === "create") {
|
||||
const res = await ID_Check.run();
|
||||
const nextID = res[0].nextID;
|
||||
|
||||
return Insert_Haus.run({
|
||||
HID: nextID,
|
||||
Kürzel: appsmith.store.editDraft.Kürzel,
|
||||
Hausname: appsmith.store.editDraft.Hausname,
|
||||
Adresse: appsmith.store.editDraft.Adresse,
|
||||
Land: appsmith.store.editDraft.Land,
|
||||
Unterkunftsart: appsmith.store.editDraft.Produkt,
|
||||
Status: appsmith.store.editDraft.Status
|
||||
});
|
||||
} else {
|
||||
return Update_Haus.run({
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"gitSyncId": "6a57350b6665afa2c813ed3d_3e8361d8-f317-4d42-a319-4d3eb0196760",
|
||||
"id": "Bearbeitung Sportclubs_Update_or_Insert",
|
||||
"unpublishedCollection": {
|
||||
"name": "Update_or_Insert",
|
||||
"pageId": "Bearbeitung Sportclubs",
|
||||
"pluginId": "js-plugin",
|
||||
"pluginType": "JS",
|
||||
"variables": []
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user