Ejemplo n.º 1
0
        /// <summary>
        /// 新增Order
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            AddSalesOrder oneOrder = new AddSalesOrder();

            if (oneOrder.ShowDialog() == DialogResult.OK)
            {
                salesID = oneOrder.AddSalesID;
                GetSalesOrdersList();
                GetUpdateOrderDetail();
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 修改订单
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void toolStripButton2_Click(object sender, EventArgs e)
 {
     if (listViewOrders.SelectedItems.Count > 0)
     {
         SalesOrdersModel oneSales = (SalesOrdersModel)listViewOrders.SelectedItems[0].Tag;
         salesID = oneSales.ID;
         AddSalesOrder updateSalesOrder = new AddSalesOrder(oneSales.ID);
         if (updateSalesOrder.ShowDialog() == DialogResult.OK)
         {
             GetSalesOrdersList();
             //修改中ListView失去焦点
             GetUpdateOrderDetail();
         }
     }
 }