private async void Loaddrawing(Object navigationParameter) { Login.MasterPage.Loading(true, this); Login.MasterPage.HideUserStatus(); _obj = navigationParameter as Lib.ObjectParam; List<DataGroup> source = null; try { if (Login.LoginMode == WinAppLibrary.UI.LogMode.OnMode) { //UnAssignedComponent Load await _commonsource.GetDrawingOnMode(Lib.CWPDataSource.selectedCWP, 0, _obj.taskCategoryIdList, _obj.taskTypeLUIDList, _obj.materialIDList, _obj.progressIDList, _obj.searhValue, _projectid, _disciplineCode, -1); if (_commonsource.Drawing != null && _commonsource.Drawing.Count > 0) { source = _commonsource.GetGroupedDrawing(); orgDrawingList = _commonsource.Drawing; } //AssignedComponent Load await _commonsource.GetComponentProgressByFIWP(0, Lib.ScheduleDataSource.selectedSchedule, _projectid, _disciplineCode); } else { } } catch (Exception e) { (new WinAppLibrary.Utilities.Helper()).ExceptionHandler(e, "IWPGridViewer Loaddrawing", "There is a problem loading the drawings - Please try again later", "Error!"); } this.DefaultViewModel["Drawings"] = source; this.gvViewType.SelectedIndex = 0; this.SubLayoutRoot.Visibility = Visibility.Visible; LoadAssignComponent(); Login.MasterPage.Loading(false, this); }
private async void Loaddrawing(Object navigationParameter) { Login.MasterPage.Loading(true, this); Login.MasterPage.HideUserStatus(); _obj = navigationParameter as Lib.ObjectParam; List<DataGroup> source = null; try { if (Login.LoginMode == WinAppLibrary.UI.LogMode.OnMode) { await _commonsource.GetDrawingForAssignHydroOnMode(Lib.CWPDataSource.selectedCWP, 0, _obj.moduleList, _obj.processsystemList, _obj.lineList, _obj.pidList, new List<int>(), new List<int>(), new List<int>(), new List<DataLibrary.ComboBoxDTO>(), null, new List<string>(), _projectid, _disciplineCode, -1); if (_commonsource.Drawing != null && _commonsource.Drawing.Count > 0) { source = _commonsource.GetGroupedDrawing(); orgDrawingList = _commonsource.Drawing; } await _commonsource.GetComponentProgressBySIWP(Lib.IWPDataSource.selectedHydro, 0, _projectid, _disciplineCode); } else { } } catch (Exception e) { (new WinAppLibrary.Utilities.Helper()).ExceptionHandler(e, "IWPGridViewer Loaddrawing", "There is a problem loading the drawings - Please try again later", "Error!"); } this.DefaultViewModel["Drawings"] = source; this.gvViewType.SelectedIndex = 0; this.SubLayoutRoot.Visibility = Visibility.Visible; Login.MasterPage.Loading(false, this); }
private async void Loaddrawing(Object navigationParameter) { Login.MasterPage.Loading(true, this); Login.MasterPage.HideUserStatus(); _obj = navigationParameter as Lib.ObjectParam; List<DataGroup> source = null; try { if (Login.LoginMode == WinAppLibrary.UI.LogMode.OnMode) { await _commonsource.GetDrawingForCSUOnMode(Lib.DrawingType.PANDID, _projectid, _disciplineCode); //await _commonsource.GetDrawingForCSUOnMode(0, _projectid, _disciplineCode); if (_commonsource.Drawing != null && _commonsource.Drawing.Count > 0) { source = _commonsource.GetGroupedDrawing(); orgDrawingList = _commonsource.Drawing; } } else { } } catch (Exception e) { (new WinAppLibrary.Utilities.Helper()).ExceptionHandler(e, "IWPGridViewer Loaddrawing", "There is a problem loading the drawings - Please try again later", "Error!"); } this.DefaultViewModel["Drawings"] = source; this.gvViewType.SelectedIndex = 0; Login.MasterPage.Loading(false, this); }