using MySqlX.XDevAPI.Relational;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace MasaBlazorApp3.Pojo
{
    public class ReportAccountDateInfo
    {
        //日期
        public string OperationTime { get; set; } = string.Empty;
        //操作类型
        //public string Type { get; set; } = string.Empty;
        //批号
        public string ManuNo { get; set; } = string.Empty;
        //效期
        public string EffDate { get; set; } = string.Empty;
        //上次批次结存
        //public string BeforeManuQuan { get; set; } = string.Empty;
        //入库数量
        public int InQuantity { get; set; } = 0;
        // 出库数量
        public int OutQuantity { get; set; } = 0;
        //批号结存
        public int ManuQuantity { get; set; } = 0;

        //总结存
        public int StockQuantity { get; set; } = 0;

        //收/发药人
        public string operatorName { get; set; } = string.Empty;

        //复核人
        public string ReviewerName { get; set; } = string.Empty;
        public string DrugId { get; set; } = string.Empty;
        //药品名称
        public string DrugName { get; set; } = string.Empty;
        //药品规格
        public string DrugSpec { get; set; } = string.Empty;
        //单位
        public string BigUnit { get; set; } = string.Empty;
        //剂型
        public string Dosage { get; set; } = string.Empty;
        //生产厂家
        public string Manufactory { get; set; } = string.Empty;
        //凭证号
        public string InvoiceId { get; set; } = string.Empty;
        //////供应单位
        //public string SupplierDept { get;set; } = string.Empty;
        //////领用部门
        //public string ReceiveDept { get; set; } = string.Empty;
        /// <summary>
        ///供应单位(领用部门)
        /// </summary>
        public string department { get; set; } = string.Empty;
        //备注
        public string Remarks { get; set; } = string.Empty; 
    }

    public class ReportStockDateInfo
    {
        public string DrugId { get; set; }

        public string DrugName { get; set; }

        public string DrugType { get; set; }

        public string DrugSpec { get; set; }


        public string Manufactory { get; set; }


        public string PyCode { get; set; }
        //基数
        public int BaseQuantity { get; set; }

        //批次
        public string ManuNo { get; set; }

        //效期
        public string EffDate { get; set; }
        //库位
        public string location { get; set; }

        //数量
        public int Quantity { get; set; }
    }
    //手术室患者麻醉药品使用登记本
    public class ReportUsageParentDateInfo
    { 
        //药品ID
        public string drugId1 { get; set; }
        //药品名称
        public string drugName1 { get; set; }
        //批次
        public string manuNo1 { get; set; }
        //数量
        public int quantity1 { get; set; }
        //日期
        public DateTime portDate { get; set; }
    }
    //手术室患者麻醉药品使用登记本
    public class ReportUsageDateInfo
    {
        //日期
        public DateTime portdate { get; set; }
        //手术间
        public int ShouShuJian { get; set; }
        //主麻
        public string doctor1 { get; set; }
        //副麻
        public string doctor2 { get; set; }
        //ID号
        public string patientId { get; set; }
        //患者姓名
        public string PName { get; set; }
        public string Diagnose { get; set; }
        //药品ID
        public string DrugId { get; set; }
        //药品名称
        public string DrugName { get; set; }
        //批次
        public string ManuNo { get; set; }
        //使用量
        public string UsageDosage { get; set; }
        //残液量
        public string CanYeLiang { get; set; }
        //残液处置方式
        public string CanYeChuZhi { get; set; }
        //使用人姓名
        public string UseUserName { get; set; }
        //核对人姓名
        public string CheckUserName { get; set; }
        //数量
        public int quantity { get; set; }
    }
    //请领报表信息
    public class ReportApplyInfo
    {
        //手术间
        public int BoxNum { get; set; }
        //请领时间
        public DateTime ApplyDate { get; set; }
        //麻醉医生 一线
        public string UserFirst { get; set; }
        //麻醉医生 二线
        public string UserSecond { get; set; }
        //药品ID
        public string DrugId { get; set; }
        //医生签名
        public string Doctor { get; set; }
        //管理者签名
        public string Manager { get; set; }
    }
}
