コード例 #1
0
ファイル: C_Incoming.php プロジェクト: khaydarov/zabota
 protected function OnInput()
 {
     parent::OnInput();
     $this->med_id = $_GET['id'];
     $this->medicine_name = getMedicineNameById($this->med_id);
     $this->incomings = Incomings($this->med_id);
 }
コード例 #2
0
ファイル: C_Expense.php プロジェクト: khaydarov/zabota
 protected function OnInput()
 {
     parent::OnInput();
     $this->med_id = $_GET['id'];
     $this->medicine_name = getMedicineNameById($this->med_id);
     $this->expences = Expences($this->med_id);
     $this->patients = getAllpatients();
 }
コード例 #3
0
ファイル: C_Filter.php プロジェクト: khaydarov/zabota
 protected function OnInput()
 {
     parent::OnInput();
     $this->med_id = $_GET['id_med'];
     $this->medicine = getMedicineNameById($this->med_id);
     $this->month = $_GET['month'];
     $this->year = $_GET['year'];
     $this->incomings = getIncomingsFromDate($this->med_id, $this->month, $this->year);
     $this->expences = getExpencesFromDate($this->med_id, $this->month, $this->year);
 }
コード例 #4
0
ファイル: report.php プロジェクト: khaydarov/zabota
			$sum = 0;
			$sum_count = 0;
			for($i = 0; $i < count($expences); $i++) 
			{
				$k = $i + 1;
				$sum += $expences[$i]->price * $expences[$i]->count;
				$sum_count += $expences[$i]->count;
				$patient = getPatientInfoById($expences[$i]->patient_id);		
		?>
			<tr align="center">
				<td><?php 
echo $k;
?>
</td>
				<td><?php 
echo getMedicineNameById($expences[$i]->med_id);
?>
</td>
				<td><?php 
echo $expences[$i]->count;
?>
</td>
				<td><?php 
echo $expences[$i]->price;
?>
</td>
				<td><?php 
echo $expences[$i]->data;
?>
</td>
				<td><?php