Example #1
0
 public ProductOrdered(MadeToOrder o, string todo)
 {
     InitializeComponent();
     order = o;
     op    = new OrderedProduct();
     type  = todo;
     if (type == "edit")
     {
         op.TransactionId = o.TransactionId;
         op.GetProductInfo();
     }
 }
Example #2
0
 public ProductOrdered(MadeToOrder o, string todo)
 {
     InitializeComponent();
     order = o;
     //op = new OrderedProduct();
     type = todo;
     if (type == "edit")
     {
         //op.TransactionId = o.TransactionId;
         sowebsvc = new SOWebSvcClient();
         //op.GetProductInfo();
         op = sowebsvc.GetOrderedProductInfo(o.TransactionId);
         sowebsvc.Close();
     }
     else
     {
         op = new OrderedProduct();
     }
 }