protected void btnCheckOut_Click(object sender, EventArgs e)
        {
            ChkAdminLevel("users", DTEnums.ActionEnum.Delete.ToString()); //检查权限
            BLL.car_use_recordbll bll = new BLL.car_use_recordbll();
            bool bupdate = true;

            for (int i = 0; i < rptList.Items.Count; i++)
            {
                int      id = Convert.ToInt32(((HiddenField)rptList.Items[i].FindControl("hidId")).Value);
                CheckBox cb = (CheckBox)rptList.Items[i].FindControl("chkId");
                if (cb.Checked)
                {
                    DTcms.Model.car_use_recordinfo record = bll.GetModel(id);
                    if (record.Status <= 3)
                    {
                        string strupdate = "Status=3,Checker_Code='" + admin_info.user_name + "',Check_Time='" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:sss") + "'";
                        bll.UpdateField(id, strupdate);
                    }
                    else
                    {
                        bupdate = false;
                    }
                }
            }
            if (bupdate)
            {
                JscriptMsg("批量审核成功啦!", Utils.CombUrlTxt("car_use_record_list.aspx", "group_id={0}&keywords={1}",
                                                        this.group_id.ToString(), this.keywords), "Success");
            }
            else
            {
                JscriptMsg("这些数据不能批量审核!", Utils.CombUrlTxt("car_use_record_list.aspx", "group_id={0}&keywords={1}",
                                                           this.group_id.ToString(), this.keywords), "Success");
            }
        }
        private void AfterStatus()
        {
            string strid     = StringTrim(Request.Form["id"]);
            int    id        = Convert.ToInt32(strid);
            string strstatus = StringTrim(Request.Form["status"]);

            ChkAdminLevel("users", DTEnums.ActionEnum.Delete.ToString()); //检查权限
            BLL.car_use_recordbll          bll    = new BLL.car_use_recordbll();
            DTcms.Model.car_use_recordinfo record = bll.GetModel(id);
            int iresult = 0;

            if (record.Status < 2)
            {
                string strupdate = "Status=2,Checker_Code='" + admin_info.user_name + "',Check_Time='" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:sss") + "'";
                iresult = bll.UpdateField(id, strupdate);
            }
            else if (record.Status == 2)
            {
                string strupdate = "Status=4,Update_Time='" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:sss") + "'";
                iresult = bll.UpdateField(id, strupdate);
                BLL.carbll cbll = new BLL.carbll();
                cbll.UpdateField(record.Car.Car_Number, "Status=1");
            }
            //else if (record.Status == 4)
            //{
            //    string strupdate = "Status=5,Update_Time='" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:sss") + "'";
            //    iresult = bll.UpdateField(id, strupdate);
            //    BLL.carbll cbll = new BLL.carbll();
            //    cbll.UpdateField(record.Car.Car_Number, "Status=0");
            //}
            if (iresult > 0)
            {
                //JscriptMsg("车辆状态修改成功!", Utils.CombUrlTxt("car_use_record_list.aspx", "group_id={0}&keywords={1}",
                //    this.group_id.ToString(), this.keywords), "Success");
            }
            ResultView view = new ResultView();

            view.putData("result", iresult);
            outResult(view);
        }