private void frmGiamSatXe_BaoKhaiThac_Load(object sender, EventArgs e)
        {
            dulieu = lienlac.GSX_BaoRoiXe_GetXe();

            txtSoHieu.Properties.DataSource        = dulieu;
            txtSoHieu.Properties.DisplayMember     = "SoHieuXe";
            txtSoHieu.Properties.ValueMember       = "MaLaiXe";
            txtSoHieu.Properties.Mask.MaskType     = DevExpress.XtraEditors.Mask.MaskType.RegEx;
            txtSoHieu.Properties.Mask.EditMask     = @"\d+";
            lVungDieuHanh.Properties.DataSource    = new VungDieuHanh().GetTenVungDieuHanh();
            lVungDieuHanh.Properties.DisplayMember = "TenVung";
            lVungDieuHanh.Properties.ValueMember   = "Id";
            //lVungDieuHanh.EditValue = null;
            deGioDi.DateTime = Taxi.Business.CommonBL.GetTimeServer();
        }
Beispiel #2
0
        private void frmGiamSatXe_XeMatLienLac_Load(object sender, EventArgs e)
        {
            TimeServer = Taxi.Business.CommonBL.GetTimeServer();
            dulieu     = lienlac.GSX_BaoRoiXe_GetXe();//.ToDataTableEnVang("SoHieuXe");
            // load số hiệu xe
            txtSoHieu.Properties.DataSource    = dulieu;
            txtSoHieu.Properties.DisplayMember = "SoHieuXe";
            txtSoHieu.Properties.ValueMember   = "MaLaiXe";
            txtSoHieu.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.RegEx;
            txtSoHieu.Properties.Mask.EditMask = @"\d+";
            //load điểm đỗ
            lVungDieuHanh.Properties.DataSource    = new VungDieuHanh().GetTenVungDieuHanh();
            lVungDieuHanh.Properties.DisplayMember = "TenVung";
            lVungDieuHanh.Properties.ValueMember   = "Id";

            txtSoHieu.Focus();
            deThoiDiem.DateTime = TimeServer;
        }
Beispiel #3
0
        private void frmGiamSatXe_AnCa_Load(object sender, EventArgs e)
        {
            dulieu = lienlac.GSX_BaoRoiXe_GetXe();//.ToDataTableEnVang("SoHieuXe");
            if (ID > 0)
            {
                DataRow row = dulieu.NewRow();
                row["SoHieuXe"]    = SoHieuXe;
                row["MaLaiXe"]     = MaLaiXe;
                row["DiemDo"]      = DiemDo;
                row["TenNhanVien"] = TenLaiXe;
                dulieu.Rows.InsertAt(row, 0);
            }
            txtSoHieu.Properties.DataSource    = dulieu;
            txtSoHieu.Properties.DisplayMember = "SoHieuXe";
            txtSoHieu.Properties.ValueMember   = "MaLaiXe";

            txtSoHieu.Focus();

            if (ID == 0)
            {
                dt = Taxi.Business.CommonBL.GetTimeServer();
                lblThoiGianBao.Text = dt.ToString("HH:mm:ss dd/MM/yyyy");
                try
                {
                    spin_SoPhutNghi.Text = new ConfigurationStatusModel().GetValue(7).ToString();
                }
                catch (Exception ex)
                {
                    spin_SoPhutNghi.Text = "15";
                }
            }
            else
            {
                txtSoHieu.Text        = SoHieuXe;
                txtGhiChu.Text        = GhiChu;
                lblViTri.Text         = ViTriDiemBao;
                spin_SoPhutNghi.Value = SoPhutNghi;
                lblThoiGianBao.Text   = ThoiDiemBao.ToString("HH:mm:ss dd/MM/yyyy");
            }
            txtSoHieu.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.RegEx;
            txtSoHieu.Properties.Mask.EditMask = @"\d+";
        }
        /// <summary>
        /// Lấy dữ liệu
        /// </summary>
        /// <Modified>
        /// Name     Date         Comments
        /// HauNV  04/09/2015   created
        /// </Modified>
        private void LoadData()
        {
            dulieu = lienlac.GSX_BaoRoiXe_GetXe();//.ToDataTableEnVang("SoHieuXe");

            txtSoHieu.Properties.DataSource    = dulieu;
            txtSoHieu.Properties.DisplayMember = "SoHieuXe";
            txtSoHieu.Properties.ValueMember   = "MaLaiXe";
            txtSoHieu.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.RegEx;
            txtSoHieu.Properties.Mask.EditMask = @"\d+";
            txtSoHieu.Focus();
            dt = Taxi.Business.CommonBL.GetTimeServer();
            lblThoiGianBao.Text = dt.ToString("HH:mm:ss dd/MM/yyyy");
            try
            {
                spin_SoPhutNghi.Text = new ConfigurationStatusModel().GetValue(8).ToString();
            }
            catch (Exception ex)
            {
                spin_SoPhutNghi.Text = "15";
            }
        }