예제 #1
0
 public function Remove()
 {
     if (!DMS_documents::DeleteAllDocument($this->ContractID, "contract")) {
         ExceptionHandler::PushException("خطا در حذف مدارک");
         return false;
     }
     return parent::Remove();
 }
예제 #2
0
 function Remove($pdo = null)
 {
     $dt = parent::runquery("select * from PLN_Elements where GroupID=?", array($this->GroupID));
     if (count($dt) > 0) {
         return false;
     }
     parent::Remove($pdo);
 }
예제 #3
0
 public function Remove($pdo = null)
 {
     $res = parent::runquery("select count(*) from CNT_ContractItems where TemplateItemID = ? limit 1", array($this->TemplateItemID), $pdo);
     if ($res[0]['count(*)'] > 0) {
         throw new Exception(self::UsedTemplateItem);
         /*parent::PushException("UsedTemplateItem");            return false;*/
     }
     return parent::Remove($pdo);
 }
예제 #4
0
 function Remove($pdo = null)
 {
     if (!parent::delete("DMS_PackageItems", "PackageID=?", array($this->PackageID), $pdo)) {
         return false;
     }
     return parent::Remove($pdo);
 }
예제 #5
0
 function Remove()
 {
     parent::Remove();
 }