개정판 585888da
issue #00000 BriefAndImages_RemoveImage - attfiles 삭제 추가
Change-Id: Ia8bce90e4b2d9fb104b014c99294c7bfaf40b17b
ID2.Manager/ID2.Manager/Main.cs | ||
---|---|---|
124 | 124 |
this.radPageViewPageReview.Controls.Add(briefAndImagesReview); |
125 | 125 |
this.radPageViewPageValidation.Controls.Add(briefAndImagesValidation); |
126 | 126 |
|
127 |
briefAndImagesReview.RemoveImage += BriefAndImages_RemoveImage; |
|
128 |
briefAndImagesValidation.RemoveImage += BriefAndImages_RemoveImage; |
|
127 | 129 |
this.Initialize(); |
128 | 130 |
} |
129 | 131 |
|
132 |
private void BriefAndImages_RemoveImage(object sender, AttImageInfo e) |
|
133 |
{ |
|
134 |
try |
|
135 |
{ |
|
136 |
|
|
137 |
if (this.radGridViewDocuments.SelectedRows.Count() > 0 && this.radGridViewDocuments.SelectedRows.First().DataBoundItem is Documents doc) |
|
138 |
{ |
|
139 |
var reslut = doc.AttFiles.RemoveAll(x => x.FileID == e.ID); |
|
140 |
|
|
141 |
if (reslut > 0) |
|
142 |
{ |
|
143 |
|
|
144 |
} |
|
145 |
else |
|
146 |
{ |
|
147 |
MessageBox.Show("삭제오류"); |
|
148 |
} |
|
149 |
} |
|
150 |
} |
|
151 |
catch (Exception ex) |
|
152 |
{ |
|
153 |
Program.logger.Error("BriefAndImages_RemoveImage",ex); |
|
154 |
} |
|
155 |
} |
|
156 |
|
|
130 | 157 |
private void SaveDockingLayout() |
131 | 158 |
{ |
132 | 159 |
try |
내보내기 Unified diff