function ReplaceItem()
 {
     if (parent::replace("managmnt_extra_bylaw_items", $this) === false) {
         return false;
     }
     $daObj = new DataAudit();
     $daObj->ActionType = DataAudit::Action_replace;
     $daObj->MainObjectID = $this->bylaw_id;
     $daObj->SubObjectID = $this->post_id;
     $daObj->TableName = "managmnt_extra_bylaw_items";
     $daObj->execute();
     return true;
 }
예제 #2
0
	function replaceWritItem() {
		$return = $this->OnBeforeUpdate();

		if (!$return) {
			parent::PushException("ویرایش با شکست مواجه شد .");
			return false;
		}
		if(empty($this->remember_date))
			$this->remember_date = '0000-00-00' ; 
		
		parent::replace("HRM_writ_salary_items", $this);
					
		
		$obj = new DataAudit();
		$obj->MainObjectID = $this->writ_id . '-' . $this->writ_ver;
		$obj->SubObjectID = $this->salary_item_type_id;
		$obj->TableName = "HRM_writ_salary_items";
		$obj->ActionType = DataAudit::Action_replace;		
		$obj->execute();
	}