207 lines
7.2 KiB
C#
207 lines
7.2 KiB
C#
using System;
|
|
using System.Drawing;
|
|
using System.Collections;
|
|
using System.ComponentModel;
|
|
using System.Windows.Forms;
|
|
using System.Data;
|
|
|
|
namespace AyaNova.PlugIn.PTI
|
|
{
|
|
/// <summary>
|
|
/// Summary description for FixPriceDifference.
|
|
/// </summary>
|
|
public class FixPriceDifference : System.Windows.Forms.Form
|
|
{
|
|
private System.Windows.Forms.Button btnOK;
|
|
private System.Windows.Forms.Button btnCancel;
|
|
private Infragistics.Win.Misc.UltraLabel lblPrices;
|
|
private Infragistics.Win.UltraWinEditors.UltraOptionSet osChoice;
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.Container components = null;
|
|
|
|
public FixPriceDifference()
|
|
{
|
|
//
|
|
// Required for Windows Form Designer support
|
|
//
|
|
InitializeComponent();
|
|
|
|
this.btnCancel.Image = Util.AyaImage("Cancel24");
|
|
this.btnOK.Image = Util.AyaImage("OK24");
|
|
}
|
|
|
|
/// <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()
|
|
{
|
|
Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
|
|
Infragistics.Win.ValueListItem valueListItem1 = new Infragistics.Win.ValueListItem();
|
|
Infragistics.Win.ValueListItem valueListItem2 = new Infragistics.Win.ValueListItem();
|
|
Infragistics.Win.ValueListItem valueListItem3 = new Infragistics.Win.ValueListItem();
|
|
Infragistics.Win.ValueListItem valueListItem4 = new Infragistics.Win.ValueListItem();
|
|
this.btnOK = new System.Windows.Forms.Button();
|
|
this.btnCancel = new System.Windows.Forms.Button();
|
|
this.lblPrices = new Infragistics.Win.Misc.UltraLabel();
|
|
this.osChoice = new Infragistics.Win.UltraWinEditors.UltraOptionSet();
|
|
((System.ComponentModel.ISupportInitialize)(this.osChoice)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// btnOK
|
|
//
|
|
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
|
this.btnOK.BackColor = System.Drawing.SystemColors.Control;
|
|
this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
|
|
this.btnOK.Location = new System.Drawing.Point(520, 220);
|
|
this.btnOK.Name = "btnOK";
|
|
this.btnOK.Size = new System.Drawing.Size(102, 40);
|
|
this.btnOK.TabIndex = 32;
|
|
this.btnOK.UseVisualStyleBackColor = false;
|
|
//
|
|
// btnCancel
|
|
//
|
|
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.btnCancel.BackColor = System.Drawing.SystemColors.Control;
|
|
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
this.btnCancel.Location = new System.Drawing.Point(14, 221);
|
|
this.btnCancel.Name = "btnCancel";
|
|
this.btnCancel.Size = new System.Drawing.Size(102, 40);
|
|
this.btnCancel.TabIndex = 31;
|
|
this.btnCancel.UseVisualStyleBackColor = false;
|
|
//
|
|
// lblPrices
|
|
//
|
|
appearance1.TextVAlignAsString = "Middle";
|
|
this.lblPrices.Appearance = appearance1;
|
|
this.lblPrices.BackColorInternal = System.Drawing.SystemColors.Window;
|
|
this.lblPrices.Dock = System.Windows.Forms.DockStyle.Top;
|
|
this.lblPrices.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblPrices.Location = new System.Drawing.Point(0, 0);
|
|
this.lblPrices.Name = "lblPrices";
|
|
this.lblPrices.Size = new System.Drawing.Size(630, 89);
|
|
this.lblPrices.TabIndex = 34;
|
|
this.lblPrices.Text = "ultraLabel1";
|
|
//
|
|
// osChoice
|
|
//
|
|
this.osChoice.BorderStyle = Infragistics.Win.UIElementBorderStyle.None;
|
|
this.osChoice.Dock = System.Windows.Forms.DockStyle.Top;
|
|
this.osChoice.ItemOrigin = new System.Drawing.Point(5, 5);
|
|
valueListItem1.DataValue = "AYAONCE";
|
|
valueListItem1.DisplayText = "Use the work order price as it is; even though it\'s different";
|
|
valueListItem2.DataValue = "QBONCE";
|
|
valueListItem2.DisplayText = "Set the work order item\'s price to the Peachtree price";
|
|
valueListItem3.DataValue = "CHANGEAYA";
|
|
valueListItem3.DisplayText = "Set the AyaNova object\'s default price to be the Peachtree price from now on";
|
|
valueListItem4.DataValue = "CHANGEQB";
|
|
valueListItem4.DisplayText = "Set the Peachtree object\'s default price to be the AyaNova price from now on";
|
|
this.osChoice.Items.AddRange(new Infragistics.Win.ValueListItem[] {
|
|
valueListItem1,
|
|
valueListItem2,
|
|
valueListItem3,
|
|
valueListItem4});
|
|
this.osChoice.ItemSpacingVertical = 8;
|
|
this.osChoice.Location = new System.Drawing.Point(0, 89);
|
|
this.osChoice.Name = "osChoice";
|
|
this.osChoice.Size = new System.Drawing.Size(630, 121);
|
|
this.osChoice.TabIndex = 35;
|
|
//
|
|
// FixPriceDifference
|
|
//
|
|
this.AcceptButton = this.btnOK;
|
|
this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
|
|
this.CancelButton = this.btnCancel;
|
|
this.ClientSize = new System.Drawing.Size(630, 275);
|
|
this.ControlBox = false;
|
|
this.Controls.Add(this.osChoice);
|
|
this.Controls.Add(this.lblPrices);
|
|
this.Controls.Add(this.btnOK);
|
|
this.Controls.Add(this.btnCancel);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
|
|
this.MinimumSize = new System.Drawing.Size(642, 306);
|
|
this.Name = "FixPriceDifference";
|
|
this.Text = "Resolve AyaNova object price";
|
|
this.Load += new System.EventHandler(this.FixPriceDifference_Load);
|
|
((System.ComponentModel.ISupportInitialize)(this.osChoice)).EndInit();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private string _AyaItem;
|
|
|
|
|
|
|
|
private void FixPriceDifference_Load(object sender, System.EventArgs e)
|
|
{
|
|
lblPrices.Text=_AyaItem;
|
|
this.osChoice.CheckedItem=this.osChoice.Items[0];
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string PriceDescription
|
|
{
|
|
set
|
|
{
|
|
_AyaItem=value;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public string SelectedResolution
|
|
{
|
|
get
|
|
{
|
|
return this.osChoice.CheckedItem.DataValue.ToString();
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|