/// <summary>
        /// 修改
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            try
            {
                if (NullHandleMethod())
                {
                    if (intCarTypeID > 0)
                    {
                        OthCarAttribute("", cbxCarAttribute.Text.Trim());
                        ssy = 0;
                        Expression <Func <CarType, bool> > funCartype = n => n.CarType_ID == intCarTypeID;
                        Action <CarType> action = n =>
                        {
                            n.CarType_UserId            = CommonalityEntity.GetInt(CommonalityEntity.USERID);
                            n.CarType_Name              = txt_CarTypeNmae.Text.Trim();
                            n.CarType_Content           = txt_CarTypeContent.Text.Trim();
                            n.CarType_State             = cob_CarTypeState.Text.Trim();
                            n.CarType_Property          = cbxCarAttribute.Text.Trim();
                            n.CarType_Remark            = txt_CarTypeRemarks.Text.Trim();
                            n.CarType_Validity          = cob_CarTypeEffective.Text.Trim();
                            n.CarType_ValidityTemporary = cob_CarTypeTemporary.Text.Trim();
                            n.CarType_OtherProperty     = butname.Trim();
                            if (!string.IsNullOrEmpty(txt_CarTemporaryValue.Text.Trim()))
                            {
                                n.CarType_ValidityValue = CommonalityEntity.GetInt(txt_CarTemporaryValue.Text.Trim());
                            }
                            if (!string.IsNullOrEmpty(txtInOutTime.Text.Trim()))
                            {
                                n.CarType_InOutTime = CommonalityEntity.GetInt(txtInOutTime.Text.Trim());
                            }
                            n.CarType_Value    = txt_CarTypeValue.Text.Trim();
                            n.CarType_DriSName = cmbDriSta.Text;
                            n.CarType_BusType  = txtBusType.Text.Trim();
                        };
                        if ((CarTypeDAL.Update(funCartype, action)))
                        {
                            //查出通行策略ID、通道ID

                            updateDri(cmbDriSta.Text);
                            btn_Empty_Click(btn_Empty, null);                                                                        //调用清空按钮事件
                            CommonalityEntity.WriteLogData("修改", "车辆类型:" + txt_CarTypeNmae.Text.Trim(), CommonalityEntity.USERNAME); //添加操作日志
                            btn_Empty.Text = "清 空";
                            MessageBox.Show(this, "修改成功");
                        }
                    }
                }
            }
            catch
            {
                CommonalityEntity.WriteTextLog("CarTypeForm.btnUpdate_Click()");
                MessageBox.Show(this, "修改失败");
            }
            finally
            {
                btn_Save.Enabled  = true;
                btnUpdate.Enabled = false;
                BingMethod();
            }
        }