//车型选择
 private void txtcVehicleModels_ChooserClick(object sender, EventArgs e)
 {
     frmVehicleModels frmModels = new frmVehicleModels();
     if (frmModels.ShowDialog() == DialogResult.OK)
     {
         txtcVehicleModels.Text = frmModels.VMName;
     }
 }
Esempio n. 2
0
        /// <summary>
        /// 车型选择器事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void txtCarType_ChooserClick(object sender, EventArgs e)
        {
            frmVehicleModels frmModels = new frmVehicleModels();
            DialogResult     result    = frmModels.ShowDialog();

            if (result == DialogResult.OK)
            {
                txtCarType.Text = GetDicName(frmModels.VMID);
            }
        }
Esempio n. 3
0
        /// <summary> 选择配件车型
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void txtparts_cartype2_ChooserClick(object sender, EventArgs e)
        {
            frmVehicleModels chooseCarModel = new frmVehicleModels();

            chooseCarModel.ShowDialog();
            if (!string.IsNullOrEmpty(chooseCarModel.VMID))
            {
                txtparts_cartype2.Text = chooseCarModel.VMName;
            }
        }
Esempio n. 4
0
        /// <summary>
        /// 车型选择器事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void txtCarType_ChooserClick(object sender, EventArgs e)
        {
            frmVehicleModels frmModels = new frmVehicleModels();
            DialogResult     result    = frmModels.ShowDialog();

            if (result == DialogResult.OK)
            {
                DataTable dtModels = DBHelper.GetTable("", "tb_vehicle_models", "vm_id,vm_name", "enable_flag='1' and vm_id='" + frmModels.VMID + "'", "", "order by vm_name");
                DataRow   dr       = dtModels.Rows[0];
                txtCarType.Text = CommonCtrl.IsNullToString(dr["vm_name"]);
                txtCarType.Tag  = frmModels.VMID;
            }
        }
Esempio n. 5
0
 /// <summary>
 /// 选择配件车型
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void txtparts_cartype_ChooserClick(object sender, EventArgs e)
 {
     try
     {
         frmVehicleModels chooseCarModel = new frmVehicleModels();
         chooseCarModel.ShowDialog();
         if (!string.IsNullOrEmpty(chooseCarModel.VMID))
         {
             txtparts_cartype.Text = chooseCarModel.VMName;
         }
     }
     catch (Exception ex)
     {
         MessageBoxEx.Show(ex.Message, "异常提示", MessageBoxButtons.OK, MessageBoxIcon.Question);
     }
 }
 /// <summary>
 /// 车型选择器事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void txtCarType_ChooserClick(object sender, EventArgs e)
 {
     try
     {
         frmVehicleModels frmModels = new frmVehicleModels();
         DialogResult     result    = frmModels.ShowDialog();
         if (result == DialogResult.OK)
         {
             DataTable dtModels = DBHelper.GetTable("", "tb_vehicle_models", "vm_id,vm_name", "enable_flag='1' and vm_id='" + frmModels.VMID + "'", "", "order by vm_name");
             DataRow   dr       = dtModels.Rows[0];
             txtCarType.Text = CommonCtrl.IsNullToString(dr["vm_name"]);
             txtCarType.Tag  = frmModels.VMID;
         }
     }
     catch (Exception ex)
     {
         HXCPcClient.GlobalStaticObj.GlobalLogService.WriteLog(ex);
     }
 }