/// <summary>
 /// 申请在线试用
 /// </summary>
 private void ApplyTry()
 {
     try
     {
         //var txtName = Request.Form["txtName"] + "";
         //var txtPhone = Request.Form["txtPhone"] + "";
         //var txtEMail = Request.Form["txtEMail"] + "";
         //var txtSchool = Request.Form["txtSchool"] + "";
         //var txtDept = Request.Form["txtDept"] + "";
         //var txtJob = Request.Form["txtJob"] + "";
         var txtName   = Request["txtName"] + "";
         var txtPhone  = Request["txtPhone"] + "";
         var txtEMail  = Request["txtEMail"] + "";
         var txtSchool = DefendXss(Request["txtSchool"] + "");
         var txtDept   = Request["txtDept"] + "";
         var txtJob    = Request["txtJob"] + "";
         var proList   = Request["proList"] + "";
         if (string.IsNullOrEmpty(txtName) || string.IsNullOrEmpty(txtPhone) || string.IsNullOrEmpty(txtEMail))
         {
             Response.Write("请输入必填项");
             Response.End();
         }
         else if (txtName.Length > 40)
         {
             Response.Write("姓名长度最多40位");
             Response.End();
         }
         else
         {
             if (string.IsNullOrEmpty(proList) || string.IsNullOrEmpty(proList.Remove(proList.Length - 1, 1)))
             {
                 Response.Write("请选择您的需求");
                 Response.End();
             }
             else
             {
                 Sy_MH_TryProduct model = new Sy_MH_TryProduct()
                 {
                     M_Name       = txtName,
                     M_Phone      = txtPhone,
                     M_EMail      = txtEMail,
                     M_School     = txtSchool,
                     M_Dept       = txtDept,
                     M_Job        = txtJob,
                     M_Status     = (int)EnumCommon.MessageStatus.留言,
                     M_IP         = ClientHelper.ClientIP,
                     M_ApplyTime  = DateTime.Now,
                     M_ProductIDs = proList.Remove(proList.Length - 1, 1)
                 };
                 var result = proBll.AddTryProduct(model);
                 Response.Write(result ? "1" : EnumCommon.ErrorCategory.SaveFail.ToString());
             }
         }
     }
     catch (Exception ex)
     {
         Response.Write(EnumCommon.ErrorCategory.Exception.ToString());
         LogHelper.LogError(MethodBase.GetCurrentMethod().ReflectedType.FullName, MethodBase.GetCurrentMethod().Name, ex);
     }
 }
 private void ApplicationConfirm(int id)
 {
     try
     {
         Sy_MH_TryProduct product = proBll.GetFirst(id);
         product.M_Status       = 1;
         product.M_ProccessTime = DateTime.Now;
         proBll.UpdateProduct(product);
     }
     catch (Exception ex)
     {
         Response.Write(EnumCommon.ErrorCategory.Exception.ToString());
         LogHelper.LogError(MethodBase.GetCurrentMethod().ReflectedType.FullName, MethodBase.GetCurrentMethod().Name, ex);
     }
     finally
     {
     }
 }