Beispiel #1
0
 public function actionSaveedit()
 {
     $data = $_POST;
     $data['quoprices'] = $data['totalprices'];
     $data['shipprices'] = 0;
     if ($data['type'] == 1) {
         //报价单
         if ($data['quoid'] && $data['schid']) {
             //修改
             QuotationService::editscheme($data);
         } else {
             //新建
             QuotationService::newscheme($data);
         }
     } else {
         //询价单
         if ($data['schid']) {
             //修改
             InquiryService::editscheme($data);
         } else {
             //新建
             InquiryService::newscheme($data);
         }
     }
 }