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 HeadOfficeInfoForm.
///
public class HeadOfficeInfoForm : 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);
private System.Windows.Forms.CheckBox ckIsDirty;
private Infragistics.Win.Misc.UltraDropDownButton btnAddress;
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.UltraWinEditors.UltraTextEditor edNotes;
private GZTW.WinForm.Controls.GZUltraComboEditor cbRegion;
private GZTW.WinForm.Controls.GZUltraComboEditor cbClientGroup;
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 Infragistics.Win.UltraWinEditors.UltraTextEditor edPhysicalAddress;
private Infragistics.Win.UltraWinEditors.UltraTextEditor edPostalAddress;
private System.Windows.Forms.Panel panelCustom;
private Infragistics.Win.UltraWinGrid.UltraGrid gridCustom;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _HeadOfficeInfoForm_Toolbars_Dock_Area_Left;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _HeadOfficeInfoForm_Toolbars_Dock_Area_Right;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _HeadOfficeInfoForm_Toolbars_Dock_Area_Top;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _HeadOfficeInfoForm_Toolbars_Dock_Area_Bottom;
private Infragistics.Win.Misc.UltraButton btnClientGroupID;
private Infragistics.Win.Misc.UltraButton btnWebAddress;
private Infragistics.Win.Misc.UltraLabel lblRegionID;
private Infragistics.Win.Misc.UltraButton lblContractID;
private GZTW.WinForm.Controls.GZUltraComboEditor cbContractID;
private GZTW.WinForm.Controls.GZDateTimePicker dtContractExpires;
private Infragistics.Win.Misc.UltraLabel lblContractExpires;
private Infragistics.Win.UltraWinEditors.UltraCheckEditor ckUsesBanking;
private Infragistics.Win.Misc.UltraButton btnUsesBanking;
private System.Windows.Forms.HelpProvider helpProvider1;
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.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 edContactNotes;
private Infragistics.Win.Misc.UltraDropDownButton btnNotes;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea ultraToolbarsDockArea3;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea ultraToolbarsDockArea4;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea ultraToolbarsDockArea1;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea ultraToolbarsDockArea2;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _panelLeft_Toolbars_Dock_Area_Left;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager tbmPopups;
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 System.ComponentModel.IContainer components;
public HeadOfficeInfoForm()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
}
///
/// 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.UltraWinToolbars.UltraToolbar ultraToolbar2 = new Infragistics.Win.UltraWinToolbars.UltraToolbar("HeadOfficeEntryMenuBar");
Infragistics.Win.UltraWinToolbars.PopupMenuTool popupMenuTool7 = 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 buttonTool18 = 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 buttonTool15 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:ScheduleMarker.Label.FollowUp");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool4 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.SaveNew");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool5 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Save");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool6 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Delete");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool7 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Close");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool8 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.SaveClose");
Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance7 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool9 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:AssignedDoc.Label.List");
Infragistics.Win.Appearance appearance8 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance9 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool10 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.RecordHistory");
Infragistics.Win.Appearance appearance10 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance11 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool11 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Save");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool12 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.SaveNew");
Infragistics.Win.Appearance appearance12 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance13 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool13 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Close");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool14 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Delete");
Infragistics.Win.Appearance appearance14 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance15 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinToolbars.ListTool listTool1 = new Infragistics.Win.UltraWinToolbars.ListTool("REPORTLIST");
Infragistics.Win.UltraWinToolbars.ListToolItem listToolItem1 = new Infragistics.Win.UltraWinToolbars.ListToolItem();
Infragistics.Win.UltraWinToolbars.PopupMenuTool popupMenuTool8 = new Infragistics.Win.UltraWinToolbars.PopupMenuTool("LT:UI.Toolbar.Print");
Infragistics.Win.Appearance appearance16 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance17 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinToolbars.ListTool listTool2 = new Infragistics.Win.UltraWinToolbars.ListTool("REPORTLIST");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool16 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:ScheduleMarker.Label.FollowUp");
Infragistics.Win.Appearance appearance18 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance19 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool17 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:O.WikiPage");
Infragistics.Win.Appearance appearance20 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance21 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinToolbars.OptionSet optionSet1 = new Infragistics.Win.UltraWinToolbars.OptionSet("OSAddressPop");
Infragistics.Win.UltraWinToolbars.OptionSet optionSet2 = new Infragistics.Win.UltraWinToolbars.OptionSet("OSNotesPop");
Infragistics.Win.UltraWinToolbars.UltraToolbar ultraToolbar1 = 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 stateButtonTool6 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:HeadOffice.Label.Notes", "OSNotesPop");
Infragistics.Win.UltraWinToolbars.PopupMenuTool popupMenuTool4 = new Infragistics.Win.UltraWinToolbars.PopupMenuTool("PopupNotesTypes");
Infragistics.Win.UltraWinToolbars.StateButtonTool stateButtonTool8 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:HeadOffice.Label.Notes", "OSNotesPop");
Infragistics.Win.UltraWinToolbars.StateButtonTool stateButtonTool12 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:HeadOffice.Label.ContactNotes", "OSNotesPop");
Infragistics.Win.UltraWinToolbars.StateButtonTool stateButtonTool11 = new Infragistics.Win.UltraWinToolbars.StateButtonTool("LT:HeadOffice.Label.ContactNotes", "OSNotesPop");
Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance();
this.ckIsDirty = new System.Windows.Forms.CheckBox();
this.tbManager = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components);
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.btnWebAddress = new Infragistics.Win.Misc.UltraButton();
this.edPostalAddress = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
this.btnAddress = new Infragistics.Win.Misc.UltraDropDownButton();
this.tbmPopups = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components);
this.edPhysicalAddress = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
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.lblName = new Infragistics.Win.Misc.UltraLabel();
this.ckActive = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
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.ErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
this.panelRight = new System.Windows.Forms.Panel();
this.btnNotes = new Infragistics.Win.Misc.UltraDropDownButton();
this.edContactNotes = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
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.edNotes = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
this.panelCustom = new System.Windows.Forms.Panel();
this.gridCustom = new Infragistics.Win.UltraWinGrid.UltraGrid();
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Left = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Right = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Top = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Bottom = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this.helpProvider1 = new System.Windows.Forms.HelpProvider();
this.ultraToolbarsDockArea1 = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this.ultraToolbarsDockArea2 = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this.ultraToolbarsDockArea3 = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this.ultraToolbarsDockArea4 = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this._panelLeft_Toolbars_Dock_Area_Top = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this._panelLeft_Toolbars_Dock_Area_Bottom = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this._panelLeft_Toolbars_Dock_Area_Left = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this._panelLeft_Toolbars_Dock_Area_Right = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
((System.ComponentModel.ISupportInitialize)(this.tbManager)).BeginInit();
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.edPostalAddress)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tbmPopups)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.edPhysicalAddress)).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.cbClientGroup)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbRegion)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.ErrorProvider)).BeginInit();
this.panelRight.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.edContactNotes)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbContractID)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.dtContractExpires)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.ckUsesBanking)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.edNotes)).BeginInit();
this.panelCustom.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gridCustom)).BeginInit();
this.SuspendLayout();
//
// ckIsDirty
//
this.ckIsDirty.Location = new System.Drawing.Point(-336, 28);
this.ckIsDirty.Name = "ckIsDirty";
this.ckIsDirty.Size = new System.Drawing.Size(200, 27);
this.ckIsDirty.TabIndex = 5;
//
// 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.MiniToolbar.ToolRowCount = 1;
this.tbManager.ShowFullMenusDelay = 500;
ultraToolbar2.DockedColumn = 0;
ultraToolbar2.DockedRow = 0;
ultraToolbar2.NonInheritedTools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
popupMenuTool7,
buttonTool1,
buttonTool2,
buttonTool18,
buttonTool3,
buttonTool15,
buttonTool4,
buttonTool5,
buttonTool6,
buttonTool7});
ultraToolbar2.Text = "HeadOfficeEntryMenuBar";
this.tbManager.Toolbars.AddRange(new Infragistics.Win.UltraWinToolbars.UltraToolbar[] {
ultraToolbar2});
this.tbManager.ToolbarSettings.AllowCustomize = Infragistics.Win.DefaultableBoolean.False;
this.tbManager.ToolbarSettings.AllowFloating = Infragistics.Win.DefaultableBoolean.False;
this.tbManager.ToolbarSettings.AllowHiding = Infragistics.Win.DefaultableBoolean.False;
buttonTool8.SharedPropsInternal.AccessibleDescription = "recorddd";
appearance6.Image = global::AyaNova.Resource1.SaveExit32;
buttonTool8.SharedPropsInternal.AppearancesLarge.Appearance = appearance6;
appearance7.Image = global::AyaNova.Resource1.SaveExit16;
buttonTool8.SharedPropsInternal.AppearancesSmall.Appearance = appearance7;
buttonTool8.SharedPropsInternal.Caption = "LT:UI.Command.SaveClose";
appearance8.Image = global::AyaNova.Resource1.Documents32;
buttonTool9.SharedPropsInternal.AppearancesLarge.Appearance = appearance8;
appearance9.Image = global::AyaNova.Resource1.Documents16;
buttonTool9.SharedPropsInternal.AppearancesSmall.Appearance = appearance9;
buttonTool9.SharedPropsInternal.Caption = "LT:AssignedDoc.Label.List";
appearance10.Image = global::AyaNova.Resource1.RecordHistory32;
buttonTool10.SharedPropsInternal.AppearancesLarge.Appearance = appearance10;
appearance11.Image = global::AyaNova.Resource1.RecordHistory16;
buttonTool10.SharedPropsInternal.AppearancesSmall.Appearance = appearance11;
buttonTool10.SharedPropsInternal.Caption = "LT:UI.Command.RecordHistory";
buttonTool11.SharedPropsInternal.Caption = "LT:UI.Command.Save";
buttonTool11.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.TextOnlyAlways;
appearance12.Image = global::AyaNova.Resource1.SaveNew32;
buttonTool12.SharedPropsInternal.AppearancesLarge.Appearance = appearance12;
appearance13.Image = global::AyaNova.Resource1.SaveNew16;
buttonTool12.SharedPropsInternal.AppearancesSmall.Appearance = appearance13;
buttonTool12.SharedPropsInternal.Caption = "LT:UI.Command.SaveNew";
buttonTool13.SharedPropsInternal.Caption = "LT:UI.Command.Close";
buttonTool13.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.TextOnlyAlways;
appearance14.Image = global::AyaNova.Resource1.Delete32;
buttonTool14.SharedPropsInternal.AppearancesLarge.Appearance = appearance14;
appearance15.Image = global::AyaNova.Resource1.Delete16;
buttonTool14.SharedPropsInternal.AppearancesSmall.Appearance = appearance15;
buttonTool14.SharedPropsInternal.Caption = "LT:UI.Command.Delete";
listTool1.DisplayCheckmark = false;
listToolItem1.Text = "xxxx";
listTool1.ListToolItemsInternal.Add(listToolItem1);
appearance16.Image = global::AyaNova.Resource1.Print32;
popupMenuTool8.SharedPropsInternal.AppearancesLarge.Appearance = appearance16;
appearance17.Image = global::AyaNova.Resource1.Print16;
popupMenuTool8.SharedPropsInternal.AppearancesSmall.Appearance = appearance17;
popupMenuTool8.SharedPropsInternal.Caption = "LT:UI.Toolbar.Print";
popupMenuTool8.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageOnlyOnToolbars;
popupMenuTool8.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
listTool2});
appearance18.Image = global::AyaNova.Resource1.FollowUp32;
buttonTool16.SharedPropsInternal.AppearancesLarge.Appearance = appearance18;
appearance19.Image = global::AyaNova.Resource1.FollowUp16;
buttonTool16.SharedPropsInternal.AppearancesSmall.Appearance = appearance19;
buttonTool16.SharedPropsInternal.Caption = "LT:ScheduleMarker.Label.FollowUp";
buttonTool16.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.ImageOnlyOnToolbars;
appearance20.Image = global::AyaNova.Resource1.Wiki32;
buttonTool17.SharedPropsInternal.AppearancesLarge.Appearance = appearance20;
appearance21.Image = global::AyaNova.Resource1.Wiki16;
buttonTool17.SharedPropsInternal.AppearancesSmall.Appearance = appearance21;
buttonTool17.SharedPropsInternal.Caption = "LT:O.WikiPage";
this.tbManager.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
buttonTool8,
buttonTool9,
buttonTool10,
buttonTool11,
buttonTool12,
buttonTool13,
buttonTool14,
listTool1,
popupMenuTool8,
buttonTool16,
buttonTool17});
this.tbManager.UseLargeImagesOnToolbar = true;
this.tbManager.ToolClick += new Infragistics.Win.UltraWinToolbars.ToolClickEventHandler(this.tbManager_ToolClick);
//
// 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.edPostalAddress);
this.panelLeft.Controls.Add(this.btnAddress);
this.panelLeft.Controls.Add(this.edPhysicalAddress);
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.lblName);
this.panelLeft.Controls.Add(this.ckActive);
this.panelLeft.Controls.Add(this.cbClientGroup);
this.panelLeft.Controls.Add(this.cbRegion);
this.panelLeft.Controls.Add(this.lblRegionID);
this.panelLeft.Controls.Add(this.btnWebAddress);
this.panelLeft.Controls.Add(this.btnClientGroupID);
this.panelLeft.Dock = System.Windows.Forms.DockStyle.Left;
this.panelLeft.Location = new System.Drawing.Point(0, 86);
this.panelLeft.Name = "panelLeft";
this.panelLeft.Size = new System.Drawing.Size(317, 513);
this.panelLeft.TabIndex = 0;
//
// edEmail
//
this.edEmail.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.edEmail.Location = new System.Drawing.Point(212, 239);
this.edEmail.Name = "edEmail";
this.edEmail.Size = new System.Drawing.Size(96, 24);
this.edEmail.TabIndex = 149;
//
// lblEmail
//
this.lblEmail.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None;
this.lblEmail.Location = new System.Drawing.Point(10, 245);
this.lblEmail.Name = "lblEmail";
this.lblEmail.Size = new System.Drawing.Size(158, 18);
this.lblEmail.TabIndex = 150;
this.lblEmail.Tag = "";
this.lblEmail.Text = "LT:HeadOffice.Label.Email";
this.lblEmail.WrapText = false;
//
// edPhone5
//
this.edPhone5.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.edPhone5.Location = new System.Drawing.Point(212, 372);
this.edPhone5.Name = "edPhone5";
this.edPhone5.Size = new System.Drawing.Size(96, 24);
this.edPhone5.TabIndex = 147;
//
// lblPhone5
//
this.lblPhone5.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None;
this.lblPhone5.Location = new System.Drawing.Point(10, 377);
this.lblPhone5.Name = "lblPhone5";
this.lblPhone5.Size = new System.Drawing.Size(158, 19);
this.lblPhone5.TabIndex = 148;
this.lblPhone5.Tag = "";
this.lblPhone5.Text = "LT:HeadOffice.Label.Phone5";
this.lblPhone5.WrapText = false;
//
// edPhone4
//
this.edPhone4.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.edPhone4.Location = new System.Drawing.Point(212, 345);
this.edPhone4.Name = "edPhone4";
this.edPhone4.Size = new System.Drawing.Size(96, 24);
this.edPhone4.TabIndex = 145;
//
// lblPhone4
//
this.lblPhone4.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None;
this.lblPhone4.Location = new System.Drawing.Point(10, 351);
this.lblPhone4.Name = "lblPhone4";
this.lblPhone4.Size = new System.Drawing.Size(158, 18);
this.lblPhone4.TabIndex = 146;
this.lblPhone4.Tag = "";
this.lblPhone4.Text = "LT:HeadOffice.Label.Phone4";
this.lblPhone4.WrapText = false;
//
// edPhone3
//
this.edPhone3.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.edPhone3.Location = new System.Drawing.Point(212, 318);
this.edPhone3.Name = "edPhone3";
this.edPhone3.Size = new System.Drawing.Size(96, 24);
this.edPhone3.TabIndex = 143;
//
// lblPhone3
//
this.lblPhone3.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None;
this.lblPhone3.Location = new System.Drawing.Point(10, 321);
this.lblPhone3.Name = "lblPhone3";
this.lblPhone3.Size = new System.Drawing.Size(158, 22);
this.lblPhone3.TabIndex = 144;
this.lblPhone3.Tag = "";
this.lblPhone3.Text = "LT:HeadOffice.Label.Phone3";
this.lblPhone3.WrapText = false;
//
// edPhone2
//
this.edPhone2.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.edPhone2.Location = new System.Drawing.Point(212, 292);
this.edPhone2.Name = "edPhone2";
this.edPhone2.Size = new System.Drawing.Size(96, 24);
this.edPhone2.TabIndex = 141;
//
// lblPhone2
//
this.lblPhone2.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None;
this.lblPhone2.Location = new System.Drawing.Point(10, 298);
this.lblPhone2.Name = "lblPhone2";
this.lblPhone2.Size = new System.Drawing.Size(158, 18);
this.lblPhone2.TabIndex = 142;
this.lblPhone2.Tag = "";
this.lblPhone2.Text = "LT:HeadOffice.Label.Phone2";
this.lblPhone2.WrapText = false;
//
// edPhone1
//
this.edPhone1.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.edPhone1.Location = new System.Drawing.Point(212, 265);
this.edPhone1.Name = "edPhone1";
this.edPhone1.Size = new System.Drawing.Size(96, 24);
this.edPhone1.TabIndex = 139;
//
// lblPhone1
//
this.lblPhone1.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None;
this.lblPhone1.Location = new System.Drawing.Point(10, 271);
this.lblPhone1.Name = "lblPhone1";
this.lblPhone1.Size = new System.Drawing.Size(158, 19);
this.lblPhone1.TabIndex = 140;
this.lblPhone1.Tag = "";
this.lblPhone1.Text = "LT:HeadOffice.Label.Phone1";
this.lblPhone1.WrapText = false;
//
// edContact
//
this.edContact.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.edContact.Location = new System.Drawing.Point(212, 212);
this.edContact.Name = "edContact";
this.edContact.Size = new System.Drawing.Size(96, 24);
this.edContact.TabIndex = 137;
//
// lblContact
//
this.lblContact.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None;
this.lblContact.Location = new System.Drawing.Point(10, 218);
this.lblContact.Name = "lblContact";
this.lblContact.Size = new System.Drawing.Size(158, 19);
this.lblContact.TabIndex = 138;
this.lblContact.Tag = "";
this.lblContact.Text = "LT:HeadOffice.Label.Contact";
this.lblContact.WrapText = false;
//
// btnWebAddress
//
appearance3.TextHAlignAsString = "Left";
this.btnWebAddress.Appearance = appearance3;
this.btnWebAddress.Location = new System.Drawing.Point(10, 102);
this.btnWebAddress.Name = "btnWebAddress";
this.btnWebAddress.Size = new System.Drawing.Size(110, 24);
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);
//
// 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(10, 453);
this.edPostalAddress.Multiline = true;
this.edPostalAddress.Name = "edPostalAddress";
this.edPostalAddress.ReadOnly = true;
this.edPostalAddress.Size = new System.Drawing.Size(298, 53);
this.edPostalAddress.TabIndex = 11;
//
// btnAddress
//
this.btnAddress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
appearance2.TextHAlignAsString = "Left";
this.btnAddress.Appearance = appearance2;
this.btnAddress.Location = new System.Drawing.Point(10, 419);
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(298, 28);
this.btnAddress.TabIndex = 8;
this.btnAddress.Tag = "";
this.btnAddress.Text = "LT:Address.Label.AddressType.Postal";
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(optionSet1);
this.tbmPopups.OptionSets.Add(optionSet2);
this.tbmPopups.ShowFullMenusDelay = 500;
ultraToolbar1.DockedColumn = 0;
ultraToolbar1.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Floating;
ultraToolbar1.DockedRow = 0;
ultraToolbar1.FloatingLocation = new System.Drawing.Point(877, 189);
ultraToolbar1.FloatingSize = new System.Drawing.Size(122, 42);
ultraToolbar1.NonInheritedTools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
popupMenuTool1,
popupMenuTool2});
ultraToolbar1.Text = "TempSetupTB";
ultraToolbar1.Visible = false;
this.tbmPopups.Toolbars.AddRange(new Infragistics.Win.UltraWinToolbars.UltraToolbar[] {
ultraToolbar1});
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";
stateButtonTool6.Checked = true;
stateButtonTool6.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark;
stateButtonTool6.OptionSetKey = "OSNotesPop";
stateButtonTool6.SharedPropsInternal.Caption = "LT:HeadOffice.Label.Notes";
popupMenuTool4.SharedPropsInternal.Caption = "PopupNotesTypes";
stateButtonTool8.Checked = true;
stateButtonTool8.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark;
stateButtonTool12.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark;
popupMenuTool4.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
stateButtonTool8,
stateButtonTool12});
stateButtonTool11.MenuDisplayStyle = Infragistics.Win.UltraWinToolbars.StateButtonMenuDisplayStyle.DisplayCheckmark;
stateButtonTool11.OptionSetKey = "OSNotesPop";
stateButtonTool11.SharedPropsInternal.Caption = "LT:HeadOffice.Label.ContactNotes";
this.tbmPopups.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
popupMenuTool3,
stateButtonTool3,
stateButtonTool4,
stateButtonTool6,
popupMenuTool4,
stateButtonTool11});
this.tbmPopups.ToolClick += new Infragistics.Win.UltraWinToolbars.ToolClickEventHandler(this.tbmPopups_ToolClick);
//
// 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(10, 453);
this.edPhysicalAddress.Multiline = true;
this.edPhysicalAddress.Name = "edPhysicalAddress";
this.edPhysicalAddress.ReadOnly = true;
this.edPhysicalAddress.Size = new System.Drawing.Size(298, 53);
this.edPhysicalAddress.TabIndex = 12;
this.edPhysicalAddress.Visible = false;
//
// edWebAddress
//
this.edWebAddress.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.edWebAddress.Location = new System.Drawing.Point(210, 102);
this.edWebAddress.Name = "edWebAddress";
this.edWebAddress.Size = new System.Drawing.Size(96, 24);
this.edWebAddress.TabIndex = 3;
//
// edAccountNumber
//
this.edAccountNumber.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.edAccountNumber.Location = new System.Drawing.Point(210, 65);
this.edAccountNumber.Name = "edAccountNumber";
this.edAccountNumber.Size = new System.Drawing.Size(96, 24);
this.edAccountNumber.TabIndex = 2;
//
// lblAccountNumber
//
this.lblAccountNumber.Location = new System.Drawing.Point(10, 65);
this.lblAccountNumber.Name = "lblAccountNumber";
this.lblAccountNumber.Size = new System.Drawing.Size(153, 18);
this.lblAccountNumber.TabIndex = 94;
this.lblAccountNumber.Tag = "";
this.lblAccountNumber.Text = "LT:HeadOffice.Label.AccountNumber";
this.lblAccountNumber.WrapText = false;
//
// edName
//
this.edName.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.edName.Location = new System.Drawing.Point(210, 29);
this.edName.Name = "edName";
this.edName.Size = new System.Drawing.Size(96, 24);
this.edName.TabIndex = 0;
//
// lblName
//
this.lblName.Location = new System.Drawing.Point(10, 37);
this.lblName.Name = "lblName";
this.lblName.Size = new System.Drawing.Size(158, 18);
this.lblName.TabIndex = 92;
this.lblName.Tag = "";
this.lblName.Text = "LT:HeadOffice.Label.Name";
this.lblName.WrapText = false;
//
// ckActive
//
this.ckActive.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ckActive.Checked = true;
this.ckActive.CheckState = System.Windows.Forms.CheckState.Checked;
this.ckActive.Location = new System.Drawing.Point(10, 9);
this.ckActive.Name = "ckActive";
this.ckActive.Size = new System.Drawing.Size(158, 19);
this.ckActive.TabIndex = 1;
this.ckActive.Tag = "";
this.ckActive.Text = "LT:Common.Label.Active";
//
// cbClientGroup
//
this.cbClientGroup.Anchor = System.Windows.Forms.AnchorStyles.Top;
this.cbClientGroup.Location = new System.Drawing.Point(210, 175);
this.cbClientGroup.Name = "cbClientGroup";
this.cbClientGroup.Size = new System.Drawing.Size(96, 24);
this.cbClientGroup.TabIndex = 6;
this.cbClientGroup.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbClientGroup_NeedMoreData);
//
// btnClientGroupID
//
appearance4.TextHAlignAsString = "Left";
this.btnClientGroupID.Appearance = appearance4;
this.btnClientGroupID.Location = new System.Drawing.Point(10, 175);
this.btnClientGroupID.Name = "btnClientGroupID";
this.btnClientGroupID.Size = new System.Drawing.Size(110, 25);
this.btnClientGroupID.TabIndex = 7;
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(210, 138);
this.cbRegion.Name = "cbRegion";
this.cbRegion.Size = new System.Drawing.Size(96, 24);
this.cbRegion.TabIndex = 5;
this.cbRegion.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbRegion_NeedMoreData);
//
// lblRegionID
//
this.lblRegionID.BorderStyleOuter = Infragistics.Win.UIElementBorderStyle.None;
this.lblRegionID.Location = new System.Drawing.Point(10, 148);
this.lblRegionID.Name = "lblRegionID";
this.lblRegionID.Size = new System.Drawing.Size(110, 18);
this.lblRegionID.TabIndex = 132;
this.lblRegionID.Tag = "";
this.lblRegionID.Text = "LT:O.Region";
this.lblRegionID.WrapText = false;
//
// ErrorProvider
//
this.ErrorProvider.ContainerControl = this;
//
// panelRight
//
this.panelRight.Controls.Add(this.btnNotes);
this.panelRight.Controls.Add(this.edContactNotes);
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.edNotes);
this.panelRight.Dock = System.Windows.Forms.DockStyle.Left;
this.panelRight.Location = new System.Drawing.Point(317, 86);
this.panelRight.Name = "panelRight";
this.panelRight.Size = new System.Drawing.Size(300, 513);
this.panelRight.TabIndex = 101;
//
// btnNotes
//
this.btnNotes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
appearance1.TextHAlignAsString = "Left";
this.btnNotes.Appearance = appearance1;
this.btnNotes.Location = new System.Drawing.Point(12, 181);
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(271, 28);
this.btnNotes.Style = Infragistics.Win.Misc.SplitButtonDisplayStyle.DropDownButtonOnly;
this.btnNotes.TabIndex = 177;
this.btnNotes.Tag = "";
this.btnNotes.Text = "LT:HeadOffice.Label.Notes";
this.btnNotes.WrapText = false;
//
// 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(10, 218);
this.edContactNotes.Multiline = true;
this.edContactNotes.Name = "edContactNotes";
this.edContactNotes.Size = new System.Drawing.Size(273, 288);
this.edContactNotes.TabIndex = 176;
this.edContactNotes.Visible = 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(10, 138);
this.btnUsesBanking.Name = "btnUsesBanking";
this.btnUsesBanking.Size = new System.Drawing.Size(273, 27);
this.btnUsesBanking.TabIndex = 4;
this.btnUsesBanking.Tag = "";
this.btnUsesBanking.Text = "LT:Common.Label.UsesBanking";
this.btnUsesBanking.WrapText = false;
this.btnUsesBanking.Click += new System.EventHandler(this.btnUsesBanking_Click);
//
// lblContractID
//
appearance5.TextHAlignAsString = "Left";
this.lblContractID.Appearance = appearance5;
this.lblContractID.Location = new System.Drawing.Point(10, 28);
this.lblContractID.Name = "lblContractID";
this.lblContractID.Size = new System.Drawing.Size(168, 24);
this.lblContractID.TabIndex = 1;
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.Location = new System.Drawing.Point(192, 28);
this.cbContractID.Name = "cbContractID";
this.cbContractID.Size = new System.Drawing.Size(91, 24);
this.cbContractID.TabIndex = 0;
this.cbContractID.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbContractID_NeedMoreData);
//
// dtContractExpires
//
this.dtContractExpires.GZEnabled = true;
this.dtContractExpires.GZReadOnly = false;
this.dtContractExpires.Location = new System.Drawing.Point(192, 65);
this.dtContractExpires.Name = "dtContractExpires";
this.dtContractExpires.Size = new System.Drawing.Size(91, 24);
this.dtContractExpires.TabIndex = 2;
//
// lblContractExpires
//
this.lblContractExpires.Location = new System.Drawing.Point(10, 74);
this.lblContractExpires.Name = "lblContractExpires";
this.lblContractExpires.Size = new System.Drawing.Size(134, 18);
this.lblContractExpires.TabIndex = 3;
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(10, 111);
this.ckUsesBanking.Name = "ckUsesBanking";
this.ckUsesBanking.Size = new System.Drawing.Size(273, 18);
this.ckUsesBanking.TabIndex = 3;
this.ckUsesBanking.Tag = "";
this.ckUsesBanking.Text = "LT:Common.Label.UsesBanking";
//
// 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(10, 218);
this.edNotes.Multiline = true;
this.edNotes.Name = "edNotes";
this.edNotes.Size = new System.Drawing.Size(273, 291);
this.edNotes.TabIndex = 5;
//
// panelCustom
//
this.panelCustom.Controls.Add(this.gridCustom);
this.panelCustom.Dock = System.Windows.Forms.DockStyle.Right;
this.panelCustom.Location = new System.Drawing.Point(616, 86);
this.panelCustom.Name = "panelCustom";
this.panelCustom.Size = new System.Drawing.Size(269, 513);
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(269, 513);
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);
//
// _HeadOfficeInfoForm_Toolbars_Dock_Area_Left
//
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Left.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Left.BackColor = System.Drawing.SystemColors.Control;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Left.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Left;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Left.ForeColor = System.Drawing.SystemColors.ControlText;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Left.Location = new System.Drawing.Point(0, 86);
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Left.Name = "_HeadOfficeInfoForm_Toolbars_Dock_Area_Left";
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Left.Size = new System.Drawing.Size(0, 513);
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Left.ToolbarsManager = this.tbManager;
//
// _HeadOfficeInfoForm_Toolbars_Dock_Area_Right
//
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Right.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Right.BackColor = System.Drawing.SystemColors.Control;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Right.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Right;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Right.ForeColor = System.Drawing.SystemColors.ControlText;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Right.Location = new System.Drawing.Point(885, 86);
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Right.Name = "_HeadOfficeInfoForm_Toolbars_Dock_Area_Right";
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Right.Size = new System.Drawing.Size(0, 513);
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Right.ToolbarsManager = this.tbManager;
//
// _HeadOfficeInfoForm_Toolbars_Dock_Area_Top
//
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Top.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Top.BackColor = System.Drawing.SystemColors.Control;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Top.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Top;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Top.ForeColor = System.Drawing.SystemColors.ControlText;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Top.Location = new System.Drawing.Point(0, 0);
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Top.Name = "_HeadOfficeInfoForm_Toolbars_Dock_Area_Top";
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Top.Size = new System.Drawing.Size(885, 43);
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Top.ToolbarsManager = this.tbManager;
//
// _HeadOfficeInfoForm_Toolbars_Dock_Area_Bottom
//
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Bottom.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Bottom.BackColor = System.Drawing.SystemColors.Control;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Bottom.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Bottom;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Bottom.ForeColor = System.Drawing.SystemColors.ControlText;
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Bottom.Location = new System.Drawing.Point(0, 599);
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Bottom.Name = "_HeadOfficeInfoForm_Toolbars_Dock_Area_Bottom";
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(885, 0);
this._HeadOfficeInfoForm_Toolbars_Dock_Area_Bottom.ToolbarsManager = this.tbManager;
//
// ultraToolbarsDockArea1
//
this.ultraToolbarsDockArea1.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this.ultraToolbarsDockArea1.BackColor = System.Drawing.SystemColors.Control;
this.ultraToolbarsDockArea1.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Top;
this.ultraToolbarsDockArea1.ForeColor = System.Drawing.SystemColors.ControlText;
this.ultraToolbarsDockArea1.Location = new System.Drawing.Point(0, 43);
this.ultraToolbarsDockArea1.Name = "ultraToolbarsDockArea1";
this.ultraToolbarsDockArea1.Size = new System.Drawing.Size(885, 43);
this.ultraToolbarsDockArea1.ToolbarsManager = this.tbManager;
//
// ultraToolbarsDockArea2
//
this.ultraToolbarsDockArea2.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this.ultraToolbarsDockArea2.BackColor = System.Drawing.SystemColors.Control;
this.ultraToolbarsDockArea2.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Bottom;
this.ultraToolbarsDockArea2.ForeColor = System.Drawing.SystemColors.ControlText;
this.ultraToolbarsDockArea2.Location = new System.Drawing.Point(0, 599);
this.ultraToolbarsDockArea2.Name = "ultraToolbarsDockArea2";
this.ultraToolbarsDockArea2.Size = new System.Drawing.Size(885, 0);
this.ultraToolbarsDockArea2.ToolbarsManager = this.tbManager;
//
// ultraToolbarsDockArea3
//
this.ultraToolbarsDockArea3.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this.ultraToolbarsDockArea3.BackColor = System.Drawing.SystemColors.Control;
this.ultraToolbarsDockArea3.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Left;
this.ultraToolbarsDockArea3.ForeColor = System.Drawing.SystemColors.ControlText;
this.ultraToolbarsDockArea3.Location = new System.Drawing.Point(0, 86);
this.ultraToolbarsDockArea3.Name = "ultraToolbarsDockArea3";
this.ultraToolbarsDockArea3.Size = new System.Drawing.Size(0, 513);
this.ultraToolbarsDockArea3.ToolbarsManager = this.tbManager;
//
// ultraToolbarsDockArea4
//
this.ultraToolbarsDockArea4.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this.ultraToolbarsDockArea4.BackColor = System.Drawing.SystemColors.Control;
this.ultraToolbarsDockArea4.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Right;
this.ultraToolbarsDockArea4.ForeColor = System.Drawing.SystemColors.ControlText;
this.ultraToolbarsDockArea4.Location = new System.Drawing.Point(885, 86);
this.ultraToolbarsDockArea4.Name = "ultraToolbarsDockArea4";
this.ultraToolbarsDockArea4.Size = new System.Drawing.Size(0, 513);
this.ultraToolbarsDockArea4.ToolbarsManager = this.tbManager;
//
// _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, 86);
this._panelLeft_Toolbars_Dock_Area_Top.Name = "_panelLeft_Toolbars_Dock_Area_Top";
this._panelLeft_Toolbars_Dock_Area_Top.Size = new System.Drawing.Size(885, 0);
this._panelLeft_Toolbars_Dock_Area_Top.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, 599);
this._panelLeft_Toolbars_Dock_Area_Bottom.Name = "_panelLeft_Toolbars_Dock_Area_Bottom";
this._panelLeft_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(885, 0);
this._panelLeft_Toolbars_Dock_Area_Bottom.ToolbarsManager = this.tbmPopups;
//
// _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, 86);
this._panelLeft_Toolbars_Dock_Area_Left.Name = "_panelLeft_Toolbars_Dock_Area_Left";
this._panelLeft_Toolbars_Dock_Area_Left.Size = new System.Drawing.Size(0, 513);
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(885, 86);
this._panelLeft_Toolbars_Dock_Area_Right.Name = "_panelLeft_Toolbars_Dock_Area_Right";
this._panelLeft_Toolbars_Dock_Area_Right.Size = new System.Drawing.Size(0, 513);
this._panelLeft_Toolbars_Dock_Area_Right.ToolbarsManager = this.tbmPopups;
//
// HeadOfficeInfoForm
//
this.AllowDrop = true;
this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
this.ClientSize = new System.Drawing.Size(885, 599);
this.Controls.Add(this.panelCustom);
this.Controls.Add(this.panelRight);
this.Controls.Add(this.panelLeft);
this.Controls.Add(this.ckIsDirty);
this.Controls.Add(this._panelLeft_Toolbars_Dock_Area_Left);
this.Controls.Add(this._panelLeft_Toolbars_Dock_Area_Right);
this.Controls.Add(this.ultraToolbarsDockArea3);
this.Controls.Add(this.ultraToolbarsDockArea4);
this.Controls.Add(this._HeadOfficeInfoForm_Toolbars_Dock_Area_Left);
this.Controls.Add(this._HeadOfficeInfoForm_Toolbars_Dock_Area_Right);
this.Controls.Add(this._panelLeft_Toolbars_Dock_Area_Bottom);
this.Controls.Add(this.ultraToolbarsDockArea2);
this.Controls.Add(this._HeadOfficeInfoForm_Toolbars_Dock_Area_Bottom);
this.Controls.Add(this._panelLeft_Toolbars_Dock_Area_Top);
this.Controls.Add(this.ultraToolbarsDockArea1);
this.Controls.Add(this._HeadOfficeInfoForm_Toolbars_Dock_Area_Top);
this.helpProvider1.SetHelpKeyword(this, "");
this.helpProvider1.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic);
this.MinimumSize = new System.Drawing.Size(614, 563);
this.Name = "HeadOfficeInfoForm";
this.helpProvider1.SetShowHelp(this, true);
this.ShowInTaskbar = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
this.Closing += new System.ComponentModel.CancelEventHandler(this.HeadOfficeInfoForm_Closing);
this.Load += new System.EventHandler(this.HeadOfficeInfoForm_Load);
this.SizeChanged += new System.EventHandler(this.HeadOfficeInfoForm_SizeChanged);
this.DragDrop += new System.Windows.Forms.DragEventHandler(this.Form_DragDrop);
this.DragEnter += new System.Windows.Forms.DragEventHandler(this.Form_DragEnter);
((System.ComponentModel.ISupportInitialize)(this.tbManager)).EndInit();
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.edPostalAddress)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.tbmPopups)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.edPhysicalAddress)).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.cbClientGroup)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbRegion)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.ErrorProvider)).EndInit();
this.panelRight.ResumeLayout(false);
this.panelRight.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.edContactNotes)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbContractID)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.dtContractExpires)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.ckUsesBanking)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.edNotes)).EndInit();
this.panelCustom.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.gridCustom)).EndInit();
this.ResumeLayout(false);
}
#endregion
// __ _ _ ___ ____ __ __ __ __ __ ___ ___
// / _)( )( )/ __)(_ _)/ \( \/ ) / _)/ \( \( _)
// ( (_ )()( \__ \ )( ( () )) ( ( (_( () )) ) )) _)
// \__) \__/ (___/ (__) \__/(_/\/\_) \__)\__/(___/(___)
//
#region Form Load / Close
//variable to hold user form settings
//UIUserFormSetting mFormSetting;
///
/// Prepare the form
///
///
///
private void HeadOfficeInfoForm_Load(object sender, System.EventArgs e)
{
//case 1039 //log.Debug("HeadOfficeInfoForm_Load");
//
// helpProvider1
//
this.helpProvider1.HelpNamespace = Util.BaseHelpUrl + "head_offices.htm";
Cursor.Current = Cursors.WaitCursor;
this.Visible=false;
this.Icon = Resource1.HeadOffice16icon;
//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 HeadOffice edit screen from elsewhere in the program)
if(AyaBizUtils.Right("Object.HeadOffice")< (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.HeadOffice")));
this.Close();
return;
}
InitializeComboBoxes();
DataBind();
Util.LoadFormCustomization("HeadOfficeInfo", this, tbManager, false);
Util.PluginInsertMenu(tbManager, new Util.PluginMenuOptionData(true, RootObjectTypes.HeadOffice, mHeadOffice, null));//case 941
Util.LocalizeHelperInsertMenu(tbManager, this); //case 1810
Util.Localize(this);
Util.Localize(tbmPopups);
Cursor.Current = Cursors.Default;
if (AyaBizUtils.Right("Object.Report") < (int)SecurityLevelTypes.ReadOnly)
{
tbManager.Tools["LT:UI.Toolbar.Print"].SharedProps.Visible = false;
}
else
{
tbManager.Tools["LT:UI.Toolbar.Print"].SharedProps.Visible = true;
Util.ReportFillList(this.tbManager.Tools["REPORTLIST"], HeadOfficeList.ReportKey,
HeadOfficeListDetailed.ReportKey);
}
//Case 152
(new TabOrderManager(this)).SetTabOrder(TabOrderManager.TabScheme.AcrossFirst);
//restrict UI based on security settings
RestrictUI();
Application.Idle+= new EventHandler(Application_Idle);
this.Visible=true;
}
///
/// 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 HeadOfficeInfoForm_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
//case 1039 //log.Debug("HeadOfficeInfoForm_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("HeadOfficeInfo", this, tbManager, false);
}
#endregion
#region Form Sizing
///
/// Adjust the layout proportionately as it's sized by user
///
///
///
private void HeadOfficeInfoForm_SizeChanged(object sender, System.EventArgs e)
{
//case 1039 //log.Debug("HeadOfficeInfoForm_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;
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;
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=mHeadOffice.Docs;
d.RootObjectID=mHeadOffice.ID;
d.ExactObjectType = d.RootObjectType = RootObjectTypes.HeadOffice;
d.ShowDialog();
break;
case "LT:UI.Command.RecordHistory": // ButtonTool
RecordHistoryForm RH=new RecordHistoryForm(mHeadOffice.Creator,mHeadOffice.Modifier,mHeadOffice.Created,mHeadOffice.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:UI.Command.Delete": // ButtonTool
RecordUpdate(RecordActionType.DeleteAndExit);
break;
case "REPORTLIST":
{
//case 3736
RecordUpdate(RecordActionType.PromptToSave);
if(Util.ReportHandleToolClickIsSummary(e.Tool))
Util.ReportHandleToolClick(e.Tool,HeadOfficeList.ReportKey,
HeadOfficeList.GetListForSingleItem(mHeadOffice.ID));
else
{
Util.ReportHandleToolClick(e.Tool,HeadOfficeListDetailed.ReportKey,
HeadOfficeListDetailed.GetListForSingleItem(mHeadOffice.ID));
}
Util.ReportFillList(this.tbManager.Tools["REPORTLIST"],HeadOfficeList.ReportKey,
HeadOfficeListDetailed.ReportKey);
break;
}
case "LT:ScheduleMarker.Label.FollowUp":
{
FollowUpSelector f = new FollowUpSelector(mHeadOffice.ID, RootObjectTypes.HeadOffice);
f.ShowDialog();
f.Dispose();
break;
}
case "LT:O.WikiPage":
{
Util.OpenWikiPage(RootObjectTypes.HeadOffice, mHeadOffice.ID,false);
break;
}
}
}
#endregion Toolbar Menu items
#region Popup Address 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;
case "LT:HeadOffice.Label.Notes": // StateButtonTool
btnNotes.Text = Util.LocaleText.GetLocalizedText("HeadOffice.Label.Notes");
edNotes.Visible = true;
edContactNotes.Visible = false;
break;
case "LT:HeadOffice.Label.ContactNotes": // StateButtonTool
btnNotes.Text = Util.LocaleText.GetLocalizedText("HeadOffice.Label.ContactNotes");
edNotes.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.HeadOffice")<(int)SecurityLevelTypes.ReadWrite));
if(bPhysical)
{
AF.AddressToEdit=mHeadOffice.GoToAddress;
AF.CopyToAddressToEdit=mHeadOffice.MailToAddress;
}
else
{
AF.AddressToEdit=mHeadOffice.MailToAddress;
AF.CopyToAddressToEdit=mHeadOffice.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.HeadOffice;
sbf.ObjectID=mHeadOffice.ID;
sbf.ShowDialog();
}
#endregion Popup Address and UsesBanking
#region hyperButtons
private void btnWebAddress_Click(object sender, System.EventArgs e)
{
//case 1039 //log.Debug("btnWebAddress_Click");
Util.OpenWebURL(mHeadOffice.WebAddress);
}
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
{
if(AyaBizUtils.Right("Object.Contract")< (int)SecurityLevelTypes.ReadWrite)
{
//case 1039 //log.Debug("No Contract selected to view and user has no rights to create a new one.");
return;
}
cf.ContractToEdit=Contract.NewItem();
}
cf.Visible=false;
cf.ShowDialog();
if(cf.ChangesMade)
{
mHeadOffice.ContractID=Guid.Empty;
Util.FillGZComboBoxWithNameIDList("Contract",cbContractID,false,Guid.Empty, true);
mHeadOffice.ContractID=cf.ContractToEdit.ID;
}
}
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)
{
mHeadOffice.ClientGroupID=Guid.Empty;
Util.FillGZComboBoxWithNameIDList("ClientGroup",cbClientGroup,false,Guid.Empty, false);
mHeadOffice.ClientGroupID=(Guid)g.SelectedRecordID;
}
}
#endregion hyperButtons
#endregion
#region Form UI / Business object synchronization
private int mLastDocsCount=-1;
///
/// Synchronize the state of the UI to the BO's
///
private void SyncUI()
{
//Read only full address boxes
edPostalAddress.Text=mHeadOffice.MailToAddress.FullAddress;
edPhysicalAddress.Text=mHeadOffice.GoToAddress.FullAddress;
//display HeadOffice name in title bar
this.Text=mHeadOffice.Name;
if(ckUsesBanking.Checked)
{
btnUsesBanking.Enabled=true;
}
else
{
btnUsesBanking.Enabled=false;
}
//Indicate if any docs in icon
//case 918
if (this.mLastDocsCount != mHeadOffice.Docs.Count)
{
this.mLastDocsCount = mHeadOffice.Docs.Count;
Util.AssignedDocsSetImage(tbManager, (mLastDocsCount > 0));
}
}
///
/// 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.HeadOffice")).ToString());
bool bDelete=AyaBizUtils.Right("Object.HeadOffice")== (int)SecurityLevelTypes.ReadWriteDelete;
bool bReadOnly=AyaBizUtils.Right("Object.HeadOffice") < (int)SecurityLevelTypes.ReadWrite;
tbManager.Tools["LT:UI.Command.Delete"].SharedProps.Visible=bDelete;
if(bDelete)
{
gridCustom.DisplayLayout.Override.AllowDelete=DefaultableBoolean.True;
}
else
{
gridCustom.DisplayLayout.Override.AllowDelete=DefaultableBoolean.False;
}
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 = mHeadOffice.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;
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;
//Combo boxes
cbRegion.Enabled=!bReadOnly;
cbClientGroup.Enabled=!bReadOnly;
this.cbContractID.Enabled=!bReadOnly;
this.dtContractExpires.Enabled=!bReadOnly;
//Check boxes
ckActive.Enabled=!bReadOnly;
this.ckUsesBanking.Enabled=!bReadOnly;
//Buttons
// btnClientGroupID.Enabled=false;
// btnClientGroupID.Appearance.ForeColorDisabled=System.Drawing.SystemColors.ControlText;
//Grids
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;
}
}
#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
mHeadOffice.GetBrokenRulesCollection().ListChanged += new System.ComponentModel.ListChangedEventHandler(OnBrokenRulesChanged);
//=-=-=-=-=-=- Form Field bindings =-=-=-=-=-=-=-=-=-=-=-=
//Text editors
Util.BindField(edName,"Text",mHeadOffice,"Name");
Util.BindField(edAccountNumber,"Text",mHeadOffice,"AccountNumber");
Util.BindField(edNotes,"Text",mHeadOffice,"Notes");
Util.BindField(edWebAddress,"Text",mHeadOffice,"WebAddress");
//Contact fields
Util.BindField(edContactNotes, "Text", mHeadOffice, "ContactNotes");
Util.BindField(edContact, "Text", mHeadOffice, "Contact");
Util.BindField(edEmail, "Text", mHeadOffice, "Email");
Util.BindField(edPhone1, "Text", mHeadOffice, "Phone1");
Util.BindField(edPhone2, "Text", mHeadOffice, "Phone2");
Util.BindField(edPhone3, "Text", mHeadOffice, "Phone3");
Util.BindField(edPhone4, "Text", mHeadOffice, "Phone4");
Util.BindField(edPhone5, "Text", mHeadOffice, "Phone5");
//Combo boxes
Util.BindField(cbRegion,"Value",mHeadOffice,"RegionID");
Util.BindField(cbClientGroup,"Value",mHeadOffice,"ClientGroupID");
Util.BindField(cbContractID,"Value",mHeadOffice,"ContractID");
//Check boxes
Util.BindField(ckActive,"Checked",mHeadOffice,"Active");
Util.BindField(ckUsesBanking,"Checked",mHeadOffice,"UsesBanking");
//Date time
Util.BindField(dtContractExpires,"Value", mHeadOffice,"ContractExpires");
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
//Bind IsDirty property to hidden checkbox to
//ensure isdirtychanged event is available
//to data binding infrastructure
Util.BindField(ckIsDirty,"Checked",mHeadOffice,"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,mHeadOffice,ErrorProvider);
}
#endregion
#region Business object editing / adding / deletion related code
private HeadOffice mHeadOffice;
///
/// HeadOffice record to display
/// set by caller
///
public HeadOffice HeadOfficeToEdit
{
get
{
return mHeadOffice;
}
set
{
mHeadOffice=value;
//mHeadOffice.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();
switch(SaveType)
{
case RecordActionType.DeleteAndExit:
if(Util.PromptForDelete()==DialogResult.Yes)
{
try
{
//Delete, then exit
HeadOffice.DeleteItem(mHeadOffice.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(mHeadOffice.IsSavable)
{
mHeadOffice.ApplyEdit();
mHeadOffice.Save();
bClosingHandled=true;
mbChangesMade=true;
this.Close();
return true;
}
if(mHeadOffice.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(mHeadOffice.IsSavable)
{
mHeadOffice.ApplyEdit();
mHeadOffice.Save();
AddNewHeadOffice();
mbChangesMade=true;
return true;
}
if(mHeadOffice.IsDirty)//dirty and unsaveable due to broken rules
{
//User says that's ok, continue on?
if(Util.PromptForBrokenRulesCancelSave()==DialogResult.Yes)
{
//Ok, add new HeadOffice and don't save old record
AddNewHeadOffice();
return true;
}
else return false;
}
//Current record isn't dirty so just add a new HeadOffice
AddNewHeadOffice();
return true;
case RecordActionType.SaveOnly:
if(mHeadOffice.IsSavable)
{
mHeadOffice.ApplyEdit();
mHeadOffice=(HeadOffice)mHeadOffice.Save();
DataBind();
mbChangesMade=true;
return true;
}
return true;
case RecordActionType.PromptToSave:
//Prompt to save and save if
//required
if(mHeadOffice.IsDirty)
{
DialogResult dr=Util.PromptForSave();
if(dr==DialogResult.Cancel)
{
//Cancel
return false;
}
if(dr==DialogResult.Yes)
{
//Save before exit
if(mHeadOffice.IsSavable)
{
mHeadOffice.ApplyEdit();
mHeadOffice.Save();
mbChangesMade=true;
return true;
}
if(mHeadOffice.IsDirty)//dirty and unsaveable due to broken rules
{
if(Util.PromptForBrokenRulesCancelSave()==DialogResult.Yes)
{
return true;
}
else
return false;
}
}
}
return true;
}
return false;
}
///
///
///Creates a new HeadOffice record and opens it for editing
///
private void AddNewHeadOffice()
{
//case 1039 //log.Debug("AddNewHeadOffice");
try
{
mHeadOffice=HeadOffice.NewItem();
//mHeadOffice.BeginEdit();
DataBind();
}
catch(Exception ex)
{
//log.Error("AddNewHeadOffice",ex);
MessageBox.Show(ex.Message+"\r\n"+ex.Source);
}
}
#endregion
#region Form ComboBoxes (Setup / Events)
private void InitializeComboBoxes()
{
//case 1039 //log.Debug("InitializeComboBoxes");
//Load combo boxes with initial values
Util.FillGZComboBoxWithNameIDList("Region", cbRegion, true, mHeadOffice.RegionID, true);
Util.FillGZComboBoxWithNameIDList("ClientGroup",cbClientGroup,true,mHeadOffice.ClientGroupID, false);
Util.FillGZComboBoxWithNameIDList("Contract", cbContractID, true, mHeadOffice.ContractID, true);
}
private void cbRegion_NeedMoreData()
{
Util.FillGZComboBoxWithNameIDList("Region", cbRegion, false, Guid.Empty, true);
}
private void cbClientGroup_NeedMoreData()
{
Util.FillGZComboBoxWithNameIDList("ClientGroup",cbClientGroup,false,Guid.Empty, false);
}
private void cbContractID_NeedMoreData()
{
Util.FillGZComboBoxWithNameIDList("Contract", cbContractID, false, Guid.Empty, true);
}
#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("HeadOffice",gridCustom);
if(bShowCustomFields)
{
this.panelCustom.Visible=true;
Util.GridFromCustomFields(mHeadOffice,gridCustom);
}
else
{
this.panelCustom.Visible=false;
}
}
private void gridCustom_AfterCellUpdate(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e)
{
//case 1039 //log.Debug("gridCustom_AfterCellUpdate");
Util.GridToCustomFields(mHeadOffice,gridCustom);
}
#endregion
#region Drag and drop docs
private void Form_DragEnter(object sender, System.Windows.Forms.DragEventArgs e)
{
Util.DragEnter(e);
}
private void Form_DragDrop(object sender, System.Windows.Forms.DragEventArgs e)
{
Util.DragDrop(e, mHeadOffice.Docs, RootObjectTypes.HeadOffice, mHeadOffice.ID, RootObjectTypes.HeadOffice);
}
#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;
}
return base.ProcessCmdKey(ref msg, keyData);
}
#endregion
}
}