public static void CreateOrUpdate(DepartmentInfo dep)
        {
            if (dep.Id < 0)
            {
                if (SimpleOrmOperator.Create(dep))
                {
                    LogInfoOperator.LogSystem("添加车管所部门", "添加车管所部门" +dep.DepFullName);
                    WebTools.Alert("添加成功!");
                }
                else
                {
                    WebTools.Alert("添加失败!");

                }
            }
            else
            {
                if (SimpleOrmOperator.Update(dep))
                {
                    LogInfoOperator.LogSystem("修改车管所部门", "修改车管所部门" + dep.DepFullName);
                    WebTools.Alert("修改成功!");
                }
                else
                {
                    WebTools.Alert("修改失败!");

                }

            }
        }
 protected void btnSure_Click(object sender, EventArgs e)
 {
     // string tt = this.txtDepNickName.Text;
        // string tttt2 = this.txtDepFullName.Text.Trim();
     DepartmentInfo dep = new DepartmentInfo();
     WebFormHelper.GetDataFromForm(this, dep);
     DepartmentInfoOperator.CreateOrUpdate(dep);
 }