public function view_updateSampleCoefficient()
 {
     if (!isset($_SESSION['userId'])) {
         //检测用户是否登陆
         header('location:index.php?mod=login&act=index');
         exit;
     }
     $sampleCoefficientAct = new SampleCoefficientAct();
     $id = isset($_POST['id']) ? post_check($_POST['id']) : '';
     $sampleTypeId = isset($_POST['sampleTypeId']) ? post_check($_POST['sampleTypeId']) : '';
     $sizeCodeId = isset($_POST['sizeCodeId']) ? post_check($_POST['sizeCodeId']) : '';
     $Ac = isset($_POST['Ac']) ? post_check($_POST['Ac']) : '';
     $Re = isset($_POST['Re']) ? post_check($_POST['Re']) : '';
     $Al = isset($_POST['Al']) ? post_check($_POST['Al']) : '';
     $Rt = isset($_POST['Rt']) ? post_check($_POST['Rt']) : '';
     if (empty($id) || empty($sampleTypeId) || empty($sizeCodeId) || trim($Ac) == '' || trim(Re) == '') {
         //为空时,跳转到列表页面,输出错误信息
         $status = '修改失败,存在必填项为空的字段';
         header("location:index.php?mod=sampleCoefficient&act=getSampleCoefficientList&status={$status}");
         exit;
     }
     $set = "SET Ac='{$Ac}',Re='{$Re}',Al='{$Al}',Rt='{$Rt}' ";
     $where = "WHERE id={$id} ";
     $affectRow = $sampleCoefficientAct->act_updateSampleCoefficient($set, $where);
     $status = '无内容被修改';
     if ($affectRow >= 1) {
         $flag = DetectStandardModel::updateSampleStandard();
         if ($flag) {
             $status = '修改成功,检测标准已自动更新';
         }
     }
     header("location:index.php?mod=sampleCoefficient&act=getSampleCoefficientList&status={$status}");
 }