From c3e02df981f2a22d6c8fa190eb1d2ee61124a876 Mon Sep 17 00:00:00 2001 From: leomo Date: Mon, 26 Sep 2022 23:08:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E6=97=A0=E7=94=A8=E7=AA=97?= =?UTF-8?q?=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AIMS/AIMS.csproj | 69 - .../frmAnaesthesiaMethod.Designer.cs | 45 - AIMS/DataDictionary/frmAnaesthesiaMethod.cs | 19 - AIMS/DataDictionary/frmAnaesthesiaMethod.resx | 120 -- AIMS/OperationAfter/frmOperationManage.cs | 13 +- .../frmAnasRecoverBillNew.Designer.cs | 33 +- .../AnasRecoverBill/frmAnasRecoverBillNew.cs | 52 +- AIMS/OperationFront/GlossyCustomItem.cs | 672 ------- AIMS/OperationFront/NoteCustomItem.cs | 473 ----- .../frmApplyConfigSet.Designer.cs | 198 -- AIMS/OperationFront/frmApplyConfigSet.cs | 72 - AIMS/OperationFront/frmApplyConfigSet.resx | 120 -- .../frmOperationApplyDetail.Designer.cs | 3 +- .../OperationFront/frmOperationApplyDetail.cs | 7 +- .../frmOperationPlan.Designer.cs | 1545 --------------- AIMS/OperationFront/frmOperationPlan.cs | 250 --- AIMS/OperationFront/frmOperationPlan.resx | 417 ---- .../frmOperationPlanDetail.Designer.cs | 492 ----- AIMS/OperationFront/frmOperationPlanDetail.cs | 463 ----- .../frmOperationPlanDetail.resx | 159 -- AIMS/OperationFront/frmPlanOrder.Designer.cs | 321 ---- AIMS/OperationFront/frmPlanOrder.cs | 90 - AIMS/OperationFront/frmPlanOrder.resx | 156 -- AIMS/OperationFront/frmSchedulePlan.cs | 1712 ----------------- .../frmSchedulePlan.designer.cs | 164 -- AIMS/OperationFront/frmSchedulePlan.resx | 223 --- AIMS/OperationFront/frmSchedulePlan2.cs | 1712 ----------------- .../frmSchedulePlan2.designer.cs | 1275 ------------ AIMS/OperationFront/frmSchedulePlan2.resx | 354 ---- .../frmOperationPlanReport.Designer.cs | 24 - AIMS/ReportManager/frmOperationPlanReport.cs | 19 +- 31 files changed, 17 insertions(+), 11255 deletions(-) delete mode 100644 AIMS/DataDictionary/frmAnaesthesiaMethod.Designer.cs delete mode 100644 AIMS/DataDictionary/frmAnaesthesiaMethod.cs delete mode 100644 AIMS/DataDictionary/frmAnaesthesiaMethod.resx delete mode 100644 AIMS/OperationFront/GlossyCustomItem.cs delete mode 100644 AIMS/OperationFront/NoteCustomItem.cs delete mode 100644 AIMS/OperationFront/frmApplyConfigSet.Designer.cs delete mode 100644 AIMS/OperationFront/frmApplyConfigSet.cs delete mode 100644 AIMS/OperationFront/frmApplyConfigSet.resx delete mode 100644 AIMS/OperationFront/frmOperationPlan.Designer.cs delete mode 100644 AIMS/OperationFront/frmOperationPlan.cs delete mode 100644 AIMS/OperationFront/frmOperationPlan.resx delete mode 100644 AIMS/OperationFront/frmOperationPlanDetail.Designer.cs delete mode 100644 AIMS/OperationFront/frmOperationPlanDetail.cs delete mode 100644 AIMS/OperationFront/frmOperationPlanDetail.resx delete mode 100644 AIMS/OperationFront/frmPlanOrder.Designer.cs delete mode 100644 AIMS/OperationFront/frmPlanOrder.cs delete mode 100644 AIMS/OperationFront/frmPlanOrder.resx delete mode 100644 AIMS/OperationFront/frmSchedulePlan.cs delete mode 100644 AIMS/OperationFront/frmSchedulePlan.designer.cs delete mode 100644 AIMS/OperationFront/frmSchedulePlan.resx delete mode 100644 AIMS/OperationFront/frmSchedulePlan2.cs delete mode 100644 AIMS/OperationFront/frmSchedulePlan2.designer.cs delete mode 100644 AIMS/OperationFront/frmSchedulePlan2.resx diff --git a/AIMS/AIMS.csproj b/AIMS/AIMS.csproj index cb8ab37..1a0de67 100644 --- a/AIMS/AIMS.csproj +++ b/AIMS/AIMS.csproj @@ -104,12 +104,6 @@ - - UserControl - - - frmAnaesthesiaMethod.cs - Form @@ -426,18 +420,6 @@ Component - - Form - - - frmSchedulePlan2.cs - - - Form - - - frmSchedulePlan.cs - Form @@ -462,12 +444,6 @@ frmSelectiveOperationsPrint.cs - - Component - - - Component - @@ -604,12 +580,6 @@ frmSelectPatientNew.cs - - Form - - - frmApplyConfigSet.cs - Form @@ -634,27 +604,9 @@ frmOperationFrontVisit.cs - - Form - - - frmOperationPlan.cs - - - Form - - - frmOperationPlanDetail.cs - Form - - Form - - - frmPlanOrder.cs - Form @@ -969,9 +921,6 @@ True True - - frmAnaesthesiaMethod.cs - frmBasicDictionary.cs @@ -1130,12 +1079,6 @@ PrescriptionDocument.cs - - frmSchedulePlan2.cs - - - frmSchedulePlan.cs - frmPrintingArrangemen.cs @@ -1209,9 +1152,6 @@ frmSelectPatientNew.cs - - frmApplyConfigSet.cs - frmExeOperationPlan.cs @@ -1224,18 +1164,9 @@ frmOperationFrontVisit.cs - - frmOperationPlan.cs - - - frmOperationPlanDetail.cs - frmOperationSchedulePlan.cs - - frmPlanOrder.cs - frmPlanPatientInfo.cs diff --git a/AIMS/DataDictionary/frmAnaesthesiaMethod.Designer.cs b/AIMS/DataDictionary/frmAnaesthesiaMethod.Designer.cs deleted file mode 100644 index 8c94a59..0000000 --- a/AIMS/DataDictionary/frmAnaesthesiaMethod.Designer.cs +++ /dev/null @@ -1,45 +0,0 @@ -namespace DataDictionary.UI -{ - partial class frmAnaesthesiaMethod - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.SuspendLayout(); - // - // frmAnaesthesiaMethod - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Name = "frmAnaesthesiaMethod"; - this.Size = new System.Drawing.Size(812, 446); - this.ResumeLayout(false); - - } - - #endregion - } -} diff --git a/AIMS/DataDictionary/frmAnaesthesiaMethod.cs b/AIMS/DataDictionary/frmAnaesthesiaMethod.cs deleted file mode 100644 index 767ef66..0000000 --- a/AIMS/DataDictionary/frmAnaesthesiaMethod.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Drawing; -using System.Data; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace DataDictionary.UI -{ - public partial class frmAnaesthesiaMethod : UserControl - { - public frmAnaesthesiaMethod() - { - InitializeComponent(); - } - } -} diff --git a/AIMS/DataDictionary/frmAnaesthesiaMethod.resx b/AIMS/DataDictionary/frmAnaesthesiaMethod.resx deleted file mode 100644 index 1af7de1..0000000 --- a/AIMS/DataDictionary/frmAnaesthesiaMethod.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/AIMS/OperationAfter/frmOperationManage.cs b/AIMS/OperationAfter/frmOperationManage.cs index 0c5e424..8b7b486 100644 --- a/AIMS/OperationAfter/frmOperationManage.cs +++ b/AIMS/OperationAfter/frmOperationManage.cs @@ -151,18 +151,7 @@ namespace AIMS.OperationAfter.UI void frmOperationApplyDetail_FormClosed(object sender, FormClosedEventArgs e) { btnFind_Click(null, null); - } - - private void tsbModifyPlan_Click(object sender, EventArgs e) - { - if (dgv.Rows.Count > 0) - { - OperationFront.UI.frmOperationPlanDetail frmOperationPlanDetail = new OperationFront.UI.frmOperationPlanDetail(); - frmOperationPlanDetail.CheckBoxApplyIdList.Add(int.Parse(dgv.CurrentRow.Cells["ApplyId"].Value.ToString())); - frmOperationPlanDetail.State = AIMSExtension.EditState.EDIT; - frmOperationPlanDetail.ShowDialog(); - } - } + } private void tsbPrint_Click(object sender, EventArgs e) { diff --git a/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.Designer.cs b/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.Designer.cs index 83c152a..f75e1a8 100644 --- a/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.Designer.cs +++ b/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.Designer.cs @@ -38,7 +38,6 @@ this.btnCancelIn = new System.Windows.Forms.Button(); this.btnCancelOperation = new System.Windows.Forms.Button(); this.btnTemplate = new System.Windows.Forms.Button(); - this.btnBloodGasAnalysis = new System.Windows.Forms.Button(); this.btnOutputLiquids = new System.Windows.Forms.Button(); this.btnAddEvents = new System.Windows.Forms.Button(); this.btnDrug = new System.Windows.Forms.Button(); @@ -153,7 +152,6 @@ this.panel14.Controls.Add(this.btnCancelIn); this.panel14.Controls.Add(this.btnCancelOperation); this.panel14.Controls.Add(this.btnTemplate); - this.panel14.Controls.Add(this.btnBloodGasAnalysis); this.panel14.Controls.Add(this.btnOutputLiquids); this.panel14.Controls.Add(this.btnAddEvents); this.panel14.Controls.Add(this.btnDrug); @@ -177,7 +175,7 @@ this.button8.ForeColor = System.Drawing.Color.DimGray; this.button8.Image = global::AIMS.Properties.Resources.系统设置; this.button8.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.button8.Location = new System.Drawing.Point(0, 500); + this.button8.Location = new System.Drawing.Point(0, 450); this.button8.Name = "button8"; this.button8.Size = new System.Drawing.Size(160, 50); this.button8.TabIndex = 15; @@ -197,7 +195,7 @@ this.button7.ForeColor = System.Drawing.Color.DimGray; this.button7.Image = global::AIMS.Properties.Resources.文书编辑; this.button7.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.button7.Location = new System.Drawing.Point(0, 450); + this.button7.Location = new System.Drawing.Point(0, 400); this.button7.Name = "button7"; this.button7.Size = new System.Drawing.Size(160, 50); this.button7.TabIndex = 14; @@ -217,7 +215,7 @@ this.btnCancelIn.ForeColor = System.Drawing.Color.DimGray; this.btnCancelIn.Image = global::AIMS.Properties.Resources.显示切换; this.btnCancelIn.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.btnCancelIn.Location = new System.Drawing.Point(0, 400); + this.btnCancelIn.Location = new System.Drawing.Point(0, 350); this.btnCancelIn.Name = "btnCancelIn"; this.btnCancelIn.Size = new System.Drawing.Size(160, 50); this.btnCancelIn.TabIndex = 12; @@ -237,7 +235,7 @@ this.btnCancelOperation.ForeColor = System.Drawing.Color.DimGray; this.btnCancelOperation.Image = global::AIMS.Properties.Resources.取消手术; this.btnCancelOperation.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.btnCancelOperation.Location = new System.Drawing.Point(0, 350); + this.btnCancelOperation.Location = new System.Drawing.Point(0, 300); this.btnCancelOperation.Name = "btnCancelOperation"; this.btnCancelOperation.Size = new System.Drawing.Size(160, 50); this.btnCancelOperation.TabIndex = 11; @@ -257,7 +255,7 @@ this.btnTemplate.ForeColor = System.Drawing.Color.DimGray; this.btnTemplate.Image = global::AIMS.Properties.Resources.模板应用; this.btnTemplate.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.btnTemplate.Location = new System.Drawing.Point(0, 300); + this.btnTemplate.Location = new System.Drawing.Point(0, 250); this.btnTemplate.Name = "btnTemplate"; this.btnTemplate.Size = new System.Drawing.Size(160, 50); this.btnTemplate.TabIndex = 10; @@ -265,26 +263,6 @@ this.btnTemplate.UseVisualStyleBackColor = false; this.btnTemplate.Click += new System.EventHandler(this.btnTemplate_Click); // - // btnBloodGasAnalysis - // - this.btnBloodGasAnalysis.BackColor = System.Drawing.Color.Transparent; - this.btnBloodGasAnalysis.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; - this.btnBloodGasAnalysis.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnBloodGasAnalysis.Dock = System.Windows.Forms.DockStyle.Top; - this.btnBloodGasAnalysis.FlatAppearance.BorderSize = 0; - this.btnBloodGasAnalysis.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.btnBloodGasAnalysis.Font = new System.Drawing.Font("微软雅黑", 11F); - this.btnBloodGasAnalysis.ForeColor = System.Drawing.Color.DimGray; - this.btnBloodGasAnalysis.Image = global::AIMS.Properties.Resources.血气分析; - this.btnBloodGasAnalysis.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.btnBloodGasAnalysis.Location = new System.Drawing.Point(0, 250); - this.btnBloodGasAnalysis.Name = "btnBloodGasAnalysis"; - this.btnBloodGasAnalysis.Size = new System.Drawing.Size(160, 50); - this.btnBloodGasAnalysis.TabIndex = 8; - this.btnBloodGasAnalysis.Text = " 血气分析"; - this.btnBloodGasAnalysis.UseVisualStyleBackColor = false; - this.btnBloodGasAnalysis.Click += new System.EventHandler(this.btnBloodGasAnalysis_Click); - // // btnOutputLiquids // this.btnOutputLiquids.BackColor = System.Drawing.Color.Transparent; @@ -1386,7 +1364,6 @@ private System.Windows.Forms.Button btnOperationInfo; private System.Windows.Forms.Button btnAddEvents; private System.Windows.Forms.Button btnTemplate; - private System.Windows.Forms.Button btnBloodGasAnalysis; private System.Windows.Forms.Button btnOutputLiquids; private DrawGraph.ZedGraphControl zgcAnaesRecord; private System.Windows.Forms.Panel panel6; diff --git a/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.cs b/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.cs index d0593be..3887f2b 100644 --- a/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.cs +++ b/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBillNew.cs @@ -52,13 +52,11 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI this.picBG.BackgroundImage = global::AIMS.Properties.Resources.拔管; this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束; this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室; - #endregion - //AIMSExtension.PublicMethod.SetLocalDateTime(); + #endregion } private void frmAnasRecordBillNew_Load(object sender, EventArgs e) - { - //系统演示 收费功能 + { if (PublicMethod.OperatorNo == "admin") { btnChage.Visible = true; @@ -1667,13 +1665,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI } #endregion - #region 右侧按钮 - private void btnyldj_Click(object sender, EventArgs e) - { - //FormUseDrugsReport formUseDrugsReport = new FormUseDrugsReport(1); - //if (_record != null) formUseDrugsReport._record = _record; - //formUseDrugsReport.Show(); - } + #region 右侧按钮 private void btnzsk_Click(object sender, EventArgs e) { @@ -1692,13 +1684,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI //} //fnc.ShowDialog(); } - - private void btnxldlx_Click(object sender, EventArgs e) - { - //frmHemodynamics frm = new frmHemodynamics(); - //frm.Show(); - } - + private void btnsbwh_Click(object sender, EventArgs e) { //frmInstrumentRegistration frm = new frmInstrumentRegistration(); @@ -1708,40 +1694,14 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI private void btnsjzx_Click(object sender, EventArgs e) { MessageBox.Show("未连接到服务器 请联系管理员或稍后再试!", "系统提示"); - } - private void btnqxqd_Click(object sender, EventArgs e) - { - //if (PatientId != 0 && _record.Id != 0) - //{ - // frmGoodsBillRecord frm = new frmGoodsBillRecord(); - // frm._record = _record; - // frm.Show(); - // frm.Focus(); - // frm.BringToFront(); - //} - } + } private void btnChage_Click(object sender, EventArgs e) { //frmChargRecordPrint frmchargRecord = new frmChargRecordPrint(_record); //frmchargRecord.TemplateType = "麻醉"; //frmchargRecord.Show(); //frmchargRecord.BringToFront(); - } - private void btnBloodGasAnalysis_Click(object sender, EventArgs e) - { - //if (PatientId != 0) - //{ - // frmBloodGasAnalysisNew frmFactBloodGasAnalysis = new frmBloodGasAnalysisNew(); - // frmFactBloodGasAnalysis._record = _record; - // frmFactBloodGasAnalysis.zgcAnaesRecord = zgcAnaesRecord; - // frmFactBloodGasAnalysis.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed); - // frmFactBloodGasAnalysis.ShowDialog(); - //} - //else - //{ - // MessageBox.Show("请选择患者"); - //} - } + } #endregion } diff --git a/AIMS/OperationFront/GlossyCustomItem.cs b/AIMS/OperationFront/GlossyCustomItem.cs deleted file mode 100644 index 13e8411..0000000 --- a/AIMS/OperationFront/GlossyCustomItem.cs +++ /dev/null @@ -1,672 +0,0 @@ -using System; -using DevComponents.DotNetBar.Schedule; -using DevComponents.DotNetBar; -using System.Drawing.Drawing2D; -using System.Drawing; -using System.Windows.Forms; - -namespace ScheduleTestProject -{ - public class GlossyCustomItem : CustomCalendarItem - { - #region Constants - - private const int Radius = 20; // Corner radius - private const int ResizeArea = 5; // Resize area size - - #endregion - - #region Private class definitions - - /// - /// Local Item Color scheme - /// - private class ItemColorScheme - { - public Brush BackBrush; - public Color BackColor; - public Color BackLitColor1; - public Color BackLitColor2; - - public ItemColorScheme(Brush backBrush, Color backColor, - Color backLitColor1, Color backLitColor2) - { - this.BackBrush = backBrush; - this.BackColor = backColor; - this.BackLitColor1 = backLitColor1; - this.BackLitColor2 = backLitColor2; - } - } - - #endregion - - #region Private variables - - private CheckBoxItem _CheckBox; // CheckBox contained in our item - - // Define a couple of color schemes for our item - - private ItemColorScheme[] _MyColors = { - new ItemColorScheme(Brushes.MidnightBlue, Color.MidnightBlue, Color.DodgerBlue, Color.RoyalBlue), - new ItemColorScheme(Brushes.Maroon, Color.Maroon, Color.IndianRed, Color.Maroon)}; - - #endregion - - /// - /// Constructor - /// - public GlossyCustomItem() - { - // Lets add a simple CheckBox to our item - - _CheckBox = new CheckBoxItem(); - - _CheckBox.Text = "Color"; - _CheckBox.TextColor = Color.White; - - SubItems.Add(_CheckBox); - - // Hook our events - - HookEvents(true); - } - - #region Public properties - - #region Bounds - - /// - /// Item Bounding rectangle - /// - public override Rectangle Bounds - { - get { return (base.Bounds); } - - set - { - if (Bounds.Equals(value) == false) - { - base.Bounds = value; - - // Update our SubItem bounds - - UpdateSubBounds(); - } - } - } - - /// - /// Updates our SubItem (CheckBox) bounds - /// - private void UpdateSubBounds() - { - // Loop through each SubItem, centering - // the item inside our CustomCalendarItem - - for (int i = 0; i < SubItems.Count; i++) - CenterItem(SubItems[i]); - } - - #endregion - - #region BaseCalendarItem - - /// - /// Base CalendarItem - /// - /// This property holds the base CalendarItem from which - /// each displayed CustomItem (of this type) is based. - /// - /// In order to keep all displayed items "in-sync", it is necessary - /// to propagate data to and from the base CalendarItem. This is - /// accomplished via hooking those members you are interested in, at - /// both the item (HookEvents) and BaseCalendarItem (HookBaseEvents) - /// level. - /// - /// - public override CustomCalendarItem BaseCalendarItem - { - get { return (base.BaseCalendarItem); } - - set - { - if (base.BaseCalendarItem != value) - { - // Release the event hooks for the old Base - - if (base.BaseCalendarItem != null) - HookBaseEvents(false); - - // Set the new Base and hook the new events - - base.BaseCalendarItem = value; - - if (value != null) - HookBaseEvents(true); - } - } - } - - #endregion - - #region CheckBox - - /// - /// Gets the CheckBox item - /// - public CheckBoxItem CheckBox - { - get { return (_CheckBox); } - } - - #endregion - - #endregion - - #region HookEvents - - /// - /// Hooks or unhooks our item events - /// - /// true to hook, false to unhook - private void HookEvents(bool hook) - { - // Hook onto all events that we are interested in - // propagating through the BaseCalendarItem to other - // like duplicated items - - if (hook == true) - _CheckBox.CheckedChanged += CheckedChanged; - else - _CheckBox.CheckedChanged -= CheckedChanged; - } - - #endregion - - #region HookBaseEvents - - /// - /// Hooks or unhooks our BaseCalendarItem events - /// - /// true to hook, false to unhook - private void HookBaseEvents(bool hook) - { - GlossyCustomItem gci = BaseCalendarItem as GlossyCustomItem; - - if (gci != null) - { - // Hook onto all base events that we are interested in - // propagating back through the BaseCalendarItem to other - // like items - - if (hook == true) - gci.CheckBox.CheckedChanged += BaseCheckedChanged; - else - gci.CheckBox.CheckedChanged -= BaseCheckedChanged; - } - } - - #endregion - - #region Event processing - - /// - /// Handles CheckBox CheckChange events for non-base items - /// - /// This routine handles item CheckBox.Checked changes. This routine - /// then propagates the change to the BaseCalendarItem. All - /// associated items should have hooked onto the BaseCalendarItem so - /// that they will be notified of the change (via BaseCheckedChanged). - /// - /// - /// - /// - void CheckedChanged(object sender, CheckBoxChangeEventArgs e) - { - GlossyCustomItem myView = (GlossyCustomItem)BaseCalendarItem; - - // Propagate the change - - if (myView != null) - myView.CheckBox.Checked = _CheckBox.Checked; - } - - /// - /// Handles CheckBox CheckChange events for base items - /// - /// - /// - void BaseCheckedChanged(object sender, CheckBoxChangeEventArgs e) - { - GlossyCustomItem myView = (GlossyCustomItem)BaseCalendarItem; - - if (myView != null) - { - // Update our state and refresh our control - - _CheckBox.Checked = myView.CheckBox.Checked; - - Refresh(); - } - } - - #endregion - - #region RecalcSize - - /// - /// Recalculates the size of the item. We also make - /// sure we initiate the recalc of any SubItems we have added - /// - public override void RecalcSize() - { - base.RecalcSize(); - - for (int i = 0; i < this.SubItems.Count; i++) - { - this.SubItems[i].WidthInternal = WidthInternal / 2; - this.SubItems[i].HeightInternal = HeightInternal / 2; - - this.SubItems[i].RecalcSize(); - - CenterItem(SubItems[i]); - - this.SubItems[i].Displayed = true; - } - } - - /// - /// Centers the item per our bounding rectangle - /// - /// - private void CenterItem(BaseItem item) - { - int x = (Bounds.Width - item.Bounds.Width) / 2; - int y = (Bounds.Height - item.Bounds.Height) / 2; - - item.Bounds = new Rectangle - (Bounds.X + x, Bounds.Y + y, item.Bounds.Width, item.Bounds.Height); - } - - #endregion - - #region Paint processing - - /// - /// Initiates the Painting of the item - /// - /// - public override void Paint(ItemPaintArgs e) - { - Graphics g = e.Graphics; - - // Lets have it draw as best it can - - CompositingQuality comp = g.CompositingQuality; - g.CompositingQuality = CompositingQuality.HighQuality; - - // The color scheme used is based on whether - // the CheckBox is checked or not - - int scheme = _CheckBox.Checked ? 0 : 1; - - // Draw the border and content area - - DrawBorder(e, scheme); - DrawContent(e, scheme); - - // Set our CompostingQuality back - - g.CompositingQuality = comp; - } - - #region DrawBorder - - /// - /// Draws the item border - /// - /// - /// - private void DrawBorder(ItemPaintArgs e, int scheme) - { - Graphics g = e.Graphics; - - using (GraphicsPath path = GetItemPath(g, 0)) - { - g.FillPath(_MyColors[scheme].BackBrush, path); - g.DrawPath(Pens.Black, path); - } - } - - #endregion - - #region DrawContent - - /// - /// Draws the content area of the item - /// - /// - /// - private void DrawContent(ItemPaintArgs e, int scheme) - { - Graphics g = e.Graphics; - - // Grab a path slightly inset from the border - - using (GraphicsPath gPath = GetItemPath(g, -1)) - { - // Set up a new clip region for the item - - Region rgnSave = g.Clip; - - using (Region rgn = new Region(rgnSave.GetRegionData())) - { - rgn.Intersect(gPath); - g.Clip = rgn; - - // Draw the top half of the item - - Rectangle r = Bounds; - r.Height = r.Height / 2; - - using (LinearGradientBrush lbr = new - LinearGradientBrush(r, Color.LightGray, _MyColors[scheme].BackColor, 90f)) - { - r.Height -= 1; - g.FillRectangle(lbr, r); - } - - // Draw the bottom back-lit area - - r.Y = r.Bottom; - r.Height = Bounds.Height; - - using (GraphicsPath path = new GraphicsPath()) - { - path.AddEllipse(r); - - using (PathGradientBrush pbr = new PathGradientBrush(path)) - { - pbr.CenterPoint = new - PointF(r.X + r.Width / 2, r.Y + r.Height / 2); - - // If it is selected, make it a little more lit - - pbr.CenterColor = (IsSelected ? - _MyColors[scheme].BackLitColor1 : _MyColors[scheme].BackLitColor2); - - pbr.SurroundColors = new Color[] { _MyColors[scheme].BackColor }; - - g.FillEllipse(pbr, r); - } - } - - // Now let all our added SubItems draw themselves - - for (int i = 0; i < this.SubItems.Count; i++) - { - if (SubItems[i].Displayed == true) - SubItems[i].Paint(e); - } - } - - // Restore our original clip region - - g.Clip = rgnSave; - - // Draw a contrast border around the item - - g.DrawPath(Pens.White, gPath); - } - } - - #endregion - - #region GetItemPath - - /// - /// Gets a path defining the item - /// - /// Graphics - /// - /// - private GraphicsPath GetItemPath(Graphics g, int inset) - { - GraphicsPath path = new GraphicsPath(); - - Rectangle r = Bounds; - r.Inflate(inset, inset); - - Rectangle ar = new - Rectangle(r.Right - Radius, r.Bottom - Radius, Radius, Radius); - - path.AddArc(ar, 0, 90); - - ar.X = r.X; - path.AddArc(ar, 90, 90); - - ar.Y = r.Y; - path.AddArc(ar, 180, 90); - - ar.X = r.Right - Radius; - path.AddArc(ar, 270, 90); - - path.CloseAllFigures(); - - return (path); - } - - #endregion - - #endregion - - #region Mouse support - - #region MouseMove - - /// - /// Process MouseMove events - /// - /// - public override void InternalMouseMove(MouseEventArgs objArg) - { - // Tell the system what area the mouse - // just passed over - - this.HitArea = GetHitArea(objArg); - - // And pass the event on - - base.InternalMouseMove(objArg); - } - - #region GetHitArea - - /// - /// Gets the 'HitArea' for the item - /// - /// - /// eHitArea (move, resize, etc) - private eHitArea GetHitArea(MouseEventArgs objArg) - { - // WeekDayView item - - WeekDayView wv = this.Parent as WeekDayView; - - if (wv != null) - return (GetWeekDayHitArea(objArg)); - - // MonthView item - - MonthView mv = this.Parent as MonthView; - - if (mv != null) - return (GetMonthHitArea(mv, objArg)); - - // TimeLineView item - - TimeLineView tv = this.Parent as TimeLineView; - - if (tv != null) - return (GetTimeLineHitArea(objArg)); - - // Nowhere we recognize - - return (eHitArea.None); - } - - #region GetWeekDayHitArea - - /// - /// Gets the HitArea for WeekDayView items - /// - /// - /// eHitArea - private eHitArea GetWeekDayHitArea(MouseEventArgs objArg) - { - // See if we are in the top resize area - - if (objArg.Location.Y < Bounds.Y + ResizeArea) - return (eHitArea.TopResize); - - // See if we are in the bottom resize area - - if (objArg.Location.Y > Bounds.Bottom - ResizeArea) - return (eHitArea.BottomResize); - - // By default we are in the move area - - return (eHitArea.Move); - } - - #endregion - - #region GetMonthHitArea - - /// - /// Gets the HitArea for MonthView items - /// - /// - /// - /// eHitArea - private eHitArea GetMonthHitArea(MonthView mv, MouseEventArgs objArg) - { - // Get what week this item is in, so we can - // determine whether the item extends into either - // the next or previous weeks - - MonthWeek monthWeek = mv.GetItemWeek(this); - - DateTime start = monthWeek.FirstDayOfWeek; - DateTime end = start.AddDays(7); - - // See if we are in the left resize area - - if (StartTime >= start && objArg.Location.X < Bounds.X + ResizeArea) - return (eHitArea.LeftResize); - - // See if we are in the right resize area - - if (EndTime <= end && objArg.Location.X > Bounds.Right - ResizeArea) - return (eHitArea.RightResize); - - // By default we are in the move area - - return (eHitArea.Move); - } - - #endregion - - #region GetTimeLineHitArea - - /// - /// Gets the HitArea for TimeLineView items - /// - /// - /// eHitArea - private eHitArea GetTimeLineHitArea(MouseEventArgs objArg) - { - // See if we are in the left resize area - - if (objArg.Location.X < Bounds.X + ResizeArea) - return (eHitArea.LeftResize); - - // See if we are in the right resize area - - if (objArg.Location.X > Bounds.Right - ResizeArea) - return (eHitArea.RightResize); - - // By default we are in the move area - - return (eHitArea.Move); - } - - #endregion - - #endregion - - #endregion - - #endregion - - #region Copy Object - - /// - /// Returns copy of the item. - /// - /// This routine is called to propagate the item - /// within each view (both in the same view as well as - /// across multiple views in multi-user displays) - /// - public override BaseItem Copy() - { - GlossyCustomItem objCopy = new GlossyCustomItem(); - CopyToItem(objCopy); - - return (objCopy); - } - - /// - /// Copies the CustomCalendarItem specific properties - /// to new instance of the item - /// - /// New CustomCalendarItem instance - protected override void CopyToItem(BaseItem copy) - { - GlossyCustomItem objCopy = copy as GlossyCustomItem; - - if (objCopy != null) - { - objCopy.HookEvents(false); - objCopy.SubItems.Clear(); - - base.CopyToItem(objCopy); - - objCopy._CheckBox = (CheckBoxItem)objCopy.SubItems[0]; - objCopy.HookEvents(true); - - objCopy.CheckBox.Checked = _CheckBox.Checked; - } - } - - #endregion - - #region Dispose - - /// - /// Disposes of the item - /// - protected override void Dispose(bool disposing) - { - // Unhook our call-outs - // and dispose of the item - - HookEvents(false); - HookBaseEvents(false); - - base.Dispose(disposing); - } - - #endregion - } -} diff --git a/AIMS/OperationFront/NoteCustomItem.cs b/AIMS/OperationFront/NoteCustomItem.cs deleted file mode 100644 index 20a84ec..0000000 --- a/AIMS/OperationFront/NoteCustomItem.cs +++ /dev/null @@ -1,473 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using DevComponents.DotNetBar.Schedule; -using DevComponents.DotNetBar; -using System.Drawing.Drawing2D; -using System.Drawing; -using System.Windows.Forms; -using System.ComponentModel; - -namespace ScheduleTestProject -{ - public class NoteCustomItem : CustomCalendarItem - { - #region Constants - - private const int _Radius = 10; // Corner radius - private const int _ResizeArea = 5; // Resize area size - - #endregion - - #region Private variables - - private Image _Image; // Image - - #endregion - - /// - /// Constructor - /// - public NoteCustomItem(string Note) - { - Text = Note; - - HookEvents(true); - } - - public NoteCustomItem() - : this("") - { - } - - #region Public properties - - #region BaseCalendarItem - - /// - /// Base CalendarItem - /// - /// This property holds the base CalendarItem from which - /// each displayed CustomItem (of this type) is based. - /// - /// In order to keep all displayed items "in-sync", it is necessary - /// to propagate data to and from the base CalendarItem. This is - /// accomplished via hooking those members you are interested in, at - /// both the item (HookEvents) and BaseCalendarItem (HookBaseEvents) - /// level. - /// - /// - public override CustomCalendarItem BaseCalendarItem - { - get { return (base.BaseCalendarItem); } - - set - { - if (base.BaseCalendarItem != value) - { - // Release the event hooks for the old Base - - if (base.BaseCalendarItem != null) - HookBaseEvents(false); - - // Set the new Base and hook the new events - - base.BaseCalendarItem = value; - - if (value != null) - HookBaseEvents(true); - } - } - } - - #endregion - - #region EndTime - - /// - /// Gets and sets the item EndTime - /// - public override DateTime EndTime - { - get { return base.EndTime; } - - set - { - // As an added touch, always keep our EndTime equal - // to our StartTime so the Schedule Control won't - // allocate appointment space for it - - base.EndTime = StartTime; - } - } - - #endregion - - #region Image - - /// - /// Gets and sets the item Image - /// - public Image Image - { - get { return (_Image); } - - set - { - _Image = value; - - this.Refresh(); - } - } - - #endregion - - #endregion - - #region HookEvents - - /// - /// Hooks or unhooks our events. - /// - /// In order to keep all displayed items "in-sync", it is necessary - /// to propagate data to and from the BaseCalendarItem. This is - /// accomplished via hooking those members you are interested in, at - /// both the item (HookEvents) and BaseCalendarItem (HookBaseEvents) - /// level. - /// - /// true to hook, false to unhook - private void HookEvents(bool hook) - { - // In the NoteCustomItem case, we want to make sure the Text - // is kept in sync across all created item versions - - if (hook == true) - TextChanged += new EventHandler(ItemTextChanged); - else - TextChanged -= new EventHandler(ItemTextChanged); - } - - #endregion - - #region HookBaseEvents - - /// - /// Hooks or unhooks our BaseCalendarItem events. - /// - /// In order to keep all displayed items "in-sync", it is necessary - /// to propagate data to and from the BaseCalendarItem. This is - /// accomplished via hooking those members you are interested in, at - /// both the item (HookEvents) and BaseCalendarItem (HookBaseEvents) - /// level. - /// - /// true to hook, false to unhook - private void HookBaseEvents(bool hook) - { - NoteCustomItem nci = BaseCalendarItem as NoteCustomItem; - - if (nci != null) - { - if (hook == true) - { - nci.TextChanged += - new EventHandler(BaseCalendarItem_TextChanged); - } - else - { - nci.TextChanged -= - new EventHandler(BaseCalendarItem_TextChanged); - } - } - } - - #endregion - - #region Event procesing - - /// - /// Handles TextChanged events for the specific item. - /// - /// - /// - void ItemTextChanged(object sender, EventArgs e) - { - NoteCustomItem nci = BaseCalendarItem as NoteCustomItem; - - // Propagate the event to all other potential versions - // via the BaseCalendarItem - - if (nci != null) - nci.Text = Text; - } - - /// - /// Handles TextChange events for the BaseCalendarItem - /// - /// - /// - void BaseCalendarItem_TextChanged(object sender, EventArgs e) - { - NoteCustomItem nci = BaseCalendarItem as NoteCustomItem; - - if (nci != null) - { - Text = nci.Text; - - Refresh(); - } - } - - #endregion - - #region RecalcSize - - /// - /// Calculates the Bounding size for the item - /// - public override void RecalcSize() - { - base.RecalcSize(); - - // Instead of taking the preferred size given to us - // let's tell the Calendar that we want something different - - this.WidthInternal = 300; - this.HeightInternal = 100; - } - - #endregion - - #region Paint processing - - /// - /// Initiates the Painting of the item - /// - /// - public override void Paint(ItemPaintArgs e) - { - Graphics g = e.Graphics; - - // Lets have it draw as best it can - - CompositingQuality comp = g.CompositingQuality; - g.CompositingQuality = CompositingQuality.HighQuality; - - // Draw the border and content area - - DrawBorder(g); - DrawContent(g); - - // Set our CompostingQuality back - - g.CompositingQuality = comp; - } - - #region DrawBorder - - /// - /// Draws the item border - /// - /// - private void DrawBorder(Graphics g) - { - using (GraphicsPath path = GetItemPath(g, 0)) - { - g.FillPath(IsSelected ? Brushes.Black : Brushes.White, path); - g.DrawPath(Pens.Black, path); - } - } - - #endregion - - #region DrawContent - - /// - /// Draws the content area of the item - /// - /// - /// - private void DrawContent(Graphics g) - { - // Grab a path slightly inset from the border - - using (GraphicsPath path = GetItemPath(g, -3)) - { - // Set up a new clip region for the item - - Region rgnSave = g.Clip; - - using (Region rgn = new Region(rgnSave.GetRegionData())) - { - rgn.Intersect(path); - g.Clip = rgn; - - g.FillPath(Brushes.White, path); - - RectangleF rf = Bounds; - - using (StringFormat sf = new StringFormat()) - { - sf.Alignment = StringAlignment.Center; - sf.LineAlignment = StringAlignment.Center; - - if (_Image != null) - { - g.DrawImage(_Image, - Bounds.X + (Bounds.Width - _Image.Width) / 2, Bounds.Y + 6); - - rf.Y += _Image.Height / 2; - rf.Height -= _Image.Height / 2; - } - - g.DrawString(Text, SystemFonts.DefaultFont, Brushes.Black, rf, sf); - } - } - - // Restore our original clip region - - g.Clip = rgnSave; - - if (IsSelected == true) - g.DrawPath(Pens.Black, path); - } - } - - #endregion - - #region GetItemPath - - /// - /// Gets a path defining the item - /// - /// Graphics - /// Inset amount - /// - private GraphicsPath GetItemPath(Graphics g, int inset) - { - GraphicsPath path = new GraphicsPath(); - - Rectangle r = Bounds; - r.Inflate(inset, inset); - - r.Width--; - r.Height--; - - Rectangle ar = new - Rectangle(r.Right - _Radius, r.Bottom - _Radius, _Radius, _Radius); - - path.AddArc(ar, 0, 90); - - ar.X = r.X; - path.AddArc(ar, 90, 90); - - ar.Y = r.Y; - path.AddArc(ar, 180, 90); - - ar.X = r.Right - _Radius; - path.AddArc(ar, 270, 90); - - path.CloseAllFigures(); - - return (path); - } - - #endregion - - #endregion - - #region Mouse support - - #region MouseMove - - /// - /// Process MouseMove events - /// - /// - public override void InternalMouseMove(MouseEventArgs objArg) - { - // Tell the system what area the mouse - // just passed over - - this.HitArea = GetHitArea(objArg); - - // And pass the event on - - base.InternalMouseMove(objArg); - } - - #region GetHitArea - - /// - /// Gets the 'HitArea' for the item - /// - /// - /// eHitArea (move, resize, etc) - private eHitArea GetHitArea(MouseEventArgs objArg) - { - // By default we are in the move area - - if (Locked == false) - return (eHitArea.Move); - - return (eHitArea.None); - } - - #endregion - - #endregion - - #endregion - - #region Copy Object - - /// - /// Returns copy of the item. - /// - /// This routine is called to propagate the item - /// within each view (both in the same view as well as - /// across multiple views in multi-user displays) - /// - public override BaseItem Copy() - { - NoteCustomItem objCopy = new NoteCustomItem(); - CopyToItem(objCopy); - - return (objCopy); - } - - /// - /// Copies the CustomCalendarItem specific properties - /// to new instance of the item - /// - /// New CustomCalendarItem instance - protected override void CopyToItem(BaseItem copy) - { - NoteCustomItem objCopy = copy as NoteCustomItem; - base.CopyToItem(objCopy); - - // All private data that you want to carried - // forward, needs to be propagated here - - objCopy._Image = this._Image; - } - - #endregion - - #region Dispose - - /// - /// Disposes of the item - /// - protected override void Dispose(bool disposing) - { - // Unhook our call-outs - // and dispose of the item - - HookEvents(false); - - base.Dispose(disposing); - } - - #endregion - } -} diff --git a/AIMS/OperationFront/frmApplyConfigSet.Designer.cs b/AIMS/OperationFront/frmApplyConfigSet.Designer.cs deleted file mode 100644 index 6f19183..0000000 --- a/AIMS/OperationFront/frmApplyConfigSet.Designer.cs +++ /dev/null @@ -1,198 +0,0 @@ -namespace AIMS.OperationFront.UI -{ - partial class frmApplyConfigSet - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.panel1 = new System.Windows.Forms.Panel(); - this.txtEmergencyDuration = new System.Windows.Forms.TextBox(); - this.txtElectiveDuration = new System.Windows.Forms.TextBox(); - this.txtOperationTimeLeight = new System.Windows.Forms.TextBox(); - this.btnCancel = new System.Windows.Forms.Button(); - this.btnOk = new System.Windows.Forms.Button(); - this.label5 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.label36 = new System.Windows.Forms.Label(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // panel1 - // - this.panel1.BackColor = System.Drawing.Color.AliceBlue; - this.panel1.Controls.Add(this.txtEmergencyDuration); - this.panel1.Controls.Add(this.txtElectiveDuration); - this.panel1.Controls.Add(this.txtOperationTimeLeight); - this.panel1.Controls.Add(this.btnCancel); - this.panel1.Controls.Add(this.btnOk); - this.panel1.Controls.Add(this.label5); - this.panel1.Controls.Add(this.label4); - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.label1); - this.panel1.Controls.Add(this.label36); - this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Font = new System.Drawing.Font("宋体", 10.5F); - this.panel1.Location = new System.Drawing.Point(0, 0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(343, 163); - this.panel1.TabIndex = 21; - // - // txtEmergencyDuration - // - this.txtEmergencyDuration.Location = new System.Drawing.Point(181, 78); - this.txtEmergencyDuration.Name = "txtEmergencyDuration"; - this.txtEmergencyDuration.Size = new System.Drawing.Size(67, 23); - this.txtEmergencyDuration.TabIndex = 30; - this.txtEmergencyDuration.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtEmergencyDuration_KeyPress); - // - // txtElectiveDuration - // - this.txtElectiveDuration.Location = new System.Drawing.Point(181, 49); - this.txtElectiveDuration.Name = "txtElectiveDuration"; - this.txtElectiveDuration.Size = new System.Drawing.Size(67, 23); - this.txtElectiveDuration.TabIndex = 29; - this.txtElectiveDuration.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtElectiveDuration_KeyPress); - // - // txtOperationTimeLeight - // - this.txtOperationTimeLeight.Location = new System.Drawing.Point(181, 13); - this.txtOperationTimeLeight.Name = "txtOperationTimeLeight"; - this.txtOperationTimeLeight.Size = new System.Drawing.Size(67, 23); - this.txtOperationTimeLeight.TabIndex = 28; - this.txtOperationTimeLeight.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtOperationTimeLeight_KeyPress); - // - // btnCancel - // - this.btnCancel.Location = new System.Drawing.Point(225, 115); - this.btnCancel.Name = "btnCancel"; - this.btnCancel.Size = new System.Drawing.Size(75, 23); - this.btnCancel.TabIndex = 27; - this.btnCancel.Text = "取消"; - this.btnCancel.UseVisualStyleBackColor = true; - this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); - // - // btnOk - // - this.btnOk.Location = new System.Drawing.Point(114, 115); - this.btnOk.Name = "btnOk"; - this.btnOk.Size = new System.Drawing.Size(75, 23); - this.btnOk.TabIndex = 26; - this.btnOk.Text = "确定"; - this.btnOk.UseVisualStyleBackColor = true; - this.btnOk.Click += new System.EventHandler(this.btnOk_Click); - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(254, 54); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(21, 14); - this.label5.TabIndex = 24; - this.label5.Text = "天"; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(254, 83); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(35, 14); - this.label4.TabIndex = 22; - this.label4.Text = "分钟"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(27, 87); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(147, 14); - this.label3.TabIndex = 21; - this.label3.Text = "急(特诊)手术增加时长"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(55, 58); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(119, 14); - this.label2.TabIndex = 20; - this.label2.Text = "择期手术增加时长"; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(111, 21); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(63, 14); - this.label1.TabIndex = 17; - this.label1.Text = "手术时长"; - // - // label36 - // - this.label36.AutoSize = true; - this.label36.Location = new System.Drawing.Point(254, 21); - this.label36.Name = "label36"; - this.label36.Size = new System.Drawing.Size(35, 14); - this.label36.TabIndex = 18; - this.label36.Text = "分钟"; - // - // frmApplyConfigSet - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(343, 163); - this.Controls.Add(this.panel1); - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "frmApplyConfigSet"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "手术申请时间设置"; - this.Load += new System.EventHandler(this.frmApplyConfigSet_Load); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.TextBox txtEmergencyDuration; - private System.Windows.Forms.TextBox txtElectiveDuration; - private System.Windows.Forms.TextBox txtOperationTimeLeight; - private System.Windows.Forms.Button btnCancel; - private System.Windows.Forms.Button btnOk; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label36; - } -} \ No newline at end of file diff --git a/AIMS/OperationFront/frmApplyConfigSet.cs b/AIMS/OperationFront/frmApplyConfigSet.cs deleted file mode 100644 index fe18aef..0000000 --- a/AIMS/OperationFront/frmApplyConfigSet.cs +++ /dev/null @@ -1,72 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; -using System.Configuration; -using HelperDB; - -namespace AIMS.OperationFront.UI -{ - public partial class frmApplyConfigSet : Form - { - private XmlUse xmlOpe = new XmlUse(Application.StartupPath + "\\ConfigFiles\\OpeParameterConfig.xml"); - public frmApplyConfigSet() - { - InitializeComponent(); - } - private void frmApplyConfigSet_Load(object sender, EventArgs e) - { - if (this.xmlOpe != null) - { - System.Collections.Generic.List node = this.xmlOpe.GetNode("OperationTime"); - node.Add(this.xmlOpe.GetNode("OperationDuration")[0]); - node.Add(this.xmlOpe.GetNode("ElectiveDuration")[0]); - node.Add(this.xmlOpe.GetNode("EmergencyDuration")[0]); - txtOperationTimeLeight.Text = node[0].ToString(); - txtElectiveDuration.Text = node[1].ToString(); - txtEmergencyDuration.Text = node[2].ToString(); - } - } - private void btnOk_Click(object sender, EventArgs e) - { - try - { - this.xmlOpe.SetNode("OperationDuration", this.txtOperationTimeLeight.Text); - this.xmlOpe.SetNode("ElectiveDuration", this.txtElectiveDuration.Text); - this.xmlOpe.SetNode("EmergencyDuration", this.txtEmergencyDuration.Text); - MessageBox.Show("修改成功!", "系统提示"); - base.Close(); - } - catch (System.Exception ex) - { - MessageBox.Show(ex.Message, "系统提示"); - } - } - - private void btnCancel_Click(object sender, EventArgs e) - { - Close(); - } - - private void txtOperationTimeLeight_KeyPress(object sender, KeyPressEventArgs e) - { - AIMSExtension.PublicMethod.KeyPressByIsMatch(e, txtOperationTimeLeight); - } - - private void txtElectiveDuration_KeyPress(object sender, KeyPressEventArgs e) - { - AIMSExtension.PublicMethod.KeyPressByIsMatch(e, txtElectiveDuration); - } - - private void txtEmergencyDuration_KeyPress(object sender, KeyPressEventArgs e) - { - AIMSExtension.PublicMethod.KeyPressByIsMatch(e, txtEmergencyDuration); - } - - - } -} diff --git a/AIMS/OperationFront/frmApplyConfigSet.resx b/AIMS/OperationFront/frmApplyConfigSet.resx deleted file mode 100644 index 1af7de1..0000000 --- a/AIMS/OperationFront/frmApplyConfigSet.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/AIMS/OperationFront/frmOperationApplyDetail.Designer.cs b/AIMS/OperationFront/frmOperationApplyDetail.Designer.cs index 6c15109..5417cbe 100644 --- a/AIMS/OperationFront/frmOperationApplyDetail.Designer.cs +++ b/AIMS/OperationFront/frmOperationApplyDetail.Designer.cs @@ -224,8 +224,7 @@ this.tsbSet.Size = new System.Drawing.Size(52, 46); this.tsbSet.Text = " 设置 "; this.tsbSet.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.tsbSet.Visible = false; - this.tsbSet.Click += new System.EventHandler(this.tsbSet_Click); + this.tsbSet.Visible = false; // // toolStripSeparator2 // diff --git a/AIMS/OperationFront/frmOperationApplyDetail.cs b/AIMS/OperationFront/frmOperationApplyDetail.cs index 79266ea..e27429d 100644 --- a/AIMS/OperationFront/frmOperationApplyDetail.cs +++ b/AIMS/OperationFront/frmOperationApplyDetail.cs @@ -830,12 +830,7 @@ namespace AIMS.OperationFront.UI rdbIsNotPlanReturnOperation.Checked = true; } } - - private void tsbSet_Click(object sender, EventArgs e) - { - UI.frmApplyConfigSet frmApplyConfigSet = new UI.frmApplyConfigSet(); - frmApplyConfigSet.ShowDialog(); - } + #endregion private void tsbExit_Click(object sender, EventArgs e) diff --git a/AIMS/OperationFront/frmOperationPlan.Designer.cs b/AIMS/OperationFront/frmOperationPlan.Designer.cs deleted file mode 100644 index 0031114..0000000 --- a/AIMS/OperationFront/frmOperationPlan.Designer.cs +++ /dev/null @@ -1,1545 +0,0 @@ -namespace AIMS.OperationFront.UI -{ - partial class frmOperationPlan - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.toolStrip1 = new System.Windows.Forms.ToolStrip(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); - this.tabControl1 = new System.Windows.Forms.TabControl(); - this.tabPage1 = new System.Windows.Forms.TabPage(); - this.panel5 = new System.Windows.Forms.Panel(); - this.dgv1 = new System.Windows.Forms.DataGridView(); - this.CheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.ApplyIdColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.MdrecNoColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ArchivesNoColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyDepNameColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PatientKindColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PatientNameColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.SexColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.BirthDayColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.HeightColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.WeightColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.BloodTypeColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.RHBloodTypeColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.IlldistrictColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.SickBedColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationTypeColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OrderOperationTimeColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationTimeLeightColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.StateColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.IsReturnOperationColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.IsPlanReturnOperationColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyDiagnoseInfoNameColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.DiagnoseRemarkColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperationInfoNameColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationRemarkColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationLevelNameColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperationCutTypeNameColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperationPositionNameColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.AnaesthesiaMethodNameColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ContagionColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationDoctorColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Assistant1Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Assistant2Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Assistant3Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.InternColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OtherColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyTimeColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperatorNameColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.VerifyTimeColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.VerifyOperatorNameColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PlanOperationTimeColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationRoomColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.AnesthesiaDoctorColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.InstrumentNurseColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.TourNurseColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.AnesthesiaDoctorSucceedColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.InstrumentNurseSucceedColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.TourNurseSucceedColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.RemarkColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.panel11 = new System.Windows.Forms.Panel(); - this.btnFind = new System.Windows.Forms.Button(); - this.txtMdrecNo = new System.Windows.Forms.TextBox(); - this.dtpBegInDate = new System.Windows.Forms.DateTimePicker(); - this.label2 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.cboDepartment = new System.Windows.Forms.ComboBox(); - this.label1 = new System.Windows.Forms.Label(); - this.dtpEndDate = new System.Windows.Forms.DateTimePicker(); - this.tabPage2 = new System.Windows.Forms.TabPage(); - this.panel7 = new System.Windows.Forms.Panel(); - this.dgv2 = new System.Windows.Forms.DataGridView(); - this.ApplyIdColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.MdrecNoColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ArchivesNoColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyDepNameColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PatientKindColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PatientNameColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.SexColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.BirthDayColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.HeightColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.WeightColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.BloodTypeColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.RHBloodTypeColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.IlldistrictColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.SickBedColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationTypeColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OrderOperationTimeColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationTimeLeightColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.StateColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.IsReturnOperationColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.IsPlanReturnOperationColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyDiagnoseInfoNameColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.DiagnoseRemarkColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperationInfoNameColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationRemarkColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationLevelNameColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperationCutTypeNameColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperationPositionNameColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.AnaesthesiaMethodNameColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ContagionColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationDoctorColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Assistant1Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Assistant2Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Assistant3Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.InternColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OtherColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyTimeColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperatorNameColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.VerifyTimeColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.VerifyOperatorNameColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PlanOperationTimeColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationRoomColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.AnesthesiaDoctorColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.InstrumentNurseColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.TourNurseColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.AnesthesiaDoctorSucceedColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.InstrumentNurseSucceedColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.TourNurseSucceedColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.RemarkColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.panel6 = new System.Windows.Forms.Panel(); - this.btnFind2 = new System.Windows.Forms.Button(); - this.txtMdrecNo2 = new System.Windows.Forms.TextBox(); - this.dtpBegInDate2 = new System.Windows.Forms.DateTimePicker(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.cboDepartment2 = new System.Windows.Forms.ComboBox(); - this.label8 = new System.Windows.Forms.Label(); - this.dtpEndDate2 = new System.Windows.Forms.DateTimePicker(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel3 = new System.Windows.Forms.Panel(); - this.tsbAdd = new System.Windows.Forms.ToolStripButton(); - this.tsbModify = new System.Windows.Forms.ToolStripButton(); - this.tsbExePlan = new System.Windows.Forms.ToolStripButton(); - this.tsbStopOperation = new System.Windows.Forms.ToolStripButton(); - this.tsbWaitPlanSet = new System.Windows.Forms.ToolStripButton(); - this.tsbAlreadyPlan = new System.Windows.Forms.ToolStripButton(); - this.toolStrip1.SuspendLayout(); - this.tabControl1.SuspendLayout(); - this.tabPage1.SuspendLayout(); - this.panel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgv1)).BeginInit(); - this.panel11.SuspendLayout(); - this.tabPage2.SuspendLayout(); - this.panel7.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgv2)).BeginInit(); - this.panel6.SuspendLayout(); - this.panel1.SuspendLayout(); - this.panel3.SuspendLayout(); - this.SuspendLayout(); - // - // toolStrip1 - // - this.toolStrip1.BackColor = System.Drawing.Color.AliceBlue; - this.toolStrip1.Font = new System.Drawing.Font("微软雅黑", 10.5F); - this.toolStrip1.ImageScalingSize = new System.Drawing.Size(25, 25); - this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.tsbAdd, - this.toolStripSeparator1, - this.tsbModify, - this.toolStripSeparator4, - this.tsbExePlan, - this.toolStripSeparator2, - this.tsbStopOperation, - this.toolStripSeparator6, - this.tsbWaitPlanSet, - this.toolStripSeparator3, - this.tsbAlreadyPlan}); - this.toolStrip1.Location = new System.Drawing.Point(0, 0); - this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(891, 49); - this.toolStrip1.TabIndex = 2; - this.toolStrip1.Text = "toolStrip1"; - // - // toolStripSeparator1 - // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(6, 49); - // - // toolStripSeparator4 - // - this.toolStripSeparator4.Name = "toolStripSeparator4"; - this.toolStripSeparator4.Size = new System.Drawing.Size(6, 49); - // - // toolStripSeparator2 - // - this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(6, 49); - // - // toolStripSeparator6 - // - this.toolStripSeparator6.Name = "toolStripSeparator6"; - this.toolStripSeparator6.Size = new System.Drawing.Size(6, 49); - // - // toolStripSeparator3 - // - this.toolStripSeparator3.Name = "toolStripSeparator3"; - this.toolStripSeparator3.Size = new System.Drawing.Size(6, 49); - // - // tabControl1 - // - this.tabControl1.Controls.Add(this.tabPage1); - this.tabControl1.Controls.Add(this.tabPage2); - this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.tabControl1.Font = new System.Drawing.Font("宋体", 10.5F); - this.tabControl1.Location = new System.Drawing.Point(0, 0); - this.tabControl1.Name = "tabControl1"; - this.tabControl1.SelectedIndex = 0; - this.tabControl1.Size = new System.Drawing.Size(891, 468); - this.tabControl1.TabIndex = 3; - this.tabControl1.Selected += new System.Windows.Forms.TabControlEventHandler(this.tabControl1_Selected); - // - // tabPage1 - // - this.tabPage1.BackColor = System.Drawing.Color.AliceBlue; - this.tabPage1.Controls.Add(this.panel5); - this.tabPage1.Location = new System.Drawing.Point(4, 24); - this.tabPage1.Name = "tabPage1"; - this.tabPage1.Padding = new System.Windows.Forms.Padding(3); - this.tabPage1.Size = new System.Drawing.Size(883, 440); - this.tabPage1.TabIndex = 0; - this.tabPage1.Text = " 待排程 "; - // - // panel5 - // - this.panel5.Controls.Add(this.dgv1); - this.panel5.Controls.Add(this.panel11); - this.panel5.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel5.Location = new System.Drawing.Point(3, 3); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(877, 434); - this.panel5.TabIndex = 6; - // - // dgv1 - // - this.dgv1.AllowUserToAddRows = false; - this.dgv1.BackgroundColor = System.Drawing.Color.White; - this.dgv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.CheckBoxColumn, - this.ApplyIdColumn1, - this.MdrecNoColumn1, - this.ArchivesNoColumn1, - this.ApplyDepNameColumn1, - this.PatientKindColumn1, - this.PatientNameColumn1, - this.SexColumn1, - this.BirthDayColumn1, - this.HeightColumn1, - this.WeightColumn1, - this.BloodTypeColumn1, - this.RHBloodTypeColumn1, - this.IlldistrictColumn1, - this.SickBedColumn1, - this.OperationTypeColumn1, - this.OrderOperationTimeColumn1, - this.OperationTimeLeightColumn1, - this.StateColumn1, - this.IsReturnOperationColumn1, - this.IsPlanReturnOperationColumn1, - this.ApplyDiagnoseInfoNameColumn1, - this.DiagnoseRemarkColumn1, - this.ApplyOperationInfoNameColumn1, - this.OperationRemarkColumn1, - this.OperationLevelNameColumn1, - this.ApplyOperationCutTypeNameColumn1, - this.ApplyOperationPositionNameColumn1, - this.AnaesthesiaMethodNameColumn1, - this.ContagionColumn1, - this.OperationDoctorColumn1, - this.Assistant1Column1, - this.Assistant2Column1, - this.Assistant3Column1, - this.InternColumn1, - this.OtherColumn1, - this.ApplyTimeColumn1, - this.ApplyOperatorNameColumn1, - this.VerifyTimeColumn1, - this.VerifyOperatorNameColumn1, - this.PlanOperationTimeColumn1, - this.OperationRoomColumn1, - this.AnesthesiaDoctorColumn1, - this.InstrumentNurseColumn1, - this.TourNurseColumn1, - this.AnesthesiaDoctorSucceedColumn1, - this.InstrumentNurseSucceedColumn1, - this.TourNurseSucceedColumn1, - this.RemarkColumn1}); - this.dgv1.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgv1.Location = new System.Drawing.Point(0, 39); - this.dgv1.Name = "dgv1"; - this.dgv1.RowTemplate.Height = 23; - this.dgv1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; - this.dgv1.Size = new System.Drawing.Size(877, 395); - this.dgv1.TabIndex = 6; - // - // CheckBoxColumn - // - this.CheckBoxColumn.HeaderText = "选择"; - this.CheckBoxColumn.Name = "CheckBoxColumn"; - this.CheckBoxColumn.Width = 45; - // - // ApplyIdColumn1 - // - this.ApplyIdColumn1.DataPropertyName = "ApplyId"; - this.ApplyIdColumn1.HeaderText = "ApplyId"; - this.ApplyIdColumn1.Name = "ApplyIdColumn1"; - this.ApplyIdColumn1.ReadOnly = true; - this.ApplyIdColumn1.Visible = false; - // - // MdrecNoColumn1 - // - this.MdrecNoColumn1.DataPropertyName = "MdrecNo"; - this.MdrecNoColumn1.HeaderText = "住院号"; - this.MdrecNoColumn1.Name = "MdrecNoColumn1"; - this.MdrecNoColumn1.ReadOnly = true; - this.MdrecNoColumn1.Width = 80; - // - // ArchivesNoColumn1 - // - this.ArchivesNoColumn1.DataPropertyName = "ArchivesNo"; - this.ArchivesNoColumn1.HeaderText = "病历号"; - this.ArchivesNoColumn1.Name = "ArchivesNoColumn1"; - this.ArchivesNoColumn1.ReadOnly = true; - this.ArchivesNoColumn1.Width = 80; - // - // ApplyDepNameColumn1 - // - this.ApplyDepNameColumn1.DataPropertyName = "ApplyDepName"; - this.ApplyDepNameColumn1.HeaderText = "申请科室"; - this.ApplyDepNameColumn1.Name = "ApplyDepNameColumn1"; - this.ApplyDepNameColumn1.ReadOnly = true; - this.ApplyDepNameColumn1.Width = 80; - // - // PatientKindColumn1 - // - this.PatientKindColumn1.DataPropertyName = "PatientKind"; - this.PatientKindColumn1.HeaderText = "医保类别"; - this.PatientKindColumn1.Name = "PatientKindColumn1"; - this.PatientKindColumn1.ReadOnly = true; - this.PatientKindColumn1.Width = 80; - // - // PatientNameColumn1 - // - this.PatientNameColumn1.DataPropertyName = "PatientName"; - this.PatientNameColumn1.HeaderText = "患者姓名"; - this.PatientNameColumn1.Name = "PatientNameColumn1"; - this.PatientNameColumn1.Width = 80; - // - // SexColumn1 - // - this.SexColumn1.DataPropertyName = "Sex"; - this.SexColumn1.HeaderText = "性别"; - this.SexColumn1.Name = "SexColumn1"; - this.SexColumn1.ReadOnly = true; - this.SexColumn1.Width = 60; - // - // BirthDayColumn1 - // - this.BirthDayColumn1.DataPropertyName = "BirthDay"; - this.BirthDayColumn1.HeaderText = "出生日期"; - this.BirthDayColumn1.Name = "BirthDayColumn1"; - this.BirthDayColumn1.Width = 80; - // - // HeightColumn1 - // - this.HeightColumn1.DataPropertyName = "Height"; - this.HeightColumn1.HeaderText = "身高"; - this.HeightColumn1.Name = "HeightColumn1"; - this.HeightColumn1.Width = 70; - // - // WeightColumn1 - // - this.WeightColumn1.DataPropertyName = "Weight"; - this.WeightColumn1.HeaderText = "体重"; - this.WeightColumn1.Name = "WeightColumn1"; - this.WeightColumn1.ReadOnly = true; - this.WeightColumn1.Width = 70; - // - // BloodTypeColumn1 - // - this.BloodTypeColumn1.DataPropertyName = "BloodType"; - this.BloodTypeColumn1.HeaderText = "血型"; - this.BloodTypeColumn1.Name = "BloodTypeColumn1"; - this.BloodTypeColumn1.ReadOnly = true; - this.BloodTypeColumn1.Width = 70; - // - // RHBloodTypeColumn1 - // - this.RHBloodTypeColumn1.DataPropertyName = "RHBloodType"; - this.RHBloodTypeColumn1.HeaderText = "RH血型"; - this.RHBloodTypeColumn1.Name = "RHBloodTypeColumn1"; - this.RHBloodTypeColumn1.Width = 70; - // - // IlldistrictColumn1 - // - this.IlldistrictColumn1.DataPropertyName = "Illdistrict"; - this.IlldistrictColumn1.HeaderText = "病区"; - this.IlldistrictColumn1.Name = "IlldistrictColumn1"; - this.IlldistrictColumn1.Width = 70; - // - // SickBedColumn1 - // - this.SickBedColumn1.DataPropertyName = "SickBed"; - this.SickBedColumn1.HeaderText = "床位"; - this.SickBedColumn1.Name = "SickBedColumn1"; - this.SickBedColumn1.ReadOnly = true; - this.SickBedColumn1.Width = 70; - // - // OperationTypeColumn1 - // - this.OperationTypeColumn1.DataPropertyName = "OperationType"; - this.OperationTypeColumn1.HeaderText = "手术类型"; - this.OperationTypeColumn1.Name = "OperationTypeColumn1"; - this.OperationTypeColumn1.ReadOnly = true; - this.OperationTypeColumn1.Width = 80; - // - // OrderOperationTimeColumn1 - // - this.OrderOperationTimeColumn1.DataPropertyName = "OrderOperationTime"; - this.OrderOperationTimeColumn1.HeaderText = "预约时间"; - this.OrderOperationTimeColumn1.Name = "OrderOperationTimeColumn1"; - this.OrderOperationTimeColumn1.ReadOnly = true; - this.OrderOperationTimeColumn1.Width = 80; - // - // OperationTimeLeightColumn1 - // - this.OperationTimeLeightColumn1.DataPropertyName = "OperationTimeLeight"; - this.OperationTimeLeightColumn1.HeaderText = "手术时长"; - this.OperationTimeLeightColumn1.Name = "OperationTimeLeightColumn1"; - this.OperationTimeLeightColumn1.ReadOnly = true; - this.OperationTimeLeightColumn1.Width = 80; - // - // StateColumn1 - // - this.StateColumn1.DataPropertyName = "State"; - this.StateColumn1.HeaderText = "状态"; - this.StateColumn1.Name = "StateColumn1"; - this.StateColumn1.ReadOnly = true; - // - // IsReturnOperationColumn1 - // - this.IsReturnOperationColumn1.DataPropertyName = "IsReturnOperation"; - this.IsReturnOperationColumn1.HeaderText = "是否重返"; - this.IsReturnOperationColumn1.Name = "IsReturnOperationColumn1"; - this.IsReturnOperationColumn1.ReadOnly = true; - // - // IsPlanReturnOperationColumn1 - // - this.IsPlanReturnOperationColumn1.DataPropertyName = "IsPlanReturnOperation"; - this.IsPlanReturnOperationColumn1.HeaderText = "是否计划"; - this.IsPlanReturnOperationColumn1.Name = "IsPlanReturnOperationColumn1"; - // - // ApplyDiagnoseInfoNameColumn1 - // - this.ApplyDiagnoseInfoNameColumn1.DataPropertyName = "ApplyDiagnoseInfoName"; - this.ApplyDiagnoseInfoNameColumn1.HeaderText = "术前诊断"; - this.ApplyDiagnoseInfoNameColumn1.Name = "ApplyDiagnoseInfoNameColumn1"; - this.ApplyDiagnoseInfoNameColumn1.ReadOnly = true; - // - // DiagnoseRemarkColumn1 - // - this.DiagnoseRemarkColumn1.DataPropertyName = "DiagnoseRemark"; - this.DiagnoseRemarkColumn1.HeaderText = "诊断备注"; - this.DiagnoseRemarkColumn1.Name = "DiagnoseRemarkColumn1"; - this.DiagnoseRemarkColumn1.ReadOnly = true; - // - // ApplyOperationInfoNameColumn1 - // - this.ApplyOperationInfoNameColumn1.DataPropertyName = "ApplyOperationInfoName"; - this.ApplyOperationInfoNameColumn1.HeaderText = "拟实手术"; - this.ApplyOperationInfoNameColumn1.Name = "ApplyOperationInfoNameColumn1"; - this.ApplyOperationInfoNameColumn1.ReadOnly = true; - // - // OperationRemarkColumn1 - // - this.OperationRemarkColumn1.DataPropertyName = "OperationRemark"; - this.OperationRemarkColumn1.HeaderText = "手术备注"; - this.OperationRemarkColumn1.Name = "OperationRemarkColumn1"; - this.OperationRemarkColumn1.ReadOnly = true; - // - // OperationLevelNameColumn1 - // - this.OperationLevelNameColumn1.DataPropertyName = "OperationLevelName"; - this.OperationLevelNameColumn1.HeaderText = "手术分级"; - this.OperationLevelNameColumn1.Name = "OperationLevelNameColumn1"; - this.OperationLevelNameColumn1.ReadOnly = true; - // - // ApplyOperationCutTypeNameColumn1 - // - this.ApplyOperationCutTypeNameColumn1.DataPropertyName = "ApplyOperationCutTypeName"; - this.ApplyOperationCutTypeNameColumn1.HeaderText = "切口类型"; - this.ApplyOperationCutTypeNameColumn1.Name = "ApplyOperationCutTypeNameColumn1"; - this.ApplyOperationCutTypeNameColumn1.ReadOnly = true; - // - // ApplyOperationPositionNameColumn1 - // - this.ApplyOperationPositionNameColumn1.DataPropertyName = "ApplyOperationPositionName"; - this.ApplyOperationPositionNameColumn1.HeaderText = "手术部位"; - this.ApplyOperationPositionNameColumn1.Name = "ApplyOperationPositionNameColumn1"; - // - // AnaesthesiaMethodNameColumn1 - // - this.AnaesthesiaMethodNameColumn1.DataPropertyName = "AnaesthesiaMethodName"; - this.AnaesthesiaMethodNameColumn1.HeaderText = "拟施麻醉"; - this.AnaesthesiaMethodNameColumn1.Name = "AnaesthesiaMethodNameColumn1"; - this.AnaesthesiaMethodNameColumn1.ReadOnly = true; - // - // ContagionColumn1 - // - this.ContagionColumn1.DataPropertyName = "Contagion"; - this.ContagionColumn1.HeaderText = "术前感染筛查"; - this.ContagionColumn1.Name = "ContagionColumn1"; - // - // OperationDoctorColumn1 - // - this.OperationDoctorColumn1.DataPropertyName = "OperationDoctor"; - this.OperationDoctorColumn1.HeaderText = "术者"; - this.OperationDoctorColumn1.Name = "OperationDoctorColumn1"; - this.OperationDoctorColumn1.ReadOnly = true; - // - // Assistant1Column1 - // - this.Assistant1Column1.DataPropertyName = "Assistant1"; - this.Assistant1Column1.HeaderText = "一助"; - this.Assistant1Column1.Name = "Assistant1Column1"; - // - // Assistant2Column1 - // - this.Assistant2Column1.DataPropertyName = "Assistant2"; - this.Assistant2Column1.HeaderText = "二助"; - this.Assistant2Column1.Name = "Assistant2Column1"; - this.Assistant2Column1.ReadOnly = true; - // - // Assistant3Column1 - // - this.Assistant3Column1.DataPropertyName = "Assistant3"; - this.Assistant3Column1.HeaderText = "三助"; - this.Assistant3Column1.Name = "Assistant3Column1"; - // - // InternColumn1 - // - this.InternColumn1.DataPropertyName = "Intern"; - this.InternColumn1.HeaderText = "进修实习生"; - this.InternColumn1.Name = "InternColumn1"; - // - // OtherColumn1 - // - this.OtherColumn1.DataPropertyName = "Other"; - this.OtherColumn1.HeaderText = "其他人员"; - this.OtherColumn1.Name = "OtherColumn1"; - this.OtherColumn1.ReadOnly = true; - // - // ApplyTimeColumn1 - // - this.ApplyTimeColumn1.DataPropertyName = "ApplyTime"; - this.ApplyTimeColumn1.HeaderText = "申请时间"; - this.ApplyTimeColumn1.Name = "ApplyTimeColumn1"; - // - // ApplyOperatorNameColumn1 - // - this.ApplyOperatorNameColumn1.DataPropertyName = "ApplyOperatorName"; - this.ApplyOperatorNameColumn1.HeaderText = "申请人"; - this.ApplyOperatorNameColumn1.Name = "ApplyOperatorNameColumn1"; - this.ApplyOperatorNameColumn1.ReadOnly = true; - // - // VerifyTimeColumn1 - // - this.VerifyTimeColumn1.DataPropertyName = "VerifyTime"; - this.VerifyTimeColumn1.HeaderText = "审核时间"; - this.VerifyTimeColumn1.Name = "VerifyTimeColumn1"; - this.VerifyTimeColumn1.ReadOnly = true; - // - // VerifyOperatorNameColumn1 - // - this.VerifyOperatorNameColumn1.DataPropertyName = "VerifyOperatorName"; - this.VerifyOperatorNameColumn1.HeaderText = "审核医生"; - this.VerifyOperatorNameColumn1.Name = "VerifyOperatorNameColumn1"; - this.VerifyOperatorNameColumn1.ReadOnly = true; - // - // PlanOperationTimeColumn1 - // - this.PlanOperationTimeColumn1.DataPropertyName = "PlanOperationTime"; - this.PlanOperationTimeColumn1.HeaderText = "拟定手术时间"; - this.PlanOperationTimeColumn1.Name = "PlanOperationTimeColumn1"; - this.PlanOperationTimeColumn1.ReadOnly = true; - // - // OperationRoomColumn1 - // - this.OperationRoomColumn1.DataPropertyName = "OperationRoom"; - this.OperationRoomColumn1.HeaderText = "手术间"; - this.OperationRoomColumn1.Name = "OperationRoomColumn1"; - this.OperationRoomColumn1.ReadOnly = true; - // - // AnesthesiaDoctorColumn1 - // - this.AnesthesiaDoctorColumn1.DataPropertyName = "AnesthesiaDoctor"; - this.AnesthesiaDoctorColumn1.HeaderText = "麻醉医生"; - this.AnesthesiaDoctorColumn1.Name = "AnesthesiaDoctorColumn1"; - // - // InstrumentNurseColumn1 - // - this.InstrumentNurseColumn1.DataPropertyName = "InstrumentNurse"; - this.InstrumentNurseColumn1.HeaderText = "器械护士"; - this.InstrumentNurseColumn1.Name = "InstrumentNurseColumn1"; - // - // TourNurseColumn1 - // - this.TourNurseColumn1.DataPropertyName = "TourNurse"; - this.TourNurseColumn1.HeaderText = "巡回护士"; - this.TourNurseColumn1.Name = "TourNurseColumn1"; - // - // AnesthesiaDoctorSucceedColumn1 - // - this.AnesthesiaDoctorSucceedColumn1.DataPropertyName = "AnesthesiaDoctorSucceed"; - this.AnesthesiaDoctorSucceedColumn1.HeaderText = "麻醉接台"; - this.AnesthesiaDoctorSucceedColumn1.Name = "AnesthesiaDoctorSucceedColumn1"; - this.AnesthesiaDoctorSucceedColumn1.ReadOnly = true; - // - // InstrumentNurseSucceedColumn1 - // - this.InstrumentNurseSucceedColumn1.DataPropertyName = "InstrumentNurseSucceed"; - this.InstrumentNurseSucceedColumn1.HeaderText = "器械接台"; - this.InstrumentNurseSucceedColumn1.Name = "InstrumentNurseSucceedColumn1"; - this.InstrumentNurseSucceedColumn1.ReadOnly = true; - // - // TourNurseSucceedColumn1 - // - this.TourNurseSucceedColumn1.DataPropertyName = "TourNurseSucceed"; - this.TourNurseSucceedColumn1.HeaderText = "巡回接台"; - this.TourNurseSucceedColumn1.Name = "TourNurseSucceedColumn1"; - this.TourNurseSucceedColumn1.ReadOnly = true; - // - // RemarkColumn1 - // - this.RemarkColumn1.DataPropertyName = "Remark"; - this.RemarkColumn1.HeaderText = "备注"; - this.RemarkColumn1.Name = "RemarkColumn1"; - // - // panel11 - // - this.panel11.Controls.Add(this.btnFind); - this.panel11.Controls.Add(this.txtMdrecNo); - this.panel11.Controls.Add(this.dtpBegInDate); - this.panel11.Controls.Add(this.label2); - this.panel11.Controls.Add(this.label4); - this.panel11.Controls.Add(this.label3); - this.panel11.Controls.Add(this.cboDepartment); - this.panel11.Controls.Add(this.label1); - this.panel11.Controls.Add(this.dtpEndDate); - this.panel11.Dock = System.Windows.Forms.DockStyle.Top; - this.panel11.Location = new System.Drawing.Point(0, 0); - this.panel11.Name = "panel11"; - this.panel11.Size = new System.Drawing.Size(877, 39); - this.panel11.TabIndex = 1; - // - // btnFind - // - this.btnFind.Location = new System.Drawing.Point(678, 5); - this.btnFind.Name = "btnFind"; - this.btnFind.Size = new System.Drawing.Size(66, 23); - this.btnFind.TabIndex = 25; - this.btnFind.Text = "查询"; - this.btnFind.UseVisualStyleBackColor = true; - this.btnFind.Click += new System.EventHandler(this.btnFind_Click); - // - // txtMdrecNo - // - this.txtMdrecNo.Location = new System.Drawing.Point(543, 5); - this.txtMdrecNo.Name = "txtMdrecNo"; - this.txtMdrecNo.Size = new System.Drawing.Size(100, 23); - this.txtMdrecNo.TabIndex = 24; - // - // dtpBegInDate - // - this.dtpBegInDate.CustomFormat = "yyyy-MM-dd"; - this.dtpBegInDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpBegInDate.Location = new System.Drawing.Point(258, 5); - this.dtpBegInDate.Name = "dtpBegInDate"; - this.dtpBegInDate.Size = new System.Drawing.Size(97, 23); - this.dtpBegInDate.TabIndex = 20; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(194, 12); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(63, 14); - this.label2.TabIndex = 19; - this.label2.Text = "预约时间"; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(495, 12); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(49, 14); - this.label4.TabIndex = 23; - this.label4.Text = "住院号"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(357, 12); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(21, 14); - this.label3.TabIndex = 21; - this.label3.Text = "至"; - // - // cboDepartment - // - this.cboDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cboDepartment.FormattingEnabled = true; - this.cboDepartment.Location = new System.Drawing.Point(54, 6); - this.cboDepartment.Name = "cboDepartment"; - this.cboDepartment.Size = new System.Drawing.Size(121, 22); - this.cboDepartment.TabIndex = 18; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(15, 12); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(35, 14); - this.label1.TabIndex = 17; - this.label1.Text = "科室"; - // - // dtpEndDate - // - this.dtpEndDate.CustomFormat = "yyyy-MM-dd"; - this.dtpEndDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpEndDate.Location = new System.Drawing.Point(380, 5); - this.dtpEndDate.Name = "dtpEndDate"; - this.dtpEndDate.Size = new System.Drawing.Size(97, 23); - this.dtpEndDate.TabIndex = 22; - // - // tabPage2 - // - this.tabPage2.BackColor = System.Drawing.Color.AliceBlue; - this.tabPage2.Controls.Add(this.panel7); - this.tabPage2.Controls.Add(this.panel6); - this.tabPage2.Location = new System.Drawing.Point(4, 24); - this.tabPage2.Name = "tabPage2"; - this.tabPage2.Padding = new System.Windows.Forms.Padding(3); - this.tabPage2.Size = new System.Drawing.Size(883, 440); - this.tabPage2.TabIndex = 1; - this.tabPage2.Text = " 已排程 "; - // - // panel7 - // - this.panel7.Controls.Add(this.dgv2); - this.panel7.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel7.Location = new System.Drawing.Point(3, 42); - this.panel7.Name = "panel7"; - this.panel7.Size = new System.Drawing.Size(877, 395); - this.panel7.TabIndex = 1; - // - // dgv2 - // - this.dgv2.AllowUserToAddRows = false; - this.dgv2.BackgroundColor = System.Drawing.Color.White; - this.dgv2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgv2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.ApplyIdColumn2, - this.MdrecNoColumn2, - this.ArchivesNoColumn2, - this.ApplyDepNameColumn2, - this.PatientKindColumn2, - this.PatientNameColumn2, - this.SexColumn2, - this.BirthDayColumn2, - this.HeightColumn2, - this.WeightColumn2, - this.BloodTypeColumn2, - this.RHBloodTypeColumn2, - this.IlldistrictColumn2, - this.SickBedColumn2, - this.OperationTypeColumn2, - this.OrderOperationTimeColumn2, - this.OperationTimeLeightColumn2, - this.StateColumn2, - this.IsReturnOperationColumn2, - this.IsPlanReturnOperationColumn2, - this.ApplyDiagnoseInfoNameColumn2, - this.DiagnoseRemarkColumn2, - this.ApplyOperationInfoNameColumn2, - this.OperationRemarkColumn2, - this.OperationLevelNameColumn2, - this.ApplyOperationCutTypeNameColumn2, - this.ApplyOperationPositionNameColumn2, - this.AnaesthesiaMethodNameColumn2, - this.ContagionColumn2, - this.OperationDoctorColumn2, - this.Assistant1Column2, - this.Assistant2Column2, - this.Assistant3Column2, - this.InternColumn2, - this.OtherColumn2, - this.ApplyTimeColumn2, - this.ApplyOperatorNameColumn2, - this.VerifyTimeColumn2, - this.VerifyOperatorNameColumn2, - this.PlanOperationTimeColumn2, - this.OperationRoomColumn2, - this.AnesthesiaDoctorColumn2, - this.InstrumentNurseColumn2, - this.TourNurseColumn2, - this.AnesthesiaDoctorSucceedColumn2, - this.InstrumentNurseSucceedColumn2, - this.TourNurseSucceedColumn2, - this.RemarkColumn2}); - this.dgv2.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgv2.Location = new System.Drawing.Point(0, 0); - this.dgv2.Name = "dgv2"; - this.dgv2.RowTemplate.Height = 23; - this.dgv2.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; - this.dgv2.Size = new System.Drawing.Size(877, 395); - this.dgv2.TabIndex = 5; - // - // ApplyIdColumn2 - // - this.ApplyIdColumn2.DataPropertyName = "ApplyId"; - this.ApplyIdColumn2.Frozen = true; - this.ApplyIdColumn2.HeaderText = "ApplyId"; - this.ApplyIdColumn2.Name = "ApplyIdColumn2"; - this.ApplyIdColumn2.ReadOnly = true; - this.ApplyIdColumn2.Visible = false; - // - // MdrecNoColumn2 - // - this.MdrecNoColumn2.DataPropertyName = "MdrecNo"; - this.MdrecNoColumn2.HeaderText = "住院号"; - this.MdrecNoColumn2.Name = "MdrecNoColumn2"; - this.MdrecNoColumn2.ReadOnly = true; - this.MdrecNoColumn2.Width = 80; - // - // ArchivesNoColumn2 - // - this.ArchivesNoColumn2.DataPropertyName = "ArchivesNo"; - this.ArchivesNoColumn2.HeaderText = "病历号"; - this.ArchivesNoColumn2.Name = "ArchivesNoColumn2"; - this.ArchivesNoColumn2.ReadOnly = true; - this.ArchivesNoColumn2.Width = 80; - // - // ApplyDepNameColumn2 - // - this.ApplyDepNameColumn2.DataPropertyName = "ApplyDepName"; - this.ApplyDepNameColumn2.HeaderText = "申请科室"; - this.ApplyDepNameColumn2.Name = "ApplyDepNameColumn2"; - this.ApplyDepNameColumn2.ReadOnly = true; - this.ApplyDepNameColumn2.Width = 80; - // - // PatientKindColumn2 - // - this.PatientKindColumn2.DataPropertyName = "PatientKind"; - this.PatientKindColumn2.HeaderText = "医保类别"; - this.PatientKindColumn2.Name = "PatientKindColumn2"; - this.PatientKindColumn2.ReadOnly = true; - this.PatientKindColumn2.Width = 80; - // - // PatientNameColumn2 - // - this.PatientNameColumn2.DataPropertyName = "PatientName"; - this.PatientNameColumn2.HeaderText = "患者姓名"; - this.PatientNameColumn2.Name = "PatientNameColumn2"; - this.PatientNameColumn2.ReadOnly = true; - this.PatientNameColumn2.Width = 80; - // - // SexColumn2 - // - this.SexColumn2.DataPropertyName = "Sex"; - this.SexColumn2.HeaderText = "性别"; - this.SexColumn2.Name = "SexColumn2"; - this.SexColumn2.ReadOnly = true; - this.SexColumn2.Width = 60; - // - // BirthDayColumn2 - // - this.BirthDayColumn2.DataPropertyName = "BirthDay"; - this.BirthDayColumn2.HeaderText = "出生日期"; - this.BirthDayColumn2.Name = "BirthDayColumn2"; - this.BirthDayColumn2.Width = 80; - // - // HeightColumn2 - // - this.HeightColumn2.DataPropertyName = "Height"; - this.HeightColumn2.HeaderText = "身高"; - this.HeightColumn2.Name = "HeightColumn2"; - this.HeightColumn2.Width = 70; - // - // WeightColumn2 - // - this.WeightColumn2.DataPropertyName = "Weight"; - this.WeightColumn2.HeaderText = "体重"; - this.WeightColumn2.Name = "WeightColumn2"; - this.WeightColumn2.ReadOnly = true; - this.WeightColumn2.Width = 70; - // - // BloodTypeColumn2 - // - this.BloodTypeColumn2.DataPropertyName = "BloodType"; - this.BloodTypeColumn2.HeaderText = "血型"; - this.BloodTypeColumn2.Name = "BloodTypeColumn2"; - this.BloodTypeColumn2.ReadOnly = true; - this.BloodTypeColumn2.Width = 70; - // - // RHBloodTypeColumn2 - // - this.RHBloodTypeColumn2.DataPropertyName = "RHBloodType"; - this.RHBloodTypeColumn2.HeaderText = "RH血型"; - this.RHBloodTypeColumn2.Name = "RHBloodTypeColumn2"; - this.RHBloodTypeColumn2.Width = 70; - // - // IlldistrictColumn2 - // - this.IlldistrictColumn2.DataPropertyName = "Illdistrict"; - this.IlldistrictColumn2.HeaderText = "病区"; - this.IlldistrictColumn2.Name = "IlldistrictColumn2"; - this.IlldistrictColumn2.Width = 70; - // - // SickBedColumn2 - // - this.SickBedColumn2.DataPropertyName = "SickBed"; - this.SickBedColumn2.HeaderText = "床位"; - this.SickBedColumn2.Name = "SickBedColumn2"; - this.SickBedColumn2.ReadOnly = true; - this.SickBedColumn2.Width = 70; - // - // OperationTypeColumn2 - // - this.OperationTypeColumn2.DataPropertyName = "OperationType"; - this.OperationTypeColumn2.HeaderText = "手术类型"; - this.OperationTypeColumn2.Name = "OperationTypeColumn2"; - this.OperationTypeColumn2.ReadOnly = true; - this.OperationTypeColumn2.Width = 80; - // - // OrderOperationTimeColumn2 - // - this.OrderOperationTimeColumn2.DataPropertyName = "OrderOperationTime"; - this.OrderOperationTimeColumn2.HeaderText = "预约时间"; - this.OrderOperationTimeColumn2.Name = "OrderOperationTimeColumn2"; - this.OrderOperationTimeColumn2.ReadOnly = true; - this.OrderOperationTimeColumn2.Width = 80; - // - // OperationTimeLeightColumn2 - // - this.OperationTimeLeightColumn2.DataPropertyName = "OperationTimeLeight"; - this.OperationTimeLeightColumn2.HeaderText = "手术时长"; - this.OperationTimeLeightColumn2.Name = "OperationTimeLeightColumn2"; - this.OperationTimeLeightColumn2.ReadOnly = true; - this.OperationTimeLeightColumn2.Width = 80; - // - // StateColumn2 - // - this.StateColumn2.DataPropertyName = "State"; - this.StateColumn2.HeaderText = "状态"; - this.StateColumn2.Name = "StateColumn2"; - this.StateColumn2.ReadOnly = true; - // - // IsReturnOperationColumn2 - // - this.IsReturnOperationColumn2.DataPropertyName = "IsReturnOperation"; - this.IsReturnOperationColumn2.HeaderText = "是否重返"; - this.IsReturnOperationColumn2.Name = "IsReturnOperationColumn2"; - this.IsReturnOperationColumn2.ReadOnly = true; - // - // IsPlanReturnOperationColumn2 - // - this.IsPlanReturnOperationColumn2.DataPropertyName = "IsPlanReturnOperation"; - this.IsPlanReturnOperationColumn2.HeaderText = "是否计划"; - this.IsPlanReturnOperationColumn2.Name = "IsPlanReturnOperationColumn2"; - // - // ApplyDiagnoseInfoNameColumn2 - // - this.ApplyDiagnoseInfoNameColumn2.DataPropertyName = "ApplyDiagnoseInfoName"; - this.ApplyDiagnoseInfoNameColumn2.HeaderText = "术前诊断"; - this.ApplyDiagnoseInfoNameColumn2.Name = "ApplyDiagnoseInfoNameColumn2"; - this.ApplyDiagnoseInfoNameColumn2.ReadOnly = true; - // - // DiagnoseRemarkColumn2 - // - this.DiagnoseRemarkColumn2.DataPropertyName = "DiagnoseRemark"; - this.DiagnoseRemarkColumn2.HeaderText = "诊断备注"; - this.DiagnoseRemarkColumn2.Name = "DiagnoseRemarkColumn2"; - this.DiagnoseRemarkColumn2.ReadOnly = true; - // - // ApplyOperationInfoNameColumn2 - // - this.ApplyOperationInfoNameColumn2.DataPropertyName = "ApplyOperationInfoName"; - this.ApplyOperationInfoNameColumn2.HeaderText = "拟实手术"; - this.ApplyOperationInfoNameColumn2.Name = "ApplyOperationInfoNameColumn2"; - this.ApplyOperationInfoNameColumn2.ReadOnly = true; - // - // OperationRemarkColumn2 - // - this.OperationRemarkColumn2.DataPropertyName = "OperationRemark"; - this.OperationRemarkColumn2.HeaderText = "手术备注"; - this.OperationRemarkColumn2.Name = "OperationRemarkColumn2"; - this.OperationRemarkColumn2.ReadOnly = true; - // - // OperationLevelNameColumn2 - // - this.OperationLevelNameColumn2.DataPropertyName = "OperationLevelName"; - this.OperationLevelNameColumn2.HeaderText = "手术分级"; - this.OperationLevelNameColumn2.Name = "OperationLevelNameColumn2"; - this.OperationLevelNameColumn2.ReadOnly = true; - // - // ApplyOperationCutTypeNameColumn2 - // - this.ApplyOperationCutTypeNameColumn2.DataPropertyName = "ApplyOperationCutTypeName"; - this.ApplyOperationCutTypeNameColumn2.HeaderText = "切口类型"; - this.ApplyOperationCutTypeNameColumn2.Name = "ApplyOperationCutTypeNameColumn2"; - this.ApplyOperationCutTypeNameColumn2.ReadOnly = true; - // - // ApplyOperationPositionNameColumn2 - // - this.ApplyOperationPositionNameColumn2.DataPropertyName = "ApplyOperationPositionName"; - this.ApplyOperationPositionNameColumn2.HeaderText = "手术部位"; - this.ApplyOperationPositionNameColumn2.Name = "ApplyOperationPositionNameColumn2"; - // - // AnaesthesiaMethodNameColumn2 - // - this.AnaesthesiaMethodNameColumn2.DataPropertyName = "AnaesthesiaMethodName"; - this.AnaesthesiaMethodNameColumn2.HeaderText = "拟施麻醉"; - this.AnaesthesiaMethodNameColumn2.Name = "AnaesthesiaMethodNameColumn2"; - this.AnaesthesiaMethodNameColumn2.ReadOnly = true; - // - // ContagionColumn2 - // - this.ContagionColumn2.DataPropertyName = "Contagion"; - this.ContagionColumn2.HeaderText = "术前感染筛查"; - this.ContagionColumn2.Name = "ContagionColumn2"; - // - // OperationDoctorColumn2 - // - this.OperationDoctorColumn2.DataPropertyName = "OperationDoctor"; - this.OperationDoctorColumn2.HeaderText = "术者"; - this.OperationDoctorColumn2.Name = "OperationDoctorColumn2"; - this.OperationDoctorColumn2.ReadOnly = true; - // - // Assistant1Column2 - // - this.Assistant1Column2.DataPropertyName = "Assistant1"; - this.Assistant1Column2.HeaderText = "一助"; - this.Assistant1Column2.Name = "Assistant1Column2"; - // - // Assistant2Column2 - // - this.Assistant2Column2.DataPropertyName = "Assistant2"; - this.Assistant2Column2.HeaderText = "二助"; - this.Assistant2Column2.Name = "Assistant2Column2"; - this.Assistant2Column2.ReadOnly = true; - // - // Assistant3Column2 - // - this.Assistant3Column2.DataPropertyName = "Assistant3"; - this.Assistant3Column2.HeaderText = "三助"; - this.Assistant3Column2.Name = "Assistant3Column2"; - // - // InternColumn2 - // - this.InternColumn2.DataPropertyName = "Intern"; - this.InternColumn2.HeaderText = "进修实习生"; - this.InternColumn2.Name = "InternColumn2"; - // - // OtherColumn2 - // - this.OtherColumn2.DataPropertyName = "Other"; - this.OtherColumn2.HeaderText = "其他人员"; - this.OtherColumn2.Name = "OtherColumn2"; - this.OtherColumn2.ReadOnly = true; - // - // ApplyTimeColumn2 - // - this.ApplyTimeColumn2.DataPropertyName = "ApplyTime"; - this.ApplyTimeColumn2.HeaderText = "申请时间"; - this.ApplyTimeColumn2.Name = "ApplyTimeColumn2"; - // - // ApplyOperatorNameColumn2 - // - this.ApplyOperatorNameColumn2.DataPropertyName = "ApplyOperatorName"; - this.ApplyOperatorNameColumn2.HeaderText = "申请人"; - this.ApplyOperatorNameColumn2.Name = "ApplyOperatorNameColumn2"; - this.ApplyOperatorNameColumn2.ReadOnly = true; - // - // VerifyTimeColumn2 - // - this.VerifyTimeColumn2.DataPropertyName = "VerifyTime"; - this.VerifyTimeColumn2.HeaderText = "审核时间"; - this.VerifyTimeColumn2.Name = "VerifyTimeColumn2"; - this.VerifyTimeColumn2.ReadOnly = true; - // - // VerifyOperatorNameColumn2 - // - this.VerifyOperatorNameColumn2.DataPropertyName = "VerifyOperatorName"; - this.VerifyOperatorNameColumn2.HeaderText = "审核医生"; - this.VerifyOperatorNameColumn2.Name = "VerifyOperatorNameColumn2"; - this.VerifyOperatorNameColumn2.ReadOnly = true; - // - // PlanOperationTimeColumn2 - // - this.PlanOperationTimeColumn2.DataPropertyName = "PlanOperationTime"; - this.PlanOperationTimeColumn2.HeaderText = "拟定手术时间"; - this.PlanOperationTimeColumn2.Name = "PlanOperationTimeColumn2"; - this.PlanOperationTimeColumn2.ReadOnly = true; - // - // OperationRoomColumn2 - // - this.OperationRoomColumn2.DataPropertyName = "OperationRoom"; - this.OperationRoomColumn2.HeaderText = "手术间"; - this.OperationRoomColumn2.Name = "OperationRoomColumn2"; - this.OperationRoomColumn2.ReadOnly = true; - // - // AnesthesiaDoctorColumn2 - // - this.AnesthesiaDoctorColumn2.DataPropertyName = "AnesthesiaDoctor"; - this.AnesthesiaDoctorColumn2.HeaderText = "麻醉医生"; - this.AnesthesiaDoctorColumn2.Name = "AnesthesiaDoctorColumn2"; - // - // InstrumentNurseColumn2 - // - this.InstrumentNurseColumn2.DataPropertyName = "InstrumentNurse"; - this.InstrumentNurseColumn2.HeaderText = "器械护士"; - this.InstrumentNurseColumn2.Name = "InstrumentNurseColumn2"; - // - // TourNurseColumn2 - // - this.TourNurseColumn2.DataPropertyName = "TourNurse"; - this.TourNurseColumn2.HeaderText = "巡回护士"; - this.TourNurseColumn2.Name = "TourNurseColumn2"; - // - // AnesthesiaDoctorSucceedColumn2 - // - this.AnesthesiaDoctorSucceedColumn2.DataPropertyName = "AnesthesiaDoctorSucceed"; - this.AnesthesiaDoctorSucceedColumn2.HeaderText = "麻醉接台"; - this.AnesthesiaDoctorSucceedColumn2.Name = "AnesthesiaDoctorSucceedColumn2"; - this.AnesthesiaDoctorSucceedColumn2.ReadOnly = true; - // - // InstrumentNurseSucceedColumn2 - // - this.InstrumentNurseSucceedColumn2.DataPropertyName = "InstrumentNurseSucceed"; - this.InstrumentNurseSucceedColumn2.HeaderText = "器械接台"; - this.InstrumentNurseSucceedColumn2.Name = "InstrumentNurseSucceedColumn2"; - this.InstrumentNurseSucceedColumn2.ReadOnly = true; - // - // TourNurseSucceedColumn2 - // - this.TourNurseSucceedColumn2.DataPropertyName = "TourNurseSucceed"; - this.TourNurseSucceedColumn2.HeaderText = "巡回接台"; - this.TourNurseSucceedColumn2.Name = "TourNurseSucceedColumn2"; - this.TourNurseSucceedColumn2.ReadOnly = true; - // - // RemarkColumn2 - // - this.RemarkColumn2.DataPropertyName = "Remark"; - this.RemarkColumn2.HeaderText = "备注"; - this.RemarkColumn2.Name = "RemarkColumn2"; - // - // panel6 - // - this.panel6.Controls.Add(this.btnFind2); - this.panel6.Controls.Add(this.txtMdrecNo2); - this.panel6.Controls.Add(this.dtpBegInDate2); - this.panel6.Controls.Add(this.label5); - this.panel6.Controls.Add(this.label6); - this.panel6.Controls.Add(this.label7); - this.panel6.Controls.Add(this.cboDepartment2); - this.panel6.Controls.Add(this.label8); - this.panel6.Controls.Add(this.dtpEndDate2); - this.panel6.Dock = System.Windows.Forms.DockStyle.Top; - this.panel6.Location = new System.Drawing.Point(3, 3); - this.panel6.Name = "panel6"; - this.panel6.Size = new System.Drawing.Size(877, 39); - this.panel6.TabIndex = 0; - // - // btnFind2 - // - this.btnFind2.Location = new System.Drawing.Point(678, 5); - this.btnFind2.Name = "btnFind2"; - this.btnFind2.Size = new System.Drawing.Size(66, 23); - this.btnFind2.TabIndex = 34; - this.btnFind2.Text = "查询"; - this.btnFind2.UseVisualStyleBackColor = true; - this.btnFind2.Click += new System.EventHandler(this.btnFind2_Click); - // - // txtMdrecNo2 - // - this.txtMdrecNo2.Location = new System.Drawing.Point(543, 5); - this.txtMdrecNo2.Name = "txtMdrecNo2"; - this.txtMdrecNo2.Size = new System.Drawing.Size(100, 23); - this.txtMdrecNo2.TabIndex = 33; - // - // dtpBegInDate2 - // - this.dtpBegInDate2.CustomFormat = "yyyy-MM-dd"; - this.dtpBegInDate2.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpBegInDate2.Location = new System.Drawing.Point(258, 5); - this.dtpBegInDate2.Name = "dtpBegInDate2"; - this.dtpBegInDate2.Size = new System.Drawing.Size(97, 23); - this.dtpBegInDate2.TabIndex = 29; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(194, 12); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(63, 14); - this.label5.TabIndex = 28; - this.label5.Text = "预约时间"; - // - // label6 - // - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(495, 12); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(49, 14); - this.label6.TabIndex = 32; - this.label6.Text = "住院号"; - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(357, 12); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(21, 14); - this.label7.TabIndex = 30; - this.label7.Text = "至"; - // - // cboDepartment2 - // - this.cboDepartment2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cboDepartment2.FormattingEnabled = true; - this.cboDepartment2.Location = new System.Drawing.Point(54, 6); - this.cboDepartment2.Name = "cboDepartment2"; - this.cboDepartment2.Size = new System.Drawing.Size(121, 22); - this.cboDepartment2.TabIndex = 27; - // - // label8 - // - this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(15, 12); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(35, 14); - this.label8.TabIndex = 26; - this.label8.Text = "科室"; - // - // dtpEndDate2 - // - this.dtpEndDate2.CustomFormat = "yyyy-MM-dd"; - this.dtpEndDate2.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpEndDate2.Location = new System.Drawing.Point(380, 5); - this.dtpEndDate2.Name = "dtpEndDate2"; - this.dtpEndDate2.Size = new System.Drawing.Size(97, 23); - this.dtpEndDate2.TabIndex = 31; - // - // panel1 - // - this.panel1.BackColor = System.Drawing.Color.AliceBlue; - this.panel1.Controls.Add(this.tabControl1); - this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Location = new System.Drawing.Point(0, 0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(891, 468); - this.panel1.TabIndex = 4; - // - // panel3 - // - this.panel3.Controls.Add(this.panel1); - this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel3.Location = new System.Drawing.Point(0, 49); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(891, 468); - this.panel3.TabIndex = 5; - // - // tsbAdd - // - this.tsbAdd.Font = new System.Drawing.Font("微软雅黑", 9F); - this.tsbAdd.Image = global::AIMS.Properties.Resources.图标_手术排程; - this.tsbAdd.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tsbAdd.Name = "tsbAdd"; - this.tsbAdd.Size = new System.Drawing.Size(68, 46); - this.tsbAdd.Text = " 手术排程"; - this.tsbAdd.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.tsbAdd.Click += new System.EventHandler(this.tsbAdd_Click); - // - // tsbModify - // - this.tsbModify.Font = new System.Drawing.Font("微软雅黑", 9F); - this.tsbModify.Image = global::AIMS.Properties.Resources.图标_申请修改; - this.tsbModify.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tsbModify.Name = "tsbModify"; - this.tsbModify.Size = new System.Drawing.Size(52, 46); - this.tsbModify.Text = " 修改 "; - this.tsbModify.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.tsbModify.Click += new System.EventHandler(this.tsbModify_Click); - // - // tsbExePlan - // - this.tsbExePlan.Font = new System.Drawing.Font("微软雅黑", 9F); - this.tsbExePlan.Image = global::AIMS.Properties.Resources.图标_排程通过; - this.tsbExePlan.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tsbExePlan.Name = "tsbExePlan"; - this.tsbExePlan.Size = new System.Drawing.Size(60, 46); - this.tsbExePlan.Text = "执行排程"; - this.tsbExePlan.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.tsbExePlan.ToolTipText = " 作废"; - this.tsbExePlan.Click += new System.EventHandler(this.tsbExePlan_Click); - // - // tsbStopOperation - // - this.tsbStopOperation.Font = new System.Drawing.Font("微软雅黑", 9F); - this.tsbStopOperation.Image = global::AIMS.Properties.Resources.图标_取消排程; - this.tsbStopOperation.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tsbStopOperation.Name = "tsbStopOperation"; - this.tsbStopOperation.Size = new System.Drawing.Size(36, 46); - this.tsbStopOperation.Text = "退回"; - this.tsbStopOperation.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.tsbStopOperation.ToolTipText = " 退回"; - this.tsbStopOperation.Click += new System.EventHandler(this.tsbStopOperation_Click); - // - // tsbWaitPlanSet - // - this.tsbWaitPlanSet.Font = new System.Drawing.Font("微软雅黑", 9F); - this.tsbWaitPlanSet.Image = global::AIMS.Properties.Resources.图标_设置; - this.tsbWaitPlanSet.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tsbWaitPlanSet.Name = "tsbWaitPlanSet"; - this.tsbWaitPlanSet.Size = new System.Drawing.Size(80, 46); - this.tsbWaitPlanSet.Text = " 待排程设置 "; - this.tsbWaitPlanSet.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.tsbWaitPlanSet.Click += new System.EventHandler(this.tsbWaitPlanSet_Click); - // - // tsbAlreadyPlan - // - this.tsbAlreadyPlan.Font = new System.Drawing.Font("微软雅黑", 9F); - this.tsbAlreadyPlan.Image = global::AIMS.Properties.Resources.图标_设置; - this.tsbAlreadyPlan.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tsbAlreadyPlan.Name = "tsbAlreadyPlan"; - this.tsbAlreadyPlan.Size = new System.Drawing.Size(76, 46); - this.tsbAlreadyPlan.Text = "已排程设置 "; - this.tsbAlreadyPlan.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.tsbAlreadyPlan.Click += new System.EventHandler(this.tsbAlreadyPlan_Click); - // - // frmOperationPlan - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(891, 517); - this.ControlBox = false; - this.Controls.Add(this.panel3); - this.Controls.Add(this.toolStrip1); - this.Name = "frmOperationPlan"; - this.Load += new System.EventHandler(this.frmOperationPlan_Load); - this.toolStrip1.ResumeLayout(false); - this.toolStrip1.PerformLayout(); - this.tabControl1.ResumeLayout(false); - this.tabPage1.ResumeLayout(false); - this.panel5.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgv1)).EndInit(); - this.panel11.ResumeLayout(false); - this.panel11.PerformLayout(); - this.tabPage2.ResumeLayout(false); - this.panel7.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgv2)).EndInit(); - this.panel6.ResumeLayout(false); - this.panel6.PerformLayout(); - this.panel1.ResumeLayout(false); - this.panel3.ResumeLayout(false); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.ToolStrip toolStrip1; - private System.Windows.Forms.ToolStripButton tsbAdd; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; - private System.Windows.Forms.ToolStripButton tsbModify; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; - private System.Windows.Forms.ToolStripButton tsbWaitPlanSet; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; - private System.Windows.Forms.TabControl tabControl1; - private System.Windows.Forms.TabPage tabPage1; - private System.Windows.Forms.TabPage tabPage2; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel5; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel7; - private System.Windows.Forms.DataGridView dgv2; - private System.Windows.Forms.Panel panel6; - private System.Windows.Forms.DataGridView dgv1; - private System.Windows.Forms.Panel panel11; - private System.Windows.Forms.Button btnFind; - private System.Windows.Forms.TextBox txtMdrecNo; - private System.Windows.Forms.DateTimePicker dtpBegInDate; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.ComboBox cboDepartment; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.DateTimePicker dtpEndDate; - private System.Windows.Forms.Button btnFind2; - private System.Windows.Forms.TextBox txtMdrecNo2; - private System.Windows.Forms.DateTimePicker dtpBegInDate2; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.ComboBox cboDepartment2; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.DateTimePicker dtpEndDate2; - private System.Windows.Forms.ToolStripButton tsbAlreadyPlan; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator6; - private System.Windows.Forms.ToolStripButton tsbStopOperation; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; - private System.Windows.Forms.ToolStripButton tsbExePlan; - private System.Windows.Forms.DataGridViewCheckBoxColumn CheckBoxColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyIdColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn MdrecNoColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn ArchivesNoColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDepNameColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn PatientKindColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn PatientNameColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn SexColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn BirthDayColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn HeightColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn WeightColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn BloodTypeColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn RHBloodTypeColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn IlldistrictColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn SickBedColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationTypeColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn OrderOperationTimeColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationTimeLeightColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn StateColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn IsReturnOperationColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn IsPlanReturnOperationColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDiagnoseInfoNameColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn DiagnoseRemarkColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationInfoNameColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationRemarkColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationLevelNameColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationCutTypeNameColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationPositionNameColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn AnaesthesiaMethodNameColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn ContagionColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationDoctorColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn Assistant1Column1; - private System.Windows.Forms.DataGridViewTextBoxColumn Assistant2Column1; - private System.Windows.Forms.DataGridViewTextBoxColumn Assistant3Column1; - private System.Windows.Forms.DataGridViewTextBoxColumn InternColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn OtherColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyTimeColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperatorNameColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn VerifyTimeColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn VerifyOperatorNameColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn PlanOperationTimeColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationRoomColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn AnesthesiaDoctorColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn InstrumentNurseColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn TourNurseColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn AnesthesiaDoctorSucceedColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn InstrumentNurseSucceedColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn TourNurseSucceedColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn RemarkColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyIdColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn MdrecNoColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn ArchivesNoColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDepNameColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn PatientKindColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn PatientNameColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn SexColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn BirthDayColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn HeightColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn WeightColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn BloodTypeColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn RHBloodTypeColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn IlldistrictColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn SickBedColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationTypeColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn OrderOperationTimeColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationTimeLeightColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn StateColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn IsReturnOperationColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn IsPlanReturnOperationColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDiagnoseInfoNameColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn DiagnoseRemarkColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationInfoNameColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationRemarkColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationLevelNameColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationCutTypeNameColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationPositionNameColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn AnaesthesiaMethodNameColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn ContagionColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationDoctorColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn Assistant1Column2; - private System.Windows.Forms.DataGridViewTextBoxColumn Assistant2Column2; - private System.Windows.Forms.DataGridViewTextBoxColumn Assistant3Column2; - private System.Windows.Forms.DataGridViewTextBoxColumn InternColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn OtherColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyTimeColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperatorNameColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn VerifyTimeColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn VerifyOperatorNameColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn PlanOperationTimeColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationRoomColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn AnesthesiaDoctorColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn InstrumentNurseColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn TourNurseColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn AnesthesiaDoctorSucceedColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn InstrumentNurseSucceedColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn TourNurseSucceedColumn2; - private System.Windows.Forms.DataGridViewTextBoxColumn RemarkColumn2; - } -} \ No newline at end of file diff --git a/AIMS/OperationFront/frmOperationPlan.cs b/AIMS/OperationFront/frmOperationPlan.cs deleted file mode 100644 index abbd389..0000000 --- a/AIMS/OperationFront/frmOperationPlan.cs +++ /dev/null @@ -1,250 +0,0 @@ -using AIMSBLL; -using AIMSModel; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace AIMS.OperationFront.UI -{ - public partial class frmOperationPlan : Form - { - public frmOperationPlan() - { - InitializeComponent(); - } - - private void frmOperationPlan_Load(object sender, EventArgs e) - { - if (AIMSExtension.PublicMethod.OperatorNo == "admin") - { - tsbWaitPlanSet.Visible = true; - tsbAlreadyPlan.Visible = true; - toolStripSeparator3.Visible = true; - } - else - { - tsbWaitPlanSet.Visible = false; - tsbAlreadyPlan.Visible = false; - toolStripSeparator3.Visible = false; - } - - dgv1.BackgroundColor = System.Drawing.Color.Snow; - dgv2.BackgroundColor = System.Drawing.Color.Snow; - - dtpBegInDate.Value = DateTime.Parse(dtpBegInDate.Value.ToString("yyyy-MM-dd")); - dtpEndDate.Value = DateTime.Parse(dtpEndDate.Value.ToString("yyyy-MM-dd")).AddDays(4); - - List list = new List(); - list = BDepartment.GetDepartmentAllList("诊疗部门"); - list.Insert(0, new Department - { - Id = -1, - Name = "全部科室" - }); - cboDepartment.DataSource = list; - cboDepartment.DisplayMember = "Name"; - cboDepartment.ValueMember = "Id"; - cboDepartment.SelectedIndex = -1; - cboDepartment.Text = "全部科室"; - - - dtpBegInDate2.Value = DateTime.Parse(dtpBegInDate2.Value.ToString("yyyy-MM-dd")); - dtpEndDate2.Value = DateTime.Parse(dtpEndDate2.Value.ToString("yyyy-MM-dd")).AddDays(4); - - - List list2 = new List(); - list2 = BDepartment.GetDepartmentAllList("诊疗部门"); - list2.Insert(0, new Department - { - Id = -1, - Name = "全部科室" - }); - cboDepartment2.DataSource = list2; - cboDepartment2.DisplayMember = "Name"; - cboDepartment2.ValueMember = "Id"; - cboDepartment2.SelectedIndex = -1; - cboDepartment2.Text = "全部科室"; - - - tabControl1_Selected(null, null); - } - - private void tsbExit_Click(object sender, EventArgs e) - { - Close(); - } - - private void btnRefresh_Click(object sender, EventArgs e) - { - } - - private void btnFind_Click(object sender, EventArgs e) - { - string Department = cboDepartment.Text; - if (Department == "全部科室") - { - Department = ""; - } - DataTable dt = BOperationApply.GetOperationFrontDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.ToString("yyyy-MM-dd")); - DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(dt, "OperationType <>'特急' and State IN ('已审核') and ApplyDepName LIKE '%" + Department + "%' AND MdrecNo LIKE '%" + txtMdrecNo.Text.Trim() + "%'", ""); - dgv1.DataSource = Newdt; - for (int i = 0; i < dgv1.Rows.Count; i++) - { - if (dgv1.Rows[i].Cells["OperationTypeColumn1"].Value.ToString() == "急诊") - { - dgv1.Rows[i].DefaultCellStyle.BackColor = Color.LightSalmon; - } - if (dgv1.Rows[i].Cells["OperationTypeColumn1"].Value.ToString() == "特急") - { - dgv1.Rows[i].DefaultCellStyle.BackColor = Color.Red; - } - } - btnRefresh_Click(null, null); - } - - private void tabControl1_Selected(object sender, TabControlEventArgs e) - { - if (this.tabControl1.SelectedTab.Name == "tabPage1") - { - tsbAdd.Enabled = true; - tsbModify.Enabled = false; - btnFind_Click(null, null); - btnRefresh_Click(null, null); - - } - else if (this.tabControl1.SelectedTab.Name == "tabPage2") - { - tsbAdd.Enabled = false; - tsbModify.Enabled = true; - btnFind2_Click(null, null); - btnRefresh_Click(null, null); - } - } - - private void tsbAdd_Click(object sender, EventArgs e) - { - string Date = ""; - List CheckBoxApplyIdList = new List(); - for (int i = 0; i < this.dgv1.Rows.Count; i++) - { - if (bool.Parse(this.dgv1.Rows[i].Cells["CheckBoxColumn"].EditedFormattedValue.ToString())) - { - CheckBoxApplyIdList.Add(Convert.ToInt32(this.dgv1.Rows[i].Cells["ApplyIdColumn1"].Value.ToString())); - Date = DateTime.Parse(dgv1.Rows[i].Cells["OrderOperationTimeColumn1"].Value.ToString()).ToString("yyyy-MM-dd"); - } - } - if (CheckBoxApplyIdList.Count < 1) - { - return; - } - - for (int i = 0; i < this.dgv1.Rows.Count; i++) - { - if (bool.Parse(this.dgv1.Rows[i].Cells["CheckBoxColumn"].EditedFormattedValue.ToString())) - { - if (Date != DateTime.Parse(dgv1.Rows[i].Cells["OrderOperationTimeColumn1"].Value.ToString()).ToString("yyyy-MM-dd")) - { - MessageBox.Show("患者预约手术日期必须是同一天"); - return; - } - } - } - - frmOperationPlanDetail frmOperationPlanDetail = new frmOperationPlanDetail(); - frmOperationPlanDetail.CheckBoxApplyIdList = CheckBoxApplyIdList; - frmOperationPlanDetail.State = AIMSExtension.EditState.ADD; - frmOperationPlanDetail.FormClosed += new FormClosedEventHandler(frmOperationPlanDetail_FormClosed); - frmOperationPlanDetail.ShowDialog(); - } - - void frmOperationPlanDetail_FormClosed(object sender, FormClosedEventArgs e) - { - btnFind_Click(null, null); - } - - private void tsbWaitPlanSet_Click(object sender, EventArgs e) - { - } - - private void tsbAlreadyPlan_Click(object sender, EventArgs e) - { - } - - private void btnFind2_Click(object sender, EventArgs e) - { - string Department = cboDepartment2.Text; - if (Department == "全部科室") - { - Department = ""; - } - DataTable dt = BOperationApply.GetOperationFrontDataTable(dtpBegInDate2.Value.ToString("yyyy-MM-dd"), dtpEndDate2.Value.ToString("yyyy-MM-dd")); - DataTable Newdt = AIMSExtension.PublicMethod.GetNewDataTable(dt, "OperationType <>'特急' and State IN ('已排程') and ApplyDepName LIKE '%" + Department + "%' AND MdrecNo LIKE '%" + txtMdrecNo.Text.Trim() + "%'", ""); - dgv2.DataSource = Newdt; - for (int i = 0; i < dgv2.Rows.Count; i++) - { - if (dgv2.Rows[i].Cells["OperationTypeColumn2"].Value.ToString() == "急诊") - { - dgv2.Rows[i].DefaultCellStyle.BackColor = Color.LightSalmon; - } - if (dgv2.Rows[i].Cells["OperationTypeColumn2"].Value.ToString() == "特急") - { - dgv2.Rows[i].DefaultCellStyle.BackColor = Color.Red; - } - } - btnRefresh_Click(null, null); - } - - private void tsbStopOperation_Click(object sender, EventArgs e) - { - - frmStopOperation frmStopOperation = new frmStopOperation(); - if (this.tabControl1.SelectedTab.Name == "tabPage1") - { - for (int i = 0; i < this.dgv1.Rows.Count; i++) - { - if (bool.Parse(this.dgv1.Rows[i].Cells["CheckBoxColumn"].EditedFormattedValue.ToString())) - { - frmStopOperation.ApplyIdList.Add(int.Parse(dgv1.Rows[i].Cells["ApplyIdColumn1"].EditedFormattedValue.ToString())); - } - } - - } - if (this.tabControl1.SelectedTab.Name == "tabPage2" && dgv2.Rows.Count>0) - { - frmStopOperation.ApplyIdList.Add(int.Parse(dgv2.CurrentRow.Cells["ApplyIdColumn2"].EditedFormattedValue.ToString())); - } - frmStopOperation.FormClosed += new FormClosedEventHandler(frmStopOperation_FormClosed); - frmStopOperation.ShowDialog(); - - } - - void frmStopOperation_FormClosed(object sender, FormClosedEventArgs e) - { - tabControl1_Selected(null, null); - } - - private void tsbModify_Click(object sender, EventArgs e) - { - if (dgv2.Rows.Count > 0) - { - frmOperationPlanDetail frmOperationPlanDetail = new frmOperationPlanDetail(); - frmOperationPlanDetail.CheckBoxApplyIdList.Add(int.Parse(dgv2.CurrentRow.Cells["ApplyIdColumn2"].Value.ToString())); - frmOperationPlanDetail.State = AIMSExtension.EditState.EDIT; - frmOperationPlanDetail.ShowDialog(); - } - - } - - private void tsbExePlan_Click(object sender, EventArgs e) - { - frmExeOperationPlan frmExeOperationPlan = new frmExeOperationPlan(); - frmExeOperationPlan.ShowDialog(); - - } - } -} diff --git a/AIMS/OperationFront/frmOperationPlan.resx b/AIMS/OperationFront/frmOperationPlan.resx deleted file mode 100644 index 831bfc9..0000000 --- a/AIMS/OperationFront/frmOperationPlan.resx +++ /dev/null @@ -1,417 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - 25 - - \ No newline at end of file diff --git a/AIMS/OperationFront/frmOperationPlanDetail.Designer.cs b/AIMS/OperationFront/frmOperationPlanDetail.Designer.cs deleted file mode 100644 index 112ac3d..0000000 --- a/AIMS/OperationFront/frmOperationPlanDetail.Designer.cs +++ /dev/null @@ -1,492 +0,0 @@ -namespace AIMS.OperationFront.UI -{ - partial class frmOperationPlanDetail - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.toolStrip1 = new System.Windows.Forms.ToolStrip(); - this.tsbSava = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); - this.tsbExit = new System.Windows.Forms.ToolStripButton(); - this.panel1 = new System.Windows.Forms.Panel(); - this.panel3 = new System.Windows.Forms.Panel(); - this.dgv = new System.Windows.Forms.DataGridView(); - this.ApplyId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyDepNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationTypeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.MdrecNoColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PatientNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.SexColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.BirthDayColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OrderOperationTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyDiagnoseInfoNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperationInfoNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.AnaesthesiaMethodNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationDoctorColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.panel2 = new System.Windows.Forms.Panel(); - this.txtTourNurseSucceed = new System.Windows.Forms.TextBox(); - this.txtTourNurse = new System.Windows.Forms.TextBox(); - this.txtInstrumentNurseSucceed = new System.Windows.Forms.TextBox(); - this.txtInstrumentNurse = new System.Windows.Forms.TextBox(); - this.txtAnesthesiaDoctorSucceed = new System.Windows.Forms.TextBox(); - this.txtAnesthesiaDoctor = new System.Windows.Forms.TextBox(); - this.dtpPlanOperationTime = new System.Windows.Forms.DateTimePicker(); - this.cboOperationRoom = new System.Windows.Forms.ComboBox(); - this.label8 = new System.Windows.Forms.Label(); - this.label7 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.toolStrip1.SuspendLayout(); - this.panel1.SuspendLayout(); - this.panel3.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgv)).BeginInit(); - this.panel2.SuspendLayout(); - this.SuspendLayout(); - // - // toolStrip1 - // - this.toolStrip1.BackColor = System.Drawing.Color.AliceBlue; - this.toolStrip1.Font = new System.Drawing.Font("微软雅黑", 10.5F); - this.toolStrip1.ImageScalingSize = new System.Drawing.Size(25, 25); - this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.tsbSava, - this.toolStripSeparator4, - this.tsbExit}); - this.toolStrip1.Location = new System.Drawing.Point(0, 0); - this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(1063, 49); - this.toolStrip1.TabIndex = 2; - this.toolStrip1.Text = "toolStrip1"; - // - // tsbSava - // - this.tsbSava.Font = new System.Drawing.Font("微软雅黑", 9F); - this.tsbSava.Image = global::AIMS.Properties.Resources.图标_保存; - this.tsbSava.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tsbSava.Name = "tsbSava"; - this.tsbSava.Size = new System.Drawing.Size(52, 46); - this.tsbSava.Text = " 保存 "; - this.tsbSava.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.tsbSava.Click += new System.EventHandler(this.tsbSava_Click); - // - // toolStripSeparator4 - // - this.toolStripSeparator4.Name = "toolStripSeparator4"; - this.toolStripSeparator4.Size = new System.Drawing.Size(6, 49); - // - // tsbExit - // - this.tsbExit.Font = new System.Drawing.Font("微软雅黑", 9F); - this.tsbExit.Image = global::AIMS.Properties.Resources.图标_关闭当前页; - this.tsbExit.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tsbExit.Name = "tsbExit"; - this.tsbExit.Size = new System.Drawing.Size(52, 46); - this.tsbExit.Text = " 关闭 "; - this.tsbExit.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.tsbExit.Click += new System.EventHandler(this.tsbExit_Click); - // - // panel1 - // - this.panel1.BackColor = System.Drawing.Color.AliceBlue; - this.panel1.Controls.Add(this.panel3); - this.panel1.Controls.Add(this.panel2); - this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Location = new System.Drawing.Point(0, 49); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(1063, 439); - this.panel1.TabIndex = 3; - // - // panel3 - // - this.panel3.Controls.Add(this.dgv); - this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel3.Location = new System.Drawing.Point(0, 94); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(1063, 345); - this.panel3.TabIndex = 1; - // - // dgv - // - this.dgv.AllowUserToAddRows = false; - this.dgv.BackgroundColor = System.Drawing.Color.White; - this.dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgv.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.ApplyId, - this.ApplyDepNameColumn, - this.OperationTypeColumn, - this.MdrecNoColumn, - this.PatientNameColumn, - this.SexColumn, - this.BirthDayColumn, - this.OrderOperationTimeColumn, - this.ApplyDiagnoseInfoNameColumn, - this.ApplyOperationInfoNameColumn, - this.AnaesthesiaMethodNameColumn, - this.OperationDoctorColumn}); - this.dgv.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgv.Location = new System.Drawing.Point(0, 0); - this.dgv.Name = "dgv"; - this.dgv.RowHeadersVisible = false; - this.dgv.RowTemplate.Height = 23; - this.dgv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; - this.dgv.Size = new System.Drawing.Size(1063, 345); - this.dgv.TabIndex = 4; - // - // ApplyId - // - this.ApplyId.DataPropertyName = "ApplyId"; - this.ApplyId.Frozen = true; - this.ApplyId.HeaderText = "ApplyId"; - this.ApplyId.Name = "ApplyId"; - this.ApplyId.ReadOnly = true; - this.ApplyId.Visible = false; - // - // ApplyDepNameColumn - // - this.ApplyDepNameColumn.DataPropertyName = "ApplyDepName"; - this.ApplyDepNameColumn.HeaderText = "申请科室"; - this.ApplyDepNameColumn.Name = "ApplyDepNameColumn"; - this.ApplyDepNameColumn.ReadOnly = true; - this.ApplyDepNameColumn.Width = 80; - // - // OperationTypeColumn - // - this.OperationTypeColumn.DataPropertyName = "OperationType"; - this.OperationTypeColumn.HeaderText = "手术类型"; - this.OperationTypeColumn.Name = "OperationTypeColumn"; - this.OperationTypeColumn.ReadOnly = true; - this.OperationTypeColumn.Width = 80; - // - // MdrecNoColumn - // - this.MdrecNoColumn.DataPropertyName = "MdrecNo"; - this.MdrecNoColumn.HeaderText = "住院号"; - this.MdrecNoColumn.Name = "MdrecNoColumn"; - this.MdrecNoColumn.ReadOnly = true; - this.MdrecNoColumn.Width = 80; - // - // PatientNameColumn - // - this.PatientNameColumn.DataPropertyName = "PatientName"; - this.PatientNameColumn.HeaderText = "患者姓名"; - this.PatientNameColumn.Name = "PatientNameColumn"; - this.PatientNameColumn.ReadOnly = true; - this.PatientNameColumn.Width = 80; - // - // SexColumn - // - this.SexColumn.DataPropertyName = "Sex"; - this.SexColumn.HeaderText = "性别"; - this.SexColumn.Name = "SexColumn"; - this.SexColumn.ReadOnly = true; - this.SexColumn.Width = 53; - // - // BirthDayColumn - // - this.BirthDayColumn.DataPropertyName = "BirthDay"; - this.BirthDayColumn.HeaderText = "出生日期"; - this.BirthDayColumn.Name = "BirthDayColumn"; - this.BirthDayColumn.Width = 80; - // - // OrderOperationTimeColumn - // - this.OrderOperationTimeColumn.DataPropertyName = "OrderOperationTime"; - this.OrderOperationTimeColumn.HeaderText = "预约时间"; - this.OrderOperationTimeColumn.Name = "OrderOperationTimeColumn"; - this.OrderOperationTimeColumn.ReadOnly = true; - this.OrderOperationTimeColumn.Width = 120; - // - // ApplyDiagnoseInfoNameColumn - // - this.ApplyDiagnoseInfoNameColumn.DataPropertyName = "ApplyDiagnoseInfoName"; - this.ApplyDiagnoseInfoNameColumn.HeaderText = "术前诊断"; - this.ApplyDiagnoseInfoNameColumn.Name = "ApplyDiagnoseInfoNameColumn"; - this.ApplyDiagnoseInfoNameColumn.ReadOnly = true; - this.ApplyDiagnoseInfoNameColumn.Width = 120; - // - // ApplyOperationInfoNameColumn - // - this.ApplyOperationInfoNameColumn.DataPropertyName = "ApplyOperationInfoName"; - this.ApplyOperationInfoNameColumn.HeaderText = "拟实手术"; - this.ApplyOperationInfoNameColumn.Name = "ApplyOperationInfoNameColumn"; - this.ApplyOperationInfoNameColumn.ReadOnly = true; - this.ApplyOperationInfoNameColumn.Width = 120; - // - // AnaesthesiaMethodNameColumn - // - this.AnaesthesiaMethodNameColumn.DataPropertyName = "AnaesthesiaMethodName"; - this.AnaesthesiaMethodNameColumn.HeaderText = "拟施麻醉"; - this.AnaesthesiaMethodNameColumn.Name = "AnaesthesiaMethodNameColumn"; - this.AnaesthesiaMethodNameColumn.ReadOnly = true; - this.AnaesthesiaMethodNameColumn.Width = 120; - // - // OperationDoctorColumn - // - this.OperationDoctorColumn.DataPropertyName = "OperationDoctor"; - this.OperationDoctorColumn.HeaderText = "术者"; - this.OperationDoctorColumn.Name = "OperationDoctorColumn"; - this.OperationDoctorColumn.ReadOnly = true; - // - // panel2 - // - this.panel2.Controls.Add(this.txtTourNurseSucceed); - this.panel2.Controls.Add(this.txtTourNurse); - this.panel2.Controls.Add(this.txtInstrumentNurseSucceed); - this.panel2.Controls.Add(this.txtInstrumentNurse); - this.panel2.Controls.Add(this.txtAnesthesiaDoctorSucceed); - this.panel2.Controls.Add(this.txtAnesthesiaDoctor); - this.panel2.Controls.Add(this.dtpPlanOperationTime); - this.panel2.Controls.Add(this.cboOperationRoom); - this.panel2.Controls.Add(this.label8); - this.panel2.Controls.Add(this.label7); - this.panel2.Controls.Add(this.label6); - this.panel2.Controls.Add(this.label5); - this.panel2.Controls.Add(this.label4); - this.panel2.Controls.Add(this.label3); - this.panel2.Controls.Add(this.label2); - this.panel2.Controls.Add(this.label1); - this.panel2.Dock = System.Windows.Forms.DockStyle.Top; - this.panel2.Font = new System.Drawing.Font("宋体", 10.5F); - this.panel2.Location = new System.Drawing.Point(0, 0); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(1063, 94); - this.panel2.TabIndex = 0; - // - // txtTourNurseSucceed - // - this.txtTourNurseSucceed.Location = new System.Drawing.Point(834, 46); - this.txtTourNurseSucceed.Name = "txtTourNurseSucceed"; - this.txtTourNurseSucceed.Size = new System.Drawing.Size(134, 23); - this.txtTourNurseSucceed.TabIndex = 16; - this.txtTourNurseSucceed.Click += new System.EventHandler(this.txtTourNurseSucceed_Click); - this.txtTourNurseSucceed.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtTourNurseSucceed_KeyPress); - // - // txtTourNurse - // - this.txtTourNurse.Location = new System.Drawing.Point(834, 7); - this.txtTourNurse.Name = "txtTourNurse"; - this.txtTourNurse.Size = new System.Drawing.Size(134, 23); - this.txtTourNurse.TabIndex = 15; - this.txtTourNurse.Click += new System.EventHandler(this.txtTourNurse_Click); - this.txtTourNurse.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtTourNurse_KeyPress); - // - // txtInstrumentNurseSucceed - // - this.txtInstrumentNurseSucceed.Location = new System.Drawing.Point(585, 46); - this.txtInstrumentNurseSucceed.Name = "txtInstrumentNurseSucceed"; - this.txtInstrumentNurseSucceed.Size = new System.Drawing.Size(134, 23); - this.txtInstrumentNurseSucceed.TabIndex = 14; - this.txtInstrumentNurseSucceed.Click += new System.EventHandler(this.txtInstrumentNurseSucceed_Click); - this.txtInstrumentNurseSucceed.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtInstrumentNurseSucceed_KeyPress); - // - // txtInstrumentNurse - // - this.txtInstrumentNurse.Location = new System.Drawing.Point(585, 7); - this.txtInstrumentNurse.Name = "txtInstrumentNurse"; - this.txtInstrumentNurse.Size = new System.Drawing.Size(134, 23); - this.txtInstrumentNurse.TabIndex = 13; - this.txtInstrumentNurse.Click += new System.EventHandler(this.txtInstrumentNurse_Click); - this.txtInstrumentNurse.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtInstrumentNurse_KeyPress); - // - // txtAnesthesiaDoctorSucceed - // - this.txtAnesthesiaDoctorSucceed.Location = new System.Drawing.Point(339, 46); - this.txtAnesthesiaDoctorSucceed.Name = "txtAnesthesiaDoctorSucceed"; - this.txtAnesthesiaDoctorSucceed.Size = new System.Drawing.Size(134, 23); - this.txtAnesthesiaDoctorSucceed.TabIndex = 12; - this.txtAnesthesiaDoctorSucceed.Click += new System.EventHandler(this.txtAnesthesiaDoctorSucceed_Click); - this.txtAnesthesiaDoctorSucceed.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtAnesthesiaDoctorSucceed_KeyPress); - // - // txtAnesthesiaDoctor - // - this.txtAnesthesiaDoctor.Location = new System.Drawing.Point(339, 7); - this.txtAnesthesiaDoctor.Name = "txtAnesthesiaDoctor"; - this.txtAnesthesiaDoctor.Size = new System.Drawing.Size(134, 23); - this.txtAnesthesiaDoctor.TabIndex = 11; - this.txtAnesthesiaDoctor.Click += new System.EventHandler(this.txtAnesthesiaDoctor_Click); - this.txtAnesthesiaDoctor.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtAnesthesiaDoctor_KeyPress); - // - // dtpPlanOperationTime - // - this.dtpPlanOperationTime.CustomFormat = "yyyy-MM-dd HH:mm"; - this.dtpPlanOperationTime.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dtpPlanOperationTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpPlanOperationTime.Location = new System.Drawing.Point(81, 46); - this.dtpPlanOperationTime.Name = "dtpPlanOperationTime"; - this.dtpPlanOperationTime.Size = new System.Drawing.Size(153, 23); - this.dtpPlanOperationTime.TabIndex = 10; - // - // cboOperationRoom - // - this.cboOperationRoom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cboOperationRoom.FormattingEnabled = true; - this.cboOperationRoom.Location = new System.Drawing.Point(82, 8); - this.cboOperationRoom.Name = "cboOperationRoom"; - this.cboOperationRoom.Size = new System.Drawing.Size(152, 22); - this.cboOperationRoom.TabIndex = 8; - // - // label8 - // - this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(737, 55); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(91, 14); - this.label8.TabIndex = 7; - this.label8.Text = "巡回护士接台"; - // - // label7 - // - this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(765, 17); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(63, 14); - this.label7.TabIndex = 6; - this.label7.Text = "巡回护士"; - // - // label6 - // - this.label6.AutoSize = true; - this.label6.Location = new System.Drawing.Point(488, 54); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(91, 14); - this.label6.TabIndex = 5; - this.label6.Text = "器械护士接台"; - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(516, 16); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(63, 14); - this.label5.TabIndex = 4; - this.label5.Text = "器械护士"; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(250, 54); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(91, 14); - this.label4.TabIndex = 3; - this.label4.Text = "麻醉医生接台"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(278, 16); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(63, 14); - this.label3.TabIndex = 2; - this.label3.Text = "麻醉医生"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(12, 54); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(63, 14); - this.label2.TabIndex = 1; - this.label2.Text = "手术时间"; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(26, 16); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(49, 14); - this.label1.TabIndex = 0; - this.label1.Text = "手术室"; - // - // frmOperationPlanDetail - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1063, 488); - this.Controls.Add(this.panel1); - this.Controls.Add(this.toolStrip1); - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "frmOperationPlanDetail"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "手术排程"; - this.Load += new System.EventHandler(this.frmOperationPlanDetail_Load); - this.toolStrip1.ResumeLayout(false); - this.toolStrip1.PerformLayout(); - this.panel1.ResumeLayout(false); - this.panel3.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgv)).EndInit(); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.ToolStrip toolStrip1; - private System.Windows.Forms.ToolStripButton tsbSava; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; - private System.Windows.Forms.ToolStripButton tsbExit; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.DataGridView dgv; - private System.Windows.Forms.ComboBox cboOperationRoom; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.TextBox txtTourNurseSucceed; - private System.Windows.Forms.TextBox txtTourNurse; - private System.Windows.Forms.TextBox txtInstrumentNurseSucceed; - private System.Windows.Forms.TextBox txtInstrumentNurse; - private System.Windows.Forms.TextBox txtAnesthesiaDoctorSucceed; - private System.Windows.Forms.TextBox txtAnesthesiaDoctor; - private System.Windows.Forms.DateTimePicker dtpPlanOperationTime; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyId; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDepNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationTypeColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn MdrecNoColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn PatientNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn SexColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn BirthDayColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn OrderOperationTimeColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDiagnoseInfoNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationInfoNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn AnaesthesiaMethodNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationDoctorColumn; - } -} \ No newline at end of file diff --git a/AIMS/OperationFront/frmOperationPlanDetail.cs b/AIMS/OperationFront/frmOperationPlanDetail.cs deleted file mode 100644 index 61bdd5f..0000000 --- a/AIMS/OperationFront/frmOperationPlanDetail.cs +++ /dev/null @@ -1,463 +0,0 @@ -using AIMSBLL; -using AIMSModel; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace AIMS.OperationFront.UI -{ - public partial class frmOperationPlanDetail : Form - { - public AIMSExtension.EditState State = new AIMSExtension.EditState(); - private List SelectAnesthesiaDoctorData = new List(); //麻醉医生 - private List SelectInstrumentNurseData = new List(); //器械护士 - private List SelectTourNurseData = new List(); //巡回护士 - private List SelectAnesthesiaDoctorSucceedData = new List(); //麻醉接台 - private List SelectInstrumentNurseSucceedData = new List(); //器械接台 - private List SelectTourNurseSucceedData = new List(); //巡回接台 - - private PublicUI.UI.frmSelectPerson frmAnesthesiaDoctor = new PublicUI.UI.frmSelectPerson(); - private PublicUI.UI.frmSelectPerson frmInstrumentNurse = new PublicUI.UI.frmSelectPerson(); - private PublicUI.UI.frmSelectPerson frmTourNurse = new PublicUI.UI.frmSelectPerson(); - private PublicUI.UI.frmSelectPerson frmAnesthesiaDoctorSucceed = new PublicUI.UI.frmSelectPerson(); - private PublicUI.UI.frmSelectPerson frmInstrumentNurseSucceed = new PublicUI.UI.frmSelectPerson(); - private PublicUI.UI.frmSelectPerson frmTourNurseSucceed = new PublicUI.UI.frmSelectPerson(); - - public List CheckBoxApplyIdList = new List();//要排程的患者列表 - - public frmOperationPlanDetail() - { - InitializeComponent(); - } - - private void frmOperationPlanDetail_Load(object sender, EventArgs e) - { - cboOperationRoom.DisplayMember = "Name"; - cboOperationRoom.ValueMember = "Id"; - cboOperationRoom.DataSource = BOperationRoom.GetDataTable("IsValid=1"); - cboOperationRoom.SelectedIndex = -1; - - if (CheckBoxApplyIdList.Count > 0) - { - DataTable dt = BOperationApply.GetOperationFrontByApplyId(CheckBoxApplyIdList); - for (int i = 0; i < dt.Rows.Count; i++) - { - dgv.Rows.Add(dt.Rows[i]["ApplyId"], - dt.Rows[i]["ApplyDepName"], - dt.Rows[i]["OperationType"], - dt.Rows[i]["MdrecNo"], - dt.Rows[i]["PatientName"], - dt.Rows[i]["Sex"], - dt.Rows[i]["BirthDay"], - dt.Rows[i]["OrderOperationTime"], - dt.Rows[i]["ApplyDiagnoseInfoName"], - dt.Rows[i]["ApplyOperationInfoName"], - dt.Rows[i]["AnaesthesiaMethodName"], - dt.Rows[i]["OperationDoctor"]); - } - } - if (State == AIMSExtension.EditState.EDIT) - { - #region 修改给界面赋值 - - if (CheckBoxApplyIdList.Count > 0) - { - int ApplyId = int.Parse(CheckBoxApplyIdList[0].ToString()); - OperationApply OperationApplyObj = BOperationApply.GetModel(ApplyId); - dtpPlanOperationTime.Value = OperationApplyObj.PlanOperationTime.Value; - cboOperationRoom.SelectedValue = int.Parse(OperationApplyObj.OperationRoomId.ToString()); - - SelectAnesthesiaDoctorData = BApplyPersonDuty.GetPersonIdList(ApplyId, 5); - foreach (int RowId in SelectAnesthesiaDoctorData) - { - txtAnesthesiaDoctor.Text += BPerson.GetModel(RowId).Name + " ,"; - } - if (SelectAnesthesiaDoctorData.Count > 0) - { - txtAnesthesiaDoctor.Text = txtAnesthesiaDoctor.Text.Substring(0, txtAnesthesiaDoctor.Text.LastIndexOf(" ,")); - } - - SelectInstrumentNurseData = BApplyPersonDuty.GetPersonIdList(ApplyId, 6); - foreach (int RowId in SelectInstrumentNurseData) - { - txtInstrumentNurse.Text += BPerson.GetModel(RowId).Name + " ,"; - } - if (SelectInstrumentNurseData.Count > 0) - { - txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, txtInstrumentNurse.Text.LastIndexOf(" ,")); - } - - SelectTourNurseData = BApplyPersonDuty.GetPersonIdList(ApplyId, 7); - foreach (int RowId in SelectTourNurseData) - { - txtTourNurse.Text += BPerson.GetModel(RowId).Name + " ,"; - } - if (SelectTourNurseData.Count > 0) - { - txtTourNurse.Text = txtTourNurse.Text.Substring(0, txtTourNurse.Text.LastIndexOf(" ,")); - } - - SelectAnesthesiaDoctorSucceedData = BApplyPersonDuty.GetPersonIdList(ApplyId, 8); - foreach (int RowId in SelectAnesthesiaDoctorSucceedData) - { - txtAnesthesiaDoctorSucceed.Text += BPerson.GetModel(RowId).Name + " ,"; - } - if (SelectAnesthesiaDoctorSucceedData.Count > 0) - { - txtAnesthesiaDoctorSucceed.Text = txtAnesthesiaDoctorSucceed.Text.Substring(0, txtAnesthesiaDoctorSucceed.Text.LastIndexOf(" ,")); - } - - - SelectInstrumentNurseSucceedData = BApplyPersonDuty.GetPersonIdList(ApplyId, 9); - foreach (int RowId in SelectInstrumentNurseSucceedData) - { - txtInstrumentNurseSucceed.Text += BPerson.GetModel(RowId).Name + " ,"; - } - if (SelectInstrumentNurseSucceedData.Count > 0) - { - txtInstrumentNurseSucceed.Text = txtInstrumentNurseSucceed.Text.Substring(0, txtInstrumentNurseSucceed.Text.LastIndexOf(" ,")); - } - - - SelectTourNurseSucceedData = BApplyPersonDuty.GetPersonIdList(ApplyId, 10); - foreach (int RowId in SelectTourNurseSucceedData) - { - txtTourNurseSucceed.Text += BPerson.GetModel(RowId).Name + " ,"; - } - if (SelectTourNurseSucceedData.Count > 0) - { - txtTourNurseSucceed.Text = txtTourNurseSucceed.Text.Substring(0, txtTourNurseSucceed.Text.LastIndexOf(" ,")); - } - } - #endregion - } - } - - private void tsbSava_Click(object sender, EventArgs e) - { - if (ValidInput()) - { - try - { - DialogResult dialogResult = MessageBox.Show("确认通过排程,通过后可以进行访视等操作?", "系统提示", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk); - if (dialogResult == DialogResult.Yes) - { - HelperDB.DbHelperSQL.BeginTrans(); - for (int i = 0; i < dgv.Rows.Count; i++) - { - int ApplyId = int.Parse(dgv.Rows[i].Cells["ApplyId"].Value.ToString()); - string PlanOperationTime = dtpPlanOperationTime.Value.ToString("yyyy-MM-dd HH:mm"); - int OperationRoomId = int.Parse(cboOperationRoom.SelectedValue.ToString()); - - if (State == AIMSExtension.EditState.ADD) - { - BOperationApply.UpdatePlanOperationTime(ApplyId, PlanOperationTime, OperationRoomId, 3); //状态3 预排程 - } - if (State == AIMSExtension.EditState.EDIT) - { - BOperationApply.UpdatePlanOperationTime(ApplyId, PlanOperationTime, OperationRoomId, 4); //状态4 已排程 - } - - SaveSelectItem(ApplyId, AIMSExtension.PublicMethod.SystemDate()); - } - } - HelperDB.DbHelperSQL.CommitTrans(); - this.Close(); - } - catch - { - HelperDB.DbHelperSQL.RollbackTrans(); - } - } - } - - private void SaveSelectItem(int OperationApplyId, DateTime OperateDate) - { - ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctor = new ApplyPersonDuty(); - BApplyPersonDuty.Delete(OperationApplyId, 5); - foreach (int PersonId in SelectAnesthesiaDoctorData) - { - ApplyPersonDutyAnesthesiaDoctor.OperationApplyId = OperationApplyId; - ApplyPersonDutyAnesthesiaDoctor.PersonDutyId = 5; // 麻醉医生 - ApplyPersonDutyAnesthesiaDoctor.PersonId = PersonId; - ApplyPersonDutyAnesthesiaDoctor.OperatorNo = AIMSExtension.PublicMethod.OperatorNo; - ApplyPersonDutyAnesthesiaDoctor.OperatorName = AIMSExtension.PublicMethod.OperatorName; - ApplyPersonDutyAnesthesiaDoctor.OperateDate = OperateDate; - BApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctor); - } - - ApplyPersonDuty ApplyPersonDutyInstrumentNurse = new ApplyPersonDuty(); - BApplyPersonDuty.Delete(OperationApplyId, 6); - foreach (int PersonId in SelectInstrumentNurseData) - { - ApplyPersonDutyInstrumentNurse.OperationApplyId = OperationApplyId; - ApplyPersonDutyInstrumentNurse.PersonDutyId = 6; // 器械护士 - ApplyPersonDutyInstrumentNurse.PersonId = PersonId; - ApplyPersonDutyInstrumentNurse.OperatorNo = AIMSExtension.PublicMethod.OperatorNo; - ApplyPersonDutyInstrumentNurse.OperatorName = AIMSExtension.PublicMethod.OperatorName; - ApplyPersonDutyInstrumentNurse.OperateDate = OperateDate; - BApplyPersonDuty.Add(ApplyPersonDutyInstrumentNurse); - } - - ApplyPersonDuty ApplyPersonDutyTourNurse = new ApplyPersonDuty(); - BApplyPersonDuty.Delete(OperationApplyId, 7); - foreach (int PersonId in SelectTourNurseData) - { - ApplyPersonDutyTourNurse.OperationApplyId = OperationApplyId; - ApplyPersonDutyTourNurse.PersonDutyId = 7; // 巡回护士 - ApplyPersonDutyTourNurse.PersonId = PersonId; - ApplyPersonDutyTourNurse.OperatorNo = AIMSExtension.PublicMethod.OperatorNo; - ApplyPersonDutyTourNurse.OperatorName = AIMSExtension.PublicMethod.OperatorName; - ApplyPersonDutyTourNurse.OperateDate = OperateDate; - BApplyPersonDuty.Add(ApplyPersonDutyTourNurse); - } - - ApplyPersonDuty ApplyPersonDutyAnesthesiaDoctorSucceed = new ApplyPersonDuty(); - BApplyPersonDuty.Delete(OperationApplyId, 8); - foreach (int PersonId in SelectAnesthesiaDoctorSucceedData) - { - ApplyPersonDutyAnesthesiaDoctorSucceed.OperationApplyId = OperationApplyId; - ApplyPersonDutyAnesthesiaDoctorSucceed.PersonDutyId = 8; // 麻醉接台 - ApplyPersonDutyAnesthesiaDoctorSucceed.PersonId = PersonId; - ApplyPersonDutyAnesthesiaDoctorSucceed.OperatorNo = AIMSExtension.PublicMethod.OperatorNo; - ApplyPersonDutyAnesthesiaDoctorSucceed.OperatorName = AIMSExtension.PublicMethod.OperatorName; - ApplyPersonDutyAnesthesiaDoctorSucceed.OperateDate = OperateDate; - BApplyPersonDuty.Add(ApplyPersonDutyAnesthesiaDoctorSucceed); - } - - ApplyPersonDuty ApplyPersonDutyInstrumentNurseSucceed = new ApplyPersonDuty(); - BApplyPersonDuty.Delete(OperationApplyId, 9); - foreach (int PersonId in SelectInstrumentNurseSucceedData) - { - ApplyPersonDutyInstrumentNurseSucceed.OperationApplyId = OperationApplyId; - ApplyPersonDutyInstrumentNurseSucceed.PersonDutyId = 9; // 器械接台 - ApplyPersonDutyInstrumentNurseSucceed.PersonId = PersonId; - ApplyPersonDutyInstrumentNurseSucceed.OperatorNo = AIMSExtension.PublicMethod.OperatorNo; - ApplyPersonDutyInstrumentNurseSucceed.OperatorName = AIMSExtension.PublicMethod.OperatorName; - ApplyPersonDutyInstrumentNurseSucceed.OperateDate = OperateDate; - BApplyPersonDuty.Add(ApplyPersonDutyInstrumentNurseSucceed); - } - - ApplyPersonDuty ApplyPersonDutyTourNurseSucceed = new ApplyPersonDuty(); - BApplyPersonDuty.Delete(OperationApplyId, 10); - foreach (int PersonId in SelectTourNurseSucceedData) - { - ApplyPersonDutyTourNurseSucceed.OperationApplyId = OperationApplyId; - ApplyPersonDutyTourNurseSucceed.PersonDutyId = 10; // 巡回接台 - ApplyPersonDutyTourNurseSucceed.PersonId = PersonId; - ApplyPersonDutyTourNurseSucceed.OperatorNo = AIMSExtension.PublicMethod.OperatorNo; - ApplyPersonDutyTourNurseSucceed.OperatorName = AIMSExtension.PublicMethod.OperatorName; - ApplyPersonDutyTourNurseSucceed.OperateDate = OperateDate; - BApplyPersonDuty.Add(ApplyPersonDutyTourNurseSucceed); - } - - } - private bool ValidInput() - { - - bool result = false; - if (dgv.Rows.Count < 1) - { - MessageBox.Show("没有排程数据!"); - } - else if (this.cboOperationRoom.Text.Trim().Length < 1) - { - MessageBox.Show("手术室不能为空!"); - } - else if (DateTime.Parse(AIMSExtension.PublicMethod.SystemDate().ToString("yyyy-MM-dd HH:mm")) > DateTime.Parse(dtpPlanOperationTime.Value.ToString("yyyy-MM-dd HH:mm"))) - { - MessageBox.Show("手术日期小于当前时间!"); - } - else - { - result = true; - } - return result; - } - - private void tsbExit_Click(object sender, EventArgs e) - { - Close(); - } - //麻醉医生 - private void txtAnesthesiaDoctor_Click(object sender, EventArgs e) - { - frmAnesthesiaDoctor = new PublicUI.UI.frmSelectPerson(); - frmAnesthesiaDoctor.PersonType = "麻醉医生"; - frmAnesthesiaDoctor.SelectPersonData =SelectAnesthesiaDoctorData ; - frmAnesthesiaDoctor.FormClosed += new FormClosedEventHandler(AnesthesiaDoctor_FormClosed); - frmAnesthesiaDoctor.ShowDialog(); - } - - void AnesthesiaDoctor_FormClosed(object sender, FormClosedEventArgs e) - { - txtAnesthesiaDoctor.Text = ""; - if (frmAnesthesiaDoctor.SelectPersonData.Count > 0) - { - SelectAnesthesiaDoctorData = frmAnesthesiaDoctor.SelectPersonData; - foreach (int RowId in frmAnesthesiaDoctor.SelectPersonData) - { - txtAnesthesiaDoctor.Text += BPerson.GetModel(RowId).Name + " ,"; - } - txtAnesthesiaDoctor.Text = txtAnesthesiaDoctor.Text.Substring(0, txtAnesthesiaDoctor.Text.LastIndexOf(" ,")); - } - } - //麻醉接台 - private void txtAnesthesiaDoctorSucceed_Click(object sender, EventArgs e) - { - frmAnesthesiaDoctorSucceed = new PublicUI.UI.frmSelectPerson(); - frmAnesthesiaDoctorSucceed.PersonType = "麻醉医生"; - frmAnesthesiaDoctorSucceed.SelectPersonData = SelectAnesthesiaDoctorSucceedData; - frmAnesthesiaDoctorSucceed.FormClosed += new FormClosedEventHandler(frmAnesthesiaDoctorSucceed_FormClosed); - frmAnesthesiaDoctorSucceed.ShowDialog(); - - } - - void frmAnesthesiaDoctorSucceed_FormClosed(object sender, FormClosedEventArgs e) - { - txtAnesthesiaDoctorSucceed.Text = ""; - if (frmAnesthesiaDoctorSucceed.SelectPersonData.Count > 0) - { - SelectAnesthesiaDoctorSucceedData = frmAnesthesiaDoctorSucceed.SelectPersonData; - foreach (int RowId in frmAnesthesiaDoctorSucceed.SelectPersonData) - { - txtAnesthesiaDoctorSucceed.Text += BPerson.GetModel(RowId).Name + " ,"; - } - txtAnesthesiaDoctorSucceed.Text = txtAnesthesiaDoctorSucceed.Text.Substring(0, txtAnesthesiaDoctorSucceed.Text.LastIndexOf(" ,")); - } - } - //器械护士 - private void txtInstrumentNurse_Click(object sender, EventArgs e) - { - - frmInstrumentNurse = new PublicUI.UI.frmSelectPerson(); - frmInstrumentNurse.PersonType = "麻醉护士"; - frmInstrumentNurse.SelectPersonData = SelectInstrumentNurseData; - frmInstrumentNurse.FormClosed += new FormClosedEventHandler(frmInstrumentNurse_FormClosed); - frmInstrumentNurse.ShowDialog(); - } - - void frmInstrumentNurse_FormClosed(object sender, FormClosedEventArgs e) - { - - txtInstrumentNurse.Text = ""; - if (frmInstrumentNurse.SelectPersonData.Count > 0) - { - SelectInstrumentNurseData = frmInstrumentNurse.SelectPersonData ; - foreach (int RowId in frmInstrumentNurse.SelectPersonData) - { - txtInstrumentNurse.Text += BPerson.GetModel(RowId).Name + " ,"; - } - txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, txtInstrumentNurse.Text.LastIndexOf(" ,")); - } - } - //器械护士接台 - private void txtInstrumentNurseSucceed_Click(object sender, EventArgs e) - { - - frmInstrumentNurseSucceed = new PublicUI.UI.frmSelectPerson(); - frmInstrumentNurseSucceed.PersonType = "麻醉护士"; - frmInstrumentNurseSucceed.SelectPersonData = SelectInstrumentNurseSucceedData; - frmInstrumentNurseSucceed.FormClosed += new FormClosedEventHandler(frmInstrumentNurseSucceed_FormClosed); - frmInstrumentNurseSucceed.ShowDialog(); - } - - void frmInstrumentNurseSucceed_FormClosed(object sender, FormClosedEventArgs e) - { - txtInstrumentNurseSucceed.Text = ""; - if (frmInstrumentNurseSucceed.SelectPersonData.Count > 0) - { - SelectInstrumentNurseSucceedData = frmInstrumentNurseSucceed.SelectPersonData; - foreach (int RowId in frmInstrumentNurseSucceed.SelectPersonData) - { - txtInstrumentNurseSucceed.Text += BPerson.GetModel(RowId).Name + " ,"; - } - txtInstrumentNurseSucceed.Text = txtInstrumentNurseSucceed.Text.Substring(0, txtInstrumentNurseSucceed.Text.LastIndexOf(" ,")); - } - } - - //巡回护士 - private void txtTourNurse_Click(object sender, EventArgs e) - { - frmTourNurse = new PublicUI.UI.frmSelectPerson(); - frmTourNurse.PersonType = "麻醉护士"; - frmTourNurse.SelectPersonData = SelectTourNurseData; - frmTourNurse.FormClosed += new FormClosedEventHandler(frmTourNurse_FormClosed); - frmTourNurse.ShowDialog(); - } - - void frmTourNurse_FormClosed(object sender, FormClosedEventArgs e) - { - txtTourNurse.Text = ""; - if (frmTourNurse.SelectPersonData.Count > 0) - { - SelectTourNurseData = frmTourNurse.SelectPersonData; - foreach (int RowId in frmTourNurse.SelectPersonData) - { - txtTourNurse.Text += BPerson.GetModel(RowId).Name + " ,"; - } - txtTourNurse.Text = txtTourNurse.Text.Substring(0, txtTourNurse.Text.LastIndexOf(" ,")); - } - } - //巡回护士接台 - private void txtTourNurseSucceed_Click(object sender, EventArgs e) - { - - frmTourNurseSucceed = new PublicUI.UI.frmSelectPerson(); - frmTourNurseSucceed.PersonType = "麻醉护士"; - frmTourNurseSucceed.SelectPersonData = SelectTourNurseSucceedData; - frmTourNurseSucceed.FormClosed += new FormClosedEventHandler(frmTourNurseSucceed_FormClosed); - frmTourNurseSucceed.ShowDialog(); - } - - void frmTourNurseSucceed_FormClosed(object sender, FormClosedEventArgs e) - { - txtTourNurseSucceed.Text = ""; - if (frmTourNurseSucceed.SelectPersonData.Count > 0) - { - SelectTourNurseSucceedData = frmTourNurseSucceed.SelectPersonData; - foreach (int RowId in frmTourNurseSucceed.SelectPersonData) - { - txtTourNurseSucceed.Text += BPerson.GetModel(RowId).Name + " ,"; - } - txtTourNurseSucceed.Text = txtTourNurseSucceed.Text.Substring(0, txtTourNurseSucceed.Text.LastIndexOf(" ,")); - } - } - - private void txtInstrumentNurse_KeyPress(object sender, KeyPressEventArgs e) - { - e.Handled = true; - } - - private void txtAnesthesiaDoctor_KeyPress(object sender, KeyPressEventArgs e) - { - e.Handled = true; - } - - private void txtAnesthesiaDoctorSucceed_KeyPress(object sender, KeyPressEventArgs e) - { - e.Handled = true; - } - - private void txtInstrumentNurseSucceed_KeyPress(object sender, KeyPressEventArgs e) - { - e.Handled = true; - } - - private void txtTourNurse_KeyPress(object sender, KeyPressEventArgs e) - { - e.Handled = true; - } - - private void txtTourNurseSucceed_KeyPress(object sender, KeyPressEventArgs e) - { - e.Handled = true; - } - - } -} diff --git a/AIMS/OperationFront/frmOperationPlanDetail.resx b/AIMS/OperationFront/frmOperationPlanDetail.resx deleted file mode 100644 index e17192d..0000000 --- a/AIMS/OperationFront/frmOperationPlanDetail.resx +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - \ No newline at end of file diff --git a/AIMS/OperationFront/frmPlanOrder.Designer.cs b/AIMS/OperationFront/frmPlanOrder.Designer.cs deleted file mode 100644 index efd8f82..0000000 --- a/AIMS/OperationFront/frmPlanOrder.Designer.cs +++ /dev/null @@ -1,321 +0,0 @@ -namespace AIMS.OperationFront.UI -{ - partial class frmPlanOrder - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.panel1 = new System.Windows.Forms.Panel(); - this.panel4 = new System.Windows.Forms.Panel(); - this.toolStrip1 = new System.Windows.Forms.ToolStrip(); - this.tsbSava = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); - this.tsbExit = new System.Windows.Forms.ToolStripButton(); - this.panel3 = new System.Windows.Forms.Panel(); - this.dgv = new System.Windows.Forms.DataGridView(); - this.ApplyId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyDepNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.MdrecNoColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PatientNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.SexColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.BirthDayColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyDiagnoseInfoNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperationInfoNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.AnaesthesiaMethodNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationDoctorColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationTypeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.panel2 = new System.Windows.Forms.Panel(); - this.btnDown = new System.Windows.Forms.Button(); - this.btnUp = new System.Windows.Forms.Button(); - this.panel1.SuspendLayout(); - this.panel4.SuspendLayout(); - this.toolStrip1.SuspendLayout(); - this.panel3.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgv)).BeginInit(); - this.panel2.SuspendLayout(); - this.SuspendLayout(); - // - // panel1 - // - this.panel1.Controls.Add(this.panel4); - this.panel1.Controls.Add(this.panel3); - this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel1.Location = new System.Drawing.Point(0, 0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(862, 437); - this.panel1.TabIndex = 0; - // - // panel4 - // - this.panel4.Controls.Add(this.toolStrip1); - this.panel4.Dock = System.Windows.Forms.DockStyle.Top; - this.panel4.Location = new System.Drawing.Point(0, 0); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(862, 50); - this.panel4.TabIndex = 2; - // - // toolStrip1 - // - this.toolStrip1.BackColor = System.Drawing.Color.AliceBlue; - this.toolStrip1.Font = new System.Drawing.Font("微软雅黑", 10.5F); - this.toolStrip1.ImageScalingSize = new System.Drawing.Size(25, 25); - this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.tsbSava, - this.toolStripSeparator4, - this.tsbExit}); - this.toolStrip1.Location = new System.Drawing.Point(0, 0); - this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(862, 49); - this.toolStrip1.TabIndex = 4; - this.toolStrip1.Text = "toolStrip1"; - // - // tsbSava - // - this.tsbSava.Font = new System.Drawing.Font("微软雅黑", 9F); - this.tsbSava.Image = global::AIMS.Properties.Resources.图标_保存; - this.tsbSava.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tsbSava.Name = "tsbSava"; - this.tsbSava.Size = new System.Drawing.Size(52, 46); - this.tsbSava.Text = " 保存 "; - this.tsbSava.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.tsbSava.Click += new System.EventHandler(this.tsbSava_Click); - // - // toolStripSeparator4 - // - this.toolStripSeparator4.Name = "toolStripSeparator4"; - this.toolStripSeparator4.Size = new System.Drawing.Size(6, 49); - // - // tsbExit - // - this.tsbExit.Font = new System.Drawing.Font("微软雅黑", 9F); - this.tsbExit.Image = global::AIMS.Properties.Resources.图标_关闭当前页; - this.tsbExit.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tsbExit.Name = "tsbExit"; - this.tsbExit.Size = new System.Drawing.Size(52, 46); - this.tsbExit.Text = " 关闭 "; - this.tsbExit.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.tsbExit.Click += new System.EventHandler(this.tsbExit_Click_1); - // - // panel3 - // - this.panel3.Controls.Add(this.dgv); - this.panel3.Controls.Add(this.panel2); - this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel3.Location = new System.Drawing.Point(0, 0); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(862, 437); - this.panel3.TabIndex = 1; - // - // dgv - // - this.dgv.AllowUserToAddRows = false; - this.dgv.BackgroundColor = System.Drawing.Color.White; - this.dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgv.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.ApplyId, - this.ApplyDepNameColumn, - this.MdrecNoColumn, - this.PatientNameColumn, - this.SexColumn, - this.BirthDayColumn, - this.ApplyDiagnoseInfoNameColumn, - this.ApplyOperationInfoNameColumn, - this.AnaesthesiaMethodNameColumn, - this.OperationDoctorColumn, - this.OperationTypeColumn}); - this.dgv.Location = new System.Drawing.Point(3, 52); - this.dgv.Name = "dgv"; - this.dgv.RowHeadersVisible = false; - this.dgv.RowTemplate.Height = 23; - this.dgv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dgv.Size = new System.Drawing.Size(806, 385); - this.dgv.TabIndex = 5; - // - // ApplyId - // - this.ApplyId.DataPropertyName = "ApplyId"; - this.ApplyId.Frozen = true; - this.ApplyId.HeaderText = "ApplyId"; - this.ApplyId.MinimumWidth = 2; - this.ApplyId.Name = "ApplyId"; - this.ApplyId.ReadOnly = true; - this.ApplyId.Width = 2; - // - // ApplyDepNameColumn - // - this.ApplyDepNameColumn.DataPropertyName = "ApplyDepName"; - this.ApplyDepNameColumn.HeaderText = "申请科室"; - this.ApplyDepNameColumn.Name = "ApplyDepNameColumn"; - this.ApplyDepNameColumn.ReadOnly = true; - this.ApplyDepNameColumn.Width = 80; - // - // MdrecNoColumn - // - this.MdrecNoColumn.DataPropertyName = "MdrecNo"; - this.MdrecNoColumn.HeaderText = "住院号"; - this.MdrecNoColumn.Name = "MdrecNoColumn"; - this.MdrecNoColumn.ReadOnly = true; - this.MdrecNoColumn.Width = 80; - // - // PatientNameColumn - // - this.PatientNameColumn.DataPropertyName = "PatientName"; - this.PatientNameColumn.HeaderText = "患者姓名"; - this.PatientNameColumn.Name = "PatientNameColumn"; - this.PatientNameColumn.ReadOnly = true; - this.PatientNameColumn.Width = 80; - // - // SexColumn - // - this.SexColumn.DataPropertyName = "Sex"; - this.SexColumn.HeaderText = "性别"; - this.SexColumn.Name = "SexColumn"; - this.SexColumn.ReadOnly = true; - this.SexColumn.Width = 60; - // - // BirthDayColumn - // - this.BirthDayColumn.DataPropertyName = "BirthDay"; - this.BirthDayColumn.HeaderText = "出生日期"; - this.BirthDayColumn.Name = "BirthDayColumn"; - this.BirthDayColumn.Width = 80; - // - // ApplyDiagnoseInfoNameColumn - // - this.ApplyDiagnoseInfoNameColumn.DataPropertyName = "ApplyDiagnoseInfoName"; - this.ApplyDiagnoseInfoNameColumn.HeaderText = "术前诊断"; - this.ApplyDiagnoseInfoNameColumn.Name = "ApplyDiagnoseInfoNameColumn"; - this.ApplyDiagnoseInfoNameColumn.ReadOnly = true; - // - // ApplyOperationInfoNameColumn - // - this.ApplyOperationInfoNameColumn.DataPropertyName = "ApplyOperationInfoName"; - this.ApplyOperationInfoNameColumn.HeaderText = "拟实手术"; - this.ApplyOperationInfoNameColumn.Name = "ApplyOperationInfoNameColumn"; - this.ApplyOperationInfoNameColumn.ReadOnly = true; - // - // AnaesthesiaMethodNameColumn - // - this.AnaesthesiaMethodNameColumn.DataPropertyName = "AnaesthesiaMethodName"; - this.AnaesthesiaMethodNameColumn.HeaderText = "拟施麻醉"; - this.AnaesthesiaMethodNameColumn.Name = "AnaesthesiaMethodNameColumn"; - this.AnaesthesiaMethodNameColumn.ReadOnly = true; - // - // OperationDoctorColumn - // - this.OperationDoctorColumn.DataPropertyName = "OperationDoctor"; - this.OperationDoctorColumn.HeaderText = "术者"; - this.OperationDoctorColumn.Name = "OperationDoctorColumn"; - this.OperationDoctorColumn.ReadOnly = true; - // - // OperationTypeColumn - // - this.OperationTypeColumn.DataPropertyName = "OperationType"; - this.OperationTypeColumn.HeaderText = "OperationType"; - this.OperationTypeColumn.MinimumWidth = 2; - this.OperationTypeColumn.Name = "OperationTypeColumn"; - this.OperationTypeColumn.ReadOnly = true; - this.OperationTypeColumn.Width = 2; - // - // panel2 - // - this.panel2.Controls.Add(this.btnDown); - this.panel2.Controls.Add(this.btnUp); - this.panel2.Dock = System.Windows.Forms.DockStyle.Right; - this.panel2.Location = new System.Drawing.Point(810, 0); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(52, 437); - this.panel2.TabIndex = 0; - // - // btnDown - // - this.btnDown.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnDown.Location = new System.Drawing.Point(14, 250); - this.btnDown.Name = "btnDown"; - this.btnDown.Size = new System.Drawing.Size(26, 123); - this.btnDown.TabIndex = 8; - this.btnDown.Text = "↓"; - this.btnDown.UseVisualStyleBackColor = true; - this.btnDown.Click += new System.EventHandler(this.btnDown_Click); - // - // btnUp - // - this.btnUp.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.btnUp.Location = new System.Drawing.Point(14, 92); - this.btnUp.Name = "btnUp"; - this.btnUp.Size = new System.Drawing.Size(26, 123); - this.btnUp.TabIndex = 7; - this.btnUp.Text = "↑"; - this.btnUp.UseVisualStyleBackColor = true; - this.btnUp.Click += new System.EventHandler(this.btnUp_Click); - // - // frmPlanOrder - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(862, 437); - this.ControlBox = false; - this.Controls.Add(this.panel1); - this.Name = "frmPlanOrder"; - this.Load += new System.EventHandler(this.frmPlanOrder_Load); - this.panel1.ResumeLayout(false); - this.panel4.ResumeLayout(false); - this.panel4.PerformLayout(); - this.toolStrip1.ResumeLayout(false); - this.toolStrip1.PerformLayout(); - this.panel3.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgv)).EndInit(); - this.panel2.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Button btnDown; - private System.Windows.Forms.Button btnUp; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.ToolStrip toolStrip1; - private System.Windows.Forms.ToolStripButton tsbSava; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; - private System.Windows.Forms.ToolStripButton tsbExit; - private System.Windows.Forms.DataGridView dgv; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyId; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDepNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn MdrecNoColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn PatientNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn SexColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn BirthDayColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDiagnoseInfoNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationInfoNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn AnaesthesiaMethodNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationDoctorColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationTypeColumn; - } -} \ No newline at end of file diff --git a/AIMS/OperationFront/frmPlanOrder.cs b/AIMS/OperationFront/frmPlanOrder.cs deleted file mode 100644 index 695fa91..0000000 --- a/AIMS/OperationFront/frmPlanOrder.cs +++ /dev/null @@ -1,90 +0,0 @@ -using AIMSBLL; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace AIMS.OperationFront.UI -{ - public partial class frmPlanOrder : Form - { - public DateTime Time; - public int RoomId; - public frmPlanOrder() - { - InitializeComponent(); - } - - private void frmPlanOrder_Load(object sender, EventArgs e) - { - AIMSExtension.PublicMethod.SetDgvAttribute(dgv); - int x = (System.Windows.Forms.SystemInformation.WorkingArea.Width - this.Size.Width) / 2; - int y = (System.Windows.Forms.SystemInformation.WorkingArea.Height - this.Size.Height) / 2 - 60; - this.StartPosition = FormStartPosition.Manual; - this.Location = (Point)new Size(x, y); - dgv.DataSource = BOperationApply.GetOperationRoomDataTable(Time, RoomId); - } - - private void btnUp_Click(object sender, EventArgs e) - { - if (this.dgv.Rows.Count == 0) - { - return; - } - int rowindex = dgv.CurrentRow.Index; - if (rowindex == 0) - { - MessageBox.Show("已经到达第一行!"); - return; - } - else - { - object[] _rowData = (this.dgv.DataSource as DataTable).Rows[rowindex].ItemArray; - (this.dgv.DataSource as DataTable).Rows[rowindex].ItemArray = (this.dgv.DataSource as DataTable).Rows[rowindex - 1].ItemArray; - (this.dgv.DataSource as DataTable).Rows[rowindex - 1].ItemArray = _rowData; - this.dgv.CurrentCell = this.dgv.Rows[rowindex - 1].Cells[0]; - } - } - - private void btnDown_Click(object sender, EventArgs e) - { - if (this.dgv.Rows.Count == 0) - { - return; - } - int rowindex = dgv.CurrentRow.Index; - if (rowindex == dgv.Rows.Count - 1) - { - MessageBox.Show("已经到达最后一行!"); - return; - } - else - { - object[] _rowData = (this.dgv.DataSource as DataTable).Rows[rowindex].ItemArray; - (this.dgv.DataSource as DataTable).Rows[rowindex].ItemArray = (this.dgv.DataSource as DataTable).Rows[rowindex + 1].ItemArray; - (this.dgv.DataSource as DataTable).Rows[rowindex + 1].ItemArray = _rowData; - this.dgv.CurrentCell = this.dgv.Rows[rowindex + 1].Cells[0]; - } - } - - private void tsbSava_Click(object sender, EventArgs e) - { - for (int i = 0; i < dgv.Rows.Count; i++) - { - int ApplyId = int.Parse(dgv.Rows[i].Cells["ApplyId"].Value.ToString()); - - BOperationApply.UpdatePlanOrder(ApplyId, i + 1); - } - Close(); - } - - private void tsbExit_Click_1(object sender, EventArgs e) - { - Close(); - } - } -} diff --git a/AIMS/OperationFront/frmPlanOrder.resx b/AIMS/OperationFront/frmPlanOrder.resx deleted file mode 100644 index 2d2da1c..0000000 --- a/AIMS/OperationFront/frmPlanOrder.resx +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - \ No newline at end of file diff --git a/AIMS/OperationFront/frmSchedulePlan.cs b/AIMS/OperationFront/frmSchedulePlan.cs deleted file mode 100644 index 8f078d9..0000000 --- a/AIMS/OperationFront/frmSchedulePlan.cs +++ /dev/null @@ -1,1712 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using DevComponents.DotNetBar.Schedule; -using DevComponents.DotNetBar; -using DevComponents.Schedule.Model; -using DevComponents.DotNetBar.Rendering; - -namespace ScheduleTestProject -{ - public partial class frmSchedulePlan : Office2007Form - { - #region Private variables - - private int _CustomUserId = 1; - private int _ColorCycle; - - #region _MyAppColorTable - - private ColorDef[] _MyAppColorTable = new ColorDef[] - { - new ColorDef(0x4B71A2), // DefaultBorder - - new ColorDef(new int[] {0x00cccc, 0x006B6B}, // DefaultBackground - new float[] {0f, 1f}, 90f), - - new ColorDef(0x28518E), // BlueBorder - - new ColorDef(new int[] {0x00aaFF, 0x0047B2}, // BlueBackground - new float[] {0f, 1f}, 90f), - - new ColorDef(0x2C6524), // GreenBorder - - new ColorDef(new int[] {0x00ff00, 0x007d00}, // GreenBackground - new float[] {0f, 1f}, 90f), - - new ColorDef(0x8B3E0A), // OrangeBorder - - new ColorDef(new int[] {0xFFB200, 0xB26B00}, // OrangeBackground - new float[] {0f, 1f}, 90f), - - new ColorDef(0x3E2771), // PurpleBorder - - new ColorDef(new int[] {0xEABFFE, 0x660099}, // PurpleBackground - new float[] {0f, 1f}, 90f), - - new ColorDef(0x86171C), // RedBorder - - new ColorDef(new int[] {0xFFb0b0, 0xcc0000}, // RedBackground - new float[] {0f, 1f}, 90f), - - new ColorDef(0x7C7814), // YellowBorder - - new ColorDef(new int[] {0xFFFF00, 0xB2B300}, // YellowBackground - new float[] {0f, 1f}, 90f), - - new ColorDef(-1), // BusyTimeMarker - new ColorDef(0xFFFFFF), // FreeTimeMarker - new ColorDef(0x000000) // OutOfOfficeTimeMarker - }; - - #endregion - - #endregion - - public frmSchedulePlan() - { - InitializeComponent(); - - // Set our Calendar Model - - calendarView1.CalendarModel = new CalendarModel(); - - // And add some sample appointments - - AddSampleAppointments(); - } - - #region AddSampleAppointments - - /// - /// Adds some example appointments to the Calendar Model - /// - private void AddSampleAppointments() - { - // Recurring appointment - - Appointment appointment = new Appointment(); - - appointment.Subject = "Recurring Appointment every 3rd week day"; - appointment.Description = "Custom description for this appointment"; - appointment.Tooltip = "This is a Custom tooltip for this appointment"; - appointment.CategoryColor = Appointment.CategoryOrange; - - appointment.StartTime = DateTime.Today.AddHours(11.25); - appointment.EndTime = appointment.StartTime.AddHours(1); - - appointment.Recurrence = new AppointmentRecurrence(); - - // Set recurrence type to weekly - - appointment.Recurrence.RecurrenceType = eRecurrencePatternType.Daily; - appointment.Recurrence.Daily.RepeatOnDaysOfWeek = eDailyRecurrenceRepeat.All; - appointment.Recurrence.Daily.RepeatInterval = 10; - appointment.Recurrence.RangeLimitType = eRecurrenceRangeLimitType.RangeEndDate; - appointment.Recurrence.RangeEndDate = DateTime.Today.AddDays(120); - - // Add appointment to the model - - calendarView1.CalendarModel.Appointments.Add(appointment); - - DateTime date = DateTime.Today.AddHours(8); - - // Multi-day appointment #1 - - AddAppointment("#1 Multiple days Appointment", - date, date.AddDays(4), - Appointment.CategoryBlue, Appointment.TimerMarkerDefault); - - // Multi-day appointment #2 - - AddAppointment("#2 Multiple days Appointment", - date.AddDays(2), date.AddDays(14.5), - Appointment.CategoryGreen, Appointment.TimerMarkerDefault); - - // Create some new appointments and add them to the model - - Appointment ap = AddAppointment("Busy Appointment", - date, date.AddMinutes(180), - Appointment.CategoryYellow, Appointment.TimerMarkerBusy); - - // Make sure this appointment is visible - - calendarView1.EnsureVisible(ap); - - AddAppointment("Out Of Office Appointment", - date.AddHours(1), date.AddHours(2), - Appointment.CategoryBlue, Appointment.TimerMarkerOutOfOffice); - - date = date.AddDays(1); - - AddAppointment("Free Appointment", - date.AddHours(2), date.AddMinutes(170), - Appointment.CategoryRed, Appointment.TimerMarkerFree); - - AddAppointment("Tentative Appointment", - date.AddHours(4), date.AddHours(6), - Appointment.CategoryDefault, Appointment.TimerMarkerTentative); - - date = date.AddDays(1); - - AddAppointment("Default Appointment", - date.AddHours(1.5), date.AddHours(4.25), - Appointment.CategoryPurple, Appointment.TimerMarkerDefault); - } - - #region AddAppointment - - /// - /// Adds the specified appointment to the model - /// - /// Appointment subject - /// Appointment start time - /// Appointment end time - /// Appointment color - /// Appointment marker - private Appointment AddAppointment(string s, - DateTime startTime, DateTime endTime, string color, string marker) - { - Appointment appointment = new Appointment(); - - appointment.StartTime = startTime; - appointment.EndTime = endTime; - - appointment.Subject = s; - appointment.Description = "Custom description for this appointment"; - appointment.CategoryColor = color; - appointment.TimeMarkedAs = marker; - - appointment.Tooltip = "This is a Custom tooltip for this appointment"; - - calendarView1.CalendarModel.Appointments.Add(appointment); - - return (appointment); - } - - #endregion - - #endregion - - #region View change - - /// - /// Day view selection - /// - /// PopupItem - /// EventArgs - private void btnDay_Click(object sender, EventArgs e) - { - calendarView1.SelectedView = eCalendarView.Day; - } - - /// - /// Week view selection - /// - /// PopupItem - /// EventArgs - private void btnWeek_Click(object sender, EventArgs e) - { - calendarView1.SelectedView = eCalendarView.Week; - } - - /// - /// Month view selection - /// - /// PopupItem - /// EventArgs - private void btnMonth_Click(object sender, EventArgs e) - { - calendarView1.SelectedView = eCalendarView.Month; - } - - /// - /// TimeLine view selection - /// - /// PopupItem - /// EventArgs - private void btnTimeLine_Click(object sender, EventArgs e) - { - calendarView1.SelectedView = eCalendarView.TimeLine; - } - - #endregion - - #region CalendarView1_ItemDoubleClick - - /// - /// Handles Appointment View double clicks - /// - /// AppointmentView - /// MouseEventArgs - private void CalendarView1_ItemDoubleClick(object sender, MouseEventArgs e) - { - AppointmentView item = sender as AppointmentView; - - if (item != null) - { - Appointment ap = item.Appointment; - - string s = string.Format( - "Subject: {0}\nDescription: {1}\nToolTip: {2}\n\n" + - "StartTime: {3}\nEndTime: {4}\n\n" + - "CategoryColor: {5}\nTimeMarkedAs: {6}", - ap.Subject, ap.Description, ap.Tooltip, - ap.StartTime, ap.EndTime, - String.IsNullOrEmpty(ap.CategoryColor) ? "Default" : ap.CategoryColor, - String.IsNullOrEmpty(ap.TimeMarkedAs) ? "Default" : ap.TimeMarkedAs); - - MessageBox.Show(s); - } - } - - #endregion - - #region CalendarView1_MouseUp - - /// - /// Handles CalendarView MouseUp events - /// - /// Varied sender - /// MouseEventArgs - private void CalendarView1_MouseUp(object sender, MouseEventArgs e) - { - // Process Right MouseUp event in order to - // present view specific ContextMenu - - if (e.Button == MouseButtons.Right) - { - // Main Calendar View hit - - if (sender is BaseView) - BaseViewMouseUp(sender, e); - - // AppointmentView hit - - else if (sender is AppointmentView) - AppointmentViewMouseUp(sender); - - // AllDayPanel hit - - else if (sender is AllDayPanel) - AllDayPanelMouseUp(sender); - - // TimeRulerPanel - - else if (sender is TimeRulerPanel) - TimeRulerPanelMouseUp(); - - // TimeLineHeaderPanel - - else if (sender is TimeLineHeaderPanel) - TimeLineHeaderPanelMouseUp(sender, e); - - // CustomCalendarItem - - else if (sender is CustomCalendarItem) - CustomCalendarItemMouseUp(sender); - - else if (sender is BaseItem) - { - BaseItem bi = sender as BaseItem; - - if (bi.Parent is CustomCalendarItem) - CustomCalendarItemMouseUp(bi.Parent); - } - } - } - - #region BaseViewMouseUp - - /// - /// Handles Day, Week, and Month View MouseUp events - /// - /// BaseView - /// MouseEventArgs - private void BaseViewMouseUp(object sender, MouseEventArgs e) - { - BaseView view = sender as BaseView; - eViewArea area = view.GetViewAreaFromPoint(e.Location); - - if (area == eViewArea.InContent) - InContentMouseUp(view, e); - - else if (area == eViewArea.InDayOfWeekHeader) - InHeaderMouseUp(view); - - else if (area == eViewArea.InSideBarPanel) - InSideBarMouseUp(view); - - else if (area == eViewArea.InCondensedView) - InCondensedViewMouseUp(); - } - - #region InContentMouseUp - - /// - /// Handles BaseView InContent MouseUp events - /// - /// BaseView - /// MouseEventArgs - private void InContentMouseUp(BaseView view, MouseEventArgs e) - { - // Get the DateSelection start and end - // from the current mouse location - - DateTime startDate, endDate; - - if (calendarView1.GetDateSelectionFromPoint( - e.Location, out startDate, out endDate) == true) - { - // If this date already falls outside the currently - // selected range (DateSelectionStart and DateSelectionEnd) - // then select the new range - - if (IsDateSelected(startDate, endDate) == false) - { - calendarView1.DateSelectionStart = startDate; - calendarView1.DateSelectionEnd = endDate; - } - } - - // Remove any previously added view specific items - - //for (int i = InContentContextMenu.SubItems.Count - 1; i > 3; i--) - // InContentContextMenu.SubItems.RemoveAt(i); - - // If this is a TimeLine view, then add a couple - // of extra items - - if (view is TimeLineView) - { - ButtonItem bi = new ButtonItem(); - - // Page Navigator - - bi.Text = (calendarView1.TimeLineShowPageNavigation == true) - ? "Hide Page Navigator" : "Show Page Navigator"; - - bi.BeginGroup = true; - - bi.Click += BiPageNavigatorClick; - - //InContentContextMenu.SubItems.Add(bi); - - //// Condensed Visibility - - //if (calendarView1.TimeLineCondensedViewVisibility == - // eCondensedViewVisibility.Hidden) - //{ - // bi = new ButtonItem("", "Show Condensed View"); - // bi.Click += BiCondensedClick; - - // InContentContextMenu.SubItems.Add(bi); - //} - } - - //ShowContextMenu(InContentContextMenu); - } - - #region BiCondensedClick - - /// - /// Handles InContentContextMenu Condensed selection - /// - /// - /// - private void BiCondensedClick(object sender, EventArgs e) - { - calendarView1.TimeLineCondensedViewVisibility = - eCondensedViewVisibility.AllResources; - } - - #endregion - - #region BiPageNavigatorClick - - /// - /// Handles InContentContextMenu PageNavigator selection - /// - /// - /// - private void BiPageNavigatorClick(object sender, EventArgs e) - { - calendarView1.TimeLineShowPageNavigation = - (calendarView1.TimeLineShowPageNavigation == false); - } - - #endregion - - #region IsDateSelected - - /// - /// Determines if the given date range is within the currently selected - /// CalendarView selection range (DateSelectionStart to DateSelectionEnd) - /// - /// Start date range - /// End date range - /// True if selected - private bool IsDateSelected(DateTime startDate, DateTime endDate) - { - if (calendarView1.DateSelectionStart.HasValue && calendarView1.DateSelectionEnd.HasValue) - { - if (calendarView1.DateSelectionStart.Value <= startDate && - calendarView1.DateSelectionEnd.Value >= endDate) - return (true); - } - - return (false); - } - - #endregion - - #region miAdd_Click - - /// - /// Handles BaseView "Add Appointment" - /// ContextMenu selections - /// - /// MenuItem - /// EventArgs - void miAdd_Click(object sender, EventArgs e) - { - DateTime startDate = calendarView1.DateSelectionStart.GetValueOrDefault(); - DateTime endDate = calendarView1.DateSelectionEnd.GetValueOrDefault(); - - AddNewAppointment(startDate, endDate); - } - - /// - /// Adds a new appointment at the user selected time - /// - private Appointment AddNewAppointment(DateTime startDate, DateTime endDate) - { - // Create new appointment and add it to the model - // Appointment will show up in the view automatically - - Appointment appointment = new Appointment(); - - appointment.StartTime = startDate; - appointment.EndTime = endDate; - - appointment.Subject = "New " + - appointment.CategoryColor + " appointment!"; - - appointment.Description = "This is a new appointment"; - appointment.Tooltip = "This is a Custom tooltip for this new appointment"; - - // Add appointment to the model - - calendarView1.CalendarModel.Appointments.Add(appointment); - - return (appointment); - } - - #endregion - - #endregion - - #region InHeaderMouseUp - - /// - /// Handles BaseView InHeader MouseUp events. - /// - /// BaseView - private void InHeaderMouseUp(BaseView view) - { - //if (view is MonthView) - //{ - // MonthView mv = view as MonthView; - - // // The View is a month view, so let the user - // // hide or show the SideBar panel - - // if (mv.IsSideBarVisible == true) - // { - // InHeaderHideSideBarContextItem.Visible = true; - // InHeaderShowSideBarContextItem.Visible = false; - // } - // else - // { - // InHeaderHideSideBarContextItem.Visible = false; - // InHeaderShowSideBarContextItem.Visible = true; - // } - //} - //else - //{ - // InHeaderHideSideBarContextItem.Visible = false; - // InHeaderShowSideBarContextItem.Visible = false; - //} - - //InHeaderContextMenu.Tag = view; - - //ShowContextMenu(InHeaderContextMenu); - } - - #region miCalendarColor_Click - - /// - /// Handles selection of a ContextMenu color item - /// - /// MenuItem - /// EventArgs - void miCalendarColor_Click(object sender, EventArgs e) - { - ButtonItem mi = sender as ButtonItem; - BaseView view = mi.Parent.Tag as BaseView; - - if (view != null) - view.CalendarColor = (eCalendarColor)Enum.Parse(typeof(eCalendarColor), mi.Text); - } - - #endregion - - #region SideBar show/hide - - /// - /// Handles ContextMenu "Show" for the SideBar panel - /// - /// MenuItem - /// EventArgs - void miShowSideBar_Click(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - MonthView view = bi.Parent.Tag as MonthView; - - if (view != null) - view.IsSideBarVisible = true; - } - - /// - /// Handles ContextMenu "Hide" for the SideBar panel - /// - /// MenuItem - /// EventArgs - void miHideSideBar_Click(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - MonthView view = bi.Parent.Tag as MonthView; - - if (view != null) - view.IsSideBarVisible = false; - } - - - #endregion - - #endregion - - #region InSideBarMouseUp - - /// - /// Handles SideBar MouseUp events - /// - /// BaseView - private void InSideBarMouseUp(BaseView view) - { - //InSideBarContextMenu.Tag = view; - - //ShowContextMenu(InSideBarContextMenu); - } - - #endregion - - #region InCondensedViewMouseUp - - /// - /// Handles Mouse Up events in the CondensedView - /// area of the control - /// - private void InCondensedViewMouseUp() - { - //ShowContextMenu(CondensedViewContextMenu); - } - - #endregion - - #endregion - - #region AppointmentViewMouseUp - - /// - /// Handles AppointmentView MouseUp events - /// - /// AppointmentView - private void AppointmentViewMouseUp(object sender) - { - AppointmentView view = sender as AppointmentView; - - // Select the appointment - view.IsSelected = true; - - //// Let the user delete the appointment - //AppDeleteContextItem.Enabled = (view.Appointment.IsRecurringInstance == false); - //AppointmentContextMenu.Tag = view; - - //ShowContextMenu(AppointmentContextMenu); - } - - #region miDelete_Click - - /// - /// Handles BaseView "Delete Appointment" - /// ContextMenu selections - /// - /// MenuItem - /// EventArgs - void miDelete_Click(object sender, EventArgs e) - { - ButtonItem mi = sender as ButtonItem; - AppointmentView view = mi.Parent.Tag as AppointmentView; - - if (view != null) - calendarView1.CalendarModel.Appointments.Remove(view.Appointment); - } - - #endregion - - #region Color item code - - void CategoryColor_Click(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - AppointmentView view = bi.Parent.Tag as AppointmentView; - - if (view != null) - view.Appointment.CategoryColor = bi.Text; - } - - #endregion - - #region Marker item code - - void TimeMarker_Click(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - AppointmentView view = bi.Parent.Tag as AppointmentView; - - if (view != null) - { - view.Appointment.TimeMarkedAs = - bi.Text.Equals("Default") ? null : bi.Text; - } - } - - #endregion - - #endregion - - #region AllDayPanelMouseUp - - /// - /// Handles AllDayPanel MouseUp events - /// - /// AllDayPanel - private void AllDayPanelMouseUp(object sender) - { - // Let the user Shrink and expand the panel - // by 20 each time - - //AllDayShrinkContextItem.Enabled = calendarView1.FixedAllDayPanelHeight == -1 || - // calendarView1.FixedAllDayPanelHeight > 20; - - //AllDayGrowContextItem.Enabled = calendarView1.FixedAllDayPanelHeight < 200; - //AllDayReset.Enabled = calendarView1.FixedAllDayPanelHeight != -1; - //AllDayPanelContextMenu.Tag = sender; - - //ShowContextMenu(AllDayPanelContextMenu); - } - - /// - /// Handles "Shrink" ContextMenu selections - /// - /// MenuItem - /// EventArgs - void miShrink_Click(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - AllDayPanel panel = bi.Parent.Tag as AllDayPanel; - - if (calendarView1.FixedAllDayPanelHeight == -1) - calendarView1.FixedAllDayPanelHeight = panel.PanelHeight - 20; - - else - { - calendarView1.FixedAllDayPanelHeight = - Math.Max(20, calendarView1.FixedAllDayPanelHeight - 20); - } - } - - /// - /// Handles "Grow" ContextMenu selections - /// - /// MenuItem - /// EventArgs - void miGrow_Click(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - AllDayPanel panel = bi.Parent.Tag as AllDayPanel; - - if (calendarView1.FixedAllDayPanelHeight == -1) - calendarView1.FixedAllDayPanelHeight = panel.PanelHeight + 20; - - else - { - calendarView1.FixedAllDayPanelHeight = - Math.Min(500, calendarView1.FixedAllDayPanelHeight + 20); - } - } - - /// - /// Handles "Reset" ContextMenu selections - /// - /// MenuItem - /// EventArgs - void miReset_Click(object sender, EventArgs e) - { - calendarView1.FixedAllDayPanelHeight = -1; - } - - #endregion - - #region TimeRulerPanelMouseUp - - /// - /// Handles TimeRulerPanel MouseUp events - /// - private void TimeRulerPanelMouseUp() - { - //ShowContextMenu(TimeRulerPanelContextMenu); - } - - /// - /// Handles "TimeSlotDuration" ContextMenu selections - /// - /// MenuItem - /// EventArgs - void miTimeDuration_Click(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - - int duration; - - if (int.TryParse(bi.Text, out duration) == true) - calendarView1.TimeSlotDuration = duration; - } - - #endregion - - #region TimeLineHeaderPanelMouseUp - - /// - /// Handles Mouse Up events in the TimeLineHeaderPanel. - /// - /// (The TimeLineHeaderPanel is the area at the top of the - /// TimeLineView that holds the Period and Interval Headers.) - /// - /// TimeLineHeaderPanel - /// MouseEventArgs - private void TimeLineHeaderPanelMouseUp(object sender, MouseEventArgs e) - { - TimeLineHeaderPanel tp = sender as TimeLineHeaderPanel; - - if (tp != null) - { - eViewArea area = tp.GetViewAreaFromPoint(e.Location); - - if (area == eViewArea.InPeriodHeader) - InPeriodHeaderMouseUp(); - - else if (area == eViewArea.InIntervalHeader) - InIntervalHeaderMouseUp(); - } - } - - #region InPeriodHeaderMouseUp - - /// - /// Handles MouseUp events in the Period Header - /// - private void InPeriodHeaderMouseUp() - { - //ShowContextMenu(PeriodHeaderContextMenu); - } - - #endregion - - #region InPeriodHeaderHide_Click - - /// - /// Handles Period Header "Hide" menu selections - /// - /// - /// - private void InPeriodHeaderHide_Click(object sender, EventArgs e) - { - calendarView1.TimeLineShowPeriodHeader = false; - } - - #endregion - - #region PeriodHeaderContextMenu Period change - - /// - /// Handles PeriodHeaderContextMenu "Minute" selection - /// - /// - /// - private void btnPeriodMinutes_CheckedChanged(object sender, EventArgs e) - { - //if (btnPeriodMinutes.Checked == true) - // calendarView1.TimeLinePeriod = eTimeLinePeriod.Minutes; - } - - /// - /// Handles PeriodHeaderContextMenu "Hours" selection - /// - /// - /// - private void btnPeriodHours_CheckedChanged(object sender, EventArgs e) - { - //if (btnPeriodHours.Checked == true) - // calendarView1.TimeLinePeriod = eTimeLinePeriod.Hours; - } - - /// - /// Handles PeriodHeaderContextMenu "Days" selection - /// - /// - /// - private void btnPeriodDays_CheckedChanged(object sender, EventArgs e) - { - //if (btnPeriodDays.Checked == true) - // calendarView1.TimeLinePeriod = eTimeLinePeriod.Days; - } - - /// - /// Handles PeriodHeaderContextMenu "Years" selection - /// - /// - /// - private void btnPeriodYears_CheckedChanged(object sender, EventArgs e) - { - //if (btnPeriodYears.Checked == true) - // calendarView1.TimeLinePeriod = eTimeLinePeriod.Years; - } - - #endregion - - #region InIntervalHeaderMouseUp - - /// - /// Handles MouseUp events in the IntervalHeader - /// - private void InIntervalHeaderMouseUp() - { - //// Get rid of any previously added non-essential items - - //for (int i = IntervalHeaderContextMenu.SubItems.Count - 1; i > 2; i--) - // IntervalHeaderContextMenu.SubItems.RemoveAt(i); - - //// If the Period Header is not visible, present the user - //// with the items to be able to re-show it - - //lblPeriodHeader2.Visible = - // (calendarView1.TimeLineShowPeriodHeader == false); - - //btnIntervalHeaderShow.Visible = - // (calendarView1.TimeLineShowPeriodHeader == false); - - //// Add some Interval time selection options - //// for the current selected Interval Period - - //switch (calendarView1.TimeLinePeriod) - //{ - // case eTimeLinePeriod.Minutes: - // AddIntervalMinutes(); - // break; - - // case eTimeLinePeriod.Hours: - // AddIntervalHours(); - // break; - - // case eTimeLinePeriod.Days: - // AddIntervalDays(); - // break; - - // case eTimeLinePeriod.Years: - // AddIntervalYears(); - // break; - //} - - //ShowContextMenu(IntervalHeaderContextMenu); - } - - #region Interval time support - - #region AddIntervalMinutes - - /// - /// Adds Interval "Minute" items - /// - private void AddIntervalMinutes() - { - for (int i = 1; i <= 60; i++) - { - if (60 % i == 0) - AddIntervalItem(i); - } - } - - #endregion - - #region AddIntervalHours - - /// - /// Adds Interval "Hour" items - /// - private void AddIntervalHours() - { - for (int i = 1; i <= 24; i++) - { - if (24 % i == 0) - AddIntervalItem(i); - } - } - - #endregion - - #region AddIntervalDays - - /// - /// Adds Interval "Day" items - /// - private void AddIntervalDays() - { - for (int i = 1; i <= 10; i++) - AddIntervalItem(i); - - for (int i = 30; i < 200; i += 30) - AddIntervalItem(i); - - AddIntervalItem(365); - } - - #endregion - - #region AddIntervalYears - - /// - /// Adds Interval "Year" items - /// - private void AddIntervalYears() - { - for (int i = 1; i <= 10; i++) - AddIntervalItem(i); - } - - #endregion - - #region AddIntervalItem - - /// - /// Adds individual Interval items - /// - /// Item to add - private void AddIntervalItem(int i) - { - ButtonItem bi = new ButtonItem("", i.ToString()); - - bi.Click += BiIntervalClick; - - if (calendarView1.TimeLineInterval == i) - bi.Checked = true; - - //IntervalHeaderContextMenu.SubItems.Add(bi); - } - - #endregion - - #region BiIntervalClick - - /// - /// Handles Interval time selections - /// - /// ButtonItem - /// EventArgs - private void BiIntervalClick(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - - int n; - - if (int.TryParse(bi.Text, out n) == true) - calendarView1.TimeLineInterval = n; - } - - #endregion - - #endregion - - #region btnIntervalHeaderShow_Click - - /// - /// Handles IntervalHeaderContextMenu "Show Header" selections - /// - /// - /// - private void btnIntervalHeaderShow_Click(object sender, EventArgs e) - { - calendarView1.TimeLineShowPeriodHeader = true; - } - #endregion - - #endregion - - #endregion - - #region CustomCalendarItemMouseUp - - /// - /// Handles CustomUserItem MouseUp events - /// - /// CustomCalendarItem - private void CustomCalendarItemMouseUp(object sender) - { - CustomCalendarItem item = sender as CustomCalendarItem; - - // Select the item - item.IsSelected = true; - - //// Let the user delete the appointment - //CustomItemContextMenu.Tag = item; - - //ShowContextMenu(CustomItemContextMenu); - } - - #region miItemDelete_Click - - /// - /// Handles Deletion of CustomCalendarItem - /// ContextMenu selections - /// - /// MenuItem - /// EventArgs - void miItemDelete_Click(object sender, EventArgs e) - { - ButtonItem mi = sender as ButtonItem; - CustomCalendarItem item = mi.Parent.Tag as CustomCalendarItem; - - if (item != null) - calendarView1.CustomItems.Remove(item); - } - - #endregion - - #endregion - - #region ShowContextMenu - - /// - /// Shows the given ContextMenu - /// - /// ContextMenu to show - private void ShowContextMenu(ButtonItem cm) - { - cm.Popup(MousePosition); - } - - #endregion - - #endregion - - #region CondensedViewContextMenu support - - /// - /// Handles "AllResources" selection - /// - /// - /// - private void btnCondensedViewAll_Click(object sender, EventArgs e) - { - // AllResources - This selection enables Condensed - // views to be displayed in every visible TimeLine - // when Multiuser TimeLine views are displayed - - calendarView1.TimeLineCondensedViewVisibility - = eCondensedViewVisibility.AllResources; - } - - /// - /// Handles "SelectedResource" selection - /// - /// - /// - private void btnCondensedViewSelected_Click(object sender, EventArgs e) - { - // SelectedResource - This selection enables Condensed - // views to be displayed only in the currently selected - // TimeLine view when Multiuser TimeLine views are displayed - - calendarView1.TimeLineCondensedViewVisibility - = eCondensedViewVisibility.SelectedResource; - } - - /// - /// Handles "Hidden" selection - /// - /// - /// - private void btnCondensedViewHidden_Click(object sender, EventArgs e) - { - // Hidden - This selection disables all Condensed - // views from being displayed - - calendarView1.TimeLineCondensedViewVisibility - = eCondensedViewVisibility.Hidden; - } - - #endregion - - #region btnToday_Click - - /// - /// Sets the calendar view display to today's date - /// - /// - /// - private void btnToday_Click(object sender, EventArgs e) - { - calendarView1.ShowDate(DateTime.Today); - } - - #endregion - - #region btnNewAppointment_Click - - /// - /// Adds a new appointment to the calendar - /// - /// - /// - private void btnNewAppointment_Click(object sender, EventArgs e) - { - // Get dates to add appointment to - - DateTime startDate, endDate; - GetAddDates(out startDate, out endDate); - - // Create new appointment and add it to the model - // Appointment will show up in the view automatically - - Appointment ap = AddNewAppointment(startDate, endDate); - - // Make sure the appointment is visible - - calendarView1.EnsureVisible(ap); - } - - #endregion - - #region btnNewGlossyItem_Click - - /// - /// Adds a new GlossyCustomItem to the calendar - /// - /// - /// - private void btnNewGlossyItem_Click(object sender, EventArgs e) - { - // Get dates to add item to - - DateTime startDate, endDate; - GetAddDates(out startDate, out endDate); - - // Create new GlossyCustomItem and add it to the model. - // Item will show up in the view automatically - - GlossyCustomItem item = new GlossyCustomItem(); - - item.StartTime = startDate; - item.EndTime = endDate; - - item.Text = "Custom GlossyItem - ID #" + _CustomUserId++; - item.Tooltip = "User defined GlossyCustomItem!"; - - calendarView1.CustomItems.Add(item); - - // Make sure it is visible - - calendarView1.EnsureVisible(item); - } - - #endregion - - #region btnNewNoteItem_Click - - /// - /// Adds a new NoteCustomItem to the calendar - /// - /// - /// - private void btnNewNoteItem_Click(object sender, EventArgs e) - { - // Get dates to add item to - - DateTime startDate, endDate; - GetAddDates(out startDate, out endDate); - - // Create new NoteCustomItem and add it to the model. - // Item will show up in the view automatically - - const string s = "This is an example of a CustomCalendarItem. " + - "It's sole purpose is to display this text on the Calendar."; - - NoteCustomItem item = new NoteCustomItem(s); - - item.StartTime = startDate; - item.EndTime = endDate; - - item.Tooltip = "User defined Custom NoteItem - ID #" + _CustomUserId++; - - item.Image = this.imageList1.Images[0]; - - calendarView1.CustomItems.Add(item); - - // Make sure the item is visible - - calendarView1.EnsureVisible(item); - } - - #endregion - - #region btnNewButtonItem_Click - - /// - /// Adds a new CustomItem #3 to the calendar - /// - /// - /// - private void btnNewButtonItem_Click(object sender, EventArgs e) - { - // Get dates to add item to - - DateTime startDate, endDate; - GetAddDates(out startDate, out endDate); - - // Create new ButtonCustomItem and add it to the model. - // Item will show up in the view automatically - - ButtonCustomItem item = new ButtonCustomItem(calendarView1); - - item.StartTime = startDate; - item.EndTime = endDate; - - item.Text = "Custom ButtonItem - ID #" + _CustomUserId++; - item.Tooltip = "User defined ButtonCustomItem!"; - - calendarView1.CustomItems.Add(item); - - // Make sure the item is visible - - calendarView1.EnsureVisible(item); - } - - #endregion - - #region GetAddDates - - /// - /// Gets start and end addition dates - /// - /// [out]start date - /// [out]end date - private void GetAddDates(out DateTime startDate, out DateTime endDate) - { - if (calendarView1.DateSelectionStart.HasValue && - calendarView1.DateSelectionEnd.HasValue) - { - startDate = calendarView1.DateSelectionStart.Value; - endDate = calendarView1.DateSelectionEnd.Value; - } - else - { - startDate = DateTime.Today.AddDays(3).AddHours(5); - endDate = startDate.AddHours(2.5); - } - } - - #endregion - - #region labelItem1_MarkupLinkClick - private void labelItem1_MarkupLinkClick(object sender, MarkupLinkClickEventArgs e) - { - System.Diagnostics.Process.Start("http://www.devcomponents.com/kb/questions.php?questionid=122&vs"); - } - #endregion - - #region InContentAddGlossyItem_Click - - /// - /// Adds a GlossyCustomItem to the calendar - /// - /// - /// - private void InContentAddGlossyItem_Click(object sender, EventArgs e) - { - DateTime startDate = calendarView1.DateSelectionStart.GetValueOrDefault(); - DateTime endDate = calendarView1.DateSelectionEnd.GetValueOrDefault(); - - GlossyCustomItem item = new GlossyCustomItem(); - - item.StartTime = startDate; - item.EndTime = endDate; - - item.Text = "Custom GlossyItem - ID #" + _CustomUserId++; - item.Tooltip = "User defined " + item.Text; - - calendarView1.CustomItems.Add(item); - } - - #endregion - - #region InContentAddNoteItem_Click - - /// - /// Adds a NoteCustomItem to the calendar - /// - /// - /// - private void InContentAddNoteItem_Click(object sender, EventArgs e) - { - DateTime startDate = calendarView1.DateSelectionStart.GetValueOrDefault(); - DateTime endDate = calendarView1.DateSelectionEnd.GetValueOrDefault(); - - const string s = "This is an example of a CustomCalendarItem. " + - "It's sole purpose is to display this text on the Calendar."; - - NoteCustomItem item = new NoteCustomItem(s); - - item.StartTime = startDate; - item.EndTime = endDate; - - item.Tooltip = "User defined Custom NoteItem - ID #" + _CustomUserId++; - - item.Image = this.imageList1.Images[0]; - - calendarView1.CustomItems.Add(item); - } - - #endregion - - #region InContentAddButtonItem_Click - - /// - /// Adds a ButtonCustomItem to the calendar - /// - /// - /// - private void InContentAddButtonItem_Click(object sender, EventArgs e) - { - DateTime startDate = calendarView1.DateSelectionStart.GetValueOrDefault(); - DateTime endDate = calendarView1.DateSelectionEnd.GetValueOrDefault(); - - ButtonCustomItem item = new ButtonCustomItem(calendarView1); - - item.StartTime = startDate; - item.EndTime = endDate; - - item.Text = "Custom ButtonItem - ID #" + _CustomUserId++; - item.Tooltip = "User defined " + item.Text; - - calendarView1.CustomItems.Add(item); - } - - #endregion - - #region SetAppColors1_Click - - /// - /// Processes "Set Appointment Color #1" request. - /// - /// This routine changes the Appointment colors by - /// replacing the global AppointmentColor table - /// with my local AppointmentColor table. - /// - /// - /// - /// - private void SetAppColors1_Click(object sender, EventArgs e) - { - if (GlobalManager.Renderer is Office2007Renderer) - { - Office2007ColorTable ct = - ((Office2007Renderer)GlobalManager.Renderer).ColorTable; - - ct.CalendarView.AppointmentColors = _MyAppColorTable; - - calendarView1.Refresh(); - } - } - - #endregion - - #region SetAppColors2_Click - - /// - /// Processes "Set Appointment Color #2" request. - /// - /// Though the effect is basically the same as done via - /// setting the entire Appointment color table (as in SetAppColors1_Click), - /// this routine does so by setting each Appointment color individually. - /// - /// - /// - /// - private void SetAppColors2_Click(object sender, EventArgs e) - { - Office2007Renderer renderer = GlobalManager.Renderer as Office2007Renderer; - - if (renderer != null) - { - ColorDef[] ct = new ColorDef[Enum.GetValues(typeof(eAppointmentPart)).Length]; - - ct[(int)eAppointmentPart.DefaultBorder] = new ColorDef(Color.Black); - - ct[(int)eAppointmentPart.DefaultBackground] = new ColorDef( - new Color[] { Color.White, Color.LightGray, Color.Gainsboro, Color.Black }, - new float[] { 0f, .3f, .6f, 1f }, 45); - - ct[(int)eAppointmentPart.BlueBorder] = new ColorDef(Color.MidnightBlue); - - ct[(int)eAppointmentPart.BlueBackground] = new ColorDef( - new Color[] { Color.White, Color.LightBlue, Color.SkyBlue, Color.MidnightBlue }, - new float[] { 0f, .3f, .6f, 1f }, 45); - - ct[(int)eAppointmentPart.OrangeBorder] = new ColorDef(Color.OrangeRed); - - ct[(int)eAppointmentPart.OrangeBackground] = new ColorDef( - new Color[] { Color.White, Color.DarkOrange, Color.Orange, Color.OrangeRed }, - new float[] { 0f, .3f, .6f, 1f }, 45); - - ct[(int)eAppointmentPart.PurpleBorder] = new ColorDef(Color.Indigo); - - ct[(int)eAppointmentPart.PurpleBackground] = new ColorDef( - new Color[] { Color.White, Color.BlueViolet, Color.MediumPurple, Color.Indigo }, - new float[] { 0f, .6f, .65f, 1f }, 45); - - ct[(int)eAppointmentPart.RedBorder] = new ColorDef(Color.Maroon); - - ct[(int)eAppointmentPart.RedBackground] = new ColorDef( - new Color[] { Color.White, Color.LightPink, Color.MistyRose, Color.Maroon }, - new float[] { 0f, .3f, .6f, 1f }, 45); - - ct[(int)eAppointmentPart.GreenBorder] = new ColorDef(Color.DarkGreen); - - ct[(int)eAppointmentPart.GreenBackground] = new ColorDef( - new Color[] { Color.White, Color.LightGreen, Color.Chartreuse, Color.DarkGreen }, - new float[] { 0f, .3f, .6f, 1f }, 45); - - ct[(int)eAppointmentPart.YellowBorder] = new ColorDef(Color.Black); - - ct[(int)eAppointmentPart.YellowBackground] = new ColorDef( - new Color[] { Color.White, Color.LightYellow, Color.LightGoldenrodYellow, Color.Yellow }, - new float[] { 0f, .1f, .4f, 1f }, 45); - - ct[(int)eAppointmentPart.BusyTimeMarker] = new ColorDef(Color.Yellow); - ct[(int)eAppointmentPart.FreeTimeMarker] = new ColorDef(-1); - ct[(int)eAppointmentPart.OutOfOfficeTimeMarker] = new ColorDef(Color.White); - - renderer.ColorTable.CalendarView.AppointmentColors = ct; - - calendarView1.Refresh(); - } - } - - #endregion - - #region SetCategoryColors_Click - - /// - /// Processes "Set Appointment CategoryColors" request. - /// - /// This routine establishes a set of user defined CategoryColors. - /// User defined CategoryColors can be used in place of (or in addition to) - /// the built-in Appointment.CategoryColor values. - /// - /// - /// - /// - private void SetCategoryColors_Click(object sender, EventArgs e) - { - // If we haven't defined any CategoryColors, do so now - - if (calendarView1.CategoryColors.Count == 0) - { - // Create a new AppointmentCategoryColor and add - // it to the CalendarView.CategoryColors - - ColorDef cdef = new ColorDef( - new int[] {0xFF7800, 0xE05600, 0xB53700}, - new float[] {0f, .5f, 1f}); - - AppointmentCategoryColor acc = new AppointmentCategoryColor( - "MyOrangeColor", Color.White, Color.DarkRed, cdef); - - calendarView1.CategoryColors.Add(acc); - - // Create a new AppointmentCategoryColor and use it to - // redefine the current Appointment.CategoryYellow color set - - acc = new AppointmentCategoryColor( - "Yellow", Color.Black, Color.DarkGreen, new ColorDef(Color.Yellow, Color.YellowGreen)); - - calendarView1.CategoryColors.Add(acc); - - // Go through our current appointments and set all CategoryOrange - // appointments to use our newly defined MyOrangeColor CategoryColor - - for (int i = 0; i < calendarView1.CalendarModel.Appointments.Count; i++) - { - if (calendarView1.CalendarModel.Appointments[i].CategoryColor == Appointment.CategoryOrange) - calendarView1.CalendarModel.Appointments[i].CategoryColor = "MyOrangeColor"; - } - } - } - - #endregion - - #region ResetAppColors_Click - - /// - /// Resets the Appointment colors back to the Blue default - /// - /// - /// - private void ResetAppColors_Click(object sender, EventArgs e) - { - // Get Office2007Renderer - - Office2007Renderer renderer = GlobalManager.Renderer as Office2007Renderer; - - if (renderer != null) - { - // Get Office2007ColorTable - - Office2007ColorTable ct = - new Office2007ColorTable(eOffice2007ColorScheme.Blue); - - renderer.ColorTable.CalendarView.AppointmentColors = - ct.CalendarView.AppointmentColors; - - calendarView1.Refresh(); - } - - // Go through our current appointments are reset all MyOrangeColor CategoryColor - // settings back to their previous CategoryOrange settings - - for (int i = 0; i < calendarView1.CalendarModel.Appointments.Count; i++) - { - if (calendarView1.CalendarModel.Appointments[i].CategoryColor == "MyOrangeColor") - calendarView1.CalendarModel.Appointments[i].CategoryColor = Appointment.CategoryOrange; - } - - // Clear our CategoryColors - - calendarView1.CategoryColors.Clear(); - } - - #endregion - - #region CycleViewColors_Click - - /// - /// Sets the current View colors by cycling through a new - /// RGB combination each time this routine is called. - /// - /// - /// - private void CycleViewColors_Click(object sender, EventArgs e) - { - if (GlobalManager.Renderer is Office2007Renderer) - { - Office2007ColorTable ct = ((Office2007Renderer)GlobalManager.Renderer).ColorTable; - - foreach (int val in Enum.GetValues(typeof(eCalendarWeekDayPart))) - SetNewScheme(ct.CalendarView.WeekDayViewColors[val].Colors); - - foreach (int val in Enum.GetValues(typeof(eCalendarMonthPart))) - SetNewScheme(ct.CalendarView.MonthViewColors[val].Colors); - - foreach (int val in Enum.GetValues(typeof(eTimeRulerPart))) - SetNewScheme(ct.CalendarView.TimeRulerColors[val].Colors); - - calendarView1.Refresh(); - - _ColorCycle++; - } - } - - /// - /// Sets new colors for the given color table - /// - /// Color Table - private void SetNewScheme(Color[] colors) - { - // Loop through each color in the table - - for (int i = 0; i < colors.Length; i++) - colors[i] = GetNewColor(colors[i]); - } - - /// - /// Gets a new RGB cycle color - /// - /// Current color - /// New cycled color - private Color GetNewColor(Color color) - { - if ((_ColorCycle & 1) == 0) - return (Color.FromArgb(color.R, color.B, color.G)); - - return (Color.FromArgb(color.G, color.R, color.B)); - } - - #endregion - - #region ResetViewColors_Click - - /// - /// Reset the View colors back to the Blue default - /// - /// - /// - private void ResetViewColors_Click(object sender, EventArgs e) - { - // Get Office2007Renderer - - Office2007Renderer renderer = GlobalManager.Renderer as Office2007Renderer; - - if (renderer != null) - { - // Get Office2007ColorTable - - Office2007ColorTable ct = new Office2007ColorTable(eOffice2007ColorScheme.Blue); - - renderer.ColorTable.CalendarView.WeekDayViewColors = - ct.CalendarView.WeekDayViewColors; - - renderer.ColorTable.CalendarView.MonthViewColors = - ct.CalendarView.MonthViewColors; - - renderer.ColorTable.CalendarView.TimeRulerColors = - ct.CalendarView.TimeRulerColors; - - calendarView1.Refresh(); - } - } - - #endregion - - } -} \ No newline at end of file diff --git a/AIMS/OperationFront/frmSchedulePlan.designer.cs b/AIMS/OperationFront/frmSchedulePlan.designer.cs deleted file mode 100644 index 9ea7e97..0000000 --- a/AIMS/OperationFront/frmSchedulePlan.designer.cs +++ /dev/null @@ -1,164 +0,0 @@ -namespace ScheduleTestProject -{ - partial class frmSchedulePlan - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmSchedulePlan)); - this.barView = new DevComponents.DotNetBar.Bar(); - this.btnDay = new DevComponents.DotNetBar.ButtonItem(); - this.btnWeek = new DevComponents.DotNetBar.ButtonItem(); - this.btnMonth = new DevComponents.DotNetBar.ButtonItem(); - this.dateNavigator1 = new DevComponents.DotNetBar.Schedule.DateNavigator(); - this.calendarView1 = new DevComponents.DotNetBar.Schedule.CalendarView(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); - this.imageList1 = new System.Windows.Forms.ImageList(this.components); - ((System.ComponentModel.ISupportInitialize)(this.barView)).BeginInit(); - this.SuspendLayout(); - // - // barView - // - this.barView.Dock = System.Windows.Forms.DockStyle.Top; - this.barView.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.barView.IsMaximized = false; - this.barView.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.btnDay, - this.btnWeek, - this.btnMonth}); - this.barView.Location = new System.Drawing.Point(0, 0); - this.barView.Name = "barView"; - this.barView.RoundCorners = false; - this.barView.Size = new System.Drawing.Size(916, 31); - this.barView.Stretch = true; - this.barView.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.barView.TabIndex = 6; - this.barView.TabStop = false; - this.barView.Text = "bar1"; - // - // btnDay - // - this.btnDay.Checked = true; - this.btnDay.Name = "btnDay"; - this.btnDay.OptionGroup = "View"; - this.btnDay.Text = ""; - this.btnDay.Click += new System.EventHandler(this.btnDay_Click); - // - // btnWeek - // - this.btnWeek.Name = "btnWeek"; - this.btnWeek.OptionGroup = "View"; - this.btnWeek.Text = ""; - this.btnWeek.Click += new System.EventHandler(this.btnWeek_Click); - // - // btnMonth - // - this.btnMonth.Name = "btnMonth"; - this.btnMonth.OptionGroup = "View"; - this.btnMonth.Text = ""; - this.btnMonth.Click += new System.EventHandler(this.btnMonth_Click); - // - // dateNavigator1 - // - this.dateNavigator1.CalendarView = this.calendarView1; - this.dateNavigator1.CanvasColor = System.Drawing.SystemColors.Control; - this.dateNavigator1.DisabledBackColor = System.Drawing.Color.Empty; - this.dateNavigator1.Dock = System.Windows.Forms.DockStyle.Top; - this.dateNavigator1.Location = new System.Drawing.Point(0, 31); - this.dateNavigator1.Name = "dateNavigator1"; - this.dateNavigator1.Size = new System.Drawing.Size(916, 28); - this.dateNavigator1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255))))); - this.dateNavigator1.TabIndex = 7; - this.dateNavigator1.Text = "dateNavigator1"; - // - // calendarView1 - // - this.calendarView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255))))); - // - // - // - this.calendarView1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.calendarView1.ContainerControlProcessDialogKey = true; - this.calendarView1.Dock = System.Windows.Forms.DockStyle.Fill; - this.calendarView1.ForeColor = System.Drawing.Color.Black; - this.calendarView1.HighlightCurrentDay = true; - this.calendarView1.Is24HourFormat = true; - this.calendarView1.LabelTimeSlots = true; - this.calendarView1.Location = new System.Drawing.Point(0, 59); - this.calendarView1.MultiUserTabHeight = 20; - this.calendarView1.Name = "calendarView1"; - this.calendarView1.Size = new System.Drawing.Size(916, 605); - this.calendarView1.TabIndex = 8; - this.calendarView1.Text = "calendarView1"; - this.calendarView1.TimeIndicator.BorderColor = System.Drawing.Color.Empty; - this.calendarView1.TimeIndicator.IndicatorArea = DevComponents.DotNetBar.Schedule.eTimeIndicatorArea.All; - this.calendarView1.TimeIndicator.Tag = null; - this.calendarView1.TimeIndicator.Visibility = DevComponents.DotNetBar.Schedule.eTimeIndicatorVisibility.AllResources; - this.calendarView1.TimeSlotDuration = 30; - this.calendarView1.ItemDoubleClick += new System.Windows.Forms.MouseEventHandler(this.CalendarView1_ItemDoubleClick); - this.calendarView1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.CalendarView1_MouseUp); - // - // styleManager1 - // - this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2007Blue; - this.styleManager1.MetroColorParameters = new DevComponents.DotNetBar.Metro.ColorTables.MetroColorGeneratorParameters(System.Drawing.Color.White, System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(163)))), ((int)(((byte)(26)))))); - // - // imageList1 - // - this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); - this.imageList1.TransparentColor = System.Drawing.Color.Transparent; - this.imageList1.Images.SetKeyName(0, "DevComponents.PNG"); - // - // frmSchedulePlan - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(916, 664); - this.Controls.Add(this.calendarView1); - this.Controls.Add(this.dateNavigator1); - this.Controls.Add(this.barView); - this.DoubleBuffered = true; - this.Name = "frmSchedulePlan"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "ų"; - ((System.ComponentModel.ISupportInitialize)(this.barView)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - private DevComponents.DotNetBar.Bar barView; - private DevComponents.DotNetBar.ButtonItem btnDay; - private DevComponents.DotNetBar.ButtonItem btnWeek; - private DevComponents.DotNetBar.ButtonItem btnMonth; - private DevComponents.DotNetBar.Schedule.DateNavigator dateNavigator1; - private DevComponents.DotNetBar.Schedule.CalendarView calendarView1; - private DevComponents.DotNetBar.StyleManager styleManager1; - private System.Windows.Forms.ImageList imageList1; - } -} - diff --git a/AIMS/OperationFront/frmSchedulePlan.resx b/AIMS/OperationFront/frmSchedulePlan.resx deleted file mode 100644 index 9f2db9c..0000000 --- a/AIMS/OperationFront/frmSchedulePlan.resx +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - - 149, 17 - - - - AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w - LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 - ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABI - FAAAAk1TRnQBSQFMAwEBAAGIAQABiAEAAd8BAAEvAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMA - AXwBAwIAAS8DAAEBAQABCAUAAcQBoxgAAYACAAGAAwACgAEAAYADAAGAAQABgAEAAoACAAPAAQABwAHc - AcABAAHwAcoBpgEAATMFAAEzAQABMwEAATMBAAIzAgADFgEAAxwBAAMiAQADKQEAA1UBAANNAQADQgEA - AzkBAAGAAXwB/wEAAlAB/wEAAZMBAAHWAQAB/wHsAcwBAAHGAdYB7wEAAdYC5wEAAZABqQGtAgAB/wEz - AwABZgMAAZkDAAHMAgABMwMAAjMCAAEzAWYCAAEzAZkCAAEzAcwCAAEzAf8CAAFmAwABZgEzAgACZgIA - AWYBmQIAAWYBzAIAAWYB/wIAAZkDAAGZATMCAAGZAWYCAAKZAgABmQHMAgABmQH/AgABzAMAAcwBMwIA - AcwBZgIAAcwBmQIAAswCAAHMAf8CAAH/AWYCAAH/AZkCAAH/AcwBAAEzAf8CAAH/AQABMwEAATMBAAFm - AQABMwEAAZkBAAEzAQABzA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QMCAAEvAwABAQEAAQEFAAGQARQWAAP//wD/AP8A - /wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AKUACw== - - - - 45 - - \ No newline at end of file diff --git a/AIMS/OperationFront/frmSchedulePlan2.cs b/AIMS/OperationFront/frmSchedulePlan2.cs deleted file mode 100644 index 4c91857..0000000 --- a/AIMS/OperationFront/frmSchedulePlan2.cs +++ /dev/null @@ -1,1712 +0,0 @@ -using System; -using System.Drawing; -using System.Windows.Forms; -using DevComponents.DotNetBar.Schedule; -using DevComponents.DotNetBar; -using DevComponents.Schedule.Model; -using DevComponents.DotNetBar.Rendering; - -namespace ScheduleTestProject -{ - public partial class frmSchedulePlan2 : Office2007Form - { - #region Private variables - - private int _CustomUserId = 1; - private int _ColorCycle; - - #region _MyAppColorTable - - private ColorDef[] _MyAppColorTable = new ColorDef[] - { - new ColorDef(0x4B71A2), // DefaultBorder - - new ColorDef(new int[] {0x00cccc, 0x006B6B}, // DefaultBackground - new float[] {0f, 1f}, 90f), - - new ColorDef(0x28518E), // BlueBorder - - new ColorDef(new int[] {0x00aaFF, 0x0047B2}, // BlueBackground - new float[] {0f, 1f}, 90f), - - new ColorDef(0x2C6524), // GreenBorder - - new ColorDef(new int[] {0x00ff00, 0x007d00}, // GreenBackground - new float[] {0f, 1f}, 90f), - - new ColorDef(0x8B3E0A), // OrangeBorder - - new ColorDef(new int[] {0xFFB200, 0xB26B00}, // OrangeBackground - new float[] {0f, 1f}, 90f), - - new ColorDef(0x3E2771), // PurpleBorder - - new ColorDef(new int[] {0xEABFFE, 0x660099}, // PurpleBackground - new float[] {0f, 1f}, 90f), - - new ColorDef(0x86171C), // RedBorder - - new ColorDef(new int[] {0xFFb0b0, 0xcc0000}, // RedBackground - new float[] {0f, 1f}, 90f), - - new ColorDef(0x7C7814), // YellowBorder - - new ColorDef(new int[] {0xFFFF00, 0xB2B300}, // YellowBackground - new float[] {0f, 1f}, 90f), - - new ColorDef(-1), // BusyTimeMarker - new ColorDef(0xFFFFFF), // FreeTimeMarker - new ColorDef(0x000000) // OutOfOfficeTimeMarker - }; - - #endregion - - #endregion - - public frmSchedulePlan2() - { - InitializeComponent(); - - // Set our Calendar Model - - calendarView1.CalendarModel = new CalendarModel(); - - // And add some sample appointments - - AddSampleAppointments(); - } - - #region AddSampleAppointments - - /// - /// Adds some example appointments to the Calendar Model - /// - private void AddSampleAppointments() - { - // Recurring appointment - - Appointment appointment = new Appointment(); - - appointment.Subject = "Recurring Appointment every 3rd week day"; - appointment.Description = "Custom description for this appointment"; - appointment.Tooltip = "This is a Custom tooltip for this appointment"; - appointment.CategoryColor = Appointment.CategoryOrange; - - appointment.StartTime = DateTime.Today.AddHours(11.25); - appointment.EndTime = appointment.StartTime.AddHours(1); - - appointment.Recurrence = new AppointmentRecurrence(); - - // Set recurrence type to weekly - - appointment.Recurrence.RecurrenceType = eRecurrencePatternType.Daily; - appointment.Recurrence.Daily.RepeatOnDaysOfWeek = eDailyRecurrenceRepeat.All; - appointment.Recurrence.Daily.RepeatInterval = 10; - appointment.Recurrence.RangeLimitType = eRecurrenceRangeLimitType.RangeEndDate; - appointment.Recurrence.RangeEndDate = DateTime.Today.AddDays(120); - - // Add appointment to the model - - calendarView1.CalendarModel.Appointments.Add(appointment); - - DateTime date = DateTime.Today.AddHours(8); - - // Multi-day appointment #1 - - AddAppointment("#1 Multiple days Appointment", - date, date.AddDays(4), - Appointment.CategoryBlue, Appointment.TimerMarkerDefault); - - // Multi-day appointment #2 - - AddAppointment("#2 Multiple days Appointment", - date.AddDays(2), date.AddDays(14.5), - Appointment.CategoryGreen, Appointment.TimerMarkerDefault); - - // Create some new appointments and add them to the model - - Appointment ap = AddAppointment("Busy Appointment", - date, date.AddMinutes(180), - Appointment.CategoryYellow, Appointment.TimerMarkerBusy); - - // Make sure this appointment is visible - - calendarView1.EnsureVisible(ap); - - AddAppointment("Out Of Office Appointment", - date.AddHours(1), date.AddHours(2), - Appointment.CategoryBlue, Appointment.TimerMarkerOutOfOffice); - - date = date.AddDays(1); - - AddAppointment("Free Appointment", - date.AddHours(2), date.AddMinutes(170), - Appointment.CategoryRed, Appointment.TimerMarkerFree); - - AddAppointment("Tentative Appointment", - date.AddHours(4), date.AddHours(6), - Appointment.CategoryDefault, Appointment.TimerMarkerTentative); - - date = date.AddDays(1); - - AddAppointment("Default Appointment", - date.AddHours(1.5), date.AddHours(4.25), - Appointment.CategoryPurple, Appointment.TimerMarkerDefault); - } - - #region AddAppointment - - /// - /// Adds the specified appointment to the model - /// - /// Appointment subject - /// Appointment start time - /// Appointment end time - /// Appointment color - /// Appointment marker - private Appointment AddAppointment(string s, - DateTime startTime, DateTime endTime, string color, string marker) - { - Appointment appointment = new Appointment(); - - appointment.StartTime = startTime; - appointment.EndTime = endTime; - - appointment.Subject = s; - appointment.Description = "Custom description for this appointment"; - appointment.CategoryColor = color; - appointment.TimeMarkedAs = marker; - - appointment.Tooltip = "This is a Custom tooltip for this appointment"; - - calendarView1.CalendarModel.Appointments.Add(appointment); - - return (appointment); - } - - #endregion - - #endregion - - #region View change - - /// - /// Day view selection - /// - /// PopupItem - /// EventArgs - private void btnDay_Click(object sender, EventArgs e) - { - calendarView1.SelectedView = eCalendarView.Day; - } - - /// - /// Week view selection - /// - /// PopupItem - /// EventArgs - private void btnWeek_Click(object sender, EventArgs e) - { - calendarView1.SelectedView = eCalendarView.Week; - } - - /// - /// Month view selection - /// - /// PopupItem - /// EventArgs - private void btnMonth_Click(object sender, EventArgs e) - { - calendarView1.SelectedView = eCalendarView.Month; - } - - /// - /// TimeLine view selection - /// - /// PopupItem - /// EventArgs - private void btnTimeLine_Click(object sender, EventArgs e) - { - calendarView1.SelectedView = eCalendarView.TimeLine; - } - - #endregion - - #region CalendarView1_ItemDoubleClick - - /// - /// Handles Appointment View double clicks - /// - /// AppointmentView - /// MouseEventArgs - private void CalendarView1_ItemDoubleClick(object sender, MouseEventArgs e) - { - AppointmentView item = sender as AppointmentView; - - if (item != null) - { - Appointment ap = item.Appointment; - - string s = string.Format( - "Subject: {0}\nDescription: {1}\nToolTip: {2}\n\n" + - "StartTime: {3}\nEndTime: {4}\n\n" + - "CategoryColor: {5}\nTimeMarkedAs: {6}", - ap.Subject, ap.Description, ap.Tooltip, - ap.StartTime, ap.EndTime, - String.IsNullOrEmpty(ap.CategoryColor) ? "Default" : ap.CategoryColor, - String.IsNullOrEmpty(ap.TimeMarkedAs) ? "Default" : ap.TimeMarkedAs); - - MessageBox.Show(s); - } - } - - #endregion - - #region CalendarView1_MouseUp - - /// - /// Handles CalendarView MouseUp events - /// - /// Varied sender - /// MouseEventArgs - private void CalendarView1_MouseUp(object sender, MouseEventArgs e) - { - // Process Right MouseUp event in order to - // present view specific ContextMenu - - if (e.Button == MouseButtons.Right) - { - // Main Calendar View hit - - if (sender is BaseView) - BaseViewMouseUp(sender, e); - - // AppointmentView hit - - else if (sender is AppointmentView) - AppointmentViewMouseUp(sender); - - // AllDayPanel hit - - else if (sender is AllDayPanel) - AllDayPanelMouseUp(sender); - - // TimeRulerPanel - - else if (sender is TimeRulerPanel) - TimeRulerPanelMouseUp(); - - // TimeLineHeaderPanel - - else if (sender is TimeLineHeaderPanel) - TimeLineHeaderPanelMouseUp(sender, e); - - // CustomCalendarItem - - else if (sender is CustomCalendarItem) - CustomCalendarItemMouseUp(sender); - - else if (sender is BaseItem) - { - BaseItem bi = sender as BaseItem; - - if (bi.Parent is CustomCalendarItem) - CustomCalendarItemMouseUp(bi.Parent); - } - } - } - - #region BaseViewMouseUp - - /// - /// Handles Day, Week, and Month View MouseUp events - /// - /// BaseView - /// MouseEventArgs - private void BaseViewMouseUp(object sender, MouseEventArgs e) - { - BaseView view = sender as BaseView; - eViewArea area = view.GetViewAreaFromPoint(e.Location); - - if (area == eViewArea.InContent) - InContentMouseUp(view, e); - - else if (area == eViewArea.InDayOfWeekHeader) - InHeaderMouseUp(view); - - else if (area == eViewArea.InSideBarPanel) - InSideBarMouseUp(view); - - else if (area == eViewArea.InCondensedView) - InCondensedViewMouseUp(); - } - - #region InContentMouseUp - - /// - /// Handles BaseView InContent MouseUp events - /// - /// BaseView - /// MouseEventArgs - private void InContentMouseUp(BaseView view, MouseEventArgs e) - { - // Get the DateSelection start and end - // from the current mouse location - - DateTime startDate, endDate; - - if (calendarView1.GetDateSelectionFromPoint( - e.Location, out startDate, out endDate) == true) - { - // If this date already falls outside the currently - // selected range (DateSelectionStart and DateSelectionEnd) - // then select the new range - - if (IsDateSelected(startDate, endDate) == false) - { - calendarView1.DateSelectionStart = startDate; - calendarView1.DateSelectionEnd = endDate; - } - } - - // Remove any previously added view specific items - - for (int i = InContentContextMenu.SubItems.Count - 1; i > 3; i--) - InContentContextMenu.SubItems.RemoveAt(i); - - // If this is a TimeLine view, then add a couple - // of extra items - - if (view is TimeLineView) - { - ButtonItem bi = new ButtonItem(); - - // Page Navigator - - bi.Text = (calendarView1.TimeLineShowPageNavigation == true) - ? "Hide Page Navigator" : "Show Page Navigator"; - - bi.BeginGroup = true; - - bi.Click += BiPageNavigatorClick; - - InContentContextMenu.SubItems.Add(bi); - - // Condensed Visibility - - if (calendarView1.TimeLineCondensedViewVisibility == - eCondensedViewVisibility.Hidden) - { - bi = new ButtonItem("", "Show Condensed View"); - bi.Click += BiCondensedClick; - - InContentContextMenu.SubItems.Add(bi); - } - } - - ShowContextMenu(InContentContextMenu); - } - - #region BiCondensedClick - - /// - /// Handles InContentContextMenu Condensed selection - /// - /// - /// - private void BiCondensedClick(object sender, EventArgs e) - { - calendarView1.TimeLineCondensedViewVisibility = - eCondensedViewVisibility.AllResources; - } - - #endregion - - #region BiPageNavigatorClick - - /// - /// Handles InContentContextMenu PageNavigator selection - /// - /// - /// - private void BiPageNavigatorClick(object sender, EventArgs e) - { - calendarView1.TimeLineShowPageNavigation = - (calendarView1.TimeLineShowPageNavigation == false); - } - - #endregion - - #region IsDateSelected - - /// - /// Determines if the given date range is within the currently selected - /// CalendarView selection range (DateSelectionStart to DateSelectionEnd) - /// - /// Start date range - /// End date range - /// True if selected - private bool IsDateSelected(DateTime startDate, DateTime endDate) - { - if (calendarView1.DateSelectionStart.HasValue && calendarView1.DateSelectionEnd.HasValue) - { - if (calendarView1.DateSelectionStart.Value <= startDate && - calendarView1.DateSelectionEnd.Value >= endDate) - return (true); - } - - return (false); - } - - #endregion - - #region miAdd_Click - - /// - /// Handles BaseView "Add Appointment" - /// ContextMenu selections - /// - /// MenuItem - /// EventArgs - void miAdd_Click(object sender, EventArgs e) - { - DateTime startDate = calendarView1.DateSelectionStart.GetValueOrDefault(); - DateTime endDate = calendarView1.DateSelectionEnd.GetValueOrDefault(); - - AddNewAppointment(startDate, endDate); - } - - /// - /// Adds a new appointment at the user selected time - /// - private Appointment AddNewAppointment(DateTime startDate, DateTime endDate) - { - // Create new appointment and add it to the model - // Appointment will show up in the view automatically - - Appointment appointment = new Appointment(); - - appointment.StartTime = startDate; - appointment.EndTime = endDate; - - appointment.Subject = "New " + - appointment.CategoryColor + " appointment!"; - - appointment.Description = "This is a new appointment"; - appointment.Tooltip = "This is a Custom tooltip for this new appointment"; - - // Add appointment to the model - - calendarView1.CalendarModel.Appointments.Add(appointment); - - return (appointment); - } - - #endregion - - #endregion - - #region InHeaderMouseUp - - /// - /// Handles BaseView InHeader MouseUp events. - /// - /// BaseView - private void InHeaderMouseUp(BaseView view) - { - if (view is MonthView) - { - MonthView mv = view as MonthView; - - // The View is a month view, so let the user - // hide or show the SideBar panel - - if (mv.IsSideBarVisible == true) - { - InHeaderHideSideBarContextItem.Visible = true; - InHeaderShowSideBarContextItem.Visible = false; - } - else - { - InHeaderHideSideBarContextItem.Visible = false; - InHeaderShowSideBarContextItem.Visible = true; - } - } - else - { - InHeaderHideSideBarContextItem.Visible = false; - InHeaderShowSideBarContextItem.Visible = false; - } - - InHeaderContextMenu.Tag = view; - - ShowContextMenu(InHeaderContextMenu); - } - - #region miCalendarColor_Click - - /// - /// Handles selection of a ContextMenu color item - /// - /// MenuItem - /// EventArgs - void miCalendarColor_Click(object sender, EventArgs e) - { - ButtonItem mi = sender as ButtonItem; - BaseView view = mi.Parent.Tag as BaseView; - - if (view != null) - view.CalendarColor = (eCalendarColor)Enum.Parse(typeof(eCalendarColor), mi.Text); - } - - #endregion - - #region SideBar show/hide - - /// - /// Handles ContextMenu "Show" for the SideBar panel - /// - /// MenuItem - /// EventArgs - void miShowSideBar_Click(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - MonthView view = bi.Parent.Tag as MonthView; - - if (view != null) - view.IsSideBarVisible = true; - } - - /// - /// Handles ContextMenu "Hide" for the SideBar panel - /// - /// MenuItem - /// EventArgs - void miHideSideBar_Click(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - MonthView view = bi.Parent.Tag as MonthView; - - if (view != null) - view.IsSideBarVisible = false; - } - - - #endregion - - #endregion - - #region InSideBarMouseUp - - /// - /// Handles SideBar MouseUp events - /// - /// BaseView - private void InSideBarMouseUp(BaseView view) - { - InSideBarContextMenu.Tag = view; - - ShowContextMenu(InSideBarContextMenu); - } - - #endregion - - #region InCondensedViewMouseUp - - /// - /// Handles Mouse Up events in the CondensedView - /// area of the control - /// - private void InCondensedViewMouseUp() - { - ShowContextMenu(CondensedViewContextMenu); - } - - #endregion - - #endregion - - #region AppointmentViewMouseUp - - /// - /// Handles AppointmentView MouseUp events - /// - /// AppointmentView - private void AppointmentViewMouseUp(object sender) - { - AppointmentView view = sender as AppointmentView; - - // Select the appointment - view.IsSelected = true; - - // Let the user delete the appointment - AppDeleteContextItem.Enabled = (view.Appointment.IsRecurringInstance == false); - AppointmentContextMenu.Tag = view; - - ShowContextMenu(AppointmentContextMenu); - } - - #region miDelete_Click - - /// - /// Handles BaseView "Delete Appointment" - /// ContextMenu selections - /// - /// MenuItem - /// EventArgs - void miDelete_Click(object sender, EventArgs e) - { - ButtonItem mi = sender as ButtonItem; - AppointmentView view = mi.Parent.Tag as AppointmentView; - - if (view != null) - calendarView1.CalendarModel.Appointments.Remove(view.Appointment); - } - - #endregion - - #region Color item code - - void CategoryColor_Click(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - AppointmentView view = bi.Parent.Tag as AppointmentView; - - if (view != null) - view.Appointment.CategoryColor = bi.Text; - } - - #endregion - - #region Marker item code - - void TimeMarker_Click(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - AppointmentView view = bi.Parent.Tag as AppointmentView; - - if (view != null) - { - view.Appointment.TimeMarkedAs = - bi.Text.Equals("Default") ? null : bi.Text; - } - } - - #endregion - - #endregion - - #region AllDayPanelMouseUp - - /// - /// Handles AllDayPanel MouseUp events - /// - /// AllDayPanel - private void AllDayPanelMouseUp(object sender) - { - // Let the user Shrink and expand the panel - // by 20 each time - - AllDayShrinkContextItem.Enabled = calendarView1.FixedAllDayPanelHeight == -1 || - calendarView1.FixedAllDayPanelHeight > 20; - - AllDayGrowContextItem.Enabled = calendarView1.FixedAllDayPanelHeight < 200; - AllDayReset.Enabled = calendarView1.FixedAllDayPanelHeight != -1; - AllDayPanelContextMenu.Tag = sender; - - ShowContextMenu(AllDayPanelContextMenu); - } - - /// - /// Handles "Shrink" ContextMenu selections - /// - /// MenuItem - /// EventArgs - void miShrink_Click(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - AllDayPanel panel = bi.Parent.Tag as AllDayPanel; - - if (calendarView1.FixedAllDayPanelHeight == -1) - calendarView1.FixedAllDayPanelHeight = panel.PanelHeight - 20; - - else - { - calendarView1.FixedAllDayPanelHeight = - Math.Max(20, calendarView1.FixedAllDayPanelHeight - 20); - } - } - - /// - /// Handles "Grow" ContextMenu selections - /// - /// MenuItem - /// EventArgs - void miGrow_Click(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - AllDayPanel panel = bi.Parent.Tag as AllDayPanel; - - if (calendarView1.FixedAllDayPanelHeight == -1) - calendarView1.FixedAllDayPanelHeight = panel.PanelHeight + 20; - - else - { - calendarView1.FixedAllDayPanelHeight = - Math.Min(500, calendarView1.FixedAllDayPanelHeight + 20); - } - } - - /// - /// Handles "Reset" ContextMenu selections - /// - /// MenuItem - /// EventArgs - void miReset_Click(object sender, EventArgs e) - { - calendarView1.FixedAllDayPanelHeight = -1; - } - - #endregion - - #region TimeRulerPanelMouseUp - - /// - /// Handles TimeRulerPanel MouseUp events - /// - private void TimeRulerPanelMouseUp() - { - ShowContextMenu(TimeRulerPanelContextMenu); - } - - /// - /// Handles "TimeSlotDuration" ContextMenu selections - /// - /// MenuItem - /// EventArgs - void miTimeDuration_Click(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - - int duration; - - if (int.TryParse(bi.Text, out duration) == true) - calendarView1.TimeSlotDuration = duration; - } - - #endregion - - #region TimeLineHeaderPanelMouseUp - - /// - /// Handles Mouse Up events in the TimeLineHeaderPanel. - /// - /// (The TimeLineHeaderPanel is the area at the top of the - /// TimeLineView that holds the Period and Interval Headers.) - /// - /// TimeLineHeaderPanel - /// MouseEventArgs - private void TimeLineHeaderPanelMouseUp(object sender, MouseEventArgs e) - { - TimeLineHeaderPanel tp = sender as TimeLineHeaderPanel; - - if (tp != null) - { - eViewArea area = tp.GetViewAreaFromPoint(e.Location); - - if (area == eViewArea.InPeriodHeader) - InPeriodHeaderMouseUp(); - - else if (area == eViewArea.InIntervalHeader) - InIntervalHeaderMouseUp(); - } - } - - #region InPeriodHeaderMouseUp - - /// - /// Handles MouseUp events in the Period Header - /// - private void InPeriodHeaderMouseUp() - { - ShowContextMenu(PeriodHeaderContextMenu); - } - - #endregion - - #region InPeriodHeaderHide_Click - - /// - /// Handles Period Header "Hide" menu selections - /// - /// - /// - private void InPeriodHeaderHide_Click(object sender, EventArgs e) - { - calendarView1.TimeLineShowPeriodHeader = false; - } - - #endregion - - #region PeriodHeaderContextMenu Period change - - /// - /// Handles PeriodHeaderContextMenu "Minute" selection - /// - /// - /// - private void btnPeriodMinutes_CheckedChanged(object sender, EventArgs e) - { - if (btnPeriodMinutes.Checked == true) - calendarView1.TimeLinePeriod = eTimeLinePeriod.Minutes; - } - - /// - /// Handles PeriodHeaderContextMenu "Hours" selection - /// - /// - /// - private void btnPeriodHours_CheckedChanged(object sender, EventArgs e) - { - if (btnPeriodHours.Checked == true) - calendarView1.TimeLinePeriod = eTimeLinePeriod.Hours; - } - - /// - /// Handles PeriodHeaderContextMenu "Days" selection - /// - /// - /// - private void btnPeriodDays_CheckedChanged(object sender, EventArgs e) - { - if (btnPeriodDays.Checked == true) - calendarView1.TimeLinePeriod = eTimeLinePeriod.Days; - } - - /// - /// Handles PeriodHeaderContextMenu "Years" selection - /// - /// - /// - private void btnPeriodYears_CheckedChanged(object sender, EventArgs e) - { - if (btnPeriodYears.Checked == true) - calendarView1.TimeLinePeriod = eTimeLinePeriod.Years; - } - - #endregion - - #region InIntervalHeaderMouseUp - - /// - /// Handles MouseUp events in the IntervalHeader - /// - private void InIntervalHeaderMouseUp() - { - // Get rid of any previously added non-essential items - - for (int i = IntervalHeaderContextMenu.SubItems.Count - 1; i > 2; i--) - IntervalHeaderContextMenu.SubItems.RemoveAt(i); - - // If the Period Header is not visible, present the user - // with the items to be able to re-show it - - lblPeriodHeader2.Visible = - (calendarView1.TimeLineShowPeriodHeader == false); - - btnIntervalHeaderShow.Visible = - (calendarView1.TimeLineShowPeriodHeader == false); - - // Add some Interval time selection options - // for the current selected Interval Period - - switch (calendarView1.TimeLinePeriod) - { - case eTimeLinePeriod.Minutes: - AddIntervalMinutes(); - break; - - case eTimeLinePeriod.Hours: - AddIntervalHours(); - break; - - case eTimeLinePeriod.Days: - AddIntervalDays(); - break; - - case eTimeLinePeriod.Years: - AddIntervalYears(); - break; - } - - ShowContextMenu(IntervalHeaderContextMenu); - } - - #region Interval time support - - #region AddIntervalMinutes - - /// - /// Adds Interval "Minute" items - /// - private void AddIntervalMinutes() - { - for (int i = 1; i <= 60; i++) - { - if (60 % i == 0) - AddIntervalItem(i); - } - } - - #endregion - - #region AddIntervalHours - - /// - /// Adds Interval "Hour" items - /// - private void AddIntervalHours() - { - for (int i = 1; i <= 24; i++) - { - if (24 % i == 0) - AddIntervalItem(i); - } - } - - #endregion - - #region AddIntervalDays - - /// - /// Adds Interval "Day" items - /// - private void AddIntervalDays() - { - for (int i = 1; i <= 10; i++) - AddIntervalItem(i); - - for (int i = 30; i < 200; i += 30) - AddIntervalItem(i); - - AddIntervalItem(365); - } - - #endregion - - #region AddIntervalYears - - /// - /// Adds Interval "Year" items - /// - private void AddIntervalYears() - { - for (int i = 1; i <= 10; i++) - AddIntervalItem(i); - } - - #endregion - - #region AddIntervalItem - - /// - /// Adds individual Interval items - /// - /// Item to add - private void AddIntervalItem(int i) - { - ButtonItem bi = new ButtonItem("", i.ToString()); - - bi.Click += BiIntervalClick; - - if (calendarView1.TimeLineInterval == i) - bi.Checked = true; - - IntervalHeaderContextMenu.SubItems.Add(bi); - } - - #endregion - - #region BiIntervalClick - - /// - /// Handles Interval time selections - /// - /// ButtonItem - /// EventArgs - private void BiIntervalClick(object sender, EventArgs e) - { - ButtonItem bi = sender as ButtonItem; - - int n; - - if (int.TryParse(bi.Text, out n) == true) - calendarView1.TimeLineInterval = n; - } - - #endregion - - #endregion - - #region btnIntervalHeaderShow_Click - - /// - /// Handles IntervalHeaderContextMenu "Show Header" selections - /// - /// - /// - private void btnIntervalHeaderShow_Click(object sender, EventArgs e) - { - calendarView1.TimeLineShowPeriodHeader = true; - } - #endregion - - #endregion - - #endregion - - #region CustomCalendarItemMouseUp - - /// - /// Handles CustomUserItem MouseUp events - /// - /// CustomCalendarItem - private void CustomCalendarItemMouseUp(object sender) - { - CustomCalendarItem item = sender as CustomCalendarItem; - - // Select the item - item.IsSelected = true; - - // Let the user delete the appointment - CustomItemContextMenu.Tag = item; - - ShowContextMenu(CustomItemContextMenu); - } - - #region miItemDelete_Click - - /// - /// Handles Deletion of CustomCalendarItem - /// ContextMenu selections - /// - /// MenuItem - /// EventArgs - void miItemDelete_Click(object sender, EventArgs e) - { - ButtonItem mi = sender as ButtonItem; - CustomCalendarItem item = mi.Parent.Tag as CustomCalendarItem; - - if (item != null) - calendarView1.CustomItems.Remove(item); - } - - #endregion - - #endregion - - #region ShowContextMenu - - /// - /// Shows the given ContextMenu - /// - /// ContextMenu to show - private void ShowContextMenu(ButtonItem cm) - { - cm.Popup(MousePosition); - } - - #endregion - - #endregion - - #region CondensedViewContextMenu support - - /// - /// Handles "AllResources" selection - /// - /// - /// - private void btnCondensedViewAll_Click(object sender, EventArgs e) - { - // AllResources - This selection enables Condensed - // views to be displayed in every visible TimeLine - // when Multiuser TimeLine views are displayed - - calendarView1.TimeLineCondensedViewVisibility - = eCondensedViewVisibility.AllResources; - } - - /// - /// Handles "SelectedResource" selection - /// - /// - /// - private void btnCondensedViewSelected_Click(object sender, EventArgs e) - { - // SelectedResource - This selection enables Condensed - // views to be displayed only in the currently selected - // TimeLine view when Multiuser TimeLine views are displayed - - calendarView1.TimeLineCondensedViewVisibility - = eCondensedViewVisibility.SelectedResource; - } - - /// - /// Handles "Hidden" selection - /// - /// - /// - private void btnCondensedViewHidden_Click(object sender, EventArgs e) - { - // Hidden - This selection disables all Condensed - // views from being displayed - - calendarView1.TimeLineCondensedViewVisibility - = eCondensedViewVisibility.Hidden; - } - - #endregion - - #region btnToday_Click - - /// - /// Sets the calendar view display to today's date - /// - /// - /// - private void btnToday_Click(object sender, EventArgs e) - { - calendarView1.ShowDate(DateTime.Today); - } - - #endregion - - #region btnNewAppointment_Click - - /// - /// Adds a new appointment to the calendar - /// - /// - /// - private void btnNewAppointment_Click(object sender, EventArgs e) - { - // Get dates to add appointment to - - DateTime startDate, endDate; - GetAddDates(out startDate, out endDate); - - // Create new appointment and add it to the model - // Appointment will show up in the view automatically - - Appointment ap = AddNewAppointment(startDate, endDate); - - // Make sure the appointment is visible - - calendarView1.EnsureVisible(ap); - } - - #endregion - - #region btnNewGlossyItem_Click - - /// - /// Adds a new GlossyCustomItem to the calendar - /// - /// - /// - private void btnNewGlossyItem_Click(object sender, EventArgs e) - { - // Get dates to add item to - - DateTime startDate, endDate; - GetAddDates(out startDate, out endDate); - - // Create new GlossyCustomItem and add it to the model. - // Item will show up in the view automatically - - GlossyCustomItem item = new GlossyCustomItem(); - - item.StartTime = startDate; - item.EndTime = endDate; - - item.Text = "Custom GlossyItem - ID #" + _CustomUserId++; - item.Tooltip = "User defined GlossyCustomItem!"; - - calendarView1.CustomItems.Add(item); - - // Make sure it is visible - - calendarView1.EnsureVisible(item); - } - - #endregion - - #region btnNewNoteItem_Click - - /// - /// Adds a new NoteCustomItem to the calendar - /// - /// - /// - private void btnNewNoteItem_Click(object sender, EventArgs e) - { - // Get dates to add item to - - DateTime startDate, endDate; - GetAddDates(out startDate, out endDate); - - // Create new NoteCustomItem and add it to the model. - // Item will show up in the view automatically - - const string s = "This is an example of a CustomCalendarItem. " + - "It's sole purpose is to display this text on the Calendar."; - - NoteCustomItem item = new NoteCustomItem(s); - - item.StartTime = startDate; - item.EndTime = endDate; - - item.Tooltip = "User defined Custom NoteItem - ID #" + _CustomUserId++; - - item.Image = this.imageList1.Images[0]; - - calendarView1.CustomItems.Add(item); - - // Make sure the item is visible - - calendarView1.EnsureVisible(item); - } - - #endregion - - #region btnNewButtonItem_Click - - /// - /// Adds a new CustomItem #3 to the calendar - /// - /// - /// - private void btnNewButtonItem_Click(object sender, EventArgs e) - { - // Get dates to add item to - - DateTime startDate, endDate; - GetAddDates(out startDate, out endDate); - - // Create new ButtonCustomItem and add it to the model. - // Item will show up in the view automatically - - ButtonCustomItem item = new ButtonCustomItem(calendarView1); - - item.StartTime = startDate; - item.EndTime = endDate; - - item.Text = "Custom ButtonItem - ID #" + _CustomUserId++; - item.Tooltip = "User defined ButtonCustomItem!"; - - calendarView1.CustomItems.Add(item); - - // Make sure the item is visible - - calendarView1.EnsureVisible(item); - } - - #endregion - - #region GetAddDates - - /// - /// Gets start and end addition dates - /// - /// [out]start date - /// [out]end date - private void GetAddDates(out DateTime startDate, out DateTime endDate) - { - if (calendarView1.DateSelectionStart.HasValue && - calendarView1.DateSelectionEnd.HasValue) - { - startDate = calendarView1.DateSelectionStart.Value; - endDate = calendarView1.DateSelectionEnd.Value; - } - else - { - startDate = DateTime.Today.AddDays(3).AddHours(5); - endDate = startDate.AddHours(2.5); - } - } - - #endregion - - #region labelItem1_MarkupLinkClick - private void labelItem1_MarkupLinkClick(object sender, MarkupLinkClickEventArgs e) - { - System.Diagnostics.Process.Start("http://www.devcomponents.com/kb/questions.php?questionid=122&vs"); - } - #endregion - - #region InContentAddGlossyItem_Click - - /// - /// Adds a GlossyCustomItem to the calendar - /// - /// - /// - private void InContentAddGlossyItem_Click(object sender, EventArgs e) - { - DateTime startDate = calendarView1.DateSelectionStart.GetValueOrDefault(); - DateTime endDate = calendarView1.DateSelectionEnd.GetValueOrDefault(); - - GlossyCustomItem item = new GlossyCustomItem(); - - item.StartTime = startDate; - item.EndTime = endDate; - - item.Text = "Custom GlossyItem - ID #" + _CustomUserId++; - item.Tooltip = "User defined " + item.Text; - - calendarView1.CustomItems.Add(item); - } - - #endregion - - #region InContentAddNoteItem_Click - - /// - /// Adds a NoteCustomItem to the calendar - /// - /// - /// - private void InContentAddNoteItem_Click(object sender, EventArgs e) - { - DateTime startDate = calendarView1.DateSelectionStart.GetValueOrDefault(); - DateTime endDate = calendarView1.DateSelectionEnd.GetValueOrDefault(); - - const string s = "This is an example of a CustomCalendarItem. " + - "It's sole purpose is to display this text on the Calendar."; - - NoteCustomItem item = new NoteCustomItem(s); - - item.StartTime = startDate; - item.EndTime = endDate; - - item.Tooltip = "User defined Custom NoteItem - ID #" + _CustomUserId++; - - item.Image = this.imageList1.Images[0]; - - calendarView1.CustomItems.Add(item); - } - - #endregion - - #region InContentAddButtonItem_Click - - /// - /// Adds a ButtonCustomItem to the calendar - /// - /// - /// - private void InContentAddButtonItem_Click(object sender, EventArgs e) - { - DateTime startDate = calendarView1.DateSelectionStart.GetValueOrDefault(); - DateTime endDate = calendarView1.DateSelectionEnd.GetValueOrDefault(); - - ButtonCustomItem item = new ButtonCustomItem(calendarView1); - - item.StartTime = startDate; - item.EndTime = endDate; - - item.Text = "Custom ButtonItem - ID #" + _CustomUserId++; - item.Tooltip = "User defined " + item.Text; - - calendarView1.CustomItems.Add(item); - } - - #endregion - - #region SetAppColors1_Click - - /// - /// Processes "Set Appointment Color #1" request. - /// - /// This routine changes the Appointment colors by - /// replacing the global AppointmentColor table - /// with my local AppointmentColor table. - /// - /// - /// - /// - private void SetAppColors1_Click(object sender, EventArgs e) - { - if (GlobalManager.Renderer is Office2007Renderer) - { - Office2007ColorTable ct = - ((Office2007Renderer)GlobalManager.Renderer).ColorTable; - - ct.CalendarView.AppointmentColors = _MyAppColorTable; - - calendarView1.Refresh(); - } - } - - #endregion - - #region SetAppColors2_Click - - /// - /// Processes "Set Appointment Color #2" request. - /// - /// Though the effect is basically the same as done via - /// setting the entire Appointment color table (as in SetAppColors1_Click), - /// this routine does so by setting each Appointment color individually. - /// - /// - /// - /// - private void SetAppColors2_Click(object sender, EventArgs e) - { - Office2007Renderer renderer = GlobalManager.Renderer as Office2007Renderer; - - if (renderer != null) - { - ColorDef[] ct = new ColorDef[Enum.GetValues(typeof(eAppointmentPart)).Length]; - - ct[(int)eAppointmentPart.DefaultBorder] = new ColorDef(Color.Black); - - ct[(int)eAppointmentPart.DefaultBackground] = new ColorDef( - new Color[] { Color.White, Color.LightGray, Color.Gainsboro, Color.Black }, - new float[] { 0f, .3f, .6f, 1f }, 45); - - ct[(int)eAppointmentPart.BlueBorder] = new ColorDef(Color.MidnightBlue); - - ct[(int)eAppointmentPart.BlueBackground] = new ColorDef( - new Color[] { Color.White, Color.LightBlue, Color.SkyBlue, Color.MidnightBlue }, - new float[] { 0f, .3f, .6f, 1f }, 45); - - ct[(int)eAppointmentPart.OrangeBorder] = new ColorDef(Color.OrangeRed); - - ct[(int)eAppointmentPart.OrangeBackground] = new ColorDef( - new Color[] { Color.White, Color.DarkOrange, Color.Orange, Color.OrangeRed }, - new float[] { 0f, .3f, .6f, 1f }, 45); - - ct[(int)eAppointmentPart.PurpleBorder] = new ColorDef(Color.Indigo); - - ct[(int)eAppointmentPart.PurpleBackground] = new ColorDef( - new Color[] { Color.White, Color.BlueViolet, Color.MediumPurple, Color.Indigo }, - new float[] { 0f, .6f, .65f, 1f }, 45); - - ct[(int)eAppointmentPart.RedBorder] = new ColorDef(Color.Maroon); - - ct[(int)eAppointmentPart.RedBackground] = new ColorDef( - new Color[] { Color.White, Color.LightPink, Color.MistyRose, Color.Maroon }, - new float[] { 0f, .3f, .6f, 1f }, 45); - - ct[(int)eAppointmentPart.GreenBorder] = new ColorDef(Color.DarkGreen); - - ct[(int)eAppointmentPart.GreenBackground] = new ColorDef( - new Color[] { Color.White, Color.LightGreen, Color.Chartreuse, Color.DarkGreen }, - new float[] { 0f, .3f, .6f, 1f }, 45); - - ct[(int)eAppointmentPart.YellowBorder] = new ColorDef(Color.Black); - - ct[(int)eAppointmentPart.YellowBackground] = new ColorDef( - new Color[] { Color.White, Color.LightYellow, Color.LightGoldenrodYellow, Color.Yellow }, - new float[] { 0f, .1f, .4f, 1f }, 45); - - ct[(int)eAppointmentPart.BusyTimeMarker] = new ColorDef(Color.Yellow); - ct[(int)eAppointmentPart.FreeTimeMarker] = new ColorDef(-1); - ct[(int)eAppointmentPart.OutOfOfficeTimeMarker] = new ColorDef(Color.White); - - renderer.ColorTable.CalendarView.AppointmentColors = ct; - - calendarView1.Refresh(); - } - } - - #endregion - - #region SetCategoryColors_Click - - /// - /// Processes "Set Appointment CategoryColors" request. - /// - /// This routine establishes a set of user defined CategoryColors. - /// User defined CategoryColors can be used in place of (or in addition to) - /// the built-in Appointment.CategoryColor values. - /// - /// - /// - /// - private void SetCategoryColors_Click(object sender, EventArgs e) - { - // If we haven't defined any CategoryColors, do so now - - if (calendarView1.CategoryColors.Count == 0) - { - // Create a new AppointmentCategoryColor and add - // it to the CalendarView.CategoryColors - - ColorDef cdef = new ColorDef( - new int[] {0xFF7800, 0xE05600, 0xB53700}, - new float[] {0f, .5f, 1f}); - - AppointmentCategoryColor acc = new AppointmentCategoryColor( - "MyOrangeColor", Color.White, Color.DarkRed, cdef); - - calendarView1.CategoryColors.Add(acc); - - // Create a new AppointmentCategoryColor and use it to - // redefine the current Appointment.CategoryYellow color set - - acc = new AppointmentCategoryColor( - "Yellow", Color.Black, Color.DarkGreen, new ColorDef(Color.Yellow, Color.YellowGreen)); - - calendarView1.CategoryColors.Add(acc); - - // Go through our current appointments and set all CategoryOrange - // appointments to use our newly defined MyOrangeColor CategoryColor - - for (int i = 0; i < calendarView1.CalendarModel.Appointments.Count; i++) - { - if (calendarView1.CalendarModel.Appointments[i].CategoryColor == Appointment.CategoryOrange) - calendarView1.CalendarModel.Appointments[i].CategoryColor = "MyOrangeColor"; - } - } - } - - #endregion - - #region ResetAppColors_Click - - /// - /// Resets the Appointment colors back to the Blue default - /// - /// - /// - private void ResetAppColors_Click(object sender, EventArgs e) - { - // Get Office2007Renderer - - Office2007Renderer renderer = GlobalManager.Renderer as Office2007Renderer; - - if (renderer != null) - { - // Get Office2007ColorTable - - Office2007ColorTable ct = - new Office2007ColorTable(eOffice2007ColorScheme.Blue); - - renderer.ColorTable.CalendarView.AppointmentColors = - ct.CalendarView.AppointmentColors; - - calendarView1.Refresh(); - } - - // Go through our current appointments are reset all MyOrangeColor CategoryColor - // settings back to their previous CategoryOrange settings - - for (int i = 0; i < calendarView1.CalendarModel.Appointments.Count; i++) - { - if (calendarView1.CalendarModel.Appointments[i].CategoryColor == "MyOrangeColor") - calendarView1.CalendarModel.Appointments[i].CategoryColor = Appointment.CategoryOrange; - } - - // Clear our CategoryColors - - calendarView1.CategoryColors.Clear(); - } - - #endregion - - #region CycleViewColors_Click - - /// - /// Sets the current View colors by cycling through a new - /// RGB combination each time this routine is called. - /// - /// - /// - private void CycleViewColors_Click(object sender, EventArgs e) - { - if (GlobalManager.Renderer is Office2007Renderer) - { - Office2007ColorTable ct = ((Office2007Renderer)GlobalManager.Renderer).ColorTable; - - foreach (int val in Enum.GetValues(typeof(eCalendarWeekDayPart))) - SetNewScheme(ct.CalendarView.WeekDayViewColors[val].Colors); - - foreach (int val in Enum.GetValues(typeof(eCalendarMonthPart))) - SetNewScheme(ct.CalendarView.MonthViewColors[val].Colors); - - foreach (int val in Enum.GetValues(typeof(eTimeRulerPart))) - SetNewScheme(ct.CalendarView.TimeRulerColors[val].Colors); - - calendarView1.Refresh(); - - _ColorCycle++; - } - } - - /// - /// Sets new colors for the given color table - /// - /// Color Table - private void SetNewScheme(Color[] colors) - { - // Loop through each color in the table - - for (int i = 0; i < colors.Length; i++) - colors[i] = GetNewColor(colors[i]); - } - - /// - /// Gets a new RGB cycle color - /// - /// Current color - /// New cycled color - private Color GetNewColor(Color color) - { - if ((_ColorCycle & 1) == 0) - return (Color.FromArgb(color.R, color.B, color.G)); - - return (Color.FromArgb(color.G, color.R, color.B)); - } - - #endregion - - #region ResetViewColors_Click - - /// - /// Reset the View colors back to the Blue default - /// - /// - /// - private void ResetViewColors_Click(object sender, EventArgs e) - { - // Get Office2007Renderer - - Office2007Renderer renderer = GlobalManager.Renderer as Office2007Renderer; - - if (renderer != null) - { - // Get Office2007ColorTable - - Office2007ColorTable ct = new Office2007ColorTable(eOffice2007ColorScheme.Blue); - - renderer.ColorTable.CalendarView.WeekDayViewColors = - ct.CalendarView.WeekDayViewColors; - - renderer.ColorTable.CalendarView.MonthViewColors = - ct.CalendarView.MonthViewColors; - - renderer.ColorTable.CalendarView.TimeRulerColors = - ct.CalendarView.TimeRulerColors; - - calendarView1.Refresh(); - } - } - - #endregion - - } -} \ No newline at end of file diff --git a/AIMS/OperationFront/frmSchedulePlan2.designer.cs b/AIMS/OperationFront/frmSchedulePlan2.designer.cs deleted file mode 100644 index 05320bc..0000000 --- a/AIMS/OperationFront/frmSchedulePlan2.designer.cs +++ /dev/null @@ -1,1275 +0,0 @@ -namespace ScheduleTestProject -{ - partial class frmSchedulePlan2 - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmSchedulePlan2)); - this.ribbonControl1 = new DevComponents.DotNetBar.RibbonControl(); - this.ribbonPanel1 = new DevComponents.DotNetBar.RibbonPanel(); - this.ribbonBar3 = new DevComponents.DotNetBar.RibbonBar(); - this.buttonItem21 = new DevComponents.DotNetBar.ButtonItem(); - this.btnNewAppointment = new DevComponents.DotNetBar.ButtonItem(); - this.btnNewGlossyItem = new DevComponents.DotNetBar.ButtonItem(); - this.btnNewNoteItem = new DevComponents.DotNetBar.ButtonItem(); - this.btnNewButtonItem = new DevComponents.DotNetBar.ButtonItem(); - this.btnToday = new DevComponents.DotNetBar.ButtonItem(); - this.btnBlue = new DevComponents.DotNetBar.ButtonItem(); - this.CycleViewColors = new DevComponents.DotNetBar.ButtonItem(); - this.ResetViewColors = new DevComponents.DotNetBar.ButtonItem(); - this.SetAppColors = new DevComponents.DotNetBar.ButtonItem(); - this.SetWildAppColors = new DevComponents.DotNetBar.ButtonItem(); - this.SetCategoryColors = new DevComponents.DotNetBar.ButtonItem(); - this.ResetAppColors = new DevComponents.DotNetBar.ButtonItem(); - this.ribbonPanel2 = new DevComponents.DotNetBar.RibbonPanel(); - this.LabelX1 = new DevComponents.DotNetBar.LabelX(); - this.ribbonTabItem1 = new DevComponents.DotNetBar.RibbonTabItem(); - this.ribbonTabItem2 = new DevComponents.DotNetBar.RibbonTabItem(); - this.labelItem1 = new DevComponents.DotNetBar.LabelItem(); - this.barView = new DevComponents.DotNetBar.Bar(); - this.btnDay = new DevComponents.DotNetBar.ButtonItem(); - this.btnWeek = new DevComponents.DotNetBar.ButtonItem(); - this.btnMonth = new DevComponents.DotNetBar.ButtonItem(); - this.btnTimeLine = new DevComponents.DotNetBar.ButtonItem(); - this.dateNavigator1 = new DevComponents.DotNetBar.Schedule.DateNavigator(); - this.calendarView1 = new DevComponents.DotNetBar.Schedule.CalendarView(); - this.contextMenuBar1 = new DevComponents.DotNetBar.ContextMenuBar(); - this.InContentContextMenu = new DevComponents.DotNetBar.ButtonItem(); - this.InContentAddAppContextItem = new DevComponents.DotNetBar.ButtonItem(); - this.InContentAddGlossyItem = new DevComponents.DotNetBar.ButtonItem(); - this.InContentAddNoteItem = new DevComponents.DotNetBar.ButtonItem(); - this.InContentAddButtonItem = new DevComponents.DotNetBar.ButtonItem(); - this.InHeaderContextMenu = new DevComponents.DotNetBar.ButtonItem(); - this.InHeaderShowSideBarContextItem = new DevComponents.DotNetBar.ButtonItem(); - this.InHeaderHideSideBarContextItem = new DevComponents.DotNetBar.ButtonItem(); - this.labelItem2 = new DevComponents.DotNetBar.LabelItem(); - this.InHeaderCalColorBlue = new DevComponents.DotNetBar.ButtonItem(); - this.InHeaderCalColorGreen = new DevComponents.DotNetBar.ButtonItem(); - this.InHeaderCalColorMaroon = new DevComponents.DotNetBar.ButtonItem(); - this.InHeaderCalColorSteel = new DevComponents.DotNetBar.ButtonItem(); - this.InHeaderCalColorTeal = new DevComponents.DotNetBar.ButtonItem(); - this.InHeaderCalColorPurple = new DevComponents.DotNetBar.ButtonItem(); - this.InHeaderCalColorOlive = new DevComponents.DotNetBar.ButtonItem(); - this.InHeaderCalColorRed = new DevComponents.DotNetBar.ButtonItem(); - this.InHeaderCalColorDarkPeach = new DevComponents.DotNetBar.ButtonItem(); - this.InHeaderCalColorDarkSteel = new DevComponents.DotNetBar.ButtonItem(); - this.InHeaderCalColorDarkGreen = new DevComponents.DotNetBar.ButtonItem(); - this.InHeaderCalColorYellow = new DevComponents.DotNetBar.ButtonItem(); - this.InHeaderCalColorAutomatic = new DevComponents.DotNetBar.ButtonItem(); - this.InSideBarContextMenu = new DevComponents.DotNetBar.ButtonItem(); - this.InSideBarHideContextItem = new DevComponents.DotNetBar.ButtonItem(); - this.AppointmentContextMenu = new DevComponents.DotNetBar.ButtonItem(); - this.AppDeleteContextItem = new DevComponents.DotNetBar.ButtonItem(); - this.labelItem3 = new DevComponents.DotNetBar.LabelItem(); - this.AppCatDefault = new DevComponents.DotNetBar.ButtonItem(); - this.AppCatBlue = new DevComponents.DotNetBar.ButtonItem(); - this.AppCatGreen = new DevComponents.DotNetBar.ButtonItem(); - this.AppCatOrange = new DevComponents.DotNetBar.ButtonItem(); - this.AppCatPurple = new DevComponents.DotNetBar.ButtonItem(); - this.AppCatRed = new DevComponents.DotNetBar.ButtonItem(); - this.AppCatYellow = new DevComponents.DotNetBar.ButtonItem(); - this.labelItem4 = new DevComponents.DotNetBar.LabelItem(); - this.AppMarkerDefault = new DevComponents.DotNetBar.ButtonItem(); - this.AppMarkerBusy = new DevComponents.DotNetBar.ButtonItem(); - this.AppMarkerFree = new DevComponents.DotNetBar.ButtonItem(); - this.AppMarkerOutOfOffice = new DevComponents.DotNetBar.ButtonItem(); - this.AppMarkerTentative = new DevComponents.DotNetBar.ButtonItem(); - this.AllDayPanelContextMenu = new DevComponents.DotNetBar.ButtonItem(); - this.AllDayShrinkContextItem = new DevComponents.DotNetBar.ButtonItem(); - this.AllDayGrowContextItem = new DevComponents.DotNetBar.ButtonItem(); - this.AllDayReset = new DevComponents.DotNetBar.ButtonItem(); - this.TimeRulerPanelContextMenu = new DevComponents.DotNetBar.ButtonItem(); - this.labelItem5 = new DevComponents.DotNetBar.LabelItem(); - this.TimeDuration30 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem6 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem7 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem8 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem9 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem11 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem12 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem13 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem15 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem16 = new DevComponents.DotNetBar.ButtonItem(); - this.buttonItem22 = new DevComponents.DotNetBar.ButtonItem(); - this.CustomItemContextMenu = new DevComponents.DotNetBar.ButtonItem(); - this.CustomDeleteContextItem = new DevComponents.DotNetBar.ButtonItem(); - this.PeriodHeaderContextMenu = new DevComponents.DotNetBar.ButtonItem(); - this.lblPeriodHeader = new DevComponents.DotNetBar.LabelItem(); - this.InPeriodHeaderHide = new DevComponents.DotNetBar.ButtonItem(); - this.labelItem6 = new DevComponents.DotNetBar.LabelItem(); - this.btnPeriodMinutes = new DevComponents.DotNetBar.ButtonItem(); - this.btnPeriodHours = new DevComponents.DotNetBar.ButtonItem(); - this.btnPeriodDays = new DevComponents.DotNetBar.ButtonItem(); - this.btnPeriodYears = new DevComponents.DotNetBar.ButtonItem(); - this.IntervalHeaderContextMenu = new DevComponents.DotNetBar.ButtonItem(); - this.lblPeriodHeader2 = new DevComponents.DotNetBar.LabelItem(); - this.btnIntervalHeaderShow = new DevComponents.DotNetBar.ButtonItem(); - this.labelItem7 = new DevComponents.DotNetBar.LabelItem(); - this.CondensedViewContextMenu = new DevComponents.DotNetBar.ButtonItem(); - this.labelItem8 = new DevComponents.DotNetBar.LabelItem(); - this.btnCondensedViewAll = new DevComponents.DotNetBar.ButtonItem(); - this.btnCondensedViewSelected = new DevComponents.DotNetBar.ButtonItem(); - this.btnCondensedViewHidden = new DevComponents.DotNetBar.ButtonItem(); - this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); - this.imageList1 = new System.Windows.Forms.ImageList(this.components); - this.ribbonControl1.SuspendLayout(); - this.ribbonPanel1.SuspendLayout(); - this.ribbonPanel2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.barView)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.contextMenuBar1)).BeginInit(); - this.SuspendLayout(); - // - // ribbonControl1 - // - this.ribbonControl1.BackColor = System.Drawing.Color.White; - // - // - // - this.ribbonControl1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonControl1.Controls.Add(this.ribbonPanel1); - this.ribbonControl1.Controls.Add(this.ribbonPanel2); - this.ribbonControl1.Dock = System.Windows.Forms.DockStyle.Top; - this.ribbonControl1.ForeColor = System.Drawing.Color.Black; - this.ribbonControl1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.ribbonTabItem1, - this.ribbonTabItem2, - this.labelItem1}); - this.ribbonControl1.KeyTipsFont = new System.Drawing.Font("Tahoma", 7F); - this.ribbonControl1.Location = new System.Drawing.Point(0, 0); - this.ribbonControl1.Name = "ribbonControl1"; - this.ribbonControl1.Padding = new System.Windows.Forms.Padding(0, 0, 0, 3); - this.ribbonControl1.Size = new System.Drawing.Size(916, 92); - this.ribbonControl1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonControl1.SystemText.MaximizeRibbonText = "&Maximize the Ribbon"; - this.ribbonControl1.SystemText.MinimizeRibbonText = "Mi&nimize the Ribbon"; - this.ribbonControl1.SystemText.QatAddItemText = "&Add to Quick Access Toolbar"; - this.ribbonControl1.SystemText.QatCustomizeMenuLabel = "Customize Quick Access Toolbar"; - this.ribbonControl1.SystemText.QatCustomizeText = "&Customize Quick Access Toolbar..."; - this.ribbonControl1.SystemText.QatDialogAddButton = "&Add >>"; - this.ribbonControl1.SystemText.QatDialogCancelButton = "Cancel"; - this.ribbonControl1.SystemText.QatDialogCaption = "Customize Quick Access Toolbar"; - this.ribbonControl1.SystemText.QatDialogCategoriesLabel = "&Choose commands from:"; - this.ribbonControl1.SystemText.QatDialogOkButton = "OK"; - this.ribbonControl1.SystemText.QatDialogPlacementCheckbox = "&Place Quick Access Toolbar below the Ribbon"; - this.ribbonControl1.SystemText.QatDialogRemoveButton = "&Remove"; - this.ribbonControl1.SystemText.QatPlaceAboveRibbonText = "&Place Quick Access Toolbar above the Ribbon"; - this.ribbonControl1.SystemText.QatPlaceBelowRibbonText = "&Place Quick Access Toolbar below the Ribbon"; - this.ribbonControl1.SystemText.QatRemoveItemText = "&Remove from Quick Access Toolbar"; - this.ribbonControl1.TabGroupHeight = 14; - this.ribbonControl1.TabIndex = 5; - this.ribbonControl1.Text = "ribbonControl1"; - // - // ribbonPanel1 - // - this.ribbonPanel1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel1.Controls.Add(this.ribbonBar3); - this.ribbonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel1.Location = new System.Drawing.Point(0, 26); - this.ribbonPanel1.Name = "ribbonPanel1"; - this.ribbonPanel1.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel1.Size = new System.Drawing.Size(916, 63); - // - // - // - this.ribbonPanel1.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel1.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel1.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel1.TabIndex = 1; - // - // ribbonBar3 - // - this.ribbonBar3.AutoOverflowEnabled = true; - // - // - // - this.ribbonBar3.BackgroundMouseOverStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar3.ContainerControlProcessDialogKey = true; - this.ribbonBar3.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonBar3.DragDropSupport = true; - this.ribbonBar3.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.buttonItem21, - this.btnToday, - this.btnBlue}); - this.ribbonBar3.Location = new System.Drawing.Point(3, 0); - this.ribbonBar3.Name = "ribbonBar3"; - this.ribbonBar3.Size = new System.Drawing.Size(910, 60); - this.ribbonBar3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonBar3.TabIndex = 1; - this.ribbonBar3.Text = "Schedule"; - // - // - // - this.ribbonBar3.TitleStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonBar3.TitleStyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonBar3.TitleVisible = false; - // - // buttonItem21 - // - this.buttonItem21.AutoCheckOnClick = true; - this.buttonItem21.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.buttonItem21.Image = ((System.Drawing.Image)(resources.GetObject("buttonItem21.Image"))); - this.buttonItem21.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.buttonItem21.Name = "buttonItem21"; - this.buttonItem21.OptionGroup = "Color"; - this.buttonItem21.SplitButton = true; - this.buttonItem21.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.btnNewAppointment, - this.btnNewGlossyItem, - this.btnNewNoteItem, - this.btnNewButtonItem}); - this.buttonItem21.Text = "New"; - // - // btnNewAppointment - // - this.btnNewAppointment.Name = "btnNewAppointment"; - this.btnNewAppointment.Text = "New Appointment"; - this.btnNewAppointment.Click += new System.EventHandler(this.btnNewAppointment_Click); - // - // btnNewGlossyItem - // - this.btnNewGlossyItem.BeginGroup = true; - this.btnNewGlossyItem.Name = "btnNewGlossyItem"; - this.btnNewGlossyItem.Text = "New Glossy Custom Item"; - this.btnNewGlossyItem.Click += new System.EventHandler(this.btnNewGlossyItem_Click); - // - // btnNewNoteItem - // - this.btnNewNoteItem.Name = "btnNewNoteItem"; - this.btnNewNoteItem.Text = "New Note Custom Item"; - this.btnNewNoteItem.Click += new System.EventHandler(this.btnNewNoteItem_Click); - // - // btnNewButtonItem - // - this.btnNewButtonItem.Name = "btnNewButtonItem"; - this.btnNewButtonItem.Text = "New Button Custom Item"; - this.btnNewButtonItem.Click += new System.EventHandler(this.btnNewButtonItem_Click); - // - // btnToday - // - this.btnToday.AutoCheckOnClick = true; - this.btnToday.BeginGroup = true; - this.btnToday.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.btnToday.Image = ((System.Drawing.Image)(resources.GetObject("btnToday.Image"))); - this.btnToday.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btnToday.Name = "btnToday"; - this.btnToday.OptionGroup = "Color"; - this.btnToday.SubItemsExpandWidth = 14; - this.btnToday.Text = "Today"; - this.btnToday.Tooltip = "Today"; - this.btnToday.Click += new System.EventHandler(this.btnToday_Click); - // - // btnBlue - // - this.btnBlue.BeginGroup = true; - this.btnBlue.ButtonStyle = DevComponents.DotNetBar.eButtonStyle.ImageAndText; - this.btnBlue.Image = ((System.Drawing.Image)(resources.GetObject("btnBlue.Image"))); - this.btnBlue.ImagePosition = DevComponents.DotNetBar.eImagePosition.Top; - this.btnBlue.Name = "btnBlue"; - this.btnBlue.SplitButton = true; - this.btnBlue.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.CycleViewColors, - this.ResetViewColors, - this.SetAppColors, - this.SetWildAppColors, - this.SetCategoryColors, - this.ResetAppColors}); - this.btnBlue.Text = "Color"; - // - // CycleViewColors - // - this.CycleViewColors.Name = "CycleViewColors"; - this.CycleViewColors.Text = "Cycle View Colors"; - this.CycleViewColors.Click += new System.EventHandler(this.CycleViewColors_Click); - // - // ResetViewColors - // - this.ResetViewColors.Name = "ResetViewColors"; - this.ResetViewColors.Text = "Reset View Colors"; - this.ResetViewColors.Click += new System.EventHandler(this.ResetViewColors_Click); - // - // SetAppColors - // - this.SetAppColors.BeginGroup = true; - this.SetAppColors.Name = "SetAppColors"; - this.SetAppColors.Text = "Set Appointment Colors #1"; - this.SetAppColors.Click += new System.EventHandler(this.SetAppColors1_Click); - // - // SetWildAppColors - // - this.SetWildAppColors.Name = "SetWildAppColors"; - this.SetWildAppColors.Text = "Set Appointment Colors #2"; - this.SetWildAppColors.Click += new System.EventHandler(this.SetAppColors2_Click); - // - // SetCategoryColors - // - this.SetCategoryColors.Name = "SetCategoryColors"; - this.SetCategoryColors.Text = "Set Appointment CategoryColors"; - this.SetCategoryColors.Click += new System.EventHandler(this.SetCategoryColors_Click); - // - // ResetAppColors - // - this.ResetAppColors.Name = "ResetAppColors"; - this.ResetAppColors.Text = "Reset Appointment Colors"; - this.ResetAppColors.Click += new System.EventHandler(this.ResetAppColors_Click); - // - // ribbonPanel2 - // - this.ribbonPanel2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.ribbonPanel2.Controls.Add(this.LabelX1); - this.ribbonPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.ribbonPanel2.Location = new System.Drawing.Point(0, 52); - this.ribbonPanel2.Name = "ribbonPanel2"; - this.ribbonPanel2.Padding = new System.Windows.Forms.Padding(3, 0, 3, 3); - this.ribbonPanel2.Size = new System.Drawing.Size(860, 65); - // - // - // - this.ribbonPanel2.Style.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel2.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square; - // - // - // - this.ribbonPanel2.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.ribbonPanel2.TabIndex = 2; - this.ribbonPanel2.Visible = false; - // - // LabelX1 - // - this.LabelX1.BackColor = System.Drawing.Color.Transparent; - // - // - // - this.LabelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.LabelX1.Dock = System.Windows.Forms.DockStyle.Fill; - this.LabelX1.Location = new System.Drawing.Point(3, 0); - this.LabelX1.Name = "LabelX1"; - this.LabelX1.Size = new System.Drawing.Size(854, 62); - this.LabelX1.TabIndex = 1; - this.LabelX1.Text = resources.GetString("LabelX1.Text"); - this.LabelX1.WordWrap = true; - // - // ribbonTabItem1 - // - this.ribbonTabItem1.Checked = true; - this.ribbonTabItem1.Name = "ribbonTabItem1"; - this.ribbonTabItem1.Panel = this.ribbonPanel1; - this.ribbonTabItem1.Text = "Calendar"; - // - // ribbonTabItem2 - // - this.ribbonTabItem2.Name = "ribbonTabItem2"; - this.ribbonTabItem2.Panel = this.ribbonPanel2; - this.ribbonTabItem2.Text = "Tips"; - // - // labelItem1 - // - this.labelItem1.ItemAlignment = DevComponents.DotNetBar.eItemAlignment.Far; - this.labelItem1.Name = "labelItem1"; - this.labelItem1.PaddingBottom = 4; - this.labelItem1.Text = "Quick Guide"; - this.labelItem1.MarkupLinkClick += new DevComponents.DotNetBar.MarkupLinkClickEventHandler(this.labelItem1_MarkupLinkClick); - // - // barView - // - this.barView.Dock = System.Windows.Forms.DockStyle.Top; - this.barView.Font = new System.Drawing.Font("Segoe UI", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.barView.IsMaximized = false; - this.barView.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.btnDay, - this.btnWeek, - this.btnMonth, - this.btnTimeLine}); - this.barView.Location = new System.Drawing.Point(0, 92); - this.barView.Name = "barView"; - this.barView.RoundCorners = false; - this.barView.Size = new System.Drawing.Size(916, 31); - this.barView.Stretch = true; - this.barView.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.barView.TabIndex = 6; - this.barView.TabStop = false; - this.barView.Text = "bar1"; - // - // btnDay - // - this.btnDay.Checked = true; - this.btnDay.Name = "btnDay"; - this.btnDay.OptionGroup = "View"; - this.btnDay.Text = "Day"; - this.btnDay.Click += new System.EventHandler(this.btnDay_Click); - // - // btnWeek - // - this.btnWeek.Name = "btnWeek"; - this.btnWeek.OptionGroup = "View"; - this.btnWeek.Text = "Week"; - this.btnWeek.Click += new System.EventHandler(this.btnWeek_Click); - // - // btnMonth - // - this.btnMonth.Name = "btnMonth"; - this.btnMonth.OptionGroup = "View"; - this.btnMonth.Text = "Month"; - this.btnMonth.Click += new System.EventHandler(this.btnMonth_Click); - // - // btnTimeLine - // - this.btnTimeLine.Name = "btnTimeLine"; - this.btnTimeLine.OptionGroup = "View"; - this.btnTimeLine.Text = "TimeLine"; - this.btnTimeLine.Click += new System.EventHandler(this.btnTimeLine_Click); - // - // dateNavigator1 - // - this.dateNavigator1.CalendarView = this.calendarView1; - this.dateNavigator1.CanvasColor = System.Drawing.SystemColors.Control; - this.dateNavigator1.DisabledBackColor = System.Drawing.Color.Empty; - this.dateNavigator1.Dock = System.Windows.Forms.DockStyle.Top; - this.dateNavigator1.Location = new System.Drawing.Point(0, 123); - this.dateNavigator1.Name = "dateNavigator1"; - this.dateNavigator1.Size = new System.Drawing.Size(916, 28); - this.dateNavigator1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255))))); - this.dateNavigator1.TabIndex = 7; - this.dateNavigator1.Text = "dateNavigator1"; - // - // calendarView1 - // - this.calendarView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255))))); - // - // - // - this.calendarView1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.calendarView1.ContainerControlProcessDialogKey = true; - this.calendarView1.Dock = System.Windows.Forms.DockStyle.Fill; - this.calendarView1.ForeColor = System.Drawing.Color.Black; - this.calendarView1.HighlightCurrentDay = true; - this.calendarView1.Is24HourFormat = true; - this.calendarView1.LabelTimeSlots = true; - this.calendarView1.Location = new System.Drawing.Point(0, 151); - this.calendarView1.MultiUserTabHeight = 20; - this.calendarView1.Name = "calendarView1"; - this.calendarView1.SelectedView = DevComponents.DotNetBar.Schedule.eCalendarView.Week; - this.calendarView1.Size = new System.Drawing.Size(916, 513); - this.calendarView1.TabIndex = 8; - this.calendarView1.Text = "calendarView1"; - this.calendarView1.TimeIndicator.BorderColor = System.Drawing.Color.Empty; - this.calendarView1.TimeIndicator.IndicatorArea = DevComponents.DotNetBar.Schedule.eTimeIndicatorArea.All; - this.calendarView1.TimeIndicator.Tag = null; - this.calendarView1.TimeIndicator.Visibility = DevComponents.DotNetBar.Schedule.eTimeIndicatorVisibility.AllResources; - this.calendarView1.TimeSlotDuration = 15; - this.calendarView1.ItemDoubleClick += new System.Windows.Forms.MouseEventHandler(this.CalendarView1_ItemDoubleClick); - this.calendarView1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.CalendarView1_MouseUp); - // - // contextMenuBar1 - // - this.contextMenuBar1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - this.contextMenuBar1.IsMaximized = false; - this.contextMenuBar1.Items.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.InContentContextMenu, - this.InHeaderContextMenu, - this.InSideBarContextMenu, - this.AppointmentContextMenu, - this.AllDayPanelContextMenu, - this.TimeRulerPanelContextMenu, - this.CustomItemContextMenu, - this.PeriodHeaderContextMenu, - this.IntervalHeaderContextMenu, - this.CondensedViewContextMenu}); - this.contextMenuBar1.Location = new System.Drawing.Point(118, 234); - this.contextMenuBar1.Name = "contextMenuBar1"; - this.contextMenuBar1.Size = new System.Drawing.Size(504, 72); - this.contextMenuBar1.Stretch = true; - this.contextMenuBar1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.contextMenuBar1.TabIndex = 9; - this.contextMenuBar1.TabStop = false; - this.contextMenuBar1.Text = "contextMenuBar1"; - // - // InContentContextMenu - // - this.InContentContextMenu.AutoExpandOnClick = true; - this.InContentContextMenu.Name = "InContentContextMenu"; - this.InContentContextMenu.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.InContentAddAppContextItem, - this.InContentAddGlossyItem, - this.InContentAddNoteItem, - this.InContentAddButtonItem}); - this.InContentContextMenu.Text = "InContent"; - // - // InContentAddAppContextItem - // - this.InContentAddAppContextItem.Name = "InContentAddAppContextItem"; - this.InContentAddAppContextItem.Text = "Add Appointment"; - this.InContentAddAppContextItem.Click += new System.EventHandler(this.miAdd_Click); - // - // InContentAddGlossyItem - // - this.InContentAddGlossyItem.BeginGroup = true; - this.InContentAddGlossyItem.Name = "InContentAddGlossyItem"; - this.InContentAddGlossyItem.Text = "Add Glossy Custom Item"; - this.InContentAddGlossyItem.Click += new System.EventHandler(this.InContentAddGlossyItem_Click); - // - // InContentAddNoteItem - // - this.InContentAddNoteItem.Name = "InContentAddNoteItem"; - this.InContentAddNoteItem.Text = "Add Note Custom Item"; - this.InContentAddNoteItem.Click += new System.EventHandler(this.InContentAddNoteItem_Click); - // - // InContentAddButtonItem - // - this.InContentAddButtonItem.Name = "InContentAddButtonItem"; - this.InContentAddButtonItem.Text = "Add Button Custom Item"; - this.InContentAddButtonItem.Click += new System.EventHandler(this.InContentAddButtonItem_Click); - // - // InHeaderContextMenu - // - this.InHeaderContextMenu.AutoExpandOnClick = true; - this.InHeaderContextMenu.Name = "InHeaderContextMenu"; - this.InHeaderContextMenu.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.InHeaderShowSideBarContextItem, - this.InHeaderHideSideBarContextItem, - this.labelItem2, - this.InHeaderCalColorBlue, - this.InHeaderCalColorGreen, - this.InHeaderCalColorMaroon, - this.InHeaderCalColorSteel, - this.InHeaderCalColorTeal, - this.InHeaderCalColorPurple, - this.InHeaderCalColorOlive, - this.InHeaderCalColorRed, - this.InHeaderCalColorDarkPeach, - this.InHeaderCalColorDarkSteel, - this.InHeaderCalColorDarkGreen, - this.InHeaderCalColorYellow, - this.InHeaderCalColorAutomatic}); - this.InHeaderContextMenu.Text = "InHeader"; - // - // InHeaderShowSideBarContextItem - // - this.InHeaderShowSideBarContextItem.Name = "InHeaderShowSideBarContextItem"; - this.InHeaderShowSideBarContextItem.Text = "Show SideBar"; - this.InHeaderShowSideBarContextItem.Click += new System.EventHandler(this.miShowSideBar_Click); - // - // InHeaderHideSideBarContextItem - // - this.InHeaderHideSideBarContextItem.Name = "InHeaderHideSideBarContextItem"; - this.InHeaderHideSideBarContextItem.Text = "Hide SideBar"; - this.InHeaderHideSideBarContextItem.Click += new System.EventHandler(this.miHideSideBar_Click); - // - // labelItem2 - // - this.labelItem2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(238))))); - this.labelItem2.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; - this.labelItem2.BorderType = DevComponents.DotNetBar.eBorderType.SingleLine; - this.labelItem2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(21)))), ((int)(((byte)(110))))); - this.labelItem2.Name = "labelItem2"; - this.labelItem2.PaddingBottom = 1; - this.labelItem2.PaddingLeft = 10; - this.labelItem2.PaddingTop = 1; - this.labelItem2.SingleLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197))))); - this.labelItem2.Text = "Calendar Color"; - // - // InHeaderCalColorBlue - // - this.InHeaderCalColorBlue.Name = "InHeaderCalColorBlue"; - this.InHeaderCalColorBlue.Text = "Blue"; - this.InHeaderCalColorBlue.Click += new System.EventHandler(this.miCalendarColor_Click); - // - // InHeaderCalColorGreen - // - this.InHeaderCalColorGreen.Name = "InHeaderCalColorGreen"; - this.InHeaderCalColorGreen.Text = "Green"; - this.InHeaderCalColorGreen.Click += new System.EventHandler(this.miCalendarColor_Click); - // - // InHeaderCalColorMaroon - // - this.InHeaderCalColorMaroon.Name = "InHeaderCalColorMaroon"; - this.InHeaderCalColorMaroon.Text = "Maroon"; - this.InHeaderCalColorMaroon.Click += new System.EventHandler(this.miCalendarColor_Click); - // - // InHeaderCalColorSteel - // - this.InHeaderCalColorSteel.Name = "InHeaderCalColorSteel"; - this.InHeaderCalColorSteel.Text = "Steel"; - this.InHeaderCalColorSteel.Click += new System.EventHandler(this.miCalendarColor_Click); - // - // InHeaderCalColorTeal - // - this.InHeaderCalColorTeal.Name = "InHeaderCalColorTeal"; - this.InHeaderCalColorTeal.Text = "Teal"; - this.InHeaderCalColorTeal.Click += new System.EventHandler(this.miCalendarColor_Click); - // - // InHeaderCalColorPurple - // - this.InHeaderCalColorPurple.Name = "InHeaderCalColorPurple"; - this.InHeaderCalColorPurple.Text = "Purple"; - this.InHeaderCalColorPurple.Click += new System.EventHandler(this.miCalendarColor_Click); - // - // InHeaderCalColorOlive - // - this.InHeaderCalColorOlive.Name = "InHeaderCalColorOlive"; - this.InHeaderCalColorOlive.Text = "Olive"; - this.InHeaderCalColorOlive.Click += new System.EventHandler(this.miCalendarColor_Click); - // - // InHeaderCalColorRed - // - this.InHeaderCalColorRed.Name = "InHeaderCalColorRed"; - this.InHeaderCalColorRed.Text = "Red"; - this.InHeaderCalColorRed.Click += new System.EventHandler(this.miCalendarColor_Click); - // - // InHeaderCalColorDarkPeach - // - this.InHeaderCalColorDarkPeach.Name = "InHeaderCalColorDarkPeach"; - this.InHeaderCalColorDarkPeach.Text = "DarkPeach"; - this.InHeaderCalColorDarkPeach.Click += new System.EventHandler(this.miCalendarColor_Click); - // - // InHeaderCalColorDarkSteel - // - this.InHeaderCalColorDarkSteel.Name = "InHeaderCalColorDarkSteel"; - this.InHeaderCalColorDarkSteel.Text = "DarkSteel"; - this.InHeaderCalColorDarkSteel.Click += new System.EventHandler(this.miCalendarColor_Click); - // - // InHeaderCalColorDarkGreen - // - this.InHeaderCalColorDarkGreen.Name = "InHeaderCalColorDarkGreen"; - this.InHeaderCalColorDarkGreen.Text = "DarkGreen"; - this.InHeaderCalColorDarkGreen.Click += new System.EventHandler(this.miCalendarColor_Click); - // - // InHeaderCalColorYellow - // - this.InHeaderCalColorYellow.Name = "InHeaderCalColorYellow"; - this.InHeaderCalColorYellow.Text = "Yellow"; - this.InHeaderCalColorYellow.Click += new System.EventHandler(this.miCalendarColor_Click); - // - // InHeaderCalColorAutomatic - // - this.InHeaderCalColorAutomatic.Name = "InHeaderCalColorAutomatic"; - this.InHeaderCalColorAutomatic.Text = "Automatic"; - this.InHeaderCalColorAutomatic.Click += new System.EventHandler(this.miCalendarColor_Click); - // - // InSideBarContextMenu - // - this.InSideBarContextMenu.AutoExpandOnClick = true; - this.InSideBarContextMenu.Name = "InSideBarContextMenu"; - this.InSideBarContextMenu.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.InSideBarHideContextItem}); - this.InSideBarContextMenu.Text = "InSideBar"; - // - // InSideBarHideContextItem - // - this.InSideBarHideContextItem.Name = "InSideBarHideContextItem"; - this.InSideBarHideContextItem.Text = "Hide SideBar"; - this.InSideBarHideContextItem.Click += new System.EventHandler(this.miHideSideBar_Click); - // - // AppointmentContextMenu - // - this.AppointmentContextMenu.AutoExpandOnClick = true; - this.AppointmentContextMenu.Name = "AppointmentContextMenu"; - this.AppointmentContextMenu.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.AppDeleteContextItem, - this.labelItem3, - this.AppCatDefault, - this.AppCatBlue, - this.AppCatGreen, - this.AppCatOrange, - this.AppCatPurple, - this.AppCatRed, - this.AppCatYellow, - this.labelItem4, - this.AppMarkerDefault, - this.AppMarkerBusy, - this.AppMarkerFree, - this.AppMarkerOutOfOffice, - this.AppMarkerTentative}); - this.AppointmentContextMenu.Text = "Appointment"; - // - // AppDeleteContextItem - // - this.AppDeleteContextItem.Name = "AppDeleteContextItem"; - this.AppDeleteContextItem.Text = "Delete Appointment"; - this.AppDeleteContextItem.Click += new System.EventHandler(this.miDelete_Click); - // - // labelItem3 - // - this.labelItem3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(238))))); - this.labelItem3.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; - this.labelItem3.BorderType = DevComponents.DotNetBar.eBorderType.SingleLine; - this.labelItem3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(21)))), ((int)(((byte)(110))))); - this.labelItem3.Name = "labelItem3"; - this.labelItem3.PaddingBottom = 1; - this.labelItem3.PaddingLeft = 10; - this.labelItem3.PaddingTop = 1; - this.labelItem3.SingleLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197))))); - this.labelItem3.Text = "Set Category Color"; - // - // AppCatDefault - // - this.AppCatDefault.Name = "AppCatDefault"; - this.AppCatDefault.Text = "Default"; - this.AppCatDefault.Click += new System.EventHandler(this.CategoryColor_Click); - // - // AppCatBlue - // - this.AppCatBlue.Name = "AppCatBlue"; - this.AppCatBlue.Text = "Blue"; - this.AppCatBlue.Click += new System.EventHandler(this.CategoryColor_Click); - // - // AppCatGreen - // - this.AppCatGreen.Name = "AppCatGreen"; - this.AppCatGreen.Text = "Green"; - this.AppCatGreen.Click += new System.EventHandler(this.CategoryColor_Click); - // - // AppCatOrange - // - this.AppCatOrange.Name = "AppCatOrange"; - this.AppCatOrange.Text = "Orange"; - this.AppCatOrange.Click += new System.EventHandler(this.CategoryColor_Click); - // - // AppCatPurple - // - this.AppCatPurple.Name = "AppCatPurple"; - this.AppCatPurple.Text = "Purple"; - this.AppCatPurple.Click += new System.EventHandler(this.CategoryColor_Click); - // - // AppCatRed - // - this.AppCatRed.Name = "AppCatRed"; - this.AppCatRed.Text = "Red"; - this.AppCatRed.Click += new System.EventHandler(this.CategoryColor_Click); - // - // AppCatYellow - // - this.AppCatYellow.Name = "AppCatYellow"; - this.AppCatYellow.Text = "Yellow"; - this.AppCatYellow.Click += new System.EventHandler(this.CategoryColor_Click); - // - // labelItem4 - // - this.labelItem4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(238))))); - this.labelItem4.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; - this.labelItem4.BorderType = DevComponents.DotNetBar.eBorderType.SingleLine; - this.labelItem4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(21)))), ((int)(((byte)(110))))); - this.labelItem4.Name = "labelItem4"; - this.labelItem4.PaddingBottom = 1; - this.labelItem4.PaddingLeft = 10; - this.labelItem4.PaddingTop = 1; - this.labelItem4.SingleLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197))))); - this.labelItem4.Text = "Set Time Marker"; - // - // AppMarkerDefault - // - this.AppMarkerDefault.Name = "AppMarkerDefault"; - this.AppMarkerDefault.Text = "Default"; - this.AppMarkerDefault.Click += new System.EventHandler(this.TimeMarker_Click); - // - // AppMarkerBusy - // - this.AppMarkerBusy.Name = "AppMarkerBusy"; - this.AppMarkerBusy.Text = "Busy"; - this.AppMarkerBusy.Click += new System.EventHandler(this.TimeMarker_Click); - // - // AppMarkerFree - // - this.AppMarkerFree.Name = "AppMarkerFree"; - this.AppMarkerFree.Text = "Free"; - this.AppMarkerFree.Click += new System.EventHandler(this.TimeMarker_Click); - // - // AppMarkerOutOfOffice - // - this.AppMarkerOutOfOffice.Name = "AppMarkerOutOfOffice"; - this.AppMarkerOutOfOffice.Text = "OutOfOffice"; - this.AppMarkerOutOfOffice.Click += new System.EventHandler(this.TimeMarker_Click); - // - // AppMarkerTentative - // - this.AppMarkerTentative.Name = "AppMarkerTentative"; - this.AppMarkerTentative.Text = "Tentative"; - this.AppMarkerTentative.Click += new System.EventHandler(this.TimeMarker_Click); - // - // AllDayPanelContextMenu - // - this.AllDayPanelContextMenu.AutoExpandOnClick = true; - this.AllDayPanelContextMenu.Name = "AllDayPanelContextMenu"; - this.AllDayPanelContextMenu.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.AllDayShrinkContextItem, - this.AllDayGrowContextItem, - this.AllDayReset}); - this.AllDayPanelContextMenu.Text = "AllDayPanel"; - // - // AllDayShrinkContextItem - // - this.AllDayShrinkContextItem.Name = "AllDayShrinkContextItem"; - this.AllDayShrinkContextItem.Text = "Shrink Panel"; - this.AllDayShrinkContextItem.Click += new System.EventHandler(this.miShrink_Click); - // - // AllDayGrowContextItem - // - this.AllDayGrowContextItem.Name = "AllDayGrowContextItem"; - this.AllDayGrowContextItem.Text = "Grow Panel"; - this.AllDayGrowContextItem.Click += new System.EventHandler(this.miGrow_Click); - // - // AllDayReset - // - this.AllDayReset.BeginGroup = true; - this.AllDayReset.Name = "AllDayReset"; - this.AllDayReset.Text = "Reset"; - this.AllDayReset.Click += new System.EventHandler(this.miReset_Click); - // - // TimeRulerPanelContextMenu - // - this.TimeRulerPanelContextMenu.AutoExpandOnClick = true; - this.TimeRulerPanelContextMenu.Name = "TimeRulerPanelContextMenu"; - this.TimeRulerPanelContextMenu.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.labelItem5, - this.TimeDuration30, - this.buttonItem6, - this.buttonItem7, - this.buttonItem8, - this.buttonItem9, - this.buttonItem11, - this.buttonItem12, - this.buttonItem13, - this.buttonItem15, - this.buttonItem16, - this.buttonItem22}); - this.TimeRulerPanelContextMenu.Text = "InTimeRulerPanel"; - // - // labelItem5 - // - this.labelItem5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(238))))); - this.labelItem5.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; - this.labelItem5.BorderType = DevComponents.DotNetBar.eBorderType.SingleLine; - this.labelItem5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(21)))), ((int)(((byte)(110))))); - this.labelItem5.Name = "labelItem5"; - this.labelItem5.PaddingBottom = 1; - this.labelItem5.PaddingLeft = 10; - this.labelItem5.PaddingTop = 1; - this.labelItem5.SingleLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197))))); - this.labelItem5.Text = "TimeSlot Duration"; - // - // TimeDuration30 - // - this.TimeDuration30.Name = "TimeDuration30"; - this.TimeDuration30.Text = "30"; - this.TimeDuration30.Click += new System.EventHandler(this.miTimeDuration_Click); - // - // buttonItem6 - // - this.buttonItem6.Name = "buttonItem6"; - this.buttonItem6.Text = "20"; - this.buttonItem6.Click += new System.EventHandler(this.miTimeDuration_Click); - // - // buttonItem7 - // - this.buttonItem7.Name = "buttonItem7"; - this.buttonItem7.Text = "15"; - this.buttonItem7.Click += new System.EventHandler(this.miTimeDuration_Click); - // - // buttonItem8 - // - this.buttonItem8.Name = "buttonItem8"; - this.buttonItem8.Text = "12"; - this.buttonItem8.Click += new System.EventHandler(this.miTimeDuration_Click); - // - // buttonItem9 - // - this.buttonItem9.Name = "buttonItem9"; - this.buttonItem9.Text = "10"; - this.buttonItem9.Click += new System.EventHandler(this.miTimeDuration_Click); - // - // buttonItem11 - // - this.buttonItem11.Name = "buttonItem11"; - this.buttonItem11.Text = "6"; - this.buttonItem11.Click += new System.EventHandler(this.miTimeDuration_Click); - // - // buttonItem12 - // - this.buttonItem12.Name = "buttonItem12"; - this.buttonItem12.Text = "5"; - this.buttonItem12.Click += new System.EventHandler(this.miTimeDuration_Click); - // - // buttonItem13 - // - this.buttonItem13.Name = "buttonItem13"; - this.buttonItem13.Text = "4"; - this.buttonItem13.Click += new System.EventHandler(this.miTimeDuration_Click); - // - // buttonItem15 - // - this.buttonItem15.Name = "buttonItem15"; - this.buttonItem15.Text = "3"; - this.buttonItem15.Click += new System.EventHandler(this.miTimeDuration_Click); - // - // buttonItem16 - // - this.buttonItem16.Name = "buttonItem16"; - this.buttonItem16.Text = "2"; - this.buttonItem16.Click += new System.EventHandler(this.miTimeDuration_Click); - // - // buttonItem22 - // - this.buttonItem22.Name = "buttonItem22"; - this.buttonItem22.Text = "1"; - this.buttonItem22.Click += new System.EventHandler(this.miTimeDuration_Click); - // - // CustomItemContextMenu - // - this.CustomItemContextMenu.AutoExpandOnClick = true; - this.CustomItemContextMenu.Name = "CustomItemContextMenu"; - this.CustomItemContextMenu.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.CustomDeleteContextItem}); - this.CustomItemContextMenu.Text = "CustomItem"; - // - // CustomDeleteContextItem - // - this.CustomDeleteContextItem.Name = "CustomDeleteContextItem"; - this.CustomDeleteContextItem.Text = "Delete CustomItem"; - this.CustomDeleteContextItem.Click += new System.EventHandler(this.miItemDelete_Click); - // - // PeriodHeaderContextMenu - // - this.PeriodHeaderContextMenu.AutoExpandOnClick = true; - this.PeriodHeaderContextMenu.Name = "PeriodHeaderContextMenu"; - this.PeriodHeaderContextMenu.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.lblPeriodHeader, - this.InPeriodHeaderHide, - this.labelItem6, - this.btnPeriodMinutes, - this.btnPeriodHours, - this.btnPeriodDays, - this.btnPeriodYears}); - this.PeriodHeaderContextMenu.Text = "InPeriodHeader"; - // - // lblPeriodHeader - // - this.lblPeriodHeader.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(238))))); - this.lblPeriodHeader.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; - this.lblPeriodHeader.BorderType = DevComponents.DotNetBar.eBorderType.SingleLine; - this.lblPeriodHeader.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(21)))), ((int)(((byte)(110))))); - this.lblPeriodHeader.Name = "lblPeriodHeader"; - this.lblPeriodHeader.PaddingBottom = 1; - this.lblPeriodHeader.PaddingLeft = 10; - this.lblPeriodHeader.PaddingTop = 1; - this.lblPeriodHeader.SingleLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197))))); - this.lblPeriodHeader.Text = "Period Header"; - // - // InPeriodHeaderHide - // - this.InPeriodHeaderHide.Name = "InPeriodHeaderHide"; - this.InPeriodHeaderHide.Text = "Hide Header"; - this.InPeriodHeaderHide.Click += new System.EventHandler(this.InPeriodHeaderHide_Click); - // - // labelItem6 - // - this.labelItem6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(238))))); - this.labelItem6.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; - this.labelItem6.BorderType = DevComponents.DotNetBar.eBorderType.SingleLine; - this.labelItem6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(21)))), ((int)(((byte)(110))))); - this.labelItem6.Name = "labelItem6"; - this.labelItem6.PaddingBottom = 1; - this.labelItem6.PaddingLeft = 10; - this.labelItem6.PaddingTop = 1; - this.labelItem6.SingleLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197))))); - this.labelItem6.Text = "Period Interval"; - // - // btnPeriodMinutes - // - this.btnPeriodMinutes.Checked = true; - this.btnPeriodMinutes.Name = "btnPeriodMinutes"; - this.btnPeriodMinutes.OptionGroup = "IntervalPeriod"; - this.btnPeriodMinutes.Text = "Minutes"; - this.btnPeriodMinutes.Click += new System.EventHandler(this.btnPeriodMinutes_CheckedChanged); - // - // btnPeriodHours - // - this.btnPeriodHours.Name = "btnPeriodHours"; - this.btnPeriodHours.OptionGroup = "IntervalPeriod"; - this.btnPeriodHours.Text = "Hours"; - this.btnPeriodHours.Click += new System.EventHandler(this.btnPeriodHours_CheckedChanged); - // - // btnPeriodDays - // - this.btnPeriodDays.Name = "btnPeriodDays"; - this.btnPeriodDays.OptionGroup = "IntervalPeriod"; - this.btnPeriodDays.Text = "Days"; - this.btnPeriodDays.Click += new System.EventHandler(this.btnPeriodDays_CheckedChanged); - // - // btnPeriodYears - // - this.btnPeriodYears.Name = "btnPeriodYears"; - this.btnPeriodYears.OptionGroup = "IntervalPeriod"; - this.btnPeriodYears.Text = "Years"; - this.btnPeriodYears.Click += new System.EventHandler(this.btnPeriodYears_CheckedChanged); - // - // IntervalHeaderContextMenu - // - this.IntervalHeaderContextMenu.AutoExpandOnClick = true; - this.IntervalHeaderContextMenu.Name = "IntervalHeaderContextMenu"; - this.IntervalHeaderContextMenu.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.lblPeriodHeader2, - this.btnIntervalHeaderShow, - this.labelItem7}); - this.IntervalHeaderContextMenu.Text = "InIntervalHeader"; - // - // lblPeriodHeader2 - // - this.lblPeriodHeader2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(238))))); - this.lblPeriodHeader2.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; - this.lblPeriodHeader2.BorderType = DevComponents.DotNetBar.eBorderType.SingleLine; - this.lblPeriodHeader2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(21)))), ((int)(((byte)(110))))); - this.lblPeriodHeader2.Name = "lblPeriodHeader2"; - this.lblPeriodHeader2.PaddingBottom = 1; - this.lblPeriodHeader2.PaddingLeft = 10; - this.lblPeriodHeader2.PaddingTop = 1; - this.lblPeriodHeader2.SingleLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197))))); - this.lblPeriodHeader2.Text = "Period Header"; - // - // btnIntervalHeaderShow - // - this.btnIntervalHeaderShow.Name = "btnIntervalHeaderShow"; - this.btnIntervalHeaderShow.Text = "Show Header"; - this.btnIntervalHeaderShow.Click += new System.EventHandler(this.btnIntervalHeaderShow_Click); - // - // labelItem7 - // - this.labelItem7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(238))))); - this.labelItem7.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; - this.labelItem7.BorderType = DevComponents.DotNetBar.eBorderType.SingleLine; - this.labelItem7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(21)))), ((int)(((byte)(110))))); - this.labelItem7.Name = "labelItem7"; - this.labelItem7.PaddingBottom = 1; - this.labelItem7.PaddingLeft = 10; - this.labelItem7.PaddingTop = 1; - this.labelItem7.SingleLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197))))); - this.labelItem7.Text = "Interval Time"; - // - // CondensedViewContextMenu - // - this.CondensedViewContextMenu.AutoExpandOnClick = true; - this.CondensedViewContextMenu.Name = "CondensedViewContextMenu"; - this.CondensedViewContextMenu.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.labelItem8, - this.btnCondensedViewAll, - this.btnCondensedViewSelected, - this.btnCondensedViewHidden}); - this.CondensedViewContextMenu.Text = "InCondensedView"; - // - // labelItem8 - // - this.labelItem8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(221)))), ((int)(((byte)(231)))), ((int)(((byte)(238))))); - this.labelItem8.BorderSide = DevComponents.DotNetBar.eBorderSide.Bottom; - this.labelItem8.BorderType = DevComponents.DotNetBar.eBorderType.SingleLine; - this.labelItem8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(21)))), ((int)(((byte)(110))))); - this.labelItem8.Name = "labelItem8"; - this.labelItem8.PaddingBottom = 1; - this.labelItem8.PaddingLeft = 10; - this.labelItem8.PaddingTop = 1; - this.labelItem8.SingleLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(197)))), ((int)(((byte)(197)))), ((int)(((byte)(197))))); - this.labelItem8.Text = "Visibility"; - // - // btnCondensedViewAll - // - this.btnCondensedViewAll.Name = "btnCondensedViewAll"; - this.btnCondensedViewAll.Text = "All"; - this.btnCondensedViewAll.Click += new System.EventHandler(this.btnCondensedViewAll_Click); - // - // btnCondensedViewSelected - // - this.btnCondensedViewSelected.Name = "btnCondensedViewSelected"; - this.btnCondensedViewSelected.Text = "Selected"; - this.btnCondensedViewSelected.Click += new System.EventHandler(this.btnCondensedViewSelected_Click); - // - // btnCondensedViewHidden - // - this.btnCondensedViewHidden.Name = "btnCondensedViewHidden"; - this.btnCondensedViewHidden.Text = "Hidden"; - this.btnCondensedViewHidden.Click += new System.EventHandler(this.btnCondensedViewHidden_Click); - // - // styleManager1 - // - this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2007Blue; - this.styleManager1.MetroColorParameters = new DevComponents.DotNetBar.Metro.ColorTables.MetroColorGeneratorParameters(System.Drawing.Color.White, System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(163)))), ((int)(((byte)(26)))))); - // - // imageList1 - // - this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); - this.imageList1.TransparentColor = System.Drawing.Color.Transparent; - this.imageList1.Images.SetKeyName(0, "DevComponents.PNG"); - // - // frmSchedulePlan2 - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(916, 664); - this.Controls.Add(this.contextMenuBar1); - this.Controls.Add(this.calendarView1); - this.Controls.Add(this.dateNavigator1); - this.Controls.Add(this.barView); - this.Controls.Add(this.ribbonControl1); - this.DoubleBuffered = true; - this.Name = "frmSchedulePlan2"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "ų"; - this.ribbonControl1.ResumeLayout(false); - this.ribbonControl1.PerformLayout(); - this.ribbonPanel1.ResumeLayout(false); - this.ribbonPanel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.barView)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.contextMenuBar1)).EndInit(); - this.ResumeLayout(false); - - } - - #endregion - - private DevComponents.DotNetBar.RibbonControl ribbonControl1; - private DevComponents.DotNetBar.RibbonPanel ribbonPanel1; - private DevComponents.DotNetBar.RibbonBar ribbonBar3; - private DevComponents.DotNetBar.ButtonItem buttonItem21; - private DevComponents.DotNetBar.ButtonItem btnNewAppointment; - private DevComponents.DotNetBar.ButtonItem btnToday; - private DevComponents.DotNetBar.ButtonItem btnBlue; - private DevComponents.DotNetBar.RibbonPanel ribbonPanel2; - internal DevComponents.DotNetBar.LabelX LabelX1; - private DevComponents.DotNetBar.RibbonTabItem ribbonTabItem1; - private DevComponents.DotNetBar.RibbonTabItem ribbonTabItem2; - private DevComponents.DotNetBar.LabelItem labelItem1; - private DevComponents.DotNetBar.Bar barView; - private DevComponents.DotNetBar.ButtonItem btnDay; - private DevComponents.DotNetBar.ButtonItem btnWeek; - private DevComponents.DotNetBar.ButtonItem btnMonth; - private DevComponents.DotNetBar.Schedule.DateNavigator dateNavigator1; - private DevComponents.DotNetBar.Schedule.CalendarView calendarView1; - private DevComponents.DotNetBar.ContextMenuBar contextMenuBar1; - private DevComponents.DotNetBar.ButtonItem InContentContextMenu; - private DevComponents.DotNetBar.ButtonItem InContentAddAppContextItem; - private DevComponents.DotNetBar.ButtonItem InHeaderContextMenu; - private DevComponents.DotNetBar.ButtonItem InHeaderShowSideBarContextItem; - private DevComponents.DotNetBar.ButtonItem InHeaderHideSideBarContextItem; - private DevComponents.DotNetBar.LabelItem labelItem2; - private DevComponents.DotNetBar.ButtonItem InHeaderCalColorBlue; - private DevComponents.DotNetBar.ButtonItem InHeaderCalColorGreen; - private DevComponents.DotNetBar.ButtonItem InHeaderCalColorMaroon; - private DevComponents.DotNetBar.ButtonItem InHeaderCalColorSteel; - private DevComponents.DotNetBar.ButtonItem InHeaderCalColorTeal; - private DevComponents.DotNetBar.ButtonItem InHeaderCalColorPurple; - private DevComponents.DotNetBar.ButtonItem InHeaderCalColorOlive; - private DevComponents.DotNetBar.ButtonItem InHeaderCalColorRed; - private DevComponents.DotNetBar.ButtonItem InHeaderCalColorDarkPeach; - private DevComponents.DotNetBar.ButtonItem InHeaderCalColorDarkSteel; - private DevComponents.DotNetBar.ButtonItem InHeaderCalColorDarkGreen; - private DevComponents.DotNetBar.ButtonItem InHeaderCalColorYellow; - private DevComponents.DotNetBar.ButtonItem InHeaderCalColorAutomatic; - private DevComponents.DotNetBar.ButtonItem InSideBarContextMenu; - private DevComponents.DotNetBar.ButtonItem InSideBarHideContextItem; - private DevComponents.DotNetBar.ButtonItem AppointmentContextMenu; - private DevComponents.DotNetBar.ButtonItem AppDeleteContextItem; - private DevComponents.DotNetBar.LabelItem labelItem3; - private DevComponents.DotNetBar.ButtonItem AppCatDefault; - private DevComponents.DotNetBar.ButtonItem AppCatBlue; - private DevComponents.DotNetBar.ButtonItem AppCatGreen; - private DevComponents.DotNetBar.ButtonItem AppCatOrange; - private DevComponents.DotNetBar.ButtonItem AppCatPurple; - private DevComponents.DotNetBar.ButtonItem AppCatRed; - private DevComponents.DotNetBar.ButtonItem AppCatYellow; - private DevComponents.DotNetBar.LabelItem labelItem4; - private DevComponents.DotNetBar.ButtonItem AppMarkerDefault; - private DevComponents.DotNetBar.ButtonItem AppMarkerBusy; - private DevComponents.DotNetBar.ButtonItem AppMarkerFree; - private DevComponents.DotNetBar.ButtonItem AppMarkerOutOfOffice; - private DevComponents.DotNetBar.ButtonItem AppMarkerTentative; - private DevComponents.DotNetBar.ButtonItem AllDayPanelContextMenu; - private DevComponents.DotNetBar.ButtonItem AllDayShrinkContextItem; - private DevComponents.DotNetBar.ButtonItem AllDayGrowContextItem; - private DevComponents.DotNetBar.ButtonItem AllDayReset; - private DevComponents.DotNetBar.ButtonItem TimeRulerPanelContextMenu; - private DevComponents.DotNetBar.LabelItem labelItem5; - private DevComponents.DotNetBar.ButtonItem TimeDuration30; - private DevComponents.DotNetBar.ButtonItem buttonItem6; - private DevComponents.DotNetBar.ButtonItem buttonItem7; - private DevComponents.DotNetBar.ButtonItem buttonItem8; - private DevComponents.DotNetBar.ButtonItem buttonItem9; - private DevComponents.DotNetBar.ButtonItem buttonItem11; - private DevComponents.DotNetBar.ButtonItem buttonItem12; - private DevComponents.DotNetBar.ButtonItem buttonItem13; - private DevComponents.DotNetBar.ButtonItem buttonItem15; - private DevComponents.DotNetBar.ButtonItem buttonItem16; - private DevComponents.DotNetBar.ButtonItem buttonItem22; - private DevComponents.DotNetBar.StyleManager styleManager1; - private DevComponents.DotNetBar.ButtonItem btnNewGlossyItem; - private DevComponents.DotNetBar.ButtonItem btnNewNoteItem; - private DevComponents.DotNetBar.ButtonItem InContentAddGlossyItem; - private DevComponents.DotNetBar.ButtonItem InContentAddNoteItem; - private DevComponents.DotNetBar.ButtonItem btnTimeLine; - private DevComponents.DotNetBar.ButtonItem btnNewButtonItem; - private DevComponents.DotNetBar.ButtonItem InContentAddButtonItem; - private DevComponents.DotNetBar.ButtonItem CustomItemContextMenu; - private DevComponents.DotNetBar.ButtonItem CustomDeleteContextItem; - private DevComponents.DotNetBar.ButtonItem CycleViewColors; - private DevComponents.DotNetBar.ButtonItem SetAppColors; - private DevComponents.DotNetBar.ButtonItem ResetViewColors; - private DevComponents.DotNetBar.ButtonItem ResetAppColors; - private DevComponents.DotNetBar.ButtonItem SetWildAppColors; - private System.Windows.Forms.ImageList imageList1; - private DevComponents.DotNetBar.ButtonItem PeriodHeaderContextMenu; - private DevComponents.DotNetBar.LabelItem lblPeriodHeader; - private DevComponents.DotNetBar.ButtonItem InPeriodHeaderHide; - private DevComponents.DotNetBar.LabelItem labelItem6; - private DevComponents.DotNetBar.ButtonItem btnPeriodMinutes; - private DevComponents.DotNetBar.ButtonItem btnPeriodHours; - private DevComponents.DotNetBar.ButtonItem btnPeriodDays; - private DevComponents.DotNetBar.ButtonItem btnPeriodYears; - private DevComponents.DotNetBar.ButtonItem IntervalHeaderContextMenu; - private DevComponents.DotNetBar.LabelItem lblPeriodHeader2; - private DevComponents.DotNetBar.ButtonItem btnIntervalHeaderShow; - private DevComponents.DotNetBar.LabelItem labelItem7; - private DevComponents.DotNetBar.ButtonItem CondensedViewContextMenu; - private DevComponents.DotNetBar.LabelItem labelItem8; - private DevComponents.DotNetBar.ButtonItem btnCondensedViewAll; - private DevComponents.DotNetBar.ButtonItem btnCondensedViewSelected; - private DevComponents.DotNetBar.ButtonItem btnCondensedViewHidden; - private DevComponents.DotNetBar.ButtonItem SetCategoryColors; - } -} - diff --git a/AIMS/OperationFront/frmSchedulePlan2.resx b/AIMS/OperationFront/frmSchedulePlan2.resx deleted file mode 100644 index 3aab708..0000000 --- a/AIMS/OperationFront/frmSchedulePlan2.resx +++ /dev/null @@ -1,354 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - - iVBORw0KGgoAAAANSUhEUgAAAB4AAAAWCAIAAABYAbuYAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6 - JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAHx0lEQVRISxWSeVCTdwKGv51WKwGx4kXV - LbsdulO39FJRW9etjkB18KpQiikEQxJykjuELySAKFGCyOEFrgguXqt1XZdVF9aCFrnkSgiQi+TLBUlI - Qg5CEgjwWzrz/PP+88y877zQyd+tLwr/A/vdtURoBWfdBu7a9XRoFX/Fak44ihexSogKO7sKVb4y7NJK - VOV7YZVhqIso1MWIcMnq8ItrVldFRl6JXFMXEdWAinzwXsTfUSvE4VBF1DsPwjfe2BIHcVZFezKYQFTm - x5FnyaR5GjWYiQU4vBeT6sEc86Unz508PH8kMXToQDDxr76kfY6EvdaEb8wH9ui/3Y18swvZtUO/fYfl - sy8tMTGuuD/p42P127eZ1sc+CYtZVkcCeh6gkBfIWR5SWoB2apGYHsw4GsIcDaQlhFITQsf2g6MHQof3 - BZP3ORP3aPd/ZTqxX54UDwpZoLzIdjoNVJWpDiUCKg3QaIBOAuXVvtiEO9CHEPWdd0OU3LkcDODhfbRU - L+lYgHBkFp2wlPHdQsp+cPIASDk4l7hrmWDSnumD2x1Jv9l1SV+D4jxQIwGXzgP5ILhaDagkUHcliEWD - GzeV4dtao+Ih3rr1LiJ5jk4EHLwDd2ICfdCOTlzCHfcd3QtSE3yJOxeS93r/8vli0h5P/Lb5vV/5dsRN - f/aJ/dM/g0OH5w8k+b5NApkEJO6LkZj1S8m7Hfs/CX63ezx6a2NYFJSGirgUGyvesu7sJtStHX+sjH3/ - ysdRlZvDmj7ccP/DjU2b33/40cZl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ASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAIAAAD9b0jDAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6 - JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAH6ElEQVRIS1WW+XMayRXHR3K89nptb5xj - k002R6XyWypVqcoflMo6WduyrVugW5Z1H0jAzAA6gJE4BEIcOjglxH0jBBKHELcMsmXvrr2OV2sdMHmD - K6la6kNX8/r1d7qb128e8imC3LmCXEeQawjy02vIDYTiZpUbNcjHtcj1KjdqkZs1VUsNcr0G+QiM1Q5M - /KSqAC3wqxvUROTnV5HL778hyQuSJF+/eVupkGS5QpYvyco5UCHPy+RlmTwnyR8oKmeVCvysgDflBc7w - gRYMlfdk5d1/XuVvXUWoR4Hi0fHJYeHkoPAynj1JZF8kM8dAIksRz72I544TuaNktgBtIlukLNmTD2RK - b4L7mb1EJpc/yucyJHn+Eaz0k1oQJcOJ3JY37oqVPPETX/zEH3tOET/2UTyH1h8v+uNHVYr/M56Asz/5 - tTd2HEiUQom8zx+CDdy8dgX5GEHOzi/twbjJl94OvzAES8BmACj+iGD+/2wFjqrGkilQUjvSjtg3Rn/W - EkiGo5nT01PY+oftk3rbjnJ7T+XIyq05YMUCZNTW7AeUtrTKnlHZUxpbSm091FgP1da00ppdseWVzmfS - 7UOQVm9H1vV2OF9YJfWXgaja6BLrQiJTkjAcCgwpQpci9MlFXQJY0MYBQp8g9PFFfVSki0p00UXtPhgF - ugOhMT2njS+a4jLDrnLdAqK3QBQiAEQXlJtchZOjiWCaGFsTx1VxTLWPKyO4IowpdrDlXUwVQZVhfCXE - VQR5igBH4Qc7eyXCViemlfscVVig8YqXDSB6G0QhTi8uyiihGSVMw2LviCwyItsfke6NScPj0tCkZIch - CUxKA2PSEAAdhsTHELuBCYl/VLIzKo/CFJjIlFi5AhVEJiUKq31/Vh7AxJ34eivXTBf46Hx/O9/fxff3 - 8n39Au9Tgbtf4O4RBoFegaef7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YEqx9ek8PUkcz05uVaY0JSmVM8ZquKIIjWm - Sg0vH05Jo7x5C3lGfgGifwTR89eSNfuQyDWoTA5r8qOawuRqlrWWQbUpVJdGjXmuMUfockLtIc8UQ00J - pj47rT1irh1Nr2aHFOGx1ei0LsOQh4RyO3lx+TmI/plKfa9nFevjK96R9cORjezYRoGxkZvSppmG9LQp - M7WVR02FeUNOYEjytuLYdoJtzqGmZ6ihiBuOpnWJKX2CYUgNL3ln5VZIfV/8BEH+AKLl71jiNdyUmDAU - xrRH47rSlP4Z01RkmYtsyzHT9hKzvRKYTwhzadaW5zryuO0Yt5zMbL6Y2Tqes5UG1ZEBdXxqNQGZ++KC - /AxCClZLkqdC9Ra2Hp5YPZjeyLK1OY4uM2PMzZmPYM6s8yXf+Upuf7VsfyFyFYTOnMBW4JufEcaC0JjF - 18LMtRBuyM7oUwJl8N3b8h3Y/u+pP+pbmdrIFm9JttILGzHxRmxJu6fQRxTGfYU5Jt9OLlvS6+b8+nZa - ZY0qrBGFeR+GVNqIaiO4rPUsGfzzmsDMsluz5oNA+g2I/vUKQn4dhVLgslpQVIuJag+gygaqVqCMMAxl - BVVlwEDVflEmYbflU6gwYBB8zr59S77J/x2u018Q5E+1yM+qmQWAxUP0QqxBZEALUQw/YfQX1SF4Vdyu - +ZEPnB4MwTvp8+vIZ7DEq8jfEOS/iRDOufEsprcAAAAASUVORK5CYII= - - - - - ContextMenus are available for the Calendar Header, Content area, Month SideBar, TimeRuler, and each Appointment.<div>- Double-click on each appointment to obtain more information about it.</div>- Hold down the Alt-Key while moving or resizing an appointment to move or resize appointments by 1 minute intervals, - - - 17, 17 - - - 149, 17 - - - - AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w - LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 - ZW0uV2luZG93cy5Gb3J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wv//wD/AJ8ADv8B7AQAAbwC/wH0AfAB7AEO - BAABBxv/BUYBtiz/AbwBRgEkAUkBMQEDAagBrwH0Tf8BbwNGAZMY//8A/wCfAA7/AQcEAAEPAhEBDgYA - Aeoc/wGTBkYBkwEaAfMo/wGTAUABrgErATIBOAG1AckB3U3/AW8DRgGTGP//AP8AnwAP/wEQDAABEgH0 - Hf8Bkx1GBm8GkwEHBBoBGwH/AZMCzwFYATgBWQG7AdUB8U3/AZMBbwJGAZMY//8A/wCfAA//AeoKAAEQ - Aewg/wGTHkYGbwSTAQcEGgEbAf8BkwHPAdYBBwFZAfAB3AHbAfFP/wEaAZMBBxj//wD/AJ8AD/8B7wEU - BRMBFAESAewBBwH0Iv8B8wFvHEYFbwWTAQcEGgEbAfMB9AHvAdYBtgEWAbwBCQEHa///AP8AnwA//wHz - HxoDGwPzBfQE/wG8AZMBFgGTAfBs//8A/wCfAG//AfQB7wH0bf//AP8AnwDf//8A/wCfAN///wD/AJ8A - 3///AP8AnwDf//8A/wCfAN///wD/AJ8A3///AP8AnwDf//8A/wCfAN///wD/AJ8A3///AP8AnwDf//8A - /wCfAN///wD/AJ8AAUIBTQE+BwABPgMAASgDAAF8AQMCAAEvAwABAQEAAQEFAAGQARQWAAP//wD/AP8A - /wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AKUACw== - - - - 45 - - \ No newline at end of file diff --git a/AIMS/ReportManager/frmOperationPlanReport.Designer.cs b/AIMS/ReportManager/frmOperationPlanReport.Designer.cs index 2516375..835735f 100644 --- a/AIMS/ReportManager/frmOperationPlanReport.Designer.cs +++ b/AIMS/ReportManager/frmOperationPlanReport.Designer.cs @@ -33,8 +33,6 @@ this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.tsbStopOperation = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); - this.tsbModifyPlan = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); this.tsbSet = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); this.tsbExportExcel = new System.Windows.Forms.ToolStripButton(); @@ -119,8 +117,6 @@ this.toolStripSeparator1, this.tsbStopOperation, this.toolStripSeparator6, - this.tsbModifyPlan, - this.toolStripSeparator5, this.tsbSet, this.toolStripSeparator4, this.tsbExportExcel, @@ -170,24 +166,6 @@ this.toolStripSeparator6.Size = new System.Drawing.Size(6, 49); this.toolStripSeparator6.Visible = false; // - // tsbModifyPlan - // - this.tsbModifyPlan.Font = new System.Drawing.Font("微软雅黑", 9F); - this.tsbModifyPlan.Image = global::AIMS.Properties.Resources.图标_申请修改; - this.tsbModifyPlan.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tsbModifyPlan.Name = "tsbModifyPlan"; - this.tsbModifyPlan.Size = new System.Drawing.Size(72, 46); - this.tsbModifyPlan.Text = " 修改排程 "; - this.tsbModifyPlan.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.tsbModifyPlan.Visible = false; - this.tsbModifyPlan.Click += new System.EventHandler(this.tsbModifyPlan_Click); - // - // toolStripSeparator5 - // - this.toolStripSeparator5.Name = "toolStripSeparator5"; - this.toolStripSeparator5.Size = new System.Drawing.Size(6, 49); - this.toolStripSeparator5.Visible = false; - // // tsbSet // this.tsbSet.Font = new System.Drawing.Font("微软雅黑", 9F); @@ -786,8 +764,6 @@ #endregion private System.Windows.Forms.ToolStrip toolStrip1; - private System.Windows.Forms.ToolStripButton tsbModifyPlan; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator5; private System.Windows.Forms.ToolStripButton tsbSet; private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; private System.Windows.Forms.ToolStripButton tsbPrint; diff --git a/AIMS/ReportManager/frmOperationPlanReport.cs b/AIMS/ReportManager/frmOperationPlanReport.cs index 4321a90..8e70ca7 100644 --- a/AIMS/ReportManager/frmOperationPlanReport.cs +++ b/AIMS/ReportManager/frmOperationPlanReport.cs @@ -24,12 +24,10 @@ namespace AIMS.ReportManager if ("1,7,8,9".Contains(AIMSExtension.PublicMethod.RoleId.ToString())) { tsbReviewApply.Visible = true; - tsbStopOperation.Visible = true; - tsbModifyPlan.Visible = true; + tsbStopOperation.Visible = true; tsbSet.Visible = true; toolStripSeparator1.Visible = true; - toolStripSeparator6.Visible = true; - toolStripSeparator5.Visible = true; + toolStripSeparator6.Visible = true; toolStripSeparator4.Visible = true; } @@ -123,18 +121,7 @@ namespace AIMS.ReportManager void frmOperationApplyDetail_FormClosed(object sender, FormClosedEventArgs e) { btnFind_Click(null, null); - } - - private void tsbModifyPlan_Click(object sender, EventArgs e) - { - if (dgv.Rows.Count > 0) - { - OperationFront.UI.frmOperationPlanDetail frmOperationPlanDetail = new OperationFront.UI.frmOperationPlanDetail(); - frmOperationPlanDetail.CheckBoxApplyIdList.Add(int.Parse(dgv.CurrentRow.Cells["ApplyId"].Value.ToString())); - frmOperationPlanDetail.State = AIMSExtension.EditState.EDIT; - frmOperationPlanDetail.ShowDialog(); - } - } + } private void tsbPrint_Click(object sender, EventArgs e) {