Esempio n. 1
0
 public SigmaResultType ProgressTypeComboByCwpId(string cwpId)
 {
     SigmaResultType result = new SigmaResultType();
     try
     {
         ComboBoxMgr comboBoxMgr = new ComboBoxMgr();
         result = comboBoxMgr.GetProgressTypeComboByCwpId(cwpId);
         return result;
     }
     catch (Exception ex)
     {
         // Log Exception
         ExceptionHelper.logException(ex);
         result.IsSuccessful = false;
         result.ErrorMessage = ex.Message;
         return result;
     }
 }
Esempio n. 2
0
 public SigmaResultType SigmaRoleCombo()
 {
     SigmaResultType result = new SigmaResultType();
     try
     {
         ComboBoxMgr comboBoxMgr = new ComboBoxMgr();
         result = comboBoxMgr.GetSigmaRoleCombo();
         return result;
     }
     catch (Exception ex)
     {
         // Log Exception
         ExceptionHelper.logException(ex);
         result.IsSuccessful = false;
         result.ErrorMessage = ex.Message;
         return result;
     }
 }
Esempio n. 3
0
 public SigmaResultType PersonnelTypeCombo()
 {
     SigmaResultType result = new SigmaResultType();
     try
     {
         ComboBoxMgr comboBoxMgr = new ComboBoxMgr();
         result = comboBoxMgr.GetSigmaCodeCombo("PERSONNEL_TYPE");
         return result;
     }
     catch (Exception ex)
     {
         // Log Exception
         ExceptionHelper.logException(ex);
         result.IsSuccessful = false;
         result.ErrorMessage = ex.Message;
         return result;
     }
 }
Esempio n. 4
0
        public SigmaResultType ProgressStepCombo()
        {
            SigmaResultType result = new SigmaResultType();
            try
            {
                var queryStr = WebOperationContext.Current.IncomingRequest.UriTemplateMatch.QueryParameters;

                List<string> s_option = new List<string>();
                List<string> s_key = new List<string>();
                s_option.Add("@CwpId");
                s_option.Add("@TaskCategoryId");
                s_option.Add("@TaskTypeId");
                s_key.Add(queryStr["CwpId"]);
                s_key.Add(queryStr["TaskCategoryId"]);
                s_key.Add(queryStr["TaskTypeId"]);

                ComboBoxMgr comboBoxMgr = new ComboBoxMgr();
                result = comboBoxMgr.GetProgressStepCombo(s_option, s_key);
                return result;
            }
            catch (Exception ex)
            {
                // Log Exception
                ExceptionHelper.logException(ex);
                result.IsSuccessful = false;
                result.ErrorMessage = ex.Message;
                return result;
            }
        }
Esempio n. 5
0
 public SigmaResultType EquipmentThirdLevelCombo(string codeCategory)
 {
     SigmaResultType result = new SigmaResultType();
     try
     {
         ComboBoxMgr comboBoxMgr = new ComboBoxMgr();
         result = comboBoxMgr.GetEquipmentThirdLevelCombo(codeCategory);
         return result;
     }
     catch (Exception ex)
     {
         // Log Exception
         ExceptionHelper.logException(ex);
         result.IsSuccessful = false;
         result.ErrorMessage = ex.Message;
         return result;
     }
 }
Esempio n. 6
0
 public SigmaResultType DrawingNumberCombo(string cwpId)
 {
     SigmaResultType result = new SigmaResultType();
     try
     {
         ComboBoxMgr comboBoxMgr = new ComboBoxMgr();
         result = comboBoxMgr.GetDrawingNumberCombo(Int32.Parse(cwpId));
         return result;
     }
     catch (Exception ex)
     {
         // Log Exception
         ExceptionHelper.logException(ex);
         result.IsSuccessful = false;
         result.ErrorMessage = ex.Message;
         return result;
     }
 }
Esempio n. 7
0
 public SigmaResultType DivisionCombo()
 {
     SigmaResultType result = new SigmaResultType();
     try
     {
         ComboBoxMgr comboBoxMgr = new ComboBoxMgr();
         result = comboBoxMgr.GetSigmaCodeCombo("ROLE_DIVISION_TYPE");
         return result;
     }
     catch (Exception ex)
     {
         // Log Exception
         ExceptionHelper.logException(ex);
         result.IsSuccessful = false;
         result.ErrorMessage = ex.Message;
         return result;
     }
 }
Esempio n. 8
0
 public SigmaResultType DisciplinesComboByProjectId(string projectId)
 {
     SigmaResultType result = new SigmaResultType();
     try
     {
         ComboBoxMgr comboBoxMgr = new ComboBoxMgr();
         result = comboBoxMgr.GetDisciplineComboByProjectId(projectId);
         return result;
     }
     catch (Exception ex)
     {
         // Log Exception
         ExceptionHelper.logException(ex);
         result.IsSuccessful = false;
         result.ErrorMessage = ex.Message;
         return result;
     }
 }
Esempio n. 9
0
 public SigmaResultType TaskTypeCombo(string taskCategoryId)
 {
     SigmaResultType result = new SigmaResultType();
     try
     {
         ComboBoxMgr comboBoxMgr = new ComboBoxMgr();
         result = comboBoxMgr.GetTaskTypeCombo(taskCategoryId);
         return result;
     }
     catch (Exception ex)
     {
         // Log Exception
         ExceptionHelper.logException(ex);
         result.IsSuccessful = false;
         result.ErrorMessage = ex.Message;
         return result;
     }
 }