프로젝트

일반

사용자정보

개정판 31beca73

ID31beca73913328c0f08ae54b4c8bb7cbc8157968
상위 ee910e7f
하위 5a31e4bf, 7b1db8cc

semi 이(가) 약 5년 전에 추가함

Convert_DOC & Final_PDF 중간그리드 FULL

Change-Id: I84af0c3f526d0d1d025f0ff33df25f08ef13dd13

차이점 보기:

ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/DataBaseItemsModel.cs
1
using Markus.Message;
2
using Markus.Service.Extensions;
1
using Markus.Service.Extensions;
3 2
using Markus.Service.StationController.Data;
4 3
using Markus.Service.StationController.Behaviors;
5 4
using Markus.Service.StationController.Extensions;
......
24 23
using System.Windows.Controls;
25 24
using System.IO;
26 25
using Newtonsoft.Json;
26
using Markus.Service.Interface;
27 27

  
28 28
namespace Markus.Service.StationController.ViewModel
29 29
{
......
462 462
            }
463 463
        }
464 464

  
465
        public int _DataBase_ItemsHeight = 800;
466
        public int DataBase_ItemsHeight
467
        {
468
            get { return _DataBase_ItemsHeight; }
469
            set
470
            {
471
                _DataBase_ItemsHeight = value;
472
                OnPropertyChanged(() => DataBase_ItemsHeight);
473
            }
474
        }
475

  
476

  
477
        public int _RealConvert_Height = 80;
478
        public int RealConvert_Height
479
        {
480
            get { return _RealConvert_Height; }
481
            set
482
            {
483
                _RealConvert_Height = value;
484
                OnPropertyChanged(() => RealConvert_Height);
485
            }
486
        }
487

  
488
        public int _Alive_Height = 80;
489
        public int Alive_Height
490
        {
491
            get { return _Alive_Height; }
492
            set
493
            {
494
                _Alive_Height = value;
495
                OnPropertyChanged(() => Alive_Height);
496
            }
497
        }
498

  
499 465
        public bool _ConvertShow;
500 466
        public bool ConvertShow
501 467
        {
......
643 609
                        ConvertItemEx.ChangeValues(changeitem, newitem), x => x.ConvertID == newitem.ConvertID && x.ProjectNumber == newitem.ProjectNumber);
644 610
                    });
645 611

  
646
                    RealConvert_Height = 80 + (10 * collection.Count());
647
                    DataBase_ItemsHeight = 800 - (RealConvert_Height + Alive_Height);
648 612
                }
649 613
            }
650 614
            catch (Exception ex)
......
675 639
                    {
676 640
                        var MarkusLink = "kcom://" + CreateMarkusParam(x.PROJECT_NO, x.DOCUMENT_ID, "doftech");
677 641

  
678
                        ConvertItem AddItem = new ConvertItem(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,
642
                        ConvertItem AddItem = new ConvertItem(x.SERVICE_ID, x.ID, x.PROJECT_NO, _status, x.DOCUMENT_ID, x.DOCUMENT_NAME, x.DOCUMENT_NO, x.DOCUMENT_URL, x.REVISION, x.CURRENT_PAGE,
679 643
                            x.TOTAL_PAGE, x.EXCEPTION, x.GROUP_NO, x.CREATE_DATETIME, x.START_DATETIME, x.END_DATETIME, x.DOCUMENT_URL, x.CONVERT_PATH, MarkusLink, x.RECONVERTER);
680 644
                        Listitems.Add(AddItem);
681 645

  
......
748 712
            }
749 713
            catch (Exception ex)
750 714
            {
751
                //MessageBox.Show(ex.ToString());
752
                System.Diagnostics.Debug.WriteLine(ex.ToString());
715
                MessageBox.Show(ex.ToString());
716
                //System.Diagnostics.Debug.WriteLine(ex.ToString());
753 717
            }
754 718
        }
755 719

  
......
864 828
            }
865 829
            catch (Exception ex)
866 830
            {
867
                //MessageBox.Show(ex.ToString());
868
                System.Diagnostics.Debug.WriteLine(ex.ToString());
831
                MessageBox.Show(ex.ToString());
832
                //System.Diagnostics.Debug.WriteLine(ex.ToString());
869 833
            }
870 834
        }
871 835
        /// <summary>
......
952 916
                ItemsUpdate(newitems);
953 917
                await System.Windows.Application.Current.Dispatcher.InvokeAsync(() => ItemsUpdate(newitems));
954 918

  
955
                //List<ConvertItem> newitems = new List<ConvertItem>();
919
                //List<ConvertItem> newitems = new List<ConvertItem>(); //효성 실시간 확인 후 삭제 할 예정
956 920
                //using (Markus.Service.DataBase.ConvertDatabase database = new Markus.Service.DataBase.ConvertDatabase(App.MarkusDataBaseConnecitonString))
957 921
                //{
958 922
                //    foreach (var client in App.StationClientList)
......
1094 1058
                    }
1095 1059
                }
1096 1060
            }
1097

  
1098
            Alive_Height = 80 + (newitems.Count() * 10);
1099
            DataBase_ItemsHeight = 800 - (RealConvert_Height + Alive_Height);
1100 1061
        }
1101 1062

  
1102 1063

  
......
1278 1239
        {
1279 1240
            dispatcherTimer.Tick -= new EventHandler(Timer_Tick);
1280 1241
            DataSearch(new[] { (StatusCodeType)(SelectedStatus.Value) }, FilterConvertSource);
1281
            //dispatcherTimer.Start();
1282 1242
        }
1283 1243

  
1284 1244
        #endregion
......
1330 1290
                    {
1331 1291
                        entities.SELECT_CONVERT_DELETE(SelectFilterConvert.ConvertID);
1332 1292
                    }
1333
                    //System.Diagnostics.Debug.WriteLine(resultRealConvert + "  " + resultFiltertConvert);
1334

  
1335
                    //ConvertDatabase _DataConvert = new ConvertDatabase(App.MarkusDataBaseConnecitonString);
1336
                    //var resultRealConvert = _DataConvert.RemoveItem(SelectRealConvert.ConvertID);
1337
                    //var resultFiltertConvert = _DataConvert.RemoveItem(SelectFilterConvert.ConvertID);
1338
                    //System.Diagnostics.Debug.WriteLine(resultRealConvert + "  " + resultFiltertConvert);
1339 1293
                }
1340 1294
            }
1341 1295
        }
......
1391 1345

  
1392 1346
                        DataExport dataExport = new DataExport();
1393 1347
                        dataExport.DataExportExcel(saveFileDialog.FileName, "Hello world", FilterConvertSource, headers);
1394
                        //_dataExport.DataExportExcel(saveFileDialog.FileName, saveFileDialog.FileName.ToString(),  Projectsource, headers);
1395
                        //GemBoxFileSave(obj);
1396 1348
                    }
1397 1349
                }
1398 1350
            }
......
1407 1359
            DefaultCreateTime = DateTime.Now;
1408 1360
            SelectedCreateTimeBegin = DefaultCreateTime;
1409 1361
            SelectedCreateTimeEnd = DefaultCreateTime;
1410

  
1411 1362
        }
1412 1363

  
1413 1364
        #endregion

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)