private void btnThem_Click(object sender, EventArgs e) { txtMaVatTu.Text = UtilitiesService.AutoGenarateCode(Config.P_VT); txtTenVatTu.Text = ""; txtDonViTinh.Text = ""; txtDonGiaBan.Text = ""; txtDonGiaNhap.Text = ""; currentVatTu = new VatTu(); }
private void btnThem_Click(object sender, EventArgs e) { txtMaKho.Text = UtilitiesService.AutoGenarateCode(Config.P_KHO); txtTenKho.Text = ""; txtDiaChi.Text = ""; txtGhiChu.Text = ""; txtSDT.Text = ""; cboQuanLy.Text = ""; txtIdKho.Text = ""; currentKho = new Kho(); }
private void btnThem_Click(object sender, EventArgs e) { txtMaNhaCungCap.Text = UtilitiesService.AutoGenarateCode(Config.P_NHACC); txtTenNhaCungCap.Text = ""; txtDiaChi.Text = ""; txtEmail.Text = ""; txtSDT.Text = ""; txtNguoiDaiDien.Text = ""; txtIdNhaCungCap.Text = ""; currentNhaCungCap = new NhaCungCap(); }
private void DisabledControl() { if (ucNhapKho.idPhieuNhap != 0) { txtMa.Enabled = false; cboNhaCungCap.Enabled = false; } else { txtMa.Enabled = false; txtMa.Text = UtilitiesService.AutoGenarateCode("PN"); } }
private void DisabledControl() { if (ucXuatKho.idPhieuXuat != 0) { txtMa.Enabled = false; cboKho.Enabled = false; } else { txtMa.Enabled = false; txtMa.Text = UtilitiesService.AutoGenarateCode("PX"); } }
private void btnThem_Click(object sender, EventArgs e) { txtManhanVien.Text = UtilitiesService.AutoGenarateCode(Config.P_NV); txtTennhanVien.Text = ""; txtDiaChi.Text = ""; txtEmail.Text = ""; txtSDT.Text = ""; txtCMND.Text = ""; txtIdNhanVien.Text = ""; dateTimeInput1.Value = DateTime.Now; dateTimeInput2.Value = DateTime.Now; rdNam.Checked = true; currentnhanVien = new NhanVien(); }
private void btnThem_Click(object sender, EventArgs e) { txtMaNhomVatTu.Text = UtilitiesService.AutoGenarateCode(Config.P_NVT); txtTenNhomVatTu.Text = ""; currentNhomVatTu = new NhomVatTu(); }