This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
from datetime import datetime | |
from fastapi import FastAPI, File, UploadFile, APIRouter, Security, Depends | |
from fastapi.responses import JSONResponse | |
from sqlalchemy.ext.asyncio import AsyncSession | |
from app.models.user import User | |
from app.api.deps import get_current_active_user, get_session | |
from app.core.constants import Roles | |
from app.models.user import User |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ВЫБРАТЬ | |
РеализацияТоваровУслугТовары.Ссылка.Номер КАК Номер, | |
РеализацияТоваровУслугТовары.Ссылка.Дата КАК Дата, | |
РеализацияТоваровУслугТовары.Номенклатура.Код КАК НоменклатураКод, | |
РеализацияТоваровУслугТовары.КоличествоУпаковок КАК КоличествоУпаковок, | |
РеализацияТоваровУслугТовары.Количество КАК Количество, | |
РеализацияТоваровУслугТовары.Цена КАК Цена, | |
РеализацияТоваровУслугТовары.Сумма КАК Сумма, | |
РеализацияТоваровУслугТовары.СтавкаНДС КАК СтавкаНДС, | |
РеализацияТоваровУслугТовары.СуммаСНДС КАК СуммаСНДС, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
from email.policy import default | |
import uuid | |
import sqlalchemy as sa | |
from sqlalchemy.dialects.postgresql import UUID, JSONB | |
from sqlalchemy.orm import relationship, backref | |
from sqlalchemy.sql import func | |
from sqlalchemy.ext.mutable import MutableDict, MutableList | |
from app.database.base_class import Base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<div class="flex flex-row justify-end mb-4"> | |
<div class="flex-1"></div> | |
<ClinicDropdown | |
@set-clinic="setClinicCalendar" | |
:clinic_id="clinicId" | |
:inputId="clinicId" | |
class="basis-1/5 justify-end" | |
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime, timedelta | |
from typing import Any, Union | |
from jose import jwt | |
from passlib.context import CryptContext | |
from sqlalchemy.orm import Session | |
from app.core.config import settings | |
from app.models.user import User as UserModel | |
from app.database.session import engine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def stock_list_by_store(db: Session, storeId): | |
stocks_list= db.query(Stock).filter(Stock.storeId == storeId).all() | |
return stocks_list | |
@router.get("/{storeId}/stocks", response_model=StocksList, status_code=status.HTTP_200_OK, summary="Получение остатков по аптеке") | |
async def get_stocks( | |
db: Session = Depends(get_db), | |
current_user: User = Depends(get_current_active_user), | |
storeId: UUID4 = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<section> | |
<div class="px-3 py-3 mb-5 mx-auto text-center"> | |
<h1 class="display-5">Поиск лекарств</h1> | |
<p class="lead">узнать цены и остатки лекарств в наших аптеках</p> | |
</div> | |
<div class="mx-auto text-center"> | |
<form id="search" class="mt-5 mb-5"> | |
<div class="row"> | |
<div class="col-lg-8 offset-lg-2"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dbfread import DBF | |
import csv | |
import os | |
import ftplib | |
def dbfcsv(): | |
try: |