From 70e8bfdb7e62d42f50cea83f2116290cd082e73e Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 14 Feb 2019 18:45:01 +0000 Subject: [PATCH] 3631 --- source/WinFormApp/WorkorderForm.cs | 265 +++++++++++++++-------------- 1 file changed, 135 insertions(+), 130 deletions(-) diff --git a/source/WinFormApp/WorkorderForm.cs b/source/WinFormApp/WorkorderForm.cs index dbd14ca..7463840 100644 --- a/source/WinFormApp/WorkorderForm.cs +++ b/source/WinFormApp/WorkorderForm.cs @@ -719,7 +719,7 @@ namespace AyaNova // // ckOnsite // - this.ckOnsite.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.ckOnsite.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.ckOnsite.Checked = true; this.ckOnsite.CheckState = System.Windows.Forms.CheckState.Checked; @@ -845,7 +845,7 @@ namespace AyaNova // // ckTemplateFreshPrice // - this.ckTemplateFreshPrice.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.ckTemplateFreshPrice.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.ckTemplateFreshPrice.Checked = true; this.ckTemplateFreshPrice.CheckState = System.Windows.Forms.CheckState.Checked; @@ -881,7 +881,7 @@ namespace AyaNova // // lblRegionID // - this.lblRegionID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.lblRegionID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lblRegionID.Location = new System.Drawing.Point(6, 61); this.lblRegionID.Name = "lblRegionID"; @@ -923,7 +923,7 @@ namespace AyaNova // // edClientID // - this.edClientID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.edClientID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.edClientID.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.edClientID.Location = new System.Drawing.Point(3, 28); @@ -938,7 +938,7 @@ namespace AyaNova // // btnClientID // - this.btnClientID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.btnClientID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); appearance5.TextHAlignAsString = "Left"; this.btnClientID.Appearance = appearance5; @@ -1316,7 +1316,7 @@ namespace AyaNova // // lblIntroduction // - this.lblIntroduction.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.lblIntroduction.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lblIntroduction.Location = new System.Drawing.Point(3, 28); this.lblIntroduction.Name = "lblIntroduction"; @@ -1329,7 +1329,7 @@ namespace AyaNova // edIntroduction // this.edIntroduction.AcceptsReturn = true; - this.edIntroduction.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.edIntroduction.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.edIntroduction.Location = new System.Drawing.Point(3, 46); this.edIntroduction.Multiline = true; @@ -1487,7 +1487,7 @@ namespace AyaNova // // ckPMActive // - this.ckPMActive.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.ckPMActive.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.ckPMActive.Checked = true; this.ckPMActive.CheckState = System.Windows.Forms.CheckState.Checked; @@ -2048,7 +2048,7 @@ namespace AyaNova // edWorkorderItemOutsideServiceNotes // this.edWorkorderItemOutsideServiceNotes.AcceptsReturn = true; - this.edWorkorderItemOutsideServiceNotes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.edWorkorderItemOutsideServiceNotes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left))); this.edWorkorderItemOutsideServiceNotes.Location = new System.Drawing.Point(0, 186); this.edWorkorderItemOutsideServiceNotes.Multiline = true; @@ -2060,7 +2060,7 @@ namespace AyaNova // // lblWorkorderItemOutsideServiceNotes // - this.lblWorkorderItemOutsideServiceNotes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.lblWorkorderItemOutsideServiceNotes.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lblWorkorderItemOutsideServiceNotes.Location = new System.Drawing.Point(0, 166); this.lblWorkorderItemOutsideServiceNotes.Name = "lblWorkorderItemOutsideServiceNotes"; @@ -2142,7 +2142,7 @@ namespace AyaNova // // cbWorkorderItemTasks // - this.cbWorkorderItemTasks.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.cbWorkorderItemTasks.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); appearance18.Image = global::AyaNova.Resource1.New16; editorButton1.Appearance = appearance18; @@ -2156,7 +2156,7 @@ namespace AyaNova // // btnWorkorderItemTask // - this.btnWorkorderItemTask.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.btnWorkorderItemTask.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); appearance19.TextHAlignAsString = "Left"; this.btnWorkorderItemTask.Appearance = appearance19; @@ -2218,8 +2218,8 @@ namespace AyaNova // // edWarrantyInfo // - this.edWarrantyInfo.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) + this.edWarrantyInfo.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.edWarrantyInfo.BorderStyle = Infragistics.Win.UIElementBorderStyle.Etched; this.edWarrantyInfo.Location = new System.Drawing.Point(19, 65); @@ -2254,7 +2254,7 @@ namespace AyaNova // // cbWorkorderItemUnitID // - this.cbWorkorderItemUnitID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.cbWorkorderItemUnitID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.cbWorkorderItemUnitID.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.SuggestAppend; this.cbWorkorderItemUnitID.LimitToList = true; @@ -2267,7 +2267,7 @@ namespace AyaNova // // btnUnitID // - this.btnUnitID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + this.btnUnitID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); appearance22.TextHAlignAsString = "Left"; this.btnUnitID.Appearance = appearance22; @@ -3093,7 +3093,7 @@ namespace AyaNova splitter1.SplitPosition = Split1; Util.PluginInsertMenu(tbManager, new Util.PluginMenuOptionData(true, mWorkorder.RootObjectType, mWorkorder, null));//case 941 - + //case 1122 Util.ShowAllInsertMenu(tbManager, new TypeAndID(RootObjectTypes.Client, mWorkorder.ClientID), this); @@ -3135,7 +3135,7 @@ namespace AyaNova //case 1194 mHideControlsFormName = this.Name + "[" + this.mWorkorder.WorkorderType.ToString() + "]"; if (Util.GlobalSettings.HiddenControls.Count > 0) - { + { HideSelectedControls(mHideControlsFormName, this); } this.Visible = true; @@ -3192,8 +3192,8 @@ namespace AyaNova private bool bDesignMode = false; System.Collections.Generic.List