当前位置:网站首页>多项目开发入门-业务场景关联基础入门测试 工资表
多项目开发入门-业务场景关联基础入门测试 工资表
2022-06-29 11:39:00 【济南医疗小程序状元】
1 数据库
--工资表定义
create table Salary(
ID varchar(55) not null,
total_theory_wages decimal(18,2) null, --应发工资
wages_month_average decimal(18,2) null,
Fafang_Time varchar(99) null, -- 这里该是时间类型
PersonName varchar(99) null,
spendID int null,
--primary Key(ID),
primary key(ID), --主键
foreign key(spendID) references spend(ID),
);
go
--foreign key(CreateID) references BannerTestOne(ID), --外键设置..
--
select * from Salary;
--2 支出表 spend
create table spend(
ID int not null, -- must set 不能为空
zhiChuName varchar(99) null,
liXi varchar(900),
fangZu int null,
primary key(ID),
);
go
select * from spend;2 C#主函数测试
#region 工资类测试 入业务场景0.1
// 类的实例化 对象
Salary obj = new Salary();
// 自定义方法 调用测试
SalaryDemo obj1 = new SalaryDemo();
// 调用接口方法之前赋值
obj1.TotalTheoryWages = 35000;
// 调用接口方法
obj1.add();
#endregion工资实体类的定义
using System;
using System.Collections.Generic;
#nullable disable
namespace 泛型类.Models2
{
public partial class Salary
{
public string Id { get; set; }
public decimal TotalTheoryWages { get; set; }
public decimal WagesMonthAverage { get; set; }
public string FafangTime { get; set; }
public string PersonName { get; set; }
public int? SpendId { get; set; }
public virtual Spend Spend { get; set; }
}
方法接口定义 提示添加参数
//public string AddLH(string TotalTheoryWages)
//{
// Console.WriteLine("" + TotalTheoryWages);
//}
// 添加方法调试
//public void AddL()
//{
// int TotalTheoryWages = 0;
// Console.WriteLine("1月应发工资为:{0}元", TotalTheoryWages);
//}
}
// 自定义命名空间
namespace lhDemo
{
public class SalaryDemo
{
public string Id { get; set; }
public decimal TotalTheoryWages { get; set; }
public decimal WagesMonthAverage { get; set; }
public string FafangTime { get; set; }
public string PersonName { get; set; }
// 添加方法调试
public void add()
{
Console.WriteLine("1月应发工资为:{0}元",TotalTheoryWages);
}
}
}效果

边栏推荐
- GBase8s数据库select有ORDER BY 子句3
- 一种可解释的几何深度学习模型,用于基于结构的蛋白质结合位点预测
- Jerry's initiation of ear pairing, reconnection, and opening of discoverable and connectable cycle functions [chapter]
- Set operator of gbase8s database in combined query
- ERP编制物料清单 华夏
- GBase8s数据库select有ORDER BY 子句4
- Jerry's about TWS pairing mode configuration [chapter]
- oracle 19c : change the user sys/system username pasword under Linux
- 架构实战营第五模块课后作业
- ERP Kingdee for preparing BOM
猜你喜欢

对p值的理解

MATLAB Gui 实现点击按钮,打开文件对话框,导入图片功能

Do you think people who learn machinery are terrible?

Ttchat x Zadig open source co creates helm access scenarios, and environmental governance can be done!
![Jerry's about TWS pairing mode configuration [chapter]](/img/c8/d78e817295169753244299545d9aba.png)
Jerry's about TWS pairing mode configuration [chapter]

bison使用error死循环的记录

& 4 express framework

Unified exception reporting practice based on bytecode

速看|期待已久的2022年广州助理检测工程师真题解析终于出炉
![[pbootcms template] composition website / document download website source code](/img/6e/51bbb4ce961defa4abd098ff3af21f.jpg)
[pbootcms template] composition website / document download website source code
随机推荐
MySQL 主从复制原理以及流程
GBase8s数据库select有HAVING 子句
Take another picture of cloud redis' improvement path
【综合案例】信用卡虚拟交易识别
GBase8s数据库select有ORDER BY 子句2
Jerry's configuration of TWS cross pairing [chapter]
Titanium dynamic technology: our Zadig landing Road
Gbase8s database select has order by Clause 6
一种可解释的几何深度学习模型,用于基于结构的蛋白质结合位点预测
535. TinyURL 的加密与解密 : 设计一个 URL 简化系统
Helping the ultimate experience, best practice of volcano engine edge computing
How to view saved passwords of websites
Gbase8s database select has order by Clause 3
Matlab GUI realizes the function of clicking the button, opening the file dialog box and importing pictures
GBase8s数据库select有ORDER BY 子句
&3 在浏览器中查看请求报文和响应报文
SOFARegistry 源码|数据同步模块解析
How do I open an account now? Is there a faster and safer opening channel
bison使用error死循环的记录
RSLO:自监督激光雷达里程计(实时+高精度,ICRA2022)