private void lvStock_DoubleClick(object sender, EventArgs e) { InventoryInfo o = new InventoryInfo(ModeType.Stock, Convert.ToInt32(this.lvStock.SelectedItems[0].Tag.ToString()), m_SystemUser); o.ShowDialog(this.ParentForm); }
private void lvPurchas_DoubleClick(object sender, EventArgs e) { if (this.lvPurchas.SelectedItems == null || this.lvPurchas.SelectedItems.Count == 0) { return; } InventoryInfo o = new InventoryInfo(ModeType.Purchas, Convert.ToInt32(this.lvPurchas.SelectedItems[0].Tag.ToString()), m_SystemUser); o.ShowDialog(this.ParentForm); }
private void ShowInvoicingInfo() { if (this.lvSell.SelectedItems != null && this.lvSell.SelectedItems.Count > 0) { InventoryInfo o = new InventoryInfo(ModeType.Sell, Convert.ToInt32(this.lvSell.SelectedItems[0].Name.ToString()), m_SystemUser); o.ShowDialog(this.ParentForm); } else { MessageBox.Show("请选择要查看进销存信息的销售数据", "警告", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }