private void buttonItem13_Click(object sender, EventArgs e) { ExportModule em = new ExportModule(); DevComponents.DotNetBar.TabItem t = tabControl1.CreateTab("Xuất kho", tabControl1.Tabs.Count); t.AttachedControl.Controls.Add(em); tabControl1.SelectedTab = t; }
private void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { distributor dis = new distributor(); if (dataGridViewX1.CurrentRow.Cells[0].Value != null) { dis.id_distributor = (int)dataGridViewX1.CurrentRow.Cells[0].Value; dis.name_distributor = dataGridViewX1.CurrentRow.Cells[1].Value.ToString(); dis._address = dataGridViewX1.CurrentRow.Cells[2].Value.ToString(); ExportModule.F_Sender(dis); this.Close(); } }
private void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { shipment s = new shipment(); s.id_shipment = (int)dataGridViewX1.CurrentRow.Cells[0].Value; s.posion = dataGridViewX1.CurrentRow.Cells[9].Value.ToString(); s.unit = dataGridViewX1.CurrentRow.Cells[8].Value.ToString(); s.number = (int)dataGridViewX1.CurrentRow.Cells[7].Value; s.ex_unit_price = (double)dataGridViewX1.CurrentRow.Cells[4].Value; s.man_date = (DateTime)dataGridViewX1.CurrentRow.Cells[5].Value; s.exp_date = (DateTime)dataGridViewX1.CurrentRow.Cells[6].Value; s.id_item = (int)dataGridViewX1.CurrentRow.Cells[1].Value; ExportModule.I_Sender(s); }
private void dataGridViewX1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (dataGridViewX1.CurrentRow.Cells[0].Value != null) { employee em = new employee(); em.name_employee = dataGridViewX1.CurrentRow.Cells[1].Value.ToString(); em.id_employee = (int)dataGridViewX1.CurrentRow.Cells[0].Value; if (this.Tag.Equals(2)) { ImportModule.senderEmployee(em); } else { ExportModule.E_Sender(em); } this.Close(); } }