Esempio n. 1
0
        //Grid Binding
        private async void BindITRList()
        {
            try
            {
                Lib.ServiceModel.CommonModel cd = new Lib.ServiceModel.CommonModel();
                
                List<FiwpqaqcDTO> source = null;
                await _ITRList.GetITRListByFiwp(_fiwpID);
                source = _ITRList.GetITRList();
                
                this.DefaultViewModel["ITRList"] = source;

                if (source == null || source.Count < 1)
                {
                    WinAppLibrary.Utilities.Helper.SimpleMessage("Not Exist Downlad Data", "Caution!");
                }
            }
            catch (Exception ex)
            {
                (new WinAppLibrary.Utilities.Helper()).ExceptionHandler(ex, "LoadState");          
            }
        }
Esempio n. 2
0
        private async Task<bool> LoadOptionOnMode()
        {
            bool retValue = false;

            var common = new Lib.ServiceModel.CommonModel();
            try
            {
                var result = await common.GetCWPByProject_Combo_Mobile(_projectid, _disciplineCode, Login.UserAccount.LoginName);
                _iwpoption.BindCwp(result);
                retValue = true;
            }
            catch (Exception e)
            {
                (new WinAppLibrary.Utilities.Helper()).ExceptionHandler(e, "Sigma LoadOptionOnMode", "There is a problem loading the drawings - Please try again later", "Error!");
            }

            //Login.MasterPage.SetBottomAppbar(WinAppLibrary.UI.MasterPage.BottomAppBarButton.Download, Visibility.Visible);
            //Login.MasterPage.AppbarClicked += MasterPage_AppbarClicked;
            
            return retValue;
        }
Esempio n. 3
0
        private async Task<bool> LoadOptionOnMode()
        {
            bool retValue = false;

            var common = new Lib.ServiceModel.CommonModel();
            try
            {
                await _hydrosource.GetHydroTestByProjectScheduleOnMode(0);
                var result = _hydrosource.GetHydroByProjectSchedule();

                _hydrooption.BindHydro(result);

                retValue = true;
            }
            catch (Exception e)
            {
                (new WinAppLibrary.Utilities.Helper()).ExceptionHandler(e, "Sigma LoadOptionOnMode", "There was an error load drawing. Pleae contact administrator", "Error!");
            }

            //Login.MasterPage.SetBottomAppbar(WinAppLibrary.UI.MasterPage.BottomAppBarButton.Download, Visibility.Visible);
            //Login.MasterPage.AppbarClicked += MasterPage_AppbarClicked;

            return retValue;
        }
        private async Task<bool> LoadOptionOnMode()
        {
            bool retValue = false;

            var common = new Lib.ServiceModel.CommonModel();
            try
            {
                var result = await common.GetCWPByProject_Combo_Mobile(_projectid, _disciplineCode);
                _turnoverbinderoption.BindList(result);

                //var result = await common.GetCWPByProject_Combo_Mobile(_projectid, _disciplineCode);
                //_turnoverbinderoption.BindCwp(result);
                //retValue = true;
            }
            catch (Exception e)
            {
                (new WinAppLibrary.Utilities.Helper()).ExceptionHandler(e, "Sigma LoadOptionOnMode", "There was an error load drawing. Pleae contact administrator", "Error!");
            }

            //Login.MasterPage.SetBottomAppbar(WinAppLibrary.UI.MasterPage.BottomAppBarButton.Download, Visibility.Visible);
            //Login.MasterPage.AppbarClicked += MasterPage_AppbarClicked;

            return retValue;
        }
        private async void LoadOptionOnMode()
        {
            var common = new Lib.ServiceModel.CommonModel();
            try
            {
                await _drawingsource.LoadOptionOnMode(_projectid, _disciplineCode);
                _drawingsort.BindInfo(GetSortingCategories());
                Loaddrawing();
            }
            catch (Exception e)
            {
                (new WinAppLibrary.Utilities.Helper()).ExceptionHandler(e, "LoadGroup", "There is a problem loading the drawings - Please try again later", "Loading Error!");
            }

            Login.MasterPage.SetBottomAppbar(WinAppLibrary.UI.TrueTaskMasterPage.BottomAppBarButton.Download, Visibility.Visible);
            //Login.MasterPage.AppbarClicked += MasterPage_AppbarClicked;
            Login.MasterPage.Loading(false, this);
        }
Esempio n. 6
0
        private async Task<int> GetDepartmentID()
        {
            // Department ID를 이용하여 Foreman인지.. Quality Management인지 구분하기 위함
            int dID = -1;
            Lib.ServiceModel.CommonModel common = new Lib.ServiceModel.CommonModel();
            List<RevealCommonSvc.DepartstructureDTO> listDepartment = new List<RevealCommonSvc.DepartstructureDTO>();
            listDepartment = await common.GetDepartStructureByPersonnelID(Login.UserAccount.PersonnelID);
                
            if (listDepartment.Count > 0)
            {
                dID = listDepartment.Where(c => c.DepartmentID == WinAppLibrary.Utilities.Department.Foreman).Count() > 0 ?
                    WinAppLibrary.Utilities.Department.Foreman : listDepartment.Where(c => c.DepartmentID == WinAppLibrary.Utilities.Department.QualityManagement).Count() > 0 ?
                    WinAppLibrary.Utilities.Department.QualityManagement : listDepartment[0].DepartmentID;
            }

            return dID;
        }