private void btnRunPrjct_Click(object sender, EventArgs e) { try { // create a new instance of the alert form alert = new AlertForm(); alert.SetMessage("Loading data. Please wait..."); // "Loading data. Please wait..." alert.TopMost = true; alert.StartPosition = FormStartPosition.CenterScreen; alert.Show(); alert.Refresh(); // event handler for the Cancel button in AlertForm // alert.Canceled += new EventHandler<EventArgs>(buttonCancel_Click); int iProjectID = 0; iProjectID = Convert.ToInt16(cmbProject.SelectedValue);; Common.iProjectID = iProjectID; this.Show(); fnRunProject(iProjectID); //fnExport(); alert.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnRun_Click(object sender, EventArgs e) { try { DialogResult ds = RadMessageBox.Show(this, "This will apply the rules on the entire dataset, are you sure you want to continue", "Confirmation", MessageBoxButtons.YesNo, RadMessageIcon.Info); if (ds.ToString() == "Yes") { if (objRanking.fnRankingcriteria(Common.iProjectID).Rows.Count > 0) { alert = new AlertForm(); alert.SetMessage("Loading data. Please wait..."); // "Loading data. Please wait..." alert.TopMost = true; alert.StartPosition = FormStartPosition.CenterScreen; alert.Show(); alert.Refresh(); fnCreateView(); string strT1String = clstreDetails.fnBuildTimePeriod(Common.timePeriods.strtp1); string strT2String = clstreDetails.fnBuildTimePeriod(Common.timePeriods.strtp2); // clstreDetails.fnDeleteTreOppfrmExport(); //if (ClsObj.fnRunOPoortunities(Common.iProjectID, Common.strTableName, strT1String, strT2String, strMainFilter)) //{ // objRanking.fnMainRankingfrmExport(Common.iProjectID); // fnShowOpportunitiesDetails(); // clstreDetails.fnDropTableTab(Common.strTableName); //} if (ClsObj.fnRunOPoortunitiesfrmProcedure(Common.iProjectID, Common.strTableName, strT1String, strT2String)) { objRanking.fnMainRankingfrmExport(Common.iProjectID); fnShowOpportunitiesDetails(); //clstreDetails.fnDropTableTab(Common.strTableName); } alert.Close(); } else { Telerik.WinControls.RadMessageBox.Show(this, "Select the Ranking Criteria ,Inorder to run Opportunities ", "Information", MessageBoxButtons.OK, RadMessageIcon.Error, MessageBoxDefaultButton.Button1); return; } } } catch (Exception ex) { alert.Close(); MessageBox.Show(ex.Message); } }
private void btnRunPrjct_Click(object sender, EventArgs e) { try { this.alert = new AlertForm(); this.alert.SetMessage("Loading data. Please wait..."); this.alert.TopMost = true; this.alert.StartPosition = FormStartPosition.CenterScreen; this.alert.Show(); this.alert.Refresh(); int num = 0; num = Convert.ToInt16(cmbProject.SelectedValue); Common.iProjectID = num; base.Show(); this.fnRunProject(num); this.alert.Close(); } catch (Exception exception) { MessageBox.Show(exception.Message); } }
private void btnRun_Click(object sender, EventArgs e) { try { if (RadMessageBox.Show(this, "This will apply the rules on the entire dataset, are you sure you want to continue", "Confirmation", MessageBoxButtons.YesNo, RadMessageIcon.Info).ToString() == "Yes") { if (this.objRanking.fnRankingcriteria(Common.iProjectID).Rows.Count <= 0) { RadMessageBox.Show(this, "Select the Ranking Criteria ,Inorder to run Opportunities ", "Information", MessageBoxButtons.OK, RadMessageIcon.Error, MessageBoxDefaultButton.Button1); return; } else { this.alert = new AlertForm(); this.alert.SetMessage("Loading data. Please wait..."); this.alert.TopMost = true; this.alert.StartPosition = FormStartPosition.CenterScreen; this.alert.Show(); this.alert.Refresh(); this.fnCreateView(); string str = this.clstreDetails.fnBuildTimePeriod(Common.timePeriods.strtp1); string str1 = this.clstreDetails.fnBuildTimePeriod(Common.timePeriods.strtp2); this.clstreDetails.fnDeleteTreOppfrmExport(); if (this.ClsObj.fnRunOPoortunitiesfrmProcedure(Common.iProjectID, Common.strTableName, str, str1)) { this.objRanking.fnMainRankingfrmExport(Common.iProjectID); this.fnShowOpportunitiesDetails(); } this.alert.Close(); } } } catch (Exception exception1) { Exception exception = exception1; this.alert.Close(); MessageBox.Show(exception.Message); } }