private void Menu_Edit(object sender, RoutedEventArgs e)
        {
            ///弹出编辑框编辑该记录
            ///
            try
            {
                DataRowView        mySelectedElement  = (DataRowView)datagridinbound.SelectedItem;
                WPF_Inbound_Manual wpF_Inbound_Manual = new WPF_Inbound_Manual(this, mySelectedElement, "edit");
                wpF_Inbound_Manual.supplier_name.Text      = mySelectedElement.Row[2].ToString();
                wpF_Inbound_Manual.box_id.Text             = mySelectedElement.Row[3].ToString();
                wpF_Inbound_Manual.purchase_id.Text        = mySelectedElement.Row[4].ToString();
                wpF_Inbound_Manual.material_id.Text        = mySelectedElement.Row[5].ToString();
                wpF_Inbound_Manual.material_spec.Text      = mySelectedElement.Row[6].ToString();
                wpF_Inbound_Manual.material_pqty.Text      = mySelectedElement.Row[7].ToString();
                wpF_Inbound_Manual.material_serialnum.Text = mySelectedElement.Row[8].ToString();
                wpF_Inbound_Manual.Title = "编辑入库记录";
                wpF_Inbound_Manual.inbound_manual_determine.Content = "修改";

                wpF_Inbound_Manual.ShowDialog();
            }
            catch (InvalidCastException)
            {
                MessageBox.Show("导入的excel不能编辑");
            }
        }
        private void ManuallyAdd(object sender, RoutedEventArgs e)
        {
            ///弹出输入窗口Input_Inbound
            ///手动填写物料入库信息
            ///
            WPF_Inbound_Manual wpF_Inbound_Manual = new WPF_Inbound_Manual(this, view, "add");

            wpF_Inbound_Manual.ShowDialog();
        }