C Sharp中的DateTime操作 [英] DateTime operations in c sharp

查看:173
本文介绍了C Sharp中的DateTime操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为某些银行进行资产管理系统.因此,在资产功能中,它们是称为折旧的内部子功能.折旧是指逐年减去实际购买成本.通常,在资产寿命的第三年结束后,我们将某项资产的账面价值指定为0. :)

我想知道的第一件事是,在插入资产"部分中,他们是日期时间设定者来设置购买日期".我想要的是从购买成本起3年后自动设置处置日期Date Time Piker ...所以我想要一些小的日期时间操作来处理它...? :-\

2.我的第二个问题是我想逐年折旧每个资产的账面价值.因此,这意味着我要检查它们是否为满足折旧期限条件的任何资产,并从该特定资产中减去金额,并在页面加载状态下尽快更新资产帐面价值明细...
I.我在哪里使用此代码...?

二.我该如何编写此代码...?

三,想要SQL触发器,过程或函数...吗?

请尽快回答此问题
你不是我的老板!

***我们使用直线折旧.

谢谢...:cool:

1.没有txtspk!
2.省略只是更多...
3.一个笑脸就足够了.每个人都了解你的心情.
4.一个?足够...最多两个.
5.仅对和对您您付款的人这样做是紧急的!

I am doing asset management system for certain bank. So in asset function their is a internal sub function called Depreciation. Depreciation means subtract the actual purchase cost after year by year.Normally we assigned book value of certain asset as 0 after ending third year of asset lifetime. :)

1. The first thing i want to know is, in Inserting Asset part their is date time piker to set Purchase Date. What i want is auto set the dispose date Date Time Piker after 3 years from purchase cost... so that thing i want some small date time operation to handle it...? :-\

2. My second question is i want to depreciate the book value of each Asset year after year. so that means i want to check whether their are any asset that fulfilled the depreciation period condition and subtract the amount from that certain asset and update asset book value details as soon as possible in page loading state...
I. Where am i use this code...?

II. How am i write this code...?

III. Wheter it wants SQL Triggers, Procedure or Function...?

Please Answer this soon as possible
You are not my boss!

*** We use Straight line depreciation.

Thank you... :cool:

1. No txtspk!
2. Elipsis is only ... not more.
3. One smiley is enough. Everybody understands your mood.
4. One ? is enough... At most two.
5. It is urgent only for you and for the people you pay to do it! Not for us!

推荐答案

我只能为您解决第一个问题.

如果您转到 DateTime.Methods [
I can only help you with the first of your problems.

If you go to the DateTime.Methods[^] page on MSDN you should see (fairly near the top) a method that may help.


这篇关于C Sharp中的DateTime操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆