2483 lines
109 KiB
C#
2483 lines
109 KiB
C#
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>
|
|
/// Summary description for UserInfoForm.
|
|
/// </summary>
|
|
public class UserInfoForm : 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.UltraWinToolbars.UltraToolbarsDockArea _UserInfoForm_Toolbars_Dock_Area_Top;
|
|
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _UserInfoForm_Toolbars_Dock_Area_Bottom;
|
|
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _UserInfoForm_Toolbars_Dock_Area_Left;
|
|
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _UserInfoForm_Toolbars_Dock_Area_Right;
|
|
private System.Windows.Forms.ErrorProvider ErrorProvider;
|
|
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 System.Windows.Forms.Panel panelCustom;
|
|
private Infragistics.Win.UltraWinGrid.UltraGrid gridCustom;
|
|
private Infragistics.Win.UltraWinEditors.UltraTextEditor edPhone1;
|
|
private Infragistics.Win.UltraWinEditors.UltraTextEditor edPhone2;
|
|
private Infragistics.Win.UltraWinEditors.UltraTextEditor edEmailAddress;
|
|
private Infragistics.Win.UltraWinEditors.UltraTextEditor edFirstName;
|
|
private Infragistics.Win.Misc.UltraLabel lblFirstName;
|
|
private Infragistics.Win.UltraWinEditors.UltraTextEditor edInitials;
|
|
private Infragistics.Win.Misc.UltraLabel lblInitials;
|
|
private Infragistics.Win.UltraWinEditors.UltraTextEditor edLastName;
|
|
private Infragistics.Win.Misc.UltraLabel lblLastName;
|
|
private Infragistics.Win.UltraWinEditors.UltraTextEditor edPageMaxText;
|
|
private Infragistics.Win.Misc.UltraLabel lblPageMaxText;
|
|
private GZTW.WinForm.Controls.GZUltraComboEditor cbUserType;
|
|
private GZTW.WinForm.Controls.GZUltraComboEditor cbSecurityGroup;
|
|
private Infragistics.Win.UltraWinEditors.UltraTextEditor edPageAddress;
|
|
private Infragistics.Win.UltraWinEditors.UltraTextEditor edNotes;
|
|
private Infragistics.Win.Misc.UltraLabel lblNotes;
|
|
private Infragistics.Win.Misc.UltraButton btnSetLoginPassword;
|
|
private Infragistics.Win.Misc.UltraButton btnSecurityGroup;
|
|
private Infragistics.Win.Misc.UltraLabel lblUserType;
|
|
private Infragistics.Win.Misc.UltraLabel lblRegionID;
|
|
private GZTW.WinForm.Controls.GZUltraComboEditor cbRegionID;
|
|
private GZTW.WinForm.Controls.GZUltraComboEditor cbDefaultLanguage;
|
|
private Infragistics.Win.Misc.UltraLabel lblDefaultLanguage;
|
|
private Infragistics.Win.Misc.UltraLabel lblPhone1;
|
|
private Infragistics.Win.Misc.UltraLabel lblPhone2;
|
|
private Infragistics.Win.Misc.UltraLabel lblPageAddress;
|
|
private Infragistics.Win.Misc.UltraLabel lblEmailAddress;
|
|
private Infragistics.Win.Misc.UltraLabel lblScheduleBackColor;
|
|
private Infragistics.Win.UltraWinEditors.UltraColorPicker cpScheduleBackColor;
|
|
private Infragistics.Win.Misc.UltraButton btnSubContractorID;
|
|
private Infragistics.Win.Misc.UltraButton btnDispatchZoneID;
|
|
private GZTW.WinForm.Controls.GZUltraComboEditor cbDispatchZoneID;
|
|
private Infragistics.Win.Misc.UltraButton btnDefaultWarehouseID;
|
|
private GZTW.WinForm.Controls.GZUltraComboEditor cbDefaultWarehouseID;
|
|
private Infragistics.Win.UltraWinEditors.UltraTextEditor edEmployeeNumber;
|
|
private Infragistics.Win.Misc.UltraLabel lblEmployeeNumber;
|
|
private GZTW.WinForm.Controls.GZUltraComboEditor cbSubContractorID;
|
|
private GZTW.WinForm.Controls.GZUltraComboEditor cbHeadOfficeID;
|
|
private Infragistics.Win.Misc.UltraButton btnHeadOfficeID;
|
|
private GZTW.WinForm.Controls.GZUltraComboEditor cbClientID;
|
|
private Infragistics.Win.Misc.UltraButton btnClientID;
|
|
private Infragistics.Win.Misc.UltraButton btnClearUICustomizations;
|
|
private System.Windows.Forms.HelpProvider helpProvider1;
|
|
private GZTW.WinForm.Controls.GZUltraComboEditor cbTemplate;
|
|
private Infragistics.Win.Misc.UltraLabel lblTemplate;
|
|
private Infragistics.Win.Misc.UltraLabel lblTimeZoneOffset;
|
|
private Infragistics.Win.UltraWinEditors.UltraTextEditor edTimeZoneOffset;
|
|
private System.ComponentModel.IContainer components;
|
|
|
|
|
|
public UserInfoForm()
|
|
{
|
|
//
|
|
// Required for Windows Form Designer support
|
|
//
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
protected override void Dispose( bool disposing )
|
|
{
|
|
if( disposing )
|
|
{
|
|
if(components != null)
|
|
{
|
|
components.Dispose();
|
|
}
|
|
}
|
|
base.Dispose( disposing );
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
Infragistics.Win.UltraWinToolbars.UltraToolbar ultraToolbar1 = new Infragistics.Win.UltraWinToolbars.UltraToolbar("UserEntryMenuBar");
|
|
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 buttonTool4 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UserSkill.Label.List");
|
|
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool5 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UserCertification.Label.List");
|
|
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool6 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.SaveNew");
|
|
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool7 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Save");
|
|
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool8 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Delete");
|
|
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool9 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Close");
|
|
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool10 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.SaveClose");
|
|
Infragistics.Win.Appearance appearance14 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.Appearance appearance15 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool11 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:AssignedDoc.Label.List");
|
|
Infragistics.Win.Appearance appearance16 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.Appearance appearance17 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool12 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.RecordHistory");
|
|
Infragistics.Win.Appearance appearance18 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.Appearance appearance19 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool13 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Save");
|
|
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool14 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.SaveNew");
|
|
Infragistics.Win.Appearance appearance20 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.Appearance appearance21 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool15 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Close");
|
|
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool16 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UserSkill.Label.List");
|
|
Infragistics.Win.Appearance appearance22 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.Appearance appearance23 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool17 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UserCertification.Label.List");
|
|
Infragistics.Win.Appearance appearance24 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.Appearance appearance25 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool18 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Delete");
|
|
Infragistics.Win.Appearance appearance26 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.Appearance appearance27 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool20 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:O.WikiPage");
|
|
Infragistics.Win.Appearance appearance28 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.Appearance appearance29 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.ValueListItem valueListItem4 = new Infragistics.Win.ValueListItem();
|
|
Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.ValueListItem valueListItem3 = new Infragistics.Win.ValueListItem();
|
|
Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.Appearance appearance7 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.ValueListItem valueListItem6 = new Infragistics.Win.ValueListItem();
|
|
Infragistics.Win.Appearance appearance8 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.ValueListItem valueListItem5 = new Infragistics.Win.ValueListItem();
|
|
Infragistics.Win.Appearance appearance9 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.Appearance appearance10 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.Appearance appearance11 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.ValueListItem valueListItem7 = new Infragistics.Win.ValueListItem();
|
|
Infragistics.Win.Appearance appearance12 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.Appearance appearance13 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.ValueListItem valueListItem1 = new Infragistics.Win.ValueListItem();
|
|
Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.ValueListItem valueListItem2 = new Infragistics.Win.ValueListItem();
|
|
Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();
|
|
this.ckIsDirty = new System.Windows.Forms.CheckBox();
|
|
this._UserInfoForm_Toolbars_Dock_Area_Top = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
|
|
this.tbManager = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components);
|
|
this._UserInfoForm_Toolbars_Dock_Area_Bottom = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
|
|
this._UserInfoForm_Toolbars_Dock_Area_Left = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
|
|
this._UserInfoForm_Toolbars_Dock_Area_Right = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
|
|
this.panelLeft = new System.Windows.Forms.Panel();
|
|
this.edTimeZoneOffset = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
|
|
this.lblTimeZoneOffset = new Infragistics.Win.Misc.UltraLabel();
|
|
this.cbTemplate = new GZTW.WinForm.Controls.GZUltraComboEditor();
|
|
this.lblTemplate = new Infragistics.Win.Misc.UltraLabel();
|
|
this.btnClearUICustomizations = new Infragistics.Win.Misc.UltraButton();
|
|
this.cbClientID = new GZTW.WinForm.Controls.GZUltraComboEditor();
|
|
this.btnClientID = new Infragistics.Win.Misc.UltraButton();
|
|
this.cbHeadOfficeID = new GZTW.WinForm.Controls.GZUltraComboEditor();
|
|
this.btnHeadOfficeID = new Infragistics.Win.Misc.UltraButton();
|
|
this.btnDefaultWarehouseID = new Infragistics.Win.Misc.UltraButton();
|
|
this.cbDefaultWarehouseID = new GZTW.WinForm.Controls.GZUltraComboEditor();
|
|
this.cbDefaultLanguage = new GZTW.WinForm.Controls.GZUltraComboEditor();
|
|
this.lblDefaultLanguage = new Infragistics.Win.Misc.UltraLabel();
|
|
this.lblRegionID = new Infragistics.Win.Misc.UltraLabel();
|
|
this.cbRegionID = new GZTW.WinForm.Controls.GZUltraComboEditor();
|
|
this.lblUserType = new Infragistics.Win.Misc.UltraLabel();
|
|
this.btnSecurityGroup = new Infragistics.Win.Misc.UltraButton();
|
|
this.cbSecurityGroup = new GZTW.WinForm.Controls.GZUltraComboEditor();
|
|
this.cbUserType = new GZTW.WinForm.Controls.GZUltraComboEditor();
|
|
this.edInitials = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
|
|
this.lblInitials = new Infragistics.Win.Misc.UltraLabel();
|
|
this.edLastName = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
|
|
this.lblLastName = new Infragistics.Win.Misc.UltraLabel();
|
|
this.edFirstName = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
|
|
this.lblFirstName = new Infragistics.Win.Misc.UltraLabel();
|
|
this.ckActive = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
|
|
this.btnSetLoginPassword = new Infragistics.Win.Misc.UltraButton();
|
|
this.ErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
|
|
this.panelRight = new System.Windows.Forms.Panel();
|
|
this.edEmployeeNumber = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
|
|
this.lblEmployeeNumber = new Infragistics.Win.Misc.UltraLabel();
|
|
this.btnDispatchZoneID = new Infragistics.Win.Misc.UltraButton();
|
|
this.cbDispatchZoneID = new GZTW.WinForm.Controls.GZUltraComboEditor();
|
|
this.lblScheduleBackColor = new Infragistics.Win.Misc.UltraLabel();
|
|
this.cpScheduleBackColor = new Infragistics.Win.UltraWinEditors.UltraColorPicker();
|
|
this.cbSubContractorID = new GZTW.WinForm.Controls.GZUltraComboEditor();
|
|
this.btnSubContractorID = new Infragistics.Win.Misc.UltraButton();
|
|
this.lblPhone2 = new Infragistics.Win.Misc.UltraLabel();
|
|
this.lblPageAddress = new Infragistics.Win.Misc.UltraLabel();
|
|
this.lblEmailAddress = new Infragistics.Win.Misc.UltraLabel();
|
|
this.lblPhone1 = new Infragistics.Win.Misc.UltraLabel();
|
|
this.edNotes = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
|
|
this.lblNotes = new Infragistics.Win.Misc.UltraLabel();
|
|
this.edPageAddress = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
|
|
this.edPhone2 = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
|
|
this.edEmailAddress = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
|
|
this.lblPageMaxText = new Infragistics.Win.Misc.UltraLabel();
|
|
this.edPageMaxText = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
|
|
this.edPhone1 = 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();
|
|
((System.ComponentModel.ISupportInitialize)(this.tbManager)).BeginInit();
|
|
this.panelLeft.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.edTimeZoneOffset)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbTemplate)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbClientID)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbHeadOfficeID)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbDefaultWarehouseID)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbDefaultLanguage)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbRegionID)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbSecurityGroup)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbUserType)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edInitials)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edLastName)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edFirstName)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.ckActive)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.ErrorProvider)).BeginInit();
|
|
this.panelRight.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.edEmployeeNumber)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbDispatchZoneID)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cpScheduleBackColor)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbSubContractorID)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edNotes)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edPageAddress)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edPhone2)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edEmailAddress)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edPageMaxText)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edPhone1)).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(216, 27);
|
|
this.ckIsDirty.TabIndex = 5;
|
|
//
|
|
// _UserInfoForm_Toolbars_Dock_Area_Top
|
|
//
|
|
this._UserInfoForm_Toolbars_Dock_Area_Top.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Top.BackColor = System.Drawing.SystemColors.Control;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Top.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Top;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Top.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Top.Location = new System.Drawing.Point(0, 0);
|
|
this._UserInfoForm_Toolbars_Dock_Area_Top.Name = "_UserInfoForm_Toolbars_Dock_Area_Top";
|
|
this._UserInfoForm_Toolbars_Dock_Area_Top.Size = new System.Drawing.Size(900, 43);
|
|
this._UserInfoForm_Toolbars_Dock_Area_Top.ToolbarsManager = this.tbManager;
|
|
//
|
|
// tbManager
|
|
//
|
|
this.tbManager.DesignerFlags = 1;
|
|
this.tbManager.DockWithinContainer = this;
|
|
this.tbManager.DockWithinContainerBaseType = typeof(System.Windows.Forms.Form);
|
|
this.tbManager.ShowFullMenusDelay = 500;
|
|
ultraToolbar1.DockedColumn = 0;
|
|
ultraToolbar1.DockedRow = 0;
|
|
ultraToolbar1.NonInheritedTools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
|
|
buttonTool1,
|
|
buttonTool2,
|
|
buttonTool19,
|
|
buttonTool3,
|
|
buttonTool4,
|
|
buttonTool5,
|
|
buttonTool6,
|
|
buttonTool7,
|
|
buttonTool8,
|
|
buttonTool9});
|
|
ultraToolbar1.Text = "UserEntryMenuBar";
|
|
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;
|
|
buttonTool10.SharedPropsInternal.AccessibleDescription = "recorddd";
|
|
appearance14.Image = global::AyaNova.Resource1.SaveExit32;
|
|
buttonTool10.SharedPropsInternal.AppearancesLarge.Appearance = appearance14;
|
|
appearance15.Image = global::AyaNova.Resource1.SaveExit16;
|
|
buttonTool10.SharedPropsInternal.AppearancesSmall.Appearance = appearance15;
|
|
buttonTool10.SharedPropsInternal.Caption = "LT:UI.Command.SaveClose";
|
|
appearance16.Image = global::AyaNova.Resource1.Documents32;
|
|
buttonTool11.SharedPropsInternal.AppearancesLarge.Appearance = appearance16;
|
|
appearance17.Image = global::AyaNova.Resource1.Documents16;
|
|
buttonTool11.SharedPropsInternal.AppearancesSmall.Appearance = appearance17;
|
|
buttonTool11.SharedPropsInternal.Caption = "LT:AssignedDoc.Label.List";
|
|
appearance18.Image = global::AyaNova.Resource1.RecordHistory32;
|
|
buttonTool12.SharedPropsInternal.AppearancesLarge.Appearance = appearance18;
|
|
appearance19.Image = global::AyaNova.Resource1.RecordHistory16;
|
|
buttonTool12.SharedPropsInternal.AppearancesSmall.Appearance = appearance19;
|
|
buttonTool12.SharedPropsInternal.Caption = "LT:UI.Command.RecordHistory";
|
|
buttonTool13.SharedPropsInternal.Caption = "LT:UI.Command.Save";
|
|
buttonTool13.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.TextOnlyAlways;
|
|
appearance20.Image = global::AyaNova.Resource1.SaveNew32;
|
|
buttonTool14.SharedPropsInternal.AppearancesLarge.Appearance = appearance20;
|
|
appearance21.Image = global::AyaNova.Resource1.SaveNew16;
|
|
buttonTool14.SharedPropsInternal.AppearancesSmall.Appearance = appearance21;
|
|
buttonTool14.SharedPropsInternal.Caption = "LT:UI.Command.SaveNew";
|
|
buttonTool15.SharedPropsInternal.Caption = "LT:UI.Command.Close";
|
|
buttonTool15.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.TextOnlyAlways;
|
|
appearance22.Image = global::AyaNova.Resource1.UserSkill32;
|
|
buttonTool16.SharedPropsInternal.AppearancesLarge.Appearance = appearance22;
|
|
appearance23.Image = global::AyaNova.Resource1.UserSkill16;
|
|
buttonTool16.SharedPropsInternal.AppearancesSmall.Appearance = appearance23;
|
|
buttonTool16.SharedPropsInternal.Caption = "LT:UserSkill.Label.List";
|
|
appearance24.Image = global::AyaNova.Resource1.UserCertificate32;
|
|
buttonTool17.SharedPropsInternal.AppearancesLarge.Appearance = appearance24;
|
|
appearance25.Image = global::AyaNova.Resource1.UserCertificate16;
|
|
buttonTool17.SharedPropsInternal.AppearancesSmall.Appearance = appearance25;
|
|
buttonTool17.SharedPropsInternal.Caption = "LT:UserCertification.Label.List";
|
|
appearance26.Image = global::AyaNova.Resource1.Delete32;
|
|
buttonTool18.SharedPropsInternal.AppearancesLarge.Appearance = appearance26;
|
|
appearance27.Image = global::AyaNova.Resource1.Delete16;
|
|
buttonTool18.SharedPropsInternal.AppearancesSmall.Appearance = appearance27;
|
|
buttonTool18.SharedPropsInternal.Caption = "LT:UI.Command.Delete";
|
|
appearance28.Image = global::AyaNova.Resource1.Wiki32;
|
|
buttonTool20.SharedPropsInternal.AppearancesLarge.Appearance = appearance28;
|
|
appearance29.Image = global::AyaNova.Resource1.Wiki16;
|
|
buttonTool20.SharedPropsInternal.AppearancesSmall.Appearance = appearance29;
|
|
buttonTool20.SharedPropsInternal.Caption = "LT:O.WikiPage";
|
|
this.tbManager.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
|
|
buttonTool10,
|
|
buttonTool11,
|
|
buttonTool12,
|
|
buttonTool13,
|
|
buttonTool14,
|
|
buttonTool15,
|
|
buttonTool16,
|
|
buttonTool17,
|
|
buttonTool18,
|
|
buttonTool20});
|
|
this.tbManager.UseLargeImagesOnToolbar = true;
|
|
this.tbManager.ToolClick += new Infragistics.Win.UltraWinToolbars.ToolClickEventHandler(this.tbManager_ToolClick);
|
|
//
|
|
// _UserInfoForm_Toolbars_Dock_Area_Bottom
|
|
//
|
|
this._UserInfoForm_Toolbars_Dock_Area_Bottom.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Bottom.BackColor = System.Drawing.SystemColors.Control;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Bottom.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Bottom;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Bottom.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Bottom.Location = new System.Drawing.Point(0, 540);
|
|
this._UserInfoForm_Toolbars_Dock_Area_Bottom.Name = "_UserInfoForm_Toolbars_Dock_Area_Bottom";
|
|
this._UserInfoForm_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(900, 0);
|
|
this._UserInfoForm_Toolbars_Dock_Area_Bottom.ToolbarsManager = this.tbManager;
|
|
//
|
|
// _UserInfoForm_Toolbars_Dock_Area_Left
|
|
//
|
|
this._UserInfoForm_Toolbars_Dock_Area_Left.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Left.BackColor = System.Drawing.SystemColors.Control;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Left.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Left;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Left.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Left.Location = new System.Drawing.Point(0, 43);
|
|
this._UserInfoForm_Toolbars_Dock_Area_Left.Name = "_UserInfoForm_Toolbars_Dock_Area_Left";
|
|
this._UserInfoForm_Toolbars_Dock_Area_Left.Size = new System.Drawing.Size(0, 497);
|
|
this._UserInfoForm_Toolbars_Dock_Area_Left.ToolbarsManager = this.tbManager;
|
|
//
|
|
// _UserInfoForm_Toolbars_Dock_Area_Right
|
|
//
|
|
this._UserInfoForm_Toolbars_Dock_Area_Right.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Right.BackColor = System.Drawing.SystemColors.Control;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Right.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Right;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Right.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this._UserInfoForm_Toolbars_Dock_Area_Right.Location = new System.Drawing.Point(900, 43);
|
|
this._UserInfoForm_Toolbars_Dock_Area_Right.Name = "_UserInfoForm_Toolbars_Dock_Area_Right";
|
|
this._UserInfoForm_Toolbars_Dock_Area_Right.Size = new System.Drawing.Size(0, 497);
|
|
this._UserInfoForm_Toolbars_Dock_Area_Right.ToolbarsManager = this.tbManager;
|
|
//
|
|
// panelLeft
|
|
//
|
|
this.panelLeft.Controls.Add(this.edTimeZoneOffset);
|
|
this.panelLeft.Controls.Add(this.lblTimeZoneOffset);
|
|
this.panelLeft.Controls.Add(this.cbTemplate);
|
|
this.panelLeft.Controls.Add(this.lblTemplate);
|
|
this.panelLeft.Controls.Add(this.btnClearUICustomizations);
|
|
this.panelLeft.Controls.Add(this.cbClientID);
|
|
this.panelLeft.Controls.Add(this.btnClientID);
|
|
this.panelLeft.Controls.Add(this.cbHeadOfficeID);
|
|
this.panelLeft.Controls.Add(this.btnHeadOfficeID);
|
|
this.panelLeft.Controls.Add(this.btnDefaultWarehouseID);
|
|
this.panelLeft.Controls.Add(this.cbDefaultWarehouseID);
|
|
this.panelLeft.Controls.Add(this.cbDefaultLanguage);
|
|
this.panelLeft.Controls.Add(this.lblDefaultLanguage);
|
|
this.panelLeft.Controls.Add(this.lblRegionID);
|
|
this.panelLeft.Controls.Add(this.cbRegionID);
|
|
this.panelLeft.Controls.Add(this.lblUserType);
|
|
this.panelLeft.Controls.Add(this.btnSecurityGroup);
|
|
this.panelLeft.Controls.Add(this.cbSecurityGroup);
|
|
this.panelLeft.Controls.Add(this.cbUserType);
|
|
this.panelLeft.Controls.Add(this.edInitials);
|
|
this.panelLeft.Controls.Add(this.lblInitials);
|
|
this.panelLeft.Controls.Add(this.edLastName);
|
|
this.panelLeft.Controls.Add(this.lblLastName);
|
|
this.panelLeft.Controls.Add(this.edFirstName);
|
|
this.panelLeft.Controls.Add(this.lblFirstName);
|
|
this.panelLeft.Controls.Add(this.ckActive);
|
|
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(300, 497);
|
|
this.panelLeft.TabIndex = 0;
|
|
//
|
|
// edTimeZoneOffset
|
|
//
|
|
this.edTimeZoneOffset.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.edTimeZoneOffset.Location = new System.Drawing.Point(202, 410);
|
|
this.edTimeZoneOffset.Name = "edTimeZoneOffset";
|
|
this.edTimeZoneOffset.Size = new System.Drawing.Size(96, 24);
|
|
this.edTimeZoneOffset.TabIndex = 186;
|
|
this.edTimeZoneOffset.ValueChanged += new System.EventHandler(this.edTimeZoneOffset_ValueChanged);
|
|
//
|
|
// lblTimeZoneOffset
|
|
//
|
|
this.lblTimeZoneOffset.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.lblTimeZoneOffset.Location = new System.Drawing.Point(10, 414);
|
|
this.lblTimeZoneOffset.Name = "lblTimeZoneOffset";
|
|
this.lblTimeZoneOffset.Size = new System.Drawing.Size(134, 19);
|
|
this.lblTimeZoneOffset.TabIndex = 185;
|
|
this.lblTimeZoneOffset.Tag = "";
|
|
this.lblTimeZoneOffset.Text = "LT:User.Label.TimeZoneOffset";
|
|
this.lblTimeZoneOffset.WrapText = false;
|
|
//
|
|
// cbTemplate
|
|
//
|
|
this.cbTemplate.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.cbTemplate.Location = new System.Drawing.Point(202, 374);
|
|
this.cbTemplate.Name = "cbTemplate";
|
|
this.cbTemplate.Size = new System.Drawing.Size(96, 24);
|
|
this.cbTemplate.TabIndex = 182;
|
|
//
|
|
// 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(10, 374);
|
|
this.lblTemplate.Name = "lblTemplate";
|
|
this.lblTemplate.Size = new System.Drawing.Size(134, 18);
|
|
this.lblTemplate.TabIndex = 183;
|
|
this.lblTemplate.Tag = "";
|
|
this.lblTemplate.Text = "LT:O.WorkorderServiceTemplate";
|
|
this.lblTemplate.WrapText = false;
|
|
//
|
|
// btnClearUICustomizations
|
|
//
|
|
this.btnClearUICustomizations.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.btnClearUICustomizations.Location = new System.Drawing.Point(10, 452);
|
|
this.btnClearUICustomizations.Name = "btnClearUICustomizations";
|
|
this.btnClearUICustomizations.Size = new System.Drawing.Size(278, 28);
|
|
this.btnClearUICustomizations.TabIndex = 181;
|
|
this.btnClearUICustomizations.Tag = "";
|
|
this.btnClearUICustomizations.Text = "LT:User.Label.UI.ClearAllLayoutCustomization";
|
|
this.btnClearUICustomizations.Visible = false;
|
|
this.btnClearUICustomizations.Click += new System.EventHandler(this.btnClearUICustomizations_Click);
|
|
//
|
|
// cbClientID
|
|
//
|
|
this.cbClientID.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.cbClientID.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.SuggestAppend;
|
|
appearance5.BackColor = System.Drawing.SystemColors.GrayText;
|
|
valueListItem4.Appearance = appearance5;
|
|
valueListItem4.DataValue = new System.Guid("00000000-0000-0000-0000-000000000000");
|
|
valueListItem4.DisplayText = "";
|
|
appearance6.BackColor = System.Drawing.SystemColors.GrayText;
|
|
valueListItem3.Appearance = appearance6;
|
|
valueListItem3.DataValue = new System.Guid("00000000-0000-0000-0000-000000000000");
|
|
valueListItem3.DisplayText = "";
|
|
this.cbClientID.Items.AddRange(new Infragistics.Win.ValueListItem[] {
|
|
valueListItem4,
|
|
valueListItem3});
|
|
this.cbClientID.LimitToList = true;
|
|
this.cbClientID.Location = new System.Drawing.Point(202, 222);
|
|
this.cbClientID.MaxDropDownItems = 25;
|
|
this.cbClientID.Name = "cbClientID";
|
|
this.cbClientID.Size = new System.Drawing.Size(96, 24);
|
|
this.cbClientID.SortStyle = Infragistics.Win.ValueListSortStyle.Ascending;
|
|
this.cbClientID.TabIndex = 6;
|
|
this.cbClientID.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbClientID_NeedMoreData);
|
|
//
|
|
// btnClientID
|
|
//
|
|
appearance7.TextHAlignAsString = "Left";
|
|
this.btnClientID.Appearance = appearance7;
|
|
this.btnClientID.Location = new System.Drawing.Point(10, 222);
|
|
this.btnClientID.Name = "btnClientID";
|
|
this.btnClientID.Size = new System.Drawing.Size(129, 24);
|
|
this.btnClientID.TabIndex = 7;
|
|
this.btnClientID.Tag = "";
|
|
this.btnClientID.Text = "LT:O.Client";
|
|
this.btnClientID.UseHotTracking = Infragistics.Win.DefaultableBoolean.True;
|
|
this.btnClientID.WrapText = false;
|
|
//
|
|
// cbHeadOfficeID
|
|
//
|
|
this.cbHeadOfficeID.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.cbHeadOfficeID.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.SuggestAppend;
|
|
appearance8.BackColor = System.Drawing.SystemColors.GrayText;
|
|
valueListItem6.Appearance = appearance8;
|
|
valueListItem6.DataValue = new System.Guid("00000000-0000-0000-0000-000000000000");
|
|
valueListItem6.DisplayText = "";
|
|
appearance9.BackColor = System.Drawing.SystemColors.GrayText;
|
|
valueListItem5.Appearance = appearance9;
|
|
valueListItem5.DataValue = new System.Guid("00000000-0000-0000-0000-000000000000");
|
|
valueListItem5.DisplayText = "";
|
|
this.cbHeadOfficeID.Items.AddRange(new Infragistics.Win.ValueListItem[] {
|
|
valueListItem6,
|
|
valueListItem5});
|
|
this.cbHeadOfficeID.LimitToList = true;
|
|
this.cbHeadOfficeID.Location = new System.Drawing.Point(202, 222);
|
|
this.cbHeadOfficeID.MaxDropDownItems = 25;
|
|
this.cbHeadOfficeID.Name = "cbHeadOfficeID";
|
|
this.cbHeadOfficeID.Size = new System.Drawing.Size(96, 24);
|
|
this.cbHeadOfficeID.SortStyle = Infragistics.Win.ValueListSortStyle.Ascending;
|
|
this.cbHeadOfficeID.TabIndex = 178;
|
|
this.cbHeadOfficeID.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbHeadOfficeID_NeedMoreData);
|
|
//
|
|
// btnHeadOfficeID
|
|
//
|
|
appearance10.TextHAlignAsString = "Left";
|
|
this.btnHeadOfficeID.Appearance = appearance10;
|
|
this.btnHeadOfficeID.Location = new System.Drawing.Point(10, 222);
|
|
this.btnHeadOfficeID.Name = "btnHeadOfficeID";
|
|
this.btnHeadOfficeID.Size = new System.Drawing.Size(129, 24);
|
|
this.btnHeadOfficeID.TabIndex = 177;
|
|
this.btnHeadOfficeID.Tag = "";
|
|
this.btnHeadOfficeID.Text = "LT:O.HeadOffice";
|
|
this.btnHeadOfficeID.UseHotTracking = Infragistics.Win.DefaultableBoolean.True;
|
|
this.btnHeadOfficeID.WrapText = false;
|
|
//
|
|
// btnDefaultWarehouseID
|
|
//
|
|
appearance11.TextHAlignAsString = "Left";
|
|
this.btnDefaultWarehouseID.Appearance = appearance11;
|
|
this.btnDefaultWarehouseID.Location = new System.Drawing.Point(10, 295);
|
|
this.btnDefaultWarehouseID.Name = "btnDefaultWarehouseID";
|
|
this.btnDefaultWarehouseID.Size = new System.Drawing.Size(129, 25);
|
|
this.btnDefaultWarehouseID.TabIndex = 10;
|
|
this.btnDefaultWarehouseID.Tag = "";
|
|
this.btnDefaultWarehouseID.Text = "LT:User.Label.DefaultWarehouseID";
|
|
this.btnDefaultWarehouseID.UseHotTracking = Infragistics.Win.DefaultableBoolean.True;
|
|
this.btnDefaultWarehouseID.WrapText = false;
|
|
this.btnDefaultWarehouseID.Click += new System.EventHandler(this.btnDefaultWarehouseID_Click);
|
|
//
|
|
// cbDefaultWarehouseID
|
|
//
|
|
this.cbDefaultWarehouseID.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.cbDefaultWarehouseID.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.SuggestAppend;
|
|
appearance12.BackColor = System.Drawing.SystemColors.GrayText;
|
|
valueListItem7.Appearance = appearance12;
|
|
valueListItem7.DataValue = new System.Guid("00000000-0000-0000-0000-000000000000");
|
|
valueListItem7.DisplayText = "";
|
|
this.cbDefaultWarehouseID.Items.AddRange(new Infragistics.Win.ValueListItem[] {
|
|
valueListItem7});
|
|
this.cbDefaultWarehouseID.LimitToList = true;
|
|
this.cbDefaultWarehouseID.Location = new System.Drawing.Point(202, 295);
|
|
this.cbDefaultWarehouseID.MaxDropDownItems = 25;
|
|
this.cbDefaultWarehouseID.Name = "cbDefaultWarehouseID";
|
|
this.cbDefaultWarehouseID.Size = new System.Drawing.Size(96, 24);
|
|
this.cbDefaultWarehouseID.SortStyle = Infragistics.Win.ValueListSortStyle.Ascending;
|
|
this.cbDefaultWarehouseID.TabIndex = 9;
|
|
this.cbDefaultWarehouseID.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbDefaultWarehouseID_NeedMoreData);
|
|
//
|
|
// cbDefaultLanguage
|
|
//
|
|
this.cbDefaultLanguage.AllowEmptySelection = false;
|
|
this.cbDefaultLanguage.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.cbDefaultLanguage.Location = new System.Drawing.Point(202, 332);
|
|
this.cbDefaultLanguage.Name = "cbDefaultLanguage";
|
|
this.cbDefaultLanguage.Size = new System.Drawing.Size(96, 24);
|
|
this.cbDefaultLanguage.TabIndex = 11;
|
|
//
|
|
// lblDefaultLanguage
|
|
//
|
|
this.lblDefaultLanguage.Location = new System.Drawing.Point(10, 332);
|
|
this.lblDefaultLanguage.Name = "lblDefaultLanguage";
|
|
this.lblDefaultLanguage.Size = new System.Drawing.Size(142, 19);
|
|
this.lblDefaultLanguage.TabIndex = 174;
|
|
this.lblDefaultLanguage.Tag = "";
|
|
this.lblDefaultLanguage.Text = "LT:Common.Label.DefaultLanguage";
|
|
this.lblDefaultLanguage.WrapText = false;
|
|
//
|
|
// lblRegionID
|
|
//
|
|
this.lblRegionID.Location = new System.Drawing.Point(10, 258);
|
|
this.lblRegionID.Name = "lblRegionID";
|
|
this.lblRegionID.Size = new System.Drawing.Size(152, 19);
|
|
this.lblRegionID.TabIndex = 168;
|
|
this.lblRegionID.Tag = "";
|
|
this.lblRegionID.Text = "LT:O.Region";
|
|
this.lblRegionID.WrapText = false;
|
|
//
|
|
// cbRegionID
|
|
//
|
|
this.cbRegionID.AllowEmptySelection = false;
|
|
this.cbRegionID.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.cbRegionID.Location = new System.Drawing.Point(202, 258);
|
|
this.cbRegionID.Name = "cbRegionID";
|
|
this.cbRegionID.Size = new System.Drawing.Size(96, 24);
|
|
this.cbRegionID.TabIndex = 8;
|
|
this.cbRegionID.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbRegionID_NeedMoreData);
|
|
//
|
|
// lblUserType
|
|
//
|
|
this.lblUserType.Location = new System.Drawing.Point(10, 185);
|
|
this.lblUserType.Name = "lblUserType";
|
|
this.lblUserType.Size = new System.Drawing.Size(163, 18);
|
|
this.lblUserType.TabIndex = 151;
|
|
this.lblUserType.Tag = "";
|
|
this.lblUserType.Text = "LT:User.Label.UserType";
|
|
this.lblUserType.WrapText = false;
|
|
//
|
|
// btnSecurityGroup
|
|
//
|
|
appearance13.TextHAlignAsString = "Left";
|
|
this.btnSecurityGroup.Appearance = appearance13;
|
|
this.btnSecurityGroup.Location = new System.Drawing.Point(10, 148);
|
|
this.btnSecurityGroup.Name = "btnSecurityGroup";
|
|
this.btnSecurityGroup.Size = new System.Drawing.Size(129, 24);
|
|
this.btnSecurityGroup.TabIndex = 4;
|
|
this.btnSecurityGroup.Tag = "";
|
|
this.btnSecurityGroup.Text = "LT:O.SecurityGroup";
|
|
this.btnSecurityGroup.UseHotTracking = Infragistics.Win.DefaultableBoolean.True;
|
|
this.btnSecurityGroup.WrapText = false;
|
|
this.btnSecurityGroup.Click += new System.EventHandler(this.btnSecurityGroup_Click);
|
|
//
|
|
// cbSecurityGroup
|
|
//
|
|
this.cbSecurityGroup.AllowEmptySelection = false;
|
|
this.cbSecurityGroup.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.cbSecurityGroup.Location = new System.Drawing.Point(202, 148);
|
|
this.cbSecurityGroup.Name = "cbSecurityGroup";
|
|
this.cbSecurityGroup.Size = new System.Drawing.Size(96, 24);
|
|
this.cbSecurityGroup.TabIndex = 3;
|
|
this.cbSecurityGroup.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbSecurityGroup_NeedMoreData);
|
|
//
|
|
// cbUserType
|
|
//
|
|
this.cbUserType.AllowEmptySelection = false;
|
|
this.cbUserType.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.cbUserType.Location = new System.Drawing.Point(202, 185);
|
|
this.cbUserType.Name = "cbUserType";
|
|
this.cbUserType.Size = new System.Drawing.Size(96, 24);
|
|
this.cbUserType.TabIndex = 5;
|
|
//
|
|
// edInitials
|
|
//
|
|
this.edInitials.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.edInitials.Location = new System.Drawing.Point(202, 111);
|
|
this.edInitials.Name = "edInitials";
|
|
this.edInitials.Size = new System.Drawing.Size(96, 24);
|
|
this.edInitials.TabIndex = 2;
|
|
//
|
|
// lblInitials
|
|
//
|
|
this.lblInitials.Location = new System.Drawing.Point(10, 111);
|
|
this.lblInitials.Name = "lblInitials";
|
|
this.lblInitials.Size = new System.Drawing.Size(115, 18);
|
|
this.lblInitials.TabIndex = 119;
|
|
this.lblInitials.Tag = "";
|
|
this.lblInitials.Text = "LT:User.Label.Initials";
|
|
this.lblInitials.WrapText = false;
|
|
//
|
|
// edLastName
|
|
//
|
|
this.edLastName.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.edLastName.Location = new System.Drawing.Point(202, 74);
|
|
this.edLastName.Name = "edLastName";
|
|
this.edLastName.Size = new System.Drawing.Size(96, 24);
|
|
this.edLastName.TabIndex = 1;
|
|
//
|
|
// lblLastName
|
|
//
|
|
this.lblLastName.Location = new System.Drawing.Point(10, 74);
|
|
this.lblLastName.Name = "lblLastName";
|
|
this.lblLastName.Size = new System.Drawing.Size(124, 18);
|
|
this.lblLastName.TabIndex = 117;
|
|
this.lblLastName.Tag = "";
|
|
this.lblLastName.Text = "LT:User.Label.LastName";
|
|
this.lblLastName.WrapText = false;
|
|
//
|
|
// edFirstName
|
|
//
|
|
this.edFirstName.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.edFirstName.Location = new System.Drawing.Point(202, 37);
|
|
this.edFirstName.Name = "edFirstName";
|
|
this.edFirstName.Size = new System.Drawing.Size(96, 24);
|
|
this.edFirstName.TabIndex = 0;
|
|
//
|
|
// lblFirstName
|
|
//
|
|
this.lblFirstName.Location = new System.Drawing.Point(10, 37);
|
|
this.lblFirstName.Name = "lblFirstName";
|
|
this.lblFirstName.Size = new System.Drawing.Size(153, 18);
|
|
this.lblFirstName.TabIndex = 94;
|
|
this.lblFirstName.Tag = "";
|
|
this.lblFirstName.Text = "LT:User.Label.FirstName";
|
|
this.lblFirstName.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(259, 19);
|
|
this.ckActive.TabIndex = 12;
|
|
this.ckActive.Tag = "";
|
|
this.ckActive.Text = "LT:Common.Label.Active";
|
|
//
|
|
// btnSetLoginPassword
|
|
//
|
|
this.btnSetLoginPassword.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.btnSetLoginPassword.Location = new System.Drawing.Point(10, 9);
|
|
this.btnSetLoginPassword.Name = "btnSetLoginPassword";
|
|
this.btnSetLoginPassword.Size = new System.Drawing.Size(296, 28);
|
|
this.btnSetLoginPassword.TabIndex = 0;
|
|
this.btnSetLoginPassword.Tag = "";
|
|
this.btnSetLoginPassword.Text = "LT:UI.Label.SetLoginPassword";
|
|
this.btnSetLoginPassword.Click += new System.EventHandler(this.btnSetLoginPassword_Click);
|
|
//
|
|
// ErrorProvider
|
|
//
|
|
this.ErrorProvider.ContainerControl = this;
|
|
//
|
|
// panelRight
|
|
//
|
|
this.panelRight.Controls.Add(this.edEmployeeNumber);
|
|
this.panelRight.Controls.Add(this.lblEmployeeNumber);
|
|
this.panelRight.Controls.Add(this.btnDispatchZoneID);
|
|
this.panelRight.Controls.Add(this.cbDispatchZoneID);
|
|
this.panelRight.Controls.Add(this.lblScheduleBackColor);
|
|
this.panelRight.Controls.Add(this.cpScheduleBackColor);
|
|
this.panelRight.Controls.Add(this.cbSubContractorID);
|
|
this.panelRight.Controls.Add(this.btnSubContractorID);
|
|
this.panelRight.Controls.Add(this.lblPhone2);
|
|
this.panelRight.Controls.Add(this.lblPageAddress);
|
|
this.panelRight.Controls.Add(this.lblEmailAddress);
|
|
this.panelRight.Controls.Add(this.lblPhone1);
|
|
this.panelRight.Controls.Add(this.edNotes);
|
|
this.panelRight.Controls.Add(this.lblNotes);
|
|
this.panelRight.Controls.Add(this.edPageAddress);
|
|
this.panelRight.Controls.Add(this.edPhone2);
|
|
this.panelRight.Controls.Add(this.edEmailAddress);
|
|
this.panelRight.Controls.Add(this.lblPageMaxText);
|
|
this.panelRight.Controls.Add(this.edPageMaxText);
|
|
this.panelRight.Controls.Add(this.edPhone1);
|
|
this.panelRight.Controls.Add(this.btnSetLoginPassword);
|
|
this.panelRight.Dock = System.Windows.Forms.DockStyle.Left;
|
|
this.panelRight.Location = new System.Drawing.Point(300, 43);
|
|
this.panelRight.Name = "panelRight";
|
|
this.panelRight.Size = new System.Drawing.Size(318, 497);
|
|
this.panelRight.TabIndex = 101;
|
|
//
|
|
// edEmployeeNumber
|
|
//
|
|
this.edEmployeeNumber.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.edEmployeeNumber.Location = new System.Drawing.Point(211, 231);
|
|
this.edEmployeeNumber.Name = "edEmployeeNumber";
|
|
this.edEmployeeNumber.Size = new System.Drawing.Size(96, 24);
|
|
this.edEmployeeNumber.TabIndex = 6;
|
|
//
|
|
// lblEmployeeNumber
|
|
//
|
|
this.lblEmployeeNumber.Location = new System.Drawing.Point(10, 231);
|
|
this.lblEmployeeNumber.Name = "lblEmployeeNumber";
|
|
this.lblEmployeeNumber.Size = new System.Drawing.Size(134, 18);
|
|
this.lblEmployeeNumber.TabIndex = 170;
|
|
this.lblEmployeeNumber.Tag = "";
|
|
this.lblEmployeeNumber.Text = "LT:User.Label.EmployeeNumber";
|
|
this.lblEmployeeNumber.WrapText = false;
|
|
//
|
|
// btnDispatchZoneID
|
|
//
|
|
appearance1.TextHAlignAsString = "Left";
|
|
this.btnDispatchZoneID.Appearance = appearance1;
|
|
this.btnDispatchZoneID.Location = new System.Drawing.Point(10, 342);
|
|
this.btnDispatchZoneID.Name = "btnDispatchZoneID";
|
|
this.btnDispatchZoneID.Size = new System.Drawing.Size(133, 24);
|
|
this.btnDispatchZoneID.TabIndex = 11;
|
|
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);
|
|
//
|
|
// cbDispatchZoneID
|
|
//
|
|
this.cbDispatchZoneID.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.cbDispatchZoneID.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.SuggestAppend;
|
|
appearance2.BackColor = System.Drawing.SystemColors.GrayText;
|
|
valueListItem1.Appearance = appearance2;
|
|
valueListItem1.DataValue = new System.Guid("00000000-0000-0000-0000-000000000000");
|
|
valueListItem1.DisplayText = "";
|
|
this.cbDispatchZoneID.Items.AddRange(new Infragistics.Win.ValueListItem[] {
|
|
valueListItem1});
|
|
this.cbDispatchZoneID.LimitToList = true;
|
|
this.cbDispatchZoneID.Location = new System.Drawing.Point(211, 342);
|
|
this.cbDispatchZoneID.MaxDropDownItems = 25;
|
|
this.cbDispatchZoneID.Name = "cbDispatchZoneID";
|
|
this.cbDispatchZoneID.Size = new System.Drawing.Size(95, 24);
|
|
this.cbDispatchZoneID.SortStyle = Infragistics.Win.ValueListSortStyle.Ascending;
|
|
this.cbDispatchZoneID.TabIndex = 10;
|
|
this.cbDispatchZoneID.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbDispatchZoneID_NeedMoreData);
|
|
//
|
|
// lblScheduleBackColor
|
|
//
|
|
this.lblScheduleBackColor.Location = new System.Drawing.Point(10, 310);
|
|
this.lblScheduleBackColor.Name = "lblScheduleBackColor";
|
|
this.lblScheduleBackColor.Size = new System.Drawing.Size(163, 14);
|
|
this.lblScheduleBackColor.TabIndex = 166;
|
|
this.lblScheduleBackColor.Tag = "";
|
|
this.lblScheduleBackColor.Text = "LT:User.Label.ScheduleBackColor";
|
|
this.lblScheduleBackColor.WrapText = false;
|
|
//
|
|
// cpScheduleBackColor
|
|
//
|
|
this.cpScheduleBackColor.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.cpScheduleBackColor.Location = new System.Drawing.Point(211, 305);
|
|
this.cpScheduleBackColor.Name = "cpScheduleBackColor";
|
|
this.cpScheduleBackColor.Size = new System.Drawing.Size(95, 24);
|
|
this.cpScheduleBackColor.TabIndex = 9;
|
|
this.cpScheduleBackColor.Text = "Control";
|
|
this.cpScheduleBackColor.ColorChanged += new System.EventHandler(this.cpScheduleBackColor_ColorChanged);
|
|
//
|
|
// cbSubContractorID
|
|
//
|
|
this.cbSubContractorID.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.cbSubContractorID.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.SuggestAppend;
|
|
appearance3.BackColor = System.Drawing.SystemColors.GrayText;
|
|
valueListItem2.Appearance = appearance3;
|
|
valueListItem2.DataValue = new System.Guid("00000000-0000-0000-0000-000000000000");
|
|
valueListItem2.DisplayText = "";
|
|
this.cbSubContractorID.Items.AddRange(new Infragistics.Win.ValueListItem[] {
|
|
valueListItem2});
|
|
this.cbSubContractorID.LimitToList = true;
|
|
this.cbSubContractorID.Location = new System.Drawing.Point(211, 268);
|
|
this.cbSubContractorID.MaxDropDownItems = 25;
|
|
this.cbSubContractorID.Name = "cbSubContractorID";
|
|
this.cbSubContractorID.Size = new System.Drawing.Size(96, 24);
|
|
this.cbSubContractorID.SortStyle = Infragistics.Win.ValueListSortStyle.Ascending;
|
|
this.cbSubContractorID.TabIndex = 7;
|
|
this.cbSubContractorID.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbSubContractorID_NeedMoreData);
|
|
//
|
|
// btnSubContractorID
|
|
//
|
|
appearance4.TextHAlignAsString = "Left";
|
|
this.btnSubContractorID.Appearance = appearance4;
|
|
this.btnSubContractorID.Location = new System.Drawing.Point(10, 268);
|
|
this.btnSubContractorID.Name = "btnSubContractorID";
|
|
this.btnSubContractorID.Size = new System.Drawing.Size(133, 24);
|
|
this.btnSubContractorID.TabIndex = 8;
|
|
this.btnSubContractorID.Tag = "";
|
|
this.btnSubContractorID.Text = "LT:User.Label.SubContractor";
|
|
this.btnSubContractorID.UseHotTracking = Infragistics.Win.DefaultableBoolean.True;
|
|
this.btnSubContractorID.WrapText = false;
|
|
this.btnSubContractorID.Click += new System.EventHandler(this.btnSubContractorID_Click);
|
|
//
|
|
// lblPhone2
|
|
//
|
|
this.lblPhone2.Location = new System.Drawing.Point(10, 120);
|
|
this.lblPhone2.Name = "lblPhone2";
|
|
this.lblPhone2.Size = new System.Drawing.Size(86, 18);
|
|
this.lblPhone2.TabIndex = 136;
|
|
this.lblPhone2.Tag = "";
|
|
this.lblPhone2.Text = "LT:User.Label.Phone2";
|
|
this.lblPhone2.WrapText = false;
|
|
//
|
|
// lblPageAddress
|
|
//
|
|
this.lblPageAddress.Location = new System.Drawing.Point(10, 157);
|
|
this.lblPageAddress.Name = "lblPageAddress";
|
|
this.lblPageAddress.Size = new System.Drawing.Size(96, 18);
|
|
this.lblPageAddress.TabIndex = 135;
|
|
this.lblPageAddress.Tag = "";
|
|
this.lblPageAddress.Text = "LT:User.Label.PageAddress";
|
|
this.lblPageAddress.WrapText = false;
|
|
//
|
|
// lblEmailAddress
|
|
//
|
|
this.lblEmailAddress.Location = new System.Drawing.Point(10, 194);
|
|
this.lblEmailAddress.Name = "lblEmailAddress";
|
|
this.lblEmailAddress.Size = new System.Drawing.Size(86, 18);
|
|
this.lblEmailAddress.TabIndex = 134;
|
|
this.lblEmailAddress.Tag = "";
|
|
this.lblEmailAddress.Text = "LT:User.Label.EmailAddress";
|
|
this.lblEmailAddress.WrapText = false;
|
|
//
|
|
// lblPhone1
|
|
//
|
|
this.lblPhone1.Location = new System.Drawing.Point(10, 83);
|
|
this.lblPhone1.Name = "lblPhone1";
|
|
this.lblPhone1.Size = new System.Drawing.Size(105, 19);
|
|
this.lblPhone1.TabIndex = 133;
|
|
this.lblPhone1.Tag = "";
|
|
this.lblPhone1.Text = "LT:User.Label.Phone1";
|
|
this.lblPhone1.WrapText = false;
|
|
//
|
|
// edNotes
|
|
//
|
|
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, 397);
|
|
this.edNotes.Multiline = true;
|
|
this.edNotes.Name = "edNotes";
|
|
this.edNotes.Size = new System.Drawing.Size(297, 95);
|
|
this.edNotes.TabIndex = 12;
|
|
//
|
|
// lblNotes
|
|
//
|
|
this.lblNotes.Location = new System.Drawing.Point(10, 378);
|
|
this.lblNotes.Name = "lblNotes";
|
|
this.lblNotes.Size = new System.Drawing.Size(288, 19);
|
|
this.lblNotes.TabIndex = 132;
|
|
this.lblNotes.Tag = "";
|
|
this.lblNotes.Text = "LT:User.Label.Notes";
|
|
//
|
|
// edPageAddress
|
|
//
|
|
this.edPageAddress.AcceptsReturn = true;
|
|
this.edPageAddress.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.edPageAddress.Location = new System.Drawing.Point(211, 157);
|
|
this.edPageAddress.Name = "edPageAddress";
|
|
this.edPageAddress.Size = new System.Drawing.Size(96, 24);
|
|
this.edPageAddress.TabIndex = 4;
|
|
//
|
|
// edPhone2
|
|
//
|
|
this.edPhone2.AcceptsReturn = true;
|
|
this.edPhone2.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.edPhone2.Location = new System.Drawing.Point(211, 120);
|
|
this.edPhone2.Name = "edPhone2";
|
|
this.edPhone2.Size = new System.Drawing.Size(96, 24);
|
|
this.edPhone2.TabIndex = 3;
|
|
//
|
|
// edEmailAddress
|
|
//
|
|
this.edEmailAddress.AcceptsReturn = true;
|
|
this.edEmailAddress.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.edEmailAddress.Location = new System.Drawing.Point(211, 194);
|
|
this.edEmailAddress.Name = "edEmailAddress";
|
|
this.edEmailAddress.Size = new System.Drawing.Size(96, 24);
|
|
this.edEmailAddress.TabIndex = 5;
|
|
//
|
|
// lblPageMaxText
|
|
//
|
|
this.lblPageMaxText.Location = new System.Drawing.Point(10, 46);
|
|
this.lblPageMaxText.Name = "lblPageMaxText";
|
|
this.lblPageMaxText.Size = new System.Drawing.Size(115, 19);
|
|
this.lblPageMaxText.TabIndex = 127;
|
|
this.lblPageMaxText.Tag = "";
|
|
this.lblPageMaxText.Text = "LT:User.Label.PageMaxText";
|
|
this.lblPageMaxText.WrapText = false;
|
|
//
|
|
// edPageMaxText
|
|
//
|
|
this.edPageMaxText.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.edPageMaxText.Location = new System.Drawing.Point(211, 46);
|
|
this.edPageMaxText.Name = "edPageMaxText";
|
|
this.edPageMaxText.Size = new System.Drawing.Size(96, 24);
|
|
this.edPageMaxText.TabIndex = 1;
|
|
//
|
|
// edPhone1
|
|
//
|
|
this.edPhone1.AcceptsReturn = true;
|
|
this.edPhone1.Anchor = System.Windows.Forms.AnchorStyles.Top;
|
|
this.edPhone1.Location = new System.Drawing.Point(220, 83);
|
|
this.edPhone1.Name = "edPhone1";
|
|
this.edPhone1.Size = new System.Drawing.Size(87, 24);
|
|
this.edPhone1.TabIndex = 2;
|
|
//
|
|
// panelCustom
|
|
//
|
|
this.panelCustom.Controls.Add(this.gridCustom);
|
|
this.panelCustom.Dock = System.Windows.Forms.DockStyle.Right;
|
|
this.panelCustom.Location = new System.Drawing.Point(631, 43);
|
|
this.panelCustom.Name = "panelCustom";
|
|
this.panelCustom.Size = new System.Drawing.Size(269, 497);
|
|
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, 497);
|
|
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);
|
|
//
|
|
// UserInfoForm
|
|
//
|
|
this.AllowDrop = true;
|
|
this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
|
|
this.ClientSize = new System.Drawing.Size(900, 540);
|
|
this.Controls.Add(this.panelCustom);
|
|
this.Controls.Add(this.panelRight);
|
|
this.Controls.Add(this.panelLeft);
|
|
this.Controls.Add(this.ckIsDirty);
|
|
this.Controls.Add(this._UserInfoForm_Toolbars_Dock_Area_Left);
|
|
this.Controls.Add(this._UserInfoForm_Toolbars_Dock_Area_Right);
|
|
this.Controls.Add(this._UserInfoForm_Toolbars_Dock_Area_Bottom);
|
|
this.Controls.Add(this._UserInfoForm_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 = "UserInfoForm";
|
|
this.helpProvider1.SetShowHelp(this, true);
|
|
this.ShowInTaskbar = false;
|
|
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
|
|
this.Closing += new System.ComponentModel.CancelEventHandler(this.UserInfoForm_Closing);
|
|
this.Load += new System.EventHandler(this.UserInfoForm_Load);
|
|
this.SizeChanged += new System.EventHandler(this.UserInfoForm_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.edTimeZoneOffset)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbTemplate)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbClientID)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbHeadOfficeID)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbDefaultWarehouseID)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbDefaultLanguage)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbRegionID)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbSecurityGroup)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbUserType)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edInitials)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edLastName)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edFirstName)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.ckActive)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.ErrorProvider)).EndInit();
|
|
this.panelRight.ResumeLayout(false);
|
|
this.panelRight.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.edEmployeeNumber)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbDispatchZoneID)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cpScheduleBackColor)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.cbSubContractorID)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edNotes)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edPageAddress)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edPhone2)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edEmailAddress)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edPageMaxText)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.edPhone1)).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;
|
|
|
|
PartWarehousePickList mWarehouses = null;
|
|
|
|
/// <summary>
|
|
/// Prepare the form
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
private void UserInfoForm_Load(object sender, System.EventArgs e)
|
|
{
|
|
//
|
|
// helpProvider1
|
|
//
|
|
this.helpProvider1.HelpNamespace = Util.BaseHelpUrl + "users_entry_screen.htm";
|
|
|
|
//case 1039 //log.Debug("UserInfoForm_Load");
|
|
|
|
|
|
Cursor.Current = Cursors.WaitCursor;
|
|
this.Visible=false;
|
|
|
|
this.Icon = Resource1.User16icon;
|
|
|
|
//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 User edit screen from elsewhere in the program)
|
|
if(AyaBizUtils.Right("Object.User")< (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.User")));
|
|
|
|
this.Close();
|
|
return;
|
|
}
|
|
|
|
InitializeComboBoxes();
|
|
|
|
|
|
DataBind();
|
|
|
|
Util.LoadFormCustomization("UserInfo", this, tbManager, false);
|
|
Util.PluginInsertMenu(tbManager, new Util.PluginMenuOptionData(true, RootObjectTypes.User, mUser, null));//case 941
|
|
Util.LocalizeHelperInsertMenu(tbManager, this); //case 1810
|
|
Util.Localize(this);
|
|
|
|
//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 2082
|
|
mWarehouses = PartWarehousePickList.GetList(false);
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// Used to track whether the close was done by the program
|
|
/// or done by the user clicking on the upper left corner X control
|
|
/// </summary>
|
|
bool bClosingHandled=false;
|
|
/// <summary>
|
|
/// Save form layout and grid layout for next time
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
private void UserInfoForm_Closing(object sender, System.ComponentModel.CancelEventArgs e)
|
|
{
|
|
//case 1039 //log.Debug("UserInfoForm_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("UserInfo", this, tbManager, false);
|
|
|
|
//case 1163
|
|
//update time zone display on main form in case it
|
|
//was just changed
|
|
Util.frmMain.Status("");
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Form Sizing
|
|
/// <summary>
|
|
/// Adjust the layout proportionately as it's sized by user
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
private void UserInfoForm_SizeChanged(object sender, System.EventArgs e)
|
|
{
|
|
//case 1039 //log.Debug("UserInfoForm_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
|
|
int nGap = 16;
|
|
|
|
//Size and align controls in Left panel
|
|
lblFirstName.Width = nLeftWidth - nGap;
|
|
edFirstName.Left=nLeftWidth;
|
|
edFirstName.Width=nRightWidth;
|
|
|
|
lblLastName.Width = nLeftWidth - nGap;
|
|
edLastName.Left=nLeftWidth;
|
|
edLastName.Width=nRightWidth;
|
|
|
|
lblInitials.Width = nLeftWidth - nGap;
|
|
edInitials.Left=nLeftWidth;
|
|
edInitials.Width=nRightWidth;
|
|
|
|
btnSecurityGroup.Width = nLeftWidth - nGap;
|
|
cbSecurityGroup.Left=nLeftWidth;
|
|
cbSecurityGroup.Width=nRightWidth;
|
|
|
|
lblUserType.Width = nLeftWidth - nGap;
|
|
cbUserType.Left=nLeftWidth;
|
|
cbUserType.Width=nRightWidth;
|
|
|
|
btnHeadOfficeID.Width = nLeftWidth - nGap;
|
|
cbHeadOfficeID.Left=nLeftWidth;
|
|
cbHeadOfficeID.Width=nRightWidth;
|
|
|
|
btnClientID.Width = nLeftWidth - nGap;
|
|
cbClientID.Left=nLeftWidth;
|
|
cbClientID.Width=nRightWidth;
|
|
|
|
|
|
lblRegionID.Width = nLeftWidth - nGap;
|
|
cbRegionID.Left=nLeftWidth;
|
|
cbRegionID.Width=nRightWidth;
|
|
|
|
lblDefaultLanguage.Width = nLeftWidth - nGap;
|
|
cbDefaultLanguage.Left=nLeftWidth;
|
|
cbDefaultLanguage.Width=nRightWidth;
|
|
|
|
lblTemplate.Width = nLeftWidth - nGap;
|
|
cbTemplate.Left = nLeftWidth;
|
|
cbTemplate.Width = nRightWidth;
|
|
|
|
lblTimeZoneOffset.Width = nLeftWidth - nGap;
|
|
edTimeZoneOffset.Left = nLeftWidth;
|
|
edTimeZoneOffset.Width = nRightWidth;
|
|
|
|
btnDefaultWarehouseID.Width = nLeftWidth - nGap;
|
|
cbDefaultWarehouseID.Left=nLeftWidth;
|
|
cbDefaultWarehouseID.Width=nRightWidth;
|
|
|
|
//Size and align controls in right panel
|
|
nRightWidth=nRightWidth-8;
|
|
|
|
lblPageMaxText.Width = nLeftWidth - nGap;
|
|
edPageMaxText.Left=nLeftWidth+8;
|
|
edPageMaxText.Width=nRightWidth;
|
|
|
|
lblPhone1.Width = nLeftWidth - nGap;
|
|
edPhone1.Left=nLeftWidth+8;
|
|
edPhone1.Width=nRightWidth;
|
|
|
|
lblPhone2.Width = nLeftWidth - nGap;
|
|
edPhone2.Left=nLeftWidth+8;
|
|
edPhone2.Width=nRightWidth;
|
|
|
|
lblPageAddress.Width = nLeftWidth - nGap;
|
|
edPageAddress.Left=nLeftWidth+8;
|
|
edPageAddress.Width=nRightWidth;
|
|
|
|
lblEmailAddress.Width = nLeftWidth - nGap;
|
|
edEmailAddress.Left=nLeftWidth+8;
|
|
edEmailAddress.Width=nRightWidth;
|
|
|
|
lblEmployeeNumber.Width = nLeftWidth - nGap;
|
|
edEmployeeNumber.Left=nLeftWidth+8;
|
|
edEmployeeNumber.Width=nRightWidth;
|
|
|
|
btnSubContractorID.Width = nLeftWidth - nGap;
|
|
cbSubContractorID.Left=nLeftWidth+8;
|
|
cbSubContractorID.Width=nRightWidth;
|
|
|
|
lblScheduleBackColor.Width = nLeftWidth - nGap;
|
|
cpScheduleBackColor.Left=nLeftWidth+8;
|
|
cpScheduleBackColor.Width=nRightWidth;
|
|
|
|
btnDispatchZoneID.Width = nLeftWidth - nGap;
|
|
cbDispatchZoneID.Left=nLeftWidth+8;
|
|
cbDispatchZoneID.Width=nRightWidth;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Form UI commands
|
|
|
|
#region Toolbar menu items
|
|
|
|
/// <summary>
|
|
/// Respond to a click on a toolbar menu item
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
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=mUser.Docs;
|
|
d.RootObjectID=mUser.ID;
|
|
d.ExactObjectType = d.RootObjectType = RootObjectTypes.User;
|
|
d.ShowDialog();
|
|
break;
|
|
|
|
case "LT:UI.Command.RecordHistory": // ButtonTool
|
|
RecordHistoryForm RH=new RecordHistoryForm(mUser.Creator,mUser.Modifier,mUser.Created,mUser.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:UserSkill.Label.List": // ButtonTool
|
|
UserInfoSkillsForm uis=new UserInfoSkillsForm(mUser);
|
|
uis.ShowDialog();
|
|
break;
|
|
|
|
case "LT:UserCertification.Label.List": // ButtonTool
|
|
UserInfoCertificationsForm uic=new UserInfoCertificationsForm(mUser);
|
|
uic.ShowDialog();
|
|
break;
|
|
|
|
case "LT:UI.Command.Delete": // ButtonTool
|
|
RecordUpdate(RecordActionType.DeleteAndExit);
|
|
break;
|
|
|
|
case "LT:O.WikiPage":
|
|
{
|
|
Util.OpenWikiPage(RootObjectTypes.User, mUser.ID, false);
|
|
break;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
#endregion Toolbar menu items
|
|
|
|
|
|
#region hyperButtons
|
|
|
|
private void btnClearUICustomizations_Click(object sender, System.EventArgs e)
|
|
{
|
|
//case 1039 //log.Debug("btnClearUICustomizations_Click");
|
|
User.ClearUILayoutSettings(mUser.ID);
|
|
|
|
}
|
|
|
|
|
|
private void btnSecurityGroup_Click(object sender, System.EventArgs e)
|
|
{
|
|
//case 1039 //log.Debug("btnSecurityGroup_Click");
|
|
|
|
//Case 401 added following block to edit current s.g.
|
|
if (cbSecurityGroup.Value != null && (Guid)cbSecurityGroup.Value != Guid.Empty)
|
|
{
|
|
SecurityGroupInfoForm f = new SecurityGroupInfoForm();
|
|
SecurityGroup u = SecurityGroup.GetItem((Guid)cbSecurityGroup.Value);
|
|
f.SecurityGroupToEdit = u;
|
|
f.Visible = false;
|
|
f.ShowDialog();
|
|
f.Dispose();
|
|
}
|
|
}
|
|
|
|
|
|
private void btnSubContractorID_Click(object sender, System.EventArgs e)
|
|
{
|
|
//case 1039 //log.Debug("btnSubContractorID_Click");
|
|
|
|
VendorInfoForm cf=new VendorInfoForm(VendorTypes.SubContractor);
|
|
if(cbSubContractorID.Value!=null && (Guid)cbSubContractorID.Value!=Guid.Empty)
|
|
{
|
|
cf.VendorToEdit=Vendor.GetItem((Guid)cbSubContractorID.Value);
|
|
}
|
|
else
|
|
{
|
|
if(AyaBizUtils.Right("Object.Vendor")< (int)SecurityLevelTypes.ReadWrite)
|
|
{
|
|
//case 1039 //log.Debug("No Vendor (subcontractor) selected to view and user has no rights to create a new one.");
|
|
return;
|
|
}
|
|
|
|
cf.VendorToEdit=Vendor.NewItem();
|
|
//case 1455
|
|
cf.VendorToEdit.VendorType = VendorTypes.SubContractor;
|
|
|
|
//cf.VendorTypeToEdit=VendorTypes.SubContractor;
|
|
}
|
|
cf.Visible=false;
|
|
cf.ShowDialog();
|
|
if(cf.ChangesMade)
|
|
{
|
|
mUser.VendorID=Guid.Empty;
|
|
Util.FillGZComboBoxWithNameIDList("Vendor:SubContractor",cbSubContractorID,false,Guid.Empty, false);
|
|
|
|
mUser.VendorID=cf.VendorToEdit.ID;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
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=cbDispatchZoneID.Value;
|
|
g.GridDataSource=o;
|
|
|
|
g.ShowDialog();
|
|
if(g.ChangesMade)
|
|
{
|
|
mUser.DispatchZoneID=Guid.Empty;
|
|
Util.FillGZComboBoxWithNameIDList("DispatchZone",cbDispatchZoneID,false,Guid.Empty, true);
|
|
mUser.DispatchZoneID=(Guid)g.SelectedRecordID;
|
|
}
|
|
}
|
|
|
|
private void btnDefaultWarehouseID_Click(object sender, System.EventArgs e)
|
|
{
|
|
//case 1039 //log.Debug("btnDefaultWarehouseID_Click");
|
|
|
|
GenericListForm g = new GenericListForm();
|
|
PartWarehouses o = PartWarehouses.GetItems(true);
|
|
g.SelectedRecordID=cbDefaultWarehouseID.Value;
|
|
g.GridDataSource=o;
|
|
|
|
g.ShowDialog();
|
|
if(g.ChangesMade)
|
|
{
|
|
mUser.DefaultWarehouseID=Guid.Empty;
|
|
Util.FillGZComboBoxWithNameIDList("PartWarehouse",cbDefaultWarehouseID,false,Guid.Empty, true);
|
|
mUser.DefaultWarehouseID=(Guid)g.SelectedRecordID;
|
|
}
|
|
}
|
|
|
|
private void btnSetLoginPassword_Click(object sender, System.EventArgs e)
|
|
{
|
|
//case 1039 //log.Debug("btnSetLoginPassword_Click");
|
|
|
|
UserInfoChangePassword d=new UserInfoChangePassword();
|
|
d.UserToChangePassword=this.mUser;
|
|
d.ShowDialog();
|
|
}
|
|
|
|
#endregion hyperButtons
|
|
|
|
#endregion
|
|
|
|
#region Form UI / Business object synchronization
|
|
|
|
|
|
private int mLastDocsCount=-1;
|
|
|
|
|
|
/// <summary>
|
|
/// Synchronize the state of the UI to the BO's
|
|
/// </summary>
|
|
private void SyncUI()
|
|
{
|
|
|
|
|
|
//display User firstname lastname and employee number in title bar
|
|
this.Text=mUser.FirstName + " " + mUser.LastName;
|
|
|
|
//setup display according user type selected
|
|
//if not read only...
|
|
if(AyaBizUtils.Right("Object.User")> (int)SecurityLevelTypes.ReadOnly)
|
|
{
|
|
if(mUser.IsAdministrator || mUser.UserType==UserTypes.Utility)
|
|
{
|
|
#region Administrator / Generator user fields
|
|
//turn off mostly everything
|
|
ckActive.Enabled=false;
|
|
lblFirstName.Enabled=false;
|
|
edFirstName.Enabled=false;
|
|
lblLastName.Enabled=false;
|
|
edLastName.Enabled=false;
|
|
lblInitials.Enabled=false;
|
|
edInitials.Enabled=false;
|
|
cbSecurityGroup.Enabled=false;
|
|
cbUserType.Enabled=false;
|
|
lblRegionID.Enabled=false;
|
|
cbRegionID.Enabled=false;
|
|
lblPageMaxText.Enabled=false;
|
|
edPageMaxText.Enabled=false;
|
|
lblPhone1.Enabled=false;
|
|
edPhone1.Enabled=false;
|
|
lblPhone2.Enabled=false;
|
|
edPhone2.Enabled=false;
|
|
lblPageAddress.Enabled=false;
|
|
edPageAddress.Enabled=false;
|
|
lblEmailAddress.Enabled=false;
|
|
edEmailAddress.Enabled=false;
|
|
lblEmployeeNumber.Enabled=false;
|
|
edEmployeeNumber.Enabled=false;
|
|
lblNotes.Enabled=false;
|
|
edNotes.Enabled=false;
|
|
tbManager.Tools["LT:UI.Command.Delete"].SharedProps.Enabled=false;
|
|
tbManager.Tools["LT:AssignedDoc.Label.List"].SharedProps.Enabled=false;
|
|
|
|
btnClientID.Visible=false;
|
|
cbClientID.Visible=false;
|
|
cbClientID.Enabled=false;
|
|
btnHeadOfficeID.Visible=false;
|
|
cbHeadOfficeID.Visible=false;
|
|
this.cbDefaultWarehouseID.Enabled=false;
|
|
this.lblEmployeeNumber.Enabled=false;
|
|
this.edEmployeeNumber.Enabled=false;
|
|
this.cbSubContractorID.Enabled=false;
|
|
this.lblScheduleBackColor.Enabled=false;
|
|
this.cpScheduleBackColor.Enabled=false;
|
|
this.cbDispatchZoneID.Enabled=false;
|
|
tbManager.Tools["LT:UserSkill.Label.List"].SharedProps.Enabled=false;
|
|
tbManager.Tools["LT:UserCertification.Label.List"].SharedProps.Enabled=false;
|
|
#endregion
|
|
}
|
|
else
|
|
{
|
|
#region Set user type enabled fields
|
|
|
|
switch(mUser.UserType)
|
|
{
|
|
case UserTypes.Administrator:
|
|
{
|
|
btnClientID.Visible=true;
|
|
cbClientID.Visible=true;
|
|
cbClientID.Enabled=false;
|
|
btnHeadOfficeID.Visible=false;
|
|
cbHeadOfficeID.Visible=false;
|
|
this.cbDefaultWarehouseID.Enabled=false;
|
|
this.lblEmployeeNumber.Enabled=true;
|
|
this.edEmployeeNumber.Enabled=true;
|
|
this.cbSubContractorID.Enabled=false;
|
|
this.lblScheduleBackColor.Enabled=false;
|
|
this.cpScheduleBackColor.Enabled=false;
|
|
this.cbDispatchZoneID.Enabled=false;
|
|
tbManager.Tools["LT:UserSkill.Label.List"].SharedProps.Enabled=false;
|
|
tbManager.Tools["LT:UserCertification.Label.List"].SharedProps.Enabled=false;
|
|
|
|
}
|
|
break;
|
|
case UserTypes.Schedulable:
|
|
{
|
|
btnClientID.Visible= !AyaBizUtils.Lite;
|
|
cbClientID.Visible = !AyaBizUtils.Lite;
|
|
cbClientID.Enabled=false;
|
|
btnHeadOfficeID.Visible=false;
|
|
cbHeadOfficeID.Visible=false;
|
|
this.cbDefaultWarehouseID.Enabled=true;
|
|
this.lblEmployeeNumber.Enabled=true;
|
|
this.edEmployeeNumber.Enabled=true;
|
|
this.cbSubContractorID.Enabled=true;
|
|
this.lblScheduleBackColor.Enabled=true;
|
|
this.cpScheduleBackColor.Enabled=true;
|
|
this.cbDispatchZoneID.Enabled=true;
|
|
tbManager.Tools["LT:UserSkill.Label.List"].SharedProps.Enabled=true;
|
|
tbManager.Tools["LT:UserCertification.Label.List"].SharedProps.Enabled=true;
|
|
|
|
}
|
|
break;
|
|
case UserTypes.NonSchedulable:
|
|
{
|
|
btnClientID.Visible=true;
|
|
cbClientID.Visible=true;
|
|
cbClientID.Enabled=false;
|
|
btnHeadOfficeID.Visible=false;
|
|
cbHeadOfficeID.Visible=false;
|
|
this.cbDefaultWarehouseID.Enabled=false;
|
|
this.lblEmployeeNumber.Enabled=true;
|
|
this.edEmployeeNumber.Enabled=true;
|
|
this.cbSubContractorID.Enabled=false;
|
|
this.lblScheduleBackColor.Enabled=false;
|
|
this.cpScheduleBackColor.Enabled=false;
|
|
this.cbDispatchZoneID.Enabled=false;
|
|
tbManager.Tools["LT:UserSkill.Label.List"].SharedProps.Enabled=false;
|
|
tbManager.Tools["LT:UserCertification.Label.List"].SharedProps.Enabled=false;
|
|
|
|
}
|
|
break;
|
|
case UserTypes.Client:
|
|
{
|
|
btnClientID.Visible=true;
|
|
cbClientID.Visible=true;
|
|
cbClientID.Enabled=true;
|
|
btnHeadOfficeID.Visible=false;
|
|
cbHeadOfficeID.Visible=false;
|
|
this.cbDefaultWarehouseID.Enabled=false;
|
|
this.lblEmployeeNumber.Enabled=false;
|
|
this.edEmployeeNumber.Enabled=false;
|
|
this.cbSubContractorID.Enabled=false;
|
|
this.lblScheduleBackColor.Enabled=false;
|
|
this.cpScheduleBackColor.Enabled=false;
|
|
this.cbDispatchZoneID.Enabled=false;
|
|
tbManager.Tools["LT:UserSkill.Label.List"].SharedProps.Enabled=false;
|
|
tbManager.Tools["LT:UserCertification.Label.List"].SharedProps.Enabled=false;
|
|
|
|
}
|
|
break;
|
|
case UserTypes.HeadOffice:
|
|
{
|
|
btnHeadOfficeID.Visible=true;
|
|
cbHeadOfficeID.Visible=true;
|
|
cbHeadOfficeID.Enabled=true;
|
|
btnClientID.Visible=false;
|
|
cbClientID.Visible=false;
|
|
this.cbDefaultWarehouseID.Enabled=false;
|
|
this.lblEmployeeNumber.Enabled=false;
|
|
this.edEmployeeNumber.Enabled=false;
|
|
this.cbSubContractorID.Enabled=false;
|
|
this.lblScheduleBackColor.Enabled=false;
|
|
this.cpScheduleBackColor.Enabled=false;
|
|
this.cbDispatchZoneID.Enabled=false;
|
|
tbManager.Tools["LT:UserSkill.Label.List"].SharedProps.Enabled=false;
|
|
tbManager.Tools["LT:UserCertification.Label.List"].SharedProps.Enabled=false;
|
|
|
|
}
|
|
break;
|
|
|
|
}
|
|
#endregion Set User type enabled fields
|
|
}
|
|
}
|
|
else
|
|
{
|
|
#region Set user type enabled fields for read only user
|
|
//still need to make visible or invisible the
|
|
//client or head office if that is the type of user login
|
|
switch(mUser.UserType)
|
|
{
|
|
case UserTypes.HeadOffice:
|
|
{
|
|
btnHeadOfficeID.Visible=true;
|
|
cbHeadOfficeID.Visible=true;
|
|
btnClientID.Visible=false;
|
|
cbClientID.Visible=false;
|
|
}
|
|
break;
|
|
default://show client as default for all other but head office
|
|
{
|
|
btnHeadOfficeID.Visible=false;
|
|
cbHeadOfficeID.Visible=false;
|
|
btnClientID.Visible=true;
|
|
cbClientID.Visible=true;
|
|
}break;
|
|
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
|
|
//Indicate if any docs in icon
|
|
//case 918
|
|
if (!AyaBizUtils.Lite && (!mUser.IsAdministrator) && (mUser.UserType != UserTypes.Utility) && (this.mLastDocsCount != mUser.Docs.Count))
|
|
{
|
|
this.mLastDocsCount = mUser.Docs.Count;
|
|
Util.AssignedDocsSetImage(tbManager, (mLastDocsCount > 0));
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// 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)
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
private void Application_Idle(object sender, EventArgs e)
|
|
{
|
|
SyncUI();
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 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
|
|
/// </summary>
|
|
private void RestrictUI()
|
|
{
|
|
//case 1039 //if(log.IsDebugEnabled) //case 1039 //log.Debug("RestrictUI: " + ((SecurityLevelTypes)AyaBizUtils.Right("Object.User")).ToString());
|
|
|
|
|
|
if(AyaBizUtils.Lite || User.IsAdmin)//case 1172
|
|
btnClearUICustomizations.Visible=true;
|
|
|
|
bool bDelete=AyaBizUtils.Right("Object.User")== (int)SecurityLevelTypes.ReadWriteDelete;
|
|
|
|
if (AyaBizUtils.Lite) bDelete = false;
|
|
|
|
bool bReadOnly=AyaBizUtils.Right("Object.User") < (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;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
tbManager.Tools["LT:UI.Command.SaveClose"].SharedProps.Visible=!bReadOnly;
|
|
tbManager.Tools["LT:UI.Command.SaveNew"].SharedProps.Visible=!bReadOnly && !AyaBizUtils.Lite;
|
|
tbManager.Tools["LT:UI.Command.Save"].SharedProps.Visible=!bReadOnly;
|
|
|
|
//Case 181
|
|
tbManager.Tools["LT:UI.Command.Close"].SharedProps.Visible=false;
|
|
|
|
//case 73
|
|
tbManager.Tools["LT:O.WikiPage"].SharedProps.Visible = mUser.CanWiki;
|
|
|
|
//case 1172
|
|
tbManager.Tools["LT:AssignedDoc.Label.List"].SharedProps.Visible = !AyaBizUtils.Lite;
|
|
|
|
//DISABLE EDITABLE CONTROLS
|
|
|
|
//Text editors
|
|
edEmployeeNumber.Enabled=!bReadOnly;
|
|
edFirstName.Enabled=!bReadOnly;
|
|
edLastName.Enabled=!bReadOnly;
|
|
edInitials.Enabled=!bReadOnly;
|
|
edPageMaxText.Enabled=!bReadOnly;
|
|
edPageAddress.Enabled=!bReadOnly;
|
|
edPhone1.Enabled=!bReadOnly;
|
|
edPhone2.Enabled=!bReadOnly;
|
|
edEmailAddress.Enabled=!bReadOnly;
|
|
edNotes.Enabled=!bReadOnly;
|
|
|
|
//Combo boxes
|
|
cbDefaultLanguage.Enabled=!bReadOnly;
|
|
cbDefaultWarehouseID.Enabled=!bReadOnly;
|
|
cbDispatchZoneID.Enabled=!bReadOnly;
|
|
cbSecurityGroup.Enabled=!bReadOnly;
|
|
cbRegionID.Enabled=!bReadOnly;
|
|
cbSubContractorID.Enabled=!bReadOnly;
|
|
cbUserType.Enabled=!bReadOnly;
|
|
cbClientID.Enabled=!bReadOnly;
|
|
this.cpScheduleBackColor.Enabled=!bReadOnly;
|
|
|
|
//Check boxes
|
|
ckActive.Enabled=!bReadOnly;
|
|
|
|
|
|
//Buttons
|
|
btnSecurityGroup.Enabled=!bReadOnly;
|
|
btnSecurityGroup.Appearance.ForeColorDisabled=System.Drawing.SystemColors.ControlText;
|
|
btnSubContractorID.Enabled=!bReadOnly;
|
|
btnSubContractorID.Appearance.ForeColorDisabled=System.Drawing.SystemColors.ControlText;
|
|
btnDefaultWarehouseID.Enabled=!bReadOnly;
|
|
btnDefaultWarehouseID.Appearance.ForeColorDisabled=System.Drawing.SystemColors.ControlText;
|
|
this.btnSetLoginPassword.Enabled=!bReadOnly;
|
|
|
|
//Related object rights
|
|
|
|
//UserSkills - No rights?
|
|
tbManager.Tools["LT:UserSkill.Label.List"].SharedProps.Visible=AyaBizUtils.Right("Object.UserSkill") > (int)SecurityLevelTypes.NoAccess;
|
|
|
|
//User Certifications - No rights?
|
|
tbManager.Tools["LT:UserCertification.Label.List"].SharedProps.Visible=AyaBizUtils.Right("Object.UserCertification") > (int)SecurityLevelTypes.NoAccess;
|
|
|
|
|
|
//case 1172 hide stuff that user doesn't have access to
|
|
if (AyaBizUtils.Lite)
|
|
{
|
|
btnSecurityGroup.Visible = false;
|
|
cbSecurityGroup.Visible = false;
|
|
btnSubContractorID.Visible = false;
|
|
cbSubContractorID.Visible = false;
|
|
btnDefaultWarehouseID.Visible = false;
|
|
cbDefaultWarehouseID.Visible = false;
|
|
btnSetLoginPassword.Visible = false;
|
|
btnClientID.Visible = false;
|
|
cbClientID.Visible = false;
|
|
lblUserType.Visible = false;
|
|
cbUserType.Visible = false;
|
|
lblTemplate.Visible = false;
|
|
cbTemplate.Visible = false;
|
|
btnDispatchZoneID.Visible = false;
|
|
cbDispatchZoneID.Visible = false;
|
|
ckActive.Visible = false;
|
|
lblRegionID.Visible = false;
|
|
cbRegionID.Visible = false;
|
|
lblTimeZoneOffset.Visible = false;
|
|
edTimeZoneOffset.Visible = false;
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
#region Form DataBinding and BrokenRules handling
|
|
bool mBinding=false;
|
|
bool bShowCustomFields=false;
|
|
/// <summary>
|
|
/// Bind controls to business objects
|
|
/// </summary>
|
|
private void DataBind()
|
|
{
|
|
//case 1039 //log.Debug("DataBind");
|
|
mBinding=true;
|
|
//Custom fields are not databound, but must be initiated manually...
|
|
FillCustomFieldGrid();
|
|
|
|
//Subscribe to broken rules changed event OnBrokenRulesChanged
|
|
mUser.GetBrokenRulesCollection().ListChanged += new System.ComponentModel.ListChangedEventHandler(OnBrokenRulesChanged);
|
|
|
|
|
|
//=-=-=-=-=-=- Form Field bindings =-=-=-=-=-=-=-=-=-=-=-=
|
|
|
|
//Text editors
|
|
Util.BindField(edEmployeeNumber,"Text",mUser,"EmployeeNumber");
|
|
Util.BindField(edFirstName,"Text",mUser,"FirstName");
|
|
Util.BindField(edLastName,"Text",mUser,"LastName");
|
|
Util.BindField(edInitials,"Text",mUser,"Initials");
|
|
Util.BindField(edPageMaxText,"Text",mUser,"PageMaxText");
|
|
Util.BindField(edPageAddress,"Text",mUser,"PageAddress");
|
|
Util.BindField(edPhone1,"Text",mUser,"Phone1");
|
|
Util.BindField(edPhone2,"Text",mUser,"Phone2");
|
|
Util.BindField(edEmailAddress,"Text",mUser,"EmailAddress");
|
|
Util.BindField(edNotes,"Text",mUser,"Notes");
|
|
|
|
|
|
|
|
//Combo boxes
|
|
Util.BindField(cbDefaultLanguage,"Value",mUser,"DefaultLanguage");
|
|
Util.BindField(cbDefaultWarehouseID,"Value",mUser,"DefaultWarehouseID");
|
|
Util.BindField(cbDispatchZoneID,"Value",mUser,"DispatchZoneID");
|
|
Util.BindField(cbSecurityGroup,"Value",mUser,"MemberOfGroup");
|
|
Util.BindField(cbRegionID,"Value",mUser,"RegionID");
|
|
Util.BindField(cbSubContractorID,"Value",mUser,"VendorID");
|
|
Util.BindField(cbUserType,"Value",mUser,"UserType");
|
|
Util.BindField(cbTemplate, "Value", mUser, "DefaultServiceTemplateID");
|
|
|
|
|
|
//Added: 6-Nov-2006 for wbi
|
|
Util.BindField(cbClientID, "Value", mUser, "ClientID");
|
|
|
|
//Added: 9-Nov-2006 for wbi
|
|
Util.BindField(cbHeadOfficeID, "Value", mUser, "HeadOfficeID");
|
|
|
|
|
|
//Check boxes
|
|
Util.BindField(ckActive,"Checked",mUser,"Active");
|
|
|
|
//NON BINDABLE COLOUR PICKER
|
|
cpScheduleBackColor.Color=Color.FromArgb(mUser.ScheduleBackColor);
|
|
|
|
|
|
//non bindable time zone offset
|
|
//(non bindable because the fucking "ultra"numericeditor from infragistics is shit when it comes to nullable types)
|
|
edTimeZoneOffset.Text = mUser.TimeZoneOffset.ToString();
|
|
|
|
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|
|
|
|
|
|
|
|
//Bind IsDirty property to hidden checkbox to
|
|
//ensure isdirtychanged event is available
|
|
//to data binding infrastructure
|
|
Util.BindField(ckIsDirty,"Checked",mUser,"IsDirty");
|
|
|
|
//Setup initial link to broken rules
|
|
OnBrokenRulesChanged(null,null);
|
|
mBinding=false;
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Handle a change in broken rules
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
private void OnBrokenRulesChanged(object sender, System.ComponentModel.ListChangedEventArgs e)
|
|
{
|
|
Util.BrokenRuleFeedback(this,mUser,ErrorProvider);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#region Business object editing / adding / deletion related code
|
|
|
|
|
|
private User mUser;
|
|
/// <summary>
|
|
/// User record to display
|
|
/// set by caller
|
|
/// </summary>
|
|
public User UserToEdit
|
|
{
|
|
get
|
|
{
|
|
return mUser;
|
|
}
|
|
set
|
|
{
|
|
mUser=value;
|
|
//mUser.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;
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Update record and quit if requested
|
|
///
|
|
/// </summary>
|
|
/// <returns>True if handled, false if not handled</returns>
|
|
private bool RecordUpdate(RecordActionType SaveType)
|
|
{
|
|
//case 1039 //if(log.IsDebugEnabled) //case 1039 //log.Debug("SaveHandler(Action="+SaveType.ToString()+")");
|
|
try
|
|
{
|
|
//switch the focus to a non-editable control
|
|
//so that any changes in the current editable control
|
|
//will get updated before attempting to save
|
|
lblDefaultLanguage.Focus();
|
|
|
|
|
|
//if (log.IsDebugEnabled) //case 1039 //log.Debug("Checking that username and password were entered before saving...");
|
|
//if it's not a delete then check that a username and password are entered
|
|
//if not then open that dialog and cancel this op
|
|
if(SaveType!=RecordActionType.DeleteAndExit && SaveType!=RecordActionType.PromptToSave)
|
|
{
|
|
if(mUser.IsDirty && !mUser.IsSavable)
|
|
{
|
|
string rules=mUser.BrokenRulesText;
|
|
if(rules!=null && rules!="")
|
|
MessageBox.Show(Util.BrokenRuleCollectionLocalizer(rules));
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//case 2082
|
|
//ensure user isn't saved with regionally inaccessible warehouse if they aren't in the default ALL Regions region
|
|
if (SaveType != RecordActionType.DeleteAndExit &&
|
|
mUser.IsDirty &&
|
|
mUser.DefaultWarehouseID!=Guid.Empty &&
|
|
mUser.RegionID != GZTW.AyaNova.BLL.Region.DefaultRegionID)
|
|
{
|
|
System.Collections.Generic.List<Guid> okWarehouses = PartWarehouse.UserValidWarehouseIdList(Guid.Empty,mUser.RegionID);
|
|
|
|
//Guid chosenWareHouseRegionId = mWarehouses[mUser.DefaultWarehouseID].RegionID;
|
|
//if (chosenWareHouseRegionId != GZTW.AyaNova.BLL.Region.DefaultRegionID &&
|
|
// chosenWareHouseRegionId != mUser.RegionID)
|
|
if (!okWarehouses.Contains(mUser.DefaultWarehouseID))
|
|
{
|
|
//then we have a problem
|
|
MessageBox.Show("Invalid Warehouse; not in user's region");
|
|
mUser.DefaultWarehouseID = Guid.Empty;
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
switch(SaveType)
|
|
{
|
|
case RecordActionType.DeleteAndExit:
|
|
if(Util.PromptForDelete()==DialogResult.Yes)
|
|
{
|
|
//Delete, then exit
|
|
try
|
|
{
|
|
User.DeleteItem(mUser.ID);
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
Util.ReportSQLError(ex);
|
|
return false;
|
|
}
|
|
bClosingHandled=true;
|
|
this.Close();
|
|
mbChangesMade=true;
|
|
return true;
|
|
}
|
|
else return false;
|
|
|
|
case RecordActionType.SaveAndExit:
|
|
//if (log.IsDebugEnabled) //case 1039 //log.Debug("processing save and exit...");
|
|
//Save if necessary and exit
|
|
if(mUser.IsSavable)
|
|
{
|
|
// if (log.IsDebugEnabled) //case 1039 //log.Debug("Is saveable applying edit...");
|
|
mUser.ApplyEdit();
|
|
//if (log.IsDebugEnabled) //case 1039 //log.Debug("Calling save...");
|
|
mUser.Save();
|
|
bClosingHandled=true;
|
|
mbChangesMade=true;
|
|
//if (log.IsDebugEnabled) //case 1039 //log.Debug("Calling close...");
|
|
this.Close();
|
|
return true;
|
|
}
|
|
if(mUser.IsDirty)//dirty and unsaveable due to broken rules
|
|
{
|
|
//if (log.IsDebugEnabled) //case 1039 //log.Debug("Is dirty prompting for broken rules cancel...");
|
|
if (Util.PromptForBrokenRulesCancelSave() == DialogResult.Yes)
|
|
{
|
|
// if (log.IsDebugEnabled) //case 1039 //log.Debug("User says ok...");
|
|
bClosingHandled = true;
|
|
this.Close();
|
|
return true;
|
|
}
|
|
else
|
|
{
|
|
//if (log.IsDebugEnabled) //case 1039 //log.Debug("User says no...");
|
|
return false;
|
|
}
|
|
}
|
|
//not dirty so just exit
|
|
bClosingHandled=true;
|
|
this.Close();
|
|
return true;
|
|
|
|
case RecordActionType.SaveAndNew:
|
|
if(mUser.IsSavable)
|
|
{
|
|
mUser.ApplyEdit();
|
|
mUser.Save();
|
|
AddNewUser();
|
|
mbChangesMade=true;
|
|
return true;
|
|
|
|
}
|
|
if(mUser.IsDirty)//dirty and unsaveable due to broken rules
|
|
{
|
|
//User says that's ok, continue on?
|
|
if(Util.PromptForBrokenRulesCancelSave()==DialogResult.Yes)
|
|
{
|
|
//Ok, add new User and don't save old record
|
|
AddNewUser();
|
|
return true;
|
|
}
|
|
else return false;
|
|
|
|
}
|
|
|
|
//Current record isn't dirty so just add a new User
|
|
AddNewUser();
|
|
return true;
|
|
|
|
case RecordActionType.SaveOnly:
|
|
if(mUser.IsSavable)
|
|
{
|
|
mUser.ApplyEdit();
|
|
mUser=(User)mUser.Save();
|
|
DataBind();
|
|
mbChangesMade=true;
|
|
return true;
|
|
|
|
}
|
|
else//does nothing but at least alerts user there is a problem
|
|
Util.PromptForBrokenRulesCancelSave();
|
|
return true;
|
|
|
|
case RecordActionType.PromptToSave:
|
|
//Prompt to save and save if
|
|
//required
|
|
if(mUser.IsDirty)
|
|
{
|
|
DialogResult dr=Util.PromptForSave();
|
|
if(dr==DialogResult.Cancel)
|
|
{
|
|
//Cancel
|
|
return false;
|
|
}
|
|
if(dr==DialogResult.Yes)
|
|
{
|
|
//Save before exit
|
|
|
|
if(mUser.IsSavable)
|
|
{
|
|
mUser.ApplyEdit();
|
|
mUser.Save();
|
|
mbChangesMade=true;
|
|
return true;
|
|
}
|
|
if(mUser.IsDirty)//dirty and unsaveable due to broken rules
|
|
{
|
|
if(Util.PromptForBrokenRulesCancelSave()==DialogResult.Yes)
|
|
{
|
|
return true;
|
|
}
|
|
else
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
if(ex.InnerException.Message.IndexOf("USERCREDS")!=-1)
|
|
{
|
|
MessageBox.Show(Util.BrokenRuleCollectionLocalizer("Error.Object.FieldValueNotValid,User.Label.Login"));
|
|
|
|
//case 1039 //log.Debug("UserCredsWarning-displaying password dialog");
|
|
|
|
UserInfoChangePassword d=new UserInfoChangePassword();
|
|
d.UserToChangePassword=this.mUser;
|
|
d.ShowDialog();
|
|
return false;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
///Creates a new User record and opens it for editing
|
|
/// </summary>
|
|
private void AddNewUser()
|
|
{
|
|
//case 1039 //log.Debug("AddNewUser");
|
|
|
|
try
|
|
{
|
|
mUser=User.NewItem();
|
|
//mUser.BeginEdit();
|
|
DataBind();
|
|
}
|
|
catch(Exception ex)
|
|
{
|
|
//log.Error("AddNewUser",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("PartWarehouse",cbDefaultWarehouseID,true,mUser.DefaultWarehouseID, true);
|
|
Util.FillGZComboBoxWithNameIDList("DispatchZone", cbDispatchZoneID, true, mUser.DispatchZoneID, true);
|
|
Util.FillGZComboBoxWithNameIDList("SecurityGroup",cbSecurityGroup,true,mUser.MemberOfGroup, false);
|
|
Util.FillGZComboBoxWithNameIDList("Region", cbRegionID, true, mUser.RegionID, false);
|
|
|
|
//case 1443
|
|
Util.FillGZComboBoxWithNameIDList("Vendor",cbSubContractorID,true,mUser.VendorID, false);
|
|
|
|
//Added: 6-Nov-2006 for wbi support
|
|
Util.FillGZComboBoxWithNameIDList("Client", cbClientID, true, mUser.ClientID, true);
|
|
|
|
//Added: 9-Nov-2006 for wbi support
|
|
Util.FillGZComboBoxWithNameIDList("HeadOffice", cbHeadOfficeID, true, mUser.HeadOfficeID, true);
|
|
|
|
cbUserType.Items.Add(UserTypes.Administrator,Util.EnumDescConverter.GetEnumDescription(UserTypes.Administrator));
|
|
cbUserType.Items.Add(UserTypes.Schedulable,Util.EnumDescConverter.GetEnumDescription(UserTypes.Schedulable));
|
|
cbUserType.Items.Add(UserTypes.NonSchedulable,Util.EnumDescConverter.GetEnumDescription(UserTypes.NonSchedulable));
|
|
cbUserType.Items.Add(UserTypes.Client,Util.EnumDescConverter.GetEnumDescription(UserTypes.Client));
|
|
cbUserType.Items.Add(UserTypes.HeadOffice,Util.EnumDescConverter.GetEnumDescription(UserTypes.HeadOffice));
|
|
//cbUserType.Items.Add(UserTypes.Utility,Util.EnumDescConverter.GetEnumDescription(UserTypes.Utility));
|
|
|
|
|
|
LocaleList l = LocaleList.GetList();
|
|
foreach(LocaleList.LocaleListInfo lif in l)
|
|
{
|
|
cbDefaultLanguage.Items.Add(lif.Locale);
|
|
}
|
|
|
|
cbTemplate.Items.Clear();
|
|
TemplatePickList UList = TemplatePickList.GetList(WorkorderTypes.TemplateService,true);
|
|
foreach (TemplatePickList.TemplatePickListInfo ui in UList)
|
|
{
|
|
|
|
cbTemplate.Items.Add(ui.ID, ui.Description);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void cbSecurityGroup_NeedMoreData()
|
|
{
|
|
//fetch all the security groups. Can't use util function because
|
|
//it assumes table has an "Active" column and security groups doesn't
|
|
//NVCHANGED
|
|
GenericNVList ls=GenericNVList.GetList("aSecurityGroup","aID","aName",true,false, false);
|
|
cbSecurityGroup.ClearList();
|
|
|
|
//Added: 19-July-2006 Huge performance increase with large lists
|
|
Util.ComboBeginUpdate(cbSecurityGroup);
|
|
|
|
foreach(DictionaryEntry d in ls.BindableList)
|
|
{
|
|
cbSecurityGroup.Items.Add(new Guid(d.Key.ToString()),d.Value.ToString());
|
|
}
|
|
|
|
//Added: 19-July-2006 see above
|
|
Util.ComboEndUpdate(cbSecurityGroup);
|
|
}
|
|
|
|
private void cbSubContractorID_NeedMoreData()
|
|
{
|
|
Util.FillGZComboBoxWithNameIDList("Vendor:SubContractor",cbSubContractorID,false,Guid.Empty, false);
|
|
}
|
|
|
|
private void cbRegionID_NeedMoreData()
|
|
{
|
|
Util.FillGZComboBoxWithNameIDList("Region", cbRegionID, false, Guid.Empty, false);
|
|
}
|
|
|
|
private void cbDispatchZoneID_NeedMoreData()
|
|
{
|
|
Util.FillGZComboBoxWithNameIDList("DispatchZone", cbDispatchZoneID, false, Guid.Empty, true);
|
|
}
|
|
|
|
//Added:6-Nov-2006 for wbi support
|
|
private void cbClientID_NeedMoreData()
|
|
{
|
|
Util.FillGZComboBoxWithNameIDList("Client", cbClientID, false, Guid.Empty, true);
|
|
}
|
|
|
|
//Added:9-Nov-2006 for wbi support
|
|
private void cbHeadOfficeID_NeedMoreData()
|
|
{
|
|
Util.FillGZComboBoxWithNameIDList("HeadOffice", cbHeadOfficeID, false, Guid.Empty, true);
|
|
}
|
|
|
|
private void cbDefaultWarehouseID_NeedMoreData()
|
|
{
|
|
Util.FillGZComboBoxWithNameIDList("PartWarehouse", cbDefaultWarehouseID, false, Guid.Empty, true);
|
|
}
|
|
|
|
|
|
private void cpScheduleBackColor_ColorChanged(object sender, System.EventArgs e)
|
|
{
|
|
if(!mBinding)
|
|
mUser.ScheduleBackColor=cpScheduleBackColor.Color.ToArgb();
|
|
}
|
|
|
|
//case 1163
|
|
private void edTimeZoneOffset_ValueChanged(object sender, EventArgs e)
|
|
{
|
|
if (!mBinding)
|
|
{
|
|
decimal dval = 0;
|
|
if (decimal.TryParse(edTimeZoneOffset.Text, out dval))
|
|
mUser.TimeZoneOffset = dval;
|
|
else
|
|
mUser.TimeZoneOffset = null;
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Custom fields
|
|
|
|
/// <summary>
|
|
/// put custom field data into custom grid and show it if applicable
|
|
/// </summary>
|
|
private void FillCustomFieldGrid()
|
|
{
|
|
//case 1039 //log.Debug("FillCustomFieldGrid");
|
|
|
|
bShowCustomFields=Util.PrepareCustomFieldsGrid("User",gridCustom);
|
|
|
|
if(bShowCustomFields)
|
|
{
|
|
this.panelCustom.Visible=true;
|
|
|
|
Util.GridFromCustomFields(mUser,gridCustom);
|
|
|
|
}
|
|
else
|
|
{
|
|
this.panelCustom.Visible=false;
|
|
}
|
|
|
|
}
|
|
private void gridCustom_AfterCellUpdate(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e)
|
|
{
|
|
|
|
Util.GridToCustomFields(mUser,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)
|
|
{
|
|
if(!mUser.IsAdministrator && mUser.UserType!=UserTypes.Utility)
|
|
Util.DragDrop(e, mUser.Docs, RootObjectTypes.User, mUser.ID, RootObjectTypes.User);
|
|
|
|
}
|
|
#endregion
|
|
|
|
#region Accelerator keys
|
|
/// <summary>
|
|
/// Case 37
|
|
/// </summary>
|
|
/// <param name="msg"></param>
|
|
/// <param name="keyData"></param>
|
|
/// <returns></returns>
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|