SB 20-Jun-2019
This commit is contained in:
@@ -0,0 +1,124 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_Admission
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.buttonOk = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.tabControl = new System.Windows.Forms.TabControl();
|
||||
this.buttonCancel = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.groupBoxProperties = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.tabControl.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonOk.Location = new System.Drawing.Point(411, 441);
|
||||
this.buttonOk.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOk.TabIndex = 6;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 25);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(600, 197);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "tabPage1";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 25);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new System.Drawing.Size(600, 68);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "tabPage2";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabControl
|
||||
//
|
||||
this.tabControl.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.tabControl.Controls.Add(this.tabPage1);
|
||||
this.tabControl.Controls.Add(this.tabPage2);
|
||||
this.tabControl.Location = new System.Drawing.Point(12, 208);
|
||||
this.tabControl.Name = "tabControl";
|
||||
this.tabControl.SelectedIndex = 0;
|
||||
this.tabControl.Size = new System.Drawing.Size(608, 226);
|
||||
this.tabControl.TabIndex = 5;
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(519, 441);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 7;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBoxProperties
|
||||
//
|
||||
this.groupBoxProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxProperties.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxProperties.Location = new System.Drawing.Point(12, 12);
|
||||
this.groupBoxProperties.Name = "groupBoxProperties";
|
||||
this.groupBoxProperties.Size = new System.Drawing.Size(608, 190);
|
||||
this.groupBoxProperties.TabIndex = 4;
|
||||
this.groupBoxProperties.TabStop = false;
|
||||
this.groupBoxProperties.Text = "Properties";
|
||||
//
|
||||
// SpmForm_Admission
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(632, 482);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.Controls.Add(this.tabControl);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.Controls.Add(this.groupBoxProperties);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(650, 500);
|
||||
this.Name = "SpmForm_Admission";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "Update Admission";
|
||||
this.tabControl.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonOk;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private System.Windows.Forms.TabControl tabControl;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonCancel;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxProperties;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_Admission : SpmForm
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_Item.Config
|
||||
{
|
||||
public SpmAdmission AdmissionToUpdate { internal get; set; } = null;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_Admission() : this(new Config()) { }
|
||||
public SpmForm_Admission(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
[Browsable(false)]
|
||||
protected override String DefaultMessageTitle { get { return "Admission"; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S h o w D i a l o g
|
||||
//-------------------------------------------------------------------
|
||||
public new DialogResult ShowDialog()
|
||||
{
|
||||
return base.ShowDialog();
|
||||
}
|
||||
// Validate configuration to ensure that form can be opened correctly.
|
||||
private bool ValidateConfiguration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
// Complete dialog initialisation.
|
||||
PositionControls();
|
||||
AcceptChanges();
|
||||
SetControlActivity();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
// Initial focus.
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o p u l a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateToControls.
|
||||
private void PopulateToControls(SpmAdmission.Data data)
|
||||
{
|
||||
// Populate item properties to controls.
|
||||
|
||||
AcceptChanges();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate properties.
|
||||
public bool IsDataValid(SpmAdmission.Data data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateFromControls.
|
||||
private void PopulateFromControls(SpmAdmission.Data data)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// UpdatedAssociated Data.
|
||||
public bool UpdateAssociatedData()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C l o s e F o r m
|
||||
//-------------------------------------------------------------------
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
protected override void SetControlActivity()
|
||||
{
|
||||
SetControlsReadOnly();
|
||||
}
|
||||
public bool IsFieldReadOnly(SpmDbDfn.ColumnIdx col)
|
||||
{
|
||||
if (ReadOnly) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
protected override void SetControlsReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o s i t i o n C o n t r o l s
|
||||
//-------------------------------------------------------------------
|
||||
protected override void PositionControls()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,302 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_Department
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.groupBoxProperties = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.labelApplication = new System.Windows.Forms.Label();
|
||||
this.labelthrough = new System.Windows.Forms.Label();
|
||||
this.dateTimePickerApplicTo = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.checkBoxAllowAnyWards = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxAllowAnyClinics = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxWards = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxClinics = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxAllowAnyTheatres = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxTheatres = new System.Windows.Forms.CheckBox();
|
||||
this.dateTimePickerApplicFrom = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.labelName = new System.Windows.Forms.Label();
|
||||
this.labelInstitution = new System.Windows.Forms.Label();
|
||||
this.textBoxName = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.textBoxInstitution = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.tabControl = new System.Windows.Forms.TabControl();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.buttonCancel = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.buttonOk = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.groupBoxProperties.SuspendLayout();
|
||||
this.tabControl.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// groupBoxProperties
|
||||
//
|
||||
this.groupBoxProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxProperties.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxProperties.Controls.Add(this.labelApplication);
|
||||
this.groupBoxProperties.Controls.Add(this.labelthrough);
|
||||
this.groupBoxProperties.Controls.Add(this.dateTimePickerApplicTo);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxAllowAnyWards);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxAllowAnyClinics);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxWards);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxClinics);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxAllowAnyTheatres);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxTheatres);
|
||||
this.groupBoxProperties.Controls.Add(this.dateTimePickerApplicFrom);
|
||||
this.groupBoxProperties.Controls.Add(this.labelName);
|
||||
this.groupBoxProperties.Controls.Add(this.labelInstitution);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxName);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxInstitution);
|
||||
this.groupBoxProperties.Location = new System.Drawing.Point(12, 12);
|
||||
this.groupBoxProperties.Name = "groupBoxProperties";
|
||||
this.groupBoxProperties.Size = new System.Drawing.Size(608, 190);
|
||||
this.groupBoxProperties.TabIndex = 0;
|
||||
this.groupBoxProperties.TabStop = false;
|
||||
this.groupBoxProperties.Text = "Properties";
|
||||
//
|
||||
// labelApplication
|
||||
//
|
||||
this.labelApplication.AutoSize = true;
|
||||
this.labelApplication.Location = new System.Drawing.Point(72, 158);
|
||||
this.labelApplication.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelApplication.Name = "labelApplication";
|
||||
this.labelApplication.Size = new System.Drawing.Size(109, 17);
|
||||
this.labelApplication.TabIndex = 10;
|
||||
this.labelApplication.Text = "Application from";
|
||||
//
|
||||
// labelthrough
|
||||
//
|
||||
this.labelthrough.AutoSize = true;
|
||||
this.labelthrough.Location = new System.Drawing.Point(364, 160);
|
||||
this.labelthrough.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelthrough.Name = "labelthrough";
|
||||
this.labelthrough.Size = new System.Drawing.Size(57, 17);
|
||||
this.labelthrough.TabIndex = 12;
|
||||
this.labelthrough.Text = "through";
|
||||
//
|
||||
// dateTimePickerApplicTo
|
||||
//
|
||||
this.dateTimePickerApplicTo.Location = new System.Drawing.Point(426, 157);
|
||||
this.dateTimePickerApplicTo.Name = "dateTimePickerApplicTo";
|
||||
this.dateTimePickerApplicTo.Size = new System.Drawing.Size(170, 22);
|
||||
this.dateTimePickerApplicTo.TabIndex = 13;
|
||||
this.dateTimePickerApplicTo.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// checkBoxAllowAnyWards
|
||||
//
|
||||
this.checkBoxAllowAnyWards.AutoSize = true;
|
||||
this.checkBoxAllowAnyWards.Location = new System.Drawing.Point(387, 130);
|
||||
this.checkBoxAllowAnyWards.Name = "checkBoxAllowAnyWards";
|
||||
this.checkBoxAllowAnyWards.Size = new System.Drawing.Size(141, 21);
|
||||
this.checkBoxAllowAnyWards.TabIndex = 9;
|
||||
this.checkBoxAllowAnyWards.Text = "Allow \'Any\' Wards";
|
||||
this.checkBoxAllowAnyWards.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxAllowAnyClinics
|
||||
//
|
||||
this.checkBoxAllowAnyClinics.AutoSize = true;
|
||||
this.checkBoxAllowAnyClinics.Location = new System.Drawing.Point(387, 103);
|
||||
this.checkBoxAllowAnyClinics.Name = "checkBoxAllowAnyClinics";
|
||||
this.checkBoxAllowAnyClinics.Size = new System.Drawing.Size(140, 21);
|
||||
this.checkBoxAllowAnyClinics.TabIndex = 7;
|
||||
this.checkBoxAllowAnyClinics.Text = "Allow \'Any\' Clinics";
|
||||
this.checkBoxAllowAnyClinics.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxWards
|
||||
//
|
||||
this.checkBoxWards.AutoSize = true;
|
||||
this.checkBoxWards.Location = new System.Drawing.Point(188, 130);
|
||||
this.checkBoxWards.Name = "checkBoxWards";
|
||||
this.checkBoxWards.Size = new System.Drawing.Size(71, 21);
|
||||
this.checkBoxWards.TabIndex = 8;
|
||||
this.checkBoxWards.Text = "Wards";
|
||||
this.checkBoxWards.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxClinics
|
||||
//
|
||||
this.checkBoxClinics.AutoSize = true;
|
||||
this.checkBoxClinics.Location = new System.Drawing.Point(188, 103);
|
||||
this.checkBoxClinics.Name = "checkBoxClinics";
|
||||
this.checkBoxClinics.Size = new System.Drawing.Size(70, 21);
|
||||
this.checkBoxClinics.TabIndex = 6;
|
||||
this.checkBoxClinics.Text = "Clinics";
|
||||
this.checkBoxClinics.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxAllowAnyTheatres
|
||||
//
|
||||
this.checkBoxAllowAnyTheatres.AutoSize = true;
|
||||
this.checkBoxAllowAnyTheatres.Location = new System.Drawing.Point(387, 76);
|
||||
this.checkBoxAllowAnyTheatres.Name = "checkBoxAllowAnyTheatres";
|
||||
this.checkBoxAllowAnyTheatres.Size = new System.Drawing.Size(157, 21);
|
||||
this.checkBoxAllowAnyTheatres.TabIndex = 5;
|
||||
this.checkBoxAllowAnyTheatres.Text = "Allow \'Any\' Theatres";
|
||||
this.checkBoxAllowAnyTheatres.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxTheatres
|
||||
//
|
||||
this.checkBoxTheatres.AutoSize = true;
|
||||
this.checkBoxTheatres.Location = new System.Drawing.Point(188, 76);
|
||||
this.checkBoxTheatres.Name = "checkBoxTheatres";
|
||||
this.checkBoxTheatres.Size = new System.Drawing.Size(87, 21);
|
||||
this.checkBoxTheatres.TabIndex = 4;
|
||||
this.checkBoxTheatres.Text = "Theatres";
|
||||
this.checkBoxTheatres.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// dateTimePickerApplicFrom
|
||||
//
|
||||
this.dateTimePickerApplicFrom.Location = new System.Drawing.Point(188, 157);
|
||||
this.dateTimePickerApplicFrom.Name = "dateTimePickerApplicFrom";
|
||||
this.dateTimePickerApplicFrom.Size = new System.Drawing.Size(170, 22);
|
||||
this.dateTimePickerApplicFrom.TabIndex = 11;
|
||||
this.dateTimePickerApplicFrom.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// labelName
|
||||
//
|
||||
this.labelName.AutoSize = true;
|
||||
this.labelName.Location = new System.Drawing.Point(136, 51);
|
||||
this.labelName.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelName.Name = "labelName";
|
||||
this.labelName.Size = new System.Drawing.Size(45, 17);
|
||||
this.labelName.TabIndex = 2;
|
||||
this.labelName.Text = "Name";
|
||||
//
|
||||
// labelInstitution
|
||||
//
|
||||
this.labelInstitution.AutoSize = true;
|
||||
this.labelInstitution.Location = new System.Drawing.Point(113, 23);
|
||||
this.labelInstitution.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelInstitution.Name = "labelInstitution";
|
||||
this.labelInstitution.Size = new System.Drawing.Size(68, 17);
|
||||
this.labelInstitution.TabIndex = 0;
|
||||
this.labelInstitution.Text = "Institution";
|
||||
//
|
||||
// textBoxName
|
||||
//
|
||||
this.textBoxName.Location = new System.Drawing.Point(188, 48);
|
||||
this.textBoxName.Name = "textBoxName";
|
||||
this.textBoxName.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxName.TabIndex = 3;
|
||||
//
|
||||
// textBoxInstitution
|
||||
//
|
||||
this.textBoxInstitution.Location = new System.Drawing.Point(188, 20);
|
||||
this.textBoxInstitution.Name = "textBoxInstitution";
|
||||
this.textBoxInstitution.ReadOnly = true;
|
||||
this.textBoxInstitution.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxInstitution.TabIndex = 1;
|
||||
//
|
||||
// tabControl
|
||||
//
|
||||
this.tabControl.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.tabControl.Controls.Add(this.tabPage1);
|
||||
this.tabControl.Controls.Add(this.tabPage2);
|
||||
this.tabControl.Location = new System.Drawing.Point(12, 208);
|
||||
this.tabControl.Name = "tabControl";
|
||||
this.tabControl.SelectedIndex = 0;
|
||||
this.tabControl.Size = new System.Drawing.Size(608, 197);
|
||||
this.tabControl.TabIndex = 1;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 25);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(600, 168);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "tabPage1";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 25);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new System.Drawing.Size(600, 168);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "tabPage2";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(519, 412);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 3;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
|
||||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonOk.Location = new System.Drawing.Point(411, 412);
|
||||
this.buttonOk.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOk.TabIndex = 2;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
this.buttonOk.Click += new System.EventHandler(this.buttonOk_Click);
|
||||
//
|
||||
// SpmForm_Department
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(632, 453);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.Controls.Add(this.tabControl);
|
||||
this.Controls.Add(this.groupBoxProperties);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(650, 500);
|
||||
this.Name = "SpmForm_Department";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "Update Department";
|
||||
this.groupBoxProperties.ResumeLayout(false);
|
||||
this.groupBoxProperties.PerformLayout();
|
||||
this.tabControl.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxProperties;
|
||||
private System.Windows.Forms.TabControl tabControl;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private System.Windows.Forms.Label labelthrough;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker dateTimePickerApplicTo;
|
||||
private System.Windows.Forms.CheckBox checkBoxAllowAnyWards;
|
||||
private System.Windows.Forms.CheckBox checkBoxAllowAnyClinics;
|
||||
private System.Windows.Forms.CheckBox checkBoxWards;
|
||||
private System.Windows.Forms.CheckBox checkBoxClinics;
|
||||
private System.Windows.Forms.CheckBox checkBoxAllowAnyTheatres;
|
||||
private System.Windows.Forms.CheckBox checkBoxTheatres;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker dateTimePickerApplicFrom;
|
||||
private System.Windows.Forms.Label labelName;
|
||||
private System.Windows.Forms.Label labelInstitution;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxName;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxInstitution;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonCancel;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonOk;
|
||||
private System.Windows.Forms.Label labelApplication;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_Department : SpmForm
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_Item.Config
|
||||
{
|
||||
public SpmDepartment DepartmentToUpdate { internal get; set; } = null;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_Department() : this(new Config()) { }
|
||||
public SpmForm_Department(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
[Browsable(false)]
|
||||
protected override String DefaultMessageTitle { get { return "Department"; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S h o w D i a l o g
|
||||
//-------------------------------------------------------------------
|
||||
public new DialogResult ShowDialog()
|
||||
{
|
||||
return base.ShowDialog();
|
||||
}
|
||||
// Validate configuration to ensure that form can be opened correctly.
|
||||
private bool ValidateConfiguration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
// Complete dialog initialisation.
|
||||
PositionControls();
|
||||
AcceptChanges();
|
||||
SetControlActivity();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
// Initial focus.
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o p u l a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateToControls.
|
||||
private void PopulateToControls(SpmDepartment.Data data)
|
||||
{
|
||||
// Populate item properties to controls.
|
||||
|
||||
AcceptChanges();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate properties.
|
||||
public bool IsDataValid(SpmDepartment.Data data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateFromControls.
|
||||
private void PopulateFromControls(SpmDepartment.Data data)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// UpdatedAssociated Data.
|
||||
public bool UpdateAssociatedData()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C l o s e F o r m
|
||||
//-------------------------------------------------------------------
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
protected override void SetControlActivity()
|
||||
{
|
||||
SetControlsReadOnly();
|
||||
}
|
||||
public bool IsFieldReadOnly(SpmDbDfn.ColumnIdx col)
|
||||
{
|
||||
if (ReadOnly) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
protected override void SetControlsReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o s i t i o n C o n t r o l s
|
||||
//-------------------------------------------------------------------
|
||||
protected override void PositionControls()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,236 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_Employee
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.buttonOk = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.buttonCancel = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.groupBoxProperties = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.labelExcludeSurname = new System.Windows.Forms.Label();
|
||||
this.labelForename = new System.Windows.Forms.Label();
|
||||
this.textBoxForename = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelSurname = new System.Windows.Forms.Label();
|
||||
this.textBoxSurname = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelInitials = new System.Windows.Forms.Label();
|
||||
this.textBoxInitials = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelTitle = new System.Windows.Forms.Label();
|
||||
this.comboBoxTitle = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelCode = new System.Windows.Forms.Label();
|
||||
this.textBoxCode = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelInstitution = new System.Windows.Forms.Label();
|
||||
this.textBoxInstitution = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.groupBoxProperties.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonOk.Location = new System.Drawing.Point(411, 212);
|
||||
this.buttonOk.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOk.TabIndex = 2;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(519, 212);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 3;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBoxProperties
|
||||
//
|
||||
this.groupBoxProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxProperties.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxProperties.Controls.Add(this.labelExcludeSurname);
|
||||
this.groupBoxProperties.Controls.Add(this.labelForename);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxForename);
|
||||
this.groupBoxProperties.Controls.Add(this.labelSurname);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxSurname);
|
||||
this.groupBoxProperties.Controls.Add(this.labelInitials);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxInitials);
|
||||
this.groupBoxProperties.Controls.Add(this.labelTitle);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxTitle);
|
||||
this.groupBoxProperties.Controls.Add(this.labelCode);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxCode);
|
||||
this.groupBoxProperties.Controls.Add(this.labelInstitution);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxInstitution);
|
||||
this.groupBoxProperties.Location = new System.Drawing.Point(12, 12);
|
||||
this.groupBoxProperties.Name = "groupBoxProperties";
|
||||
this.groupBoxProperties.Size = new System.Drawing.Size(608, 190);
|
||||
this.groupBoxProperties.TabIndex = 0;
|
||||
this.groupBoxProperties.TabStop = false;
|
||||
this.groupBoxProperties.Text = "Properties";
|
||||
//
|
||||
// labelExcludeSurname
|
||||
//
|
||||
this.labelExcludeSurname.AutoSize = true;
|
||||
this.labelExcludeSurname.Location = new System.Drawing.Point(297, 109);
|
||||
this.labelExcludeSurname.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelExcludeSurname.Name = "labelExcludeSurname";
|
||||
this.labelExcludeSurname.Size = new System.Drawing.Size(136, 17);
|
||||
this.labelExcludeSurname.TabIndex = 8;
|
||||
this.labelExcludeSurname.Text = "(excluding surname)";
|
||||
//
|
||||
// labelForename
|
||||
//
|
||||
this.labelForename.AutoSize = true;
|
||||
this.labelForename.Location = new System.Drawing.Point(109, 165);
|
||||
this.labelForename.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelForename.Name = "labelForename";
|
||||
this.labelForename.Size = new System.Drawing.Size(72, 17);
|
||||
this.labelForename.TabIndex = 11;
|
||||
this.labelForename.Text = "Forename";
|
||||
//
|
||||
// textBoxForename
|
||||
//
|
||||
this.textBoxForename.Location = new System.Drawing.Point(188, 162);
|
||||
this.textBoxForename.Name = "textBoxForename";
|
||||
this.textBoxForename.Size = new System.Drawing.Size(204, 22);
|
||||
this.textBoxForename.TabIndex = 12;
|
||||
//
|
||||
// labelSurname
|
||||
//
|
||||
this.labelSurname.AutoSize = true;
|
||||
this.labelSurname.Location = new System.Drawing.Point(116, 137);
|
||||
this.labelSurname.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelSurname.Name = "labelSurname";
|
||||
this.labelSurname.Size = new System.Drawing.Size(65, 17);
|
||||
this.labelSurname.TabIndex = 9;
|
||||
this.labelSurname.Text = "Surname";
|
||||
//
|
||||
// textBoxSurname
|
||||
//
|
||||
this.textBoxSurname.Location = new System.Drawing.Point(188, 134);
|
||||
this.textBoxSurname.Name = "textBoxSurname";
|
||||
this.textBoxSurname.Size = new System.Drawing.Size(204, 22);
|
||||
this.textBoxSurname.TabIndex = 10;
|
||||
//
|
||||
// labelInitials
|
||||
//
|
||||
this.labelInitials.AutoSize = true;
|
||||
this.labelInitials.Location = new System.Drawing.Point(134, 109);
|
||||
this.labelInitials.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelInitials.Name = "labelInitials";
|
||||
this.labelInitials.Size = new System.Drawing.Size(47, 17);
|
||||
this.labelInitials.TabIndex = 6;
|
||||
this.labelInitials.Text = "Initials";
|
||||
//
|
||||
// textBoxInitials
|
||||
//
|
||||
this.textBoxInitials.Location = new System.Drawing.Point(188, 106);
|
||||
this.textBoxInitials.Name = "textBoxInitials";
|
||||
this.textBoxInitials.Size = new System.Drawing.Size(102, 22);
|
||||
this.textBoxInitials.TabIndex = 7;
|
||||
//
|
||||
// labelTitle
|
||||
//
|
||||
this.labelTitle.AutoSize = true;
|
||||
this.labelTitle.Location = new System.Drawing.Point(146, 79);
|
||||
this.labelTitle.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelTitle.Name = "labelTitle";
|
||||
this.labelTitle.Size = new System.Drawing.Size(35, 17);
|
||||
this.labelTitle.TabIndex = 4;
|
||||
this.labelTitle.Text = "Title";
|
||||
//
|
||||
// comboBoxTitle
|
||||
//
|
||||
this.comboBoxTitle.FormattingEnabled = true;
|
||||
this.comboBoxTitle.Location = new System.Drawing.Point(188, 76);
|
||||
this.comboBoxTitle.Name = "comboBoxTitle";
|
||||
this.comboBoxTitle.Size = new System.Drawing.Size(204, 24);
|
||||
this.comboBoxTitle.TabIndex = 5;
|
||||
//
|
||||
// labelCode
|
||||
//
|
||||
this.labelCode.AutoSize = true;
|
||||
this.labelCode.Location = new System.Drawing.Point(140, 51);
|
||||
this.labelCode.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelCode.Name = "labelCode";
|
||||
this.labelCode.Size = new System.Drawing.Size(41, 17);
|
||||
this.labelCode.TabIndex = 2;
|
||||
this.labelCode.Text = "Code";
|
||||
//
|
||||
// textBoxCode
|
||||
//
|
||||
this.textBoxCode.Location = new System.Drawing.Point(188, 48);
|
||||
this.textBoxCode.Name = "textBoxCode";
|
||||
this.textBoxCode.Size = new System.Drawing.Size(102, 22);
|
||||
this.textBoxCode.TabIndex = 3;
|
||||
//
|
||||
// labelInstitution
|
||||
//
|
||||
this.labelInstitution.AutoSize = true;
|
||||
this.labelInstitution.Location = new System.Drawing.Point(113, 23);
|
||||
this.labelInstitution.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelInstitution.Name = "labelInstitution";
|
||||
this.labelInstitution.Size = new System.Drawing.Size(68, 17);
|
||||
this.labelInstitution.TabIndex = 0;
|
||||
this.labelInstitution.Text = "Institution";
|
||||
//
|
||||
// textBoxInstitution
|
||||
//
|
||||
this.textBoxInstitution.Location = new System.Drawing.Point(188, 20);
|
||||
this.textBoxInstitution.Name = "textBoxInstitution";
|
||||
this.textBoxInstitution.ReadOnly = true;
|
||||
this.textBoxInstitution.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxInstitution.TabIndex = 1;
|
||||
//
|
||||
// SpmForm_Employee
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(632, 253);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.Controls.Add(this.groupBoxProperties);
|
||||
this.MinimumSize = new System.Drawing.Size(650, 300);
|
||||
this.Name = "SpmForm_Employee";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "Update Employee";
|
||||
this.groupBoxProperties.ResumeLayout(false);
|
||||
this.groupBoxProperties.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonOk;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonCancel;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxProperties;
|
||||
private System.Windows.Forms.Label labelInstitution;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxInstitution;
|
||||
private System.Windows.Forms.Label labelCode;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxCode;
|
||||
private System.Windows.Forms.Label labelTitle;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxTitle;
|
||||
private System.Windows.Forms.Label labelExcludeSurname;
|
||||
private System.Windows.Forms.Label labelForename;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxForename;
|
||||
private System.Windows.Forms.Label labelSurname;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxSurname;
|
||||
private System.Windows.Forms.Label labelInitials;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxInitials;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_Employee : SpmForm
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_Item.Config
|
||||
{
|
||||
public SpmEmployee EmployeeToUpdate { internal get; set; } = null;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_Employee() : this(new Config()) { }
|
||||
public SpmForm_Employee(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
[Browsable(false)]
|
||||
protected override String DefaultMessageTitle { get { return "Employee"; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S h o w D i a l o g
|
||||
//-------------------------------------------------------------------
|
||||
public new DialogResult ShowDialog()
|
||||
{
|
||||
return base.ShowDialog();
|
||||
}
|
||||
// Validate configuration to ensure that form can be opened correctly.
|
||||
private bool ValidateConfiguration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
// Complete dialog initialisation.
|
||||
PositionControls();
|
||||
AcceptChanges();
|
||||
SetControlActivity();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
// Initial focus.
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o p u l a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateToControls.
|
||||
private void PopulateToControls(SpmEmployee.Data data)
|
||||
{
|
||||
// Populate item properties to controls.
|
||||
|
||||
AcceptChanges();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate properties.
|
||||
public bool IsDataValid(SpmEmployee.Data data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateFromControls.
|
||||
private void PopulateFromControls(SpmEmployee.Data data)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// UpdatedAssociated Data.
|
||||
public bool UpdateAssociatedData()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C l o s e F o r m
|
||||
//-------------------------------------------------------------------
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
protected override void SetControlActivity()
|
||||
{
|
||||
SetControlsReadOnly();
|
||||
}
|
||||
public bool IsFieldReadOnly(SpmDbDfn.ColumnIdx col)
|
||||
{
|
||||
if (ReadOnly) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
protected override void SetControlsReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o s i t i o n C o n t r o l s
|
||||
//-------------------------------------------------------------------
|
||||
protected override void PositionControls()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,241 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_EmployeeRole
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.buttonOk = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.buttonCancel = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.groupBoxProperties = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.labelApplication = new System.Windows.Forms.Label();
|
||||
this.labelthrough = new System.Windows.Forms.Label();
|
||||
this.dateTimePickerApplicTo = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.dateTimePickerApplicFrom = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.labelRole = new System.Windows.Forms.Label();
|
||||
this.comboBoxRole = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.buttonSearch = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.labelName = new System.Windows.Forms.Label();
|
||||
this.textBoxName = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelEmployeeCode = new System.Windows.Forms.Label();
|
||||
this.textBoxEmployeeCode = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelDepartment = new System.Windows.Forms.Label();
|
||||
this.textBoxDepartment = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.groupBoxProperties.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonOk.Location = new System.Drawing.Point(411, 212);
|
||||
this.buttonOk.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOk.TabIndex = 2;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(519, 212);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 3;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBoxProperties
|
||||
//
|
||||
this.groupBoxProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxProperties.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxProperties.Controls.Add(this.labelApplication);
|
||||
this.groupBoxProperties.Controls.Add(this.labelthrough);
|
||||
this.groupBoxProperties.Controls.Add(this.dateTimePickerApplicTo);
|
||||
this.groupBoxProperties.Controls.Add(this.dateTimePickerApplicFrom);
|
||||
this.groupBoxProperties.Controls.Add(this.labelRole);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxRole);
|
||||
this.groupBoxProperties.Controls.Add(this.buttonSearch);
|
||||
this.groupBoxProperties.Controls.Add(this.labelName);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxName);
|
||||
this.groupBoxProperties.Controls.Add(this.labelEmployeeCode);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxEmployeeCode);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDepartment);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDepartment);
|
||||
this.groupBoxProperties.Location = new System.Drawing.Point(12, 12);
|
||||
this.groupBoxProperties.Name = "groupBoxProperties";
|
||||
this.groupBoxProperties.Size = new System.Drawing.Size(608, 191);
|
||||
this.groupBoxProperties.TabIndex = 0;
|
||||
this.groupBoxProperties.TabStop = false;
|
||||
this.groupBoxProperties.Text = "Properties";
|
||||
//
|
||||
// labelApplication
|
||||
//
|
||||
this.labelApplication.AutoSize = true;
|
||||
this.labelApplication.Location = new System.Drawing.Point(72, 135);
|
||||
this.labelApplication.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelApplication.Name = "labelApplication";
|
||||
this.labelApplication.Size = new System.Drawing.Size(109, 17);
|
||||
this.labelApplication.TabIndex = 9;
|
||||
this.labelApplication.Text = "Application from";
|
||||
//
|
||||
// labelthrough
|
||||
//
|
||||
this.labelthrough.AutoSize = true;
|
||||
this.labelthrough.Location = new System.Drawing.Point(364, 137);
|
||||
this.labelthrough.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelthrough.Name = "labelthrough";
|
||||
this.labelthrough.Size = new System.Drawing.Size(57, 17);
|
||||
this.labelthrough.TabIndex = 11;
|
||||
this.labelthrough.Text = "through";
|
||||
//
|
||||
// dateTimePickerApplicTo
|
||||
//
|
||||
this.dateTimePickerApplicTo.Location = new System.Drawing.Point(426, 134);
|
||||
this.dateTimePickerApplicTo.Name = "dateTimePickerApplicTo";
|
||||
this.dateTimePickerApplicTo.Size = new System.Drawing.Size(170, 22);
|
||||
this.dateTimePickerApplicTo.TabIndex = 12;
|
||||
this.dateTimePickerApplicTo.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// dateTimePickerApplicFrom
|
||||
//
|
||||
this.dateTimePickerApplicFrom.Location = new System.Drawing.Point(188, 134);
|
||||
this.dateTimePickerApplicFrom.Name = "dateTimePickerApplicFrom";
|
||||
this.dateTimePickerApplicFrom.Size = new System.Drawing.Size(170, 22);
|
||||
this.dateTimePickerApplicFrom.TabIndex = 10;
|
||||
this.dateTimePickerApplicFrom.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// labelRole
|
||||
//
|
||||
this.labelRole.AutoSize = true;
|
||||
this.labelRole.Location = new System.Drawing.Point(144, 107);
|
||||
this.labelRole.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelRole.Name = "labelRole";
|
||||
this.labelRole.Size = new System.Drawing.Size(37, 17);
|
||||
this.labelRole.TabIndex = 7;
|
||||
this.labelRole.Text = "Role";
|
||||
//
|
||||
// comboBoxRole
|
||||
//
|
||||
this.comboBoxRole.FormattingEnabled = true;
|
||||
this.comboBoxRole.Location = new System.Drawing.Point(188, 104);
|
||||
this.comboBoxRole.Name = "comboBoxRole";
|
||||
this.comboBoxRole.Size = new System.Drawing.Size(408, 24);
|
||||
this.comboBoxRole.TabIndex = 8;
|
||||
//
|
||||
// buttonSearch
|
||||
//
|
||||
this.buttonSearch.Location = new System.Drawing.Point(297, 46);
|
||||
this.buttonSearch.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonSearch.Name = "buttonSearch";
|
||||
this.buttonSearch.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonSearch.TabIndex = 4;
|
||||
this.buttonSearch.Text = "Search";
|
||||
this.buttonSearch.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// labelName
|
||||
//
|
||||
this.labelName.AutoSize = true;
|
||||
this.labelName.Location = new System.Drawing.Point(136, 79);
|
||||
this.labelName.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelName.Name = "labelName";
|
||||
this.labelName.Size = new System.Drawing.Size(45, 17);
|
||||
this.labelName.TabIndex = 5;
|
||||
this.labelName.Text = "Name";
|
||||
//
|
||||
// textBoxName
|
||||
//
|
||||
this.textBoxName.Location = new System.Drawing.Point(188, 76);
|
||||
this.textBoxName.Name = "textBoxName";
|
||||
this.textBoxName.ReadOnly = true;
|
||||
this.textBoxName.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxName.TabIndex = 6;
|
||||
//
|
||||
// labelEmployeeCode
|
||||
//
|
||||
this.labelEmployeeCode.AutoSize = true;
|
||||
this.labelEmployeeCode.Location = new System.Drawing.Point(76, 51);
|
||||
this.labelEmployeeCode.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelEmployeeCode.Name = "labelEmployeeCode";
|
||||
this.labelEmployeeCode.Size = new System.Drawing.Size(105, 17);
|
||||
this.labelEmployeeCode.TabIndex = 2;
|
||||
this.labelEmployeeCode.Text = "Employee code";
|
||||
//
|
||||
// textBoxEmployeeCode
|
||||
//
|
||||
this.textBoxEmployeeCode.Location = new System.Drawing.Point(188, 48);
|
||||
this.textBoxEmployeeCode.Name = "textBoxEmployeeCode";
|
||||
this.textBoxEmployeeCode.Size = new System.Drawing.Size(102, 22);
|
||||
this.textBoxEmployeeCode.TabIndex = 3;
|
||||
//
|
||||
// labelDepartment
|
||||
//
|
||||
this.labelDepartment.AutoSize = true;
|
||||
this.labelDepartment.Location = new System.Drawing.Point(99, 23);
|
||||
this.labelDepartment.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDepartment.Name = "labelDepartment";
|
||||
this.labelDepartment.Size = new System.Drawing.Size(82, 17);
|
||||
this.labelDepartment.TabIndex = 0;
|
||||
this.labelDepartment.Text = "Department";
|
||||
//
|
||||
// textBoxDepartment
|
||||
//
|
||||
this.textBoxDepartment.Location = new System.Drawing.Point(188, 20);
|
||||
this.textBoxDepartment.Name = "textBoxDepartment";
|
||||
this.textBoxDepartment.ReadOnly = true;
|
||||
this.textBoxDepartment.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxDepartment.TabIndex = 1;
|
||||
//
|
||||
// SpmForm_EmployeeRole
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(632, 253);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.Controls.Add(this.groupBoxProperties);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(650, 300);
|
||||
this.Name = "SpmForm_EmployeeRole";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "Update EmployeeRole";
|
||||
this.groupBoxProperties.ResumeLayout(false);
|
||||
this.groupBoxProperties.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonOk;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonCancel;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxProperties;
|
||||
private System.Windows.Forms.Label labelDepartment;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDepartment;
|
||||
private System.Windows.Forms.Label labelEmployeeCode;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxEmployeeCode;
|
||||
private System.Windows.Forms.Label labelName;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxName;
|
||||
private System.Windows.Forms.Label labelRole;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxRole;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonSearch;
|
||||
private System.Windows.Forms.Label labelApplication;
|
||||
private System.Windows.Forms.Label labelthrough;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker dateTimePickerApplicTo;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker dateTimePickerApplicFrom;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_EmployeeRole : SpmForm
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_Item.Config
|
||||
{
|
||||
public SpmEmployeeRole EmployeeRoleToUpdate { internal get; set; } = null;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_EmployeeRole() : this(new Config()) { }
|
||||
public SpmForm_EmployeeRole(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
[Browsable(false)]
|
||||
protected override String DefaultMessageTitle { get { return "EmployeeRole"; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S h o w D i a l o g
|
||||
//-------------------------------------------------------------------
|
||||
public new DialogResult ShowDialog()
|
||||
{
|
||||
return base.ShowDialog();
|
||||
}
|
||||
// Validate configuration to ensure that form can be opened correctly.
|
||||
private bool ValidateConfiguration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
// Complete dialog initialisation.
|
||||
PositionControls();
|
||||
AcceptChanges();
|
||||
SetControlActivity();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
// Initial focus.
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o p u l a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateToControls.
|
||||
private void PopulateToControls(SpmEmployeeRole.Data data)
|
||||
{
|
||||
// Populate item properties to controls.
|
||||
|
||||
AcceptChanges();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate properties.
|
||||
public bool IsDataValid(SpmEmployeeRole.Data data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateFromControls.
|
||||
private void PopulateFromControls(SpmEmployeeRole.Data data)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// UpdatedAssociated Data.
|
||||
public bool UpdateAssociatedData()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C l o s e F o r m
|
||||
//-------------------------------------------------------------------
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
protected override void SetControlActivity()
|
||||
{
|
||||
SetControlsReadOnly();
|
||||
}
|
||||
public bool IsFieldReadOnly(SpmDbDfn.ColumnIdx col)
|
||||
{
|
||||
if (ReadOnly) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
protected override void SetControlsReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o s i t i o n C o n t r o l s
|
||||
//-------------------------------------------------------------------
|
||||
protected override void PositionControls()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,220 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_Facility
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.buttonOk = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.tabControl = new System.Windows.Forms.TabControl();
|
||||
this.buttonCancel = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.groupBoxProperties = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.labelSortCode = new System.Windows.Forms.Label();
|
||||
this.labelName = new System.Windows.Forms.Label();
|
||||
this.textBoxSortCode = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelDesc = new System.Windows.Forms.Label();
|
||||
this.textBoxName = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.textBoxDesc = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelDepartment = new System.Windows.Forms.Label();
|
||||
this.textBoxDepartment = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.tabControl.SuspendLayout();
|
||||
this.groupBoxProperties.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonOk.Location = new System.Drawing.Point(411, 412);
|
||||
this.buttonOk.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOk.TabIndex = 2;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 25);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(600, 248);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "tabPage1";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 25);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new System.Drawing.Size(750, 248);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "tabPage2";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabControl
|
||||
//
|
||||
this.tabControl.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.tabControl.Controls.Add(this.tabPage1);
|
||||
this.tabControl.Controls.Add(this.tabPage2);
|
||||
this.tabControl.Location = new System.Drawing.Point(12, 128);
|
||||
this.tabControl.Name = "tabControl";
|
||||
this.tabControl.SelectedIndex = 0;
|
||||
this.tabControl.Size = new System.Drawing.Size(608, 277);
|
||||
this.tabControl.TabIndex = 1;
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(519, 412);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 3;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBoxProperties
|
||||
//
|
||||
this.groupBoxProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxProperties.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxProperties.Controls.Add(this.labelSortCode);
|
||||
this.groupBoxProperties.Controls.Add(this.labelName);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxSortCode);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDesc);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxName);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDesc);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDepartment);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDepartment);
|
||||
this.groupBoxProperties.Location = new System.Drawing.Point(12, 12);
|
||||
this.groupBoxProperties.Name = "groupBoxProperties";
|
||||
this.groupBoxProperties.Size = new System.Drawing.Size(608, 110);
|
||||
this.groupBoxProperties.TabIndex = 0;
|
||||
this.groupBoxProperties.TabStop = false;
|
||||
this.groupBoxProperties.Text = "Properties";
|
||||
//
|
||||
// labelSortCode
|
||||
//
|
||||
this.labelSortCode.AutoSize = true;
|
||||
this.labelSortCode.Location = new System.Drawing.Point(418, 51);
|
||||
this.labelSortCode.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelSortCode.Name = "labelSortCode";
|
||||
this.labelSortCode.Size = new System.Drawing.Size(69, 17);
|
||||
this.labelSortCode.TabIndex = 4;
|
||||
this.labelSortCode.Text = "Sort code";
|
||||
//
|
||||
// labelName
|
||||
//
|
||||
this.labelName.AutoSize = true;
|
||||
this.labelName.Location = new System.Drawing.Point(100, 51);
|
||||
this.labelName.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelName.Name = "labelName";
|
||||
this.labelName.Size = new System.Drawing.Size(81, 17);
|
||||
this.labelName.TabIndex = 2;
|
||||
this.labelName.Text = "Short name";
|
||||
//
|
||||
// textBoxSortCode
|
||||
//
|
||||
this.textBoxSortCode.Location = new System.Drawing.Point(494, 48);
|
||||
this.textBoxSortCode.Name = "textBoxSortCode";
|
||||
this.textBoxSortCode.Size = new System.Drawing.Size(102, 22);
|
||||
this.textBoxSortCode.TabIndex = 5;
|
||||
//
|
||||
// labelDesc
|
||||
//
|
||||
this.labelDesc.AutoSize = true;
|
||||
this.labelDesc.Location = new System.Drawing.Point(102, 79);
|
||||
this.labelDesc.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDesc.Name = "labelDesc";
|
||||
this.labelDesc.Size = new System.Drawing.Size(79, 17);
|
||||
this.labelDesc.TabIndex = 6;
|
||||
this.labelDesc.Text = "Description";
|
||||
//
|
||||
// textBoxName
|
||||
//
|
||||
this.textBoxName.Location = new System.Drawing.Point(188, 48);
|
||||
this.textBoxName.Name = "textBoxName";
|
||||
this.textBoxName.Size = new System.Drawing.Size(204, 22);
|
||||
this.textBoxName.TabIndex = 3;
|
||||
//
|
||||
// textBoxDesc
|
||||
//
|
||||
this.textBoxDesc.Location = new System.Drawing.Point(188, 76);
|
||||
this.textBoxDesc.Name = "textBoxDesc";
|
||||
this.textBoxDesc.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxDesc.TabIndex = 7;
|
||||
//
|
||||
// labelDepartment
|
||||
//
|
||||
this.labelDepartment.AutoSize = true;
|
||||
this.labelDepartment.Location = new System.Drawing.Point(99, 23);
|
||||
this.labelDepartment.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDepartment.Name = "labelDepartment";
|
||||
this.labelDepartment.Size = new System.Drawing.Size(82, 17);
|
||||
this.labelDepartment.TabIndex = 0;
|
||||
this.labelDepartment.Text = "Department";
|
||||
//
|
||||
// textBoxDepartment
|
||||
//
|
||||
this.textBoxDepartment.Location = new System.Drawing.Point(188, 20);
|
||||
this.textBoxDepartment.Name = "textBoxDepartment";
|
||||
this.textBoxDepartment.ReadOnly = true;
|
||||
this.textBoxDepartment.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxDepartment.TabIndex = 1;
|
||||
//
|
||||
// SpmForm_Facility
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(632, 453);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.Controls.Add(this.tabControl);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.Controls.Add(this.groupBoxProperties);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(650, 500);
|
||||
this.Name = "SpmForm_Facility";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "Update Facility";
|
||||
this.tabControl.ResumeLayout(false);
|
||||
this.groupBoxProperties.ResumeLayout(false);
|
||||
this.groupBoxProperties.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonOk;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private System.Windows.Forms.TabControl tabControl;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonCancel;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxProperties;
|
||||
private System.Windows.Forms.Label labelDepartment;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDepartment;
|
||||
private System.Windows.Forms.Label labelSortCode;
|
||||
private System.Windows.Forms.Label labelName;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxSortCode;
|
||||
private System.Windows.Forms.Label labelDesc;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxName;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDesc;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_Facility : SpmForm
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_Item.Config
|
||||
{
|
||||
public SpmFacility FacilityToUpdate { internal get; set; } = null;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_Facility() : this(new Config()) { }
|
||||
public SpmForm_Facility(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
[Browsable(false)]
|
||||
protected override String DefaultMessageTitle { get { return "Facility"; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S h o w D i a l o g
|
||||
//-------------------------------------------------------------------
|
||||
public new DialogResult ShowDialog()
|
||||
{
|
||||
return base.ShowDialog();
|
||||
}
|
||||
// Validate configuration to ensure that form can be opened correctly.
|
||||
private bool ValidateConfiguration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
// Complete dialog initialisation.
|
||||
PositionControls();
|
||||
AcceptChanges();
|
||||
SetControlActivity();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
// Initial focus.
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o p u l a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateToControls.
|
||||
private void PopulateToControls(SpmFacility.Data data)
|
||||
{
|
||||
// Populate item properties to controls.
|
||||
|
||||
AcceptChanges();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate properties.
|
||||
public bool IsDataValid(SpmFacility.Data data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateFromControls.
|
||||
private void PopulateFromControls(SpmFacility.Data data)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// UpdatedAssociated Data.
|
||||
public bool UpdateAssociatedData()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C l o s e F o r m
|
||||
//-------------------------------------------------------------------
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
protected override void SetControlActivity()
|
||||
{
|
||||
SetControlsReadOnly();
|
||||
}
|
||||
public bool IsFieldReadOnly(SpmDbDfn.ColumnIdx col)
|
||||
{
|
||||
if (ReadOnly) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
protected override void SetControlsReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o s i t i o n C o n t r o l s
|
||||
//-------------------------------------------------------------------
|
||||
protected override void PositionControls()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,26 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_FacilitySession
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Text = "SpmForm_FacilitySession";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_FacilitySession : SpmForm_Item
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_Item.Config
|
||||
{
|
||||
public SpmFacilitySession FacilitySessionToUpdate { internal get; set; } = null;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_FacilitySession() : this(new Config()) { }
|
||||
public SpmForm_FacilitySession(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
+735
@@ -0,0 +1,735 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_FacilitySession_Clinic
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.buttonOk = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.buttonCancel = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.sacsButtonReset = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.sacsTextBox4 = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.sacsTextBox3 = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.sacsTextBox1 = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelOptions = new System.Windows.Forms.Label();
|
||||
this.checkBoxHideTemplateNotes = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxNotAvailable = new System.Windows.Forms.CheckBox();
|
||||
this.labelNotes = new System.Windows.Forms.Label();
|
||||
this.textBoxNotes = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.groupBoxTemplate = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.sacsTextBox9 = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.sacsTextBox8 = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.sacsTextBox7 = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.sacsTextBox6 = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.sacsTextBox5 = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.sacsTextBox2 = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.comboBoxConsultant = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelStartAt = new System.Windows.Forms.Label();
|
||||
this.textBoxConsultantCode = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.sacsComboBoxSpeciality = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelConsultantCode = new System.Windows.Forms.Label();
|
||||
this.labelSpeciality = new System.Windows.Forms.Label();
|
||||
this.dateTimePickerStartAt = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.dateTimePickerFinishAt = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.labelTheatre = new System.Windows.Forms.Label();
|
||||
this.textBoxTheatre = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelSessionDate = new System.Windows.Forms.Label();
|
||||
this.textBoxSessionDate = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.groupBoxProperties = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.checkBoxHighlightSessionNotes = new System.Windows.Forms.CheckBox();
|
||||
this.labelMaximum = new System.Windows.Forms.Label();
|
||||
this.labelMinimum = new System.Windows.Forms.Label();
|
||||
this.textBoxSlotLengthMax = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelSlotLength = new System.Windows.Forms.Label();
|
||||
this.textBoxSlotLengthMin = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.comboBoxSlotLength = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelUnits = new System.Windows.Forms.Label();
|
||||
this.textBoxUnits = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.comboBoxSessionType = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelSessionType = new System.Windows.Forms.Label();
|
||||
this.labelName = new System.Windows.Forms.Label();
|
||||
this.labelDesc = new System.Windows.Forms.Label();
|
||||
this.textBoxName = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.textBoxDesc = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.groupBoxIdentify = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.checkBoxOverrideName = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxOverrideDesc = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxOverrideListType = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxOverrideConsultant = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxOverrideSpeciality = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxOverrideTimes = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxOverrideUnits = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxOverrideDuration = new System.Windows.Forms.CheckBox();
|
||||
this.groupBoxTemplate.SuspendLayout();
|
||||
this.groupBoxProperties.SuspendLayout();
|
||||
this.groupBoxIdentify.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonOk.Location = new System.Drawing.Point(562, 572);
|
||||
this.buttonOk.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOk.TabIndex = 2;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(670, 572);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 3;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// sacsButtonReset
|
||||
//
|
||||
this.sacsButtonReset.Location = new System.Drawing.Point(64, 381);
|
||||
this.sacsButtonReset.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.sacsButtonReset.Name = "sacsButtonReset";
|
||||
this.sacsButtonReset.Size = new System.Drawing.Size(156, 28);
|
||||
this.sacsButtonReset.TabIndex = 9;
|
||||
this.sacsButtonReset.Text = "Restore defaults";
|
||||
this.sacsButtonReset.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// sacsTextBox4
|
||||
//
|
||||
this.sacsTextBox4.Location = new System.Drawing.Point(6, 245);
|
||||
this.sacsTextBox4.Multiline = true;
|
||||
this.sacsTextBox4.Name = "sacsTextBox4";
|
||||
this.sacsTextBox4.ReadOnly = true;
|
||||
this.sacsTextBox4.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.sacsTextBox4.Size = new System.Drawing.Size(274, 106);
|
||||
this.sacsTextBox4.TabIndex = 8;
|
||||
//
|
||||
// sacsTextBox3
|
||||
//
|
||||
this.sacsTextBox3.Location = new System.Drawing.Point(6, 217);
|
||||
this.sacsTextBox3.Name = "sacsTextBox3";
|
||||
this.sacsTextBox3.ReadOnly = true;
|
||||
this.sacsTextBox3.Size = new System.Drawing.Size(276, 22);
|
||||
this.sacsTextBox3.TabIndex = 7;
|
||||
//
|
||||
// sacsTextBox1
|
||||
//
|
||||
this.sacsTextBox1.Location = new System.Drawing.Point(6, 105);
|
||||
this.sacsTextBox1.Name = "sacsTextBox1";
|
||||
this.sacsTextBox1.ReadOnly = true;
|
||||
this.sacsTextBox1.Size = new System.Drawing.Size(276, 22);
|
||||
this.sacsTextBox1.TabIndex = 3;
|
||||
//
|
||||
// labelOptions
|
||||
//
|
||||
this.labelOptions.AutoSize = true;
|
||||
this.labelOptions.Location = new System.Drawing.Point(108, 408);
|
||||
this.labelOptions.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelOptions.Name = "labelOptions";
|
||||
this.labelOptions.Size = new System.Drawing.Size(57, 17);
|
||||
this.labelOptions.TabIndex = 34;
|
||||
this.labelOptions.Text = "Options";
|
||||
//
|
||||
// checkBoxHideTemplateNotes
|
||||
//
|
||||
this.checkBoxHideTemplateNotes.AutoSize = true;
|
||||
this.checkBoxHideTemplateNotes.Location = new System.Drawing.Point(172, 405);
|
||||
this.checkBoxHideTemplateNotes.Name = "checkBoxHideTemplateNotes";
|
||||
this.checkBoxHideTemplateNotes.Size = new System.Drawing.Size(288, 21);
|
||||
this.checkBoxHideTemplateNotes.TabIndex = 36;
|
||||
this.checkBoxHideTemplateNotes.Text = "Hide templates notes (on admissions list)";
|
||||
this.checkBoxHideTemplateNotes.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxNotAvailable
|
||||
//
|
||||
this.checkBoxNotAvailable.AutoSize = true;
|
||||
this.checkBoxNotAvailable.Location = new System.Drawing.Point(172, 378);
|
||||
this.checkBoxNotAvailable.Name = "checkBoxNotAvailable";
|
||||
this.checkBoxNotAvailable.Size = new System.Drawing.Size(234, 21);
|
||||
this.checkBoxNotAvailable.TabIndex = 35;
|
||||
this.checkBoxNotAvailable.Text = "Not available (prohibit bookings)";
|
||||
this.checkBoxNotAvailable.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// labelNotes
|
||||
//
|
||||
this.labelNotes.AutoSize = true;
|
||||
this.labelNotes.Location = new System.Drawing.Point(126, 271);
|
||||
this.labelNotes.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelNotes.Name = "labelNotes";
|
||||
this.labelNotes.Size = new System.Drawing.Size(45, 17);
|
||||
this.labelNotes.TabIndex = 32;
|
||||
this.labelNotes.Text = "Notes";
|
||||
//
|
||||
// textBoxNotes
|
||||
//
|
||||
this.textBoxNotes.Location = new System.Drawing.Point(178, 268);
|
||||
this.textBoxNotes.Multiline = true;
|
||||
this.textBoxNotes.Name = "textBoxNotes";
|
||||
this.textBoxNotes.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.textBoxNotes.Size = new System.Drawing.Size(280, 104);
|
||||
this.textBoxNotes.TabIndex = 33;
|
||||
//
|
||||
// groupBoxTemplate
|
||||
//
|
||||
this.groupBoxTemplate.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxTemplate.Controls.Add(this.sacsTextBox9);
|
||||
this.groupBoxTemplate.Controls.Add(this.sacsTextBox8);
|
||||
this.groupBoxTemplate.Controls.Add(this.sacsTextBox7);
|
||||
this.groupBoxTemplate.Controls.Add(this.sacsTextBox6);
|
||||
this.groupBoxTemplate.Controls.Add(this.sacsTextBox5);
|
||||
this.groupBoxTemplate.Controls.Add(this.sacsButtonReset);
|
||||
this.groupBoxTemplate.Controls.Add(this.sacsTextBox4);
|
||||
this.groupBoxTemplate.Controls.Add(this.sacsTextBox3);
|
||||
this.groupBoxTemplate.Controls.Add(this.sacsTextBox2);
|
||||
this.groupBoxTemplate.Controls.Add(this.sacsTextBox1);
|
||||
this.groupBoxTemplate.Location = new System.Drawing.Point(464, 21);
|
||||
this.groupBoxTemplate.Name = "groupBoxTemplate";
|
||||
this.groupBoxTemplate.Size = new System.Drawing.Size(288, 432);
|
||||
this.groupBoxTemplate.TabIndex = 38;
|
||||
this.groupBoxTemplate.TabStop = false;
|
||||
this.groupBoxTemplate.Text = "Template defaults";
|
||||
//
|
||||
// sacsTextBox9
|
||||
//
|
||||
this.sacsTextBox9.Location = new System.Drawing.Point(6, 189);
|
||||
this.sacsTextBox9.Name = "sacsTextBox9";
|
||||
this.sacsTextBox9.ReadOnly = true;
|
||||
this.sacsTextBox9.Size = new System.Drawing.Size(276, 22);
|
||||
this.sacsTextBox9.TabIndex = 6;
|
||||
//
|
||||
// sacsTextBox8
|
||||
//
|
||||
this.sacsTextBox8.Location = new System.Drawing.Point(6, 161);
|
||||
this.sacsTextBox8.Name = "sacsTextBox8";
|
||||
this.sacsTextBox8.ReadOnly = true;
|
||||
this.sacsTextBox8.Size = new System.Drawing.Size(276, 22);
|
||||
this.sacsTextBox8.TabIndex = 5;
|
||||
//
|
||||
// sacsTextBox7
|
||||
//
|
||||
this.sacsTextBox7.Location = new System.Drawing.Point(6, 77);
|
||||
this.sacsTextBox7.Name = "sacsTextBox7";
|
||||
this.sacsTextBox7.ReadOnly = true;
|
||||
this.sacsTextBox7.Size = new System.Drawing.Size(276, 22);
|
||||
this.sacsTextBox7.TabIndex = 2;
|
||||
//
|
||||
// sacsTextBox6
|
||||
//
|
||||
this.sacsTextBox6.Location = new System.Drawing.Point(6, 49);
|
||||
this.sacsTextBox6.Name = "sacsTextBox6";
|
||||
this.sacsTextBox6.ReadOnly = true;
|
||||
this.sacsTextBox6.Size = new System.Drawing.Size(276, 22);
|
||||
this.sacsTextBox6.TabIndex = 1;
|
||||
//
|
||||
// sacsTextBox5
|
||||
//
|
||||
this.sacsTextBox5.Location = new System.Drawing.Point(6, 21);
|
||||
this.sacsTextBox5.Name = "sacsTextBox5";
|
||||
this.sacsTextBox5.ReadOnly = true;
|
||||
this.sacsTextBox5.Size = new System.Drawing.Size(276, 22);
|
||||
this.sacsTextBox5.TabIndex = 0;
|
||||
//
|
||||
// sacsTextBox2
|
||||
//
|
||||
this.sacsTextBox2.Location = new System.Drawing.Point(6, 133);
|
||||
this.sacsTextBox2.Name = "sacsTextBox2";
|
||||
this.sacsTextBox2.ReadOnly = true;
|
||||
this.sacsTextBox2.Size = new System.Drawing.Size(276, 22);
|
||||
this.sacsTextBox2.TabIndex = 4;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(287, 215);
|
||||
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(61, 17);
|
||||
this.label2.TabIndex = 23;
|
||||
this.label2.Text = "Finish at";
|
||||
//
|
||||
// comboBoxConsultant
|
||||
//
|
||||
this.comboBoxConsultant.FormattingEnabled = true;
|
||||
this.comboBoxConsultant.Location = new System.Drawing.Point(253, 126);
|
||||
this.comboBoxConsultant.Name = "comboBoxConsultant";
|
||||
this.comboBoxConsultant.Size = new System.Drawing.Size(204, 24);
|
||||
this.comboBoxConsultant.TabIndex = 13;
|
||||
//
|
||||
// labelStartAt
|
||||
//
|
||||
this.labelStartAt.AutoSize = true;
|
||||
this.labelStartAt.Location = new System.Drawing.Point(117, 215);
|
||||
this.labelStartAt.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelStartAt.Name = "labelStartAt";
|
||||
this.labelStartAt.Size = new System.Drawing.Size(54, 17);
|
||||
this.labelStartAt.TabIndex = 21;
|
||||
this.labelStartAt.Text = "Start at";
|
||||
//
|
||||
// textBoxConsultantCode
|
||||
//
|
||||
this.textBoxConsultantCode.Location = new System.Drawing.Point(178, 126);
|
||||
this.textBoxConsultantCode.Name = "textBoxConsultantCode";
|
||||
this.textBoxConsultantCode.Size = new System.Drawing.Size(69, 22);
|
||||
this.textBoxConsultantCode.TabIndex = 12;
|
||||
//
|
||||
// sacsComboBoxSpeciality
|
||||
//
|
||||
this.sacsComboBoxSpeciality.FormattingEnabled = true;
|
||||
this.sacsComboBoxSpeciality.Location = new System.Drawing.Point(178, 154);
|
||||
this.sacsComboBoxSpeciality.Name = "sacsComboBoxSpeciality";
|
||||
this.sacsComboBoxSpeciality.Size = new System.Drawing.Size(204, 24);
|
||||
this.sacsComboBoxSpeciality.TabIndex = 16;
|
||||
//
|
||||
// labelConsultantCode
|
||||
//
|
||||
this.labelConsultantCode.AutoSize = true;
|
||||
this.labelConsultantCode.Location = new System.Drawing.Point(97, 129);
|
||||
this.labelConsultantCode.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelConsultantCode.Name = "labelConsultantCode";
|
||||
this.labelConsultantCode.Size = new System.Drawing.Size(75, 17);
|
||||
this.labelConsultantCode.TabIndex = 11;
|
||||
this.labelConsultantCode.Text = "Consultant";
|
||||
//
|
||||
// labelSpeciality
|
||||
//
|
||||
this.labelSpeciality.AutoSize = true;
|
||||
this.labelSpeciality.Location = new System.Drawing.Point(103, 157);
|
||||
this.labelSpeciality.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelSpeciality.Name = "labelSpeciality";
|
||||
this.labelSpeciality.Size = new System.Drawing.Size(68, 17);
|
||||
this.labelSpeciality.TabIndex = 15;
|
||||
this.labelSpeciality.Text = "Speciality";
|
||||
//
|
||||
// dateTimePickerStartAt
|
||||
//
|
||||
this.dateTimePickerStartAt.Location = new System.Drawing.Point(178, 210);
|
||||
this.dateTimePickerStartAt.Name = "dateTimePickerStartAt";
|
||||
this.dateTimePickerStartAt.Size = new System.Drawing.Size(102, 22);
|
||||
this.dateTimePickerStartAt.TabIndex = 22;
|
||||
this.dateTimePickerStartAt.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// dateTimePickerFinishAt
|
||||
//
|
||||
this.dateTimePickerFinishAt.Location = new System.Drawing.Point(355, 210);
|
||||
this.dateTimePickerFinishAt.Name = "dateTimePickerFinishAt";
|
||||
this.dateTimePickerFinishAt.Size = new System.Drawing.Size(102, 22);
|
||||
this.dateTimePickerFinishAt.TabIndex = 24;
|
||||
this.dateTimePickerFinishAt.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// labelTheatre
|
||||
//
|
||||
this.labelTheatre.AutoSize = true;
|
||||
this.labelTheatre.Location = new System.Drawing.Point(123, 51);
|
||||
this.labelTheatre.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelTheatre.Name = "labelTheatre";
|
||||
this.labelTheatre.Size = new System.Drawing.Size(58, 17);
|
||||
this.labelTheatre.TabIndex = 2;
|
||||
this.labelTheatre.Text = "Theatre";
|
||||
//
|
||||
// textBoxTheatre
|
||||
//
|
||||
this.textBoxTheatre.Location = new System.Drawing.Point(188, 48);
|
||||
this.textBoxTheatre.Name = "textBoxTheatre";
|
||||
this.textBoxTheatre.ReadOnly = true;
|
||||
this.textBoxTheatre.Size = new System.Drawing.Size(280, 22);
|
||||
this.textBoxTheatre.TabIndex = 3;
|
||||
//
|
||||
// labelSessionDate
|
||||
//
|
||||
this.labelSessionDate.AutoSize = true;
|
||||
this.labelSessionDate.Location = new System.Drawing.Point(91, 23);
|
||||
this.labelSessionDate.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelSessionDate.Name = "labelSessionDate";
|
||||
this.labelSessionDate.Size = new System.Drawing.Size(90, 17);
|
||||
this.labelSessionDate.TabIndex = 0;
|
||||
this.labelSessionDate.Text = "Session date";
|
||||
//
|
||||
// textBoxSessionDate
|
||||
//
|
||||
this.textBoxSessionDate.Location = new System.Drawing.Point(188, 20);
|
||||
this.textBoxSessionDate.Name = "textBoxSessionDate";
|
||||
this.textBoxSessionDate.ReadOnly = true;
|
||||
this.textBoxSessionDate.Size = new System.Drawing.Size(280, 22);
|
||||
this.textBoxSessionDate.TabIndex = 1;
|
||||
//
|
||||
// groupBoxProperties
|
||||
//
|
||||
this.groupBoxProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxProperties.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxOverrideDuration);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxOverrideUnits);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxOverrideTimes);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxOverrideSpeciality);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxOverrideConsultant);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxOverrideListType);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxOverrideDesc);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxOverrideName);
|
||||
this.groupBoxProperties.Controls.Add(this.label1);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxHighlightSessionNotes);
|
||||
this.groupBoxProperties.Controls.Add(this.labelMaximum);
|
||||
this.groupBoxProperties.Controls.Add(this.labelMinimum);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxSlotLengthMax);
|
||||
this.groupBoxProperties.Controls.Add(this.labelSlotLength);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxSlotLengthMin);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxSlotLength);
|
||||
this.groupBoxProperties.Controls.Add(this.labelUnits);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxUnits);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxSessionType);
|
||||
this.groupBoxProperties.Controls.Add(this.labelSessionType);
|
||||
this.groupBoxProperties.Controls.Add(this.labelName);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDesc);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxName);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDesc);
|
||||
this.groupBoxProperties.Controls.Add(this.labelOptions);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxHideTemplateNotes);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxNotAvailable);
|
||||
this.groupBoxProperties.Controls.Add(this.labelNotes);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxNotes);
|
||||
this.groupBoxProperties.Controls.Add(this.groupBoxTemplate);
|
||||
this.groupBoxProperties.Controls.Add(this.label2);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxConsultant);
|
||||
this.groupBoxProperties.Controls.Add(this.labelStartAt);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxConsultantCode);
|
||||
this.groupBoxProperties.Controls.Add(this.sacsComboBoxSpeciality);
|
||||
this.groupBoxProperties.Controls.Add(this.labelConsultantCode);
|
||||
this.groupBoxProperties.Controls.Add(this.labelSpeciality);
|
||||
this.groupBoxProperties.Controls.Add(this.dateTimePickerStartAt);
|
||||
this.groupBoxProperties.Controls.Add(this.dateTimePickerFinishAt);
|
||||
this.groupBoxProperties.Location = new System.Drawing.Point(22, 100);
|
||||
this.groupBoxProperties.Name = "groupBoxProperties";
|
||||
this.groupBoxProperties.Size = new System.Drawing.Size(758, 460);
|
||||
this.groupBoxProperties.TabIndex = 1;
|
||||
this.groupBoxProperties.TabStop = false;
|
||||
this.groupBoxProperties.Text = "Properties";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(19, 21);
|
||||
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(63, 17);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "Override";
|
||||
//
|
||||
// checkBoxHighlightSessionNotes
|
||||
//
|
||||
this.checkBoxHighlightSessionNotes.AutoSize = true;
|
||||
this.checkBoxHighlightSessionNotes.Location = new System.Drawing.Point(172, 432);
|
||||
this.checkBoxHighlightSessionNotes.Name = "checkBoxHighlightSessionNotes";
|
||||
this.checkBoxHighlightSessionNotes.Size = new System.Drawing.Size(176, 21);
|
||||
this.checkBoxHighlightSessionNotes.TabIndex = 37;
|
||||
this.checkBoxHighlightSessionNotes.Text = "Highlight session notes";
|
||||
this.checkBoxHighlightSessionNotes.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// labelMaximum
|
||||
//
|
||||
this.labelMaximum.AutoSize = true;
|
||||
this.labelMaximum.Location = new System.Drawing.Point(373, 241);
|
||||
this.labelMaximum.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelMaximum.Name = "labelMaximum";
|
||||
this.labelMaximum.Size = new System.Drawing.Size(33, 17);
|
||||
this.labelMaximum.TabIndex = 30;
|
||||
this.labelMaximum.Text = "Max";
|
||||
//
|
||||
// labelMinimum
|
||||
//
|
||||
this.labelMinimum.AutoSize = true;
|
||||
this.labelMinimum.Location = new System.Drawing.Point(278, 241);
|
||||
this.labelMinimum.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelMinimum.Name = "labelMinimum";
|
||||
this.labelMinimum.Size = new System.Drawing.Size(30, 17);
|
||||
this.labelMinimum.TabIndex = 28;
|
||||
this.labelMinimum.Text = "Min";
|
||||
//
|
||||
// textBoxSlotLengthMax
|
||||
//
|
||||
this.textBoxSlotLengthMax.Location = new System.Drawing.Point(406, 238);
|
||||
this.textBoxSlotLengthMax.Name = "textBoxSlotLengthMax";
|
||||
this.textBoxSlotLengthMax.Size = new System.Drawing.Size(51, 22);
|
||||
this.textBoxSlotLengthMax.TabIndex = 31;
|
||||
//
|
||||
// labelSlotLength
|
||||
//
|
||||
this.labelSlotLength.AutoSize = true;
|
||||
this.labelSlotLength.Location = new System.Drawing.Point(96, 241);
|
||||
this.labelSlotLength.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelSlotLength.Name = "labelSlotLength";
|
||||
this.labelSlotLength.Size = new System.Drawing.Size(75, 17);
|
||||
this.labelSlotLength.TabIndex = 26;
|
||||
this.labelSlotLength.Text = "Slot length";
|
||||
//
|
||||
// textBoxSlotLengthMin
|
||||
//
|
||||
this.textBoxSlotLengthMin.Location = new System.Drawing.Point(315, 238);
|
||||
this.textBoxSlotLengthMin.Name = "textBoxSlotLengthMin";
|
||||
this.textBoxSlotLengthMin.Size = new System.Drawing.Size(51, 22);
|
||||
this.textBoxSlotLengthMin.TabIndex = 29;
|
||||
//
|
||||
// comboBoxSlotLength
|
||||
//
|
||||
this.comboBoxSlotLength.FormattingEnabled = true;
|
||||
this.comboBoxSlotLength.Location = new System.Drawing.Point(178, 238);
|
||||
this.comboBoxSlotLength.Name = "comboBoxSlotLength";
|
||||
this.comboBoxSlotLength.Size = new System.Drawing.Size(76, 24);
|
||||
this.comboBoxSlotLength.TabIndex = 27;
|
||||
//
|
||||
// labelUnits
|
||||
//
|
||||
this.labelUnits.AutoSize = true;
|
||||
this.labelUnits.Location = new System.Drawing.Point(127, 185);
|
||||
this.labelUnits.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelUnits.Name = "labelUnits";
|
||||
this.labelUnits.Size = new System.Drawing.Size(40, 17);
|
||||
this.labelUnits.TabIndex = 18;
|
||||
this.labelUnits.Text = "Units";
|
||||
//
|
||||
// textBoxUnits
|
||||
//
|
||||
this.textBoxUnits.Location = new System.Drawing.Point(178, 182);
|
||||
this.textBoxUnits.Name = "textBoxUnits";
|
||||
this.textBoxUnits.Size = new System.Drawing.Size(51, 22);
|
||||
this.textBoxUnits.TabIndex = 19;
|
||||
//
|
||||
// comboBoxSessionType
|
||||
//
|
||||
this.comboBoxSessionType.FormattingEnabled = true;
|
||||
this.comboBoxSessionType.Location = new System.Drawing.Point(178, 98);
|
||||
this.comboBoxSessionType.Name = "comboBoxSessionType";
|
||||
this.comboBoxSessionType.Size = new System.Drawing.Size(102, 24);
|
||||
this.comboBoxSessionType.TabIndex = 9;
|
||||
//
|
||||
// labelSessionType
|
||||
//
|
||||
this.labelSessionType.AutoSize = true;
|
||||
this.labelSessionType.Location = new System.Drawing.Point(110, 101);
|
||||
this.labelSessionType.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelSessionType.Name = "labelSessionType";
|
||||
this.labelSessionType.Size = new System.Drawing.Size(61, 17);
|
||||
this.labelSessionType.TabIndex = 8;
|
||||
this.labelSessionType.Text = "List type";
|
||||
//
|
||||
// labelName
|
||||
//
|
||||
this.labelName.AutoSize = true;
|
||||
this.labelName.Location = new System.Drawing.Point(90, 45);
|
||||
this.labelName.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelName.Name = "labelName";
|
||||
this.labelName.Size = new System.Drawing.Size(81, 17);
|
||||
this.labelName.TabIndex = 2;
|
||||
this.labelName.Text = "Short name";
|
||||
//
|
||||
// labelDesc
|
||||
//
|
||||
this.labelDesc.AutoSize = true;
|
||||
this.labelDesc.Location = new System.Drawing.Point(92, 73);
|
||||
this.labelDesc.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDesc.Name = "labelDesc";
|
||||
this.labelDesc.Size = new System.Drawing.Size(79, 17);
|
||||
this.labelDesc.TabIndex = 5;
|
||||
this.labelDesc.Text = "Description";
|
||||
//
|
||||
// textBoxName
|
||||
//
|
||||
this.textBoxName.Location = new System.Drawing.Point(178, 42);
|
||||
this.textBoxName.Name = "textBoxName";
|
||||
this.textBoxName.Size = new System.Drawing.Size(204, 22);
|
||||
this.textBoxName.TabIndex = 3;
|
||||
//
|
||||
// textBoxDesc
|
||||
//
|
||||
this.textBoxDesc.Location = new System.Drawing.Point(178, 70);
|
||||
this.textBoxDesc.Name = "textBoxDesc";
|
||||
this.textBoxDesc.Size = new System.Drawing.Size(280, 22);
|
||||
this.textBoxDesc.TabIndex = 6;
|
||||
//
|
||||
// groupBoxIdentify
|
||||
//
|
||||
this.groupBoxIdentify.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxIdentify.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxIdentify.Controls.Add(this.labelTheatre);
|
||||
this.groupBoxIdentify.Controls.Add(this.textBoxTheatre);
|
||||
this.groupBoxIdentify.Controls.Add(this.labelSessionDate);
|
||||
this.groupBoxIdentify.Controls.Add(this.textBoxSessionDate);
|
||||
this.groupBoxIdentify.Location = new System.Drawing.Point(12, 12);
|
||||
this.groupBoxIdentify.Name = "groupBoxIdentify";
|
||||
this.groupBoxIdentify.Size = new System.Drawing.Size(758, 82);
|
||||
this.groupBoxIdentify.TabIndex = 0;
|
||||
this.groupBoxIdentify.TabStop = false;
|
||||
this.groupBoxIdentify.Text = "Identify";
|
||||
//
|
||||
// checkBoxOverrideName
|
||||
//
|
||||
this.checkBoxOverrideName.AutoSize = true;
|
||||
this.checkBoxOverrideName.Location = new System.Drawing.Point(32, 46);
|
||||
this.checkBoxOverrideName.Name = "checkBoxOverrideName";
|
||||
this.checkBoxOverrideName.Size = new System.Drawing.Size(18, 17);
|
||||
this.checkBoxOverrideName.TabIndex = 1;
|
||||
this.checkBoxOverrideName.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxOverrideDesc
|
||||
//
|
||||
this.checkBoxOverrideDesc.AutoSize = true;
|
||||
this.checkBoxOverrideDesc.Location = new System.Drawing.Point(32, 74);
|
||||
this.checkBoxOverrideDesc.Name = "checkBoxOverrideDesc";
|
||||
this.checkBoxOverrideDesc.Size = new System.Drawing.Size(18, 17);
|
||||
this.checkBoxOverrideDesc.TabIndex = 4;
|
||||
this.checkBoxOverrideDesc.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxOverrideListType
|
||||
//
|
||||
this.checkBoxOverrideListType.AutoSize = true;
|
||||
this.checkBoxOverrideListType.Location = new System.Drawing.Point(32, 102);
|
||||
this.checkBoxOverrideListType.Name = "checkBoxOverrideListType";
|
||||
this.checkBoxOverrideListType.Size = new System.Drawing.Size(18, 17);
|
||||
this.checkBoxOverrideListType.TabIndex = 7;
|
||||
this.checkBoxOverrideListType.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxOverrideConsultant
|
||||
//
|
||||
this.checkBoxOverrideConsultant.AutoSize = true;
|
||||
this.checkBoxOverrideConsultant.Location = new System.Drawing.Point(32, 130);
|
||||
this.checkBoxOverrideConsultant.Name = "checkBoxOverrideConsultant";
|
||||
this.checkBoxOverrideConsultant.Size = new System.Drawing.Size(18, 17);
|
||||
this.checkBoxOverrideConsultant.TabIndex = 10;
|
||||
this.checkBoxOverrideConsultant.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxOverrideSpeciality
|
||||
//
|
||||
this.checkBoxOverrideSpeciality.AutoSize = true;
|
||||
this.checkBoxOverrideSpeciality.Location = new System.Drawing.Point(32, 158);
|
||||
this.checkBoxOverrideSpeciality.Name = "checkBoxOverrideSpeciality";
|
||||
this.checkBoxOverrideSpeciality.Size = new System.Drawing.Size(18, 17);
|
||||
this.checkBoxOverrideSpeciality.TabIndex = 14;
|
||||
this.checkBoxOverrideSpeciality.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxOverrideTimes
|
||||
//
|
||||
this.checkBoxOverrideTimes.AutoSize = true;
|
||||
this.checkBoxOverrideTimes.Location = new System.Drawing.Point(32, 216);
|
||||
this.checkBoxOverrideTimes.Name = "checkBoxOverrideTimes";
|
||||
this.checkBoxOverrideTimes.Size = new System.Drawing.Size(18, 17);
|
||||
this.checkBoxOverrideTimes.TabIndex = 20;
|
||||
this.checkBoxOverrideTimes.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxOverrideUnits
|
||||
//
|
||||
this.checkBoxOverrideUnits.AutoSize = true;
|
||||
this.checkBoxOverrideUnits.Location = new System.Drawing.Point(32, 186);
|
||||
this.checkBoxOverrideUnits.Name = "checkBoxOverrideUnits";
|
||||
this.checkBoxOverrideUnits.Size = new System.Drawing.Size(18, 17);
|
||||
this.checkBoxOverrideUnits.TabIndex = 17;
|
||||
this.checkBoxOverrideUnits.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxOverrideDuration
|
||||
//
|
||||
this.checkBoxOverrideDuration.AutoSize = true;
|
||||
this.checkBoxOverrideDuration.Location = new System.Drawing.Point(32, 242);
|
||||
this.checkBoxOverrideDuration.Name = "checkBoxOverrideDuration";
|
||||
this.checkBoxOverrideDuration.Size = new System.Drawing.Size(18, 17);
|
||||
this.checkBoxOverrideDuration.TabIndex = 25;
|
||||
this.checkBoxOverrideDuration.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// SpmForm_FacilitySession_Clinic
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(782, 613);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.groupBoxProperties);
|
||||
this.Controls.Add(this.groupBoxIdentify);
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(800, 660);
|
||||
this.Name = "SpmForm_FacilitySession_Clinic";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "Clinic Session";
|
||||
this.groupBoxTemplate.ResumeLayout(false);
|
||||
this.groupBoxTemplate.PerformLayout();
|
||||
this.groupBoxProperties.ResumeLayout(false);
|
||||
this.groupBoxProperties.PerformLayout();
|
||||
this.groupBoxIdentify.ResumeLayout(false);
|
||||
this.groupBoxIdentify.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonOk;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonCancel;
|
||||
private Sarand.Win.Forms.Controls.SacsButton sacsButtonReset;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox sacsTextBox4;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox sacsTextBox3;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox sacsTextBox1;
|
||||
private System.Windows.Forms.Label labelOptions;
|
||||
private System.Windows.Forms.CheckBox checkBoxHideTemplateNotes;
|
||||
private System.Windows.Forms.CheckBox checkBoxNotAvailable;
|
||||
private System.Windows.Forms.Label labelNotes;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxNotes;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxTemplate;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox sacsTextBox2;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxConsultant;
|
||||
private System.Windows.Forms.Label labelStartAt;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxConsultantCode;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox sacsComboBoxSpeciality;
|
||||
private System.Windows.Forms.Label labelConsultantCode;
|
||||
private System.Windows.Forms.Label labelSpeciality;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker dateTimePickerStartAt;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker dateTimePickerFinishAt;
|
||||
private System.Windows.Forms.Label labelTheatre;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxTheatre;
|
||||
private System.Windows.Forms.Label labelSessionDate;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxSessionDate;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxProperties;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxIdentify;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox sacsTextBox5;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox sacsTextBox6;
|
||||
private System.Windows.Forms.Label labelName;
|
||||
private System.Windows.Forms.Label labelDesc;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxName;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDesc;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox sacsTextBox7;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxSessionType;
|
||||
private System.Windows.Forms.Label labelSessionType;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox sacsTextBox9;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox sacsTextBox8;
|
||||
private System.Windows.Forms.Label labelUnits;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxUnits;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.CheckBox checkBoxHighlightSessionNotes;
|
||||
private System.Windows.Forms.Label labelMaximum;
|
||||
private System.Windows.Forms.Label labelMinimum;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxSlotLengthMax;
|
||||
private System.Windows.Forms.Label labelSlotLength;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxSlotLengthMin;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxSlotLength;
|
||||
private System.Windows.Forms.CheckBox checkBoxOverrideDuration;
|
||||
private System.Windows.Forms.CheckBox checkBoxOverrideUnits;
|
||||
private System.Windows.Forms.CheckBox checkBoxOverrideTimes;
|
||||
private System.Windows.Forms.CheckBox checkBoxOverrideSpeciality;
|
||||
private System.Windows.Forms.CheckBox checkBoxOverrideConsultant;
|
||||
private System.Windows.Forms.CheckBox checkBoxOverrideListType;
|
||||
private System.Windows.Forms.CheckBox checkBoxOverrideDesc;
|
||||
private System.Windows.Forms.CheckBox checkBoxOverrideName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_FacilitySession_Clinic : SpmForm_FacilitySession
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_FacilitySession.Config
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_FacilitySession_Clinic() : this(new Config()) { }
|
||||
public SpmForm_FacilitySession_Clinic(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
[Browsable(false)]
|
||||
protected override String DefaultMessageTitle { get { return "FacilitySession_Clinic"; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S h o w D i a l o g
|
||||
//-------------------------------------------------------------------
|
||||
public new DialogResult ShowDialog()
|
||||
{
|
||||
return base.ShowDialog();
|
||||
}
|
||||
// Validate configuration to ensure that form can be opened correctly.
|
||||
private bool ValidateConfiguration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
// Complete dialog initialisation.
|
||||
PositionControls();
|
||||
AcceptChanges();
|
||||
SetControlActivity();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
// Initial focus.
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o p u l a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
/* PopulateToControls.
|
||||
private void PopulateToControls(SpmFacilitySession_Clinic.Data data)
|
||||
{
|
||||
// Populate item properties to controls.
|
||||
|
||||
AcceptChanges();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate properties.
|
||||
public bool IsDataValid(SpmFacilitySession_Clinic.Data data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateFromControls.
|
||||
private void PopulateFromControls(SpmFacilitySession_Clinic.Data data)
|
||||
{
|
||||
}*/
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// UpdatedAssociated Data.
|
||||
public bool UpdateAssociatedData()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C l o s e F o r m
|
||||
//-------------------------------------------------------------------
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
protected override void SetControlActivity()
|
||||
{
|
||||
SetControlsReadOnly();
|
||||
}
|
||||
public bool IsFieldReadOnly(SpmDbDfn.ColumnIdx col)
|
||||
{
|
||||
if (ReadOnly) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
protected override void SetControlsReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o s i t i o n C o n t r o l s
|
||||
//-------------------------------------------------------------------
|
||||
protected override void PositionControls()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
+395
@@ -0,0 +1,395 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_FacilitySession_Theatre
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.buttonCancel = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.buttonOk = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.groupBoxIdentify = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.labelTheatre = new System.Windows.Forms.Label();
|
||||
this.textBoxTheatre = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelSessionDate = new System.Windows.Forms.Label();
|
||||
this.textBoxSessionDate = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.dateTimePickerFinishAt = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.dateTimePickerStartAt = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.labelSpeciality = new System.Windows.Forms.Label();
|
||||
this.labelConsultantCode = new System.Windows.Forms.Label();
|
||||
this.sacsComboBoxSpeciality = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.textBoxConsultantCode = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelStartAt = new System.Windows.Forms.Label();
|
||||
this.comboBoxConsultant = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.groupBoxProperties = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.labelOptions = new System.Windows.Forms.Label();
|
||||
this.checkBoxHideTemplateNotes = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxNotAvailable = new System.Windows.Forms.CheckBox();
|
||||
this.labelNotes = new System.Windows.Forms.Label();
|
||||
this.textBoxNotes = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.groupBoxTemplate = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.sacsButtonReset = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.sacsTextBox4 = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.sacsTextBox3 = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.sacsTextBox2 = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.sacsTextBox1 = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.groupBoxIdentify.SuspendLayout();
|
||||
this.groupBoxProperties.SuspendLayout();
|
||||
this.groupBoxTemplate.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(670, 412);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 3;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonOk.Location = new System.Drawing.Point(562, 412);
|
||||
this.buttonOk.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOk.TabIndex = 2;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBoxIdentify
|
||||
//
|
||||
this.groupBoxIdentify.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxIdentify.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxIdentify.Controls.Add(this.labelTheatre);
|
||||
this.groupBoxIdentify.Controls.Add(this.textBoxTheatre);
|
||||
this.groupBoxIdentify.Controls.Add(this.labelSessionDate);
|
||||
this.groupBoxIdentify.Controls.Add(this.textBoxSessionDate);
|
||||
this.groupBoxIdentify.Location = new System.Drawing.Point(13, 12);
|
||||
this.groupBoxIdentify.Name = "groupBoxIdentify";
|
||||
this.groupBoxIdentify.Size = new System.Drawing.Size(758, 82);
|
||||
this.groupBoxIdentify.TabIndex = 0;
|
||||
this.groupBoxIdentify.TabStop = false;
|
||||
this.groupBoxIdentify.Text = "Identify";
|
||||
//
|
||||
// labelTheatre
|
||||
//
|
||||
this.labelTheatre.AutoSize = true;
|
||||
this.labelTheatre.Location = new System.Drawing.Point(123, 51);
|
||||
this.labelTheatre.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelTheatre.Name = "labelTheatre";
|
||||
this.labelTheatre.Size = new System.Drawing.Size(58, 17);
|
||||
this.labelTheatre.TabIndex = 2;
|
||||
this.labelTheatre.Text = "Theatre";
|
||||
//
|
||||
// textBoxTheatre
|
||||
//
|
||||
this.textBoxTheatre.Location = new System.Drawing.Point(188, 48);
|
||||
this.textBoxTheatre.Name = "textBoxTheatre";
|
||||
this.textBoxTheatre.ReadOnly = true;
|
||||
this.textBoxTheatre.Size = new System.Drawing.Size(280, 22);
|
||||
this.textBoxTheatre.TabIndex = 3;
|
||||
//
|
||||
// labelSessionDate
|
||||
//
|
||||
this.labelSessionDate.AutoSize = true;
|
||||
this.labelSessionDate.Location = new System.Drawing.Point(91, 23);
|
||||
this.labelSessionDate.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelSessionDate.Name = "labelSessionDate";
|
||||
this.labelSessionDate.Size = new System.Drawing.Size(90, 17);
|
||||
this.labelSessionDate.TabIndex = 0;
|
||||
this.labelSessionDate.Text = "Session date";
|
||||
//
|
||||
// textBoxSessionDate
|
||||
//
|
||||
this.textBoxSessionDate.Location = new System.Drawing.Point(188, 20);
|
||||
this.textBoxSessionDate.Name = "textBoxSessionDate";
|
||||
this.textBoxSessionDate.ReadOnly = true;
|
||||
this.textBoxSessionDate.Size = new System.Drawing.Size(280, 22);
|
||||
this.textBoxSessionDate.TabIndex = 1;
|
||||
//
|
||||
// dateTimePickerFinishAt
|
||||
//
|
||||
this.dateTimePickerFinishAt.Location = new System.Drawing.Point(355, 100);
|
||||
this.dateTimePickerFinishAt.Name = "dateTimePickerFinishAt";
|
||||
this.dateTimePickerFinishAt.Size = new System.Drawing.Size(102, 22);
|
||||
this.dateTimePickerFinishAt.TabIndex = 8;
|
||||
this.dateTimePickerFinishAt.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// dateTimePickerStartAt
|
||||
//
|
||||
this.dateTimePickerStartAt.Location = new System.Drawing.Point(178, 100);
|
||||
this.dateTimePickerStartAt.Name = "dateTimePickerStartAt";
|
||||
this.dateTimePickerStartAt.Size = new System.Drawing.Size(102, 22);
|
||||
this.dateTimePickerStartAt.TabIndex = 6;
|
||||
this.dateTimePickerStartAt.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// labelSpeciality
|
||||
//
|
||||
this.labelSpeciality.AutoSize = true;
|
||||
this.labelSpeciality.Location = new System.Drawing.Point(103, 73);
|
||||
this.labelSpeciality.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelSpeciality.Name = "labelSpeciality";
|
||||
this.labelSpeciality.Size = new System.Drawing.Size(68, 17);
|
||||
this.labelSpeciality.TabIndex = 3;
|
||||
this.labelSpeciality.Text = "Speciality";
|
||||
//
|
||||
// labelConsultantCode
|
||||
//
|
||||
this.labelConsultantCode.AutoSize = true;
|
||||
this.labelConsultantCode.Location = new System.Drawing.Point(96, 45);
|
||||
this.labelConsultantCode.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelConsultantCode.Name = "labelConsultantCode";
|
||||
this.labelConsultantCode.Size = new System.Drawing.Size(75, 17);
|
||||
this.labelConsultantCode.TabIndex = 0;
|
||||
this.labelConsultantCode.Text = "Consultant";
|
||||
//
|
||||
// sacsComboBoxSpeciality
|
||||
//
|
||||
this.sacsComboBoxSpeciality.FormattingEnabled = true;
|
||||
this.sacsComboBoxSpeciality.Location = new System.Drawing.Point(178, 70);
|
||||
this.sacsComboBoxSpeciality.Name = "sacsComboBoxSpeciality";
|
||||
this.sacsComboBoxSpeciality.Size = new System.Drawing.Size(204, 24);
|
||||
this.sacsComboBoxSpeciality.TabIndex = 4;
|
||||
//
|
||||
// textBoxConsultantCode
|
||||
//
|
||||
this.textBoxConsultantCode.Location = new System.Drawing.Point(178, 42);
|
||||
this.textBoxConsultantCode.Name = "textBoxConsultantCode";
|
||||
this.textBoxConsultantCode.Size = new System.Drawing.Size(69, 22);
|
||||
this.textBoxConsultantCode.TabIndex = 1;
|
||||
//
|
||||
// labelStartAt
|
||||
//
|
||||
this.labelStartAt.AutoSize = true;
|
||||
this.labelStartAt.Location = new System.Drawing.Point(117, 105);
|
||||
this.labelStartAt.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelStartAt.Name = "labelStartAt";
|
||||
this.labelStartAt.Size = new System.Drawing.Size(54, 17);
|
||||
this.labelStartAt.TabIndex = 5;
|
||||
this.labelStartAt.Text = "Start at";
|
||||
//
|
||||
// comboBoxConsultant
|
||||
//
|
||||
this.comboBoxConsultant.FormattingEnabled = true;
|
||||
this.comboBoxConsultant.Location = new System.Drawing.Point(254, 40);
|
||||
this.comboBoxConsultant.Name = "comboBoxConsultant";
|
||||
this.comboBoxConsultant.Size = new System.Drawing.Size(204, 24);
|
||||
this.comboBoxConsultant.TabIndex = 2;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(287, 105);
|
||||
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(61, 17);
|
||||
this.label2.TabIndex = 7;
|
||||
this.label2.Text = "Finish at";
|
||||
//
|
||||
// groupBoxProperties
|
||||
//
|
||||
this.groupBoxProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxProperties.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxProperties.Controls.Add(this.labelOptions);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxHideTemplateNotes);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxNotAvailable);
|
||||
this.groupBoxProperties.Controls.Add(this.labelNotes);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxNotes);
|
||||
this.groupBoxProperties.Controls.Add(this.groupBoxTemplate);
|
||||
this.groupBoxProperties.Controls.Add(this.label2);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxConsultant);
|
||||
this.groupBoxProperties.Controls.Add(this.labelStartAt);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxConsultantCode);
|
||||
this.groupBoxProperties.Controls.Add(this.sacsComboBoxSpeciality);
|
||||
this.groupBoxProperties.Controls.Add(this.labelConsultantCode);
|
||||
this.groupBoxProperties.Controls.Add(this.labelSpeciality);
|
||||
this.groupBoxProperties.Controls.Add(this.dateTimePickerStartAt);
|
||||
this.groupBoxProperties.Controls.Add(this.dateTimePickerFinishAt);
|
||||
this.groupBoxProperties.Location = new System.Drawing.Point(12, 100);
|
||||
this.groupBoxProperties.Name = "groupBoxProperties";
|
||||
this.groupBoxProperties.Size = new System.Drawing.Size(769, 298);
|
||||
this.groupBoxProperties.TabIndex = 1;
|
||||
this.groupBoxProperties.TabStop = false;
|
||||
this.groupBoxProperties.Text = "Properties";
|
||||
//
|
||||
// labelOptions
|
||||
//
|
||||
this.labelOptions.AutoSize = true;
|
||||
this.labelOptions.Location = new System.Drawing.Point(113, 248);
|
||||
this.labelOptions.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelOptions.Name = "labelOptions";
|
||||
this.labelOptions.Size = new System.Drawing.Size(57, 17);
|
||||
this.labelOptions.TabIndex = 11;
|
||||
this.labelOptions.Text = "Options";
|
||||
//
|
||||
// checkBoxHideTemplateNotes
|
||||
//
|
||||
this.checkBoxHideTemplateNotes.AutoSize = true;
|
||||
this.checkBoxHideTemplateNotes.Location = new System.Drawing.Point(177, 265);
|
||||
this.checkBoxHideTemplateNotes.Name = "checkBoxHideTemplateNotes";
|
||||
this.checkBoxHideTemplateNotes.Size = new System.Drawing.Size(288, 21);
|
||||
this.checkBoxHideTemplateNotes.TabIndex = 13;
|
||||
this.checkBoxHideTemplateNotes.Text = "Hide templates notes (on admissions list)";
|
||||
this.checkBoxHideTemplateNotes.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxNotAvailable
|
||||
//
|
||||
this.checkBoxNotAvailable.AutoSize = true;
|
||||
this.checkBoxNotAvailable.Location = new System.Drawing.Point(177, 238);
|
||||
this.checkBoxNotAvailable.Name = "checkBoxNotAvailable";
|
||||
this.checkBoxNotAvailable.Size = new System.Drawing.Size(234, 21);
|
||||
this.checkBoxNotAvailable.TabIndex = 12;
|
||||
this.checkBoxNotAvailable.Text = "Not available (prohibit bookings)";
|
||||
this.checkBoxNotAvailable.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// labelNotes
|
||||
//
|
||||
this.labelNotes.AutoSize = true;
|
||||
this.labelNotes.Location = new System.Drawing.Point(126, 131);
|
||||
this.labelNotes.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelNotes.Name = "labelNotes";
|
||||
this.labelNotes.Size = new System.Drawing.Size(45, 17);
|
||||
this.labelNotes.TabIndex = 9;
|
||||
this.labelNotes.Text = "Notes";
|
||||
//
|
||||
// textBoxNotes
|
||||
//
|
||||
this.textBoxNotes.Location = new System.Drawing.Point(178, 128);
|
||||
this.textBoxNotes.Multiline = true;
|
||||
this.textBoxNotes.Name = "textBoxNotes";
|
||||
this.textBoxNotes.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.textBoxNotes.Size = new System.Drawing.Size(280, 104);
|
||||
this.textBoxNotes.TabIndex = 10;
|
||||
//
|
||||
// groupBoxTemplate
|
||||
//
|
||||
this.groupBoxTemplate.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxTemplate.Controls.Add(this.sacsButtonReset);
|
||||
this.groupBoxTemplate.Controls.Add(this.sacsTextBox4);
|
||||
this.groupBoxTemplate.Controls.Add(this.sacsTextBox3);
|
||||
this.groupBoxTemplate.Controls.Add(this.sacsTextBox2);
|
||||
this.groupBoxTemplate.Controls.Add(this.sacsTextBox1);
|
||||
this.groupBoxTemplate.Location = new System.Drawing.Point(464, 21);
|
||||
this.groupBoxTemplate.Name = "groupBoxTemplate";
|
||||
this.groupBoxTemplate.Size = new System.Drawing.Size(288, 265);
|
||||
this.groupBoxTemplate.TabIndex = 14;
|
||||
this.groupBoxTemplate.TabStop = false;
|
||||
this.groupBoxTemplate.Text = "Template defaults";
|
||||
//
|
||||
// sacsButtonReset
|
||||
//
|
||||
this.sacsButtonReset.Location = new System.Drawing.Point(65, 222);
|
||||
this.sacsButtonReset.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.sacsButtonReset.Name = "sacsButtonReset";
|
||||
this.sacsButtonReset.Size = new System.Drawing.Size(156, 28);
|
||||
this.sacsButtonReset.TabIndex = 4;
|
||||
this.sacsButtonReset.Text = "Restore defaults";
|
||||
this.sacsButtonReset.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// sacsTextBox4
|
||||
//
|
||||
this.sacsTextBox4.Location = new System.Drawing.Point(6, 105);
|
||||
this.sacsTextBox4.Multiline = true;
|
||||
this.sacsTextBox4.Name = "sacsTextBox4";
|
||||
this.sacsTextBox4.ReadOnly = true;
|
||||
this.sacsTextBox4.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.sacsTextBox4.Size = new System.Drawing.Size(274, 106);
|
||||
this.sacsTextBox4.TabIndex = 3;
|
||||
//
|
||||
// sacsTextBox3
|
||||
//
|
||||
this.sacsTextBox3.Location = new System.Drawing.Point(6, 77);
|
||||
this.sacsTextBox3.Name = "sacsTextBox3";
|
||||
this.sacsTextBox3.ReadOnly = true;
|
||||
this.sacsTextBox3.Size = new System.Drawing.Size(276, 22);
|
||||
this.sacsTextBox3.TabIndex = 2;
|
||||
//
|
||||
// sacsTextBox2
|
||||
//
|
||||
this.sacsTextBox2.Location = new System.Drawing.Point(6, 49);
|
||||
this.sacsTextBox2.Name = "sacsTextBox2";
|
||||
this.sacsTextBox2.ReadOnly = true;
|
||||
this.sacsTextBox2.Size = new System.Drawing.Size(276, 22);
|
||||
this.sacsTextBox2.TabIndex = 1;
|
||||
//
|
||||
// sacsTextBox1
|
||||
//
|
||||
this.sacsTextBox1.Location = new System.Drawing.Point(6, 21);
|
||||
this.sacsTextBox1.Name = "sacsTextBox1";
|
||||
this.sacsTextBox1.ReadOnly = true;
|
||||
this.sacsTextBox1.Size = new System.Drawing.Size(276, 22);
|
||||
this.sacsTextBox1.TabIndex = 0;
|
||||
//
|
||||
// SpmForm_FacilitySession_Theatre
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(782, 453);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.groupBoxProperties);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.Controls.Add(this.groupBoxIdentify);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(800, 500);
|
||||
this.Name = "SpmForm_FacilitySession_Theatre";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "Theatre Session";
|
||||
this.groupBoxIdentify.ResumeLayout(false);
|
||||
this.groupBoxIdentify.PerformLayout();
|
||||
this.groupBoxProperties.ResumeLayout(false);
|
||||
this.groupBoxProperties.PerformLayout();
|
||||
this.groupBoxTemplate.ResumeLayout(false);
|
||||
this.groupBoxTemplate.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonCancel;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonOk;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxIdentify;
|
||||
private System.Windows.Forms.Label labelTheatre;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxTheatre;
|
||||
private System.Windows.Forms.Label labelSessionDate;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxSessionDate;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker dateTimePickerFinishAt;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker dateTimePickerStartAt;
|
||||
private System.Windows.Forms.Label labelSpeciality;
|
||||
private System.Windows.Forms.Label labelConsultantCode;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox sacsComboBoxSpeciality;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxConsultantCode;
|
||||
private System.Windows.Forms.Label labelStartAt;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxConsultant;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxProperties;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxTemplate;
|
||||
private System.Windows.Forms.Label labelNotes;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxNotes;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox sacsTextBox4;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox sacsTextBox3;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox sacsTextBox2;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox sacsTextBox1;
|
||||
private System.Windows.Forms.Label labelOptions;
|
||||
private System.Windows.Forms.CheckBox checkBoxHideTemplateNotes;
|
||||
private System.Windows.Forms.CheckBox checkBoxNotAvailable;
|
||||
private Sarand.Win.Forms.Controls.SacsButton sacsButtonReset;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_FacilitySession_Theatre : SpmForm_FacilitySession
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_FacilitySession.Config
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_FacilitySession_Theatre() : this(new Config()) { }
|
||||
public SpmForm_FacilitySession_Theatre(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
[Browsable(false)]
|
||||
protected override String DefaultMessageTitle { get { return "FacilitySession_Theatre"; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S h o w D i a l o g
|
||||
//-------------------------------------------------------------------
|
||||
public new DialogResult ShowDialog()
|
||||
{
|
||||
return base.ShowDialog();
|
||||
}
|
||||
// Validate configuration to ensure that form can be opened correctly.
|
||||
private bool ValidateConfiguration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
// Complete dialog initialisation.
|
||||
PositionControls();
|
||||
AcceptChanges();
|
||||
SetControlActivity();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
// Initial focus.
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o p u l a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
/* PopulateToControls.
|
||||
private void PopulateToControls(SpmFacilitySession_Theatre.Data data)
|
||||
{
|
||||
// Populate item properties to controls.
|
||||
|
||||
AcceptChanges();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate properties.
|
||||
public bool IsDataValid(SpmFacilitySession_Theatre.Data data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateFromControls.
|
||||
private void PopulateFromControls(SpmFacilitySession_Theatre.Data data)
|
||||
{
|
||||
}*/
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// UpdatedAssociated Data.
|
||||
public bool UpdateAssociatedData()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C l o s e F o r m
|
||||
//-------------------------------------------------------------------
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
protected override void SetControlActivity()
|
||||
{
|
||||
SetControlsReadOnly();
|
||||
}
|
||||
public bool IsFieldReadOnly(SpmDbDfn.ColumnIdx col)
|
||||
{
|
||||
if (ReadOnly) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
protected override void SetControlsReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o s i t i o n C o n t r o l s
|
||||
//-------------------------------------------------------------------
|
||||
protected override void PositionControls()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,231 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_FacilitySession_Ward
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.buttonCancel = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.buttonOk = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.groupBoxIdentify = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.labelTheatre = new System.Windows.Forms.Label();
|
||||
this.textBoxTheatre = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelSessionDate = new System.Windows.Forms.Label();
|
||||
this.textBoxSessionDate = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.buttonReset = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.textBoxNotes = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelNotes = new System.Windows.Forms.Label();
|
||||
this.checkBoxNotAvailable = new System.Windows.Forms.CheckBox();
|
||||
this.checkBoxHideTemplateNotes = new System.Windows.Forms.CheckBox();
|
||||
this.labelOptions = new System.Windows.Forms.Label();
|
||||
this.groupBoxProperties = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.groupBoxIdentify.SuspendLayout();
|
||||
this.groupBoxProperties.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(520, 412);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 3;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonOk.Location = new System.Drawing.Point(412, 412);
|
||||
this.buttonOk.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOk.TabIndex = 2;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBoxIdentify
|
||||
//
|
||||
this.groupBoxIdentify.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxIdentify.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxIdentify.Controls.Add(this.labelTheatre);
|
||||
this.groupBoxIdentify.Controls.Add(this.textBoxTheatre);
|
||||
this.groupBoxIdentify.Controls.Add(this.labelSessionDate);
|
||||
this.groupBoxIdentify.Controls.Add(this.textBoxSessionDate);
|
||||
this.groupBoxIdentify.Location = new System.Drawing.Point(12, 12);
|
||||
this.groupBoxIdentify.Name = "groupBoxIdentify";
|
||||
this.groupBoxIdentify.Size = new System.Drawing.Size(608, 82);
|
||||
this.groupBoxIdentify.TabIndex = 0;
|
||||
this.groupBoxIdentify.TabStop = false;
|
||||
this.groupBoxIdentify.Text = "Identify";
|
||||
//
|
||||
// labelTheatre
|
||||
//
|
||||
this.labelTheatre.AutoSize = true;
|
||||
this.labelTheatre.Location = new System.Drawing.Point(123, 51);
|
||||
this.labelTheatre.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelTheatre.Name = "labelTheatre";
|
||||
this.labelTheatre.Size = new System.Drawing.Size(58, 17);
|
||||
this.labelTheatre.TabIndex = 2;
|
||||
this.labelTheatre.Text = "Theatre";
|
||||
//
|
||||
// textBoxTheatre
|
||||
//
|
||||
this.textBoxTheatre.Location = new System.Drawing.Point(188, 48);
|
||||
this.textBoxTheatre.Name = "textBoxTheatre";
|
||||
this.textBoxTheatre.ReadOnly = true;
|
||||
this.textBoxTheatre.Size = new System.Drawing.Size(280, 22);
|
||||
this.textBoxTheatre.TabIndex = 3;
|
||||
//
|
||||
// labelSessionDate
|
||||
//
|
||||
this.labelSessionDate.AutoSize = true;
|
||||
this.labelSessionDate.Location = new System.Drawing.Point(91, 23);
|
||||
this.labelSessionDate.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelSessionDate.Name = "labelSessionDate";
|
||||
this.labelSessionDate.Size = new System.Drawing.Size(90, 17);
|
||||
this.labelSessionDate.TabIndex = 0;
|
||||
this.labelSessionDate.Text = "Session date";
|
||||
//
|
||||
// textBoxSessionDate
|
||||
//
|
||||
this.textBoxSessionDate.Location = new System.Drawing.Point(188, 20);
|
||||
this.textBoxSessionDate.Name = "textBoxSessionDate";
|
||||
this.textBoxSessionDate.ReadOnly = true;
|
||||
this.textBoxSessionDate.Size = new System.Drawing.Size(280, 22);
|
||||
this.textBoxSessionDate.TabIndex = 1;
|
||||
//
|
||||
// buttonReset
|
||||
//
|
||||
this.buttonReset.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.buttonReset.Location = new System.Drawing.Point(448, 263);
|
||||
this.buttonReset.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonReset.MinimumSize = new System.Drawing.Size(156, 28);
|
||||
this.buttonReset.Name = "buttonReset";
|
||||
this.buttonReset.Size = new System.Drawing.Size(156, 28);
|
||||
this.buttonReset.TabIndex = 5;
|
||||
this.buttonReset.Text = "Restore defaults";
|
||||
this.buttonReset.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// textBoxNotes
|
||||
//
|
||||
this.textBoxNotes.Location = new System.Drawing.Point(188, 52);
|
||||
this.textBoxNotes.Multiline = true;
|
||||
this.textBoxNotes.Name = "textBoxNotes";
|
||||
this.textBoxNotes.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.textBoxNotes.Size = new System.Drawing.Size(408, 104);
|
||||
this.textBoxNotes.TabIndex = 1;
|
||||
//
|
||||
// labelNotes
|
||||
//
|
||||
this.labelNotes.AutoSize = true;
|
||||
this.labelNotes.Location = new System.Drawing.Point(136, 55);
|
||||
this.labelNotes.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelNotes.Name = "labelNotes";
|
||||
this.labelNotes.Size = new System.Drawing.Size(45, 17);
|
||||
this.labelNotes.TabIndex = 0;
|
||||
this.labelNotes.Text = "Notes";
|
||||
//
|
||||
// checkBoxNotAvailable
|
||||
//
|
||||
this.checkBoxNotAvailable.AutoSize = true;
|
||||
this.checkBoxNotAvailable.Location = new System.Drawing.Point(188, 190);
|
||||
this.checkBoxNotAvailable.Name = "checkBoxNotAvailable";
|
||||
this.checkBoxNotAvailable.Size = new System.Drawing.Size(234, 21);
|
||||
this.checkBoxNotAvailable.TabIndex = 3;
|
||||
this.checkBoxNotAvailable.Text = "Not available (prohibit bookings)";
|
||||
this.checkBoxNotAvailable.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// checkBoxHideTemplateNotes
|
||||
//
|
||||
this.checkBoxHideTemplateNotes.AutoSize = true;
|
||||
this.checkBoxHideTemplateNotes.Location = new System.Drawing.Point(188, 217);
|
||||
this.checkBoxHideTemplateNotes.Name = "checkBoxHideTemplateNotes";
|
||||
this.checkBoxHideTemplateNotes.Size = new System.Drawing.Size(288, 21);
|
||||
this.checkBoxHideTemplateNotes.TabIndex = 4;
|
||||
this.checkBoxHideTemplateNotes.Text = "Hide templates notes (on admissions list)";
|
||||
this.checkBoxHideTemplateNotes.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// labelOptions
|
||||
//
|
||||
this.labelOptions.AutoSize = true;
|
||||
this.labelOptions.Location = new System.Drawing.Point(124, 200);
|
||||
this.labelOptions.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelOptions.Name = "labelOptions";
|
||||
this.labelOptions.Size = new System.Drawing.Size(57, 17);
|
||||
this.labelOptions.TabIndex = 2;
|
||||
this.labelOptions.Text = "Options";
|
||||
//
|
||||
// groupBoxProperties
|
||||
//
|
||||
this.groupBoxProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxProperties.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxProperties.Controls.Add(this.labelOptions);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxHideTemplateNotes);
|
||||
this.groupBoxProperties.Controls.Add(this.checkBoxNotAvailable);
|
||||
this.groupBoxProperties.Controls.Add(this.labelNotes);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxNotes);
|
||||
this.groupBoxProperties.Controls.Add(this.buttonReset);
|
||||
this.groupBoxProperties.Location = new System.Drawing.Point(9, 100);
|
||||
this.groupBoxProperties.Name = "groupBoxProperties";
|
||||
this.groupBoxProperties.Size = new System.Drawing.Size(611, 298);
|
||||
this.groupBoxProperties.TabIndex = 1;
|
||||
this.groupBoxProperties.TabStop = false;
|
||||
this.groupBoxProperties.Text = "Properties";
|
||||
//
|
||||
// SpmForm_FacilitySession_Ward
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(632, 453);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.groupBoxProperties);
|
||||
this.Controls.Add(this.groupBoxIdentify);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(650, 500);
|
||||
this.Name = "SpmForm_FacilitySession_Ward";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "Ward Session";
|
||||
this.groupBoxIdentify.ResumeLayout(false);
|
||||
this.groupBoxIdentify.PerformLayout();
|
||||
this.groupBoxProperties.ResumeLayout(false);
|
||||
this.groupBoxProperties.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonCancel;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonOk;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxIdentify;
|
||||
private System.Windows.Forms.Label labelTheatre;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxTheatre;
|
||||
private System.Windows.Forms.Label labelSessionDate;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxSessionDate;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonReset;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxNotes;
|
||||
private System.Windows.Forms.Label labelNotes;
|
||||
private System.Windows.Forms.CheckBox checkBoxNotAvailable;
|
||||
private System.Windows.Forms.CheckBox checkBoxHideTemplateNotes;
|
||||
private System.Windows.Forms.Label labelOptions;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxProperties;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_FacilitySession_Ward : SpmForm_FacilitySession
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_FacilitySession.Config
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_FacilitySession_Ward() : this(new Config()) { }
|
||||
public SpmForm_FacilitySession_Ward(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
[Browsable(false)]
|
||||
protected override String DefaultMessageTitle { get { return "FacilitySession_Ward"; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S h o w D i a l o g
|
||||
//-------------------------------------------------------------------
|
||||
public new DialogResult ShowDialog()
|
||||
{
|
||||
return base.ShowDialog();
|
||||
}
|
||||
// Validate configuration to ensure that form can be opened correctly.
|
||||
private bool ValidateConfiguration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
// Complete dialog initialisation.
|
||||
PositionControls();
|
||||
AcceptChanges();
|
||||
SetControlActivity();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
// Initial focus.
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o p u l a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
/* PopulateToControls.
|
||||
private void PopulateToControls(SpmFacilitySession_Ward.Data data)
|
||||
{
|
||||
// Populate item properties to controls.
|
||||
|
||||
AcceptChanges();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate properties.
|
||||
public bool IsDataValid(SpmFacilitySession_Ward.Data data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateFromControls.
|
||||
private void PopulateFromControls(SpmFacilitySession_Ward.Data data)
|
||||
{
|
||||
}*/
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// UpdatedAssociated Data.
|
||||
public bool UpdateAssociatedData()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C l o s e F o r m
|
||||
//-------------------------------------------------------------------
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
protected override void SetControlActivity()
|
||||
{
|
||||
SetControlsReadOnly();
|
||||
}
|
||||
public bool IsFieldReadOnly(SpmDbDfn.ColumnIdx col)
|
||||
{
|
||||
if (ReadOnly) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
protected override void SetControlsReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o s i t i o n C o n t r o l s
|
||||
//-------------------------------------------------------------------
|
||||
protected override void PositionControls()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,26 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_FacilityTemplate
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Text = "SpmForm_FacilityTemplate";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_FacilityTemplate : SpmForm_Item
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_Item.Config
|
||||
{
|
||||
public SpmFacilityTemplate FacilityTemplateToUpdate { internal get; set; } = null;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_FacilityTemplate() : this(new Config()) { }
|
||||
public SpmForm_FacilityTemplate(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
+541
@@ -0,0 +1,541 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_FacilityTemplate_Clinic
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.labelStartAt = new System.Windows.Forms.Label();
|
||||
this.labelApplication = new System.Windows.Forms.Label();
|
||||
this.labelthrough = new System.Windows.Forms.Label();
|
||||
this.sacsDateTimePicker1 = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.sacsDateTimePicker2 = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.dateTimePickerFinishAt = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.dateTimePickerStartAt = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.labelSpeciality = new System.Windows.Forms.Label();
|
||||
this.sacsComboBoxSpeciality = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.comboBoxConsultant = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelConsultantCode = new System.Windows.Forms.Label();
|
||||
this.textBoxConsultantCode = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelDayOfWeek = new System.Windows.Forms.Label();
|
||||
this.comboBoxDayOfWeek = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelWeekOfMonth = new System.Windows.Forms.Label();
|
||||
this.comboBoxWeekOfMonth = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelFacility = new System.Windows.Forms.Label();
|
||||
this.textBoxFacility = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelDepartment = new System.Windows.Forms.Label();
|
||||
this.textBoxDepartment = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.tabControl = new System.Windows.Forms.TabControl();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.buttonOk = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.buttonCancel = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.groupBoxProperties = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.labelMaximum = new System.Windows.Forms.Label();
|
||||
this.labelMinimum = new System.Windows.Forms.Label();
|
||||
this.textBoxSlotLengthMax = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.comboBoxSessionType = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelSessionType = new System.Windows.Forms.Label();
|
||||
this.labelSlotLength = new System.Windows.Forms.Label();
|
||||
this.labelOccupancy = new System.Windows.Forms.Label();
|
||||
this.textBoxSlotLengthMin = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.comboBoxSlotLength = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.comboBoxOccupany = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelName = new System.Windows.Forms.Label();
|
||||
this.labelDesc = new System.Windows.Forms.Label();
|
||||
this.textBoxName = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.textBoxDesc = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.tabControl.SuspendLayout();
|
||||
this.groupBoxProperties.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(339, 255);
|
||||
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(80, 17);
|
||||
this.label2.TabIndex = 23;
|
||||
this.label2.Text = "Finishing at";
|
||||
//
|
||||
// labelStartAt
|
||||
//
|
||||
this.labelStartAt.AutoSize = true;
|
||||
this.labelStartAt.Location = new System.Drawing.Point(108, 255);
|
||||
this.labelStartAt.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelStartAt.Name = "labelStartAt";
|
||||
this.labelStartAt.Size = new System.Drawing.Size(73, 17);
|
||||
this.labelStartAt.TabIndex = 21;
|
||||
this.labelStartAt.Text = "Starting at";
|
||||
//
|
||||
// labelApplication
|
||||
//
|
||||
this.labelApplication.AutoSize = true;
|
||||
this.labelApplication.Location = new System.Drawing.Point(72, 311);
|
||||
this.labelApplication.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelApplication.Name = "labelApplication";
|
||||
this.labelApplication.Size = new System.Drawing.Size(109, 17);
|
||||
this.labelApplication.TabIndex = 31;
|
||||
this.labelApplication.Text = "Application from";
|
||||
//
|
||||
// labelthrough
|
||||
//
|
||||
this.labelthrough.AutoSize = true;
|
||||
this.labelthrough.Location = new System.Drawing.Point(364, 311);
|
||||
this.labelthrough.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelthrough.Name = "labelthrough";
|
||||
this.labelthrough.Size = new System.Drawing.Size(57, 17);
|
||||
this.labelthrough.TabIndex = 33;
|
||||
this.labelthrough.Text = "through";
|
||||
//
|
||||
// sacsDateTimePicker1
|
||||
//
|
||||
this.sacsDateTimePicker1.Location = new System.Drawing.Point(426, 308);
|
||||
this.sacsDateTimePicker1.Name = "sacsDateTimePicker1";
|
||||
this.sacsDateTimePicker1.Size = new System.Drawing.Size(170, 22);
|
||||
this.sacsDateTimePicker1.TabIndex = 34;
|
||||
this.sacsDateTimePicker1.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// sacsDateTimePicker2
|
||||
//
|
||||
this.sacsDateTimePicker2.Location = new System.Drawing.Point(188, 308);
|
||||
this.sacsDateTimePicker2.Name = "sacsDateTimePicker2";
|
||||
this.sacsDateTimePicker2.Size = new System.Drawing.Size(170, 22);
|
||||
this.sacsDateTimePicker2.TabIndex = 32;
|
||||
this.sacsDateTimePicker2.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// dateTimePickerFinishAt
|
||||
//
|
||||
this.dateTimePickerFinishAt.Location = new System.Drawing.Point(426, 250);
|
||||
this.dateTimePickerFinishAt.Name = "dateTimePickerFinishAt";
|
||||
this.dateTimePickerFinishAt.Size = new System.Drawing.Size(102, 22);
|
||||
this.dateTimePickerFinishAt.TabIndex = 24;
|
||||
this.dateTimePickerFinishAt.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// dateTimePickerStartAt
|
||||
//
|
||||
this.dateTimePickerStartAt.Location = new System.Drawing.Point(188, 250);
|
||||
this.dateTimePickerStartAt.Name = "dateTimePickerStartAt";
|
||||
this.dateTimePickerStartAt.Size = new System.Drawing.Size(102, 22);
|
||||
this.dateTimePickerStartAt.TabIndex = 22;
|
||||
this.dateTimePickerStartAt.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// labelSpeciality
|
||||
//
|
||||
this.labelSpeciality.AutoSize = true;
|
||||
this.labelSpeciality.Location = new System.Drawing.Point(113, 223);
|
||||
this.labelSpeciality.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelSpeciality.Name = "labelSpeciality";
|
||||
this.labelSpeciality.Size = new System.Drawing.Size(68, 17);
|
||||
this.labelSpeciality.TabIndex = 19;
|
||||
this.labelSpeciality.Text = "Speciality";
|
||||
//
|
||||
// sacsComboBoxSpeciality
|
||||
//
|
||||
this.sacsComboBoxSpeciality.FormattingEnabled = true;
|
||||
this.sacsComboBoxSpeciality.Location = new System.Drawing.Point(188, 220);
|
||||
this.sacsComboBoxSpeciality.Name = "sacsComboBoxSpeciality";
|
||||
this.sacsComboBoxSpeciality.Size = new System.Drawing.Size(204, 24);
|
||||
this.sacsComboBoxSpeciality.TabIndex = 20;
|
||||
//
|
||||
// comboBoxConsultant
|
||||
//
|
||||
this.comboBoxConsultant.FormattingEnabled = true;
|
||||
this.comboBoxConsultant.Location = new System.Drawing.Point(245, 190);
|
||||
this.comboBoxConsultant.Name = "comboBoxConsultant";
|
||||
this.comboBoxConsultant.Size = new System.Drawing.Size(204, 24);
|
||||
this.comboBoxConsultant.TabIndex = 18;
|
||||
//
|
||||
// labelConsultantCode
|
||||
//
|
||||
this.labelConsultantCode.AutoSize = true;
|
||||
this.labelConsultantCode.Location = new System.Drawing.Point(106, 195);
|
||||
this.labelConsultantCode.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelConsultantCode.Name = "labelConsultantCode";
|
||||
this.labelConsultantCode.Size = new System.Drawing.Size(75, 17);
|
||||
this.labelConsultantCode.TabIndex = 16;
|
||||
this.labelConsultantCode.Text = "Consultant";
|
||||
//
|
||||
// textBoxConsultantCode
|
||||
//
|
||||
this.textBoxConsultantCode.Location = new System.Drawing.Point(188, 192);
|
||||
this.textBoxConsultantCode.Name = "textBoxConsultantCode";
|
||||
this.textBoxConsultantCode.Size = new System.Drawing.Size(51, 22);
|
||||
this.textBoxConsultantCode.TabIndex = 17;
|
||||
//
|
||||
// labelDayOfWeek
|
||||
//
|
||||
this.labelDayOfWeek.AutoSize = true;
|
||||
this.labelDayOfWeek.Location = new System.Drawing.Point(96, 135);
|
||||
this.labelDayOfWeek.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDayOfWeek.Name = "labelDayOfWeek";
|
||||
this.labelDayOfWeek.Size = new System.Drawing.Size(85, 17);
|
||||
this.labelDayOfWeek.TabIndex = 8;
|
||||
this.labelDayOfWeek.Text = "Day of week";
|
||||
//
|
||||
// comboBoxDayOfWeek
|
||||
//
|
||||
this.comboBoxDayOfWeek.FormattingEnabled = true;
|
||||
this.comboBoxDayOfWeek.Location = new System.Drawing.Point(188, 132);
|
||||
this.comboBoxDayOfWeek.Name = "comboBoxDayOfWeek";
|
||||
this.comboBoxDayOfWeek.Size = new System.Drawing.Size(102, 24);
|
||||
this.comboBoxDayOfWeek.TabIndex = 9;
|
||||
//
|
||||
// labelWeekOfMonth
|
||||
//
|
||||
this.labelWeekOfMonth.AutoSize = true;
|
||||
this.labelWeekOfMonth.Location = new System.Drawing.Point(384, 135);
|
||||
this.labelWeekOfMonth.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelWeekOfMonth.Name = "labelWeekOfMonth";
|
||||
this.labelWeekOfMonth.Size = new System.Drawing.Size(103, 17);
|
||||
this.labelWeekOfMonth.TabIndex = 10;
|
||||
this.labelWeekOfMonth.Text = "Week of month";
|
||||
//
|
||||
// comboBoxWeekOfMonth
|
||||
//
|
||||
this.comboBoxWeekOfMonth.FormattingEnabled = true;
|
||||
this.comboBoxWeekOfMonth.Location = new System.Drawing.Point(494, 132);
|
||||
this.comboBoxWeekOfMonth.Name = "comboBoxWeekOfMonth";
|
||||
this.comboBoxWeekOfMonth.Size = new System.Drawing.Size(102, 24);
|
||||
this.comboBoxWeekOfMonth.TabIndex = 11;
|
||||
//
|
||||
// labelFacility
|
||||
//
|
||||
this.labelFacility.AutoSize = true;
|
||||
this.labelFacility.Location = new System.Drawing.Point(130, 51);
|
||||
this.labelFacility.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelFacility.Name = "labelFacility";
|
||||
this.labelFacility.Size = new System.Drawing.Size(51, 17);
|
||||
this.labelFacility.TabIndex = 2;
|
||||
this.labelFacility.Text = "Facility";
|
||||
//
|
||||
// textBoxFacility
|
||||
//
|
||||
this.textBoxFacility.Location = new System.Drawing.Point(188, 48);
|
||||
this.textBoxFacility.Name = "textBoxFacility";
|
||||
this.textBoxFacility.ReadOnly = true;
|
||||
this.textBoxFacility.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxFacility.TabIndex = 3;
|
||||
//
|
||||
// labelDepartment
|
||||
//
|
||||
this.labelDepartment.AutoSize = true;
|
||||
this.labelDepartment.Location = new System.Drawing.Point(99, 23);
|
||||
this.labelDepartment.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDepartment.Name = "labelDepartment";
|
||||
this.labelDepartment.Size = new System.Drawing.Size(82, 17);
|
||||
this.labelDepartment.TabIndex = 0;
|
||||
this.labelDepartment.Text = "Department";
|
||||
//
|
||||
// textBoxDepartment
|
||||
//
|
||||
this.textBoxDepartment.Location = new System.Drawing.Point(188, 20);
|
||||
this.textBoxDepartment.Name = "textBoxDepartment";
|
||||
this.textBoxDepartment.ReadOnly = true;
|
||||
this.textBoxDepartment.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxDepartment.TabIndex = 1;
|
||||
//
|
||||
// tabControl
|
||||
//
|
||||
this.tabControl.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.tabControl.Controls.Add(this.tabPage1);
|
||||
this.tabControl.Controls.Add(this.tabPage2);
|
||||
this.tabControl.Location = new System.Drawing.Point(12, 365);
|
||||
this.tabControl.Name = "tabControl";
|
||||
this.tabControl.SelectedIndex = 0;
|
||||
this.tabControl.Size = new System.Drawing.Size(608, 340);
|
||||
this.tabControl.TabIndex = 1;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 25);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(600, 311);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "tabPage1";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 25);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new System.Drawing.Size(750, 311);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "tabPage2";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonOk.Location = new System.Drawing.Point(412, 712);
|
||||
this.buttonOk.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOk.TabIndex = 2;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(520, 712);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 3;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBoxProperties
|
||||
//
|
||||
this.groupBoxProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxProperties.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxProperties.Controls.Add(this.labelMaximum);
|
||||
this.groupBoxProperties.Controls.Add(this.labelMinimum);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxSlotLengthMax);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxSessionType);
|
||||
this.groupBoxProperties.Controls.Add(this.labelSessionType);
|
||||
this.groupBoxProperties.Controls.Add(this.labelSlotLength);
|
||||
this.groupBoxProperties.Controls.Add(this.labelOccupancy);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxSlotLengthMin);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxSlotLength);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxOccupany);
|
||||
this.groupBoxProperties.Controls.Add(this.labelName);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDesc);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxName);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDesc);
|
||||
this.groupBoxProperties.Controls.Add(this.label2);
|
||||
this.groupBoxProperties.Controls.Add(this.labelStartAt);
|
||||
this.groupBoxProperties.Controls.Add(this.labelApplication);
|
||||
this.groupBoxProperties.Controls.Add(this.labelthrough);
|
||||
this.groupBoxProperties.Controls.Add(this.sacsDateTimePicker1);
|
||||
this.groupBoxProperties.Controls.Add(this.sacsDateTimePicker2);
|
||||
this.groupBoxProperties.Controls.Add(this.dateTimePickerFinishAt);
|
||||
this.groupBoxProperties.Controls.Add(this.dateTimePickerStartAt);
|
||||
this.groupBoxProperties.Controls.Add(this.labelSpeciality);
|
||||
this.groupBoxProperties.Controls.Add(this.sacsComboBoxSpeciality);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxConsultant);
|
||||
this.groupBoxProperties.Controls.Add(this.labelConsultantCode);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxConsultantCode);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDayOfWeek);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxDayOfWeek);
|
||||
this.groupBoxProperties.Controls.Add(this.labelWeekOfMonth);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxWeekOfMonth);
|
||||
this.groupBoxProperties.Controls.Add(this.labelFacility);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxFacility);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDepartment);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDepartment);
|
||||
this.groupBoxProperties.Location = new System.Drawing.Point(13, 12);
|
||||
this.groupBoxProperties.Name = "groupBoxProperties";
|
||||
this.groupBoxProperties.Size = new System.Drawing.Size(608, 347);
|
||||
this.groupBoxProperties.TabIndex = 0;
|
||||
this.groupBoxProperties.TabStop = false;
|
||||
this.groupBoxProperties.Text = "Properties";
|
||||
//
|
||||
// labelMaximum
|
||||
//
|
||||
this.labelMaximum.AutoSize = true;
|
||||
this.labelMaximum.Location = new System.Drawing.Point(472, 281);
|
||||
this.labelMaximum.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelMaximum.Name = "labelMaximum";
|
||||
this.labelMaximum.Size = new System.Drawing.Size(66, 17);
|
||||
this.labelMaximum.TabIndex = 29;
|
||||
this.labelMaximum.Text = "Maximum";
|
||||
//
|
||||
// labelMinimum
|
||||
//
|
||||
this.labelMinimum.AutoSize = true;
|
||||
this.labelMinimum.Location = new System.Drawing.Point(344, 281);
|
||||
this.labelMinimum.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelMinimum.Name = "labelMinimum";
|
||||
this.labelMinimum.Size = new System.Drawing.Size(63, 17);
|
||||
this.labelMinimum.TabIndex = 27;
|
||||
this.labelMinimum.Text = "Minimum";
|
||||
//
|
||||
// textBoxSlotLengthMax
|
||||
//
|
||||
this.textBoxSlotLengthMax.Location = new System.Drawing.Point(545, 278);
|
||||
this.textBoxSlotLengthMax.Name = "textBoxSlotLengthMax";
|
||||
this.textBoxSlotLengthMax.Size = new System.Drawing.Size(51, 22);
|
||||
this.textBoxSlotLengthMax.TabIndex = 30;
|
||||
//
|
||||
// comboBoxSessionType
|
||||
//
|
||||
this.comboBoxSessionType.FormattingEnabled = true;
|
||||
this.comboBoxSessionType.Location = new System.Drawing.Point(494, 162);
|
||||
this.comboBoxSessionType.Name = "comboBoxSessionType";
|
||||
this.comboBoxSessionType.Size = new System.Drawing.Size(102, 24);
|
||||
this.comboBoxSessionType.TabIndex = 15;
|
||||
//
|
||||
// labelSessionType
|
||||
//
|
||||
this.labelSessionType.AutoSize = true;
|
||||
this.labelSessionType.Location = new System.Drawing.Point(426, 165);
|
||||
this.labelSessionType.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelSessionType.Name = "labelSessionType";
|
||||
this.labelSessionType.Size = new System.Drawing.Size(61, 17);
|
||||
this.labelSessionType.TabIndex = 14;
|
||||
this.labelSessionType.Text = "List type";
|
||||
//
|
||||
// labelSlotLength
|
||||
//
|
||||
this.labelSlotLength.AutoSize = true;
|
||||
this.labelSlotLength.Location = new System.Drawing.Point(106, 281);
|
||||
this.labelSlotLength.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelSlotLength.Name = "labelSlotLength";
|
||||
this.labelSlotLength.Size = new System.Drawing.Size(75, 17);
|
||||
this.labelSlotLength.TabIndex = 25;
|
||||
this.labelSlotLength.Text = "Slot length";
|
||||
//
|
||||
// labelOccupancy
|
||||
//
|
||||
this.labelOccupancy.AutoSize = true;
|
||||
this.labelOccupancy.Location = new System.Drawing.Point(102, 165);
|
||||
this.labelOccupancy.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelOccupancy.Name = "labelOccupancy";
|
||||
this.labelOccupancy.Size = new System.Drawing.Size(79, 17);
|
||||
this.labelOccupancy.TabIndex = 12;
|
||||
this.labelOccupancy.Text = "Occupancy";
|
||||
//
|
||||
// textBoxSlotLengthMin
|
||||
//
|
||||
this.textBoxSlotLengthMin.Location = new System.Drawing.Point(414, 278);
|
||||
this.textBoxSlotLengthMin.Name = "textBoxSlotLengthMin";
|
||||
this.textBoxSlotLengthMin.Size = new System.Drawing.Size(51, 22);
|
||||
this.textBoxSlotLengthMin.TabIndex = 28;
|
||||
//
|
||||
// comboBoxSlotLength
|
||||
//
|
||||
this.comboBoxSlotLength.FormattingEnabled = true;
|
||||
this.comboBoxSlotLength.Location = new System.Drawing.Point(188, 278);
|
||||
this.comboBoxSlotLength.Name = "comboBoxSlotLength";
|
||||
this.comboBoxSlotLength.Size = new System.Drawing.Size(102, 24);
|
||||
this.comboBoxSlotLength.TabIndex = 26;
|
||||
//
|
||||
// comboBoxOccupany
|
||||
//
|
||||
this.comboBoxOccupany.FormattingEnabled = true;
|
||||
this.comboBoxOccupany.Location = new System.Drawing.Point(188, 162);
|
||||
this.comboBoxOccupany.Name = "comboBoxOccupany";
|
||||
this.comboBoxOccupany.Size = new System.Drawing.Size(204, 24);
|
||||
this.comboBoxOccupany.TabIndex = 13;
|
||||
//
|
||||
// labelName
|
||||
//
|
||||
this.labelName.AutoSize = true;
|
||||
this.labelName.Location = new System.Drawing.Point(100, 79);
|
||||
this.labelName.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelName.Name = "labelName";
|
||||
this.labelName.Size = new System.Drawing.Size(81, 17);
|
||||
this.labelName.TabIndex = 4;
|
||||
this.labelName.Text = "Short name";
|
||||
//
|
||||
// labelDesc
|
||||
//
|
||||
this.labelDesc.AutoSize = true;
|
||||
this.labelDesc.Location = new System.Drawing.Point(102, 107);
|
||||
this.labelDesc.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDesc.Name = "labelDesc";
|
||||
this.labelDesc.Size = new System.Drawing.Size(79, 17);
|
||||
this.labelDesc.TabIndex = 6;
|
||||
this.labelDesc.Text = "Description";
|
||||
//
|
||||
// textBoxName
|
||||
//
|
||||
this.textBoxName.Location = new System.Drawing.Point(188, 76);
|
||||
this.textBoxName.Name = "textBoxName";
|
||||
this.textBoxName.Size = new System.Drawing.Size(204, 22);
|
||||
this.textBoxName.TabIndex = 5;
|
||||
//
|
||||
// textBoxDesc
|
||||
//
|
||||
this.textBoxDesc.Location = new System.Drawing.Point(188, 104);
|
||||
this.textBoxDesc.Name = "textBoxDesc";
|
||||
this.textBoxDesc.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxDesc.TabIndex = 7;
|
||||
//
|
||||
// SpmForm_FacilityTemplate_Clinic
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(632, 753);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.tabControl);
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.Controls.Add(this.groupBoxProperties);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(650, 800);
|
||||
this.Name = "SpmForm_FacilityTemplate_Clinic";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "Update Clinic Template";
|
||||
this.tabControl.ResumeLayout(false);
|
||||
this.groupBoxProperties.ResumeLayout(false);
|
||||
this.groupBoxProperties.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label labelStartAt;
|
||||
private System.Windows.Forms.Label labelApplication;
|
||||
private System.Windows.Forms.Label labelthrough;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker sacsDateTimePicker1;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker sacsDateTimePicker2;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker dateTimePickerFinishAt;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker dateTimePickerStartAt;
|
||||
private System.Windows.Forms.Label labelSpeciality;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox sacsComboBoxSpeciality;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxConsultant;
|
||||
private System.Windows.Forms.Label labelConsultantCode;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxConsultantCode;
|
||||
private System.Windows.Forms.Label labelDayOfWeek;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxDayOfWeek;
|
||||
private System.Windows.Forms.Label labelWeekOfMonth;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxWeekOfMonth;
|
||||
private System.Windows.Forms.Label labelFacility;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxFacility;
|
||||
private System.Windows.Forms.Label labelDepartment;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDepartment;
|
||||
private System.Windows.Forms.TabControl tabControl;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonOk;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonCancel;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxProperties;
|
||||
private System.Windows.Forms.Label labelSlotLength;
|
||||
private System.Windows.Forms.Label labelOccupancy;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxSlotLengthMin;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxSlotLength;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxOccupany;
|
||||
private System.Windows.Forms.Label labelName;
|
||||
private System.Windows.Forms.Label labelDesc;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxName;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDesc;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxSessionType;
|
||||
private System.Windows.Forms.Label labelSessionType;
|
||||
private System.Windows.Forms.Label labelMaximum;
|
||||
private System.Windows.Forms.Label labelMinimum;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxSlotLengthMax;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_FacilityTemplate_Clinic : SpmForm_FacilityTemplate
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_FacilityTemplate.Config
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_FacilityTemplate_Clinic() : this(new Config()) { }
|
||||
public SpmForm_FacilityTemplate_Clinic(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
[Browsable(false)]
|
||||
protected override String DefaultMessageTitle { get { return "FacilityTemplate_Clinic"; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S h o w D i a l o g
|
||||
//-------------------------------------------------------------------
|
||||
public new DialogResult ShowDialog()
|
||||
{
|
||||
return base.ShowDialog();
|
||||
}
|
||||
// Validate configuration to ensure that form can be opened correctly.
|
||||
private bool ValidateConfiguration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
// Complete dialog initialisation.
|
||||
PositionControls();
|
||||
AcceptChanges();
|
||||
SetControlActivity();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
// Initial focus.
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o p u l a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
/* PopulateToControls.
|
||||
private void PopulateToControls(SpmFacilityTemplate_Clinic.Data data)
|
||||
{
|
||||
// Populate item properties to controls.
|
||||
|
||||
AcceptChanges();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate properties.
|
||||
public bool IsDataValid(SpmFacilityTemplate_Clinic.Data data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateFromControls.
|
||||
private void PopulateFromControls(SpmFacilityTemplate_Clinic.Data data)
|
||||
{
|
||||
}*/
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// UpdatedAssociated Data.
|
||||
public bool UpdateAssociatedData()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C l o s e F o r m
|
||||
//-------------------------------------------------------------------
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
protected override void SetControlActivity()
|
||||
{
|
||||
SetControlsReadOnly();
|
||||
}
|
||||
public bool IsFieldReadOnly(SpmDbDfn.ColumnIdx col)
|
||||
{
|
||||
if (ReadOnly) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
protected override void SetControlsReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o s i t i o n C o n t r o l s
|
||||
//-------------------------------------------------------------------
|
||||
protected override void PositionControls()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,290 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_FacilityTemplate_Slot
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.buttonOk = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.buttonCancel = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.textBoxDepartment = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelDepartment = new System.Windows.Forms.Label();
|
||||
this.textBoxTemplate = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.textBoxFacility = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelTemplate = new System.Windows.Forms.Label();
|
||||
this.textBoxComplexity = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelFacility = new System.Windows.Forms.Label();
|
||||
this.labelComplexity = new System.Windows.Forms.Label();
|
||||
this.textBoxCapacity = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.textBoxDurationAverage = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.textBoxDurationTotal = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelCapacity = new System.Windows.Forms.Label();
|
||||
this.labelDurationAverage = new System.Windows.Forms.Label();
|
||||
this.labelDurationTotal = new System.Windows.Forms.Label();
|
||||
this.groupBoxProperties = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.labelMinutes = new System.Windows.Forms.Label();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.groupBoxProperties.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonOk.Location = new System.Drawing.Point(411, 292);
|
||||
this.buttonOk.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOk.TabIndex = 12;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(519, 292);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 13;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// textBoxDepartment
|
||||
//
|
||||
this.textBoxDepartment.Location = new System.Drawing.Point(188, 22);
|
||||
this.textBoxDepartment.Name = "textBoxDepartment";
|
||||
this.textBoxDepartment.ReadOnly = true;
|
||||
this.textBoxDepartment.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxDepartment.TabIndex = 6;
|
||||
//
|
||||
// labelDepartment
|
||||
//
|
||||
this.labelDepartment.AutoSize = true;
|
||||
this.labelDepartment.Location = new System.Drawing.Point(99, 25);
|
||||
this.labelDepartment.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDepartment.Name = "labelDepartment";
|
||||
this.labelDepartment.Size = new System.Drawing.Size(82, 17);
|
||||
this.labelDepartment.TabIndex = 5;
|
||||
this.labelDepartment.Text = "Department";
|
||||
//
|
||||
// textBoxTemplate
|
||||
//
|
||||
this.textBoxTemplate.Location = new System.Drawing.Point(188, 78);
|
||||
this.textBoxTemplate.Multiline = true;
|
||||
this.textBoxTemplate.Name = "textBoxTemplate";
|
||||
this.textBoxTemplate.ReadOnly = true;
|
||||
this.textBoxTemplate.Size = new System.Drawing.Size(408, 61);
|
||||
this.textBoxTemplate.TabIndex = 6;
|
||||
//
|
||||
// textBoxFacility
|
||||
//
|
||||
this.textBoxFacility.Location = new System.Drawing.Point(188, 50);
|
||||
this.textBoxFacility.Name = "textBoxFacility";
|
||||
this.textBoxFacility.ReadOnly = true;
|
||||
this.textBoxFacility.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxFacility.TabIndex = 8;
|
||||
//
|
||||
// labelTemplate
|
||||
//
|
||||
this.labelTemplate.AutoSize = true;
|
||||
this.labelTemplate.Location = new System.Drawing.Point(114, 81);
|
||||
this.labelTemplate.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelTemplate.Name = "labelTemplate";
|
||||
this.labelTemplate.Size = new System.Drawing.Size(67, 17);
|
||||
this.labelTemplate.TabIndex = 5;
|
||||
this.labelTemplate.Text = "Template";
|
||||
//
|
||||
// textBoxComplexity
|
||||
//
|
||||
this.textBoxComplexity.Location = new System.Drawing.Point(188, 145);
|
||||
this.textBoxComplexity.Name = "textBoxComplexity";
|
||||
this.textBoxComplexity.ReadOnly = true;
|
||||
this.textBoxComplexity.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxComplexity.TabIndex = 8;
|
||||
//
|
||||
// labelFacility
|
||||
//
|
||||
this.labelFacility.AutoSize = true;
|
||||
this.labelFacility.Location = new System.Drawing.Point(130, 53);
|
||||
this.labelFacility.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelFacility.Name = "labelFacility";
|
||||
this.labelFacility.Size = new System.Drawing.Size(51, 17);
|
||||
this.labelFacility.TabIndex = 7;
|
||||
this.labelFacility.Text = "Facility";
|
||||
//
|
||||
// labelComplexity
|
||||
//
|
||||
this.labelComplexity.AutoSize = true;
|
||||
this.labelComplexity.Location = new System.Drawing.Point(106, 148);
|
||||
this.labelComplexity.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelComplexity.Name = "labelComplexity";
|
||||
this.labelComplexity.Size = new System.Drawing.Size(75, 17);
|
||||
this.labelComplexity.TabIndex = 7;
|
||||
this.labelComplexity.Text = "Complexity";
|
||||
//
|
||||
// textBoxCapacity
|
||||
//
|
||||
this.textBoxCapacity.Location = new System.Drawing.Point(188, 173);
|
||||
this.textBoxCapacity.Name = "textBoxCapacity";
|
||||
this.textBoxCapacity.Size = new System.Drawing.Size(102, 22);
|
||||
this.textBoxCapacity.TabIndex = 9;
|
||||
//
|
||||
// textBoxDurationAverage
|
||||
//
|
||||
this.textBoxDurationAverage.Location = new System.Drawing.Point(188, 201);
|
||||
this.textBoxDurationAverage.Name = "textBoxDurationAverage";
|
||||
this.textBoxDurationAverage.Size = new System.Drawing.Size(102, 22);
|
||||
this.textBoxDurationAverage.TabIndex = 10;
|
||||
//
|
||||
// textBoxDurationTotal
|
||||
//
|
||||
this.textBoxDurationTotal.Location = new System.Drawing.Point(188, 226);
|
||||
this.textBoxDurationTotal.Name = "textBoxDurationTotal";
|
||||
this.textBoxDurationTotal.ReadOnly = true;
|
||||
this.textBoxDurationTotal.Size = new System.Drawing.Size(102, 22);
|
||||
this.textBoxDurationTotal.TabIndex = 11;
|
||||
//
|
||||
// labelCapacity
|
||||
//
|
||||
this.labelCapacity.AutoSize = true;
|
||||
this.labelCapacity.Location = new System.Drawing.Point(106, 176);
|
||||
this.labelCapacity.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelCapacity.Name = "labelCapacity";
|
||||
this.labelCapacity.Size = new System.Drawing.Size(62, 17);
|
||||
this.labelCapacity.TabIndex = 12;
|
||||
this.labelCapacity.Text = "Capacity";
|
||||
//
|
||||
// labelDurationAverage
|
||||
//
|
||||
this.labelDurationAverage.AutoSize = true;
|
||||
this.labelDurationAverage.Location = new System.Drawing.Point(64, 204);
|
||||
this.labelDurationAverage.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDurationAverage.Name = "labelDurationAverage";
|
||||
this.labelDurationAverage.Size = new System.Drawing.Size(117, 17);
|
||||
this.labelDurationAverage.TabIndex = 13;
|
||||
this.labelDurationAverage.Text = "Average duration";
|
||||
//
|
||||
// labelDurationTotal
|
||||
//
|
||||
this.labelDurationTotal.AutoSize = true;
|
||||
this.labelDurationTotal.Location = new System.Drawing.Point(85, 229);
|
||||
this.labelDurationTotal.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDurationTotal.Name = "labelDurationTotal";
|
||||
this.labelDurationTotal.Size = new System.Drawing.Size(96, 17);
|
||||
this.labelDurationTotal.TabIndex = 14;
|
||||
this.labelDurationTotal.Text = "Total duration";
|
||||
//
|
||||
// groupBoxProperties
|
||||
//
|
||||
this.groupBoxProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxProperties.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxProperties.Controls.Add(this.labelMinutes);
|
||||
this.groupBoxProperties.Controls.Add(this.label1);
|
||||
this.groupBoxProperties.Controls.Add(this.label2);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDurationTotal);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDurationAverage);
|
||||
this.groupBoxProperties.Controls.Add(this.labelCapacity);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDurationTotal);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDurationAverage);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxCapacity);
|
||||
this.groupBoxProperties.Controls.Add(this.labelComplexity);
|
||||
this.groupBoxProperties.Controls.Add(this.labelFacility);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxComplexity);
|
||||
this.groupBoxProperties.Controls.Add(this.labelTemplate);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxFacility);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxTemplate);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDepartment);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDepartment);
|
||||
this.groupBoxProperties.Location = new System.Drawing.Point(12, 12);
|
||||
this.groupBoxProperties.Name = "groupBoxProperties";
|
||||
this.groupBoxProperties.Size = new System.Drawing.Size(608, 265);
|
||||
this.groupBoxProperties.TabIndex = 11;
|
||||
this.groupBoxProperties.TabStop = false;
|
||||
this.groupBoxProperties.Text = "Properties";
|
||||
//
|
||||
// labelMinutes
|
||||
//
|
||||
this.labelMinutes.AutoSize = true;
|
||||
this.labelMinutes.Location = new System.Drawing.Point(297, 176);
|
||||
this.labelMinutes.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelMinutes.Name = "labelMinutes";
|
||||
this.labelMinutes.Size = new System.Drawing.Size(37, 17);
|
||||
this.labelMinutes.TabIndex = 17;
|
||||
this.labelMinutes.Text = "mins";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(297, 204);
|
||||
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(37, 17);
|
||||
this.label1.TabIndex = 18;
|
||||
this.label1.Text = "mins";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(297, 229);
|
||||
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(37, 17);
|
||||
this.label2.TabIndex = 19;
|
||||
this.label2.Text = "mins";
|
||||
//
|
||||
// SpmForm_FacilityTemplate_Slot
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(632, 333);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.Controls.Add(this.groupBoxProperties);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(650, 380);
|
||||
this.Name = "SpmForm_FacilityTemplate_Slot";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "SpmFormFacilityTemplate_Slot";
|
||||
this.groupBoxProperties.ResumeLayout(false);
|
||||
this.groupBoxProperties.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonOk;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonCancel;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDepartment;
|
||||
private System.Windows.Forms.Label labelDepartment;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxTemplate;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxFacility;
|
||||
private System.Windows.Forms.Label labelTemplate;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxComplexity;
|
||||
private System.Windows.Forms.Label labelFacility;
|
||||
private System.Windows.Forms.Label labelComplexity;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxCapacity;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDurationAverage;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDurationTotal;
|
||||
private System.Windows.Forms.Label labelCapacity;
|
||||
private System.Windows.Forms.Label labelDurationAverage;
|
||||
private System.Windows.Forms.Label labelDurationTotal;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxProperties;
|
||||
private System.Windows.Forms.Label labelMinutes;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_FacilityTemplate_Slot : SpmForm
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_Item.Config
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_FacilityTemplate_Slot() : this(new Config()) { }
|
||||
public SpmForm_FacilityTemplate_Slot(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
[Browsable(false)]
|
||||
protected override String DefaultMessageTitle { get { return "FacilityTemplate_Slot"; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S h o w D i a l o g
|
||||
//-------------------------------------------------------------------
|
||||
public new DialogResult ShowDialog()
|
||||
{
|
||||
return base.ShowDialog();
|
||||
}
|
||||
// Validate configuration to ensure that form can be opened correctly.
|
||||
private bool ValidateConfiguration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
// Complete dialog initialisation.
|
||||
PositionControls();
|
||||
AcceptChanges();
|
||||
SetControlActivity();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
// Initial focus.
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o p u l a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
/* PopulateToControls.
|
||||
private void PopulateToControls(SpmFacilityTemplate_Slot.Data data)
|
||||
{
|
||||
// Populate item properties to controls.
|
||||
|
||||
AcceptChanges();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate properties.
|
||||
public bool IsDataValid(SpmFacilityTemplate_Slot.Data data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateFromControls.
|
||||
private void PopulateFromControls(SpmFacilityTemplate_Slot.Data data)
|
||||
{
|
||||
}*/
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// UpdatedAssociated Data.
|
||||
public bool UpdateAssociatedData()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C l o s e F o r m
|
||||
//-------------------------------------------------------------------
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
protected override void SetControlActivity()
|
||||
{
|
||||
SetControlsReadOnly();
|
||||
}
|
||||
public bool IsFieldReadOnly(SpmDbDfn.ColumnIdx col)
|
||||
{
|
||||
if (ReadOnly) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
protected override void SetControlsReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o s i t i o n C o n t r o l s
|
||||
//-------------------------------------------------------------------
|
||||
protected override void PositionControls()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
+377
@@ -0,0 +1,377 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_FacilityTemplate_Theatre
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.buttonOk = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.tabControl = new System.Windows.Forms.TabControl();
|
||||
this.buttonCancel = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.groupBoxProperties = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.labelStartAt = new System.Windows.Forms.Label();
|
||||
this.labelApplication = new System.Windows.Forms.Label();
|
||||
this.labelthrough = new System.Windows.Forms.Label();
|
||||
this.sacsDateTimePicker1 = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.sacsDateTimePicker2 = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.dateTimePickerFinishAt = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.dateTimePickerStartAt = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.labelSpeciality = new System.Windows.Forms.Label();
|
||||
this.sacsComboBoxSpeciality = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.comboBoxConsultant = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelConsultantCode = new System.Windows.Forms.Label();
|
||||
this.textBoxConsultantCode = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelDayOfWeek = new System.Windows.Forms.Label();
|
||||
this.comboBoxDayOfWeek = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelWeekOfMonth = new System.Windows.Forms.Label();
|
||||
this.comboBoxWeekOfMonth = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelFacility = new System.Windows.Forms.Label();
|
||||
this.textBoxFacility = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelDepartment = new System.Windows.Forms.Label();
|
||||
this.textBoxDepartment = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.tabControl.SuspendLayout();
|
||||
this.groupBoxProperties.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonOk.Location = new System.Drawing.Point(411, 512);
|
||||
this.buttonOk.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOk.TabIndex = 10;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 25);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(600, 208);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "tabPage1";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 25);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new System.Drawing.Size(750, 208);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "tabPage2";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabControl
|
||||
//
|
||||
this.tabControl.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.tabControl.Controls.Add(this.tabPage1);
|
||||
this.tabControl.Controls.Add(this.tabPage2);
|
||||
this.tabControl.Location = new System.Drawing.Point(11, 268);
|
||||
this.tabControl.Name = "tabControl";
|
||||
this.tabControl.SelectedIndex = 0;
|
||||
this.tabControl.Size = new System.Drawing.Size(608, 237);
|
||||
this.tabControl.TabIndex = 9;
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(519, 512);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 11;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBoxProperties
|
||||
//
|
||||
this.groupBoxProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxProperties.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxProperties.Controls.Add(this.label2);
|
||||
this.groupBoxProperties.Controls.Add(this.labelStartAt);
|
||||
this.groupBoxProperties.Controls.Add(this.labelApplication);
|
||||
this.groupBoxProperties.Controls.Add(this.labelthrough);
|
||||
this.groupBoxProperties.Controls.Add(this.sacsDateTimePicker1);
|
||||
this.groupBoxProperties.Controls.Add(this.sacsDateTimePicker2);
|
||||
this.groupBoxProperties.Controls.Add(this.dateTimePickerFinishAt);
|
||||
this.groupBoxProperties.Controls.Add(this.dateTimePickerStartAt);
|
||||
this.groupBoxProperties.Controls.Add(this.labelSpeciality);
|
||||
this.groupBoxProperties.Controls.Add(this.sacsComboBoxSpeciality);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxConsultant);
|
||||
this.groupBoxProperties.Controls.Add(this.labelConsultantCode);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxConsultantCode);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDayOfWeek);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxDayOfWeek);
|
||||
this.groupBoxProperties.Controls.Add(this.labelWeekOfMonth);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxWeekOfMonth);
|
||||
this.groupBoxProperties.Controls.Add(this.labelFacility);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxFacility);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDepartment);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDepartment);
|
||||
this.groupBoxProperties.Location = new System.Drawing.Point(12, 12);
|
||||
this.groupBoxProperties.Name = "groupBoxProperties";
|
||||
this.groupBoxProperties.Size = new System.Drawing.Size(608, 250);
|
||||
this.groupBoxProperties.TabIndex = 8;
|
||||
this.groupBoxProperties.TabStop = false;
|
||||
this.groupBoxProperties.Text = "Properties";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(339, 199);
|
||||
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(80, 17);
|
||||
this.label2.TabIndex = 22;
|
||||
this.label2.Text = "Finishing at";
|
||||
//
|
||||
// labelStartAt
|
||||
//
|
||||
this.labelStartAt.AutoSize = true;
|
||||
this.labelStartAt.Location = new System.Drawing.Point(108, 199);
|
||||
this.labelStartAt.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelStartAt.Name = "labelStartAt";
|
||||
this.labelStartAt.Size = new System.Drawing.Size(73, 17);
|
||||
this.labelStartAt.TabIndex = 21;
|
||||
this.labelStartAt.Text = "Starting at";
|
||||
//
|
||||
// labelApplication
|
||||
//
|
||||
this.labelApplication.AutoSize = true;
|
||||
this.labelApplication.Location = new System.Drawing.Point(72, 223);
|
||||
this.labelApplication.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelApplication.Name = "labelApplication";
|
||||
this.labelApplication.Size = new System.Drawing.Size(109, 17);
|
||||
this.labelApplication.TabIndex = 17;
|
||||
this.labelApplication.Text = "Application from";
|
||||
//
|
||||
// labelthrough
|
||||
//
|
||||
this.labelthrough.AutoSize = true;
|
||||
this.labelthrough.Location = new System.Drawing.Point(364, 225);
|
||||
this.labelthrough.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelthrough.Name = "labelthrough";
|
||||
this.labelthrough.Size = new System.Drawing.Size(57, 17);
|
||||
this.labelthrough.TabIndex = 19;
|
||||
this.labelthrough.Text = "through";
|
||||
//
|
||||
// sacsDateTimePicker1
|
||||
//
|
||||
this.sacsDateTimePicker1.Location = new System.Drawing.Point(426, 222);
|
||||
this.sacsDateTimePicker1.Name = "sacsDateTimePicker1";
|
||||
this.sacsDateTimePicker1.Size = new System.Drawing.Size(170, 22);
|
||||
this.sacsDateTimePicker1.TabIndex = 20;
|
||||
this.sacsDateTimePicker1.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// sacsDateTimePicker2
|
||||
//
|
||||
this.sacsDateTimePicker2.Location = new System.Drawing.Point(188, 222);
|
||||
this.sacsDateTimePicker2.Name = "sacsDateTimePicker2";
|
||||
this.sacsDateTimePicker2.Size = new System.Drawing.Size(170, 22);
|
||||
this.sacsDateTimePicker2.TabIndex = 18;
|
||||
this.sacsDateTimePicker2.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// dateTimePickerFinishAt
|
||||
//
|
||||
this.dateTimePickerFinishAt.Location = new System.Drawing.Point(426, 194);
|
||||
this.dateTimePickerFinishAt.Name = "dateTimePickerFinishAt";
|
||||
this.dateTimePickerFinishAt.Size = new System.Drawing.Size(102, 22);
|
||||
this.dateTimePickerFinishAt.TabIndex = 16;
|
||||
this.dateTimePickerFinishAt.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// dateTimePickerStartAt
|
||||
//
|
||||
this.dateTimePickerStartAt.Location = new System.Drawing.Point(188, 194);
|
||||
this.dateTimePickerStartAt.Name = "dateTimePickerStartAt";
|
||||
this.dateTimePickerStartAt.Size = new System.Drawing.Size(102, 22);
|
||||
this.dateTimePickerStartAt.TabIndex = 15;
|
||||
this.dateTimePickerStartAt.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// labelSpeciality
|
||||
//
|
||||
this.labelSpeciality.AutoSize = true;
|
||||
this.labelSpeciality.Location = new System.Drawing.Point(113, 167);
|
||||
this.labelSpeciality.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelSpeciality.Name = "labelSpeciality";
|
||||
this.labelSpeciality.Size = new System.Drawing.Size(68, 17);
|
||||
this.labelSpeciality.TabIndex = 14;
|
||||
this.labelSpeciality.Text = "Speciality";
|
||||
//
|
||||
// sacsComboBoxSpeciality
|
||||
//
|
||||
this.sacsComboBoxSpeciality.FormattingEnabled = true;
|
||||
this.sacsComboBoxSpeciality.Location = new System.Drawing.Point(188, 164);
|
||||
this.sacsComboBoxSpeciality.Name = "sacsComboBoxSpeciality";
|
||||
this.sacsComboBoxSpeciality.Size = new System.Drawing.Size(204, 24);
|
||||
this.sacsComboBoxSpeciality.TabIndex = 13;
|
||||
//
|
||||
// comboBoxConsultant
|
||||
//
|
||||
this.comboBoxConsultant.FormattingEnabled = true;
|
||||
this.comboBoxConsultant.Location = new System.Drawing.Point(245, 134);
|
||||
this.comboBoxConsultant.Name = "comboBoxConsultant";
|
||||
this.comboBoxConsultant.Size = new System.Drawing.Size(204, 24);
|
||||
this.comboBoxConsultant.TabIndex = 12;
|
||||
//
|
||||
// labelConsultantCode
|
||||
//
|
||||
this.labelConsultantCode.AutoSize = true;
|
||||
this.labelConsultantCode.Location = new System.Drawing.Point(106, 139);
|
||||
this.labelConsultantCode.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelConsultantCode.Name = "labelConsultantCode";
|
||||
this.labelConsultantCode.Size = new System.Drawing.Size(75, 17);
|
||||
this.labelConsultantCode.TabIndex = 10;
|
||||
this.labelConsultantCode.Text = "Consultant";
|
||||
//
|
||||
// textBoxConsultantCode
|
||||
//
|
||||
this.textBoxConsultantCode.Location = new System.Drawing.Point(188, 136);
|
||||
this.textBoxConsultantCode.Name = "textBoxConsultantCode";
|
||||
this.textBoxConsultantCode.Size = new System.Drawing.Size(51, 22);
|
||||
this.textBoxConsultantCode.TabIndex = 11;
|
||||
//
|
||||
// labelDayOfWeek
|
||||
//
|
||||
this.labelDayOfWeek.AutoSize = true;
|
||||
this.labelDayOfWeek.Location = new System.Drawing.Point(96, 109);
|
||||
this.labelDayOfWeek.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDayOfWeek.Name = "labelDayOfWeek";
|
||||
this.labelDayOfWeek.Size = new System.Drawing.Size(85, 17);
|
||||
this.labelDayOfWeek.TabIndex = 8;
|
||||
this.labelDayOfWeek.Text = "Day of week";
|
||||
//
|
||||
// comboBoxDayOfWeek
|
||||
//
|
||||
this.comboBoxDayOfWeek.FormattingEnabled = true;
|
||||
this.comboBoxDayOfWeek.Location = new System.Drawing.Point(188, 106);
|
||||
this.comboBoxDayOfWeek.Name = "comboBoxDayOfWeek";
|
||||
this.comboBoxDayOfWeek.Size = new System.Drawing.Size(102, 24);
|
||||
this.comboBoxDayOfWeek.TabIndex = 9;
|
||||
//
|
||||
// labelWeekOfMonth
|
||||
//
|
||||
this.labelWeekOfMonth.AutoSize = true;
|
||||
this.labelWeekOfMonth.Location = new System.Drawing.Point(78, 79);
|
||||
this.labelWeekOfMonth.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelWeekOfMonth.Name = "labelWeekOfMonth";
|
||||
this.labelWeekOfMonth.Size = new System.Drawing.Size(103, 17);
|
||||
this.labelWeekOfMonth.TabIndex = 6;
|
||||
this.labelWeekOfMonth.Text = "Week of month";
|
||||
//
|
||||
// comboBoxWeekOfMonth
|
||||
//
|
||||
this.comboBoxWeekOfMonth.FormattingEnabled = true;
|
||||
this.comboBoxWeekOfMonth.Location = new System.Drawing.Point(188, 76);
|
||||
this.comboBoxWeekOfMonth.Name = "comboBoxWeekOfMonth";
|
||||
this.comboBoxWeekOfMonth.Size = new System.Drawing.Size(102, 24);
|
||||
this.comboBoxWeekOfMonth.TabIndex = 7;
|
||||
//
|
||||
// labelFacility
|
||||
//
|
||||
this.labelFacility.AutoSize = true;
|
||||
this.labelFacility.Location = new System.Drawing.Point(130, 51);
|
||||
this.labelFacility.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelFacility.Name = "labelFacility";
|
||||
this.labelFacility.Size = new System.Drawing.Size(51, 17);
|
||||
this.labelFacility.TabIndex = 4;
|
||||
this.labelFacility.Text = "Facility";
|
||||
//
|
||||
// textBoxFacility
|
||||
//
|
||||
this.textBoxFacility.Location = new System.Drawing.Point(188, 48);
|
||||
this.textBoxFacility.Name = "textBoxFacility";
|
||||
this.textBoxFacility.ReadOnly = true;
|
||||
this.textBoxFacility.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxFacility.TabIndex = 5;
|
||||
//
|
||||
// labelDepartment
|
||||
//
|
||||
this.labelDepartment.AutoSize = true;
|
||||
this.labelDepartment.Location = new System.Drawing.Point(99, 23);
|
||||
this.labelDepartment.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDepartment.Name = "labelDepartment";
|
||||
this.labelDepartment.Size = new System.Drawing.Size(82, 17);
|
||||
this.labelDepartment.TabIndex = 2;
|
||||
this.labelDepartment.Text = "Department";
|
||||
//
|
||||
// textBoxDepartment
|
||||
//
|
||||
this.textBoxDepartment.Location = new System.Drawing.Point(188, 20);
|
||||
this.textBoxDepartment.Name = "textBoxDepartment";
|
||||
this.textBoxDepartment.ReadOnly = true;
|
||||
this.textBoxDepartment.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxDepartment.TabIndex = 3;
|
||||
//
|
||||
// SpmForm_FacilityTemplate_Theatre
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(632, 553);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.Controls.Add(this.tabControl);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.Controls.Add(this.groupBoxProperties);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(650, 600);
|
||||
this.Name = "SpmForm_FacilityTemplate_Theatre";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "Update Theatre Template";
|
||||
this.tabControl.ResumeLayout(false);
|
||||
this.groupBoxProperties.ResumeLayout(false);
|
||||
this.groupBoxProperties.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonOk;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private System.Windows.Forms.TabControl tabControl;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonCancel;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxProperties;
|
||||
private System.Windows.Forms.Label labelFacility;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxFacility;
|
||||
private System.Windows.Forms.Label labelDepartment;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDepartment;
|
||||
private System.Windows.Forms.Label labelDayOfWeek;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxDayOfWeek;
|
||||
private System.Windows.Forms.Label labelWeekOfMonth;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxWeekOfMonth;
|
||||
private System.Windows.Forms.Label labelSpeciality;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox sacsComboBoxSpeciality;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxConsultant;
|
||||
private System.Windows.Forms.Label labelConsultantCode;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxConsultantCode;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker dateTimePickerFinishAt;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker dateTimePickerStartAt;
|
||||
private System.Windows.Forms.Label labelApplication;
|
||||
private System.Windows.Forms.Label labelthrough;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker sacsDateTimePicker1;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker sacsDateTimePicker2;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label labelStartAt;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_FacilityTemplate_Theatre : SpmForm_FacilityTemplate
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_FacilityTemplate.Config
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_FacilityTemplate_Theatre() : this(new Config()) { }
|
||||
public SpmForm_FacilityTemplate_Theatre(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
[Browsable(false)]
|
||||
protected override String DefaultMessageTitle { get { return "FacilityTemplate_Theatre"; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S h o w D i a l o g
|
||||
//-------------------------------------------------------------------
|
||||
public new DialogResult ShowDialog()
|
||||
{
|
||||
return base.ShowDialog();
|
||||
}
|
||||
// Validate configuration to ensure that form can be opened correctly.
|
||||
private bool ValidateConfiguration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
// Complete dialog initialisation.
|
||||
PositionControls();
|
||||
AcceptChanges();
|
||||
SetControlActivity();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
// Initial focus.
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o p u l a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
/* PopulateToControls.
|
||||
private void PopulateToControls(SpmFacilityTemplate_Theatre.Data data)
|
||||
{
|
||||
// Populate item properties to controls.
|
||||
|
||||
AcceptChanges();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate properties.
|
||||
public bool IsDataValid(SpmFacilityTemplate_Theatre.Data data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateFromControls.
|
||||
private void PopulateFromControls(SpmFacilityTemplate_Theatre.Data data)
|
||||
{
|
||||
}*/
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// UpdatedAssociated Data.
|
||||
public bool UpdateAssociatedData()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C l o s e F o r m
|
||||
//-------------------------------------------------------------------
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
protected override void SetControlActivity()
|
||||
{
|
||||
SetControlsReadOnly();
|
||||
}
|
||||
public bool IsFieldReadOnly(SpmDbDfn.ColumnIdx col)
|
||||
{
|
||||
if (ReadOnly) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
protected override void SetControlsReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o s i t i o n C o n t r o l s
|
||||
//-------------------------------------------------------------------
|
||||
protected override void PositionControls()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,317 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_FacilityTemplate_Ward
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.labelApplication = new System.Windows.Forms.Label();
|
||||
this.labelthrough = new System.Windows.Forms.Label();
|
||||
this.sacsDateTimePicker1 = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.sacsDateTimePicker2 = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.labelFacility = new System.Windows.Forms.Label();
|
||||
this.textBoxFacility = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelDepartment = new System.Windows.Forms.Label();
|
||||
this.textBoxDepartment = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.buttonOk = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||
this.tabControl = new System.Windows.Forms.TabControl();
|
||||
this.buttonCancel = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.groupBoxProperties = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.comboBoxGroup = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelGroup = new System.Windows.Forms.Label();
|
||||
this.labelType = new System.Windows.Forms.Label();
|
||||
this.comboBoxType = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelName = new System.Windows.Forms.Label();
|
||||
this.labelDesc = new System.Windows.Forms.Label();
|
||||
this.textBoxName = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.textBoxDesc = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.tabControl.SuspendLayout();
|
||||
this.groupBoxProperties.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// labelApplication
|
||||
//
|
||||
this.labelApplication.AutoSize = true;
|
||||
this.labelApplication.Location = new System.Drawing.Point(72, 163);
|
||||
this.labelApplication.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelApplication.Name = "labelApplication";
|
||||
this.labelApplication.Size = new System.Drawing.Size(109, 17);
|
||||
this.labelApplication.TabIndex = 12;
|
||||
this.labelApplication.Text = "Application from";
|
||||
//
|
||||
// labelthrough
|
||||
//
|
||||
this.labelthrough.AutoSize = true;
|
||||
this.labelthrough.Location = new System.Drawing.Point(364, 165);
|
||||
this.labelthrough.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelthrough.Name = "labelthrough";
|
||||
this.labelthrough.Size = new System.Drawing.Size(57, 17);
|
||||
this.labelthrough.TabIndex = 14;
|
||||
this.labelthrough.Text = "through";
|
||||
//
|
||||
// sacsDateTimePicker1
|
||||
//
|
||||
this.sacsDateTimePicker1.Location = new System.Drawing.Point(426, 162);
|
||||
this.sacsDateTimePicker1.Name = "sacsDateTimePicker1";
|
||||
this.sacsDateTimePicker1.Size = new System.Drawing.Size(170, 22);
|
||||
this.sacsDateTimePicker1.TabIndex = 15;
|
||||
this.sacsDateTimePicker1.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// sacsDateTimePicker2
|
||||
//
|
||||
this.sacsDateTimePicker2.Location = new System.Drawing.Point(188, 162);
|
||||
this.sacsDateTimePicker2.Name = "sacsDateTimePicker2";
|
||||
this.sacsDateTimePicker2.Size = new System.Drawing.Size(170, 22);
|
||||
this.sacsDateTimePicker2.TabIndex = 13;
|
||||
this.sacsDateTimePicker2.Value = new System.DateTime(2019, 6, 13, 0, 0, 0, 0);
|
||||
//
|
||||
// labelFacility
|
||||
//
|
||||
this.labelFacility.AutoSize = true;
|
||||
this.labelFacility.Location = new System.Drawing.Point(130, 51);
|
||||
this.labelFacility.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelFacility.Name = "labelFacility";
|
||||
this.labelFacility.Size = new System.Drawing.Size(51, 17);
|
||||
this.labelFacility.TabIndex = 2;
|
||||
this.labelFacility.Text = "Facility";
|
||||
//
|
||||
// textBoxFacility
|
||||
//
|
||||
this.textBoxFacility.Location = new System.Drawing.Point(188, 48);
|
||||
this.textBoxFacility.Name = "textBoxFacility";
|
||||
this.textBoxFacility.ReadOnly = true;
|
||||
this.textBoxFacility.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxFacility.TabIndex = 3;
|
||||
//
|
||||
// labelDepartment
|
||||
//
|
||||
this.labelDepartment.AutoSize = true;
|
||||
this.labelDepartment.Location = new System.Drawing.Point(99, 23);
|
||||
this.labelDepartment.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDepartment.Name = "labelDepartment";
|
||||
this.labelDepartment.Size = new System.Drawing.Size(82, 17);
|
||||
this.labelDepartment.TabIndex = 0;
|
||||
this.labelDepartment.Text = "Department";
|
||||
//
|
||||
// textBoxDepartment
|
||||
//
|
||||
this.textBoxDepartment.Location = new System.Drawing.Point(188, 20);
|
||||
this.textBoxDepartment.Name = "textBoxDepartment";
|
||||
this.textBoxDepartment.ReadOnly = true;
|
||||
this.textBoxDepartment.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxDepartment.TabIndex = 1;
|
||||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonOk.Location = new System.Drawing.Point(411, 512);
|
||||
this.buttonOk.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOk.TabIndex = 2;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage1
|
||||
//
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 25);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(600, 236);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "tabPage1";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabPage2
|
||||
//
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 25);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new System.Drawing.Size(750, 236);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "tabPage2";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabControl
|
||||
//
|
||||
this.tabControl.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.tabControl.Controls.Add(this.tabPage1);
|
||||
this.tabControl.Controls.Add(this.tabPage2);
|
||||
this.tabControl.Location = new System.Drawing.Point(11, 240);
|
||||
this.tabControl.Name = "tabControl";
|
||||
this.tabControl.SelectedIndex = 0;
|
||||
this.tabControl.Size = new System.Drawing.Size(608, 265);
|
||||
this.tabControl.TabIndex = 1;
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(519, 512);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 3;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBoxProperties
|
||||
//
|
||||
this.groupBoxProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxProperties.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxGroup);
|
||||
this.groupBoxProperties.Controls.Add(this.labelGroup);
|
||||
this.groupBoxProperties.Controls.Add(this.labelType);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxType);
|
||||
this.groupBoxProperties.Controls.Add(this.labelName);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDesc);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxName);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDesc);
|
||||
this.groupBoxProperties.Controls.Add(this.labelApplication);
|
||||
this.groupBoxProperties.Controls.Add(this.labelthrough);
|
||||
this.groupBoxProperties.Controls.Add(this.sacsDateTimePicker1);
|
||||
this.groupBoxProperties.Controls.Add(this.sacsDateTimePicker2);
|
||||
this.groupBoxProperties.Controls.Add(this.labelFacility);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxFacility);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDepartment);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDepartment);
|
||||
this.groupBoxProperties.Location = new System.Drawing.Point(12, 12);
|
||||
this.groupBoxProperties.Name = "groupBoxProperties";
|
||||
this.groupBoxProperties.Size = new System.Drawing.Size(608, 222);
|
||||
this.groupBoxProperties.TabIndex = 0;
|
||||
this.groupBoxProperties.TabStop = false;
|
||||
this.groupBoxProperties.Text = "Properties";
|
||||
//
|
||||
// comboBoxGroup
|
||||
//
|
||||
this.comboBoxGroup.FormattingEnabled = true;
|
||||
this.comboBoxGroup.Location = new System.Drawing.Point(440, 76);
|
||||
this.comboBoxGroup.Name = "comboBoxGroup";
|
||||
this.comboBoxGroup.Size = new System.Drawing.Size(156, 24);
|
||||
this.comboBoxGroup.TabIndex = 7;
|
||||
//
|
||||
// labelGroup
|
||||
//
|
||||
this.labelGroup.AutoSize = true;
|
||||
this.labelGroup.Location = new System.Drawing.Point(385, 79);
|
||||
this.labelGroup.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelGroup.Name = "labelGroup";
|
||||
this.labelGroup.Size = new System.Drawing.Size(48, 17);
|
||||
this.labelGroup.TabIndex = 6;
|
||||
this.labelGroup.Text = "Group";
|
||||
//
|
||||
// labelType
|
||||
//
|
||||
this.labelType.AutoSize = true;
|
||||
this.labelType.Location = new System.Drawing.Point(141, 79);
|
||||
this.labelType.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelType.Name = "labelType";
|
||||
this.labelType.Size = new System.Drawing.Size(40, 17);
|
||||
this.labelType.TabIndex = 4;
|
||||
this.labelType.Text = "Type";
|
||||
//
|
||||
// comboBoxType
|
||||
//
|
||||
this.comboBoxType.FormattingEnabled = true;
|
||||
this.comboBoxType.Location = new System.Drawing.Point(188, 76);
|
||||
this.comboBoxType.Name = "comboBoxType";
|
||||
this.comboBoxType.Size = new System.Drawing.Size(156, 24);
|
||||
this.comboBoxType.TabIndex = 5;
|
||||
//
|
||||
// labelName
|
||||
//
|
||||
this.labelName.AutoSize = true;
|
||||
this.labelName.Location = new System.Drawing.Point(100, 109);
|
||||
this.labelName.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelName.Name = "labelName";
|
||||
this.labelName.Size = new System.Drawing.Size(81, 17);
|
||||
this.labelName.TabIndex = 8;
|
||||
this.labelName.Text = "Short name";
|
||||
//
|
||||
// labelDesc
|
||||
//
|
||||
this.labelDesc.AutoSize = true;
|
||||
this.labelDesc.Location = new System.Drawing.Point(102, 137);
|
||||
this.labelDesc.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDesc.Name = "labelDesc";
|
||||
this.labelDesc.Size = new System.Drawing.Size(79, 17);
|
||||
this.labelDesc.TabIndex = 10;
|
||||
this.labelDesc.Text = "Description";
|
||||
//
|
||||
// textBoxName
|
||||
//
|
||||
this.textBoxName.Location = new System.Drawing.Point(188, 106);
|
||||
this.textBoxName.Name = "textBoxName";
|
||||
this.textBoxName.Size = new System.Drawing.Size(204, 22);
|
||||
this.textBoxName.TabIndex = 9;
|
||||
//
|
||||
// textBoxDesc
|
||||
//
|
||||
this.textBoxDesc.Location = new System.Drawing.Point(188, 134);
|
||||
this.textBoxDesc.Name = "textBoxDesc";
|
||||
this.textBoxDesc.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxDesc.TabIndex = 11;
|
||||
//
|
||||
// SpmForm_FacilityTemplate_Ward
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(632, 553);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.Controls.Add(this.tabControl);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.Controls.Add(this.groupBoxProperties);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(650, 600);
|
||||
this.Name = "SpmForm_FacilityTemplate_Ward";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "Update Ward Resource";
|
||||
this.tabControl.ResumeLayout(false);
|
||||
this.groupBoxProperties.ResumeLayout(false);
|
||||
this.groupBoxProperties.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label labelApplication;
|
||||
private System.Windows.Forms.Label labelthrough;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker sacsDateTimePicker1;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker sacsDateTimePicker2;
|
||||
private System.Windows.Forms.Label labelFacility;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxFacility;
|
||||
private System.Windows.Forms.Label labelDepartment;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDepartment;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonOk;
|
||||
private System.Windows.Forms.TabPage tabPage1;
|
||||
private System.Windows.Forms.TabPage tabPage2;
|
||||
private System.Windows.Forms.TabControl tabControl;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonCancel;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxProperties;
|
||||
private System.Windows.Forms.Label labelName;
|
||||
private System.Windows.Forms.Label labelDesc;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxName;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDesc;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxGroup;
|
||||
private System.Windows.Forms.Label labelGroup;
|
||||
private System.Windows.Forms.Label labelType;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_FacilityTemplate_Ward : SpmForm_FacilityTemplate
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_FacilityTemplate.Config
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_FacilityTemplate_Ward() : this(new Config()) { }
|
||||
public SpmForm_FacilityTemplate_Ward(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
[Browsable(false)]
|
||||
protected override String DefaultMessageTitle { get { return "FacilityTemplate_Ward"; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S h o w D i a l o g
|
||||
//-------------------------------------------------------------------
|
||||
public new DialogResult ShowDialog()
|
||||
{
|
||||
return base.ShowDialog();
|
||||
}
|
||||
// Validate configuration to ensure that form can be opened correctly.
|
||||
private bool ValidateConfiguration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
// Complete dialog initialisation.
|
||||
PositionControls();
|
||||
AcceptChanges();
|
||||
SetControlActivity();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
// Initial focus.
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o p u l a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
/* PopulateToControls.
|
||||
private void PopulateToControls(SpmFacilityTemplate_Ward.Data data)
|
||||
{
|
||||
// Populate item properties to controls.
|
||||
|
||||
AcceptChanges();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate properties.
|
||||
public bool IsDataValid(SpmFacilityTemplate_Ward.Data data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateFromControls.
|
||||
private void PopulateFromControls(SpmFacilityTemplate_Ward.Data data)
|
||||
{
|
||||
}*/
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// UpdatedAssociated Data.
|
||||
public bool UpdateAssociatedData()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C l o s e F o r m
|
||||
//-------------------------------------------------------------------
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
protected override void SetControlActivity()
|
||||
{
|
||||
SetControlsReadOnly();
|
||||
}
|
||||
public bool IsFieldReadOnly(SpmDbDfn.ColumnIdx col)
|
||||
{
|
||||
if (ReadOnly) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
protected override void SetControlsReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o s i t i o n C o n t r o l s
|
||||
//-------------------------------------------------------------------
|
||||
protected override void PositionControls()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,155 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_Operation
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.buttonOk = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.buttonCancel = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.groupBoxProperties = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.labelDesc = new System.Windows.Forms.Label();
|
||||
this.textBoxDesc = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelCode = new System.Windows.Forms.Label();
|
||||
this.textBoxInstitution = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.textBoxCode = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelInstitution = new System.Windows.Forms.Label();
|
||||
this.groupBoxProperties.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonOk.Location = new System.Drawing.Point(411, 132);
|
||||
this.buttonOk.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOk.TabIndex = 2;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(519, 132);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 3;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBoxProperties
|
||||
//
|
||||
this.groupBoxProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxProperties.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxProperties.Controls.Add(this.labelDesc);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDesc);
|
||||
this.groupBoxProperties.Controls.Add(this.labelCode);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxInstitution);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxCode);
|
||||
this.groupBoxProperties.Controls.Add(this.labelInstitution);
|
||||
this.groupBoxProperties.Location = new System.Drawing.Point(12, 12);
|
||||
this.groupBoxProperties.Name = "groupBoxProperties";
|
||||
this.groupBoxProperties.Size = new System.Drawing.Size(608, 109);
|
||||
this.groupBoxProperties.TabIndex = 0;
|
||||
this.groupBoxProperties.TabStop = false;
|
||||
this.groupBoxProperties.Text = "Properties";
|
||||
//
|
||||
// labelDesc
|
||||
//
|
||||
this.labelDesc.AutoSize = true;
|
||||
this.labelDesc.Location = new System.Drawing.Point(102, 79);
|
||||
this.labelDesc.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDesc.Name = "labelDesc";
|
||||
this.labelDesc.Size = new System.Drawing.Size(79, 17);
|
||||
this.labelDesc.TabIndex = 4;
|
||||
this.labelDesc.Text = "Description";
|
||||
//
|
||||
// textBoxDesc
|
||||
//
|
||||
this.textBoxDesc.Location = new System.Drawing.Point(188, 76);
|
||||
this.textBoxDesc.Name = "textBoxDesc";
|
||||
this.textBoxDesc.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxDesc.TabIndex = 5;
|
||||
//
|
||||
// labelCode
|
||||
//
|
||||
this.labelCode.AutoSize = true;
|
||||
this.labelCode.Location = new System.Drawing.Point(140, 51);
|
||||
this.labelCode.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelCode.Name = "labelCode";
|
||||
this.labelCode.Size = new System.Drawing.Size(41, 17);
|
||||
this.labelCode.TabIndex = 2;
|
||||
this.labelCode.Text = "Code";
|
||||
//
|
||||
// textBoxInstitution
|
||||
//
|
||||
this.textBoxInstitution.Location = new System.Drawing.Point(188, 20);
|
||||
this.textBoxInstitution.Name = "textBoxInstitution";
|
||||
this.textBoxInstitution.ReadOnly = true;
|
||||
this.textBoxInstitution.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxInstitution.TabIndex = 1;
|
||||
//
|
||||
// textBoxCode
|
||||
//
|
||||
this.textBoxCode.Location = new System.Drawing.Point(188, 48);
|
||||
this.textBoxCode.Name = "textBoxCode";
|
||||
this.textBoxCode.Size = new System.Drawing.Size(102, 22);
|
||||
this.textBoxCode.TabIndex = 3;
|
||||
//
|
||||
// labelInstitution
|
||||
//
|
||||
this.labelInstitution.AutoSize = true;
|
||||
this.labelInstitution.Location = new System.Drawing.Point(113, 25);
|
||||
this.labelInstitution.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelInstitution.Name = "labelInstitution";
|
||||
this.labelInstitution.Size = new System.Drawing.Size(68, 17);
|
||||
this.labelInstitution.TabIndex = 0;
|
||||
this.labelInstitution.Text = "Institution";
|
||||
//
|
||||
// SpmForm_Operation
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(632, 173);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.Controls.Add(this.groupBoxProperties);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(650, 220);
|
||||
this.Name = "SpmForm_Operation";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "Update Operation";
|
||||
this.groupBoxProperties.ResumeLayout(false);
|
||||
this.groupBoxProperties.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonOk;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonCancel;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxProperties;
|
||||
private System.Windows.Forms.Label labelCode;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxInstitution;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxCode;
|
||||
private System.Windows.Forms.Label labelInstitution;
|
||||
private System.Windows.Forms.Label labelDesc;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDesc;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_Operation : SpmForm
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_Item.Config
|
||||
{
|
||||
public SpmOperation OperationToUpdate { internal get; set; } = null;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_Operation() : this(new Config()) { }
|
||||
public SpmForm_Operation(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
[Browsable(false)]
|
||||
protected override String DefaultMessageTitle { get { return "Operation"; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S h o w D i a l o g
|
||||
//-------------------------------------------------------------------
|
||||
public new DialogResult ShowDialog()
|
||||
{
|
||||
return base.ShowDialog();
|
||||
}
|
||||
// Validate configuration to ensure that form can be opened correctly.
|
||||
private bool ValidateConfiguration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
// Complete dialog initialisation.
|
||||
PositionControls();
|
||||
AcceptChanges();
|
||||
SetControlActivity();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
// Initial focus.
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o p u l a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateToControls.
|
||||
private void PopulateToControls(SpmOperation.Data data)
|
||||
{
|
||||
// Populate item properties to controls.
|
||||
|
||||
AcceptChanges();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate properties.
|
||||
public bool IsDataValid(SpmOperation.Data data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateFromControls.
|
||||
private void PopulateFromControls(SpmOperation.Data data)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// UpdatedAssociated Data.
|
||||
public bool UpdateAssociatedData()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C l o s e F o r m
|
||||
//-------------------------------------------------------------------
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
protected override void SetControlActivity()
|
||||
{
|
||||
SetControlsReadOnly();
|
||||
}
|
||||
public bool IsFieldReadOnly(SpmDbDfn.ColumnIdx col)
|
||||
{
|
||||
if (ReadOnly) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
protected override void SetControlsReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o s i t i o n C o n t r o l s
|
||||
//-------------------------------------------------------------------
|
||||
protected override void PositionControls()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,262 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_Patient
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.buttonOk = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.buttonCancel = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.groupBoxProperties = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.labelAgeOn = new System.Windows.Forms.Label();
|
||||
this.labelBirthOn = new System.Windows.Forms.Label();
|
||||
this.dateTimePickerAgeOn = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.dateTimePickerBirthOn = new Sarand.Win.Forms.Controls.SacsDateTimePicker();
|
||||
this.labelAge = new System.Windows.Forms.Label();
|
||||
this.textBoxAge = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.buttonDemographic = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.labelPatientNo = new System.Windows.Forms.Label();
|
||||
this.textBoxPatientNo = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelForename = new System.Windows.Forms.Label();
|
||||
this.textBoxForename = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelSurname = new System.Windows.Forms.Label();
|
||||
this.textBoxSurname = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.textBoxInstitution = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelInstitution = new System.Windows.Forms.Label();
|
||||
this.groupBoxProperties.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonOk.Location = new System.Drawing.Point(411, 212);
|
||||
this.buttonOk.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOk.TabIndex = 2;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(519, 212);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 3;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBoxProperties
|
||||
//
|
||||
this.groupBoxProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxProperties.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxProperties.Controls.Add(this.labelAgeOn);
|
||||
this.groupBoxProperties.Controls.Add(this.labelBirthOn);
|
||||
this.groupBoxProperties.Controls.Add(this.dateTimePickerAgeOn);
|
||||
this.groupBoxProperties.Controls.Add(this.dateTimePickerBirthOn);
|
||||
this.groupBoxProperties.Controls.Add(this.labelAge);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxAge);
|
||||
this.groupBoxProperties.Controls.Add(this.buttonDemographic);
|
||||
this.groupBoxProperties.Controls.Add(this.labelPatientNo);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxPatientNo);
|
||||
this.groupBoxProperties.Controls.Add(this.labelForename);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxForename);
|
||||
this.groupBoxProperties.Controls.Add(this.labelSurname);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxSurname);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxInstitution);
|
||||
this.groupBoxProperties.Controls.Add(this.labelInstitution);
|
||||
this.groupBoxProperties.Location = new System.Drawing.Point(12, 12);
|
||||
this.groupBoxProperties.Name = "groupBoxProperties";
|
||||
this.groupBoxProperties.Size = new System.Drawing.Size(608, 190);
|
||||
this.groupBoxProperties.TabIndex = 0;
|
||||
this.groupBoxProperties.TabStop = false;
|
||||
this.groupBoxProperties.Text = "Properties";
|
||||
//
|
||||
// labelAgeOn
|
||||
//
|
||||
this.labelAgeOn.AutoSize = true;
|
||||
this.labelAgeOn.Location = new System.Drawing.Point(334, 137);
|
||||
this.labelAgeOn.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelAgeOn.Name = "labelAgeOn";
|
||||
this.labelAgeOn.Size = new System.Drawing.Size(85, 17);
|
||||
this.labelAgeOn.TabIndex = 11;
|
||||
this.labelAgeOn.Text = "recorded on";
|
||||
//
|
||||
// labelBirthOn
|
||||
//
|
||||
this.labelBirthOn.AutoSize = true;
|
||||
this.labelBirthOn.Location = new System.Drawing.Point(95, 167);
|
||||
this.labelBirthOn.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelBirthOn.Name = "labelBirthOn";
|
||||
this.labelBirthOn.Size = new System.Drawing.Size(86, 17);
|
||||
this.labelBirthOn.TabIndex = 13;
|
||||
this.labelBirthOn.Text = "Date of birth";
|
||||
//
|
||||
// dateTimePickerAgeOn
|
||||
//
|
||||
this.dateTimePickerAgeOn.Location = new System.Drawing.Point(426, 134);
|
||||
this.dateTimePickerAgeOn.Name = "dateTimePickerAgeOn";
|
||||
this.dateTimePickerAgeOn.Size = new System.Drawing.Size(170, 22);
|
||||
this.dateTimePickerAgeOn.TabIndex = 12;
|
||||
this.dateTimePickerAgeOn.Value = new System.DateTime(2019, 6, 12, 16, 1, 45, 852);
|
||||
//
|
||||
// dateTimePickerBirthOn
|
||||
//
|
||||
this.dateTimePickerBirthOn.Location = new System.Drawing.Point(188, 162);
|
||||
this.dateTimePickerBirthOn.Name = "dateTimePickerBirthOn";
|
||||
this.dateTimePickerBirthOn.Size = new System.Drawing.Size(170, 22);
|
||||
this.dateTimePickerBirthOn.TabIndex = 14;
|
||||
this.dateTimePickerBirthOn.Value = new System.DateTime(2019, 6, 12, 16, 1, 45, 852);
|
||||
//
|
||||
// labelAge
|
||||
//
|
||||
this.labelAge.AutoSize = true;
|
||||
this.labelAge.Location = new System.Drawing.Point(148, 137);
|
||||
this.labelAge.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelAge.Name = "labelAge";
|
||||
this.labelAge.Size = new System.Drawing.Size(33, 17);
|
||||
this.labelAge.TabIndex = 9;
|
||||
this.labelAge.Text = "Age";
|
||||
//
|
||||
// textBoxAge
|
||||
//
|
||||
this.textBoxAge.Location = new System.Drawing.Point(188, 134);
|
||||
this.textBoxAge.Name = "textBoxAge";
|
||||
this.textBoxAge.Size = new System.Drawing.Size(102, 22);
|
||||
this.textBoxAge.TabIndex = 10;
|
||||
//
|
||||
// buttonDemographic
|
||||
//
|
||||
this.buttonDemographic.Location = new System.Drawing.Point(494, 47);
|
||||
this.buttonDemographic.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonDemographic.Name = "buttonDemographic";
|
||||
this.buttonDemographic.Size = new System.Drawing.Size(102, 28);
|
||||
this.buttonDemographic.TabIndex = 4;
|
||||
this.buttonDemographic.Text = "Demographics";
|
||||
this.buttonDemographic.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// labelPatientNo
|
||||
//
|
||||
this.labelPatientNo.AutoSize = true;
|
||||
this.labelPatientNo.Location = new System.Drawing.Point(77, 53);
|
||||
this.labelPatientNo.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelPatientNo.Name = "labelPatientNo";
|
||||
this.labelPatientNo.Size = new System.Drawing.Size(104, 17);
|
||||
this.labelPatientNo.TabIndex = 2;
|
||||
this.labelPatientNo.Text = "Patient number";
|
||||
//
|
||||
// textBoxPatientNo
|
||||
//
|
||||
this.textBoxPatientNo.Location = new System.Drawing.Point(188, 50);
|
||||
this.textBoxPatientNo.Name = "textBoxPatientNo";
|
||||
this.textBoxPatientNo.Size = new System.Drawing.Size(102, 22);
|
||||
this.textBoxPatientNo.TabIndex = 3;
|
||||
//
|
||||
// labelForename
|
||||
//
|
||||
this.labelForename.AutoSize = true;
|
||||
this.labelForename.Location = new System.Drawing.Point(109, 109);
|
||||
this.labelForename.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelForename.Name = "labelForename";
|
||||
this.labelForename.Size = new System.Drawing.Size(72, 17);
|
||||
this.labelForename.TabIndex = 7;
|
||||
this.labelForename.Text = "Forename";
|
||||
//
|
||||
// textBoxForename
|
||||
//
|
||||
this.textBoxForename.Location = new System.Drawing.Point(188, 106);
|
||||
this.textBoxForename.Name = "textBoxForename";
|
||||
this.textBoxForename.Size = new System.Drawing.Size(204, 22);
|
||||
this.textBoxForename.TabIndex = 8;
|
||||
//
|
||||
// labelSurname
|
||||
//
|
||||
this.labelSurname.AutoSize = true;
|
||||
this.labelSurname.Location = new System.Drawing.Point(116, 81);
|
||||
this.labelSurname.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelSurname.Name = "labelSurname";
|
||||
this.labelSurname.Size = new System.Drawing.Size(65, 17);
|
||||
this.labelSurname.TabIndex = 5;
|
||||
this.labelSurname.Text = "Surname";
|
||||
//
|
||||
// textBoxSurname
|
||||
//
|
||||
this.textBoxSurname.Location = new System.Drawing.Point(188, 78);
|
||||
this.textBoxSurname.Name = "textBoxSurname";
|
||||
this.textBoxSurname.Size = new System.Drawing.Size(204, 22);
|
||||
this.textBoxSurname.TabIndex = 6;
|
||||
//
|
||||
// textBoxInstitution
|
||||
//
|
||||
this.textBoxInstitution.Location = new System.Drawing.Point(188, 22);
|
||||
this.textBoxInstitution.Name = "textBoxInstitution";
|
||||
this.textBoxInstitution.ReadOnly = true;
|
||||
this.textBoxInstitution.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxInstitution.TabIndex = 1;
|
||||
//
|
||||
// labelInstitution
|
||||
//
|
||||
this.labelInstitution.AutoSize = true;
|
||||
this.labelInstitution.Location = new System.Drawing.Point(113, 25);
|
||||
this.labelInstitution.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelInstitution.Name = "labelInstitution";
|
||||
this.labelInstitution.Size = new System.Drawing.Size(68, 17);
|
||||
this.labelInstitution.TabIndex = 0;
|
||||
this.labelInstitution.Text = "Institution";
|
||||
//
|
||||
// SpmForm_Patient
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(632, 253);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.Controls.Add(this.groupBoxProperties);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(650, 300);
|
||||
this.Name = "SpmForm_Patient";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "Update Patient";
|
||||
this.groupBoxProperties.ResumeLayout(false);
|
||||
this.groupBoxProperties.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonOk;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonCancel;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxProperties;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxInstitution;
|
||||
private System.Windows.Forms.Label labelInstitution;
|
||||
private System.Windows.Forms.Label labelForename;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxForename;
|
||||
private System.Windows.Forms.Label labelSurname;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxSurname;
|
||||
private System.Windows.Forms.Label labelAge;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxAge;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonDemographic;
|
||||
private System.Windows.Forms.Label labelPatientNo;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxPatientNo;
|
||||
private System.Windows.Forms.Label labelAgeOn;
|
||||
private System.Windows.Forms.Label labelBirthOn;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker dateTimePickerAgeOn;
|
||||
private Sarand.Win.Forms.Controls.SacsDateTimePicker dateTimePickerBirthOn;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_Patient : SpmForm
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_Item.Config
|
||||
{
|
||||
public SpmPatient PatientToUpdate { internal get; set; } = null;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_Patient() : this(new Config()) { }
|
||||
public SpmForm_Patient(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
[Browsable(false)]
|
||||
protected override String DefaultMessageTitle { get { return "Patient"; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S h o w D i a l o g
|
||||
//-------------------------------------------------------------------
|
||||
public new DialogResult ShowDialog()
|
||||
{
|
||||
return base.ShowDialog();
|
||||
}
|
||||
// Validate configuration to ensure that form can be opened correctly.
|
||||
private bool ValidateConfiguration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
// Complete dialog initialisation.
|
||||
PositionControls();
|
||||
AcceptChanges();
|
||||
SetControlActivity();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
// Initial focus.
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o p u l a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateToControls.
|
||||
private void PopulateToControls(SpmPatient.Data data)
|
||||
{
|
||||
// Populate item properties to controls.
|
||||
|
||||
AcceptChanges();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate properties.
|
||||
public bool IsDataValid(SpmPatient.Data data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateFromControls.
|
||||
private void PopulateFromControls(SpmPatient.Data data)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// UpdatedAssociated Data.
|
||||
public bool UpdateAssociatedData()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C l o s e F o r m
|
||||
//-------------------------------------------------------------------
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
protected override void SetControlActivity()
|
||||
{
|
||||
SetControlsReadOnly();
|
||||
}
|
||||
public bool IsFieldReadOnly(SpmDbDfn.ColumnIdx col)
|
||||
{
|
||||
if (ReadOnly) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
protected override void SetControlsReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o s i t i o n C o n t r o l s
|
||||
//-------------------------------------------------------------------
|
||||
protected override void PositionControls()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -0,0 +1,356 @@
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
partial class SpmForm_Procedure
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
#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()
|
||||
{
|
||||
this.buttonOk = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.buttonCancel = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.groupBoxProperties = new Sarand.Win.Forms.Controls.SacsGroupBox();
|
||||
this.labelMinutes = new System.Windows.Forms.Label();
|
||||
this.labelNotes = new System.Windows.Forms.Label();
|
||||
this.textBoxNotes = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelUnitsTraining = new System.Windows.Forms.Label();
|
||||
this.textBoxUnitsTraining = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelUnits = new System.Windows.Forms.Label();
|
||||
this.textBoxUnits = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelDurationTraining = new System.Windows.Forms.Label();
|
||||
this.textBoxDurationTraining = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelDuration = new System.Windows.Forms.Label();
|
||||
this.textBoxDuration = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelComplexity = new System.Windows.Forms.Label();
|
||||
this.comboBoxComplexity = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelSpecality = new System.Windows.Forms.Label();
|
||||
this.comboBoxSpecality = new Sarand.Win.Forms.Controls.SacsComboBox();
|
||||
this.labelDesc = new System.Windows.Forms.Label();
|
||||
this.textBoxDesc = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.textBoxOperationDesc = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.buttonSearch = new Sarand.Win.Forms.Controls.SacsButton();
|
||||
this.labelOperation = new System.Windows.Forms.Label();
|
||||
this.textBoxOperationCode = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.labelDepartment = new System.Windows.Forms.Label();
|
||||
this.textBoxDepartment = new Sarand.Win.Forms.Controls.SacsTextBox();
|
||||
this.groupBoxProperties.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// buttonOk
|
||||
//
|
||||
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonOk.Location = new System.Drawing.Point(411, 412);
|
||||
this.buttonOk.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonOk.Name = "buttonOk";
|
||||
this.buttonOk.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonOk.TabIndex = 1;
|
||||
this.buttonOk.Text = "OK";
|
||||
this.buttonOk.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// buttonCancel
|
||||
//
|
||||
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.buttonCancel.Location = new System.Drawing.Point(519, 412);
|
||||
this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonCancel.Name = "buttonCancel";
|
||||
this.buttonCancel.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonCancel.TabIndex = 2;
|
||||
this.buttonCancel.Text = "Cancel";
|
||||
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBoxProperties
|
||||
//
|
||||
this.groupBoxProperties.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.groupBoxProperties.BorderColour = System.Drawing.Color.Gray;
|
||||
this.groupBoxProperties.Controls.Add(this.labelMinutes);
|
||||
this.groupBoxProperties.Controls.Add(this.labelNotes);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxNotes);
|
||||
this.groupBoxProperties.Controls.Add(this.labelUnitsTraining);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxUnitsTraining);
|
||||
this.groupBoxProperties.Controls.Add(this.labelUnits);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxUnits);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDurationTraining);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDurationTraining);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDuration);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDuration);
|
||||
this.groupBoxProperties.Controls.Add(this.labelComplexity);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxComplexity);
|
||||
this.groupBoxProperties.Controls.Add(this.labelSpecality);
|
||||
this.groupBoxProperties.Controls.Add(this.comboBoxSpecality);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDesc);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDesc);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxOperationDesc);
|
||||
this.groupBoxProperties.Controls.Add(this.buttonSearch);
|
||||
this.groupBoxProperties.Controls.Add(this.labelOperation);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxOperationCode);
|
||||
this.groupBoxProperties.Controls.Add(this.labelDepartment);
|
||||
this.groupBoxProperties.Controls.Add(this.textBoxDepartment);
|
||||
this.groupBoxProperties.Location = new System.Drawing.Point(12, 12);
|
||||
this.groupBoxProperties.Name = "groupBoxProperties";
|
||||
this.groupBoxProperties.Size = new System.Drawing.Size(608, 393);
|
||||
this.groupBoxProperties.TabIndex = 0;
|
||||
this.groupBoxProperties.TabStop = false;
|
||||
this.groupBoxProperties.Text = "Properties";
|
||||
//
|
||||
// labelMinutes
|
||||
//
|
||||
this.labelMinutes.AutoSize = true;
|
||||
this.labelMinutes.Location = new System.Drawing.Point(454, 197);
|
||||
this.labelMinutes.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelMinutes.Name = "labelMinutes";
|
||||
this.labelMinutes.Size = new System.Drawing.Size(37, 17);
|
||||
this.labelMinutes.TabIndex = 16;
|
||||
this.labelMinutes.Text = "mins";
|
||||
//
|
||||
// labelNotes
|
||||
//
|
||||
this.labelNotes.AutoSize = true;
|
||||
this.labelNotes.Location = new System.Drawing.Point(136, 253);
|
||||
this.labelNotes.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelNotes.Name = "labelNotes";
|
||||
this.labelNotes.Size = new System.Drawing.Size(45, 17);
|
||||
this.labelNotes.TabIndex = 21;
|
||||
this.labelNotes.Text = "Notes";
|
||||
//
|
||||
// textBoxNotes
|
||||
//
|
||||
this.textBoxNotes.Location = new System.Drawing.Point(188, 250);
|
||||
this.textBoxNotes.Multiline = true;
|
||||
this.textBoxNotes.Name = "textBoxNotes";
|
||||
this.textBoxNotes.Size = new System.Drawing.Size(408, 137);
|
||||
this.textBoxNotes.TabIndex = 22;
|
||||
//
|
||||
// labelUnitsTraining
|
||||
//
|
||||
this.labelUnitsTraining.AutoSize = true;
|
||||
this.labelUnitsTraining.Location = new System.Drawing.Point(284, 225);
|
||||
this.labelUnitsTraining.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelUnitsTraining.Name = "labelUnitsTraining";
|
||||
this.labelUnitsTraining.Size = new System.Drawing.Size(94, 17);
|
||||
this.labelUnitsTraining.TabIndex = 19;
|
||||
this.labelUnitsTraining.Text = "Training units";
|
||||
//
|
||||
// textBoxUnitsTraining
|
||||
//
|
||||
this.textBoxUnitsTraining.Location = new System.Drawing.Point(396, 222);
|
||||
this.textBoxUnitsTraining.Name = "textBoxUnitsTraining";
|
||||
this.textBoxUnitsTraining.Size = new System.Drawing.Size(51, 22);
|
||||
this.textBoxUnitsTraining.TabIndex = 20;
|
||||
//
|
||||
// labelUnits
|
||||
//
|
||||
this.labelUnits.AutoSize = true;
|
||||
this.labelUnits.Location = new System.Drawing.Point(141, 225);
|
||||
this.labelUnits.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelUnits.Name = "labelUnits";
|
||||
this.labelUnits.Size = new System.Drawing.Size(40, 17);
|
||||
this.labelUnits.TabIndex = 17;
|
||||
this.labelUnits.Text = "Units";
|
||||
//
|
||||
// textBoxUnits
|
||||
//
|
||||
this.textBoxUnits.Location = new System.Drawing.Point(188, 222);
|
||||
this.textBoxUnits.Name = "textBoxUnits";
|
||||
this.textBoxUnits.Size = new System.Drawing.Size(51, 22);
|
||||
this.textBoxUnits.TabIndex = 18;
|
||||
//
|
||||
// labelDurationTraining
|
||||
//
|
||||
this.labelDurationTraining.AutoSize = true;
|
||||
this.labelDurationTraining.Location = new System.Drawing.Point(273, 197);
|
||||
this.labelDurationTraining.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDurationTraining.Name = "labelDurationTraining";
|
||||
this.labelDurationTraining.Size = new System.Drawing.Size(116, 17);
|
||||
this.labelDurationTraining.TabIndex = 14;
|
||||
this.labelDurationTraining.Text = "Training duration";
|
||||
//
|
||||
// textBoxDurationTraining
|
||||
//
|
||||
this.textBoxDurationTraining.Location = new System.Drawing.Point(396, 194);
|
||||
this.textBoxDurationTraining.Name = "textBoxDurationTraining";
|
||||
this.textBoxDurationTraining.Size = new System.Drawing.Size(51, 22);
|
||||
this.textBoxDurationTraining.TabIndex = 15;
|
||||
//
|
||||
// labelDuration
|
||||
//
|
||||
this.labelDuration.AutoSize = true;
|
||||
this.labelDuration.Location = new System.Drawing.Point(119, 197);
|
||||
this.labelDuration.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDuration.Name = "labelDuration";
|
||||
this.labelDuration.Size = new System.Drawing.Size(62, 17);
|
||||
this.labelDuration.TabIndex = 12;
|
||||
this.labelDuration.Text = "Duration";
|
||||
//
|
||||
// textBoxDuration
|
||||
//
|
||||
this.textBoxDuration.Location = new System.Drawing.Point(188, 194);
|
||||
this.textBoxDuration.Name = "textBoxDuration";
|
||||
this.textBoxDuration.Size = new System.Drawing.Size(51, 22);
|
||||
this.textBoxDuration.TabIndex = 13;
|
||||
//
|
||||
// labelComplexity
|
||||
//
|
||||
this.labelComplexity.AutoSize = true;
|
||||
this.labelComplexity.Location = new System.Drawing.Point(106, 167);
|
||||
this.labelComplexity.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelComplexity.Name = "labelComplexity";
|
||||
this.labelComplexity.Size = new System.Drawing.Size(75, 17);
|
||||
this.labelComplexity.TabIndex = 10;
|
||||
this.labelComplexity.Text = "Complexity";
|
||||
//
|
||||
// comboBoxComplexity
|
||||
//
|
||||
this.comboBoxComplexity.FormattingEnabled = true;
|
||||
this.comboBoxComplexity.Location = new System.Drawing.Point(188, 164);
|
||||
this.comboBoxComplexity.Name = "comboBoxComplexity";
|
||||
this.comboBoxComplexity.Size = new System.Drawing.Size(204, 24);
|
||||
this.comboBoxComplexity.TabIndex = 11;
|
||||
//
|
||||
// labelSpecality
|
||||
//
|
||||
this.labelSpecality.AutoSize = true;
|
||||
this.labelSpecality.Location = new System.Drawing.Point(116, 137);
|
||||
this.labelSpecality.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelSpecality.Name = "labelSpecality";
|
||||
this.labelSpecality.Size = new System.Drawing.Size(65, 17);
|
||||
this.labelSpecality.TabIndex = 8;
|
||||
this.labelSpecality.Text = "Specality";
|
||||
//
|
||||
// comboBoxSpecality
|
||||
//
|
||||
this.comboBoxSpecality.FormattingEnabled = true;
|
||||
this.comboBoxSpecality.Location = new System.Drawing.Point(188, 134);
|
||||
this.comboBoxSpecality.Name = "comboBoxSpecality";
|
||||
this.comboBoxSpecality.Size = new System.Drawing.Size(204, 24);
|
||||
this.comboBoxSpecality.TabIndex = 9;
|
||||
//
|
||||
// labelDesc
|
||||
//
|
||||
this.labelDesc.AutoSize = true;
|
||||
this.labelDesc.Location = new System.Drawing.Point(102, 109);
|
||||
this.labelDesc.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDesc.Name = "labelDesc";
|
||||
this.labelDesc.Size = new System.Drawing.Size(79, 17);
|
||||
this.labelDesc.TabIndex = 6;
|
||||
this.labelDesc.Text = "Description";
|
||||
//
|
||||
// textBoxDesc
|
||||
//
|
||||
this.textBoxDesc.Location = new System.Drawing.Point(188, 106);
|
||||
this.textBoxDesc.Name = "textBoxDesc";
|
||||
this.textBoxDesc.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxDesc.TabIndex = 7;
|
||||
//
|
||||
// textBoxOperationDesc
|
||||
//
|
||||
this.textBoxOperationDesc.Location = new System.Drawing.Point(188, 78);
|
||||
this.textBoxOperationDesc.Name = "textBoxOperationDesc";
|
||||
this.textBoxOperationDesc.ReadOnly = true;
|
||||
this.textBoxOperationDesc.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxOperationDesc.TabIndex = 5;
|
||||
//
|
||||
// buttonSearch
|
||||
//
|
||||
this.buttonSearch.Location = new System.Drawing.Point(297, 47);
|
||||
this.buttonSearch.Margin = new System.Windows.Forms.Padding(4);
|
||||
this.buttonSearch.Name = "buttonSearch";
|
||||
this.buttonSearch.Size = new System.Drawing.Size(100, 28);
|
||||
this.buttonSearch.TabIndex = 4;
|
||||
this.buttonSearch.Text = "Search";
|
||||
this.buttonSearch.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// labelOperation
|
||||
//
|
||||
this.labelOperation.AutoSize = true;
|
||||
this.labelOperation.Location = new System.Drawing.Point(110, 55);
|
||||
this.labelOperation.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelOperation.Name = "labelOperation";
|
||||
this.labelOperation.Size = new System.Drawing.Size(71, 17);
|
||||
this.labelOperation.TabIndex = 2;
|
||||
this.labelOperation.Text = "Operation";
|
||||
//
|
||||
// textBoxOperationCode
|
||||
//
|
||||
this.textBoxOperationCode.Location = new System.Drawing.Point(188, 50);
|
||||
this.textBoxOperationCode.Name = "textBoxOperationCode";
|
||||
this.textBoxOperationCode.Size = new System.Drawing.Size(102, 22);
|
||||
this.textBoxOperationCode.TabIndex = 3;
|
||||
//
|
||||
// labelDepartment
|
||||
//
|
||||
this.labelDepartment.AutoSize = true;
|
||||
this.labelDepartment.Location = new System.Drawing.Point(99, 25);
|
||||
this.labelDepartment.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
||||
this.labelDepartment.Name = "labelDepartment";
|
||||
this.labelDepartment.Size = new System.Drawing.Size(82, 17);
|
||||
this.labelDepartment.TabIndex = 0;
|
||||
this.labelDepartment.Text = "Department";
|
||||
//
|
||||
// textBoxDepartment
|
||||
//
|
||||
this.textBoxDepartment.Location = new System.Drawing.Point(188, 22);
|
||||
this.textBoxDepartment.Name = "textBoxDepartment";
|
||||
this.textBoxDepartment.ReadOnly = true;
|
||||
this.textBoxDepartment.Size = new System.Drawing.Size(408, 22);
|
||||
this.textBoxDepartment.TabIndex = 1;
|
||||
//
|
||||
// SpmForm_Procedure
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(632, 453);
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.buttonOk);
|
||||
this.Controls.Add(this.buttonCancel);
|
||||
this.Controls.Add(this.groupBoxProperties);
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(650, 500);
|
||||
this.Name = "SpmForm_Procedure";
|
||||
this.ShowIcon = false;
|
||||
this.Text = "Update Procedure";
|
||||
this.groupBoxProperties.ResumeLayout(false);
|
||||
this.groupBoxProperties.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonOk;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonCancel;
|
||||
private Sarand.Win.Forms.Controls.SacsGroupBox groupBoxProperties;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxOperationDesc;
|
||||
private Sarand.Win.Forms.Controls.SacsButton buttonSearch;
|
||||
private System.Windows.Forms.Label labelOperation;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxOperationCode;
|
||||
private System.Windows.Forms.Label labelDepartment;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDepartment;
|
||||
private System.Windows.Forms.Label labelDesc;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDesc;
|
||||
private System.Windows.Forms.Label labelNotes;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxNotes;
|
||||
private System.Windows.Forms.Label labelUnitsTraining;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxUnitsTraining;
|
||||
private System.Windows.Forms.Label labelUnits;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxUnits;
|
||||
private System.Windows.Forms.Label labelDurationTraining;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDurationTraining;
|
||||
private System.Windows.Forms.Label labelDuration;
|
||||
private Sarand.Win.Forms.Controls.SacsTextBox textBoxDuration;
|
||||
private System.Windows.Forms.Label labelComplexity;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxComplexity;
|
||||
private System.Windows.Forms.Label labelSpecality;
|
||||
private Sarand.Win.Forms.Controls.SacsComboBox comboBoxSpecality;
|
||||
private System.Windows.Forms.Label labelMinutes;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,162 @@
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.PatientMgr.Win.Forms.Base;
|
||||
using Sarand.Win.Forms.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Forms.Maint
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SpmForm_Procedure : SpmForm
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Configuration.
|
||||
public new class Config : SpmForm_Item.Config
|
||||
{
|
||||
public SpmProcedure ProcedureToUpdate { internal get; set; } = null;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private Config config = new Config();
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmForm_Procedure() : this(new Config()) { }
|
||||
public SpmForm_Procedure(Config config) : base(config)
|
||||
{
|
||||
this.config = config;
|
||||
if (SpmGlobals.System != null)
|
||||
{
|
||||
}
|
||||
InitializeComponent();
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
[Browsable(false)]
|
||||
protected override String DefaultMessageTitle { get { return "Procedure"; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S h o w D i a l o g
|
||||
//-------------------------------------------------------------------
|
||||
public new DialogResult ShowDialog()
|
||||
{
|
||||
return base.ShowDialog();
|
||||
}
|
||||
// Validate configuration to ensure that form can be opened correctly.
|
||||
private bool ValidateConfiguration()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// I n i t i a l i s a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
if (this.IsDesignerHosted()) return;
|
||||
|
||||
// Complete dialog initialisation.
|
||||
PositionControls();
|
||||
AcceptChanges();
|
||||
SetControlActivity();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
protected override void OnShown(EventArgs e)
|
||||
{
|
||||
base.OnShown(e);
|
||||
// Initial focus.
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o p u l a t i o n
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateToControls.
|
||||
private void PopulateToControls(SpmProcedure.Data data)
|
||||
{
|
||||
// Populate item properties to controls.
|
||||
|
||||
AcceptChanges();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate properties.
|
||||
public bool IsDataValid(SpmProcedure.Data data)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// PopulateFromControls.
|
||||
private void PopulateFromControls(SpmProcedure.Data data)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// UpdatedAssociated Data.
|
||||
public bool UpdateAssociatedData()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C l o s e F o r m
|
||||
//-------------------------------------------------------------------
|
||||
private void buttonOk_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
private void buttonCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// C o n t r o l A c t i v i t y
|
||||
//-------------------------------------------------------------------
|
||||
protected override void SetControlActivity()
|
||||
{
|
||||
SetControlsReadOnly();
|
||||
}
|
||||
public bool IsFieldReadOnly(SpmDbDfn.ColumnIdx col)
|
||||
{
|
||||
if (ReadOnly) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
protected override void SetControlsReadOnly()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// P o s i t i o n C o n t r o l s
|
||||
//-------------------------------------------------------------------
|
||||
protected override void PositionControls()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// F o r m E v e n t s
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Reference in New Issue
Block a user