Ejemplo n.º 1
0
 /// <summary>
 /// Updates order lines for the product type specified.
 /// </summary>
 /// <param name="ProductName">Product type to update lines for.</param>
 public void UpdateLines(string ProductName)
 {
     O = OSvc.CalculateOrderLines(O, ProductName);
     if (O.Errors != null && O.Errors.Count > 0)
     {
         MarkInvalid(O.Errors[0].Message, O.Errors[0].Target);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This method actually does the work of entering an O.
 /// </summary>
 /// <returns></returns>
 public bool Process()
 {
     O = OSvc.Process(O);
     if (O.Errors != null)
     {
         if (O.Errors.Count == 1)
         {
             MarkInvalid(O.Errors[0].Message, O.Errors[0].Target);
         }
         else if (O.Errors.Count > 1)
         {
             Valid.IsValid = false;
         }
     }
     if (Valid.IsValid && Lines.Total > 0 && Addresses.Household.Email != "" && Addresses.Household.Email != null)
     {
         ((IConfirmingEmail)Page.LoadControl("../Controls/ConfirmingEmail.ascx")).Send(this);
     }
     return(Valid.IsValid);
 }