using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using GZTW.AyaNova.BLL;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using log4net;
namespace AyaNova
{
///
/// Summary description for RegionInfoForm.
///
public class RegionInfoForm : 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.UltraWinEditors.UltraTextEditor edName;
private Infragistics.Win.Misc.UltraLabel lblName;
private System.Windows.Forms.ErrorProvider ErrorProvider;
private System.Windows.Forms.Panel panelLeft;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsManager tbManager;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _RegionInfoForm_Toolbars_Dock_Area_Left;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _RegionInfoForm_Toolbars_Dock_Area_Right;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _RegionInfoForm_Toolbars_Dock_Area_Top;
private Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea _RegionInfoForm_Toolbars_Dock_Area_Bottom;
private TabControl tcn;
private TabPage tabGeneral;
private TabPage tabCSRAccepted;
private TabPage tabCSRRejected;
private TabPage tabNewWO;
private TabPage tabWOStatusChanged;
private TabPage tabWOClosed;
private TabPage tabFollowUp;
private Infragistics.Win.UltraWinEditors.UltraCheckEditor ckClientNotificationActive;
private Infragistics.Win.UltraWinEditors.UltraTextEditor edReplyToAddress;
private Infragistics.Win.Misc.UltraLabel lblRegionReplyTo;
private Infragistics.Win.UltraWinEditors.UltraTextEditor edWBIUrl;
private Infragistics.Win.Misc.UltraLabel lblWBIUrl;
private Infragistics.Win.UltraWinEditors.UltraCheckEditor ckCSRAcceptedActive;
private Infragistics.Win.UltraWinEditors.UltraTextEditor edCSRAcceptedMsg;
private Infragistics.Win.Misc.UltraLabel ultraLabel3;
private Infragistics.Win.UltraWinEditors.UltraComboEditor cbTemplateTags;
private Infragistics.Win.UltraWinEditors.UltraTextEditor edCSRRejectMsg;
private Infragistics.Win.Misc.UltraLabel ultraLabel4;
private Infragistics.Win.UltraWinEditors.UltraCheckEditor ckCSRRejectedActive;
private Infragistics.Win.UltraWinEditors.UltraTextEditor edNewWOMsg;
private Infragistics.Win.Misc.UltraLabel ultraLabel5;
private Infragistics.Win.UltraWinEditors.UltraCheckEditor ckNewWOActive;
private Infragistics.Win.UltraWinEditors.UltraTextEditor edWOClosedMsg;
private Infragistics.Win.Misc.UltraLabel ultraLabel7;
private Infragistics.Win.UltraWinEditors.UltraCheckEditor ckWOClosedActive;
private Infragistics.Win.UltraWinEditors.UltraCheckEditor ckWOClosedAttachWO;
private GZTW.WinForm.Controls.GZUltraComboEditor cbWOReport;
private Infragistics.Win.UltraWinEditors.UltraTextEditor edWOFollowUpMsg;
private Infragistics.Win.Misc.UltraLabel ultraLabel8;
private Infragistics.Win.UltraWinEditors.UltraCheckEditor ckFollowUpActive;
private Infragistics.Win.Misc.UltraLabel ultraLabel9;
private NumericUpDown edFollowUpDays;
private UltraGrid wostatgrid;
private TabPage tabQuoteStatusChanged;
private Infragistics.Win.Misc.UltraLabel ultraLabel10;
private GZTW.WinForm.Controls.GZUltraComboEditor cbQuoteReport;
private Infragistics.Win.UltraWinEditors.UltraTextEditor edQuoteStatusChangedMessage;
private Infragistics.Win.Misc.UltraLabel ultraLabel6;
private Infragistics.Win.UltraWinEditors.UltraCheckEditor ckQuoteStatusChangedActive;
private GZTW.WinForm.Controls.GZUltraComboEditor cbWorkorderQuoteStatusID;
private Infragistics.Win.Misc.UltraLabel lblWorkorderQuoteStatusID;
private System.ComponentModel.IContainer components;
public RegionInfoForm()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
}
///
/// Clean up any resources being used.
///
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
Infragistics.Win.UltraWinEditors.EditorButton editorButton1 = new Infragistics.Win.UltraWinEditors.EditorButton();
Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance7 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance8 = new Infragistics.Win.Appearance();
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.Appearance appearance12 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance13 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinToolbars.UltraToolbar ultraToolbar1 = new Infragistics.Win.UltraWinToolbars.UltraToolbar("RegionEntryMenuBar");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool1 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.SaveClose");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool13 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:O.WikiPage");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool2 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.RecordHistory");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool3 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.SaveNew");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool4 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Save");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool5 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Delete");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool6 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Close");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool7 = 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 buttonTool8 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.RecordHistory");
Infragistics.Win.Appearance appearance16 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance17 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool9 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Save");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool10 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.SaveNew");
Infragistics.Win.Appearance appearance18 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance19 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool11 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Close");
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool12 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:UI.Command.Delete");
Infragistics.Win.Appearance appearance20 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance21 = new Infragistics.Win.Appearance();
Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool14 = new Infragistics.Win.UltraWinToolbars.ButtonTool("LT:O.WikiPage");
Infragistics.Win.Appearance appearance22 = new Infragistics.Win.Appearance();
Infragistics.Win.Appearance appearance23 = new Infragistics.Win.Appearance();
this.ckIsDirty = new System.Windows.Forms.CheckBox();
this.panelLeft = new System.Windows.Forms.Panel();
this.cbTemplateTags = new Infragistics.Win.UltraWinEditors.UltraComboEditor();
this.tcn = new System.Windows.Forms.TabControl();
this.tabGeneral = new System.Windows.Forms.TabPage();
this.edWBIUrl = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
this.lblWBIUrl = new Infragistics.Win.Misc.UltraLabel();
this.edReplyToAddress = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
this.lblRegionReplyTo = new Infragistics.Win.Misc.UltraLabel();
this.ckClientNotificationActive = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
this.tabCSRAccepted = new System.Windows.Forms.TabPage();
this.edCSRAcceptedMsg = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
this.ultraLabel3 = new Infragistics.Win.Misc.UltraLabel();
this.ckCSRAcceptedActive = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
this.tabCSRRejected = new System.Windows.Forms.TabPage();
this.edCSRRejectMsg = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
this.ultraLabel4 = new Infragistics.Win.Misc.UltraLabel();
this.ckCSRRejectedActive = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
this.tabNewWO = new System.Windows.Forms.TabPage();
this.edNewWOMsg = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
this.ultraLabel5 = new Infragistics.Win.Misc.UltraLabel();
this.ckNewWOActive = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
this.tabWOStatusChanged = new System.Windows.Forms.TabPage();
this.wostatgrid = new Infragistics.Win.UltraWinGrid.UltraGrid();
this.tabWOClosed = new System.Windows.Forms.TabPage();
this.cbWOReport = new GZTW.WinForm.Controls.GZUltraComboEditor();
this.ckWOClosedAttachWO = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
this.edWOClosedMsg = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
this.ultraLabel7 = new Infragistics.Win.Misc.UltraLabel();
this.ckWOClosedActive = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
this.tabFollowUp = new System.Windows.Forms.TabPage();
this.edFollowUpDays = new System.Windows.Forms.NumericUpDown();
this.ultraLabel9 = new Infragistics.Win.Misc.UltraLabel();
this.edWOFollowUpMsg = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
this.ultraLabel8 = new Infragistics.Win.Misc.UltraLabel();
this.ckFollowUpActive = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
this.tabQuoteStatusChanged = new System.Windows.Forms.TabPage();
this.lblWorkorderQuoteStatusID = new Infragistics.Win.Misc.UltraLabel();
this.cbWorkorderQuoteStatusID = new GZTW.WinForm.Controls.GZUltraComboEditor();
this.ultraLabel10 = new Infragistics.Win.Misc.UltraLabel();
this.cbQuoteReport = new GZTW.WinForm.Controls.GZUltraComboEditor();
this.edQuoteStatusChangedMessage = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
this.ultraLabel6 = new Infragistics.Win.Misc.UltraLabel();
this.ckQuoteStatusChangedActive = new Infragistics.Win.UltraWinEditors.UltraCheckEditor();
this.edName = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
this.lblName = new Infragistics.Win.Misc.UltraLabel();
this.ErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
this._RegionInfoForm_Toolbars_Dock_Area_Left = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this.tbManager = new Infragistics.Win.UltraWinToolbars.UltraToolbarsManager(this.components);
this._RegionInfoForm_Toolbars_Dock_Area_Right = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this._RegionInfoForm_Toolbars_Dock_Area_Top = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this._RegionInfoForm_Toolbars_Dock_Area_Bottom = new Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea();
this.panelLeft.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.cbTemplateTags)).BeginInit();
this.tcn.SuspendLayout();
this.tabGeneral.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.edWBIUrl)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.edReplyToAddress)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.ckClientNotificationActive)).BeginInit();
this.tabCSRAccepted.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.edCSRAcceptedMsg)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.ckCSRAcceptedActive)).BeginInit();
this.tabCSRRejected.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.edCSRRejectMsg)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.ckCSRRejectedActive)).BeginInit();
this.tabNewWO.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.edNewWOMsg)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.ckNewWOActive)).BeginInit();
this.tabWOStatusChanged.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.wostatgrid)).BeginInit();
this.tabWOClosed.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.cbWOReport)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.ckWOClosedAttachWO)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.edWOClosedMsg)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.ckWOClosedActive)).BeginInit();
this.tabFollowUp.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.edFollowUpDays)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.edWOFollowUpMsg)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.ckFollowUpActive)).BeginInit();
this.tabQuoteStatusChanged.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.cbWorkorderQuoteStatusID)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.cbQuoteReport)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.edQuoteStatusChangedMessage)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.ckQuoteStatusChangedActive)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.edName)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.ErrorProvider)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.tbManager)).BeginInit();
this.SuspendLayout();
//
// ckIsDirty
//
this.ckIsDirty.Location = new System.Drawing.Point(-336, 28);
this.ckIsDirty.Name = "ckIsDirty";
this.ckIsDirty.Size = new System.Drawing.Size(187, 27);
this.ckIsDirty.TabIndex = 5;
//
// panelLeft
//
this.panelLeft.Controls.Add(this.cbTemplateTags);
this.panelLeft.Controls.Add(this.tcn);
this.panelLeft.Controls.Add(this.edName);
this.panelLeft.Controls.Add(this.lblName);
this.panelLeft.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelLeft.Location = new System.Drawing.Point(0, 43);
this.panelLeft.Name = "panelLeft";
this.panelLeft.Size = new System.Drawing.Size(624, 399);
this.panelLeft.TabIndex = 0;
//
// cbTemplateTags
//
this.cbTemplateTags.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cbTemplateTags.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.SuggestAppend;
appearance1.Image = global::AyaNova.Resource1.New16;
editorButton1.Appearance = appearance1;
this.cbTemplateTags.ButtonsLeft.Add(editorButton1);
this.cbTemplateTags.Location = new System.Drawing.Point(10, 361);
this.cbTemplateTags.Name = "cbTemplateTags";
this.cbTemplateTags.Size = new System.Drawing.Size(610, 24);
this.cbTemplateTags.SortStyle = Infragistics.Win.ValueListSortStyle.AscendingByValue;
this.cbTemplateTags.TabIndex = 129;
this.cbTemplateTags.Visible = false;
this.cbTemplateTags.EditorButtonClick += new Infragistics.Win.UltraWinEditors.EditorButtonEventHandler(this.cbTemplateTags_EditorButtonClick);
//
// tcn
//
this.tcn.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.tcn.Controls.Add(this.tabGeneral);
this.tcn.Controls.Add(this.tabCSRAccepted);
this.tcn.Controls.Add(this.tabCSRRejected);
this.tcn.Controls.Add(this.tabNewWO);
this.tcn.Controls.Add(this.tabWOStatusChanged);
this.tcn.Controls.Add(this.tabWOClosed);
this.tcn.Controls.Add(this.tabFollowUp);
this.tcn.Controls.Add(this.tabQuoteStatusChanged);
this.tcn.Location = new System.Drawing.Point(10, 69);
this.tcn.Name = "tcn";
this.tcn.SelectedIndex = 0;
this.tcn.Size = new System.Drawing.Size(610, 285);
this.tcn.TabIndex = 93;
this.tcn.SelectedIndexChanged += new System.EventHandler(this.tcn_SelectedIndexChanged);
//
// tabGeneral
//
this.tabGeneral.Controls.Add(this.edWBIUrl);
this.tabGeneral.Controls.Add(this.lblWBIUrl);
this.tabGeneral.Controls.Add(this.edReplyToAddress);
this.tabGeneral.Controls.Add(this.lblRegionReplyTo);
this.tabGeneral.Controls.Add(this.ckClientNotificationActive);
this.tabGeneral.Location = new System.Drawing.Point(4, 25);
this.tabGeneral.Name = "tabGeneral";
this.tabGeneral.Padding = new System.Windows.Forms.Padding(3);
this.tabGeneral.Size = new System.Drawing.Size(602, 256);
this.tabGeneral.TabIndex = 0;
this.tabGeneral.Text = "LT:Client.Label.Notification";
this.tabGeneral.UseVisualStyleBackColor = true;
//
// edWBIUrl
//
this.edWBIUrl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.edWBIUrl.Location = new System.Drawing.Point(6, 142);
this.edWBIUrl.Name = "edWBIUrl";
this.edWBIUrl.Size = new System.Drawing.Size(837, 24);
this.edWBIUrl.TabIndex = 95;
//
// lblWBIUrl
//
this.lblWBIUrl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblWBIUrl.Location = new System.Drawing.Point(6, 119);
this.lblWBIUrl.Name = "lblWBIUrl";
this.lblWBIUrl.Size = new System.Drawing.Size(853, 22);
this.lblWBIUrl.TabIndex = 96;
this.lblWBIUrl.Tag = "";
this.lblWBIUrl.Text = "LT:Region.Label.WBIUrl";
//
// edReplyToAddress
//
this.edReplyToAddress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.edReplyToAddress.Location = new System.Drawing.Point(6, 81);
this.edReplyToAddress.Name = "edReplyToAddress";
this.edReplyToAddress.Size = new System.Drawing.Size(839, 24);
this.edReplyToAddress.TabIndex = 93;
//
// lblRegionReplyTo
//
this.lblRegionReplyTo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblRegionReplyTo.Location = new System.Drawing.Point(6, 57);
this.lblRegionReplyTo.Name = "lblRegionReplyTo";
this.lblRegionReplyTo.Size = new System.Drawing.Size(839, 21);
this.lblRegionReplyTo.TabIndex = 94;
this.lblRegionReplyTo.Tag = "";
this.lblRegionReplyTo.Text = "LT:Region.Label.ReplyToEmailAddress";
//
// ckClientNotificationActive
//
this.ckClientNotificationActive.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ckClientNotificationActive.Checked = true;
this.ckClientNotificationActive.CheckState = System.Windows.Forms.CheckState.Checked;
this.ckClientNotificationActive.Location = new System.Drawing.Point(6, 18);
this.ckClientNotificationActive.Name = "ckClientNotificationActive";
this.ckClientNotificationActive.Size = new System.Drawing.Size(835, 27);
this.ckClientNotificationActive.TabIndex = 7;
this.ckClientNotificationActive.Tag = "";
this.ckClientNotificationActive.Text = "LT:Common.Label.Active";
//
// tabCSRAccepted
//
this.tabCSRAccepted.Controls.Add(this.edCSRAcceptedMsg);
this.tabCSRAccepted.Controls.Add(this.ultraLabel3);
this.tabCSRAccepted.Controls.Add(this.ckCSRAcceptedActive);
this.tabCSRAccepted.Location = new System.Drawing.Point(4, 25);
this.tabCSRAccepted.Name = "tabCSRAccepted";
this.tabCSRAccepted.Padding = new System.Windows.Forms.Padding(3);
this.tabCSRAccepted.Size = new System.Drawing.Size(602, 256);
this.tabCSRAccepted.TabIndex = 1;
this.tabCSRAccepted.Text = "LT:Region.Label.CSRAccepted";
this.tabCSRAccepted.UseVisualStyleBackColor = true;
//
// edCSRAcceptedMsg
//
this.edCSRAcceptedMsg.AcceptsReturn = true;
this.edCSRAcceptedMsg.AcceptsTab = true;
this.edCSRAcceptedMsg.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.edCSRAcceptedMsg.Location = new System.Drawing.Point(6, 75);
this.edCSRAcceptedMsg.Multiline = true;
this.edCSRAcceptedMsg.Name = "edCSRAcceptedMsg";
this.edCSRAcceptedMsg.Size = new System.Drawing.Size(280, 237);
this.edCSRAcceptedMsg.TabIndex = 97;
//
// ultraLabel3
//
this.ultraLabel3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ultraLabel3.Location = new System.Drawing.Point(6, 54);
this.ultraLabel3.Name = "ultraLabel3";
this.ultraLabel3.Size = new System.Drawing.Size(259, 19);
this.ultraLabel3.TabIndex = 98;
this.ultraLabel3.Tag = "";
this.ultraLabel3.Text = "LT:Region.Label.ClientNotifyMessage";
//
// ckCSRAcceptedActive
//
this.ckCSRAcceptedActive.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ckCSRAcceptedActive.Checked = true;
this.ckCSRAcceptedActive.CheckState = System.Windows.Forms.CheckState.Checked;
this.ckCSRAcceptedActive.Location = new System.Drawing.Point(6, 18);
this.ckCSRAcceptedActive.Name = "ckCSRAcceptedActive";
this.ckCSRAcceptedActive.Size = new System.Drawing.Size(280, 19);
this.ckCSRAcceptedActive.TabIndex = 8;
this.ckCSRAcceptedActive.Tag = "";
this.ckCSRAcceptedActive.Text = "LT:Common.Label.Active";
//
// tabCSRRejected
//
this.tabCSRRejected.Controls.Add(this.edCSRRejectMsg);
this.tabCSRRejected.Controls.Add(this.ultraLabel4);
this.tabCSRRejected.Controls.Add(this.ckCSRRejectedActive);
this.tabCSRRejected.Location = new System.Drawing.Point(4, 25);
this.tabCSRRejected.Name = "tabCSRRejected";
this.tabCSRRejected.Size = new System.Drawing.Size(602, 256);
this.tabCSRRejected.TabIndex = 2;
this.tabCSRRejected.Text = "LT:Region.Label.CSRRejected";
this.tabCSRRejected.UseVisualStyleBackColor = true;
//
// edCSRRejectMsg
//
this.edCSRRejectMsg.AcceptsReturn = true;
this.edCSRRejectMsg.AcceptsTab = true;
this.edCSRRejectMsg.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.edCSRRejectMsg.Location = new System.Drawing.Point(6, 75);
this.edCSRRejectMsg.Multiline = true;
this.edCSRRejectMsg.Name = "edCSRRejectMsg";
this.edCSRRejectMsg.Size = new System.Drawing.Size(697, 238);
this.edCSRRejectMsg.TabIndex = 100;
//
// ultraLabel4
//
this.ultraLabel4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ultraLabel4.Location = new System.Drawing.Point(6, 54);
this.ultraLabel4.Name = "ultraLabel4";
this.ultraLabel4.Size = new System.Drawing.Size(697, 19);
this.ultraLabel4.TabIndex = 101;
this.ultraLabel4.Tag = "";
this.ultraLabel4.Text = "LT:Region.Label.ClientNotifyMessage";
//
// ckCSRRejectedActive
//
this.ckCSRRejectedActive.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ckCSRRejectedActive.Checked = true;
this.ckCSRRejectedActive.CheckState = System.Windows.Forms.CheckState.Checked;
this.ckCSRRejectedActive.Location = new System.Drawing.Point(6, 18);
this.ckCSRRejectedActive.Name = "ckCSRRejectedActive";
this.ckCSRRejectedActive.Size = new System.Drawing.Size(1008, 19);
this.ckCSRRejectedActive.TabIndex = 99;
this.ckCSRRejectedActive.Tag = "";
this.ckCSRRejectedActive.Text = "LT:Common.Label.Active";
//
// tabNewWO
//
this.tabNewWO.Controls.Add(this.edNewWOMsg);
this.tabNewWO.Controls.Add(this.ultraLabel5);
this.tabNewWO.Controls.Add(this.ckNewWOActive);
this.tabNewWO.Location = new System.Drawing.Point(4, 25);
this.tabNewWO.Name = "tabNewWO";
this.tabNewWO.Size = new System.Drawing.Size(602, 256);
this.tabNewWO.TabIndex = 3;
this.tabNewWO.Text = "LT:Region.Label.NewWO";
this.tabNewWO.UseVisualStyleBackColor = true;
//
// edNewWOMsg
//
this.edNewWOMsg.AcceptsReturn = true;
this.edNewWOMsg.AcceptsTab = true;
this.edNewWOMsg.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.edNewWOMsg.Location = new System.Drawing.Point(6, 75);
this.edNewWOMsg.Multiline = true;
this.edNewWOMsg.Name = "edNewWOMsg";
this.edNewWOMsg.Size = new System.Drawing.Size(1008, 429);
this.edNewWOMsg.TabIndex = 103;
//
// ultraLabel5
//
this.ultraLabel5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ultraLabel5.Location = new System.Drawing.Point(6, 54);
this.ultraLabel5.Name = "ultraLabel5";
this.ultraLabel5.Size = new System.Drawing.Size(1012, 20);
this.ultraLabel5.TabIndex = 104;
this.ultraLabel5.Tag = "";
this.ultraLabel5.Text = "LT:Region.Label.ClientNotifyMessage";
//
// ckNewWOActive
//
this.ckNewWOActive.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ckNewWOActive.Checked = true;
this.ckNewWOActive.CheckState = System.Windows.Forms.CheckState.Checked;
this.ckNewWOActive.Location = new System.Drawing.Point(6, 18);
this.ckNewWOActive.Name = "ckNewWOActive";
this.ckNewWOActive.Size = new System.Drawing.Size(1008, 19);
this.ckNewWOActive.TabIndex = 102;
this.ckNewWOActive.Tag = "";
this.ckNewWOActive.Text = "LT:Common.Label.Active";
//
// tabWOStatusChanged
//
this.tabWOStatusChanged.Controls.Add(this.wostatgrid);
this.tabWOStatusChanged.Location = new System.Drawing.Point(4, 25);
this.tabWOStatusChanged.Name = "tabWOStatusChanged";
this.tabWOStatusChanged.Size = new System.Drawing.Size(602, 256);
this.tabWOStatusChanged.TabIndex = 4;
this.tabWOStatusChanged.Text = "LT:Region.Label.WOStatusChanged";
this.tabWOStatusChanged.UseVisualStyleBackColor = true;
//
// wostatgrid
//
appearance2.BackColor = System.Drawing.SystemColors.Window;
appearance2.BorderColor = System.Drawing.SystemColors.InactiveCaption;
this.wostatgrid.DisplayLayout.Appearance = appearance2;
this.wostatgrid.DisplayLayout.AutoFitStyle = Infragistics.Win.UltraWinGrid.AutoFitStyle.ResizeAllColumns;
this.wostatgrid.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
appearance3.BackColor = System.Drawing.SystemColors.ActiveBorder;
appearance3.BackColor2 = System.Drawing.SystemColors.ControlDark;
appearance3.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
appearance3.BorderColor = System.Drawing.SystemColors.Window;
this.wostatgrid.DisplayLayout.GroupByBox.Appearance = appearance3;
appearance4.ForeColor = System.Drawing.SystemColors.GrayText;
this.wostatgrid.DisplayLayout.GroupByBox.BandLabelAppearance = appearance4;
this.wostatgrid.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
this.wostatgrid.DisplayLayout.GroupByBox.Hidden = true;
appearance5.BackColor = System.Drawing.SystemColors.ControlLightLight;
appearance5.BackColor2 = System.Drawing.SystemColors.Control;
appearance5.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
appearance5.ForeColor = System.Drawing.SystemColors.GrayText;
this.wostatgrid.DisplayLayout.GroupByBox.PromptAppearance = appearance5;
this.wostatgrid.DisplayLayout.MaxColScrollRegions = 1;
this.wostatgrid.DisplayLayout.MaxRowScrollRegions = 1;
appearance6.BackColor = System.Drawing.SystemColors.Window;
appearance6.ForeColor = System.Drawing.SystemColors.ControlText;
this.wostatgrid.DisplayLayout.Override.ActiveCellAppearance = appearance6;
appearance7.BackColor = System.Drawing.SystemColors.Highlight;
appearance7.ForeColor = System.Drawing.SystemColors.HighlightText;
this.wostatgrid.DisplayLayout.Override.ActiveRowAppearance = appearance7;
this.wostatgrid.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.TemplateOnBottom;
this.wostatgrid.DisplayLayout.Override.AllowDelete = Infragistics.Win.DefaultableBoolean.True;
this.wostatgrid.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
this.wostatgrid.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
appearance8.BackColor = System.Drawing.SystemColors.Window;
this.wostatgrid.DisplayLayout.Override.CardAreaAppearance = appearance8;
appearance9.BorderColor = System.Drawing.Color.Silver;
appearance9.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
this.wostatgrid.DisplayLayout.Override.CellAppearance = appearance9;
this.wostatgrid.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
this.wostatgrid.DisplayLayout.Override.CellPadding = 0;
appearance10.BackColor = System.Drawing.SystemColors.Control;
appearance10.BackColor2 = System.Drawing.SystemColors.ControlDark;
appearance10.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
appearance10.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
appearance10.BorderColor = System.Drawing.SystemColors.Window;
this.wostatgrid.DisplayLayout.Override.GroupByRowAppearance = appearance10;
appearance11.TextHAlignAsString = "Left";
this.wostatgrid.DisplayLayout.Override.HeaderAppearance = appearance11;
this.wostatgrid.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
appearance12.BackColor = System.Drawing.SystemColors.Window;
appearance12.BorderColor = System.Drawing.Color.Silver;
this.wostatgrid.DisplayLayout.Override.RowAppearance = appearance12;
appearance13.BackColor = System.Drawing.SystemColors.ControlLight;
this.wostatgrid.DisplayLayout.Override.TemplateAddRowAppearance = appearance13;
this.wostatgrid.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
this.wostatgrid.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
this.wostatgrid.Dock = System.Windows.Forms.DockStyle.Fill;
this.wostatgrid.Location = new System.Drawing.Point(0, 0);
this.wostatgrid.Name = "wostatgrid";
this.wostatgrid.Size = new System.Drawing.Size(602, 256);
this.wostatgrid.TabIndex = 145;
this.wostatgrid.Text = "ultraGrid1";
this.wostatgrid.InitializeLayout += new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler(this.wostatgrid_InitializeLayout);
this.wostatgrid.BeforeAutoSizeEdit += new Infragistics.Win.UltraWinGrid.CancelableAutoSizeEditEventHandler(this.wostatgrid_BeforeAutoSizeEdit);
this.wostatgrid.BeforeRowInsert += new Infragistics.Win.UltraWinGrid.BeforeRowInsertEventHandler(this.wostatgrid_BeforeRowInsert);
//
// tabWOClosed
//
this.tabWOClosed.Controls.Add(this.cbWOReport);
this.tabWOClosed.Controls.Add(this.ckWOClosedAttachWO);
this.tabWOClosed.Controls.Add(this.edWOClosedMsg);
this.tabWOClosed.Controls.Add(this.ultraLabel7);
this.tabWOClosed.Controls.Add(this.ckWOClosedActive);
this.tabWOClosed.Location = new System.Drawing.Point(4, 25);
this.tabWOClosed.Name = "tabWOClosed";
this.tabWOClosed.Size = new System.Drawing.Size(602, 256);
this.tabWOClosed.TabIndex = 5;
this.tabWOClosed.Text = "LT:Region.Label.WOClosedEmailed";
this.tabWOClosed.UseVisualStyleBackColor = true;
//
// cbWOReport
//
this.cbWOReport.AllowEmptySelection = false;
this.cbWOReport.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cbWOReport.Location = new System.Drawing.Point(6, 75);
this.cbWOReport.Name = "cbWOReport";
this.cbWOReport.Size = new System.Drawing.Size(714, 24);
this.cbWOReport.TabIndex = 145;
this.cbWOReport.NeedMoreData += new GZTW.WinForm.Controls.NeedMoreDataHandler(this.cbWOReport_NeedMoreData);
//
// ckWOClosedAttachWO
//
this.ckWOClosedAttachWO.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ckWOClosedAttachWO.Checked = true;
this.ckWOClosedAttachWO.CheckState = System.Windows.Forms.CheckState.Checked;
this.ckWOClosedAttachWO.Location = new System.Drawing.Point(6, 54);
this.ckWOClosedAttachWO.Name = "ckWOClosedAttachWO";
this.ckWOClosedAttachWO.Size = new System.Drawing.Size(1008, 19);
this.ckWOClosedAttachWO.TabIndex = 105;
this.ckWOClosedAttachWO.Tag = "";
this.ckWOClosedAttachWO.Text = "LT:Region.Label.AttachWorkorder";
//
// edWOClosedMsg
//
this.edWOClosedMsg.AcceptsReturn = true;
this.edWOClosedMsg.AcceptsTab = true;
this.edWOClosedMsg.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.edWOClosedMsg.Location = new System.Drawing.Point(6, 137);
this.edWOClosedMsg.Multiline = true;
this.edWOClosedMsg.Name = "edWOClosedMsg";
this.edWOClosedMsg.Size = new System.Drawing.Size(714, 183);
this.edWOClosedMsg.TabIndex = 103;
//
// ultraLabel7
//
this.ultraLabel7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ultraLabel7.Location = new System.Drawing.Point(6, 119);
this.ultraLabel7.Name = "ultraLabel7";
this.ultraLabel7.Size = new System.Drawing.Size(697, 15);
this.ultraLabel7.TabIndex = 104;
this.ultraLabel7.Tag = "";
this.ultraLabel7.Text = "LT:Region.Label.ClientNotifyMessage";
//
// ckWOClosedActive
//
this.ckWOClosedActive.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ckWOClosedActive.Checked = true;
this.ckWOClosedActive.CheckState = System.Windows.Forms.CheckState.Checked;
this.ckWOClosedActive.Location = new System.Drawing.Point(6, 18);
this.ckWOClosedActive.Name = "ckWOClosedActive";
this.ckWOClosedActive.Size = new System.Drawing.Size(1008, 19);
this.ckWOClosedActive.TabIndex = 102;
this.ckWOClosedActive.Tag = "";
this.ckWOClosedActive.Text = "LT:Common.Label.Active";
//
// tabFollowUp
//
this.tabFollowUp.Controls.Add(this.edFollowUpDays);
this.tabFollowUp.Controls.Add(this.ultraLabel9);
this.tabFollowUp.Controls.Add(this.edWOFollowUpMsg);
this.tabFollowUp.Controls.Add(this.ultraLabel8);
this.tabFollowUp.Controls.Add(this.ckFollowUpActive);
this.tabFollowUp.Location = new System.Drawing.Point(4, 25);
this.tabFollowUp.Name = "tabFollowUp";
this.tabFollowUp.Size = new System.Drawing.Size(602, 256);
this.tabFollowUp.TabIndex = 6;
this.tabFollowUp.Text = "LT:Region.Label.WOFollowUp";
this.tabFollowUp.UseVisualStyleBackColor = true;
//
// edFollowUpDays
//
this.edFollowUpDays.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.edFollowUpDays.Location = new System.Drawing.Point(6, 75);
this.edFollowUpDays.Maximum = new decimal(new int[] {
365,
0,
0,
0});
this.edFollowUpDays.Minimum = new decimal(new int[] {
1,
0,
0,
0});
this.edFollowUpDays.Name = "edFollowUpDays";
this.edFollowUpDays.Size = new System.Drawing.Size(1012, 22);
this.edFollowUpDays.TabIndex = 110;
this.edFollowUpDays.Value = new decimal(new int[] {
10,
0,
0,
0});
//
// ultraLabel9
//
this.ultraLabel9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ultraLabel9.Location = new System.Drawing.Point(6, 54);
this.ultraLabel9.Name = "ultraLabel9";
this.ultraLabel9.Size = new System.Drawing.Size(1012, 19);
this.ultraLabel9.TabIndex = 109;
this.ultraLabel9.Tag = "";
this.ultraLabel9.Text = "LT:Region.Label.FollowUpDays";
//
// edWOFollowUpMsg
//
this.edWOFollowUpMsg.AcceptsReturn = true;
this.edWOFollowUpMsg.AcceptsTab = true;
this.edWOFollowUpMsg.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.edWOFollowUpMsg.Location = new System.Drawing.Point(6, 137);
this.edWOFollowUpMsg.Multiline = true;
this.edWOFollowUpMsg.Name = "edWOFollowUpMsg";
this.edWOFollowUpMsg.Size = new System.Drawing.Size(714, 164);
this.edWOFollowUpMsg.TabIndex = 106;
//
// ultraLabel8
//
this.ultraLabel8.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ultraLabel8.Location = new System.Drawing.Point(6, 119);
this.ultraLabel8.Name = "ultraLabel8";
this.ultraLabel8.Size = new System.Drawing.Size(697, 18);
this.ultraLabel8.TabIndex = 107;
this.ultraLabel8.Tag = "";
this.ultraLabel8.Text = "LT:Region.Label.ClientNotifyMessage";
//
// ckFollowUpActive
//
this.ckFollowUpActive.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ckFollowUpActive.Checked = true;
this.ckFollowUpActive.CheckState = System.Windows.Forms.CheckState.Checked;
this.ckFollowUpActive.Location = new System.Drawing.Point(6, 18);
this.ckFollowUpActive.Name = "ckFollowUpActive";
this.ckFollowUpActive.Size = new System.Drawing.Size(1008, 19);
this.ckFollowUpActive.TabIndex = 105;
this.ckFollowUpActive.Tag = "";
this.ckFollowUpActive.Text = "LT:Common.Label.Active";
//
// tabQuoteStatusChanged
//
this.tabQuoteStatusChanged.Controls.Add(this.lblWorkorderQuoteStatusID);
this.tabQuoteStatusChanged.Controls.Add(this.cbWorkorderQuoteStatusID);
this.tabQuoteStatusChanged.Controls.Add(this.ultraLabel10);
this.tabQuoteStatusChanged.Controls.Add(this.cbQuoteReport);
this.tabQuoteStatusChanged.Controls.Add(this.edQuoteStatusChangedMessage);
this.tabQuoteStatusChanged.Controls.Add(this.ultraLabel6);
this.tabQuoteStatusChanged.Controls.Add(this.ckQuoteStatusChangedActive);
this.tabQuoteStatusChanged.Location = new System.Drawing.Point(4, 25);
this.tabQuoteStatusChanged.Name = "tabQuoteStatusChanged";
this.tabQuoteStatusChanged.Padding = new System.Windows.Forms.Padding(3);
this.tabQuoteStatusChanged.Size = new System.Drawing.Size(602, 256);
this.tabQuoteStatusChanged.TabIndex = 7;
this.tabQuoteStatusChanged.Text = "LT:Region.Label.QuoteStatusChanged";
this.tabQuoteStatusChanged.UseVisualStyleBackColor = true;
//
// lblWorkorderQuoteStatusID
//
this.lblWorkorderQuoteStatusID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblWorkorderQuoteStatusID.Location = new System.Drawing.Point(6, 119);
this.lblWorkorderQuoteStatusID.Name = "lblWorkorderQuoteStatusID";
this.lblWorkorderQuoteStatusID.Size = new System.Drawing.Size(696, 18);
this.lblWorkorderQuoteStatusID.TabIndex = 151;
this.lblWorkorderQuoteStatusID.Tag = "`";
this.lblWorkorderQuoteStatusID.Text = "LT:WorkorderQuote.Label.QuoteStatusType";
this.lblWorkorderQuoteStatusID.WrapText = false;
//
// cbWorkorderQuoteStatusID
//
this.cbWorkorderQuoteStatusID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cbWorkorderQuoteStatusID.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.SuggestAppend;
this.cbWorkorderQuoteStatusID.LimitToList = true;
this.cbWorkorderQuoteStatusID.Location = new System.Drawing.Point(6, 137);
this.cbWorkorderQuoteStatusID.MaxDropDownItems = 25;
this.cbWorkorderQuoteStatusID.Name = "cbWorkorderQuoteStatusID";
this.cbWorkorderQuoteStatusID.Size = new System.Drawing.Size(696, 24);
this.cbWorkorderQuoteStatusID.TabIndex = 150;
this.cbWorkorderQuoteStatusID.Tag = "`";
//
// ultraLabel10
//
this.ultraLabel10.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ultraLabel10.Location = new System.Drawing.Point(6, 54);
this.ultraLabel10.Name = "ultraLabel10";
this.ultraLabel10.Size = new System.Drawing.Size(1440, 19);
this.ultraLabel10.TabIndex = 147;
this.ultraLabel10.Tag = "";
this.ultraLabel10.Text = "LT:Region.Label.AttachQuote";
//
// cbQuoteReport
//
this.cbQuoteReport.AllowEmptySelection = false;
this.cbQuoteReport.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.cbQuoteReport.Location = new System.Drawing.Point(6, 75);
this.cbQuoteReport.Name = "cbQuoteReport";
this.cbQuoteReport.Size = new System.Drawing.Size(697, 24);
this.cbQuoteReport.TabIndex = 146;
//
// edQuoteStatusChangedMessage
//
this.edQuoteStatusChangedMessage.AcceptsReturn = true;
this.edQuoteStatusChangedMessage.AcceptsTab = true;
this.edQuoteStatusChangedMessage.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.edQuoteStatusChangedMessage.Location = new System.Drawing.Point(6, 200);
this.edQuoteStatusChangedMessage.Multiline = true;
this.edQuoteStatusChangedMessage.Name = "edQuoteStatusChangedMessage";
this.edQuoteStatusChangedMessage.Size = new System.Drawing.Size(697, 112);
this.edQuoteStatusChangedMessage.TabIndex = 100;
//
// ultraLabel6
//
this.ultraLabel6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ultraLabel6.Location = new System.Drawing.Point(6, 181);
this.ultraLabel6.Name = "ultraLabel6";
this.ultraLabel6.Size = new System.Drawing.Size(713, 19);
this.ultraLabel6.TabIndex = 101;
this.ultraLabel6.Tag = "";
this.ultraLabel6.Text = "LT:Region.Label.ClientNotifyMessage";
//
// ckQuoteStatusChangedActive
//
this.ckQuoteStatusChangedActive.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.ckQuoteStatusChangedActive.Checked = true;
this.ckQuoteStatusChangedActive.CheckState = System.Windows.Forms.CheckState.Checked;
this.ckQuoteStatusChangedActive.Location = new System.Drawing.Point(6, 18);
this.ckQuoteStatusChangedActive.Name = "ckQuoteStatusChangedActive";
this.ckQuoteStatusChangedActive.Size = new System.Drawing.Size(671, 19);
this.ckQuoteStatusChangedActive.TabIndex = 99;
this.ckQuoteStatusChangedActive.Tag = "";
this.ckQuoteStatusChangedActive.Text = "LT:Common.Label.Active";
//
// edName
//
this.edName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.edName.Location = new System.Drawing.Point(10, 28);
this.edName.Name = "edName";
this.edName.Size = new System.Drawing.Size(610, 24);
this.edName.TabIndex = 0;
//
// lblName
//
this.lblName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblName.Location = new System.Drawing.Point(10, 9);
this.lblName.Name = "lblName";
this.lblName.Size = new System.Drawing.Size(583, 19);
this.lblName.TabIndex = 92;
this.lblName.Tag = "";
this.lblName.Text = "LT:Region.Label.Name";
//
// ErrorProvider
//
this.ErrorProvider.ContainerControl = this;
//
// _RegionInfoForm_Toolbars_Dock_Area_Left
//
this._RegionInfoForm_Toolbars_Dock_Area_Left.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this._RegionInfoForm_Toolbars_Dock_Area_Left.BackColor = System.Drawing.SystemColors.Control;
this._RegionInfoForm_Toolbars_Dock_Area_Left.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Left;
this._RegionInfoForm_Toolbars_Dock_Area_Left.ForeColor = System.Drawing.SystemColors.ControlText;
this._RegionInfoForm_Toolbars_Dock_Area_Left.Location = new System.Drawing.Point(0, 43);
this._RegionInfoForm_Toolbars_Dock_Area_Left.Name = "_RegionInfoForm_Toolbars_Dock_Area_Left";
this._RegionInfoForm_Toolbars_Dock_Area_Left.Size = new System.Drawing.Size(0, 399);
this._RegionInfoForm_Toolbars_Dock_Area_Left.ToolbarsManager = this.tbManager;
//
// tbManager
//
this.tbManager.DesignerFlags = 1;
this.tbManager.DockWithinContainer = this;
this.tbManager.DockWithinContainerBaseType = typeof(System.Windows.Forms.Form);
this.tbManager.ShowFullMenusDelay = 500;
ultraToolbar1.DockedColumn = 0;
ultraToolbar1.DockedRow = 0;
ultraToolbar1.NonInheritedTools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
buttonTool1,
buttonTool13,
buttonTool2,
buttonTool3,
buttonTool4,
buttonTool5,
buttonTool6});
ultraToolbar1.Text = "RegionEntryMenuBar";
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;
buttonTool7.SharedPropsInternal.AccessibleDescription = "recorddd";
appearance14.Image = global::AyaNova.Resource1.SaveExit32;
buttonTool7.SharedPropsInternal.AppearancesLarge.Appearance = appearance14;
appearance15.Image = global::AyaNova.Resource1.SaveExit16;
buttonTool7.SharedPropsInternal.AppearancesSmall.Appearance = appearance15;
buttonTool7.SharedPropsInternal.Caption = "LT:UI.Command.SaveClose";
appearance16.Image = global::AyaNova.Resource1.RecordHistory32;
buttonTool8.SharedPropsInternal.AppearancesLarge.Appearance = appearance16;
appearance17.Image = global::AyaNova.Resource1.RecordHistory16;
buttonTool8.SharedPropsInternal.AppearancesSmall.Appearance = appearance17;
buttonTool8.SharedPropsInternal.Caption = "LT:UI.Command.RecordHistory";
buttonTool9.SharedPropsInternal.Caption = "LT:UI.Command.Save";
buttonTool9.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.TextOnlyAlways;
appearance18.Image = global::AyaNova.Resource1.SaveNew32;
buttonTool10.SharedPropsInternal.AppearancesLarge.Appearance = appearance18;
appearance19.Image = global::AyaNova.Resource1.SaveNew16;
buttonTool10.SharedPropsInternal.AppearancesSmall.Appearance = appearance19;
buttonTool10.SharedPropsInternal.Caption = "LT:UI.Command.SaveNew";
buttonTool11.SharedPropsInternal.Caption = "LT:UI.Command.Close";
buttonTool11.SharedPropsInternal.DisplayStyle = Infragistics.Win.UltraWinToolbars.ToolDisplayStyle.TextOnlyAlways;
appearance20.Image = global::AyaNova.Resource1.Delete32;
buttonTool12.SharedPropsInternal.AppearancesLarge.Appearance = appearance20;
appearance21.Image = global::AyaNova.Resource1.Delete16;
buttonTool12.SharedPropsInternal.AppearancesSmall.Appearance = appearance21;
buttonTool12.SharedPropsInternal.Caption = "LT:UI.Command.Delete";
appearance22.Image = global::AyaNova.Resource1.Wiki32;
buttonTool14.SharedPropsInternal.AppearancesLarge.Appearance = appearance22;
appearance23.Image = global::AyaNova.Resource1.Wiki16;
buttonTool14.SharedPropsInternal.AppearancesSmall.Appearance = appearance23;
buttonTool14.SharedPropsInternal.Caption = "LT:O.WikiPage";
this.tbManager.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[] {
buttonTool7,
buttonTool8,
buttonTool9,
buttonTool10,
buttonTool11,
buttonTool12,
buttonTool14});
this.tbManager.UseLargeImagesOnToolbar = true;
this.tbManager.ToolClick += new Infragistics.Win.UltraWinToolbars.ToolClickEventHandler(this.tbManager_ToolClick);
//
// _RegionInfoForm_Toolbars_Dock_Area_Right
//
this._RegionInfoForm_Toolbars_Dock_Area_Right.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this._RegionInfoForm_Toolbars_Dock_Area_Right.BackColor = System.Drawing.SystemColors.Control;
this._RegionInfoForm_Toolbars_Dock_Area_Right.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Right;
this._RegionInfoForm_Toolbars_Dock_Area_Right.ForeColor = System.Drawing.SystemColors.ControlText;
this._RegionInfoForm_Toolbars_Dock_Area_Right.Location = new System.Drawing.Point(624, 43);
this._RegionInfoForm_Toolbars_Dock_Area_Right.Name = "_RegionInfoForm_Toolbars_Dock_Area_Right";
this._RegionInfoForm_Toolbars_Dock_Area_Right.Size = new System.Drawing.Size(0, 399);
this._RegionInfoForm_Toolbars_Dock_Area_Right.ToolbarsManager = this.tbManager;
//
// _RegionInfoForm_Toolbars_Dock_Area_Top
//
this._RegionInfoForm_Toolbars_Dock_Area_Top.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this._RegionInfoForm_Toolbars_Dock_Area_Top.BackColor = System.Drawing.SystemColors.Control;
this._RegionInfoForm_Toolbars_Dock_Area_Top.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Top;
this._RegionInfoForm_Toolbars_Dock_Area_Top.ForeColor = System.Drawing.SystemColors.ControlText;
this._RegionInfoForm_Toolbars_Dock_Area_Top.Location = new System.Drawing.Point(0, 0);
this._RegionInfoForm_Toolbars_Dock_Area_Top.Name = "_RegionInfoForm_Toolbars_Dock_Area_Top";
this._RegionInfoForm_Toolbars_Dock_Area_Top.Size = new System.Drawing.Size(624, 43);
this._RegionInfoForm_Toolbars_Dock_Area_Top.ToolbarsManager = this.tbManager;
//
// _RegionInfoForm_Toolbars_Dock_Area_Bottom
//
this._RegionInfoForm_Toolbars_Dock_Area_Bottom.AccessibleRole = System.Windows.Forms.AccessibleRole.Grouping;
this._RegionInfoForm_Toolbars_Dock_Area_Bottom.BackColor = System.Drawing.SystemColors.Control;
this._RegionInfoForm_Toolbars_Dock_Area_Bottom.DockedPosition = Infragistics.Win.UltraWinToolbars.DockedPosition.Bottom;
this._RegionInfoForm_Toolbars_Dock_Area_Bottom.ForeColor = System.Drawing.SystemColors.ControlText;
this._RegionInfoForm_Toolbars_Dock_Area_Bottom.Location = new System.Drawing.Point(0, 442);
this._RegionInfoForm_Toolbars_Dock_Area_Bottom.Name = "_RegionInfoForm_Toolbars_Dock_Area_Bottom";
this._RegionInfoForm_Toolbars_Dock_Area_Bottom.Size = new System.Drawing.Size(624, 0);
this._RegionInfoForm_Toolbars_Dock_Area_Bottom.ToolbarsManager = this.tbManager;
//
// RegionInfoForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
this.ClientSize = new System.Drawing.Size(624, 442);
this.Controls.Add(this.panelLeft);
this.Controls.Add(this.ckIsDirty);
this.Controls.Add(this._RegionInfoForm_Toolbars_Dock_Area_Left);
this.Controls.Add(this._RegionInfoForm_Toolbars_Dock_Area_Right);
this.Controls.Add(this._RegionInfoForm_Toolbars_Dock_Area_Bottom);
this.Controls.Add(this._RegionInfoForm_Toolbars_Dock_Area_Top);
this.MinimumSize = new System.Drawing.Size(600, 422);
this.Name = "RegionInfoForm";
this.ShowInTaskbar = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
this.Closing += new System.ComponentModel.CancelEventHandler(this.RegionInfoForm_Closing);
this.Load += new System.EventHandler(this.RegionInfoForm_Load);
this.SizeChanged += new System.EventHandler(this.RegionInfoForm_SizeChanged);
this.panelLeft.ResumeLayout(false);
this.panelLeft.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.cbTemplateTags)).EndInit();
this.tcn.ResumeLayout(false);
this.tabGeneral.ResumeLayout(false);
this.tabGeneral.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.edWBIUrl)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.edReplyToAddress)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.ckClientNotificationActive)).EndInit();
this.tabCSRAccepted.ResumeLayout(false);
this.tabCSRAccepted.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.edCSRAcceptedMsg)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.ckCSRAcceptedActive)).EndInit();
this.tabCSRRejected.ResumeLayout(false);
this.tabCSRRejected.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.edCSRRejectMsg)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.ckCSRRejectedActive)).EndInit();
this.tabNewWO.ResumeLayout(false);
this.tabNewWO.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.edNewWOMsg)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.ckNewWOActive)).EndInit();
this.tabWOStatusChanged.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.wostatgrid)).EndInit();
this.tabWOClosed.ResumeLayout(false);
this.tabWOClosed.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.cbWOReport)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.ckWOClosedAttachWO)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.edWOClosedMsg)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.ckWOClosedActive)).EndInit();
this.tabFollowUp.ResumeLayout(false);
this.tabFollowUp.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.edFollowUpDays)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.edWOFollowUpMsg)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.ckFollowUpActive)).EndInit();
this.tabQuoteStatusChanged.ResumeLayout(false);
this.tabQuoteStatusChanged.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.cbWorkorderQuoteStatusID)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.cbQuoteReport)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.edQuoteStatusChangedMessage)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.ckQuoteStatusChangedActive)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.edName)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.ErrorProvider)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.tbManager)).EndInit();
this.ResumeLayout(false);
}
#endregion
// __ _ _ ___ ____ __ __ __ __ __ ___ ___
// / _)( )( )/ __)(_ _)/ \( \/ ) / _)/ \( \( _)
// ( (_ )()( \__ \ )( ( () )) ( ( (_( () )) ) )) _)
// \__) \__/ (___/ (__) \__/(_/\/\_) \__)\__/(___/(___)
//
#region Form Load / Close
//variable to hold user form settings
//UIUserFormSetting mFormSetting;
///
/// Prepare the form
///
///
///
private void RegionInfoForm_Load(object sender, System.EventArgs e)
{
//case 1039 //log.Debug("RegionInfoForm_Load");
Cursor.Current = Cursors.WaitCursor;
this.Visible=false;
this.Icon = Resource1.Region16icon;
//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 Region edit screen from elsewhere in the program)
if(AyaBizUtils.Right("Object.Region")< (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.Region")));
this.Close();
return;
}
//testtest
//mRegion.WoStatusNotifyItems.Add(mRegion);
InitializeComboBoxes();
DataBind();
//restrict UI based on security settings
RestrictUI();
Util.LoadFormCustomization("RegionInfo", this, tbManager, false);
Util.PluginInsertMenu(tbManager, new Util.PluginMenuOptionData(true, RootObjectTypes.Region, mRegion, null));//case 941
Util.LocalizeHelperInsertMenu(tbManager, this); //case 1810
Util.Localize(this);
Cursor.Current = Cursors.Default;
//Case 152
(new TabOrderManager(this)).SetTabOrder(TabOrderManager.TabScheme.AcrossFirst);
Application.Idle+= new EventHandler(Application_Idle);
this.Visible=true;
}
///
/// Used to track whether the close was done by the program
/// or done by the user clicking on the upper left corner X control
///
bool bClosingHandled=false;
///
/// Save form layout and grid layout for next time
///
///
///
private void RegionInfoForm_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
//case 1039 //log.Debug("RegionInfoForm_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("RegionInfo", this, tbManager, false);
}
#endregion
#region Form UI commands
#region Toolbar menu items
///
/// Respond to a click on a toolbar menu item
///
///
///
private void tbManager_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
{
//case 1039 //if(log.IsDebugEnabled) //case 1039 //log.Debug("ToolClick: "+e.Tool.Key);
switch (e.Tool.Key)
{
case "LT:UI.Command.SaveClose": // ButtonTool
RecordUpdate(RecordActionType.SaveAndExit);
break;
case "LT:UI.Command.RecordHistory": // ButtonTool
RecordHistoryForm RH=new RecordHistoryForm(mRegion.Creator,mRegion.Modifier,mRegion.Created,mRegion.Modified);
RH.ShowDialog(); RH.Dispose();
break;
case "LT:UI.Command.Save": // ButtonTool
RecordUpdate(RecordActionType.SaveOnly);
break;
case "LT:UI.Command.SaveNew": // ButtonTool
RecordUpdate(RecordActionType.SaveAndNew);
break;
case "LT:UI.Command.Close": // ButtonTool
this.Close();
break;
case "LT:UI.Command.Delete": // ButtonTool
RecordUpdate(RecordActionType.DeleteAndExit);
break;
case "LT:O.WikiPage":
{
Util.OpenWikiPage(RootObjectTypes.Region, mRegion.ID, false);
break;
}
}
}
#endregion Toolbar menu items
#endregion Form UI commands
#region Form UI / Business object synchronization
///
/// Synchronize the state of the UI to the BO's
///
private void SyncUI()
{
//display Region name in title bar
this.Text=mRegion.Name;
}
///
/// When the application enters an idle state
/// update the UI to reflect changs in BO status
/// (required because grids don't tell the UI to update when they are
/// bound to a business object and are edited)
///
///
///
private void Application_Idle(object sender, EventArgs e)
{
SyncUI();
}
///
/// Adapt UI to accomodate users security access level
/// by default form is set with full rights in mind
/// so this code just needs to restrict them as required
///
private void RestrictUI()
{
//case 1039 //if(log.IsDebugEnabled) //case 1039 //log.Debug("RestrictUI: " + ((SecurityLevelTypes)AyaBizUtils.Right("Object.Region")).ToString());
bool bDelete=AyaBizUtils.Right("Object.Region")== (int)SecurityLevelTypes.ReadWriteDelete;
bool bReadOnly=AyaBizUtils.Right("Object.Region") < (int)SecurityLevelTypes.ReadWrite;
tbManager.Tools["LT:UI.Command.Delete"].SharedProps.Visible=bDelete;
tbManager.Tools["LT:UI.Command.SaveClose"].SharedProps.Visible=!bReadOnly;
tbManager.Tools["LT:UI.Command.SaveNew"].SharedProps.Visible=!bReadOnly;
tbManager.Tools["LT:UI.Command.Save"].SharedProps.Visible=!bReadOnly;
//Case 181
tbManager.Tools["LT:UI.Command.Close"].SharedProps.Visible=false;
//case 73
tbManager.Tools["LT:O.WikiPage"].SharedProps.Visible = mRegion.CanWiki;
//DISABLE EDITABLE CONTROLS
//Text editors
edName.Enabled=!bReadOnly;
Util.SetAccessOnGrid(bReadOnly, wostatgrid, bReadOnly);
}
#endregion
#region Form DataBinding and BrokenRules handling
///
/// Bind controls to business objects
///
private void DataBind()
{
//case 1039 //log.Debug("DataBind");
//Subscribe to broken rules changed event OnBrokenRulesChanged
mRegion.GetBrokenRulesCollection().ListChanged += new System.ComponentModel.ListChangedEventHandler(OnBrokenRulesChanged);
//=-=-=-=-=-=- Form Field bindings =-=-=-=-=-=-=-=-=-=-=-=
//Text editors
Util.BindField(edName,"Text",mRegion,"Name");
//client notification stuff
Util.BindField(ckClientNotificationActive,"Checked",mRegion,"ClientNotification");
Util.BindField(edReplyToAddress, "Text", mRegion,"ReplyToEmail");
Util.BindField(edWBIUrl, "Text", mRegion, "WBIUrl");
Util.BindField(ckCSRAcceptedActive, "Checked", mRegion, "NotifyCSRAccepted");
Util.BindField(edCSRAcceptedMsg, "Text", mRegion, "NotifyCSRMSG");
Util.BindField(ckCSRRejectedActive, "Checked", mRegion, "NotifyCSRRejected");
Util.BindField(edCSRRejectMsg, "Text", mRegion, "NotifyCSRRejectMSG");
Util.BindField(ckNewWOActive, "Checked", mRegion, "NotifyNewWO");
Util.BindField(edNewWOMsg, "Text", mRegion, "NotifyNewWOMSG");
Util.BindField(ckWOClosedActive, "Checked", mRegion, "NotifyWOClosed");
Util.BindField(ckWOClosedAttachWO, "Checked", mRegion, "NotifyWOClosedAttachWO");
Util.BindField(edWOClosedMsg, "Text", mRegion, "NotifyWOClosedMSG");
Util.BindField(cbWOReport, "Value", mRegion, "NotifyWOClosedRPT");
Util.BindField(ckFollowUpActive, "Checked", mRegion, "NotifyWOFollowUp");
Util.BindField(edWOFollowUpMsg, "Text", mRegion, "NotifyWOFollowUpMSG");
Util.BindField(edFollowUpDays, "Value", mRegion, "NotifyWOFollowUpDays");
//case 1499
Util.BindField(ckQuoteStatusChangedActive, "Checked", mRegion, "NotifyQuoteStatus");
Util.BindField(cbQuoteReport, "Value", mRegion, "NotifyQuoteStatusRPT");
Util.BindField(cbWorkorderQuoteStatusID, "Value", mRegion, "NotifyQuoteStatusType");
Util.BindField(edQuoteStatusChangedMessage, "Text", mRegion, "NotifyQuoteStatMSG");
Util.BindField(this.wostatgrid, "DataSource", mRegion, "WoStatusNotifyItems");
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
//Bind IsDirty property to hidden checkbox to
//ensure isdirtychanged event is available
//to data binding infrastructure
Util.BindField(ckIsDirty,"Checked",mRegion,"IsDirty");
//Setup initial link to broken rules
OnBrokenRulesChanged(null,null);
}
///
/// Handle a change in broken rules
///
///
///
private void OnBrokenRulesChanged(object sender, System.ComponentModel.ListChangedEventArgs e)
{
Util.BrokenRuleFeedback(this,mRegion,ErrorProvider);
}
#endregion
#region Business object editing / adding / deletion related code
private GZTW.AyaNova.BLL.Region mRegion;
///
/// Region record to display
/// set by caller
///
public GZTW.AyaNova.BLL.Region RegionToEdit
{
get
{
return mRegion;
}
set
{
mRegion=value;
//mRegion.BeginEdit();
}
}
//Used to signal to main form that there are changes
//which could affect it if true
private bool mbChangesMade=false;
public bool ChangesMade
{
get
{
return mbChangesMade;
}
}
///
/// Update record and quit if requested
///
///
/// True if handled, false if not handled
private bool RecordUpdate(RecordActionType SaveType)
{
//case 1039 //if(log.IsDebugEnabled) //case 1039 //log.Debug("SaveHandler(Action="+SaveType.ToString()+")");
//switch the focus to a non-editable control
//so that any changes in the current editable control
//will get updated before attempting to save
lblName.Focus();
switch(SaveType)
{
case RecordActionType.DeleteAndExit:
//ensure no deletion of default region
if(mRegion.ID==new Guid("{8236E8D1-CAB1-4797-9C34-93861954AE6A}"))
{
MessageBox.Show(
string.Format(
Util.LocaleText.GetLocalizedText("Error.Security.NotAuthorizedToDeleteDefaultObject"),
Util.LocaleText.GetLocalizedText("O.Region")));
return false;
}
if(Util.PromptForDelete()==DialogResult.Yes)
{
//Delete, then exit
try
{
GZTW.AyaNova.BLL.Region.DeleteItem(mRegion.ID);
}
catch(Exception ex)
{
Util.ReportSQLError(ex);
return false;
}
bClosingHandled=true;
this.Close();
mbChangesMade=true;
return true;
}
else return false;
case RecordActionType.SaveAndExit:
//Save if necessary and exit
if(mRegion.IsSavable)
{
mRegion.ApplyEdit();
mRegion.Save();
bClosingHandled=true;
mbChangesMade=true;
this.Close();
return true;
}
if(mRegion.IsDirty)//dirty and unsaveable due to broken rules
{
if(Util.PromptForBrokenRulesCancelSave()==DialogResult.Yes)
{
bClosingHandled=true;
this.Close();
return true;
}
else
return false;
}
//not dirty so just exit
bClosingHandled=true;
this.Close();
return true;
case RecordActionType.SaveAndNew:
if(mRegion.IsSavable)
{
mRegion.ApplyEdit();
mRegion.Save();
AddNewRegion();
mbChangesMade=true;
return true;
}
if(mRegion.IsDirty)//dirty and unsaveable due to broken rules
{
//User says that's ok, continue on?
if(Util.PromptForBrokenRulesCancelSave()==DialogResult.Yes)
{
//Ok, add new Region and don't save old record
AddNewRegion();
return true;
}
else return false;
}
//Current record isn't dirty so just add a new one
AddNewRegion();
return true;
case RecordActionType.SaveOnly:
if(mRegion.IsSavable)
{
mRegion.ApplyEdit();
mRegion=(GZTW.AyaNova.BLL.Region)mRegion.Save();
DataBind();
mbChangesMade=true;
return true;
}
return true;
case RecordActionType.PromptToSave:
//Prompt to save and save if
//required
if(mRegion.IsDirty)
{
DialogResult dr=Util.PromptForSave();
if(dr==DialogResult.Cancel)
{
//Cancel
return false;
}
if(dr==DialogResult.Yes)
{
//Save before exit
if(mRegion.IsSavable)
{
mRegion.ApplyEdit();
mRegion.Save();
mbChangesMade=true;
return true;
}
if(mRegion.IsDirty)//dirty and unsaveable due to broken rules
{
if(Util.PromptForBrokenRulesCancelSave()==DialogResult.Yes)
{
return true;
}
else
return false;
}
}
}
return true;
}
return false;
}
///
///
///Creates a new Region record and opens it for editing
///
private void AddNewRegion()
{
//case 1039 //log.Debug("AddNewRegion");
try
{
mRegion=GZTW.AyaNova.BLL.Region.NewItem();
//mRegion.BeginEdit();
DataBind();
}
catch(Exception ex)
{
//log.Error("AddNewRegion",ex);
MessageBox.Show(ex.Message+"\r\n"+ex.Source);
}
}
#endregion
#region Form ComboBoxes (Setup / Events)
private void InitializeComboBoxes()
{
//case 1039 //log.Debug("InitializeComboBoxes");
{
cbWOReport.AllowEmptySelection = true;
ReportPickList r = ReportPickList.GetList(WorkorderServiceList.ReportKey,
WorkorderServiceDetailedReportData.ReportKey, false);
foreach (ReportPickList.ReportPickListInfo i in r)
{
if (i.Active)
cbWOReport.Items.Add(i.ID, i.Name);
else if (i.ID == mRegion.NotifyWOStatusID)
{
ValueListItem vi = cbWOReport.Items.Add(i.ID, i.Name);
vi.Appearance.ForeColor = System.Drawing.SystemColors.GrayText;
}
}
}
{
cbQuoteReport.AllowEmptySelection = true;
ReportPickList r = ReportPickList.GetList(WorkorderQuoteList.ReportKey,
WorkorderQuoteDetailedReportData.ReportKey, false);
foreach (ReportPickList.ReportPickListInfo i in r)
{
if (i.Active)
cbQuoteReport.Items.Add(i.ID, i.Name);
else if (i.ID == mRegion.NotifyWOStatusID)
{
ValueListItem vi = cbQuoteReport.Items.Add(i.ID, i.Name);
vi.Appearance.ForeColor = System.Drawing.SystemColors.GrayText;
}
}
}
//Fill message template options
Add("WorkorderService.Label.ServiceNumber");
Add("O.WorkorderStatus");
Add("Workorder.Label.CustomerContactName");
Add("Workorder.Label.CustomerReferenceNumber");
Add("Region.Label.WBIUrl");
Add("Client.Label.Name");
Add("ClientServiceRequest.Label.Details");
Add("Workorder.Label.Summary");
Add("ClientServiceRequest.Label.Title");
//case 1499
Add("WorkorderQuote.Label.QuoteNumber");
this.cbWorkorderQuoteStatusID.Items.Add(WorkorderQuoteStatusTypes.NotSet, Util.NoSelectionString);
this.cbWorkorderQuoteStatusID.Items.Add(WorkorderQuoteStatusTypes.New, Util.LocaleText.GetLocalizedText("WorkorderQuoteStatusTypes.Label.New"));
this.cbWorkorderQuoteStatusID.Items.Add(WorkorderQuoteStatusTypes.InProgress, Util.LocaleText.GetLocalizedText("WorkorderQuoteStatusTypes.Label.InProgress"));
this.cbWorkorderQuoteStatusID.Items.Add(WorkorderQuoteStatusTypes.Submitted, Util.LocaleText.GetLocalizedText("WorkorderQuoteStatusTypes.Label.Submitted"));
this.cbWorkorderQuoteStatusID.Items.Add(WorkorderQuoteStatusTypes.Awarded, Util.LocaleText.GetLocalizedText("WorkorderQuoteStatusTypes.Label.Awarded"));
this.cbWorkorderQuoteStatusID.Items.Add(WorkorderQuoteStatusTypes.NotAwarded, Util.LocaleText.GetLocalizedText("WorkorderQuoteStatusTypes.Label.NotAwarded"));
this.cbWorkorderQuoteStatusID.Items.Add(WorkorderQuoteStatusTypes.NotAwarded2, Util.LocaleText.GetLocalizedText("WorkorderQuoteStatusTypes.Label.NotAwarded2"));
}
private void Add(string sLocaleKey)
{
//if (log.IsDebugEnabled) //case 1039 //log.Debug("Add(" + sLocaleKey + ")");
this.cbTemplateTags.Items.Add("[" + sLocaleKey + "]", "[" + sLocaleKey + "]" + " - " + Util.LocaleText.GetLocalizedText(sLocaleKey));
}
private void cbWOReport_NeedMoreData()
{
}
private void tcn_SelectedIndexChanged(object sender, EventArgs e)
{
SizeControlsInTab();
cbTemplateTags.Visible = true;
}
private void cbTemplateTags_EditorButtonClick(object sender, Infragistics.Win.UltraWinEditors.EditorButtonEventArgs e)
{
if (cbTemplateTags.SelectedItem == null) return;
Infragistics.Win.UltraWinEditors.UltraTextEditor t = null;
switch (tcn.SelectedIndex)
{
case 0:
return;
case 1:
t = edCSRAcceptedMsg;
break;
case 2:
t = edCSRRejectMsg;
break;
case 3:
t = edNewWOMsg;
break;
case 4:
if (wostatgrid.ActiveCell != null && wostatgrid.ActiveCell.Column.Key == "NotifyWOStatMSG")
{
string s = wostatgrid.ActiveCell.Value.ToString();
s = s + " " + cbTemplateTags.SelectedItem.DataValue.ToString() + " ";
wostatgrid.ActiveCell.Value = s;
return;
}
break;
case 5:
t = edWOClosedMsg;
break;
case 6:
t = edWOFollowUpMsg;
break;
case 7:
t = edQuoteStatusChangedMessage;
break;
}
if(t!=null)
t.AppendText(" " + cbTemplateTags.SelectedItem.DataValue.ToString() + " ");
//MessageBox.Show(tcn.SelectedIndex.ToString());
//if (cbItem.SelectedItem != null)
// edTemplate.AppendText(" " + cbItem.SelectedItem.DataValue.ToString() + " ");
}
#endregion
#region Accelerator keys
///
/// Case 37
///
///
///
///
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
//Short circuit:
//Only process modified keystrokes (i.e. when a modifier like ctrl-alt-or shift is also
//being held down
if (ModifierKeys == Keys.None) return base.ProcessCmdKey(ref msg, keyData);
switch (Util.HotKeys(keyData))
{
//Close form
case HotKeyAction.CloseForm:
this.Close();
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}
#endregion
#region Grid formatting
private void wostatgrid_InitializeLayout(object sender, InitializeLayoutEventArgs e)
{
//hide all unwanted columns
foreach (UltraGridColumn c in wostatgrid.DisplayLayout.Bands[0].Columns)
{
c.Hidden = true;
}
wostatgrid.DisplayLayout.Bands[0].Columns["Active"].Header.Caption = Util.LocaleText.GetLocalizedText("Common.Label.Active");
wostatgrid.DisplayLayout.Bands[0].Columns["Active"].Hidden = false;
wostatgrid.DisplayLayout.Bands[0].Columns["NotifyWOStatMSG"].Header.Caption = Util.LocaleText.GetLocalizedText("Region.Label.ClientNotifyMessage");
wostatgrid.DisplayLayout.Bands[0].Columns["NotifyWOStatMSG"].Hidden = false;
wostatgrid.DisplayLayout.Bands[0].Columns["NotifyWOStatusID"].Header.Caption = Util.LocaleText.GetLocalizedText("O.WorkorderStatus");
wostatgrid.DisplayLayout.Bands[0].Columns["NotifyWOStatusID"].Hidden = false;
wostatgrid.DisplayLayout.Bands[0].Columns["WoReportID"].Header.Caption = Util.LocaleText.GetLocalizedText("Region.Label.AttachWorkorder");
wostatgrid.DisplayLayout.Bands[0].Columns["WoReportID"].Hidden = false;
wostatgrid.DisplayLayout.Bands[0].Columns["NotifyWOStatMSG"].CellMultiLine = DefaultableBoolean.True;
wostatgrid.DisplayLayout.Bands[0].Columns["NotifyWOStatMSG"].AutoSizeEdit = DefaultableBoolean.True;
wostatgrid.DisplayLayout.Bands[0].Columns["NotifyWOStatMSG"].VertScrollBar = true;
wostatgrid.DisplayLayout.ValueLists.Clear();
Util.SetTextColumnsNullable(wostatgrid);
#region ======== Status list ========
{
//Clear any previous value list from this column
wostatgrid.DisplayLayout.Bands[0].Columns["NotifyWOStatusID"].ValueList = null;
//Add all potential active items
ValueList vl = new ValueList();
//Empty is valid choice here
vl.ValueListItems.Add(Guid.Empty, Util.NoSelectionString);//Case 318
WorkorderStatusPickList wspl = WorkorderStatusPickList.GetList();
foreach (WorkorderStatusPickList.WorkorderStatusPickListInfo i in wspl)
{
//Case 360 slight modification
ValueListItem vi = vl.ValueListItems.Add(i.ID, i.Name);
if (!i.Active)
vi.Appearance.ForeColor = System.Drawing.SystemColors.GrayText;
}
//Show sorted alphabetically
vl.SortStyle = ValueListSortStyle.Ascending;
//Bind value lists to correct columns in grid
wostatgrid.DisplayLayout.Bands[0].Columns["NotifyWOStatusID"].ValueList = vl;
//Set column to dropdownlist style so that user can not type an invalid value in a cell
//but must select from the list only
wostatgrid.DisplayLayout.Bands[0].Columns["NotifyWOStatusID"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownValidate;//Case 96 for autocomplete (was DropDownList)
wostatgrid.DisplayLayout.Bands[0].Columns["NotifyWOStatusID"].AutoCompleteMode = Infragistics.Win.AutoCompleteMode.SuggestAppend;
}
#endregion status list
#region ======== Workorder report list ========
{
//Clear any previous value list from this column
wostatgrid.DisplayLayout.Bands[0].Columns["WoReportID"].ValueList = null;
//Add all potential active items
ValueList vl = new ValueList();
//Empty is valid choice here
vl.ValueListItems.Add(Guid.Empty, Util.NoSelectionString);//Case 318
ReportPickList r = ReportPickList.GetList(WorkorderServiceList.ReportKey, WorkorderServiceDetailedReportData.ReportKey, false);
foreach (ReportPickList.ReportPickListInfo i in r)
{
ValueListItem vi = vl.ValueListItems.Add(i.ID, i.Name);
if (!i.Active)
vi.Appearance.ForeColor = System.Drawing.SystemColors.GrayText;
}
//Show sorted alphabetically
vl.SortStyle = ValueListSortStyle.Ascending;
//Bind value lists to correct columns in grid
wostatgrid.DisplayLayout.Bands[0].Columns["WoReportID"].ValueList = vl;
//Set column to dropdownlist style so that user can not type an invalid value in a cell
//but must select from the list only
wostatgrid.DisplayLayout.Bands[0].Columns["WoReportID"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownValidate;//Case 96 for autocomplete (was DropDownList)
wostatgrid.DisplayLayout.Bands[0].Columns["WoReportID"].AutoCompleteMode = Infragistics.Win.AutoCompleteMode.SuggestAppend;
}
#endregion
}
private void wostatgrid_BeforeAutoSizeEdit(object sender, CancelableAutoSizeEditEventArgs e)
{
System.Drawing.Point p = wostatgrid.ActiveCell.GetUIElement().Rect.Location;
e.StartWidth = (wostatgrid.Width / 2) - 5 - p.X;
e.StartHeight = (wostatgrid.Height / 2) - 20 - p.Y;
e.MaxHeight = e.StartHeight;
e.MaxWidth = e.StartWidth;
}
#endregion grid formatting
#region Grid events
///
/// The grid doesn't automatically trigger the call to add new
/// we have to do it!!!!!
///
///
///
private void wostatgrid_BeforeRowInsert(object sender, BeforeRowInsertEventArgs e)
{
mRegion.WoStatusNotifyItems.Add(mRegion);
e.Cancel = true;
}
#endregion grid events
#region Form sizing
private void SizeControlsInTab()
{
int n = tcn.Width - 40;
//first tab
ckClientNotificationActive.Width = n;
lblRegionReplyTo.Width = n;
edReplyToAddress.Width = n;
lblWBIUrl.Width = n;
edWBIUrl.Width = n;
//Second tab
ckCSRAcceptedActive.Width = n;
ultraLabel3.Width = n;
edCSRAcceptedMsg.Width = n;
//third tab
ckCSRRejectedActive.Width = n;
ultraLabel4.Width = n;
edCSRRejectMsg.Width = n;
//fourth tab
ckNewWOActive.Width = n;
ultraLabel5.Width = n;
edNewWOMsg.Width = n;
//Fifth tab - grid docked
//Sixth tab
ckWOClosedActive.Width = n;
ckWOClosedAttachWO.Width = n;
cbWOReport.Width = n;
ultraLabel7.Width = n;
edWOClosedMsg.Width = n;
//seventh tab
ckFollowUpActive.Width = n;
ultraLabel8.Width = n;
ultraLabel9.Width = n;
edFollowUpDays.Width = n;
edWOFollowUpMsg.Width = n;
//Eighth tab
ckQuoteStatusChangedActive.Width = n;
ultraLabel6.Width = n;
edQuoteStatusChangedMessage.Width = n;
ultraLabel10.Width = n;
cbQuoteReport.Width = n;
lblWorkorderQuoteStatusID.Width = n;
cbWorkorderQuoteStatusID.Width = n;
}
private void RegionInfoForm_SizeChanged(object sender, EventArgs e)
{
SizeControlsInTab();
}
#endregion form sizing
#region Client notification stuff
#endregion CN stuff
//=====================================================================
}
}