Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the InboundOrders EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToInboundOrders(InboundOrder inboundOrder)
 {
     base.AddObject("InboundOrders", inboundOrder);
 }
Example #2
0
 /// <summary>
 /// Create a new InboundOrder object.
 /// </summary>
 /// <param name="inboundOrderID">Initial value of the InboundOrderID property.</param>
 /// <param name="inboundDate">Initial value of the InboundDate property.</param>
 /// <param name="outboundOrderID">Initial value of the OutboundOrderID property.</param>
 /// <param name="code">Initial value of the Code property.</param>
 /// <param name="customerID">Initial value of the CustomerID property.</param>
 /// <param name="lastUpdatedBy">Initial value of the LastUpdatedBy property.</param>
 /// <param name="lastUpdateTime">Initial value of the LastUpdateTime property.</param>
 public static InboundOrder CreateInboundOrder(global::System.Int32 inboundOrderID, global::System.DateTime inboundDate, global::System.Int32 outboundOrderID, global::System.String code, global::System.Int32 customerID, global::System.Int32 lastUpdatedBy, global::System.DateTime lastUpdateTime)
 {
     InboundOrder inboundOrder = new InboundOrder();
     inboundOrder.InboundOrderID = inboundOrderID;
     inboundOrder.InboundDate = inboundDate;
     inboundOrder.OutboundOrderID = outboundOrderID;
     inboundOrder.Code = code;
     inboundOrder.CustomerID = customerID;
     inboundOrder.LastUpdatedBy = lastUpdatedBy;
     inboundOrder.LastUpdateTime = lastUpdateTime;
     return inboundOrder;
 }
Example #3
0
        private void LoadData()
        {
            SystemHelper.BindComboxToCustomer(cbCustomer);
            SystemHelper.BindComboxToSystemUser(cbSystemUser);

            // Set data object value
            if (CurrentOrder == null)
            {
                CurrentOrder = new InboundOrder();
                CurrentOrder.SystemUser = SystemHelper.CurrentUser;
            }

            txtCode.Text = CurrentOrder.Code;
            dtInboundDate.Value = CurrentOrder.InboundDate;

            cbCustomer.SelectedItem = ReferenceOrder.Customer;
            cbSystemUser.SelectedItem = CurrentOrder.SystemUser;

            foreach (OutboundOrderDetail item in ReferenceOrder.Items)
            {
                DataGridViewRow dgvr = new DataGridViewRow();
                object[] row = { item.OutboundOrderDetailID, item.Tool.Code, item.Quantity, item.Tool.Name, item.Tool.Dimensions };
                dataGridViewDetail.Rows.Add(row);
            }
        }