Commit for development environment setup
This commit is contained in:
@@ -0,0 +1,235 @@
|
||||
/*********************************************************************************************
|
||||
* Copyright 2005 - Volian Enterprises, Inc. All rights reserved.
|
||||
* Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
||||
* ------------------------------------------------------------------------------
|
||||
* $Workfile: ApproveDlg.cs $ $Revision: 2 $
|
||||
* $Author: Jsj $ $Date: 5/17/05 11:55a $
|
||||
*
|
||||
* $History: ApproveDlg.cs $
|
||||
*
|
||||
* ***************** Version 2 *****************
|
||||
* User: Jsj Date: 5/17/05 Time: 11:55a
|
||||
* Updated in $/LibSource/VEObject
|
||||
* cleanup
|
||||
*
|
||||
* ***************** Version 1 *****************
|
||||
* User: Kathy Date: 3/08/05 Time: 1:50p
|
||||
* Created in $/LibSource/VEObject
|
||||
* Approval
|
||||
*********************************************************************************************/
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
using Utils;
|
||||
|
||||
namespace VEObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for ApproveDlg.
|
||||
/// </summary>
|
||||
public class ApproveDlg : System.Windows.Forms.Form
|
||||
{
|
||||
private System.Windows.Forms.TextBox tbApprovalDate;
|
||||
private System.Windows.Forms.Label lblDate;
|
||||
private System.Windows.Forms.GroupBox grpCB;
|
||||
private System.Windows.Forms.RadioButton rbWDKeep;
|
||||
private System.Windows.Forms.RadioButton rbWDRemove;
|
||||
private System.Windows.Forms.CheckBox cbZipApp;
|
||||
private System.Windows.Forms.Button btnOK;
|
||||
private System.Windows.Forms.Button btnCancel;
|
||||
private System.Windows.Forms.CheckBox cbTmpChg;
|
||||
|
||||
public ApprovalOptions ApprovalOptions
|
||||
{
|
||||
get
|
||||
{
|
||||
ApprovalOptions ao = new ApprovalOptions();
|
||||
ao.ApproveDate = this.tbApprovalDate.Text;
|
||||
ao.ChangeBarsWD = this.rbWDKeep.Checked;
|
||||
ao.DoZip = this.cbZipApp.Checked;
|
||||
return ao;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.Container components = null;
|
||||
|
||||
public ApproveDlg()
|
||||
{
|
||||
//
|
||||
// Required for Windows Form Designer support
|
||||
//
|
||||
InitializeComponent();
|
||||
this.tbApprovalDate.Text = DTI.MakeDate(DTI.DateTimeInit,false,false);
|
||||
this.rbWDRemove.Checked = true;
|
||||
this.cbZipApp.Checked = true;
|
||||
}
|
||||
|
||||
/// <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()
|
||||
{
|
||||
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ApproveDlg));
|
||||
this.tbApprovalDate = new System.Windows.Forms.TextBox();
|
||||
this.lblDate = new System.Windows.Forms.Label();
|
||||
this.grpCB = new System.Windows.Forms.GroupBox();
|
||||
this.rbWDRemove = new System.Windows.Forms.RadioButton();
|
||||
this.rbWDKeep = new System.Windows.Forms.RadioButton();
|
||||
this.cbZipApp = new System.Windows.Forms.CheckBox();
|
||||
this.btnOK = new System.Windows.Forms.Button();
|
||||
this.btnCancel = new System.Windows.Forms.Button();
|
||||
this.cbTmpChg = new System.Windows.Forms.CheckBox();
|
||||
this.grpCB.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// tbApprovalDate
|
||||
//
|
||||
this.tbApprovalDate.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
||||
this.tbApprovalDate.Location = new System.Drawing.Point(221, 9);
|
||||
this.tbApprovalDate.Name = "tbApprovalDate";
|
||||
this.tbApprovalDate.Size = new System.Drawing.Size(249, 24);
|
||||
this.tbApprovalDate.TabIndex = 3;
|
||||
this.tbApprovalDate.Text = "";
|
||||
//
|
||||
// lblDate
|
||||
//
|
||||
this.lblDate.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
||||
this.lblDate.Location = new System.Drawing.Point(19, 18);
|
||||
this.lblDate.Name = "lblDate";
|
||||
this.lblDate.Size = new System.Drawing.Size(183, 19);
|
||||
this.lblDate.TabIndex = 2;
|
||||
this.lblDate.Text = "Approval Date:";
|
||||
//
|
||||
// grpCB
|
||||
//
|
||||
this.grpCB.Controls.Add(this.rbWDRemove);
|
||||
this.grpCB.Controls.Add(this.rbWDKeep);
|
||||
this.grpCB.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
||||
this.grpCB.Location = new System.Drawing.Point(10, 65);
|
||||
this.grpCB.Name = "grpCB";
|
||||
this.grpCB.Size = new System.Drawing.Size(268, 64);
|
||||
this.grpCB.TabIndex = 4;
|
||||
this.grpCB.TabStop = false;
|
||||
this.grpCB.Text = "Change Bars In Working Draft";
|
||||
//
|
||||
// rbWDRemove
|
||||
//
|
||||
this.rbWDRemove.Location = new System.Drawing.Point(154, 28);
|
||||
this.rbWDRemove.Name = "rbWDRemove";
|
||||
this.rbWDRemove.Size = new System.Drawing.Size(86, 27);
|
||||
this.rbWDRemove.TabIndex = 1;
|
||||
this.rbWDRemove.Text = "Remove";
|
||||
//
|
||||
// rbWDKeep
|
||||
//
|
||||
this.rbWDKeep.Location = new System.Drawing.Point(29, 28);
|
||||
this.rbWDKeep.Name = "rbWDKeep";
|
||||
this.rbWDKeep.Size = new System.Drawing.Size(77, 27);
|
||||
this.rbWDKeep.TabIndex = 0;
|
||||
this.rbWDKeep.Text = "Keep";
|
||||
//
|
||||
// cbZipApp
|
||||
//
|
||||
this.cbZipApp.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
||||
this.cbZipApp.Location = new System.Drawing.Point(19, 194);
|
||||
this.cbZipApp.Name = "cbZipApp";
|
||||
this.cbZipApp.Size = new System.Drawing.Size(269, 28);
|
||||
this.cbZipApp.TabIndex = 6;
|
||||
this.cbZipApp.Text = "Archive Data Before Approval?";
|
||||
//
|
||||
// btnOK
|
||||
//
|
||||
this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
|
||||
this.btnOK.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
||||
this.btnOK.Location = new System.Drawing.Point(96, 240);
|
||||
this.btnOK.Name = "btnOK";
|
||||
this.btnOK.Size = new System.Drawing.Size(182, 28);
|
||||
this.btnOK.TabIndex = 7;
|
||||
this.btnOK.Text = "Continue with Approval";
|
||||
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
|
||||
//
|
||||
// btnCancel
|
||||
//
|
||||
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.btnCancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
||||
this.btnCancel.Location = new System.Drawing.Point(307, 240);
|
||||
this.btnCancel.Name = "btnCancel";
|
||||
this.btnCancel.Size = new System.Drawing.Size(183, 28);
|
||||
this.btnCancel.TabIndex = 8;
|
||||
this.btnCancel.Text = "Cancel Approval";
|
||||
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
|
||||
//
|
||||
// cbTmpChg
|
||||
//
|
||||
this.cbTmpChg.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
||||
this.cbTmpChg.Location = new System.Drawing.Point(19, 157);
|
||||
this.cbTmpChg.Name = "cbTmpChg";
|
||||
this.cbTmpChg.Size = new System.Drawing.Size(317, 28);
|
||||
this.cbTmpChg.TabIndex = 9;
|
||||
this.cbTmpChg.Text = "Create A Temporary Change Version?";
|
||||
//
|
||||
// ApproveDlg
|
||||
//
|
||||
this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
|
||||
this.ClientSize = new System.Drawing.Size(604, 293);
|
||||
this.Controls.Add(this.cbTmpChg);
|
||||
this.Controls.Add(this.btnCancel);
|
||||
this.Controls.Add(this.btnOK);
|
||||
this.Controls.Add(this.cbZipApp);
|
||||
this.Controls.Add(this.grpCB);
|
||||
this.Controls.Add(this.tbApprovalDate);
|
||||
this.Controls.Add(this.lblDate);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "ApproveDlg";
|
||||
this.Text = "Approval Properties";
|
||||
this.grpCB.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
private void btnOK_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, System.EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
public class ApprovalOptions
|
||||
{
|
||||
//public string ApproveNameRev;
|
||||
public string Type;
|
||||
public string ApproveDate;
|
||||
public bool ChangeBarsWD;
|
||||
public bool ChangeBarsApp;
|
||||
public bool DoZip;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user