Bug Fix 1

This commit is contained in:
Georgy Khatuncev 2021-07-22 07:22:51 +05:00
parent e1cf12ae77
commit 2eccc7a25d
12 changed files with 8 additions and 8 deletions

Binary file not shown.

@ -363,10 +363,10 @@ namespace Diplom_B
{ {
if (!int.TryParse(idLabel.Text, out int dogId)) { ShowError("Договор не выбран."); return; } if (!int.TryParse(idLabel.Text, out int dogId)) { ShowError("Договор не выбран."); return; }
if (docGridView.SelectedRows.Count != 1) { ShowError("Договор не выбран."); return; } if (docGridView.SelectedRows.Count != 1) { ShowError("Договор не выбран."); return; }
var doc = WorkDB.GetDocument((int)docGridView.SelectedRows[0].Cells[0].Value); var dogDoc = WorkDB.GetDogDoc((int)docGridView.SelectedRows[0].Cells[0].Value);
if (doc == null) { ShowError("Документ не существует."); return; }
var dogDoc = WorkDB.GetDogDoc(dogId, doc.Id);
if (dogDoc == null) { ShowError("Документ не связана с договором."); return; } if (dogDoc == null) { ShowError("Документ не связана с договором."); return; }
var doc = WorkDB.GetDocument(dogDoc.DocumentId);
if (doc == null) { ShowError("Документ не существует."); return; }
WorkDB.DeleteDogDoc(dogDoc); WorkDB.DeleteDogDoc(dogDoc);
UpdateDocTable(); UpdateDocTable();
} }

@ -279,7 +279,7 @@ namespace Diplom_B
form.ShowDialog(); form.ShowDialog();
dogovorId = form.returnId; dogovorId = form.returnId;
if (dogovorId.HasValue) if (dogovorId.HasValue)
dogNumLabel.Text = "НАДО ПОПРАВИТЬ КОД"; dogNumLabel.Text = WorkDB.GetDogovor(dogovorId.Value).DogNum;
else else
dogNumLabel.Text = ""; dogNumLabel.Text = "";
} }

@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms> </dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>8OmHQrkhJ3LagfGhNhL1N7p+E+Odmf5WOelpJgOi3Hc=</dsig:DigestValue> <dsig:DigestValue>X0hvKwTTHcE7anb0WonPeVSVBpfYZcFUxNBKIpU62qQ=</dsig:DigestValue>
</hash> </hash>
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>

Binary file not shown.

@ -49,7 +49,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms> </dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>KeeFZQ1211FIC7ocLT1a7xNsu1jH0hdFXnHXyNPrWFI=</dsig:DigestValue> <dsig:DigestValue>PcItQ+GLTtgDVnU0grCE/UCpxJx55939ybCOeLAFj8s=</dsig:DigestValue>
</hash> </hash>
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>

Binary file not shown.

@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms> </dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>lNU/e4F1KOZi75XLPiA6bAR8eRIA2/r0/qbf9o1QwPg=</dsig:DigestValue> <dsig:DigestValue>fPKE9Ykhf57d+LLvJiCpB4OlTVuwhSJg0Bs+5QRYRBM=</dsig:DigestValue>
</hash> </hash>
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>

Binary file not shown.

@ -49,7 +49,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms> </dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" /> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>YgZmAivaborZ3psAJ7zkLCQ76uyPI5oHDIbn3EkCVpc=</dsig:DigestValue> <dsig:DigestValue>wN4CjE2QB5CLoWcBFD3Ij2JAKDKNrasXYx1pqFfgHFQ=</dsig:DigestValue>
</hash> </hash>
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>

Binary file not shown.