232 lines
7.8 KiB
C#
232 lines
7.8 KiB
C#
/*********************************************************************************************
|
|
* Copyright 2004 - Volian Enterprises, Inc. All rights reserved.
|
|
* Volian Enterprises - Proprietary Information - DO NOT COPY OR DISTRIBUTE
|
|
* ------------------------------------------------------------------------------
|
|
* $Workfile: LockInfoDlg.cs $ $Revision: 1 $
|
|
* $Author: Kathy $ $Date: 7/27/04 8:44a $
|
|
*
|
|
* $History: LockInfoDlg.cs $
|
|
*
|
|
* ***************** Version 1 *****************
|
|
* User: Kathy Date: 7/27/04 Time: 8:44a
|
|
* Created in $/LibSource/VENetwork
|
|
*********************************************************************************************/
|
|
|
|
using System;
|
|
using System.Drawing;
|
|
using System.Collections;
|
|
using System.ComponentModel;
|
|
using System.Windows.Forms;
|
|
|
|
namespace VENetwork
|
|
{
|
|
/// <summary>
|
|
/// Summary description for Form1.
|
|
/// </summary>
|
|
public class LockInfoDlg : System.Windows.Forms.Form
|
|
{
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.Label label3;
|
|
private System.Windows.Forms.Label label4;
|
|
private System.Windows.Forms.Label label5;
|
|
private System.Windows.Forms.TextBox tbUserName;
|
|
private System.Windows.Forms.TextBox tbLoc;
|
|
private System.Windows.Forms.Button button1;
|
|
private System.Windows.Forms.TextBox tbPhone1;
|
|
private System.Windows.Forms.TextBox tbWhy;
|
|
private System.Windows.Forms.TextBox tbWhyDT;
|
|
private System.Windows.Forms.TextBox tbPhone2;
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.Container components = null;
|
|
private string [] SLockTypes = {"System", "Plant", "Procedure Set"};
|
|
public LockInfoDlg(VELock lck)
|
|
{
|
|
InitializeComponent();
|
|
this.tbUserName.Text = lck.UserName;
|
|
this.tbPhone1.Text = lck.Phone1;
|
|
this.tbPhone2.Text = lck.Phone2;
|
|
this.tbLoc.Text = lck.Loc1 + " - " + lck.Loc2;
|
|
this.tbWhy.Text = lck.Why;
|
|
this.tbWhyDT.Text = lck.WhyDT.ToShortDateString() + " " + lck.WhyDT.ToShortTimeString();
|
|
this.Text = SLockTypes[(int)lck.LockType-1] + " Lock";
|
|
}
|
|
|
|
/// <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(LockInfoDlg));
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
this.label5 = new System.Windows.Forms.Label();
|
|
this.tbUserName = new System.Windows.Forms.TextBox();
|
|
this.tbLoc = new System.Windows.Forms.TextBox();
|
|
this.tbPhone1 = new System.Windows.Forms.TextBox();
|
|
this.tbWhy = new System.Windows.Forms.TextBox();
|
|
this.tbWhyDT = new System.Windows.Forms.TextBox();
|
|
this.button1 = new System.Windows.Forms.Button();
|
|
this.tbPhone2 = new System.Windows.Forms.TextBox();
|
|
this.SuspendLayout();
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.Location = new System.Drawing.Point(0, 8);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(80, 16);
|
|
this.label1.TabIndex = 0;
|
|
this.label1.Text = "Locked by:";
|
|
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.Location = new System.Drawing.Point(8, 40);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(72, 16);
|
|
this.label2.TabIndex = 1;
|
|
this.label2.Text = "Location:";
|
|
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.Location = new System.Drawing.Point(0, 72);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(80, 16);
|
|
this.label3.TabIndex = 2;
|
|
this.label3.Text = "Phone:";
|
|
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// label4
|
|
//
|
|
this.label4.Location = new System.Drawing.Point(0, 136);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new System.Drawing.Size(80, 16);
|
|
this.label4.TabIndex = 3;
|
|
this.label4.Text = "Information:";
|
|
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// label5
|
|
//
|
|
this.label5.Location = new System.Drawing.Point(0, 168);
|
|
this.label5.Name = "label5";
|
|
this.label5.Size = new System.Drawing.Size(80, 16);
|
|
this.label5.TabIndex = 4;
|
|
this.label5.Text = "Lock Created:";
|
|
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// tbUserName
|
|
//
|
|
this.tbUserName.BackColor = System.Drawing.SystemColors.Control;
|
|
this.tbUserName.Location = new System.Drawing.Point(96, 8);
|
|
this.tbUserName.Name = "tbUserName";
|
|
this.tbUserName.ReadOnly = true;
|
|
this.tbUserName.Size = new System.Drawing.Size(304, 20);
|
|
this.tbUserName.TabIndex = 5;
|
|
this.tbUserName.Text = "";
|
|
//
|
|
// tbLoc
|
|
//
|
|
this.tbLoc.BackColor = System.Drawing.SystemColors.Control;
|
|
this.tbLoc.Location = new System.Drawing.Point(96, 40);
|
|
this.tbLoc.Name = "tbLoc";
|
|
this.tbLoc.ReadOnly = true;
|
|
this.tbLoc.Size = new System.Drawing.Size(304, 20);
|
|
this.tbLoc.TabIndex = 6;
|
|
this.tbLoc.Text = "";
|
|
//
|
|
// tbPhone1
|
|
//
|
|
this.tbPhone1.BackColor = System.Drawing.SystemColors.Control;
|
|
this.tbPhone1.Location = new System.Drawing.Point(96, 72);
|
|
this.tbPhone1.Name = "tbPhone1";
|
|
this.tbPhone1.ReadOnly = true;
|
|
this.tbPhone1.Size = new System.Drawing.Size(168, 20);
|
|
this.tbPhone1.TabIndex = 7;
|
|
this.tbPhone1.Text = "";
|
|
//
|
|
// tbWhy
|
|
//
|
|
this.tbWhy.BackColor = System.Drawing.SystemColors.Control;
|
|
this.tbWhy.Location = new System.Drawing.Point(96, 136);
|
|
this.tbWhy.Name = "tbWhy";
|
|
this.tbWhy.ReadOnly = true;
|
|
this.tbWhy.Size = new System.Drawing.Size(304, 20);
|
|
this.tbWhy.TabIndex = 8;
|
|
this.tbWhy.Text = "";
|
|
//
|
|
// tbWhyDT
|
|
//
|
|
this.tbWhyDT.BackColor = System.Drawing.SystemColors.Control;
|
|
this.tbWhyDT.Location = new System.Drawing.Point(96, 168);
|
|
this.tbWhyDT.Name = "tbWhyDT";
|
|
this.tbWhyDT.ReadOnly = true;
|
|
this.tbWhyDT.Size = new System.Drawing.Size(208, 20);
|
|
this.tbWhyDT.TabIndex = 9;
|
|
this.tbWhyDT.Text = "";
|
|
//
|
|
// button1
|
|
//
|
|
this.button1.DialogResult = System.Windows.Forms.DialogResult.OK;
|
|
this.button1.Location = new System.Drawing.Point(168, 200);
|
|
this.button1.Name = "button1";
|
|
this.button1.Size = new System.Drawing.Size(72, 24);
|
|
this.button1.TabIndex = 10;
|
|
this.button1.Text = "OK";
|
|
//
|
|
// tbPhone2
|
|
//
|
|
this.tbPhone2.Location = new System.Drawing.Point(96, 104);
|
|
this.tbPhone2.Name = "tbPhone2";
|
|
this.tbPhone2.ReadOnly = true;
|
|
this.tbPhone2.Size = new System.Drawing.Size(168, 20);
|
|
this.tbPhone2.TabIndex = 0;
|
|
this.tbPhone2.Text = "";
|
|
//
|
|
// LockInfoDlg
|
|
//
|
|
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
|
|
this.ClientSize = new System.Drawing.Size(424, 230);
|
|
this.Controls.Add(this.tbPhone2);
|
|
this.Controls.Add(this.button1);
|
|
this.Controls.Add(this.tbWhyDT);
|
|
this.Controls.Add(this.tbWhy);
|
|
this.Controls.Add(this.tbPhone1);
|
|
this.Controls.Add(this.tbLoc);
|
|
this.Controls.Add(this.tbUserName);
|
|
this.Controls.Add(this.label5);
|
|
this.Controls.Add(this.label4);
|
|
this.Controls.Add(this.label3);
|
|
this.Controls.Add(this.label2);
|
|
this.Controls.Add(this.label1);
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
this.Name = "LockInfoDlg";
|
|
this.Text = "Form1";
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
#endregion
|
|
}
|
|
}
|