示例#1
0
 public void WhenSplitThePledgeDesignations(Table designations)
 {
     try
     {
         PledgeDialog.SplitDesignationsEvenly(designations); //evenly divide the pledges into the various designatinos
     }
     catch (Exception ex)
     {
         throw new Exception("Error: could not split pledge designations evenly. " + ex.Message);
     }
 }
示例#2
0
 public void WhenIStartToAddAPledge(Table pledgeValues)
 {
     BBCRMHomePage.OpenRevenueFA();
     RevenueFunctionalArea.AddAPledge();
     foreach (var pledgeValueRow in pledgeValues.Rows)
     {
         if (pledgeValueRow.ContainsKey("Constituent") && pledgeValueRow["Constituent"] != string.Empty)
         {
             pledgeValueRow["Constituent"] += uniqueStamp;
         }
         PledgeDialog.SetFields(pledgeValueRow);
     }
 }
示例#3
0
 public void WhenIStartToAddAPledge(Table pledgeValues)
 {
     try
     {
         BBCRMHomePage.OpenRevenueFA();      //Open revenue functional area
         RevenueFunctionalArea.AddAPledge(); //create a new pledge
         foreach (var pledgeValueRow in pledgeValues.Rows)
         {
             if (pledgeValueRow.ContainsKey("Constituent") && pledgeValueRow["Constituent"] != string.Empty)
             {
                 pledgeValueRow["Constituent"] += uniqueStamp;   //The unique stamp is a series of numbers to keep constituents different from each other
             }
             PledgeDialog.SetFields(pledgeValueRow);
         }
     }
     catch (Exception ex)
     {
         throw new Exception("Error: could not start to add a pledge. " + ex.Message);
     }
 }
示例#4
0
 public void WhenSplitThePledgeDesignations(Table designations)
 {
     PledgeDialog.SplitDesignationsEvenly(designations);
 }