- Expand Label Tasks dialog
- Set Summary Function to Record Number, and Summary Running to Group
Technical & Personal Blog
1: Imports System
2: Imports System.ComponentModel
3: Imports System.Collections.Generic
4: Imports System.Diagnostics
5: Imports System.Text
6:
7: Imports DevExpress.ExpressApp
8: Imports DevExpress.ExpressApp.Actions
9: Imports DevExpress.Persistent.Base
10:
11: Public Class ListViewActionsController Inherits
12: DevExpress.ExpressApp.SystemModule.ListViewProcessCurrentObjectController
13:
14: Public Shared usrname As String
15: Public Sub New()
16: MyBase.New()
17:
18: 'This call is required by the Component Designer.
19: InitializeComponent()
20: RegisterActions(components)
21:
22: End Sub
23:
24: Protected Overrides Sub ProcessCurrentObject(ByVal e As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs)
25: If (e.CurrentObject.GetType.Name = "PhoneHolder" And View.Id = "CustomHolderListView") Then
26: BillingSystem.Module.sharedMod.currentClickedUsername = CType(e.CurrentObject, PhoneHolder).UserName
27: End If
28:
29: MyBase.ProcessCurrentObject(e)
30: End Sub
31:
32: End Class
1: Imports System
2: Imports System.ComponentModel
3: Imports System.Collections.Generic
4: Imports System.Diagnostics
5: Imports System.Text
6:
7: Imports DevExpress.ExpressApp
8: Imports DevExpress.ExpressApp.Actions
9: Imports DevExpress.Persistent.Base
10:
11: Imports DevExpress.ExpressApp.Web.SystemModule
12: Public Class DefaultDetailViewActions
13: Inherits WebDetailViewController
14:
15: Public Sub New()
16: MyBase.New()
17:
18: 'This call is required by the Component Designer.
19: InitializeComponent()
20: RegisterActions(components)
21:
22: End Sub
23:
24: Protected Overrides Sub SaveAndClose(ByVal args As DevExpress.ExpressApp.Actions.SimpleActionExecuteEventArgs)
25: If args.CurrentObject.GetType.Name = "Calendar" Then
26: autoCalendarEntriesAddition(args)
27:
28: End If
29: MyBase.SaveAndClose(args)
30: End Sub
1: Imports System
2: Imports System.Collections.Generic
3: Imports DevExpress.ExpressApp.Web.Editors
4: Imports System.Web.UI.WebControls
5: Imports DevExpress.ExpressApp.Utils
6: Imports DevExpress.ExpressApp
7: Imports DevExpress.ExpressApp.Model
8: Imports DevExpress.Web.ASPxEditors
9:
10: Imports System.ComponentModel
11:
12: Imports DevExpress.Xpo
13: Imports DevExpress.Data.Filtering
14:
15: Imports DevExpress.Persistent.Base
16: Imports DevExpress.Persistent.BaseImpl
17: Imports DevExpress.Persistent.Validation
18:
19: Imports DevExpress.ExpressApp.Editors
20:
21: <PropertyEditor(GetType(RadioButton), "CustomComboEditor", False)> _
22: Public Class CheckboxEnumPropertyEditor
23: Inherits WebPropertyEditor
24:
25: Private enumDescriptor As EnumDescriptor
26: Private controlsHash As New Dictionary(Of ASPxRadioButton, Object)()
27:
28: Public Sub New(ByVal objectType As Type, ByVal info As IModelMemberViewItem)
29: MyBase.New(objectType, info)
30: Me.enumDescriptor = New EnumDescriptor(MemberInfo.MemberType)
31:
32: End Sub
33:
34: Protected Overrides Function CreateEditModeControlCore() As WebControl
35: Dim placeHolder As New Panel()
36: controlsHash.Clear()
37: For Each enumValue As Object In enumDescriptor.Values
38: Dim radioButton As New ASPxRadioButton()
39: radioButton.ID = "radioButton_" + enumValue.ToString()
40: controlsHash.Add(radioButton, enumValue)
41: radioButton.Text = enumDescriptor.GetCaption(enumValue)
42: 'radioButton.CheckedChanged += New EventHandler(radioButton_CheckedChanged)
43: AddHandler radioButton.CheckedChanged, AddressOf radioButton_CheckedChanged
44: radioButton.GroupName = PropertyName
45: placeHolder.Controls.Add(radioButton)
46:
1: ' Represents the Building class which refers to the building's owner.
2: Public Class Building : Inherits XPObject
3: Dim _owner As Person = Nothing
4: Public Property Owner() As Person
5: Get
6: Return _owner
7: End Get
8: Set(ByVal Value As Person)
9: If _owner Is Value Then
10: Return
11: End If
12:
13: ' Store a reference to the former owner.
14: Dim prevOwner As Person = _owner
15: _owner = Value
16:
17: If IsLoading Then Return
18:
19: ' Remove an owner's reference to this building, if exists.
20: If Not (prevOwner Is Nothing) AndAlso prevOwner.House Is Me Then
21: prevOwner.House = Nothing
22: End If
23:
24: ' Specify that the building is a new owner's house.
25: If Not (_owner Is Nothing) Then
26: _owner.House = Me
27: End If
28:
29: OnChanged("Owner")
30:
31: End Set
32: End Property
33: End Class
34: