Esempio n. 1
0
 private void btnInventoryPostAdd_Click(object sender, EventArgs e)
 {
     using (var form = new InventoryPostEdit(mode.Add))
     {
         panelInventory.Visible = false;
         panelMask.Visible      = true;
         var result = form.ShowDialog();
         panelInventory.Visible = true;
         panelMask.Visible      = false;
     }
     inventoryInitial();
 }
Esempio n. 2
0
        private void dgvInventory_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridViewRow row    = this.dgvInventory.SelectedRows[0];
            string          status = row.Cells["dgvInventory_Status"].Value.ToString();

            if (status == InventoryStatus.已出貨.ToString())
            {
                this.Hide();
                InventoryExportEdit form = new InventoryExportEdit(mode, row.Cells["dgvInventory_Serno"].Value.ToString());
                form.ShowDialog();
                this.Close();
            }
            else if (status == InventoryStatus.庫存中.ToString())
            {
                this.Hide();
                InventoryImportEdit form = new InventoryImportEdit(mode, row.Cells["dgvInventory_Serno"].Value.ToString());
                form.ShowDialog();
                this.Close();
            }
            else if (status == InventoryStatus.寄庫品.ToString())
            {
                this.Hide();
                InventoryPostEdit form = new InventoryPostEdit(mode, row.Cells["dgvInventory_Serno"].Value.ToString());
                form.ShowDialog();
                this.Close();
            }
            else if (status == InventoryStatus.進貨退出.ToString())
            {
                this.Hide();
                InventoryReturnEdit form = new InventoryReturnEdit(mode, row.Cells["dgvInventory_Serno"].Value.ToString());
                form.ShowDialog();
                this.Close();
            }
            else
            {
                APConfig.SweetAlert(ShowBoxType.alert, "請聯繫Hugo!");
                this.Close();
            }
        }