当前位置:网站首页>Introduction to multi project development - business scenario Association basic introduction test payroll
Introduction to multi project development - business scenario Association basic introduction test payroll
2022-06-29 12:24:00 【No. 1 in Jinan medical applet】
1 database
-- Payroll definition
create table Salary(
ID varchar(55) not null,
total_theory_wages decimal(18,2) null, -- Wages due
wages_month_average decimal(18,2) null,
Fafang_Time varchar(99) null, -- Here is the time type
PersonName varchar(99) null,
spendID int null,
--primary Key(ID),
primary key(ID), -- Primary key
foreign key(spendID) references spend(ID),
);
go
--foreign key(CreateID) references BannerTestOne(ID), -- Foreign key settings ..
--
select * from Salary;
--2 The expenditure table spend
create table spend(
ID int not null, -- must set Can't be empty
zhiChuName varchar(99) null,
liXi varchar(900),
fangZu int null,
primary key(ID),
);
go
select * from spend;2 C# Main function test
#region Salary test Enter the business scenario 0.1
// Class instantiation object
Salary obj = new Salary();
// Custom method Call tests
SalaryDemo obj1 = new SalaryDemo();
// Assign values before calling interface methods
obj1.TotalTheoryWages = 35000;
// Call interface method
obj1.add();
#endregionDefinition of salary entity class
using System;
using System.Collections.Generic;
#nullable disable
namespace Generic classes .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; }
}
Method interface definition Prompt to add parameters
//public string AddLH(string TotalTheoryWages)
//{
// Console.WriteLine("" + TotalTheoryWages);
//}
// Add method debugging
//public void AddL()
//{
// int TotalTheoryWages = 0;
// Console.WriteLine("1 The monthly salary payable is :{0} element ", TotalTheoryWages);
//}
}
// Custom namespace
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; }
// Add method debugging
public void add()
{
Console.WriteLine("1 The monthly salary payable is :{0} element ",TotalTheoryWages);
}
}
}effect

边栏推荐
- 易快报:我们用 Zadig 实现万次构建部署,聪明运维,释放开发生产力
- GBase8s数据库INTO EXTERNAL 子句
- Li Kou daily question - day 31 -1779 Find the nearest point with the same X or Y coordinate
- Helping the ultimate experience, best practice of volcano engine edge computing
- 力扣每日一题-第31天-1779.找到最近的有相同x或y坐标的点
- 面试突击61:说一下MySQL事务隔离级别?
- 535. TinyURL 的加密与解密 : 设计一个 URL 简化系统
- Do you think people who learn machinery are terrible?
- 年轻就要醒着拼,年轻就要勇于尝试
- ERP编制物料清单 金蝶
猜你喜欢

bison使用error死循环的记录

《高难度谈话》突破谈话瓶颈,实现完美沟通

Pro test! Centos7 deploy PHP + spool

Embedded database development programming (IV) -- DDL, DML

文件包含之日志中毒(User-Agent)

&3 在浏览器中查看请求报文和响应报文

oracle 19c : change the user sys/system username pasword under Linux

智能指标驱动的管理和决策平台 Kyligence Zen 全新上线,限量内测中

TTChat x Zadig 开源共创 Helm 接入场景,环境治理搞得定!
![Jerry's initiation of ear pairing, reconnection, and opening of discoverable and connectable cycle functions [chapter]](/img/d7/f73e748ada302440326a8b1a46f916.png)
Jerry's initiation of ear pairing, reconnection, and opening of discoverable and connectable cycle functions [chapter]
随机推荐
Gbase8s database select has order by Clause 6
bison使用error死循环的记录
torch. Load load model error: can't get attribute 'VAE_ vc‘ on <module ‘__ main__‘ From 'xxxx() run file path‘
GBase8s数据库INTO TEMP 子句创建临时表来保存查询结果。
AutoCAD - text display mode and how CAD can directly open Tianzheng drawings
百度云盘不限速下载大文件(2021-11亲测有效)
助力极致体验,火山引擎边缘计算最佳实践
【LeetCode】14、最长公共前缀
Gbase8s database select has order by Clause 1
Go高级工程师必修课 | 真心建议你来听听,别错过~
SOFARegistry 源码|数据同步模块解析
Cmake error
& 4 express framework
Jerry's initiation of ear pairing, reconnection, and opening of discoverable and connectable cycle functions [chapter]
& 3 view request message and response message in browser
现在怎么开户?有没有更快又安全的开通渠道
Sofaregistry source code | data synchronization module analysis
ERP Kingdee for preparing BOM
Students' programming stories
什么是外链和内链?