unitpay.sql

来自「十分好的一个医院管理系统」· SQL 代码 · 共 29 行

SQL
29
字号
create table unitpay(
unitcode char(6) not null,			//单位编号
feedate smalldatetime not null,	//费用缴纳月份/年度
unitpaydate smalldatetime not null,	//交费日期
paytype tinyint not null,			//缴纳类型:1-按月缴纳;2-按季度缴纳
paymode tinyint not null,			//交费方式:1-现金;2-支票;3-转帐
receipt char(10) null,				//收据号
bankreceipt char(10) null,			//银行托收号
latedate smallint not null,		//滞纳天数
latefee numeric(8,2) not null,				//滞纳金额
otherfee numeric(8,2) not null,			//其它费用
wage numeric(10,2) not null,				//工资总额:从unitpaylist累加,用于做报表统计
personpay numeric(8,2) not null,		//个人缴费总额:从unitpaylist累加,用于做报表统计
unitpay numeric(8,2) not null,		//单位缴费总额:从unitpaylist累加,用于做报表统计
otherpay numeric(8,2) not null,		//其它缴费总额:从unitpaylist累加,用于做报表统计
persondis numeric(8,2) not null,		//个人划入总额:从unitpaylist累加,用于做报表统计
unitdis numeric(8,2) not null,		//单位划入总额:从unitpaylist累加,用于做报表统计
otherdis numeric(8,2) not null,		//其它划入总额:从unitpaylist累加,用于做报表统计
accrual numeric(8,2) not null,		//利息计入累加值
lastleave numeric(10,2) not null,		//清单累计字段
lastcheck numeric(10,2) not null,		//
thisadd numeric(10,2) not null,
thisleave numeric(10,2) not null,
sumclinic numeric(10,2) not null,
suminhos numeric(10,2) not null,
sumsick numeric(10,2) not null,
operator char(10) null,				//操作员名字
stateflag tinyint not null,		//状态标志。1-已支付;0-未支付
constraint p_upay primary key nonclustered (unitcode,feedate) on 'default');

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?