Esempio n. 1
0
        private void RefreshForm()
        {
            isRefresh = true;
            lookUp_SoHieu.Properties.DataSource    = CommonBL.ListXe_NotIn_GiamSatXe;
            lookUp_SoHieu.Properties.DisplayMember = "SoHieuXe";
            lookUp_SoHieu.Properties.ValueMember   = "SoHieuXe";
            DanhSachXeHoatDong = lienlac.GetNhanVienList();
            lookUp_LaiXe.Properties.DataSource    = DanhSachXeHoatDong;
            lookUp_LaiXe.Properties.DisplayMember = "TenVietTat";
            lookUp_LaiXe.Properties.ValueMember   = "MaLaiXe";

            dtServer         = Taxi.Business.CommonBL.GetTimeServer();
            deGioDi.DateTime = dtServer;

            spin_ChiSoDi.Text       = "";
            spin_ChiSoDi.EditValue  = null;
            lVungDieuHanh.EditValue = null;
            txtGhiChu.Text          = "";
            txtNode.EditValue       = null;
            lookUp_LaiXe.EditValue  = null;
            lookUp_SoHieu.EditValue = null;
            lookUp_SoHieu.Focus();
            chkTrucDem.Checked = false;
            chk2Lai.Checked    = false;
            chkCa3.Checked     = false;
            lblmsg.Text        = string.Empty;
            isRefresh          = false;
        }