private void init(int orderId, P2GenNHibernate.EN.Default_.CustomerEN customer, Nullable <DateTime> date, string address, string city, string state, string zip, string paymentMethod, P2GenNHibernate.Enumerated.Default_.OrderStatusEnum status, System.Collections.Generic.IList <P2GenNHibernate.EN.Default_.OrderLineEN> orderLine) { this.OrderId = orderId; this.Customer = customer; this.Date = date; this.Address = address; this.City = city; this.State = state; this.Zip = zip; this.PaymentMethod = paymentMethod; this.Status = status; this.OrderLine = orderLine; }
public int CreateOrder(int p_orderId, Nullable <DateTime> p_date, string p_address, string p_city, string p_state, string p_zip, string p_paymentMethod, P2GenNHibernate.Enumerated.Default_.OrderStatusEnum p_status) { CustomerOrderEN customerOrderEN = null; int oid; //Initialized CustomerOrderEN customerOrderEN = new CustomerOrderEN(); customerOrderEN.OrderId = p_orderId; customerOrderEN.Date = p_date; customerOrderEN.Address = p_address; customerOrderEN.City = p_city; customerOrderEN.State = p_state; customerOrderEN.Zip = p_zip; customerOrderEN.PaymentMethod = p_paymentMethod; customerOrderEN.Status = p_status; //Call to CustomerOrderCAD oid = _ICustomerOrderCAD.CreateOrder(customerOrderEN); return(oid); }
public CustomerOrderEN(int orderId, P2GenNHibernate.EN.Default_.CustomerEN customer, Nullable <DateTime> date, string address, string city, string state, string zip, string paymentMethod, P2GenNHibernate.Enumerated.Default_.OrderStatusEnum status, System.Collections.Generic.IList <P2GenNHibernate.EN.Default_.OrderLineEN> orderLine ) { this.init(OrderId, customer, date, address, city, state, zip, paymentMethod, status, orderLine); }