Exemplo n.º 1
0
        public void DoAction(string actionType)
        {
            switch (actionType)
            {
            case "0":
                string empId = GetSelectEmpID();
                if (empId != null)
                {
                    EmployeeSubmissions_3 frmEmpSurveysSubmit = new EmployeeSubmissions_3();    //empSurveysInfo
                    frmEmpSurveysSubmit.UserID             = empId;
                    frmEmpSurveysSubmit.EmployeeSurveyInfo = employeeSurveyInfo;
                    EntityBrowser browser = new EntityBrowser(frmEmpSurveysSubmit);
                    browser.MinHeight = 550;
                    browser.MinWidth  = 750;
                    //browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                    browser.Show <string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
                }
                break;

            case "1":
                CancelAndClose();
                break;
            }
        }
Exemplo n.º 2
0
 public void DoAction(string actionType)
 {
     switch (actionType)
     {
         case "0":
             string empId = GetSelectEmpID();
             if (empId != null)
             {
                 EmployeeSubmissions_3 frmEmpSurveysSubmit = new EmployeeSubmissions_3();//empSurveysInfo
                 frmEmpSurveysSubmit.UserID = empId;
                 frmEmpSurveysSubmit.EmployeeSurveyInfo = employeeSurveyInfo;
                 EntityBrowser browser = new EntityBrowser(frmEmpSurveysSubmit);
                 browser.MinHeight = 550;
                 browser.MinWidth = 750;
                 //browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
                 browser.Show<string>(DialogMode.Default, Common.ParentLayoutRoot, "", (result) => { });
             }
             break;
         case "1":
             CancelAndClose();
             break;
     }
 }