using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using GZTW.AyaNova.BLL; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using log4net; namespace AyaNova { /// /// Summary description for ClientInfoForm. /// public class ClientInfoForm : System.Windows.Forms.Form { // Create a logger for use in this class //case 1039 private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); //Test comment for subversion testing private System.Windows.Forms.CheckBox ckIsDirty; private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _ClientInfoForm_Toolbars_Dock_Area_Top; private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _ClientInfoForm_Toolbars_Dock_Area_Bottom; private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _ClientInfoForm_Toolbars_Dock_Area_Left; private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _ClientInfoForm_Toolbars_Dock_Area_Right; private Infragistics.Win.Misc.UltraDropDownButton btnAddress; private GZTW.WinForm.Controls.GZUltraComboEditor cbHeadOffice; private Infragistics.Win.UltraWinEditors.UltraTextEditor edWebAddress; private Infragistics.Win.UltraWinEditors.UltraTextEditor edAccountNumber; private Infragistics.Win.Misc.UltraLabel lblAccountNumber; private Infragistics.Win.UltraWinEditors.UltraTextEditor edName; private Infragistics.Win.Misc.UltraLabel lblName; private System.Windows.Forms.ErrorProvider ErrorProvider; private Infragistics.Win.Misc.UltraDropDownButton btnNotes; private Infragistics.Win.UltraWinEditors.UltraTextEditor edNotes; private GZTW.WinForm.Controls.GZUltraComboEditor cbRegion; private GZTW.WinForm.Controls.GZUltraComboEditor cbClientGroup; private Infragistics.Win.UltraWinEditors.UltraCheckEditor ckBillHeadOffice; private Infragistics.Win.UltraWinEditors.UltraCheckEditor ckActive; private System.Windows.Forms.Panel panelLeft; private System.Windows.Forms.Panel panelRight; private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager tbManager; private GZTW.WinForm.Controls.GZUltraComboEditor cbDispatchZone; private Infragistics.Win.UltraWinEditors.UltraTextEditor edPhysicalAddress; private Infragistics.Win.UltraWinEditors.UltraTextEditor edPostalAddress; private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panelLeft_Toolbars_Dock_Area_Left; private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panelLeft_Toolbars_Dock_Area_Right; private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panelLeft_Toolbars_Dock_Area_Top; private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panelLeft_Toolbars_Dock_Area_Bottom; private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager tbmPopups; private Infragistics.Win.UltraWinEditors.UltraTextEditor edTechNotes; private Infragistics.Win.UltraWinEditors.UltraTextEditor edPopupNotes; private System.Windows.Forms.Panel panelCustom; private Infragistics.Win.UltraWinGrid.UltraGrid gridCustom; private Infragistics.Win.Misc.UltraButton btnHeadOfficeID; private Infragistics.Win.Misc.UltraButton btnDispatchZoneID; private Infragistics.Win.Misc.UltraButton btnClientGroupID; private Infragistics.Win.Misc.UltraButton btnWebAddress; private Infragistics.Win.Misc.UltraLabel lblRegionID; private Infragistics.Win.UltraWinEditors.UltraCheckEditor ckUsesBanking; private GZTW.WinForm.Controls.GZDateTimePicker dtContractExpires; private Infragistics.Win.Misc.UltraLabel lblContractExpires; private GZTW.WinForm.Controls.GZUltraComboEditor cbContractID; private Infragistics.Win.Misc.UltraButton lblContractID; private Infragistics.Win.Misc.UltraButton btnUsesBanking; private System.Windows.Forms.HelpProvider helpProvider1; private GZTW.WinForm.Controls.GZUltraComboEditor cbTemplate; private Infragistics.Win.Misc.UltraLabel lblTemplate; private Infragistics.Win.UltraWinEditors.UltraTextEditor edContactNotes; private Infragistics.Win.UltraWinEditors.UltraTextEditor edPhone1; private Infragistics.Win.Misc.UltraLabel lblPhone1; private Infragistics.Win.UltraWinEditors.UltraTextEditor edContact; private Infragistics.Win.Misc.UltraLabel lblContact; private Infragistics.Win.UltraWinEditors.UltraTextEditor edEmail; private Infragistics.Win.Misc.UltraLabel lblEmail; private Infragistics.Win.UltraWinEditors.UltraTextEditor edPhone5; private Infragistics.Win.Misc.UltraLabel lblPhone5; private Infragistics.Win.UltraWinEditors.UltraTextEditor edPhone4; private Infragistics.Win.Misc.UltraLabel lblPhone4; private Infragistics.Win.UltraWinEditors.UltraTextEditor edPhone3; private Infragistics.Win.Misc.UltraLabel lblPhone3; private Infragistics.Win.UltraWinEditors.UltraTextEditor edPhone2; private Infragistics.Win.Misc.UltraLabel lblPhone2; private Infragistics.Win.UltraWinEditors.UltraCheckEditor ckUseNotification; private System.ComponentModel.IContainer components; public ClientInfoForm() { // // Required for Windows Form Designer support // InitializeComponent(); this.Visible = false; //an experiment to reduce flicker when resizing //didn't work // SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint,true); } /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { if(components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.components = new System.ComponentModel.Container(); Infragistics.Win.Appearance appearance49 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinToolbars.OptionSet optionSet3 = new Infragistics.Win.UltraWinToolbars.OptionSet("OSAddressPop"); Infragistics.Win.UltraWinToolbars.OptionSet optionSet4 = new Infragistics.Win.UltraWinToolbars.OptionSet("OSNotesPop"); Infragistics.Win.UltraWinToolbars.UltraToolbar ultraToolbar3 = new Infragistics.Win.UltraWinToolbars.UltraToolbar("TempSetupTB"); Infragistics.Win.UltraWinToolbars.PopupMenuTool popupMenuTool1 = new Infragistics.Win.UltraWinToolbars.PopupMenuTool("PopupNotesTypes"); Infragistics.Win.UltraWinToolbars.PopupMenuTool popupMenuTool2 = new Infragistics.Win.UltraWinToolbars.PopupMenuTool("PopupAddressTypes"); Infragistics.Win.UltraWinToolbars.PopupMenuTool popupMenuTool3 = new Infragistics.Win.UltraWinToolbars.PopupMenuTool("PopupAddressTypes"); Infragistics.Win.UltraWinToolbars.StateButtonTool stateButtonTool1 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:Address.Label.AddressType.Physical", "OSAddressPop"); Infragistics.Win.UltraWinToolbars.StateButtonTool stateButtonTool2 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:Address.Label.AddressType.Postal", "OSAddressPop"); Infragistics.Win.UltraWinToolbars.StateButtonTool stateButtonTool3 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:Address.Label.AddressType.Postal", "OSAddressPop"); Infragistics.Win.UltraWinToolbars.StateButtonTool stateButtonTool4 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:Address.Label.AddressType.Physical", "OSAddressPop"); Infragistics.Win.UltraWinToolbars.StateButtonTool stateButtonTool5 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:Client.Label.PopUpNotes", "OSNotesPop"); Infragistics.Win.UltraWinToolbars.StateButtonTool stateButtonTool6 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:Client.Label.Notes", "OSNotesPop"); Infragistics.Win.UltraWinToolbars.StateButtonTool stateButtonTool7 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:Client.Label.TechNotes", "OSNotesPop"); Infragistics.Win.UltraWinToolbars.PopupMenuTool popupMenuTool4 = new Infragistics.Win.UltraWinToolbars.PopupMenuTool("PopupNotesTypes"); Infragistics.Win.UltraWinToolbars.StateButtonTool stateButtonTool8 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:Client.Label.Notes", "OSNotesPop"); Infragistics.Win.UltraWinToolbars.StateButtonTool stateButtonTool9 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:Client.Label.TechNotes", "OSNotesPop"); Infragistics.Win.UltraWinToolbars.StateButtonTool stateButtonTool10 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:Client.Label.PopUpNotes", "OSNotesPop"); Infragistics.Win.UltraWinToolbars.StateButtonTool stateButtonTool12 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:Client.Label.ContactNotes", "OSNotesPop"); Infragistics.Win.UltraWinToolbars.StateButtonTool stateButtonTool11 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:Client.Label.ContactNotes", "OSNotesPop"); Infragistics.Win.Appearance appearance50 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance51 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance52 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance60 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance54 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance55 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinToolbars.UltraToolbar ultraToolbar1 = new Infragistics.Win.UltraWinToolbars.UltraToolbar("ClientEntryMenuBar"); Infragistics.Win.UltraWinToolbars.PopupMenuTool popupMenuTool5 = new Infragistics.Win.UltraWinToolbars.PopupMenuTool("LT:UI.Toolbar.Print"); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool1 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.SaveClose"); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool2 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:AssignedDoc.Label.List"); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool19 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:O.WikiPage"); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool3 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.RecordHistory"); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool17 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:ScheduleMarker.Label.FollowUp"); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool4 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:ClientNote.Label.List"); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool5 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.SaveNew"); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool6 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Save"); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool7 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Delete"); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool8 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Close"); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool21 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Duplicate"); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool9 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.SaveClose"); Infragistics.Win.Appearance appearance61 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance62 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool10 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:AssignedDoc.Label.List"); Infragistics.Win.Appearance appearance63 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance64 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool11 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.RecordHistory"); Infragistics.Win.Appearance appearance65 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance66 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool12 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Save"); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool13 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.SaveNew"); Infragistics.Win.Appearance appearance74 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance75 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool14 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Close"); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool15 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:ClientNote.Label.List"); Infragistics.Win.Appearance appearance76 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance77 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool16 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Delete"); Infragistics.Win.Appearance appearance78 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance79 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinToolbars.ListTool listTool1 = new Infragistics.Win.UltraWinToolbars.ListTool("REPORTLIST"); Infragistics.Win.UltraWinToolbars.ListToolItem listToolItem2 = new Infragistics.Win.UltraWinToolbars.ListToolItem(); Infragistics.Win.UltraWinToolbars.PopupMenuTool popupMenuTool6 = new Infragistics.Win.UltraWinToolbars.PopupMenuTool("LT:UI.Toolbar.Print"); Infragistics.Win.Appearance appearance80 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance88 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinToolbars.ListTool listTool2 = new Infragistics.Win.UltraWinToolbars.ListTool("REPORTLIST"); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool18 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:ScheduleMarker.Label.FollowUp"); Infragistics.Win.Appearance appearance89 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance90 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool20 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:O.WikiPage"); Infragistics.Win.Appearance appearance91 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance92 = new Infragistics.Win.Appearance(); Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool22 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Duplicate"); Infragistics.Win.Appearance appearance93 = new Infragistics.Win.Appearance(); Infragistics.Win.Appearance appearance94 = new Infragistics.Win.Appearance(); this.ckIsDirty = new System.Windows.Forms.CheckBox(); this.panelLeft = new System.Windows.Forms.Panel(); this.edEmail = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.lblEmail = new Infragistics.Win.Misc.UltraLabel(); this.edPhone5 = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.lblPhone5 = new Infragistics.Win.Misc.UltraLabel(); this.edPhone4 = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.lblPhone4 = new Infragistics.Win.Misc.UltraLabel(); this.edPhone3 = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.lblPhone3 = new Infragistics.Win.Misc.UltraLabel(); this.edPhone2 = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.lblPhone2 = new Infragistics.Win.Misc.UltraLabel(); this.edPhone1 = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.lblPhone1 = new Infragistics.Win.Misc.UltraLabel(); this.edContact = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.lblContact = new Infragistics.Win.Misc.UltraLabel(); this.edPhysicalAddress = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.edPostalAddress = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.btnAddress = new Infragistics.Win.Misc.UltraDropDownButton(); this.tbmPopups = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components); this.edWebAddress = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.edAccountNumber = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.lblAccountNumber = new Infragistics.Win.Misc.UltraLabel(); this.edName = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.btnWebAddress = new Infragistics.Win.Misc.UltraButton(); this.ckActive = new Infragistics.Win.UltraWinEditors.UltraCheckEditor(); this.btnDispatchZoneID = new Infragistics.Win.Misc.UltraButton(); this.cbDispatchZone = new GZTW.WinForm.Controls.GZUltraComboEditor(); this.cbClientGroup = new GZTW.WinForm.Controls.GZUltraComboEditor(); this.btnClientGroupID = new Infragistics.Win.Misc.UltraButton(); this.cbRegion = new GZTW.WinForm.Controls.GZUltraComboEditor(); this.lblRegionID = new Infragistics.Win.Misc.UltraLabel(); this.lblName = new Infragistics.Win.Misc.UltraLabel(); this._panelLeft_Toolbars_Dock_Area_Left = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea(); this._panelLeft_Toolbars_Dock_Area_Right = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea(); this._panelLeft_Toolbars_Dock_Area_Bottom = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea(); this._panelLeft_Toolbars_Dock_Area_Top = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea(); this.cbHeadOffice = new GZTW.WinForm.Controls.GZUltraComboEditor(); this.btnHeadOfficeID = new Infragistics.Win.Misc.UltraButton(); this.ckBillHeadOffice = new Infragistics.Win.UltraWinEditors.UltraCheckEditor(); this.ErrorProvider = new System.Windows.Forms.ErrorProvider(this.components); this.panelRight = new System.Windows.Forms.Panel(); this.ckUseNotification = new Infragistics.Win.UltraWinEditors.UltraCheckEditor(); this.edContactNotes = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.cbTemplate = new GZTW.WinForm.Controls.GZUltraComboEditor(); this.lblTemplate = new Infragistics.Win.Misc.UltraLabel(); this.btnUsesBanking = new Infragistics.Win.Misc.UltraButton(); this.lblContractID = new Infragistics.Win.Misc.UltraButton(); this.cbContractID = new GZTW.WinForm.Controls.GZUltraComboEditor(); this.dtContractExpires = new GZTW.WinForm.Controls.GZDateTimePicker(); this.lblContractExpires = new Infragistics.Win.Misc.UltraLabel(); this.ckUsesBanking = new Infragistics.Win.UltraWinEditors.UltraCheckEditor(); this.edPopupNotes = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.edTechNotes = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.btnNotes = new Infragistics.Win.Misc.UltraDropDownButton(); this.edNotes = new Infragistics.Win.UltraWinEditors.UltraTextEditor(); this.panelCustom = new System.Windows.Forms.Panel(); this.gridCustom = new Infragistics.Win.UltraWinGrid.UltraGrid(); this.helpProvider1 = new System.Windows.Forms.HelpProvider(); this._ClientInfoForm_Toolbars_Dock_Area_Left = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea(); this.tbManager = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components); this._ClientInfoForm_Toolbars_Dock_Area_Right = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea(); this._ClientInfoForm_Toolbars_Dock_Area_Top = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea(); this._ClientInfoForm_Toolbars_Dock_Area_Bottom = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea(); this.panelLeft.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.edEmail)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.edPhone5)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.edPhone4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.edPhone3)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.edPhone2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.edPhone1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.edContact)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.edPhysicalAddress)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.edPostalAddress)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbmPopups)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.edWebAddress)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.edAccountNumber)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.edName)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ckActive)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbDispatchZone)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbClientGroup)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbRegion)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbHeadOffice)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ckBillHeadOffice)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ErrorProvider)).BeginInit(); this.panelRight.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.ckUseNotification)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.edContactNotes)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbTemplate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.cbContractID)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dtContractExpires)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.ckUsesBanking)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.edPopupNotes)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.edTechNotes)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.edNotes)).BeginInit(); this.panelCustom.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gridCustom)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.tbManager)).BeginInit(); this.SuspendLayout(); // // ckIsDirty // this.ckIsDirty.Location = new System.Drawing.Point(-280, 24); this.ckIsDirty.Name = "ckIsDirty"; this.ckIsDirty.Size = new System.Drawing.Size(205, 24); this.ckIsDirty.TabIndex = 5; // // panelLeft // this.panelLeft.Controls.Add(this.edEmail); this.panelLeft.Controls.Add(this.lblEmail); this.panelLeft.Controls.Add(this.edPhone5); this.panelLeft.Controls.Add(this.lblPhone5); this.panelLeft.Controls.Add(this.edPhone4); this.panelLeft.Controls.Add(this.lblPhone4); this.panelLeft.Controls.Add(this.edPhone3); this.panelLeft.Controls.Add(this.lblPhone3); this.panelLeft.Controls.Add(this.edPhone2); this.panelLeft.Controls.Add(this.lblPhone2); this.panelLeft.Controls.Add(this.edPhone1); this.panelLeft.Controls.Add(this.lblPhone1); this.panelLeft.Controls.Add(this.edContact); this.panelLeft.Controls.Add(this.lblContact); this.panelLeft.Controls.Add(this.edPhysicalAddress); this.panelLeft.Controls.Add(this.edPostalAddress); this.panelLeft.Controls.Add(this.btnAddress); this.panelLeft.Controls.Add(this.edWebAddress); this.panelLeft.Controls.Add(this.edAccountNumber); this.panelLeft.Controls.Add(this.lblAccountNumber); this.panelLeft.Controls.Add(this.edName); this.panelLeft.Controls.Add(this.btnWebAddress); this.panelLeft.Controls.Add(this.ckActive); this.panelLeft.Controls.Add(this.btnDispatchZoneID); this.panelLeft.Controls.Add(this.cbDispatchZone); this.panelLeft.Controls.Add(this.cbClientGroup); this.panelLeft.Controls.Add(this.btnClientGroupID); this.panelLeft.Controls.Add(this.cbRegion); this.panelLeft.Controls.Add(this.lblRegionID); this.panelLeft.Controls.Add(this.lblName); this.panelLeft.Controls.Add(this._panelLeft_Toolbars_Dock_Area_Left); this.panelLeft.Controls.Add(this._panelLeft_Toolbars_Dock_Area_Right); this.panelLeft.Controls.Add(this._panelLeft_Toolbars_Dock_Area_Bottom); this.panelLeft.Controls.Add(this._panelLeft_Toolbars_Dock_Area_Top); this.panelLeft.Dock = System.Windows.Forms.DockStyle.Left; this.panelLeft.Location = new System.Drawing.Point(0, 43); this.panelLeft.Name = "panelLeft"; this.panelLeft.Size = new System.Drawing.Size(250, 568); this.panelLeft.TabIndex = 0; // // edEmail // this.edEmail.Anchor = System.Windows.Forms.AnchorStyles.Top; this.edEmail.Location = new System.Drawing.Point(171, 236); this.edEmail.Name = "edEmail"; this.edEmail.Size = new System.Drawing.Size(74, 21); this.edEmail.TabIndex = 111; // // lblEmail // this.lblEmail.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None; this.lblEmail.Location = new System.Drawing.Point(8, 241); this.lblEmail.Name = "lblEmail"; this.lblEmail.Size = new System.Drawing.Size(137, 16); this.lblEmail.TabIndex = 112; this.lblEmail.Tag = ""; this.lblEmail.Text = "LT:Client.Label.Email"; this.lblEmail.WrapText = false; // // edPhone5 // this.edPhone5.Anchor = System.Windows.Forms.AnchorStyles.Top; this.edPhone5.Location = new System.Drawing.Point(171, 351); this.edPhone5.Name = "edPhone5"; this.edPhone5.Size = new System.Drawing.Size(74, 21); this.edPhone5.TabIndex = 109; // // lblPhone5 // this.lblPhone5.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None; this.lblPhone5.Location = new System.Drawing.Point(8, 356); this.lblPhone5.Name = "lblPhone5"; this.lblPhone5.Size = new System.Drawing.Size(137, 16); this.lblPhone5.TabIndex = 110; this.lblPhone5.Tag = ""; this.lblPhone5.Text = "LT:Client.Label.Phone5"; this.lblPhone5.WrapText = false; // // edPhone4 // this.edPhone4.Anchor = System.Windows.Forms.AnchorStyles.Top; this.edPhone4.Location = new System.Drawing.Point(171, 328); this.edPhone4.Name = "edPhone4"; this.edPhone4.Size = new System.Drawing.Size(74, 21); this.edPhone4.TabIndex = 107; // // lblPhone4 // this.lblPhone4.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None; this.lblPhone4.Location = new System.Drawing.Point(8, 333); this.lblPhone4.Name = "lblPhone4"; this.lblPhone4.Size = new System.Drawing.Size(137, 16); this.lblPhone4.TabIndex = 108; this.lblPhone4.Tag = ""; this.lblPhone4.Text = "LT:Client.Label.Phone4"; this.lblPhone4.WrapText = false; // // edPhone3 // this.edPhone3.Anchor = System.Windows.Forms.AnchorStyles.Top; this.edPhone3.Location = new System.Drawing.Point(171, 305); this.edPhone3.Name = "edPhone3"; this.edPhone3.Size = new System.Drawing.Size(74, 21); this.edPhone3.TabIndex = 105; // // lblPhone3 // this.lblPhone3.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None; this.lblPhone3.Location = new System.Drawing.Point(8, 307); this.lblPhone3.Name = "lblPhone3"; this.lblPhone3.Size = new System.Drawing.Size(137, 19); this.lblPhone3.TabIndex = 106; this.lblPhone3.Tag = ""; this.lblPhone3.Text = "LT:Client.Label.Phone3"; this.lblPhone3.WrapText = false; // // edPhone2 // this.edPhone2.Anchor = System.Windows.Forms.AnchorStyles.Top; this.edPhone2.Location = new System.Drawing.Point(171, 282); this.edPhone2.Name = "edPhone2"; this.edPhone2.Size = new System.Drawing.Size(74, 21); this.edPhone2.TabIndex = 103; // // lblPhone2 // this.lblPhone2.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None; this.lblPhone2.Location = new System.Drawing.Point(8, 287); this.lblPhone2.Name = "lblPhone2"; this.lblPhone2.Size = new System.Drawing.Size(137, 16); this.lblPhone2.TabIndex = 104; this.lblPhone2.Tag = ""; this.lblPhone2.Text = "LT:Client.Label.Phone2"; this.lblPhone2.WrapText = false; // // edPhone1 // this.edPhone1.Anchor = System.Windows.Forms.AnchorStyles.Top; this.edPhone1.Location = new System.Drawing.Point(171, 259); this.edPhone1.Name = "edPhone1"; this.edPhone1.Size = new System.Drawing.Size(74, 21); this.edPhone1.TabIndex = 101; // // lblPhone1 // this.lblPhone1.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None; this.lblPhone1.Location = new System.Drawing.Point(8, 264); this.lblPhone1.Name = "lblPhone1"; this.lblPhone1.Size = new System.Drawing.Size(137, 16); this.lblPhone1.TabIndex = 102; this.lblPhone1.Tag = ""; this.lblPhone1.Text = "LT:Client.Label.Phone1"; this.lblPhone1.WrapText = false; // // edContact // this.edContact.Anchor = System.Windows.Forms.AnchorStyles.Top; this.edContact.Location = new System.Drawing.Point(171, 213); this.edContact.Name = "edContact"; this.edContact.Size = new System.Drawing.Size(74, 21); this.edContact.TabIndex = 99; // // lblContact // this.lblContact.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None; this.lblContact.Location = new System.Drawing.Point(8, 218); this.lblContact.Name = "lblContact"; this.lblContact.Size = new System.Drawing.Size(137, 16); this.lblContact.TabIndex = 100; this.lblContact.Tag = ""; this.lblContact.Text = "LT:Client.Label.Contact"; this.lblContact.WrapText = false; // // edPhysicalAddress // this.edPhysicalAddress.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.edPhysicalAddress.Location = new System.Drawing.Point(8, 420); this.edPhysicalAddress.Multiline = true; this.edPhysicalAddress.Name = "edPhysicalAddress"; this.edPhysicalAddress.ReadOnly = true; this.edPhysicalAddress.Size = new System.Drawing.Size(237, 141); this.edPhysicalAddress.TabIndex = 11; // // edPostalAddress // this.edPostalAddress.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.edPostalAddress.Location = new System.Drawing.Point(0, 420); this.edPostalAddress.Multiline = true; this.edPostalAddress.Name = "edPostalAddress"; this.edPostalAddress.ReadOnly = true; this.edPostalAddress.Size = new System.Drawing.Size(248, 145); this.edPostalAddress.TabIndex = 12; this.edPostalAddress.Visible = false; // // btnAddress // this.btnAddress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); appearance49.TextHAlignAsString = "Left"; this.btnAddress.Appearance = appearance49; this.btnAddress.ButtonStyle = Infragistics.Win.UIElementButtonStyle.Office2007ScrollbarButton; this.btnAddress.Location = new System.Drawing.Point(8, 390); this.btnAddress.Name = "btnAddress"; this.btnAddress.PopupItemKey = "PopupAddressTypes"; this.btnAddress.PopupItemProvider = this.tbmPopups; this.btnAddress.RightAlignPopup = Infragistics.Win.DefaultableBoolean.True; this.btnAddress.Size = new System.Drawing.Size(237, 24); this.btnAddress.TabIndex = 10; this.btnAddress.Tag = ""; this.btnAddress.Text = "LT:Address.Label.AddressType.Physical"; this.btnAddress.WrapText = false; this.btnAddress.Click += new System.EventHandler(this.btnAddress_Click); // // tbmPopups // this.tbmPopups.DesignerFlags = 1; this.tbmPopups.DockWithinContainer = this.panelLeft; this.tbmPopups.OptionSets.Add(optionSet3); this.tbmPopups.OptionSets.Add(optionSet4); this.tbmPopups.ShowFullMenusDelay = 500; ultraToolbar3.DockedColumn = 0; ultraToolbar3.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Floating; ultraToolbar3.DockedRow = 0; ultraToolbar3.FloatingLocation = new System.Drawing.Point(877, 189); ultraToolbar3.FloatingSize = new System.Drawing.Size(122, 42); ultraToolbar3.NonInheritedTools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] { popupMenuTool1, popupMenuTool2}); ultraToolbar3.Text = "TempSetupTB"; ultraToolbar3.Visible = false; this.tbmPopups.Toolbars.AddRange(new Infragistics.Win.UltraWinToolbars.UltraToolbar[] { ultraToolbar3}); popupMenuTool3.SharedPropsInternal.Caption = "PopupAddressTypes"; stateButtonTool1.Checked = true; stateButtonTool1.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark; stateButtonTool2.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark; popupMenuTool3.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] { stateButtonTool1, stateButtonTool2}); stateButtonTool3.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark; stateButtonTool3.OptionSetKey = "OSAddressPop"; stateButtonTool3.SharedPropsInternal.Caption = "LT:Address.Label.AddressType.Physical"; stateButtonTool4.Checked = true; stateButtonTool4.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark; stateButtonTool4.OptionSetKey = "OSAddressPop"; stateButtonTool4.SharedPropsInternal.Caption = "LT:Address.Label.AddressType.Postal"; stateButtonTool5.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark; stateButtonTool5.OptionSetKey = "OSNotesPop"; stateButtonTool5.SharedPropsInternal.Caption = "LT:Client.Label.PopUpNotes"; stateButtonTool6.Checked = true; stateButtonTool6.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark; stateButtonTool6.OptionSetKey = "OSNotesPop"; stateButtonTool6.SharedPropsInternal.Caption = "LT:Client.Label.Notes"; stateButtonTool7.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark; stateButtonTool7.OptionSetKey = "OSNotesPop"; stateButtonTool7.SharedPropsInternal.Caption = "LT:Client.Label.TechNotes"; popupMenuTool4.SharedPropsInternal.Caption = "PopupNotesTypes"; stateButtonTool8.Checked = true; stateButtonTool8.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark; stateButtonTool9.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark; stateButtonTool10.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark; stateButtonTool12.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark; popupMenuTool4.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] { stateButtonTool8, stateButtonTool9, stateButtonTool10, stateButtonTool12}); stateButtonTool11.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark; stateButtonTool11.OptionSetKey = "OSNotesPop"; stateButtonTool11.SharedPropsInternal.Caption = "LT:Client.Label.ContactNotes"; this.tbmPopups.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] { popupMenuTool3, stateButtonTool3, stateButtonTool4, stateButtonTool5, stateButtonTool6, stateButtonTool7, popupMenuTool4, stateButtonTool11}); this.tbmPopups.ToolClick += new Infragistics.Win.UltraWinToolbars.ToolClickEventHandler(this.tbmPopups_ToolClick); // // edWebAddress // this.edWebAddress.Anchor = System.Windows.Forms.AnchorStyles.Top; this.edWebAddress.Location = new System.Drawing.Point(182, 120); this.edWebAddress.Name = "edWebAddress"; this.edWebAddress.Size = new System.Drawing.Size(63, 21); this.edWebAddress.TabIndex = 3; // // edAccountNumber // this.edAccountNumber.Anchor = System.Windows.Forms.AnchorStyles.Top; this.edAccountNumber.Location = new System.Drawing.Point(168, 56); this.edAccountNumber.Name = "edAccountNumber"; this.edAccountNumber.Size = new System.Drawing.Size(77, 21); this.edAccountNumber.TabIndex = 1; // // lblAccountNumber // this.lblAccountNumber.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None; this.lblAccountNumber.Location = new System.Drawing.Point(8, 58); this.lblAccountNumber.Name = "lblAccountNumber"; this.lblAccountNumber.Size = new System.Drawing.Size(136, 16); this.lblAccountNumber.TabIndex = 94; this.lblAccountNumber.Tag = ""; this.lblAccountNumber.Text = "LT:Client.Label.AccountNumber"; this.lblAccountNumber.WrapText = false; // // edName // this.edName.Anchor = System.Windows.Forms.AnchorStyles.Top; this.edName.Location = new System.Drawing.Point(132, 24); this.edName.Name = "edName"; this.edName.Size = new System.Drawing.Size(113, 21); this.edName.TabIndex = 0; this.edName.Tag = ""; this.edName.AfterExitEditMode += new System.EventHandler(this.edName_AfterExitEditMode); // // btnWebAddress // appearance50.TextHAlignAsString = "Left"; this.btnWebAddress.Appearance = appearance50; this.btnWebAddress.Location = new System.Drawing.Point(8, 120); this.btnWebAddress.Name = "btnWebAddress"; this.btnWebAddress.Size = new System.Drawing.Size(132, 21); this.btnWebAddress.TabIndex = 4; this.btnWebAddress.Tag = ""; this.btnWebAddress.Text = "LT:Common.Label.WebAddress"; this.btnWebAddress.UseHotTracking = Infragistics.Win.DefaultableBoolean.True; this.btnWebAddress.WrapText = false; this.btnWebAddress.Click += new System.EventHandler(this.btnWebAddress_Click); // // ckActive // this.ckActive.Checked = true; this.ckActive.CheckState = System.Windows.Forms.CheckState.Checked; this.ckActive.Location = new System.Drawing.Point(8, 8); this.ckActive.Name = "ckActive"; this.ckActive.Size = new System.Drawing.Size(125, 16); this.ckActive.TabIndex = 1; this.ckActive.Tag = ""; this.ckActive.Text = "LT:Common.Label.Active"; // // btnDispatchZoneID // appearance51.TextHAlignAsString = "Left"; this.btnDispatchZoneID.Appearance = appearance51; this.btnDispatchZoneID.Location = new System.Drawing.Point(8, 152); this.btnDispatchZoneID.Name = "btnDispatchZoneID"; this.btnDispatchZoneID.Size = new System.Drawing.Size(132, 21); this.btnDispatchZoneID.TabIndex = 6; this.btnDispatchZoneID.Tag = ""; this.btnDispatchZoneID.Text = "LT:O.DispatchZone"; this.btnDispatchZoneID.UseHotTracking = Infragistics.Win.DefaultableBoolean.True; this.btnDispatchZoneID.WrapText = false; this.btnDispatchZoneID.Click += new System.EventHandler(this.btnDispatchZoneID_Click); // // cbDispatchZone // this.cbDispatchZone.Anchor = System.Windows.Forms.AnchorStyles.Top; this.cbDispatchZone.Location = new System.Drawing.Point(171, 152); this.cbDispatchZone.Name = "cbDispatchZone"; this.cbDispatchZone.Size = new System.Drawing.Size(74, 21); this.cbDispatchZone.TabIndex = 5; this.cbDispatchZone.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbDispatchZone_NeedMoreData); // // cbClientGroup // this.cbClientGroup.Anchor = System.Windows.Forms.AnchorStyles.Top; this.cbClientGroup.Location = new System.Drawing.Point(144, 184); this.cbClientGroup.Name = "cbClientGroup"; this.cbClientGroup.Size = new System.Drawing.Size(101, 21); this.cbClientGroup.TabIndex = 7; this.cbClientGroup.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbClientGroup_NeedMoreData); // // btnClientGroupID // appearance52.TextHAlignAsString = "Left"; this.btnClientGroupID.Appearance = appearance52; this.btnClientGroupID.Location = new System.Drawing.Point(8, 184); this.btnClientGroupID.Name = "btnClientGroupID"; this.btnClientGroupID.Size = new System.Drawing.Size(132, 21); this.btnClientGroupID.TabIndex = 8; this.btnClientGroupID.Tag = ""; this.btnClientGroupID.Text = "LT:O.ClientGroup"; this.btnClientGroupID.UseHotTracking = Infragistics.Win.DefaultableBoolean.True; this.btnClientGroupID.WrapText = false; this.btnClientGroupID.Click += new System.EventHandler(this.btnClientGroupID_Click); // // cbRegion // this.cbRegion.AllowEmptySelection = false; this.cbRegion.Anchor = System.Windows.Forms.AnchorStyles.Top; this.cbRegion.Location = new System.Drawing.Point(160, 88); this.cbRegion.Name = "cbRegion"; this.cbRegion.Size = new System.Drawing.Size(85, 21); this.cbRegion.TabIndex = 2; this.cbRegion.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbRegion_NeedMoreData); // // lblRegionID // this.lblRegionID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lblRegionID.Location = new System.Drawing.Point(8, 88); this.lblRegionID.Name = "lblRegionID"; this.lblRegionID.Size = new System.Drawing.Size(112, 16); this.lblRegionID.TabIndex = 5; this.lblRegionID.Tag = ""; this.lblRegionID.Text = "LT:O.Region"; this.lblRegionID.WrapText = false; // // lblName // this.lblName.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None; this.lblName.Location = new System.Drawing.Point(8, 29); this.lblName.Name = "lblName"; this.lblName.Size = new System.Drawing.Size(128, 16); this.lblName.TabIndex = 92; this.lblName.Tag = ""; this.lblName.Text = "LT:Client.Label.Name"; this.lblName.WrapText = false; // // _panelLeft_Toolbars_Dock_Area_Left // this._panelLeft_Toolbars_Dock_Area_Left.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; this._panelLeft_Toolbars_Dock_Area_Left.BackColor = System.Drawing.SystemColors.Control; this._panelLeft_Toolbars_Dock_Area_Left.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Left; this._panelLeft_Toolbars_Dock_Area_Left.ForeColor = System.Drawing.SystemColors.ControlText; this._panelLeft_Toolbars_Dock_Area_Left.Location = new System.Drawing.Point(0, 0); this._panelLeft_Toolbars_Dock_Area_Left.Name = "_panelLeft_Toolbars_Dock_Area_Left"; this._panelLeft_Toolbars_Dock_Area_Left.Size = new System.Drawing.Size(0, 568); this._panelLeft_Toolbars_Dock_Area_Left.ToolbarsManager = this.tbmPopups; // // _panelLeft_Toolbars_Dock_Area_Right // this._panelLeft_Toolbars_Dock_Area_Right.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; this._panelLeft_Toolbars_Dock_Area_Right.BackColor = System.Drawing.SystemColors.Control; this._panelLeft_Toolbars_Dock_Area_Right.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Right; this._panelLeft_Toolbars_Dock_Area_Right.ForeColor = System.Drawing.SystemColors.ControlText; this._panelLeft_Toolbars_Dock_Area_Right.Location = new System.Drawing.Point(250, 0); this._panelLeft_Toolbars_Dock_Area_Right.Name = "_panelLeft_Toolbars_Dock_Area_Right"; this._panelLeft_Toolbars_Dock_Area_Right.Size = new System.Drawing.Size(0, 568); this._panelLeft_Toolbars_Dock_Area_Right.ToolbarsManager = this.tbmPopups; // // _panelLeft_Toolbars_Dock_Area_Bottom // this._panelLeft_Toolbars_Dock_Area_Bottom.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; this._panelLeft_Toolbars_Dock_Area_Bottom.BackColor = System.Drawing.SystemColors.Control; this._panelLeft_Toolbars_Dock_Area_Bottom.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Bottom; this._panelLeft_Toolbars_Dock_Area_Bottom.ForeColor = System.Drawing.SystemColors.ControlText; this._panelLeft_Toolbars_Dock_Area_Bottom.Location = new System.Drawing.Point(0, 568); this._panelLeft_Toolbars_Dock_Area_Bottom.Name = "_panelLeft_Toolbars_Dock_Area_Bottom"; this._panelLeft_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(250, 0); this._panelLeft_Toolbars_Dock_Area_Bottom.ToolbarsManager = this.tbmPopups; // // _panelLeft_Toolbars_Dock_Area_Top // this._panelLeft_Toolbars_Dock_Area_Top.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; this._panelLeft_Toolbars_Dock_Area_Top.BackColor = System.Drawing.SystemColors.Control; this._panelLeft_Toolbars_Dock_Area_Top.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Top; this._panelLeft_Toolbars_Dock_Area_Top.ForeColor = System.Drawing.SystemColors.ControlText; this._panelLeft_Toolbars_Dock_Area_Top.Location = new System.Drawing.Point(0, 0); this._panelLeft_Toolbars_Dock_Area_Top.Name = "_panelLeft_Toolbars_Dock_Area_Top"; this._panelLeft_Toolbars_Dock_Area_Top.Size = new System.Drawing.Size(250, 0); this._panelLeft_Toolbars_Dock_Area_Top.ToolbarsManager = this.tbmPopups; // // cbHeadOffice // this.cbHeadOffice.Anchor = System.Windows.Forms.AnchorStyles.Top; this.cbHeadOffice.Location = new System.Drawing.Point(181, 63); this.cbHeadOffice.Name = "cbHeadOffice"; this.cbHeadOffice.Size = new System.Drawing.Size(47, 21); this.cbHeadOffice.TabIndex = 1; this.cbHeadOffice.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbHeadOffice_NeedMoreData); // // btnHeadOfficeID // appearance60.TextHAlignAsString = "Left"; this.btnHeadOfficeID.Appearance = appearance60; this.btnHeadOfficeID.Location = new System.Drawing.Point(8, 63); this.btnHeadOfficeID.Name = "btnHeadOfficeID"; this.btnHeadOfficeID.Size = new System.Drawing.Size(140, 21); this.btnHeadOfficeID.TabIndex = 2; this.btnHeadOfficeID.Tag = ""; this.btnHeadOfficeID.Text = "LT:O.HeadOffice"; this.btnHeadOfficeID.UseHotTracking = Infragistics.Win.DefaultableBoolean.True; this.btnHeadOfficeID.WrapText = false; this.btnHeadOfficeID.Click += new System.EventHandler(this.btnHeadOfficeID_Click); // // ckBillHeadOffice // this.ckBillHeadOffice.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.ckBillHeadOffice.Location = new System.Drawing.Point(8, 36); this.ckBillHeadOffice.Name = "ckBillHeadOffice"; this.ckBillHeadOffice.Size = new System.Drawing.Size(220, 21); this.ckBillHeadOffice.TabIndex = 0; this.ckBillHeadOffice.Tag = ""; this.ckBillHeadOffice.Text = "LT:Client.Label.BillHeadOffice"; // // ErrorProvider // this.ErrorProvider.ContainerControl = this; // // panelRight // this.panelRight.Controls.Add(this.ckUseNotification); this.panelRight.Controls.Add(this.edContactNotes); this.panelRight.Controls.Add(this.cbTemplate); this.panelRight.Controls.Add(this.lblTemplate); this.panelRight.Controls.Add(this.btnUsesBanking); this.panelRight.Controls.Add(this.lblContractID); this.panelRight.Controls.Add(this.cbContractID); this.panelRight.Controls.Add(this.dtContractExpires); this.panelRight.Controls.Add(this.lblContractExpires); this.panelRight.Controls.Add(this.ckUsesBanking); this.panelRight.Controls.Add(this.edPopupNotes); this.panelRight.Controls.Add(this.edTechNotes); this.panelRight.Controls.Add(this.btnNotes); this.panelRight.Controls.Add(this.edNotes); this.panelRight.Controls.Add(this.ckBillHeadOffice); this.panelRight.Controls.Add(this.cbHeadOffice); this.panelRight.Controls.Add(this.btnHeadOfficeID); this.panelRight.Dock = System.Windows.Forms.DockStyle.Left; this.panelRight.Location = new System.Drawing.Point(250, 43); this.panelRight.Name = "panelRight"; this.panelRight.Size = new System.Drawing.Size(244, 568); this.panelRight.TabIndex = 101; // // ckUseNotification // this.ckUseNotification.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.ckUseNotification.Location = new System.Drawing.Point(8, 222); this.ckUseNotification.Name = "ckUseNotification"; this.ckUseNotification.Size = new System.Drawing.Size(220, 21); this.ckUseNotification.TabIndex = 169; this.ckUseNotification.Tag = ""; this.ckUseNotification.Text = "LT:Client.Label.Notification"; // // edContactNotes // this.edContactNotes.AcceptsReturn = true; this.edContactNotes.AcceptsTab = true; this.edContactNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.edContactNotes.Location = new System.Drawing.Point(8, 281); this.edContactNotes.Multiline = true; this.edContactNotes.Name = "edContactNotes"; this.edContactNotes.Size = new System.Drawing.Size(220, 232); this.edContactNotes.TabIndex = 168; this.edContactNotes.Visible = false; // // cbTemplate // this.cbTemplate.Anchor = System.Windows.Forms.AnchorStyles.Top; this.cbTemplate.Location = new System.Drawing.Point(148, 8); this.cbTemplate.Name = "cbTemplate"; this.cbTemplate.Size = new System.Drawing.Size(80, 21); this.cbTemplate.TabIndex = 166; // // lblTemplate // this.lblTemplate.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lblTemplate.Location = new System.Drawing.Point(8, 8); this.lblTemplate.Name = "lblTemplate"; this.lblTemplate.Size = new System.Drawing.Size(106, 16); this.lblTemplate.TabIndex = 167; this.lblTemplate.Tag = ""; this.lblTemplate.Text = "LT:O.WorkorderServiceTemplate"; this.lblTemplate.WrapText = false; // // btnUsesBanking // this.btnUsesBanking.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.btnUsesBanking.Location = new System.Drawing.Point(8, 184); this.btnUsesBanking.Name = "btnUsesBanking"; this.btnUsesBanking.Size = new System.Drawing.Size(220, 23); this.btnUsesBanking.TabIndex = 7; this.btnUsesBanking.Tag = ""; this.btnUsesBanking.Text = "LT:Common.Label.UsesBanking"; this.btnUsesBanking.Click += new System.EventHandler(this.btnUsesBanking_Click); // // lblContractID // appearance54.TextHAlignAsString = "Left"; this.lblContractID.Appearance = appearance54; this.lblContractID.Location = new System.Drawing.Point(8, 95); this.lblContractID.Name = "lblContractID"; this.lblContractID.Size = new System.Drawing.Size(140, 21); this.lblContractID.TabIndex = 4; this.lblContractID.Tag = ""; this.lblContractID.Text = "LT:O.Contract"; this.lblContractID.UseHotTracking = Infragistics.Win.DefaultableBoolean.True; this.lblContractID.WrapText = false; this.lblContractID.Click += new System.EventHandler(this.lblContractID_Click); // // cbContractID // this.cbContractID.Anchor = System.Windows.Forms.AnchorStyles.Top; this.cbContractID.Location = new System.Drawing.Point(148, 95); this.cbContractID.Name = "cbContractID"; this.cbContractID.Size = new System.Drawing.Size(80, 21); this.cbContractID.TabIndex = 3; this.cbContractID.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbContractID_NeedMoreData); // // dtContractExpires // this.dtContractExpires.Anchor = System.Windows.Forms.AnchorStyles.Top; this.dtContractExpires.GZEnabled = true; this.dtContractExpires.GZReadOnly = false; this.dtContractExpires.Location = new System.Drawing.Point(172, 127); this.dtContractExpires.Name = "dtContractExpires"; this.dtContractExpires.Size = new System.Drawing.Size(56, 21); this.dtContractExpires.TabIndex = 5; // // lblContractExpires // this.lblContractExpires.Location = new System.Drawing.Point(8, 133); this.lblContractExpires.Name = "lblContractExpires"; this.lblContractExpires.Size = new System.Drawing.Size(72, 16); this.lblContractExpires.TabIndex = 165; this.lblContractExpires.Tag = ""; this.lblContractExpires.Text = "LT:Common.Label.ContractExpires"; this.lblContractExpires.WrapText = false; // // ckUsesBanking // this.ckUsesBanking.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.ckUsesBanking.Location = new System.Drawing.Point(8, 160); this.ckUsesBanking.Name = "ckUsesBanking"; this.ckUsesBanking.Size = new System.Drawing.Size(220, 16); this.ckUsesBanking.TabIndex = 6; this.ckUsesBanking.Tag = ""; this.ckUsesBanking.Text = "LT:Common.Label.UsesBanking"; // // edPopupNotes // this.edPopupNotes.AcceptsReturn = true; this.edPopupNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.edPopupNotes.Location = new System.Drawing.Point(8, 281); this.edPopupNotes.Multiline = true; this.edPopupNotes.Name = "edPopupNotes"; this.edPopupNotes.Size = new System.Drawing.Size(220, 232); this.edPopupNotes.TabIndex = 11; this.edPopupNotes.Visible = false; // // edTechNotes // this.edTechNotes.AcceptsReturn = true; this.edTechNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.edTechNotes.Location = new System.Drawing.Point(8, 281); this.edTechNotes.Multiline = true; this.edTechNotes.Name = "edTechNotes"; this.edTechNotes.Size = new System.Drawing.Size(220, 232); this.edTechNotes.TabIndex = 11; this.edTechNotes.Visible = false; // // btnNotes // this.btnNotes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); appearance55.TextHAlignAsString = "Left"; this.btnNotes.Appearance = appearance55; this.btnNotes.ButtonStyle = Infragistics.Win.UIElementButtonStyle.Office2007ScrollbarButton; this.btnNotes.Location = new System.Drawing.Point(8, 257); this.btnNotes.Name = "btnNotes"; this.btnNotes.PopupItemKey = "PopupNotesTypes"; this.btnNotes.PopupItemProvider = this.tbmPopups; this.btnNotes.RightAlignPopup = Infragistics.Win.DefaultableBoolean.True; this.btnNotes.Size = new System.Drawing.Size(220, 24); this.btnNotes.Style = Infragistics.Win.Misc.SplitButtonDisplayStyle.DropDownButtonOnly; this.btnNotes.TabIndex = 10; this.btnNotes.Tag = ""; this.btnNotes.Text = "LT:Client.Label.Notes"; this.btnNotes.WrapText = false; // // edNotes // this.edNotes.AcceptsReturn = true; this.edNotes.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.edNotes.Location = new System.Drawing.Point(8, 281); this.edNotes.Multiline = true; this.edNotes.Name = "edNotes"; this.edNotes.Size = new System.Drawing.Size(220, 232); this.edNotes.TabIndex = 12; // // panelCustom // this.panelCustom.Controls.Add(this.gridCustom); this.panelCustom.Dock = System.Windows.Forms.DockStyle.Right; this.panelCustom.Location = new System.Drawing.Point(644, 43); this.panelCustom.Name = "panelCustom"; this.panelCustom.Size = new System.Drawing.Size(224, 568); this.panelCustom.TabIndex = 108; // // gridCustom // this.gridCustom.Cursor = System.Windows.Forms.Cursors.Default; this.gridCustom.Dock = System.Windows.Forms.DockStyle.Fill; this.gridCustom.Location = new System.Drawing.Point(0, 0); this.gridCustom.Name = "gridCustom"; this.gridCustom.Size = new System.Drawing.Size(224, 568); this.gridCustom.TabIndex = 0; this.gridCustom.Tag = ""; this.gridCustom.Text = "LT:ObjectCustomField.Label.CustomGrid"; this.gridCustom.AfterCellUpdate += new Infragistics.Win.UltraWinGrid.CellEventHandler(this.gridCustom_AfterCellUpdate); // // _ClientInfoForm_Toolbars_Dock_Area_Left // this._ClientInfoForm_Toolbars_Dock_Area_Left.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; this._ClientInfoForm_Toolbars_Dock_Area_Left.BackColor = System.Drawing.SystemColors.Control; this._ClientInfoForm_Toolbars_Dock_Area_Left.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Left; this._ClientInfoForm_Toolbars_Dock_Area_Left.ForeColor = System.Drawing.SystemColors.ControlText; this._ClientInfoForm_Toolbars_Dock_Area_Left.Location = new System.Drawing.Point(0, 43); this._ClientInfoForm_Toolbars_Dock_Area_Left.Name = "_ClientInfoForm_Toolbars_Dock_Area_Left"; this._ClientInfoForm_Toolbars_Dock_Area_Left.Size = new System.Drawing.Size(0, 568); this._ClientInfoForm_Toolbars_Dock_Area_Left.ToolbarsManager = this.tbManager; // // tbManager // this.tbManager.DesignerFlags = 1; this.tbManager.DockWithinContainer = this; this.tbManager.DockWithinContainerBaseType = typeof(System.Windows.Forms.Form); this.tbManager.MenuSettings.IsSideStripVisible = Infragistics.Win.DefaultableBoolean.False; this.tbManager.ShowFullMenusDelay = 500; ultraToolbar1.DockedColumn = 0; ultraToolbar1.DockedRow = 0; ultraToolbar1.NonInheritedTools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] { popupMenuTool5, buttonTool1, buttonTool2, buttonTool19, buttonTool3, buttonTool17, buttonTool4, buttonTool5, buttonTool6, buttonTool7, buttonTool8, buttonTool21}); ultraToolbar1.Text = "ClientEntryMenuBar"; this.tbManager.Toolbars.AddRange(new Infragistics.Win.UltraWinToolbars.UltraToolbar[] { ultraToolbar1}); this.tbManager.ToolbarSettings.AllowCustomize = Infragistics.Win.DefaultableBoolean.False; this.tbManager.ToolbarSettings.AllowFloating = Infragistics.Win.DefaultableBoolean.False; this.tbManager.ToolbarSettings.AllowHiding = Infragistics.Win.DefaultableBoolean.False; buttonTool9.SharedPropsInternal.AccessibleDescription = "recorddd"; appearance61.Image = global::AyaNova.Resource1.SaveExit32; buttonTool9.SharedPropsInternal.AppearancesLarge.Appearance = appearance61; appearance62.Image = global::AyaNova.Resource1.SaveExit16; buttonTool9.SharedPropsInternal.AppearancesSmall.Appearance = appearance62; buttonTool9.SharedPropsInternal.Caption = "LT:UI.Command.SaveClose"; appearance63.Image = global::AyaNova.Resource1.Documents32; buttonTool10.SharedPropsInternal.AppearancesLarge.Appearance = appearance63; appearance64.Image = global::AyaNova.Resource1.Documents16; buttonTool10.SharedPropsInternal.AppearancesSmall.Appearance = appearance64; buttonTool10.SharedPropsInternal.Caption = "LT:AssignedDoc.Label.List"; appearance65.Image = global::AyaNova.Resource1.RecordHistory32; buttonTool11.SharedPropsInternal.AppearancesLarge.Appearance = appearance65; appearance66.Image = global::AyaNova.Resource1.RecordHistory16; buttonTool11.SharedPropsInternal.AppearancesSmall.Appearance = appearance66; buttonTool11.SharedPropsInternal.Caption = "LT:UI.Command.RecordHistory"; buttonTool12.SharedPropsInternal.Caption = "LT:UI.Command.Save"; buttonTool12.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.TextOnlyAlways; appearance74.Image = global::AyaNova.Resource1.SaveNew32; buttonTool13.SharedPropsInternal.AppearancesLarge.Appearance = appearance74; appearance75.Image = global::AyaNova.Resource1.SaveNew16; buttonTool13.SharedPropsInternal.AppearancesSmall.Appearance = appearance75; buttonTool13.SharedPropsInternal.Caption = "LT:UI.Command.SaveNew"; buttonTool14.SharedPropsInternal.Caption = "LT:UI.Command.Close"; buttonTool14.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.TextOnlyAlways; appearance76.Image = global::AyaNova.Resource1.ClientNotes32; buttonTool15.SharedPropsInternal.AppearancesLarge.Appearance = appearance76; appearance77.Image = global::AyaNova.Resource1.ClientNotes16; buttonTool15.SharedPropsInternal.AppearancesSmall.Appearance = appearance77; buttonTool15.SharedPropsInternal.Caption = "LT:ClientNote.Label.List"; appearance78.Image = global::AyaNova.Resource1.Delete32; buttonTool16.SharedPropsInternal.AppearancesLarge.Appearance = appearance78; appearance79.Image = global::AyaNova.Resource1.Delete16; buttonTool16.SharedPropsInternal.AppearancesSmall.Appearance = appearance79; buttonTool16.SharedPropsInternal.Caption = "LT:UI.Command.Delete"; listTool1.DisplayCheckmark = false; listToolItem2.Text = "asdfasdfsd"; listTool1.ListToolItemsInternal.Add(listToolItem2); popupMenuTool6.Settings.IsSideStripVisible = Infragistics.Win.DefaultableBoolean.False; appearance80.Image = global::AyaNova.Resource1.Print32; popupMenuTool6.SharedPropsInternal.AppearancesLarge.Appearance = appearance80; appearance88.Image = global::AyaNova.Resource1.Print16; popupMenuTool6.SharedPropsInternal.AppearancesSmall.Appearance = appearance88; popupMenuTool6.SharedPropsInternal.Caption = "LT:UI.Toolbar.Print"; popupMenuTool6.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageOnlyOnToolbars; popupMenuTool6.SharedPropsInternal.Shortcut = System.Windows.Forms.Shortcut.CtrlP; popupMenuTool6.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] { listTool2}); appearance89.Image = global::AyaNova.Resource1.FollowUp32; buttonTool18.SharedPropsInternal.AppearancesLarge.Appearance = appearance89; appearance90.Image = global::AyaNova.Resource1.FollowUp16; buttonTool18.SharedPropsInternal.AppearancesSmall.Appearance = appearance90; buttonTool18.SharedPropsInternal.Caption = "LT:ScheduleMarker.Label.FollowUp"; buttonTool18.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageOnlyOnToolbars; appearance91.Image = global::AyaNova.Resource1.Wiki32; buttonTool20.SharedPropsInternal.AppearancesLarge.Appearance = appearance91; appearance92.Image = global::AyaNova.Resource1.Wiki16; buttonTool20.SharedPropsInternal.AppearancesSmall.Appearance = appearance92; buttonTool20.SharedPropsInternal.Caption = "LT:O.WikiPage"; appearance93.Image = global::AyaNova.Resource1.Duplicate32; buttonTool22.SharedPropsInternal.AppearancesLarge.Appearance = appearance93; appearance94.Image = global::AyaNova.Resource1.Duplicate16; buttonTool22.SharedPropsInternal.AppearancesSmall.Appearance = appearance94; buttonTool22.SharedPropsInternal.Caption = "LT:UI.Command.Duplicate"; this.tbManager.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] { buttonTool9, buttonTool10, buttonTool11, buttonTool12, buttonTool13, buttonTool14, buttonTool15, buttonTool16, listTool1, popupMenuTool6, buttonTool18, buttonTool20, buttonTool22}); this.tbManager.UseLargeImagesOnToolbar = true; this.tbManager.ToolClick += new Infragistics.Win.UltraWinToolbars.ToolClickEventHandler(this.tbManager_ToolClick); // // _ClientInfoForm_Toolbars_Dock_Area_Right // this._ClientInfoForm_Toolbars_Dock_Area_Right.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; this._ClientInfoForm_Toolbars_Dock_Area_Right.BackColor = System.Drawing.SystemColors.Control; this._ClientInfoForm_Toolbars_Dock_Area_Right.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Right; this._ClientInfoForm_Toolbars_Dock_Area_Right.ForeColor = System.Drawing.SystemColors.ControlText; this._ClientInfoForm_Toolbars_Dock_Area_Right.Location = new System.Drawing.Point(868, 43); this._ClientInfoForm_Toolbars_Dock_Area_Right.Name = "_ClientInfoForm_Toolbars_Dock_Area_Right"; this._ClientInfoForm_Toolbars_Dock_Area_Right.Size = new System.Drawing.Size(0, 568); this._ClientInfoForm_Toolbars_Dock_Area_Right.ToolbarsManager = this.tbManager; // // _ClientInfoForm_Toolbars_Dock_Area_Top // this._ClientInfoForm_Toolbars_Dock_Area_Top.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; this._ClientInfoForm_Toolbars_Dock_Area_Top.BackColor = System.Drawing.SystemColors.Control; this._ClientInfoForm_Toolbars_Dock_Area_Top.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Top; this._ClientInfoForm_Toolbars_Dock_Area_Top.ForeColor = System.Drawing.SystemColors.ControlText; this._ClientInfoForm_Toolbars_Dock_Area_Top.Location = new System.Drawing.Point(0, 0); this._ClientInfoForm_Toolbars_Dock_Area_Top.Name = "_ClientInfoForm_Toolbars_Dock_Area_Top"; this._ClientInfoForm_Toolbars_Dock_Area_Top.Size = new System.Drawing.Size(868, 43); this._ClientInfoForm_Toolbars_Dock_Area_Top.ToolbarsManager = this.tbManager; // // _ClientInfoForm_Toolbars_Dock_Area_Bottom // this._ClientInfoForm_Toolbars_Dock_Area_Bottom.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping; this._ClientInfoForm_Toolbars_Dock_Area_Bottom.BackColor = System.Drawing.SystemColors.Control; this._ClientInfoForm_Toolbars_Dock_Area_Bottom.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Bottom; this._ClientInfoForm_Toolbars_Dock_Area_Bottom.ForeColor = System.Drawing.SystemColors.ControlText; this._ClientInfoForm_Toolbars_Dock_Area_Bottom.Location = new System.Drawing.Point(0, 611); this._ClientInfoForm_Toolbars_Dock_Area_Bottom.Name = "_ClientInfoForm_Toolbars_Dock_Area_Bottom"; this._ClientInfoForm_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(868, 0); this._ClientInfoForm_Toolbars_Dock_Area_Bottom.ToolbarsManager = this.tbManager; // // ClientInfoForm // this.AllowDrop = true; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(868, 611); this.Controls.Add(this.panelCustom); this.Controls.Add(this.panelRight); this.Controls.Add(this.panelLeft); this.Controls.Add(this.ckIsDirty); this.Controls.Add(this._ClientInfoForm_Toolbars_Dock_Area_Left); this.Controls.Add(this._ClientInfoForm_Toolbars_Dock_Area_Right); this.Controls.Add(this._ClientInfoForm_Toolbars_Dock_Area_Bottom); this.Controls.Add(this._ClientInfoForm_Toolbars_Dock_Area_Top); this.helpProvider1.SetHelpKeyword(this, ""); this.helpProvider1.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic); this.MinimumSize = new System.Drawing.Size(512, 488); this.Name = "ClientInfoForm"; this.helpProvider1.SetShowHelp(this, true); this.ShowInTaskbar = false; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show; this.Closing += new System.ComponentModel.CancelEventHandler(this.ClientInfoForm_Closing); this.Load += new System.EventHandler(this.ClientInfoForm_Load); this.SizeChanged += new System.EventHandler(this.ClientInfoForm_SizeChanged); this.DragDrop += new System.Windows.Forms.DragEventHandler(this.ClientInfoForm_DragDrop); this.DragEnter += new System.Windows.Forms.DragEventHandler(this.ClientInfoForm_DragEnter); this.panelLeft.ResumeLayout(false); this.panelLeft.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.edEmail)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.edPhone5)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.edPhone4)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.edPhone3)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.edPhone2)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.edPhone1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.edContact)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.edPhysicalAddress)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.edPostalAddress)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbmPopups)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.edWebAddress)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.edAccountNumber)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.edName)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ckActive)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbDispatchZone)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbClientGroup)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbRegion)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbHeadOffice)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ckBillHeadOffice)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ErrorProvider)).EndInit(); this.panelRight.ResumeLayout(false); this.panelRight.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.ckUseNotification)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.edContactNotes)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbTemplate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.cbContractID)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dtContractExpires)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.ckUsesBanking)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.edPopupNotes)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.edTechNotes)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.edNotes)).EndInit(); this.panelCustom.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.gridCustom)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.tbManager)).EndInit(); this.ResumeLayout(false); } #endregion // __ _ _ ___ ____ __ __ __ __ __ ___ ___ // / _)( )( )/ __)(_ _)/ \( \/ ) / _)/ \( \( _) // ( (_ )()( \__ \ )( ( () )) ( ( (_( () )) ) )) _) // \__) \__/ (___/ (__) \__/(_/\/\_) \__)\__/(___/(___) // #region Form Load / Close //variable to hold user form settings //UIUserFormSetting mFormSetting; private int mLastDocsCount=-1; private TemplatePickList templateList = null; /// /// Prepare the form /// /// /// private void ClientInfoForm_Load(object sender, System.EventArgs e) { //case 1039 //log.Debug("ClientInfoForm_Load"); Cursor.Current = Cursors.WaitCursor; // // helpProvider1 // this.helpProvider1.HelpNamespace = Util.BaseHelpUrl + "clients_entry_screen.htm"; this.Icon=Resource1.Client16icon; //See if user has any rights to be here... //(this is done here to ensure that no matter what happens if a user has no rights they can't get here //useful in case we miss a way of getting to a client edit screen from elsewhere in the program) if(AyaBizUtils.Right("Object.Client")< (int)SecurityLevelTypes.ReadOnly)//Less than read only instead of NoAccess to catch records where it's zero instead of 1 { //Inform them of their wicked ways and boot them out of here... MessageBox.Show(string.Format( Util.LocaleText.GetLocalizedText("Error.Security.NotAuthorizedToRetrieve"), Util.LocaleText.GetLocalizedText("O.Client"))); this.Close(); return; } //dtContractExpires.MaskInput=Util.LocaleDateTimeMask(); templateList = TemplatePickList.GetListOfOne(mClient.DefaultServiceTemplateID); InitializeComboBoxes(); DataBind(); Util.LoadFormCustomization("ClientInfo", this, tbManager, false); //case 941 Util.PluginInsertMenu(tbManager, new Util.PluginMenuOptionData(true, RootObjectTypes.Client, mClient, null)); //case 1122 Util.ShowAllInsertMenu(tbManager, new TypeAndID(RootObjectTypes.Client, mClient.ID), this); Util.LocalizeHelperInsertMenu(tbManager, this); //case 1810 if (AyaBizUtils.Right("Object.Report") < (int)SecurityLevelTypes.ReadOnly) { tbManager.Tools["LT:UI.Toolbar.Print"].SharedProps.Visible = false; }//LT:UI.Toolbar.Print else { tbManager.Tools["LT:UI.Toolbar.Print"].SharedProps.Visible = true; Util.ReportFillList(this.tbManager.Tools["REPORTLIST"], ClientList.ReportKey, ClientListDetailed.ReportKey); } Util.Localize(this); Util.Localize(tbmPopups); //restrict UI based on security settings RestrictUI(); Cursor.Current = Cursors.Default; //Case 152 (new TabOrderManager(this)).SetTabOrder(TabOrderManager.TabScheme.AcrossFirst); Application.Idle+= new EventHandler(Application_Idle); this.Visible=true; //case 3823 if (mClientNoteIdToDisplay != Guid.Empty) { ClientNotesForm CN = new ClientNotesForm(); CN.ClientNoteIdToDisplay = mClientNoteIdToDisplay; CN.ClientID = mClient.ID; CN.ShowDialog(); } } /// /// Used to track whether the close was done by the program /// or done by the user clicking on the upper left corner X control /// bool bClosingHandled=false; /// /// Save form layout and grid layout for next time /// /// /// private void ClientInfoForm_Closing(object sender, System.ComponentModel.CancelEventArgs e) { //case 1039 //log.Debug("ClientInfoForm_Closing"); if(!bClosingHandled) { //Save record if necessary //User may opt to not cancel exit if(!RecordUpdate(RecordActionType.PromptToSave) ) { e.Cancel=true; return; } } Application.Idle-= new EventHandler(Application_Idle); Util.SaveFormCustomization("ClientInfo", this, tbManager, false); } #endregion #region Form Sizing /// /// Adjust the layout proportionately as it's sized by user /// /// /// private void ClientInfoForm_SizeChanged(object sender, System.EventArgs e) { //case 1039 //log.Debug("ClientInfoForm_SizeChanged"); int nWidth=0; int nHeight=(this.DisplayRectangle.Height/3)*2; if(bShowCustomFields) //there are three panels nWidth=this.DisplayRectangle.Width/3; else//there are two panels nWidth=this.DisplayRectangle.Width/2; this.panelLeft.Width=nWidth; this.panelRight.Width=nWidth; if(bShowCustomFields) this.panelCustom.Width=nWidth; this.panelLeft.Height=nHeight; this.panelRight.Height=nHeight; this.panelCustom.Height=nHeight; //Size of controls in panel //One third int nLeftWidth=(this.panelLeft.Width/3); //two thirds int nRightWidth=this.panelLeft.Width-nLeftWidth; //make room for error icons nRightWidth-=16; //case 3179 overlapping? Not enough room on left so unless sent to back overwrites rigth control int nGap = 16; //Size and align controls in Left panel lblName.Width = nLeftWidth - nGap; edName.Left=nLeftWidth; edName.Width=nRightWidth; lblAccountNumber.Width = nLeftWidth - nGap; edAccountNumber.Left=nLeftWidth; edAccountNumber.Width=nRightWidth; btnWebAddress.Width = nLeftWidth - nGap; edWebAddress.Left=nLeftWidth; edWebAddress.Width=nRightWidth; lblRegionID.Width = nLeftWidth - nGap; cbRegion.Left=nLeftWidth; cbRegion.Width=nRightWidth; btnDispatchZoneID.Width = nLeftWidth - nGap; cbDispatchZone.Left=nLeftWidth; cbDispatchZone.Width=nRightWidth; btnClientGroupID.Width = nLeftWidth - nGap; cbClientGroup.Left=nLeftWidth; cbClientGroup.Width=nRightWidth; //CONTACT FIELDS lblContact.Width = nLeftWidth - nGap; edContact.Left = nLeftWidth; edContact.Width = nRightWidth; lblEmail.Width = nLeftWidth - nGap; edEmail.Left = nLeftWidth; edEmail.Width = nRightWidth; lblPhone1.Width = nLeftWidth - nGap; edPhone1.Left = nLeftWidth; edPhone1.Width = nRightWidth; lblPhone2.Width = nLeftWidth - nGap; edPhone2.Left = nLeftWidth; edPhone2.Width = nRightWidth; lblPhone3.Width = nLeftWidth - nGap; edPhone3.Left = nLeftWidth; edPhone3.Width = nRightWidth; lblPhone4.Width = nLeftWidth - nGap; edPhone4.Left = nLeftWidth; edPhone4.Width = nRightWidth; lblPhone5.Width = nLeftWidth - nGap; edPhone5.Left = nLeftWidth; edPhone5.Width = nRightWidth; //Size and align controls in right panel nRightWidth=nRightWidth-8; lblTemplate.Width = nLeftWidth - nGap; cbTemplate.Left = nLeftWidth + 8; cbTemplate.Width = nRightWidth; btnHeadOfficeID.Width = nLeftWidth - nGap; cbHeadOffice.Left=nLeftWidth+8; cbHeadOffice.Width=nRightWidth; lblContractID.Width = nLeftWidth - nGap; cbContractID.Left=nLeftWidth+8; cbContractID.Width=nRightWidth; lblContractExpires.Width = nLeftWidth - nGap; dtContractExpires.Left=nLeftWidth+8; dtContractExpires.Width=nRightWidth; } #endregion #region Form UI commands #region Toolbar menu items /// /// Respond to a click on a toolbar menu item /// /// /// private void tbManager_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e) { //case 1039 //if(log.IsDebugEnabled) //case 1039 //log.Debug("ToolClick: "+e.Tool.Key); switch (e.Tool.Key) { case "LT:UI.Command.SaveClose": // ButtonTool RecordUpdate(RecordActionType.SaveAndExit); break; case "LT:AssignedDoc.Label.List": // ButtonTool DocsForm d=new DocsForm(); d.DocsToEdit=mClient.Docs; d.RootObjectID=mClient.ID; d.ExactObjectType=d.RootObjectType=RootObjectTypes.Client; d.ShowDialog(); break; case "LT:UI.Command.RecordHistory": // ButtonTool RecordHistoryForm RH=new RecordHistoryForm(mClient.Creator,mClient.Modifier,mClient.Created,mClient.Modified); RH.ShowDialog(); RH.Dispose(); break; case "LT:UI.Command.Save": // ButtonTool RecordUpdate(RecordActionType.SaveOnly); break; case "LT:UI.Command.SaveNew": // ButtonTool RecordUpdate(RecordActionType.SaveAndNew); break; case "LT:UI.Command.Close": // ButtonTool this.Close(); break; case "LT:ClientNote.Label.List": // ButtonTool //prompt to save first if(mClient.IsNew) if(!RecordUpdate(RecordActionType.SaveOnly)) return; ClientNotesForm CN=new ClientNotesForm(); CN.ClientID=mClient.ID; CN.ShowDialog(); break; case "LT:UI.Command.Delete": // ButtonTool RecordUpdate(RecordActionType.DeleteAndExit); break; case "REPORTLIST": { //case 3736 RecordUpdate(RecordActionType.PromptToSave); if(Util.ReportHandleToolClickIsSummary(e.Tool)) Util.ReportHandleToolClick(e.Tool,ClientList.ReportKey, ClientList.GetListForSingleItem(mClient.ID)); else { Util.ReportHandleToolClick(e.Tool,ClientListDetailed.ReportKey, ClientListDetailed.GetListForSingleItem(mClient.ID)); } Util.ReportFillList(this.tbManager.Tools["REPORTLIST"],ClientList.ReportKey, ClientListDetailed.ReportKey); break; } case "LT:ScheduleMarker.Label.FollowUp": { FollowUpSelector f = new FollowUpSelector(mClient.ID,RootObjectTypes.Client); f.ShowDialog(); f.Dispose(); break; } case "LT:O.WikiPage": { Util.OpenWikiPage(RootObjectTypes.Client, mClient.ID,false); break; } case "LT:UI.Command.Duplicate": // ButtonTool { ClientInfoForm f = new ClientInfoForm(); f.ClientToEdit = mClient.Duplicate(); this.Visible = false; f.ShowDialog(); f.Dispose(); Close(); } break; } } #endregion Toolbar menu items #region Popup Address and Notes and UsesBanking /// /// Handle popup menu clicks /// /// /// private void tbmPopups_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e) { //case 1039 //if(log.IsDebugEnabled) //case 1039 //log.Debug("tbmPopups_ToolClick: "+e.Tool.Key); switch (e.Tool.Key) { //Addresses case "LT:Address.Label.AddressType.Physical": // StateButtonTool //switch to physical address view btnAddress.Text=Util.LocaleText.GetLocalizedText("Address.Label.AddressType.Physical"); edPhysicalAddress.Visible=true; edPostalAddress.Visible=false; break; case "LT:Address.Label.AddressType.Postal": // StateButtonTool //switch to postal address view btnAddress.Text=Util.LocaleText.GetLocalizedText("Address.Label.AddressType.Postal"); edPhysicalAddress.Visible=false; edPostalAddress.Visible=true; break; //NOTES case "LT:Client.Label.PopUpNotes": // StateButtonTool btnNotes.Text=Util.LocaleText.GetLocalizedText("Client.Label.PopUpNotes"); edNotes.Visible=false; edTechNotes.Visible=false; edPopupNotes.Visible=true; edContactNotes.Visible = false; break; case "LT:Client.Label.Notes": // StateButtonTool btnNotes.Text=Util.LocaleText.GetLocalizedText("Client.Label.Notes"); edNotes.Visible=true; edTechNotes.Visible=false; edPopupNotes.Visible=false; edContactNotes.Visible = false; break; case "LT:Client.Label.TechNotes": // StateButtonTool btnNotes.Text=Util.LocaleText.GetLocalizedText("Client.Label.TechNotes"); edNotes.Visible=false; edTechNotes.Visible=true; edPopupNotes.Visible=false; edContactNotes.Visible = false; break; case "LT:Client.Label.ContactNotes": // StateButtonTool btnNotes.Text = Util.LocaleText.GetLocalizedText("Client.Label.ContactNotes"); edNotes.Visible = false; edTechNotes.Visible = false; edPopupNotes.Visible = false; edContactNotes.Visible = true; break; } } /// /// Display full address dialog for editing /// /// /// private void btnAddress_Click(object sender, System.EventArgs e) { //case 1039 //log.Debug("btnAddress_Click"); bool bPhysical=edPhysicalAddress.Visible; AddressForm AF=new AddressForm(bPhysical,false,(AyaBizUtils.Right("Object.Client")<(int)SecurityLevelTypes.ReadWrite)); if(bPhysical) { AF.AddressToEdit=mClient.GoToAddress; AF.CopyToAddressToEdit=mClient.MailToAddress; } else { AF.AddressToEdit=mClient.MailToAddress; AF.CopyToAddressToEdit=mClient.GoToAddress; } AF.ShowDialog(); } private void btnUsesBanking_Click(object sender, System.EventArgs e) { //case 1039 //log.Debug("btnUsesBanking_Click"); ServiceBankForm sbf=new ServiceBankForm(); sbf.ObjectType=RootObjectTypes.Client; sbf.ObjectID=mClient.ID; sbf.ShowDialog(); } #endregion Popup Address and Notes #region hyperButtons private void btnHeadOfficeID_Click(object sender, System.EventArgs e) { //case 1039 //log.Debug("btnHeadOfficeID_Click"); HeadOfficeInfoForm cf=new HeadOfficeInfoForm(); if(cbHeadOffice.Value!=null && (Guid)cbHeadOffice.Value!=Guid.Empty) { cf.HeadOfficeToEdit=HeadOffice.GetItem((Guid)cbHeadOffice.Value); } else { if(AyaBizUtils.Right("Object.HeadOffice")< (int)SecurityLevelTypes.ReadWrite) { //case 1039 //log.Debug("No HeadOffice selected to view and user has no rights to create a new one."); return; } cf.HeadOfficeToEdit=HeadOffice.NewItem(); } cf.Visible=false; cf.ShowDialog(); if(cf.ChangesMade) { mClient.HeadOfficeID=Guid.Empty; Util.FillGZComboBoxWithNameIDList("HeadOffice",cbHeadOffice,false,Guid.Empty, true); mClient.HeadOfficeID=cf.HeadOfficeToEdit.ID; } } private void lblContractID_Click(object sender, System.EventArgs e) { //case 1039 //log.Debug("lblContractID_Click"); ContractInfoForm cf=new ContractInfoForm(); if(cbContractID.Value!=null && (Guid)cbContractID.Value!=Guid.Empty) { cf.ContractToEdit=Contract.GetItem((Guid)cbContractID.Value); } else { cf.ContractToEdit=Contract.NewItem(); } cf.Visible=false; cf.ShowDialog(); if(cf.ChangesMade) { mClient.ContractID=Guid.Empty; Util.FillGZComboBoxWithNameIDList("Contract",cbContractID,false,Guid.Empty, true); mClient.ContractID=cf.ContractToEdit.ID; } } private void btnWebAddress_Click(object sender, System.EventArgs e) { //case 1039 //log.Debug("btnWebAddress_Click"); Util.OpenWebURL(mClient.WebAddress); } private void btnDispatchZoneID_Click(object sender, System.EventArgs e) { //case 1039 //log.Debug("btnDispatchZoneID_Click"); GenericListForm g = new GenericListForm(); DispatchZones o = DispatchZones.GetItems(true); g.SelectedRecordID=cbDispatchZone.Value; g.GridDataSource=o; g.ShowDialog(); if(g.ChangesMade) { mClient.DispatchZoneID=Guid.Empty; Util.FillGZComboBoxWithNameIDList("DispatchZone",cbDispatchZone,false,Guid.Empty, true); mClient.DispatchZoneID=(Guid)g.SelectedRecordID; } } private void btnClientGroupID_Click(object sender, System.EventArgs e) { //case 1039 //log.Debug("btnClientGroupID_Click"); GenericListForm g = new GenericListForm(); ClientGroups o = ClientGroups.GetItems(); g.SelectedRecordID=cbClientGroup.Value; g.GridDataSource=o; g.ShowDialog(); if(g.ChangesMade) { mClient.ClientGroupID=Guid.Empty; Util.FillGZComboBoxWithNameIDList("ClientGroup",cbClientGroup,false,Guid.Empty, false); mClient.ClientGroupID=(Guid)g.SelectedRecordID; } } #endregion hyperButtons #endregion Form UI commands #region Form UI / Business object synchronization /// /// Synchronize the state of the UI to the BO's /// private void SyncUI() { //Read only full address boxes edPostalAddress.Text=mClient.MailToAddress.FullAddress; edPhysicalAddress.Text=mClient.GoToAddress.FullAddress; //display client name in title bar this.Text=mClient.Name; if(AyaBizUtils.Right("Object.Client")>(int)SecurityLevelTypes.ReadOnly) { if(ckUsesBanking.Checked) { btnUsesBanking.Enabled=true; } else { btnUsesBanking.Enabled=false; } } //Indicate if any docs in icon if (this.mLastDocsCount != mClient.Docs.Count) { this.mLastDocsCount = mClient.Docs.Count; Util.AssignedDocsSetImage(tbManager,(mLastDocsCount>0)); } tbManager.Tools["LT:UI.Command.Duplicate"].SharedProps.Visible = mClient.CanDuplicate ; } /// /// When the application enters an idle state /// update the UI to reflect changs in BO status /// (required because grids don't tell the UI to update when they are /// bound to a business object and are edited) /// /// /// private void Application_Idle(object sender, EventArgs e) { SyncUI(); } /// /// Adapt UI to accomodate users security access level /// by default form is set with full rights in mind /// so this code just needs to restrict them as required /// private void RestrictUI() { //case 1039 //if(log.IsDebugEnabled) //case 1039 //log.Debug("RestrictUI: " + ((SecurityLevelTypes)AyaBizUtils.Right("Object.Client")).ToString()); bool bDelete=AyaBizUtils.Right("Object.Client")== (int)SecurityLevelTypes.ReadWriteDelete; bool bReadOnly=AyaBizUtils.Right("Object.Client") < (int)SecurityLevelTypes.ReadWrite; tbManager.Tools["LT:UI.Command.Delete"].SharedProps.Visible=bDelete; tbManager.Tools["LT:UI.Command.SaveClose"].SharedProps.Visible=!bReadOnly; tbManager.Tools["LT:UI.Command.SaveNew"].SharedProps.Visible=!bReadOnly; tbManager.Tools["LT:UI.Command.Save"].SharedProps.Visible=!bReadOnly; //Case 181 tbManager.Tools["LT:UI.Command.Close"].SharedProps.Visible=false; tbManager.Tools["LT:ScheduleMarker.Label.FollowUp"].SharedProps.Visible = AyaBizUtils.Right("Object.ScheduleMarker") > (int)SecurityLevelTypes.NoAccess; //case 73 tbManager.Tools["LT:O.WikiPage"].SharedProps.Visible = mClient.CanWiki; //case 1172 tbManager.Tools["LT:AssignedDoc.Label.List"].SharedProps.Visible = !AyaBizUtils.Lite; //DISABLE EDITABLE CONTROLS //Text editors edName.Enabled=!bReadOnly; edAccountNumber.Enabled=!bReadOnly; edNotes.Enabled=!bReadOnly; edPopupNotes.Enabled=!bReadOnly; edTechNotes.Enabled=!bReadOnly; edWebAddress.Enabled=!bReadOnly; //CONTACT FIELDS edContactNotes.Enabled = !bReadOnly; edEmail.Enabled = !bReadOnly; edContact.Enabled = !bReadOnly; edPhone1.Enabled = !bReadOnly; edPhone2.Enabled = !bReadOnly; edPhone3.Enabled = !bReadOnly; edPhone4.Enabled = !bReadOnly; edPhone5.Enabled = !bReadOnly; //DateTime editors this.dtContractExpires.Enabled=!bReadOnly; //Combo boxes cbDispatchZone.Enabled=!bReadOnly; cbHeadOffice.Enabled=!bReadOnly; cbRegion.Enabled=!bReadOnly; cbClientGroup.Enabled=!bReadOnly; cbContractID.Enabled=!bReadOnly; //Check boxes ckActive.Enabled=!bReadOnly; ckBillHeadOffice.Enabled=!bReadOnly; ckUsesBanking.Enabled=!bReadOnly; ckUseNotification.Enabled = !bReadOnly; // //Buttons // btnDispatchZoneID.Enabled=false; // btnDispatchZoneID.Appearance.ForeColorDisabled=System.Drawing.SystemColors.ControlText; // btnHeadOfficeID.Enabled=false; // btnHeadOfficeID.Appearance.ForeColorDisabled=System.Drawing.SystemColors.ControlText; // btnClientGroupID.Enabled=false; // btnClientGroupID.Appearance.ForeColorDisabled=System.Drawing.SystemColors.ControlText; //Grids if (bDelete) { gridCustom.DisplayLayout.Override.AllowDelete = DefaultableBoolean.True; } else { gridCustom.DisplayLayout.Override.AllowDelete = DefaultableBoolean.False; } if(bReadOnly) { gridCustom.DisplayLayout.Override.AllowAddNew=AllowAddNew.No; gridCustom.DisplayLayout.Override.AllowUpdate=DefaultableBoolean.False; } else { gridCustom.DisplayLayout.Override.AllowAddNew=AllowAddNew.TemplateOnBottom; gridCustom.DisplayLayout.Override.AllowUpdate=DefaultableBoolean.True; } //case 1172 if (AyaBizUtils.Lite) { lblRegionID.Visible = false; cbRegion.Visible = false; btnDispatchZoneID.Visible = false; cbDispatchZone.Visible = false; lblTemplate.Visible = false; cbTemplate.Visible = false; ckBillHeadOffice.Visible = false; btnHeadOfficeID.Visible = false; cbHeadOffice.Visible = false; lblContractID.Visible = false; cbContractID.Visible = false; lblContractExpires.Visible = false; dtContractExpires.Visible = false; ckUsesBanking.Visible = false; btnUsesBanking.Visible = false; ckUseNotification.Visible = false; btnClientGroupID.Visible = false; cbClientGroup.Visible = false; } } #endregion #region Form DataBinding and BrokenRules handling bool bShowCustomFields=false; /// /// Bind controls to business objects /// private void DataBind() { //case 1039 //log.Debug("DataBind"); //Custom fields are not databound, but must be initiated manually... FillCustomFieldGrid(); //Subscribe to broken rules changed event OnBrokenRulesChanged mClient.GetBrokenRulesCollection().ListChanged += new System.ComponentModel.ListChangedEventHandler(OnBrokenRulesChanged); //=-=-=-=-=-=- Form Field bindings =-=-=-=-=-=-=-=-=-=-=-= //Text editors Util.BindField(edName,"Text",mClient,"Name"); Util.BindField(edAccountNumber,"Text",mClient,"AccountNumber"); Util.BindField(edNotes,"Text",mClient,"Notes"); Util.BindField(edPopupNotes,"Text",mClient,"PopUpNotes"); Util.BindField(edTechNotes,"Text",mClient,"TechNotes"); Util.BindField(edWebAddress,"Text",mClient,"WebAddress"); //Contact fields Util.BindField(edContactNotes, "Text", mClient, "ContactNotes"); Util.BindField(edContact, "Text", mClient, "Contact"); Util.BindField(edEmail, "Text", mClient, "Email"); Util.BindField(edPhone1, "Text", mClient, "Phone1"); Util.BindField(edPhone2, "Text", mClient, "Phone2"); Util.BindField(edPhone3, "Text", mClient, "Phone3"); Util.BindField(edPhone4, "Text", mClient, "Phone4"); Util.BindField(edPhone5, "Text", mClient, "Phone5"); //Combo boxes Util.BindField(cbDispatchZone,"Value",mClient,"DispatchZoneID"); Util.BindField(cbHeadOffice,"Value",mClient,"HeadOfficeID"); Util.BindField(cbRegion,"Value",mClient,"RegionID"); Util.BindField(cbClientGroup,"Value",mClient,"ClientGroupID"); Util.BindField(cbContractID,"Value",mClient,"ContractID"); Util.BindField(cbTemplate, "Value", mClient, "DefaultServiceTemplateID"); //Check boxes Util.BindField(ckActive,"Checked",mClient,"Active"); Util.BindField(ckBillHeadOffice,"Checked",mClient,"BillHeadOffice"); Util.BindField(ckUsesBanking,"Checked",mClient,"UsesBanking"); Util.BindField(ckUseNotification, "Checked", mClient,"SendNotifications"); //Date time Util.BindField(dtContractExpires,"Value", mClient,"ContractExpires"); //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- //Bind IsDirty property to hidden checkbox to //ensure isdirtychanged event is available //to data binding infrastructure Util.BindField(ckIsDirty,"Checked",mClient,"IsDirty"); //Setup initial link to broken rules OnBrokenRulesChanged(null,null); } /// /// Handle a change in broken rules /// /// /// private void OnBrokenRulesChanged(object sender, System.ComponentModel.ListChangedEventArgs e) { Util.BrokenRuleFeedback(this,mClient,ErrorProvider); } #endregion #region Business object editing / adding / deletion related code //case 3823 private Guid mClientNoteIdToDisplay = Guid.Empty; public Guid ClientNoteIdToDisplay { get { return mClientNoteIdToDisplay; } set { mClientNoteIdToDisplay = value; } } private Client mClient; /// /// Client record to display /// set by caller /// public Client ClientToEdit { get { return mClient; } set { mClient=value; //mClient.BeginEdit(); } } //Used to signal to main form that there are changes //which could affect it if true private bool mbChangesMade=false; public bool ChangesMade { get { return mbChangesMade; } } /// /// Update record and quit if requested /// /// /// True if handled, false if not handled private bool RecordUpdate(RecordActionType SaveType) { //case 1039 //if(log.IsDebugEnabled) //case 1039 //log.Debug("SaveHandler(Action="+SaveType.ToString()+")"); //switch the focus to a non-editable control //so that any changes in the current editable control //will get updated before attempting to save btnAddress.Focus(); //case 1039 //log.Debug("RecordUpdate::Client object (IsDirty=" + mClient.IsDirty.ToString() + "IsSavable=" + mClient.IsSavable.ToString() + ")"); //Added: 17-Nov-2006 to handle concurrency errors more gracefully try { #region process savetype switch (SaveType) { case RecordActionType.DeleteAndExit: if (Util.PromptForDelete() == DialogResult.Yes) { //Delete, then exit try { Client.DeleteItem(mClient.ID); } catch (Exception ex) { Util.ReportSQLError(ex); return false; } bClosingHandled = true; this.Close(); mbChangesMade = true; return true; } else return false; case RecordActionType.SaveAndExit: //Save if necessary and exit if (mClient.IsSavable) { mClient.ApplyEdit(); mClient.Save(); bClosingHandled = true; mbChangesMade = true; this.Close(); return true; } if (mClient.IsDirty)//dirty and unsaveable due to broken rules { if (Util.PromptForBrokenRulesCancelSave() == DialogResult.Yes) { bClosingHandled = true; this.Close(); return true; } else return false; } //not dirty so just exit bClosingHandled = true; this.Close(); return true; case RecordActionType.SaveAndNew: if (mClient.IsSavable) { mClient.ApplyEdit(); mClient.Save(); AddNewClient(); mbChangesMade = true; return true; } if (mClient.IsDirty)//dirty and unsaveable due to broken rules { //User says that's ok, continue on? if (Util.PromptForBrokenRulesCancelSave() == DialogResult.Yes) { //Ok, add new client and don't save old record AddNewClient(); return true; } else return false; } //Current record isn't dirty so just add a new client AddNewClient(); return true; case RecordActionType.SaveOnly: if (!mClient.IsDirty) return true; if (mClient.IsSavable) { mClient.ApplyEdit(); mClient = (Client)mClient.Save(); DataBind(); mbChangesMade = true; return true; } //Ok, there are broken rules and it can't be saved //let them now and return false Util.PromptWithIconOKOnlyFromLocaleKey("UI.Label.UnsaveableDueToBrokenRulesWarning", MessageBoxIcon.Stop); return false; case RecordActionType.PromptToSave: //Prompt to save and save if //required if (mClient.IsDirty) { DialogResult dr = Util.PromptForSave(); if (dr == DialogResult.Cancel) { //Cancel return false; } if (dr == DialogResult.Yes) { //Save before exit if (mClient.IsSavable) { mClient.ApplyEdit(); mClient.Save(); mbChangesMade = true; return true; } if (mClient.IsDirty)//dirty and unsaveable due to broken rules { if (Util.PromptForBrokenRulesCancelSave() == DialogResult.Yes) { return true; } else return false; } } } return true; } #endregion } catch (Exception ex) { //crack the exception if (ex.InnerException != null) ex = ex.InnerException; if (ex is AyConcurrencyException) { MessageBox.Show(ex.Message, "", MessageBoxButtons.OK, MessageBoxIcon.Information); //if (log.IsDebugEnabled) //case 1039 //log.Debug("Save record concurrency exception", ex); bClosingHandled = true; this.Close(); return false; } else throw; } return false; } /// /// ///Creates a new client record and opens it for editing /// private void AddNewClient() { //case 1039 //log.Debug("AddNewClient"); try { mClient=Client.NewItem(); //mClient.BeginEdit(); DataBind(); } catch(Exception ex) { //log.Error("AddNewClient",ex); MessageBox.Show(ex.Message+"\r\n"+ex.Source); } } #endregion #region Form ComboBoxes (Setup / Events) private void cbRegion_NeedMoreData() { Util.FillGZComboBoxWithNameIDList("Region",cbRegion,false,Guid.Empty, true); } private void cbDispatchZone_NeedMoreData() { Util.FillGZComboBoxWithNameIDList("DispatchZone",cbDispatchZone,false,Guid.Empty, true); } private void cbClientGroup_NeedMoreData() { Util.FillGZComboBoxWithNameIDList("ClientGroup",cbClientGroup,false,Guid.Empty, true); } private void cbHeadOffice_NeedMoreData() { Util.FillGZComboBoxWithNameIDList("HeadOffice",cbHeadOffice,false,Guid.Empty, true); } private void cbContractID_NeedMoreData() { Util.FillGZComboBoxWithNameIDList("Contract",cbContractID,false,Guid.Empty, true); } private void InitializeComboBoxes() { //case 1039 //log.Debug("InitializeComboBoxes"); //Load combo boxes with initial values Util.FillGZComboBoxWithNameIDList("DispatchZone",cbDispatchZone,true,mClient.DispatchZoneID, true); Util.FillGZComboBoxWithNameIDList("HeadOffice", cbHeadOffice, true, mClient.HeadOfficeID, true); Util.FillGZComboBoxWithNameIDList("Region", cbRegion, true, mClient.RegionID, true); Util.FillGZComboBoxWithNameIDList("ClientGroup", cbClientGroup, true, mClient.ClientGroupID, true); Util.FillGZComboBoxWithNameIDList("Contract", cbContractID, true, mClient.ContractID, true); cbTemplate.Items.Clear(); TemplatePickList UList = TemplatePickList.GetList(WorkorderTypes.TemplateService, true); foreach (TemplatePickList.TemplatePickListInfo ui in UList) { cbTemplate.Items.Add(ui.ID, ui.Description); } //cbTemplate.Items.Add(mClient.DefaultServiceTemplateID,Util.GetBizObjectName("Template",mClient.DefaultServiceTemplateID)); } #endregion #region Custom fields /// /// put custom field data into custom grid and show it if applicable /// private void FillCustomFieldGrid() { //case 1039 //log.Debug("FillCustomFieldGrid"); bShowCustomFields=Util.PrepareCustomFieldsGrid("Client",gridCustom); if(bShowCustomFields) { this.panelCustom.Visible=true; Util.GridFromCustomFields(mClient,gridCustom); } else { this.panelCustom.Visible=false; } } private void gridCustom_AfterCellUpdate(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e) { Util.GridToCustomFields(mClient,gridCustom); } #endregion #region Drag and drop docs private void ClientInfoForm_DragEnter(object sender, System.Windows.Forms.DragEventArgs e) { Util.DragEnter(e); } private void ClientInfoForm_DragDrop(object sender, System.Windows.Forms.DragEventArgs e) { Util.DragDrop(e, mClient.Docs, RootObjectTypes.Client, mClient.ID, RootObjectTypes.Client); } #endregion #region Double check the client doesn't already exist private void edName_AfterExitEditMode(object sender, System.EventArgs e) { if(mClient.IsNew) { if(Client.Exists(Guid.Empty,edName.Text)) { Util.PromptWithIconOKOnlyFromLocaleKey("Error.Object.DuplicateNameWarning",MessageBoxIcon.Warning); } } } #endregion #region Accelerator keys /// /// Case 37 /// /// /// /// protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { //Short circuit: //Only process modified keystrokes (i.e. when a modifier like ctrl-alt-or shift is also //being held down if (ModifierKeys == Keys.None) return base.ProcessCmdKey(ref msg, keyData); switch (Util.HotKeys(keyData)) { //Close form case HotKeyAction.CloseForm: this.Close(); return true; //New workorder case HotKeyAction.NewWorkorder: { if (mClient.IsNew) return true; Workorder w = Workorder.NewItem(WorkorderTypes.Service); w.ClientID = mClient.ID; if (AyaBizUtils.Lite)//case 1172 { WorkorderFormLite wfl = new WorkorderFormLite(); wfl.WorkorderToEdit = w; wfl.ShowDialog(); wfl.Dispose(); } else { WorkorderForm wf = new WorkorderForm(); wf.WorkorderToEdit = w; //Case 677 wf.Show(); } //wf.Dispose(); } return true; case HotKeyAction.NewPreventiveMaintenance: { if (AyaBizUtils.Lite) return true;//case 1206 if (mClient.IsNew) return true; Workorder w = Workorder.NewItem(WorkorderTypes.PreventiveMaintenance); w.ClientID = mClient.ID; WorkorderForm wf = new WorkorderForm(); wf.WorkorderToEdit = w; //Case 677 wf.Show(); //wf.Dispose(); } return true; case HotKeyAction.NewQuote: { if (AyaBizUtils.Lite) return true;//case 1206 if (mClient.IsNew) return true; Workorder w = Workorder.NewItem(WorkorderTypes.Quote); w.ClientID = mClient.ID; WorkorderForm wf = new WorkorderForm(); wf.WorkorderToEdit = w; //Case 677 wf.Show(); //wf.Dispose(); } return true; case HotKeyAction.NewUnit: { if (AyaBizUtils.Lite) return true;//case 1206 if (mClient.IsNew) return true; Unit u = Unit.NewItem(); u.ClientID = mClient.ID; UnitInfoForm uf = new UnitInfoForm(); uf.UnitToEdit = u; uf.ShowDialog(); uf.Dispose(); } return true; } return base.ProcessCmdKey(ref msg, keyData); } #endregion } }