StrataFrame Forum
Back
Login
Login
Home
»
Updates and Information
»
StrataFrame Users Contributed Samples
»
Date Range Selector user control
Date Range Selector user control
Post Reply
Like
2
Date Range Selector user control
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Edhy Rijo
E
Edhy Rijo
posted 13 Years Ago
ANSWER
Topic Details
Share Topic
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Hi All,
I am very exited with recent announcement of the StrataFrame Team for the
2012 Roadmap
so with that in mind I would like to share with the community my first ever workable
user control, it is a VB.
This DateRangeSelector user controls allows you to select a pre-defined date periods like Today, This Week-To-Date, This Year, Last Year and many more as well as a Custom Date that will allow the end user to select Start and End dates.
Useful features:
Selected date will used StrataFrame functionality to store that selection in the Registry if the Form's RegistryRepositoryKey is filled.
Public properties to pre-select a date range or each Start and End date values. Look at the "+Progytech: Actions" group in the property sheet.
A SelectedValueChanged event is triggered whenever the date range period has changed. Use this event to fill your BOs or requery your listviews.
The StrataFrame custom error provider is used to validate that the date range is good before passing the values to any method.
Internally we are expecting the based class used as MicroFour.StrataFrame.UI.Windows.Forms.
StandardForm
but feel free to use your own base class.
For learning purpose, I tried to keep this sample project as simple as possible, but in the bizOrders.vb business object I am using a Custom Field Property to show the Customer Name and this field is filled from the FillByDateRange() method in this BO which uses a SQL Query with a JOIN condition to grab the Customer Name as cfp_CustomerName and take advantage of StrataFrame Custom Field Properties functinality.
I hope this sample can be useful to the community and please, feel free to exchange your comments, suggestions and any enhancements to make this User Control better.
Enjoy!!!
Edhy Rijo
Attachments
DateRangeSelector.zip
(
238 views,
141.00 KB
)
Edited
13 Years Ago by
Edhy Rijo
Reply
Like
2
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Date Range Selector user control
Edhy Rijo
-
13 Years Ago
Well done Edhy! ;) Here is the Enum I populate mine with, there are...
Ivan George Borges
-
13 Years Ago
Very slick and useful. Thanks Edhy!
Russell Scott Brown
-
13 Years Ago
Thanks Ivan, Russell, Ivan, about your Enum, there are some like...
Edhy Rijo
-
13 Years Ago
Life to Date would be everything from the past till today. Life to...
Ivan George Borges
-
13 Years Ago
Post Reply
Like
2
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search