예제 #1
0
        private void btnCar_Click(object sender, EventArgs e)
        {
            DataTable dt    = new DataTable();
            DataTable dtQua = new DataTable();
            string    _Code = ((Button)sender).Tag.ToString();

            switch (_Code)
            {
            case "1":
                dt    = Select_Train_Real_Time();
                dtQua = Select_LT_VC_Total_Trip();
                break;

            case "2":
                dt    = Select_VC_LT_Ora_Grid_Realtime();
                dtQua = Select_VC_LT_Ora_Grid_Total();
                break;

            case "3":
                dt    = SELECT_TMS_VJ3_TRIP_TIME();
                dtQua = Select_qty_Trip();
                break;

            case "4":
                break;
            }

            if (dt.Rows.Count > 0 && dt != null)
            {
                FRM_POPUP_CAR_INFO_2 f_car_info = new FRM_POPUP_CAR_INFO_2();
                f_car_info.BindingData(_Code, ComVar.Var._strValue1, dt, dtQua);
                f_car_info.ShowDialog();
            }
        }
        private void btnCar_Click(object sender, EventArgs e)
        {
            DataTable dt    = new DataTable();
            DataTable dtQua = new DataTable();

            dt    = SELECT_TMS_VJ3_TRIP_TIME();
            dtQua = Select_qty_Trip();
            if (dt.Rows.Count > 0 && dt != null)
            {
                FRM_POPUP_CAR_INFO_2 f_car_info = new FRM_POPUP_CAR_INFO_2();
                f_car_info.BindingData("3", ComVar.Var._strValue1, dt, dtQua);
                f_car_info.ShowDialog();
            }
        }