Ejemplo n.º 1
0
        private void btn_SearchUser_Click(object sender, EventArgs e)
        {
            DAL.DAL_VehicleInfo vehicledal = new DAL.DAL_VehicleInfo();

            DataTable _dt = vehicledal.selectVehicleInfoWithGroupAndKey(this.txb_SearchVehicleKey.Text, "全部");

            this.SelectVehicleGrid.DataSource = _dt;
        }
Ejemplo n.º 2
0
        private void btn_Search_Vehicle_Click(object sender, EventArgs e)
        {
            DAL.DAL_VehicleInfo vehicleinfo = new DAL.DAL_VehicleInfo();

            DataTable _dt = vehicleinfo.selectVehicleInfoWithGroupAndKey(txb_SearchVehicleKey.Text, this.cmb_VehicleGroup.Text);

            if (_dt != null)
            {
                this.VehicleInfoGrid.DataSource = _dt;
            }
        }