Example #1
0
 /// <summary>
 /// Truyen vao mot doi tuong DieuHanh, tuong duoc mot cuoc goi
 ///
 /// </summary>
 /// <param name="CuocGoi"></param>
 public frmMoiKhachInputDataCuocKetThuc(CuocGoi CuocGoi, LENHCUATONGDAI_MOIKHACH lenhTongDai, bool isThoatDuoc999)
 {
     InitializeComponent();
     mCuocGoi         = CuocGoi;
     mlenhTongDai     = lenhTongDai;
     g_IsThoatDuoc999 = isThoatDuoc999;
 }
 /// <summary>
 /// Truyen vao mot doi tuong DieuHanh, tuong duoc mot cuoc goi
 ///
 /// </summary>
 /// <param name="DieuHanhTaxi"></param>
 public frmMoiKhachInputData_V2(DieuHanhTaxi DieuHanhTaxi, LENHCUATONGDAI_MOIKHACH lenhTongDai, bool isThoatDuoc999)
 {
     InitializeComponent();
     mDieuHanhTaxi    = DieuHanhTaxi;
     mlenhTongDai     = lenhTongDai;
     g_IsThoatDuoc999 = isThoatDuoc999;
 }
Example #3
0
 public frmMoiKhachInputDataCuocKetThuc(CuocGoi CuocGoi, LENHCUATONGDAI_MOIKHACH lenhTongDai, bool isThoatDuoc999, List <string> listSoHieuXe)
 {
     InitializeComponent();
     mCuocGoi         = CuocGoi;
     mlenhTongDai     = lenhTongDai;
     g_IsThoatDuoc999 = isThoatDuoc999;
     g_ListSoHieuXe   = listSoHieuXe;
 }
Example #4
0
        /// <summary>
        /// Truyen vao mot doi tuong DieuHanh, tuong duoc mot cuoc goi
        ///
        /// </summary>
        /// <param name="CuocGoi"></param>
        public frmMoiKhachInputData_V3(CuocGoi CuocGoi, LENHCUATONGDAI_MOIKHACH lenhTongDai, bool isThoatDuoc999, List <string> listSoHieuXe)
        {
            InitializeComponent();
            mCuocGoi         = CuocGoi;
            mlenhTongDai     = lenhTongDai;
            g_IsThoatDuoc999 = isThoatDuoc999;
            g_ListSoHieuXe   = listSoHieuXe;

            txtDiaChiDon.ReadOnly = !ThongTinDangNhap.HasPermission(DanhSachQuyen.CuocGoi_MK_SuaDiaChiDon);
        }
Example #5
0
        /// <summary>
        /// với các đầu vào thì sẽ có nhưng hiển thị khác nhau
        /// LENHMOIKHACH = 0,
        /// LENHGIUKHACH = 1,
        /// LENHKHONGXEXINLOI = 2,
        /// LENHKHIEUNAI = 3,
        /// </summary>
        /// <param name="lenhTongDai"></param>
        private void KhoiTaoDuLieuHienThi(LENHCUATONGDAI_MOIKHACH lenhTongDai)
        {
            if (lenhTongDai == LENHCUATONGDAI_MOIKHACH.LENHMOIKHACH)
            {
                // hiển thị các control cho mời khách
                this.Text             += " - Mời khách";
                chkMKCho.Text          = "&1 Chờ";
                txtMKPhut.Visible      = true;
                lblMKPhut.Visible      = true;
                lblMKGiaiThich.Visible = true;
                chkMKHoan.Visible      = true;
                chkMKTruot.Visible     = true;
                chkMKKhac.Visible      = true;
                txtMKKhac.Visible      = false;

                // Ẩn nhưng control khách
                txtKNai_ThongThiThem.Visible = false;
                lblKNai_ThongTinThem.Visible = false;
            }
            else if (lenhTongDai == LENHCUATONGDAI_MOIKHACH.LENHGIUKHACH)
            {
                this.Text    += " - Giữ khách";
                chkMKCho.Text = "&1 Đã giữ";

                txtMKPhut.Visible      = false;
                lblMKPhut.Visible      = false;
                lblMKGiaiThich.Visible = false;
                chkMKHoan.Visible      = true; chkMKHoan.Checked = false;
                chkMKTruot.Visible     = true; chkMKTruot.Checked = false;
                chkMKKhac.Visible      = true; chkMKKhac.Checked = false;
                txtMKKhac.Visible      = true;

                // Ẩn nhưng control khách
                txtKNai_ThongThiThem.Visible = false;
                lblKNai_ThongTinThem.Visible = false;
            }
            else if (lenhTongDai == LENHCUATONGDAI_MOIKHACH.LENHKHONGXEXINLOI)
            {
                this.Text    += " - Không xe xin lỗi khách";
                chkMKCho.Text = "&1 Đã xin lỗi";

                txtMKPhut.Visible      = false;
                lblMKPhut.Visible      = false;
                lblMKGiaiThich.Visible = false;
                chkMKHoan.Visible      = false;
                chkMKTruot.Visible     = false;
                chkMKKhac.Visible      = false;
                txtMKKhac.Visible      = false;

                // Ẩn nhưng control khách
                txtKNai_ThongThiThem.Visible = false;
                lblKNai_ThongTinThem.Visible = false;
            }

            else if (lenhTongDai == LENHCUATONGDAI_MOIKHACH.LENHKHIEUNAI)
            {
                this.Text    += " - Xử lý khiếu nại";
                chkMKCho.Text = "&1 Đã xử lý";

                txtMKPhut.Visible      = false;
                lblMKPhut.Visible      = false;
                lblMKGiaiThich.Visible = false;
                chkMKHoan.Visible      = false;
                chkMKTruot.Visible     = false;
                chkMKKhac.Visible      = false;
                txtMKKhac.Visible      = false;

                // Ẩn nhưng control khách
                txtKNai_ThongThiThem.Visible = true;
                lblKNai_ThongTinThem.Visible = true;
            }
        }
Example #6
0
 /// <summary>
 /// check validate form tra ve mã lỗi cho từng trường hợp
 /// 1 : chế độ Mời khách
 /// </summary>
 /// <param name="mlenhTongDai"></param>
 /// <returns></returns>
 private bool FormValidate(LENHCUATONGDAI_MOIKHACH LenhTongDai)
 {
     return(chkMKCho.Checked || chkMKHoan.Checked || chkMKTruot.Checked || chkMKKhac.Checked);
 }