ChangeOrder
This commit is contained in:
parent
4f43df675b
commit
77b64a9979
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,7 +1,32 @@
|
||||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\",
|
||||
"Documents": [],
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\functions\\changeorder.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:functions\\changeorder.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\functions\\changeorder.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}",
|
||||
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:functions\\changeorder.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\models\\service.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:models\\service.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\functions\\addorder.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:functions\\addorder.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\functions\\deleteorder.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:functions\\deleteorder.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\functions\\deleteorder.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}",
|
||||
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:functions\\deleteorder.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
@ -9,7 +34,7 @@
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": -1,
|
||||
"SelectedChildIndex": 6,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
@ -18,6 +43,82 @@
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 3,
|
||||
"Title": "AddOrder.axaml.cs",
|
||||
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\AddOrder.axaml.cs",
|
||||
"RelativeDocumentMoniker": "Functions\\AddOrder.axaml.cs",
|
||||
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\AddOrder.axaml.cs",
|
||||
"RelativeToolTip": "Functions\\AddOrder.axaml.cs",
|
||||
"ViewState": "AgIAACEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-12T10:33:05.812Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 2,
|
||||
"Title": "Service.cs",
|
||||
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Models\\Service.cs",
|
||||
"RelativeDocumentMoniker": "Models\\Service.cs",
|
||||
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Models\\Service.cs",
|
||||
"RelativeToolTip": "Models\\Service.cs",
|
||||
"ViewState": "AgIAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-12T10:09:07.202Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 4,
|
||||
"Title": "DeleteOrder.axaml.cs",
|
||||
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\DeleteOrder.axaml.cs",
|
||||
"RelativeDocumentMoniker": "Functions\\DeleteOrder.axaml.cs",
|
||||
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\DeleteOrder.axaml.cs",
|
||||
"RelativeToolTip": "Functions\\DeleteOrder.axaml.cs",
|
||||
"ViewState": "AgIAAEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-12T09:52:13.625Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 5,
|
||||
"Title": "DeleteOrder.axaml",
|
||||
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\DeleteOrder.axaml",
|
||||
"RelativeDocumentMoniker": "Functions\\DeleteOrder.axaml",
|
||||
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\DeleteOrder.axaml",
|
||||
"RelativeToolTip": "Functions\\DeleteOrder.axaml",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
|
||||
"WhenOpened": "2025-03-12T09:52:04.709Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "ChangeOrder.axaml.cs",
|
||||
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\ChangeOrder.axaml.cs",
|
||||
"RelativeDocumentMoniker": "Functions\\ChangeOrder.axaml.cs",
|
||||
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\ChangeOrder.axaml.cs",
|
||||
"RelativeToolTip": "Functions\\ChangeOrder.axaml.cs",
|
||||
"ViewState": "AgIAAH0AAAAAAAAAAADwv64AAABBAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-11T18:38:20.844Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 1,
|
||||
"Title": "ChangeOrder.axaml",
|
||||
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\ChangeOrder.axaml",
|
||||
"RelativeDocumentMoniker": "Functions\\ChangeOrder.axaml",
|
||||
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\ChangeOrder.axaml",
|
||||
"RelativeToolTip": "Functions\\ChangeOrder.axaml",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
|
||||
"WhenOpened": "2025-03-11T18:38:19.224Z",
|
||||
"EditorCaption": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1,7 +1,32 @@
|
||||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\",
|
||||
"Documents": [],
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\functions\\changeorder.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:functions\\changeorder.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\functions\\changeorder.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}",
|
||||
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:functions\\changeorder.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\models\\service.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:models\\service.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\functions\\addorder.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:functions\\addorder.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\functions\\deleteorder.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
|
||||
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:functions\\deleteorder.axaml.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
|
||||
},
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|c:\\users\\vivobook 15x\\desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\demo_blagodat\\demo_blagodat\\demo_blagodat\\functions\\deleteorder.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}",
|
||||
"RelativeMoniker": "D:0:0:{B40AB1D5-A904-4458-95A8-8CAE49BE0884}|demo_blagodat.csproj|solutionrelative:functions\\deleteorder.axaml||{6D5344A2-2FCD-49DE-A09D-6A14FD1B1224}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
@ -9,7 +34,7 @@
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": -1,
|
||||
"SelectedChildIndex": 6,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
@ -18,6 +43,82 @@
|
||||
{
|
||||
"$type": "Bookmark",
|
||||
"Name": "ST:0:0:{aa2115a1-9712-457b-9047-dbb71ca2cdd2}"
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 3,
|
||||
"Title": "AddOrder.axaml.cs",
|
||||
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\AddOrder.axaml.cs",
|
||||
"RelativeDocumentMoniker": "Functions\\AddOrder.axaml.cs",
|
||||
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\AddOrder.axaml.cs",
|
||||
"RelativeToolTip": "Functions\\AddOrder.axaml.cs",
|
||||
"ViewState": "AgIAACEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-12T10:33:05.812Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 2,
|
||||
"Title": "Service.cs",
|
||||
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Models\\Service.cs",
|
||||
"RelativeDocumentMoniker": "Models\\Service.cs",
|
||||
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Models\\Service.cs",
|
||||
"RelativeToolTip": "Models\\Service.cs",
|
||||
"ViewState": "AgIAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-12T10:09:07.202Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 4,
|
||||
"Title": "DeleteOrder.axaml.cs",
|
||||
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\DeleteOrder.axaml.cs",
|
||||
"RelativeDocumentMoniker": "Functions\\DeleteOrder.axaml.cs",
|
||||
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\DeleteOrder.axaml.cs",
|
||||
"RelativeToolTip": "Functions\\DeleteOrder.axaml.cs",
|
||||
"ViewState": "AgIAAEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-12T09:52:13.625Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 5,
|
||||
"Title": "DeleteOrder.axaml",
|
||||
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\DeleteOrder.axaml",
|
||||
"RelativeDocumentMoniker": "Functions\\DeleteOrder.axaml",
|
||||
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\DeleteOrder.axaml",
|
||||
"RelativeToolTip": "Functions\\DeleteOrder.axaml",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
|
||||
"WhenOpened": "2025-03-12T09:52:04.709Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "ChangeOrder.axaml.cs",
|
||||
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\ChangeOrder.axaml.cs",
|
||||
"RelativeDocumentMoniker": "Functions\\ChangeOrder.axaml.cs",
|
||||
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\ChangeOrder.axaml.cs",
|
||||
"RelativeToolTip": "Functions\\ChangeOrder.axaml.cs",
|
||||
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAsAAAAhAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
|
||||
"WhenOpened": "2025-03-11T18:38:20.844Z",
|
||||
"EditorCaption": ""
|
||||
},
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 1,
|
||||
"Title": "ChangeOrder.axaml",
|
||||
"DocumentMoniker": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\ChangeOrder.axaml",
|
||||
"RelativeDocumentMoniker": "Functions\\ChangeOrder.axaml",
|
||||
"ToolTip": "C:\\Users\\VivoBook 15X\\Desktop\\\u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u043D\u044B\u0435 \u043C\u043E\u0434\u0443\u043B\u0438\\Demo_Blagodat\\demo_blagodat\\demo_blagodat\\Functions\\ChangeOrder.axaml",
|
||||
"RelativeToolTip": "Functions\\ChangeOrder.axaml",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|",
|
||||
"WhenOpened": "2025-03-11T18:38:19.224Z",
|
||||
"EditorCaption": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -42,15 +42,36 @@
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Spacing="15" HorizontalAlignment="Center" Orientation="Horizontal">
|
||||
|
||||
|
||||
<StackPanel Orientation="Vertical">
|
||||
<TextBlock Text="Добавте название услугу"/>
|
||||
<TextBox Width="300" x:Name="TextService" Text=""/>
|
||||
<StackPanel HorizontalAlignment="Center">
|
||||
<TextBlock Text="Выберите услугу"/>
|
||||
<Border Background="Red"
|
||||
CornerRadius="10"
|
||||
Padding="20"
|
||||
Margin="20"
|
||||
Width="400"
|
||||
Height="300">
|
||||
<ScrollViewer>
|
||||
<ListBox Name="ListService" SelectionChanged="ListBox_SelectionChanged">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate x:DataType="vm:Service">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="{Binding ServiceName}"/>
|
||||
<TextBlock Text=" : "/>
|
||||
<TextBlock Text="{Binding ServiceCode}"/>
|
||||
<TextBlock Text=" : "/>
|
||||
<TextBlock Text="{Binding ServiceCostPerHour}"/>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
|
||||
|
||||
</StackPanel>
|
||||
|
||||
|
||||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
|
||||
<Button Content="Назад" Click="ExitClik"/>
|
||||
|
@ -11,17 +11,18 @@ namespace demo_blagodat;
|
||||
|
||||
public partial class CreateOrder : Window
|
||||
{
|
||||
public Order NewOrder = null;
|
||||
public Employee User;
|
||||
Order NewOrder = null;
|
||||
Employee User;
|
||||
static User11Context db = new User11Context();
|
||||
ObservableCollection<Client> ClientitemSource = new ObservableCollection<Client>(db.Clients);
|
||||
ObservableCollection<Service> ServiceitemSource = new ObservableCollection<Service>(db.Services);
|
||||
|
||||
public CreateOrder(Employee user)
|
||||
{
|
||||
InitializeComponent();
|
||||
User = user;
|
||||
ListCliets.ItemsSource = ClientitemSource;
|
||||
|
||||
ListService.ItemsSource = ServiceitemSource;
|
||||
}
|
||||
|
||||
private void ListBox_SelectionChanged(object? sender, Avalonia.Controls.SelectionChangedEventArgs e)
|
||||
@ -36,7 +37,7 @@ public partial class CreateOrder : Window
|
||||
{
|
||||
try
|
||||
{
|
||||
Client client = db.Clients.Where(it => it == sender).FirstOrDefault();
|
||||
Client client = db.Clients.Where(it => it == ListCliets.SelectedItem).First();
|
||||
|
||||
int order_rental_time = int.Parse(TextOrderRentalTime.Text);
|
||||
DateOnly? order_closing_date = DateOnly.FromDateTime(calendar.SelectedDate.Value.Date);
|
||||
@ -57,7 +58,7 @@ public partial class CreateOrder : Window
|
||||
db.SaveChanges();
|
||||
|
||||
NewOrder = newOrder;
|
||||
MesAdd.Text = "Çàêàç ñîçäàí";
|
||||
MesAdd.Text = "Çàêàç ñîçäàí. Äîáàâüòå óñëóãè ïî î÷åðåäè.";
|
||||
MesAddError.Text = "";
|
||||
}
|
||||
else
|
||||
@ -77,50 +78,40 @@ public partial class CreateOrder : Window
|
||||
{
|
||||
try
|
||||
{
|
||||
string? newservice = TextService.Text;
|
||||
if (TextService.Text != "")
|
||||
Service service = db.Services.Where(it => it == ListService.SelectedItem).First();
|
||||
if (service != null)
|
||||
{
|
||||
using (User11Context db = new User11Context())
|
||||
Order? order = db.Orders.Where(it => it.OrderId == NewOrder.OrderId).FirstOrDefault();
|
||||
if (order != null)
|
||||
{
|
||||
Service? service = db.Services.Where(it => it.ServiceName == newservice).FirstOrDefault();
|
||||
if (service != null)
|
||||
OrdersWithService newOWS = new OrdersWithService()
|
||||
{
|
||||
Order? order = db.Orders.Where(it => it.OrderId == NewOrder.OrderId).FirstOrDefault();
|
||||
if (order != null)
|
||||
{
|
||||
OrdersWithService newOWS = new OrdersWithService()
|
||||
{
|
||||
Order = order.OrderId,
|
||||
Service = service.ServiceId
|
||||
};
|
||||
db.OrdersWithServices.Add(newOWS);
|
||||
db.SaveChanges();
|
||||
Order = order.OrderId,
|
||||
Service = service.ServiceId
|
||||
};
|
||||
db.OrdersWithServices.Add(newOWS);
|
||||
db.SaveChanges();
|
||||
|
||||
MesAddError.Text = "";
|
||||
MesAdd.Text = "Óñëóãà äîáàâëåíà";
|
||||
}
|
||||
else
|
||||
{
|
||||
MesAddError.Text = "Ñíà÷àëà ñîçäàéòå çàêàç";
|
||||
MesAdd.Text = "";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MesAddError.Text = "Òàêîé óñëóãè íåò";
|
||||
MesAdd.Text = "";
|
||||
}
|
||||
MesAddError.Text = "";
|
||||
MesAdd.Text = "Óñëóãà äîáàâëåíà";
|
||||
}
|
||||
else
|
||||
{
|
||||
MesAddError.Text = "Ñíà÷àëà ñîçäàéòå çàêàç";
|
||||
MesAdd.Text = "";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MesAddError.Text = "Ââåäèòå íàçâàíèå óñëóãè";
|
||||
MesAddError.Text = "Òàêîé óñëóãè íåò";
|
||||
MesAdd.Text = "";
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex.Message);
|
||||
MesAddError.Text = "Ïðîèçîøëà îøèáêà";
|
||||
MesAdd.Text = "";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -4,10 +4,105 @@
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||
x:Class="demo_blagodat.ChangeOrder"
|
||||
xmlns:vm="using:demo_blagodat.Models"
|
||||
Title="Изменить заказ">
|
||||
<ScrollViewer>
|
||||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Button Content="Назад" Click="ExitClik"/>
|
||||
</StackPanel>
|
||||
<StackPanel Spacing="20">
|
||||
<StackPanel Spacing="15" HorizontalAlignment="Center">
|
||||
<TextBlock Text="Выберите заказ для изменения"/>
|
||||
<Border Background="Red"
|
||||
CornerRadius="10"
|
||||
Padding="20"
|
||||
Margin="20"
|
||||
Width="550"
|
||||
Height="200"
|
||||
>
|
||||
<ScrollViewer>
|
||||
<ListBox Name="ListOrder" SelectionChanged="ListBox_SelectionChanged">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate x:DataType="vm:Order">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="{Binding OrderClient}"/>
|
||||
<TextBlock Text=" : "/>
|
||||
<TextBlock Text="{Binding OrderDate}"/>
|
||||
<TextBlock Text=" : "/>
|
||||
<TextBlock Text="{Binding OrderTime}"/>
|
||||
<TextBlock Text=" : "/>
|
||||
<TextBlock Text="{Binding OrderRentalTime}"/>
|
||||
<TextBlock Text=" : "/>
|
||||
<TextBlock Text="{Binding OrderStatus}"/>
|
||||
<TextBlock Text=" : "/>
|
||||
<TextBlock Text="{Binding OrderClosingDate}"/>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
|
||||
<TextBlock Text="Выберите Услугу для изменения или удаления"/>
|
||||
<Border Background="Red"
|
||||
CornerRadius="10"
|
||||
Padding="20"
|
||||
Margin="20"
|
||||
Width="550"
|
||||
Height="200">
|
||||
<ScrollViewer>
|
||||
<ListBox Name="ListService" SelectionChanged="ListBox2_SelectionChanged">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate x:DataType="vm:Service">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="{Binding ServiceName}"/>
|
||||
<TextBlock Text=" : "/>
|
||||
<TextBlock Text="{Binding ServiceCode}"/>
|
||||
<TextBlock Text=" : "/>
|
||||
<TextBlock Text="{Binding ServiceCostPerHour}"/>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
|
||||
<TextBlock Text="Выберите Услугу для замены или добавления"/>
|
||||
<Border Background="Red"
|
||||
CornerRadius="10"
|
||||
Padding="20"
|
||||
Margin="20"
|
||||
Width="550"
|
||||
Height="200">
|
||||
<ScrollViewer>
|
||||
<ListBox Name="ListNewService" SelectionChanged="ListBox3_SelectionChanged">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate x:DataType="vm:Service">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="{Binding ServiceName}"/>
|
||||
<TextBlock Text=" : "/>
|
||||
<TextBlock Text="{Binding ServiceCode}"/>
|
||||
<TextBlock Text=" : "/>
|
||||
<TextBlock Text="{Binding ServiceCostPerHour}"/>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Button Content="Добавить услугу" Click="addService"/>
|
||||
<Button Content="Заменить услугу" Click="replaceService"/>
|
||||
<Button Content="Удалить услугу" Click="deleteService"/>
|
||||
<Button Content="Вернуться назад" Click="ExitClik"/>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel HorizontalAlignment="Center" Orientation="Vertical">
|
||||
<TextBlock x:Name="MesDelError" Text="" Foreground="Red"/>
|
||||
<TextBlock x:Name="MesDel" Text="" Foreground="Green"/>
|
||||
</StackPanel>
|
||||
|
||||
</StackPanel>
|
||||
|
||||
</ScrollViewer>
|
||||
</Window>
|
||||
|
@ -3,17 +3,253 @@ using Avalonia.Controls;
|
||||
using Avalonia.Interactivity;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using demo_blagodat.Models;
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
|
||||
namespace demo_blagodat;
|
||||
|
||||
public partial class ChangeOrder : Window
|
||||
{
|
||||
public Employee User;
|
||||
int idOrder;
|
||||
static User11Context db = new User11Context();
|
||||
ObservableCollection<Order> OrderitemSource = new ObservableCollection<Order>(db.Orders);
|
||||
ObservableCollection<Service> NewServiceitemSource = new ObservableCollection<Service>(db.Services);
|
||||
ObservableCollection<Service> ServiceitemSource;
|
||||
Service? SelectService = null;
|
||||
Service? SelectNewService = null;
|
||||
Employee User;
|
||||
|
||||
|
||||
|
||||
public ChangeOrder(Employee user)
|
||||
{
|
||||
InitializeComponent();
|
||||
User = user;
|
||||
ListOrder.ItemsSource = OrderitemSource;
|
||||
ListService.SelectedItem = ServiceitemSource;
|
||||
ListNewService.ItemsSource = NewServiceitemSource;
|
||||
}
|
||||
|
||||
private void ListBox_SelectionChanged(object? sender, Avalonia.Controls.SelectionChangedEventArgs e)
|
||||
{
|
||||
if (sender != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
Order order = db.Orders.Where(it => it == ListOrder.SelectedItem).First();// ñîçäà¸ì ýêçåìïëÿð êëàññà Order
|
||||
OrdersWithService ordersWithService = db.OrdersWithServices.Where(it => it.Order == order.OrderId).First();
|
||||
idOrder = order.OrderId;
|
||||
|
||||
var services = db.OrdersWithServices
|
||||
.Where(ows => ows.Order == idOrder)
|
||||
.Select(ows => new Service
|
||||
{
|
||||
ServiceId = ows.ServiceNavigation.ServiceId,
|
||||
ServiceName = ows.ServiceNavigation.ServiceName,
|
||||
ServiceCode = ows.ServiceNavigation.ServiceCode,
|
||||
ServiceCostPerHour = ows.ServiceNavigation.ServiceCostPerHour
|
||||
})
|
||||
.ToList();
|
||||
ServiceitemSource = new ObservableCollection<Service>(services);
|
||||
ListService.ItemsSource = ServiceitemSource;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// Âûâîäèì ñîîáùåíèå îá îøèáêå â êîíñîëü
|
||||
Console.WriteLine(ex.Message);
|
||||
|
||||
// Ìåíÿåì ñîîáùåíèå
|
||||
MesDel.Text = "";
|
||||
MesDelError.Text = "ïðîèçîøëà îøèáêà";
|
||||
}
|
||||
}
|
||||
}
|
||||
private void ListBox2_SelectionChanged(object? sender, Avalonia.Controls.SelectionChangedEventArgs e)
|
||||
{
|
||||
if (sender != null)
|
||||
{
|
||||
}
|
||||
}
|
||||
private void ListBox3_SelectionChanged(object? sender, Avalonia.Controls.SelectionChangedEventArgs e)
|
||||
{
|
||||
if(sender != null)
|
||||
{
|
||||
}
|
||||
}
|
||||
private void addService(object sender, RoutedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
SelectNewService = db.Services.Where(it => it == ListNewService.SelectedItem).FirstOrDefault();
|
||||
if (SelectNewService != null)
|
||||
{
|
||||
OrdersWithService addows = new OrdersWithService()
|
||||
{
|
||||
Order = idOrder,
|
||||
Service = SelectNewService.ServiceId
|
||||
};
|
||||
db.OrdersWithServices.Add(addows);
|
||||
db.SaveChanges();
|
||||
ListNewService.SelectedItem = null;
|
||||
|
||||
var services = db.OrdersWithServices
|
||||
.Where(it => it.Order == idOrder)
|
||||
.Select(it => new Service
|
||||
{
|
||||
ServiceId = it.ServiceNavigation.ServiceId,
|
||||
ServiceName = it.ServiceNavigation.ServiceName,
|
||||
ServiceCode = it.ServiceNavigation.ServiceCode,
|
||||
ServiceCostPerHour = it.ServiceNavigation.ServiceCostPerHour
|
||||
})
|
||||
.ToList();
|
||||
ServiceitemSource = new ObservableCollection<Service>(services);
|
||||
ListService.ItemsSource = ServiceitemSource;
|
||||
|
||||
// Ìåíÿåì ñîîáùåíèå
|
||||
MesDel.Text = "Óñëóãà äîáàâëåíà â çàêàç";
|
||||
MesDelError.Text = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
// Ìåíÿåì ñîîáùåíèå
|
||||
MesDel.Text = "";
|
||||
MesDelError.Text = "Âûáåðèòå óñëóãó äëÿ äîáàâëåíèÿ";
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// Âûâîäèì ñîîáùåíèå îá îøèáêå â êîíñîëü
|
||||
Console.WriteLine(ex.Message);
|
||||
|
||||
// Ìåíÿåì ñîîáùåíèå
|
||||
MesDel.Text = "";
|
||||
MesDelError.Text = "ïðîèçîøëà îøèáêà";
|
||||
}
|
||||
}
|
||||
private void replaceService(object sender, RoutedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
SelectService = db.Services.Where(it => it == ListService.SelectedItem).FirstOrDefault();
|
||||
if (SelectService != null)
|
||||
{
|
||||
SelectNewService = db.Services.Where(it => it == ListNewService.SelectedItem).FirstOrDefault();
|
||||
if (SelectNewService != null)
|
||||
{
|
||||
OrdersWithService? ows = db.OrdersWithServices.Where(it => it.Order == idOrder && it.Service == SelectService.ServiceId).FirstOrDefault();
|
||||
if (ows != null)
|
||||
{
|
||||
ows.Service = SelectNewService.ServiceId;
|
||||
db.SaveChanges();
|
||||
ListService.SelectedItem = null;
|
||||
|
||||
var services = db.OrdersWithServices
|
||||
.Where(it => it.Order == idOrder)
|
||||
.Select(it => new Service
|
||||
{
|
||||
ServiceId = it.ServiceNavigation.ServiceId,
|
||||
ServiceName = it.ServiceNavigation.ServiceName,
|
||||
ServiceCode = it.ServiceNavigation.ServiceCode,
|
||||
ServiceCostPerHour = it.ServiceNavigation.ServiceCostPerHour
|
||||
})
|
||||
.ToList();
|
||||
ServiceitemSource = new ObservableCollection<Service>(services);
|
||||
ListService.ItemsSource = ServiceitemSource;
|
||||
|
||||
// Ìåíÿåì ñîîáùåíèå
|
||||
MesDel.Text = "Âû èçìåíèëè óñëóãó";
|
||||
MesDelError.Text = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
// Ìåíÿåì ñîîáùåíèå
|
||||
MesDel.Text = "";
|
||||
MesDelError.Text = "çàêàç íå íàéäåí";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Ìåíÿåì ñîîáùåíèå
|
||||
MesDel.Text = "";
|
||||
MesDelError.Text = "âûáåðèòå óñëóãó íà çàìåíó";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Ìåíÿåì ñîîáùåíèå
|
||||
MesDel.Text = "";
|
||||
MesDelError.Text = "âûáåðèòå óñëóãà äëÿ èçìåíåíèÿ";
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// Âûâîäèì ñîîáùåíèå îá îøèáêå â êîíñîëü
|
||||
Console.WriteLine(ex.Message);
|
||||
|
||||
// Ìåíÿåì ñîîáùåíèå
|
||||
MesDel.Text = "";
|
||||
MesDelError.Text = "Ïðîèçîøëà îøèáêà";
|
||||
}
|
||||
}
|
||||
private void deleteService(object sender, RoutedEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
SelectService = db.Services.Where(it => it == ListService.SelectedItem).FirstOrDefault();
|
||||
if (SelectService != null)
|
||||
{
|
||||
OrdersWithService? ows = db.OrdersWithServices.Where(it => it.Order == idOrder && it.Service == SelectService.ServiceId).FirstOrDefault();
|
||||
if (ows != null)
|
||||
{
|
||||
db.OrdersWithServices.Remove(ows);
|
||||
db.SaveChanges();
|
||||
ListService.SelectedItem = null;
|
||||
|
||||
var services = db.OrdersWithServices
|
||||
.Where(it => it.Order == idOrder)
|
||||
.Select(it => new Service
|
||||
{
|
||||
ServiceId = it.ServiceNavigation.ServiceId,
|
||||
ServiceName = it.ServiceNavigation.ServiceName,
|
||||
ServiceCode = it.ServiceNavigation.ServiceCode,
|
||||
ServiceCostPerHour = it.ServiceNavigation.ServiceCostPerHour
|
||||
})
|
||||
.ToList();
|
||||
ServiceitemSource = new ObservableCollection<Service>(services);
|
||||
ListService.ItemsSource = ServiceitemSource;
|
||||
|
||||
// Ìåíÿåì ñîîáùåíèå
|
||||
MesDel.Text = "Óñëóãà óäàëåíà èç çàêàçà";
|
||||
MesDelError.Text = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
// Ìåíÿåì ñîîáùåíèå
|
||||
MesDel.Text = "";
|
||||
MesDelError.Text = "çàêàç íå íàéäåí";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Ìåíÿåì ñîîáùåíèå
|
||||
MesDel.Text = "";
|
||||
MesDelError.Text = "Âûáåðèòå ñåðâèñ äëÿ óäàëåíèÿ";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// Âûâîäèì ñîîáùåíèå îá îøèáêå â êîíñîëü
|
||||
Console.WriteLine(ex.Message);
|
||||
|
||||
// Ìåíÿåì ñîîáùåíèå
|
||||
MesDel.Text = "";
|
||||
MesDelError.Text = "ïðîèçîøëà îøèáêà";
|
||||
}
|
||||
}
|
||||
|
||||
private void ExitClik(object sender, RoutedEventArgs e)
|
||||
{
|
||||
switch (User.EmployeesPosition)
|
||||
|
@ -39,7 +39,7 @@
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel HorizontalAlignment="Center" Orientation="Vertical" VerticalAlignment="Center">
|
||||
<Button Content="Изменить данные Клиента" Click="changeClient"/>
|
||||
<Button Content="Изменить данные Услуги" Click="changeClient"/>
|
||||
<Button Content="Отчислить данные" Click="clear"/>
|
||||
<Button Content="Вернуться назад" Click="ExitClik"/>
|
||||
</StackPanel>
|
||||
|
@ -18,7 +18,7 @@ public partial class DeleteOrder : Window
|
||||
static User11Context db = new User11Context();
|
||||
ObservableCollection<Order> OrderitemSource = new ObservableCollection<Order>(db.Orders);
|
||||
ObservableCollection<Service> ServiceitemSource;
|
||||
public Employee User;
|
||||
Employee User;
|
||||
|
||||
public DeleteOrder(Employee user)
|
||||
{
|
||||
|
@ -50,13 +50,13 @@ public partial class Heir : Window
|
||||
{
|
||||
if (position != "")
|
||||
{
|
||||
Employee emp = db.Employees.Where(i => i == ListEmp.SelectedItem).FirstOrDefault();
|
||||
Employee emp = db.Employees.Where(i => i == ListEmp.SelectedItem).First();
|
||||
if (emp != null)
|
||||
{
|
||||
emp.EmployeesPosition = "Àäìèíèñòðàòîð";
|
||||
db.SaveChanges();
|
||||
|
||||
Employee I = db.Employees.Where(it => it.EmployeesLogin == User.EmployeesLogin).FirstOrDefault();
|
||||
Employee I = db.Employees.Where(it => it.EmployeesLogin == User.EmployeesLogin).First();
|
||||
I.EmployeesPosition = position;
|
||||
I.EmployeesEntrance = false;
|
||||
db.SaveChanges();
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("demo_blagodat")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b617f2e014bf246ac7062520a6d4188404b9fb0d")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+4f43df675b0975ab75e788a853d95740c53e9754")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("demo_blagodat")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("demo_blagodat")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
@ -1 +1 @@
|
||||
0f35feb508f4935218343a3a6854920d6f75ce11fafc95b97d8ed014f11dd19f
|
||||
180c8a9b26e3e2f5583ffe72e33dc49abb3fc72261dd63e287928b6a096f60ae
|
||||
|
BIN
demo_blagodat/obj/Debug/net8.0/demo_blagodat.dll
Normal file
BIN
demo_blagodat/obj/Debug/net8.0/demo_blagodat.dll
Normal file
Binary file not shown.
BIN
demo_blagodat/obj/Debug/net8.0/demo_blagodat.pdb
Normal file
BIN
demo_blagodat/obj/Debug/net8.0/demo_blagodat.pdb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
demo_blagodat/obj/Debug/net8.0/refint/demo_blagodat.dll
Normal file
BIN
demo_blagodat/obj/Debug/net8.0/refint/demo_blagodat.dll
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user