// initialize control
 private void InitializeControl(Proxy proxy)
 {
     _Model              = new OrderManagementViewModel(proxy, this);
     _PreviousFile       = _Model._DefaultFile;
     this.Loaded        += MainWindow_Loaded;
     webBrowser1.Loaded += webBrowser1_Loaded;
 }
 // initialize control
 private void InitializeControl(Proxy proxy)
 {
     _Model = new OrderManagementViewModel(proxy, this);
     _PreviousFile = _Model._DefaultFile;
     this.Loaded += MainWindow_Loaded;
     webBrowser1.Loaded += webBrowser1_Loaded;
 }
Ejemplo n.º 3
0
 // construct the file
 internal SalesOrderViewModel(OrderManagementViewModel model, int fileId, string name, string title, string description)
 {
     _Model       = model;
     _Proxy       = _Model._Proxy;
     _MaxPreview  = _Model.MaxPreview;
     _Description = string.IsNullOrWhiteSpace(description) ? string.Empty : description;
     if (!string.IsNullOrEmpty(_Description))
     {
         if (_Description.Contains("{70}"))
         {
             _PreviousStatus = JobStatus.AllDone;
             _Description    = _Description.Replace("{70}", "");
         }
         if (_Description.Contains("{75}"))
         {
             _PreviousStatus = JobStatus.AllDoneError;
             _Description    = _Description.Replace("{75}", "");
         }
     }
     _Name             = name;
     _Title            = title;
     _TitleUpper       = Title.ToUpperInvariant();
     _FileId           = fileId;
     HeaderId          = fileId;
     _ProgressPercent  = 0;
     _IsShowAllEnabled = false;
     _ShowAll          = false;
     _Items            = new ObservableCollection <SalesItemViewModel>();
     _LoadedAll        = false;
     _JobStatus        = JobStatus.Load;
     _IsNewItemEnabled = false;
     _Status           = String.Empty + _JobStatus;
     _LongStatus       = _Status;
     _Stopwatch        = new Stopwatch();
     _ProgressTimer    = new Stopwatch();
     _OrderStatus      = "";
 }
Ejemplo n.º 4
0
 internal void _InitializedControl(OrderManagementViewModel model)
 {
     _Model            = model;
     _Model.ServerType = "EBS";
 }
Ejemplo n.º 5
0
 internal void _InitializedControl(OrderManagementViewModel model)
 {
     _Model = model;
     _Model.ServerType = "EBS";
 }
     // construct the file
 internal SalesOrderViewModel(OrderManagementViewModel model, int fileId, string name, string title, string description)
 {
     _Model = model;
     _Proxy = _Model._Proxy;
     _MaxPreview = _Model.MaxPreview;
     _Description = string.IsNullOrWhiteSpace(description) ? string.Empty : description;
     if (!string.IsNullOrEmpty(_Description))
     {
         if (_Description.Contains("{70}"))
         {
             _PreviousStatus = JobStatus.AllDone;
             _Description = _Description.Replace("{70}", "");
         }
         if (_Description.Contains("{75}"))
         {
             _PreviousStatus = JobStatus.AllDoneError;
             _Description = _Description.Replace("{75}", "");
         }
     }
     _Name = name;
     _Title = title;
     _TitleUpper = Title.ToUpperInvariant();
     _FileId = fileId;
     HeaderId = fileId;
     _ProgressPercent = 0;
     _IsShowAllEnabled = false;
     _ShowAll = false;
     _Items = new ObservableCollection<SalesItemViewModel>();
     _LoadedAll = false;
     _JobStatus = JobStatus.Load;
     _IsNewItemEnabled = false;
     _Status = String.Empty + _JobStatus;
     _LongStatus = _Status;
     _Stopwatch = new Stopwatch();
     _ProgressTimer = new Stopwatch();
     _OrderStatus = "";
 }