private bool DoEdit(int _id)
        {
            bool result = true;

            BLL.car_driverbll    bll   = new BLL.car_driverbll();
            Model.car_driverinfo model = bll.GetModel(_id);

            model.Driver_Code         = txtDriver_Code.Text;
            model.Driver_Name         = txtDriver_Name.Text;
            model.Sex                 = rblSex.SelectedValue;
            model.Birthday            = txtBirthday.Text;
            model.Identity_Num        = txtIdentity_Num.Text;
            model.CollarDate          = txtCollarDate.Text;
            model.Address             = txtAddress.Text;
            model.Driving_License_Num = txtDriving_License_Num.Text;
            model.License_Type        = ddlLicense_Type.SelectedValue;
            model.Telehone            = txtTelehone.Text;
            model.Dept_Code           = ddlDept_Code.SelectedValue;

            if (!bll.Update(model))
            {
                result = false;
            }
            return(result);
        }
        private void ShowInfo(int _id)
        {
            BLL.car_driverbll    bll   = new BLL.car_driverbll();
            Model.car_driverinfo model = bll.GetModel(_id);

            txtDriver_Code.Text           = model.Driver_Code;
            txtDriver_Code.ReadOnly       = true;
            txtDriver_Name.Text           = model.Driver_Name;
            rblSex.SelectedValue          = model.Sex;
            txtBirthday.Text              = model.Birthday.Replace("0:00:00", "").Trim();
            txtIdentity_Num.Text          = model.Identity_Num;
            txtCollarDate.Text            = model.CollarDate.Replace("0:00:00", "").Trim();
            txtAddress.Text               = model.Address;
            txtDriving_License_Num.Text   = model.Driving_License_Num;
            ddlLicense_Type.SelectedValue = model.License_Type;
            txtTelehone.Text              = model.Telehone;
            ddlDept_Code.SelectedValue    = model.Dept_Code;
        }