Esempio n. 1
0
        private void dgvItem_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridViewRow row    = this.dgvItem.SelectedRows[0];
            string          status = row.Cells["dgvItem_Status"].Value.ToString();

            if (status == InventoryStatus.已出貨.ToString())
            {
                this.Hide();
                InventoryExportEdit form = new InventoryExportEdit(mode, row.Cells["dgvItem_Serno"].Value.ToString());
                form.ShowDialog();
                this.Close();
            }
            else if (status == InventoryStatus.庫存中.ToString())
            {
                this.Hide();
                InventoryImportEdit form = new InventoryImportEdit(mode, row.Cells["dgvItem_Serno"].Value.ToString());
                form.ShowDialog();
                this.Close();
            }
            else if (status == InventoryStatus.已退貨.ToString())
            {
                this.Hide();
                InventoryReturnEdit form = new InventoryReturnEdit(mode, row.Cells["dgvItem_Serno"].Value.ToString());
                form.ShowDialog();
                this.Close();
            }
            else
            {
                APConfig.SweetAlert(ShowBoxType.alert, "請聯繫Hugo!");
                this.Close();
            }
        }
Esempio n. 2
0
 private void btnInventoryExportAdd_Click(object sender, EventArgs e)
 {
     using (var form = new InventoryExportEdit(mode.Add))
     {
         panelInventory.Visible = false;
         panelMask.Visible      = true;
         var result = form.ShowDialog();
         panelInventory.Visible = true;
         panelMask.Visible      = false;
     }
     inventoryInitial();
 }