Example #1
0
        private void TiemGUI_Load(object sender, EventArgs e)
        {
            //gridKH.DataSource = busKH.getAllKH();
            //gridView1.Columns["MAKH"].SortOrder = DevExpress.Data.ColumnSortOrder.Descending;
            DataTable dt = busPhieuTiem.GetAllPhieuTiemInfo();

            dt.Columns.Add("DATHANHTOAN", typeof(Int32));
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                if (busPhieuTiem.IsPhieutiemDaThanhToan(dt.Rows[i]["MAPHIEUTIEM"].ToString().Trim()))
                {
                    dt.Rows[i]["DATHANHTOAN"] = 1;
                }
                else
                {
                    dt.Rows[i]["DATHANHTOAN"] = 0;
                }
            }


            gridPT.DataSource = dt;
        }
Example #2
0
 private void PhieuTiemLIST_Load(object sender, EventArgs e)
 {
     gridPT.DataSource = busPT.GetAllPhieuTiemInfo();
     gridView1.BestFitColumns();
     gridView1.Columns["MAPHIEUTIEM"].SortOrder = DevExpress.Data.ColumnSortOrder.Descending;
 }