개정판 f85a8cad
ConvertPDF Document Convert완료
Change-Id: Ia974f877db48de4d6eed04a6288211ae5ab84b8b
ConvertService/ServiceBase/Markus.Service.StationController/Data/Document_Item.cs | ||
---|---|---|
31 | 31 |
Document_ID = document_ID; |
32 | 32 |
DocumentID = documentID; |
33 | 33 |
|
34 |
|
|
35 | 34 |
} |
36 | 35 |
|
37 | 36 |
private string _Document_NO; |
... | ... | |
101 | 100 |
} |
102 | 101 |
} |
103 | 102 |
} |
103 |
|
|
104 |
private bool _IsChecked = false; |
|
105 |
public bool IsChecked |
|
106 |
{ |
|
107 |
get |
|
108 |
{ |
|
109 |
return _IsChecked; |
|
110 |
} |
|
111 |
set |
|
112 |
{ |
|
113 |
if (_IsChecked != value) |
|
114 |
{ |
|
115 |
_IsChecked = value; |
|
116 |
OnPropertyChanged("IsChecked"); |
|
117 |
} |
|
118 |
} |
|
119 |
} |
|
104 | 120 |
} |
105 | 121 |
} |
ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/ConvertDocumentDialogViewModel.cs | ||
---|---|---|
8 | 8 |
using System.Windows; |
9 | 9 |
using Newtonsoft.Json; |
10 | 10 |
using System.Windows.Threading; |
11 |
using Markus.Service.StationController.Controls; |
|
11 | 12 |
|
12 | 13 |
namespace Markus.Service.StationController.ViewModel |
13 | 14 |
{ |
... | ... | |
48 | 49 |
} |
49 | 50 |
} |
50 | 51 |
|
51 |
private List<Document_Item> _SelectedDocument;
|
|
52 |
public List<Document_Item> SelectedDocument
|
|
52 |
private Document_Item _SelectedDocument;
|
|
53 |
public Document_Item SelectedDocument
|
|
53 | 54 |
{ |
54 | 55 |
get |
55 | 56 |
{ |
56 | 57 |
if (_SelectedDocument == null) |
57 | 58 |
{ |
58 |
_SelectedDocument = new List<Document_Item>();
|
|
59 |
_SelectedDocument = new Document_Item();
|
|
59 | 60 |
} |
60 | 61 |
return _SelectedDocument; |
61 | 62 |
} |
... | ... | |
218 | 219 |
{ |
219 | 220 |
try |
220 | 221 |
{ |
221 |
if (SelectedDocument != null)
|
|
222 |
if (Document_Items != null)
|
|
222 | 223 |
{ |
223 |
foreach (var Document in SelectedDocument)
|
|
224 |
foreach (var Document in Document_Items)
|
|
224 | 225 |
{ |
225 |
var items = from x in await WcfClient.GET_SELECT_CONVERT_ITEMAsync(null, null, Document.Document_ID, null, 1, null, null, null, null, null, null, Document.Group_NO, null, Document.Document_NO, null, null, null, null, null) |
|
226 |
let MarkusLink = "kcom://" + CreateMarkusParam(x.PROJECT_NO, x.DOCUMENT_ID, "doftech") |
|
227 |
select new ConvertPDF(x.SERVICE_ID, x.ID, x.PROJECT_NO, x.STATUS, x.DOCUMENT_ID, x.DOCUMENT_NAME, x.DOCUMENT_NO, x.DOCUMENT_URL, x.REVISION, x.CURRENT_PAGE, x.TOTAL_PAGE, x.EXCEPTION, x.GROUP_NO, x.CREATE_DATETIME, x.START_DATETIME, x.END_DATETIME |
|
228 |
, x.DOCUMENT_URL, x.CONVERT_PATH, MarkusLink, x.RECONVERTER); |
|
229 |
|
|
230 |
if (items.Count() == 1) |
|
226 |
if (Document.IsChecked == true) |
|
231 | 227 |
{ |
232 |
foreach (var Listitem in items.ToList()) |
|
228 |
var items = from x in await WcfClient.GET_SELECT_CONVERT_ITEMAsync(null, null, Document.Document_ID, null, 1, null, null, null, null, null, null, Document.Group_NO, null, Document.Document_NO, null, null, null, null, null) |
|
229 |
let MarkusLink = "kcom://" + CreateMarkusParam(x.PROJECT_NO, x.DOCUMENT_ID, "doftech") |
|
230 |
select new ConvertPDF(x.SERVICE_ID, x.ID, x.PROJECT_NO, x.STATUS, x.DOCUMENT_ID, x.DOCUMENT_NAME, x.DOCUMENT_NO, x.DOCUMENT_URL, x.REVISION, x.CURRENT_PAGE, x.TOTAL_PAGE, x.EXCEPTION, x.GROUP_NO, x.CREATE_DATETIME, x.START_DATETIME, x.END_DATETIME |
|
231 |
, x.DOCUMENT_URL, x.CONVERT_PATH, MarkusLink, x.RECONVERTER); |
|
232 |
|
|
233 |
if (items.Count() == 1) |
|
233 | 234 |
{ |
234 |
SetCleanUpItem(Listitem); |
|
235 |
foreach (var Listitem in items.ToList()) |
|
236 |
{ |
|
237 |
SetCleanUpItem(Listitem); |
|
238 |
} |
|
235 | 239 |
} |
240 |
|
|
241 |
MessageBox.Show("Document Item Convert Success"); |
|
236 | 242 |
} |
237 | 243 |
} |
238 | 244 |
} |
ConvertService/ServiceBase/Markus.Service.StationController/Views/ConvertDocumentDialog.xaml | ||
---|---|---|
6 | 6 |
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
7 | 7 |
xmlns:local="clr-namespace:Markus.Service.StationController.Views" |
8 | 8 |
xmlns:VM="clr-namespace:Markus.Service.StationController.ViewModel" |
9 |
xmlns:controls="clr-namespace:Markus.Service.StationController.Controls" |
|
9 | 10 |
Header="Convert Items Excel Export" Background="White" |
10 | 11 |
mc:Ignorable="d" Height="404" Width="349" telerik:StyleManager.Theme="VisualStudio2013"> |
11 | 12 |
<telerik:RadWindow.Resources> |
... | ... | |
27 | 28 |
ItemsSource="{Binding Document_Items}" |
28 | 29 |
RowHeight="50" GroupRenderMode="Flat" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" |
29 | 30 |
SelectionMode="Extended" IsFilteringAllowed="True" |
30 |
SelectedItem="{Binding SelectedDocument, Mode=TwoWay}" |
|
31 | 31 |
RowIndicatorVisibility="Collapsed" ScrollViewer.CanContentScroll="True" |
32 | 32 |
CanUserFreezeColumns="False" |
33 | 33 |
AutoGenerateColumns="False"> |
34 |
<!--SelectedItem="{Binding SelectedDocument, Mode=TwoWay}"--> |
|
34 | 35 |
<telerik:RadGridView.Columns> |
35 |
<telerik:GridViewSelectColumn /> |
|
36 |
<telerik:GridViewDataColumn Header="Group_NO" |
|
36 |
<!--<telerik:GridViewSelectColumn />--> |
|
37 |
<telerik:GridViewDataColumn> |
|
38 |
<telerik:GridViewDataColumn.CellTemplate> |
|
39 |
<DataTemplate> |
|
40 |
<CheckBox IsChecked="{Binding IsChecked, Mode=TwoWay}" |
|
41 |
HorizontalAlignment="Center"/> |
|
42 |
</DataTemplate> |
|
43 |
</telerik:GridViewDataColumn.CellTemplate> |
|
44 |
</telerik:GridViewDataColumn> |
|
45 |
<telerik:GridViewDataColumn Header="GroupNO" |
|
37 | 46 |
DataMemberBinding="{Binding Group_NO, Mode=TwoWay}" Width="*" /> |
38 |
<telerik:GridViewDataColumn Header="Document_NO"
|
|
47 |
<telerik:GridViewDataColumn Header="DocumentNO" |
|
39 | 48 |
DataMemberBinding="{Binding Document_NO, Mode=TwoWay}" Width="*" /> |
40 |
<telerik:GridViewDataColumn Header="Document_ID"
|
|
49 |
<telerik:GridViewDataColumn Header="DocumentID" |
|
41 | 50 |
DataMemberBinding="{Binding Document_ID, Mode=TwoWay}" Width="*" /> |
42 | 51 |
<telerik:GridViewDataColumn Header="DocumentID" |
43 | 52 |
DataMemberBinding="{Binding DocumentID, Mode=TwoWay}" Width="*" /> |
내보내기 Unified diff