商业逻辑 [英] Business Logic
问题描述
大家好,Adance谢谢,我需要尽快使用这个逻辑
在我的表格中我有2部分。 1.月2.Week
单选按钮:(适用于月份)
我有3个单选按钮1) 3个月 (rb_3monts)2) 6
个月(rb_6m onths)3) 1年(rb_1年)。如果我点击第一个单选按钮,它将从Todaydate计算到ToDate(textbox_ToDate)。
复选框:(适用于周)
我有超过3个复选框。 1. 第1周 (ck_Week1)2 .Week2   ;(ck_Week2)3。第3周 (ck_Week3) 它将从今天到日期计算。(例如:3周意味着它将计算从日期到结束的
21天之后的日期会发生什么)以及金额显示。如果我点击ck_Week1金额为100,如果我点击ck_Week2金额为200这些动作在按钮点击事件中执行。
目前还不清楚你究竟要求的是什么,但如果它是如何添加日期,月份或年份的日期,DateTime结构已经在方法中提供了这个:
AddDays
AddMonths
AddYears
http://msdn.microsoft.com/en-us/library/system.datetime.aspx 一>
Hi All,Adance Thanks,i need this logic as soon as possible
In my form i have 2 part. 1. Month 2.Week
Radio button:( for Month)
I have 3 radio buttons 1) 3 months (rb_3monts) 2) 6 months(rb_6months) 3) 1 year(rb_1year). If i click first radio button it will calculate from Todaydate to ToDate(textbox_ToDate).
Check Box:(for Week)
I have more than 3 check box . 1. Week1 (ck_Week1) 2.Week2 (ck_Week2) 3.week3 (ck_Week3) it will calculate from today date to To Date. (ex : 3 week means it will calculate from date to To Date after 21 days what will come like). as well as Amount display.If i click ck_Week1 amount is 100 ,If i click ck_Week2 amount is 200 these action perform in button click event.
It is unclear exactly what you are asking for, but if it is how to add days, months or years to a date, the DateTime structure already provides this in the methods:
AddDays
AddMonths
AddYears
http://msdn.microsoft.com/en-us/library/system.datetime.aspx
这篇关于商业逻辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!