개정판 c73426a9
issue #926 이미지생성오류(imagecontrol, 외부이미지붙여넣기, symbol)
Change-Id: I5376bab4a5bff122eee8e0f38aa49b0e64d18c0b
KCOM/Controls/Symbol.xaml.cs | ||
---|---|---|
254 | 254 |
#region Symbol Add Close Event |
255 | 255 |
private void MarkupNamePromptClose(string data, WindowClosedEventArgs args) |
256 | 256 |
{ |
257 |
if (args.PromptResult != null)
|
|
257 |
try
|
|
258 | 258 |
{ |
259 |
if (args.DialogResult.Value)
|
|
259 |
if (args.PromptResult != null)
|
|
260 | 260 |
{ |
261 |
PngBitmapEncoder _Encoder = symImage(data); |
|
261 |
if (args.DialogResult.Value) |
|
262 |
{ |
|
263 |
PngBitmapEncoder _Encoder = symImage(data); |
|
262 | 264 |
|
263 |
System.IO.MemoryStream fs = new System.IO.MemoryStream(); |
|
264 |
_Encoder.Save(fs); |
|
265 |
System.Drawing.Image ImgOut = System.Drawing.Image.FromStream(fs); |
|
265 |
System.IO.MemoryStream fs = new System.IO.MemoryStream();
|
|
266 |
_Encoder.Save(fs);
|
|
267 |
System.Drawing.Image ImgOut = System.Drawing.Image.FromStream(fs);
|
|
266 | 268 |
|
267 |
byte[] Img_byte = fs.ToArray(); |
|
269 |
byte[] Img_byte = fs.ToArray();
|
|
268 | 270 |
|
269 |
kr.co.devdoftech.cloud.FileUpload fileUploader = new kr.co.devdoftech.cloud.FileUpload(); |
|
270 |
filename = fileUploader.Run(App.ViewInfo.ProjectNO, Common.ViewerDataModel.Instance.SystemMain.dzMainMenu._DocItem.DOCUMENT_NO, App.ViewInfo.UserID, Save.shortGuid() + ".png", Img_byte); |
|
271 |
kr.co.devdoftech.cloud.FileUpload fileUploader = new kr.co.devdoftech.cloud.FileUpload(); |
|
272 |
filename = fileUploader.Run(App.ViewInfo.ProjectNO, Common.ViewerDataModel.Instance.SystemMain.dzMainMenu._DocItem.DOCUMENT_NO, App.ViewInfo.UserID, Save.shortGuid() + ".png", Img_byte); |
|
273 |
Check_Uri.UriCheck(filename); |
|
274 |
if (RadTab.SelectedIndex == 0) |
|
275 |
{ |
|
276 |
SymbolSave(args.PromptResult, filename, data); |
|
277 |
} |
|
278 |
else |
|
279 |
{ |
|
280 |
SymbolSave_Public(args.PromptResult, filename, data, Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.userData.DEPARTMENT); |
|
281 |
} |
|
271 | 282 |
|
272 |
if (RadTab.SelectedIndex == 0) |
|
273 |
{ |
|
274 |
SymbolSave(args.PromptResult, filename, data); |
|
283 |
DataBind(); |
|
275 | 284 |
} |
276 |
else |
|
277 |
{ |
|
278 |
SymbolSave_Public(args.PromptResult, filename, data, Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.userData.DEPARTMENT); |
|
279 |
} |
|
280 |
|
|
281 |
DataBind(); |
|
282 | 285 |
} |
283 | 286 |
} |
287 |
catch(Exception ex) |
|
288 |
{ |
|
289 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.DialogMessage_Alert("" + ex, "Alert"); |
|
290 |
} |
|
284 | 291 |
} |
285 | 292 |
#endregion |
286 | 293 |
|
내보내기 Unified diff