예제 #1
0
        public void DoAction(string actionType)
        {
            switch (actionType)
            {
            case "0":
                if (_selectedInfo != null && _oanswer != null)
                {
                    Satisfaction_3 frmEmpSurveysSubmit = new Satisfaction_3(_oanswer);    //empSurveysInfo
                    frmEmpSurveysSubmit.UserID             = _selectedInfo.EmployeeID;
                    frmEmpSurveysSubmit.EmployeeSurveyInfo = employeeSurveyInfo;
                    EntityBrowser browser = new EntityBrowser(frmEmpSurveysSubmit);
                    browser.MinHeight = 510;
                    browser.MinWidth  = 750;
                    browser.FormType  = FormTypes.Browse;
                    browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
                }
                break;

            case "1":
                CancelAndClose();
                break;
            }
        }
예제 #2
0
 public void DoAction(string actionType)
 {
     switch (actionType)
     {
         case "0":
             if (_selectedInfo != null && _oanswer != null)
             {
                 Satisfaction_3 frmEmpSurveysSubmit = new Satisfaction_3(_oanswer);//empSurveysInfo
                 frmEmpSurveysSubmit.UserID = _selectedInfo.EmployeeID;
                 frmEmpSurveysSubmit.EmployeeSurveyInfo = employeeSurveyInfo;
                 EntityBrowser browser = new EntityBrowser(frmEmpSurveysSubmit);
                 browser.MinHeight = 510;
                 browser.MinWidth = 750;
                 browser.FormType = FormTypes.Browse;
                 browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
             }
             break;
         case "1":
             CancelAndClose();
             break;
     }
 }