using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

using System.Data;
using ABC.File;

namespace ABC.Report
{
    public partial class T_ct_kh1_sp : DevExpress.XtraReports.UI.XtraReport
    {
        public T_ct_kh1_sp()
        {
            InitializeComponent();
            lbngay.Text = Get_CauHinh.ch1kh_ngay;
            lbkh.Text = "Khách Hàng : " + Get_CauHinh.ch1kh_kh;
           // lbnocu.Text = Get_CauHinh.ch1kh_nocu;
           // lbtienhang.Text = Get_CauHinh.ch1kh_tongtienhang;
          //  lbthanhtoan.Text = Get_CauHinh.ch1kh_thanhtoan;
           // lbconlai.Text = Get_CauHinh.ch1kh_conlai;
          //  lbnocutext.Text = "Nợ Cũ : " + Get_CauHinh.ch1kh_nocu;
          // Detail.SortFields.Add(new GroupField("Ngay", XRColumnSortOrder.Ascending));
            //lbgc.Text = chitietreport.gc;
            nocu_sot.Text = Get_CauHinh.ch1kh_nocu_sot;
            nocu_ket.Text = Get_CauHinh.ch1kh_nocu_ket;
            nocu_lu.Text = Get_CauHinh.ch1kh_nocu_lu;
            nocu_cat.Text = Get_CauHinh.ch1kh_nocu_cat;
            nocu_bom.Text = Get_CauHinh.ch1kh_nocu_bom;

            nomoi_sot.Text = Get_CauHinh.ch1kh_tongtienhang_sot;
            nomoi_ket.Text = Get_CauHinh.ch1kh_tongtienhang_ket;
            nomoi_lu.Text = Get_CauHinh.ch1kh_tongtienhang_lu;
            nomoi_cat.Text = Get_CauHinh.ch1kh_tongtienhang_cat;
            nomoi_bom.Text = Get_CauHinh.ch1kh_tongtienhang_bom;

            tra_sot.Text = Get_CauHinh.ch1kh_thanhtoan_sot;
            tra_ket.Text = Get_CauHinh.ch1kh_thanhtoan_ket;
            tra_lu.Text = Get_CauHinh.ch1kh_thanhtoan_lu;
            tra_cat.Text = Get_CauHinh.ch1kh_thanhtoan_cat;
            tra_bom.Text = Get_CauHinh.ch1kh_thanhtoan_bom;

            con_sot.Text = Get_CauHinh.ch1kh_conlai_sot;
            con_ket.Text = Get_CauHinh.ch1kh_conlai_ket;
            con_lu.Text = Get_CauHinh.ch1kh_conlai_lu;
            con_cat.Text = Get_CauHinh.ch1kh_conlai_cat;
            con_bom.Text = Get_CauHinh.ch1kh_conlai_bom;

            #region
            DataView dtv = new DataView(Get_CauHinh.RE);
            dtv.RowFilter = "STT = 13";
            txtten.Text = dtv[0]["TIEUDE"].ToString();
            txtdienthoai.Text = dtv[0]["DT"].ToString();
            txtdiachi.Text = dtv[0]["DC"].ToString();
            #endregion


        }

        private void T_ct_kh1_sp_BeforePrint(object sender, CancelEventArgs e)
        {

        }

        private void ReportFooter_BeforePrint(object sender, CancelEventArgs e)
        {

        }

    }
}
