Beispiel #1
0
        private void xlThem()
        {
            CNhaCC ncc = new CNhaCC(txtMa.Text, txtTen.Text, leKhuVuc.EditValue.ToString(), txtDiaChi.Text, txtMaSoThue.Text,
                                    txtDienThoai.Text, txtFax.Text, txtEmail.Text, txtMobile.Text, txtWebsite.Text, txtNguoiLienHe.Text,
                                    txtNickSkype.Text, txtTaiKhoan.Text, txtNganHang.Text,
                                    (calcGioiHanNo.Text == "" ? 0 : float.Parse(calcGioiHanNo.Value.ToString())),
                                    (calcChietKhau.Text == "" ? 0 : float.Parse(calcChietKhau.Value.ToString())),
                                    checkConQL.Checked);

            BUS_NhaCungCap.ThemNCC(ncc);
            sendNCC?.Invoke();

            Action.Module     = "Nhà Cung Cấp";
            Action.ActionName = "Thêm";
            Action.Reference  = txtMa.Text;
            Action.LuuThongTin();

            this.Close();
        }