Example #1
0
    private void LuuThamSo()
    {
        ThamSoBUS bus = new ThamSoBUS();

        ThamSoDTO dto = new ThamSoDTO();

        dto.GiaTriDiemSo           = decimal.Parse(Request["GiaTriDiemSo"].ToString());
        dto.DiemKhachHangThanThiet = int.Parse(Request["DiemKhachHangThanThiet"].ToString());
        dto.TiLeGiamGiaThucDon     = float.Parse(Request["TiLeGiamGiaThucDon"].ToString()) / 100;
        dto.Thue = float.Parse(Request["Thue"].ToString()) / 100;
        dto.GiaTriDoiDiemKhuyenMai  = decimal.Parse(Request["GiaTriDoiDiemKhuyenMai"].ToString());
        dto.GioiHanDoiDiemKhuyenMai = float.Parse(Request["GioiHanDoiDiemKhuyenMai"].ToString()) / 100;

        bool flag = bus.LuuThamSo(dto);

        XL_THE        the       = new XL_THE("goc");
        XL_THUOC_TINH thuoctinh = new XL_THUOC_TINH("kq", flag ? "1" : "0");

        the.Danh_sach_thuoc_tinh.Add(thuoctinh);
        string chuoi = the.Chuoi();

        XL_CHUOI.XuatChuoi(Response, chuoi);
    }