212 changed files with 30763 additions and 0 deletions
@ -0,0 +1,25 @@ |
|||||||
|
|
||||||
|
Microsoft Visual Studio Solution File, Format Version 12.00 |
||||||
|
# Visual Studio Version 16 |
||||||
|
VisualStudioVersion = 16.0.33927.289 |
||||||
|
MinimumVisualStudioVersion = 10.0.40219.1 |
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchedulingSystemClient", "SchedulingSystemClient\SchedulingSystemClient.csproj", "{C41FC6D2-F2CE-42C2-9C9D-DAA6AEA84EA6}" |
||||||
|
EndProject |
||||||
|
Global |
||||||
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
||||||
|
Debug|Any CPU = Debug|Any CPU |
||||||
|
Release|Any CPU = Release|Any CPU |
||||||
|
EndGlobalSection |
||||||
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
||||||
|
{C41FC6D2-F2CE-42C2-9C9D-DAA6AEA84EA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||||
|
{C41FC6D2-F2CE-42C2-9C9D-DAA6AEA84EA6}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||||
|
{C41FC6D2-F2CE-42C2-9C9D-DAA6AEA84EA6}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||||
|
{C41FC6D2-F2CE-42C2-9C9D-DAA6AEA84EA6}.Release|Any CPU.Build.0 = Release|Any CPU |
||||||
|
EndGlobalSection |
||||||
|
GlobalSection(SolutionProperties) = preSolution |
||||||
|
HideSolutionNode = FALSE |
||||||
|
EndGlobalSection |
||||||
|
GlobalSection(ExtensibilityGlobals) = postSolution |
||||||
|
SolutionGuid = {669C2892-4956-4C2D-8A61-7AB02A7E71E9} |
||||||
|
EndGlobalSection |
||||||
|
EndGlobal |
||||||
@ -0,0 +1,19 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<configuration> |
||||||
|
<configSections> |
||||||
|
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> |
||||||
|
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> |
||||||
|
</configSections> |
||||||
|
<connectionStrings> |
||||||
|
<add name="SurgerySchedulingEntities" connectionString="metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl;provider=System.Data.SqlClient;provider connection string="data source=pcgss.dev.aidoctors.com.cn;initial catalog=SurgeryScheduling;persist security info=True;user id=SA;password=SLFQslfq1234;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /></connectionStrings> |
||||||
|
<entityFramework> |
||||||
|
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"> |
||||||
|
<parameters> |
||||||
|
<parameter value="mssqllocaldb" /> |
||||||
|
</parameters> |
||||||
|
</defaultConnectionFactory> |
||||||
|
<providers> |
||||||
|
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> |
||||||
|
</providers> |
||||||
|
</entityFramework> |
||||||
|
</configuration> |
||||||
@ -0,0 +1,206 @@ |
|||||||
|
<Application x:Class="SchedulingSystemClient.App" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystemClient" |
||||||
|
StartupUri="LoginWindow.xaml"> |
||||||
|
<Application.Resources> |
||||||
|
<Style x:Key="header" TargetType="DataGridColumnHeader"> |
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter> |
||||||
|
<Setter Property="Foreground" Value="Black"></Setter> |
||||||
|
<Setter Property="Background" Value="#F5F7FA"></Setter> |
||||||
|
<Setter Property="BorderBrush" Value="#ECEEF4"></Setter> |
||||||
|
<Setter Property="BorderThickness" Value="1"></Setter> |
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter> |
||||||
|
<Setter Property="VerticalContentAlignment" Value="Center"></Setter> |
||||||
|
<Setter Property="FontSize" Value="20"></Setter> |
||||||
|
<Setter Property="Height" Value="50"></Setter> |
||||||
|
<Setter Property="FontWeight" Value="Black"></Setter> |
||||||
|
</Style> |
||||||
|
<Style x:Key="cell" TargetType="TextBlock"> |
||||||
|
<Setter Property="HorizontalAlignment" Value="Center"></Setter> |
||||||
|
<Setter Property="Padding" Value="0,15,0,15"></Setter> |
||||||
|
<Setter Property="Foreground" Value="Black"></Setter> |
||||||
|
<Setter Property="FontSize" Value="18"></Setter> |
||||||
|
</Style> |
||||||
|
<Style x:Key="row" TargetType= "{x:Type DataGridRow}"> |
||||||
|
<Setter Property="BorderBrush" Value="#ECEEF4"></Setter> |
||||||
|
<Style.Triggers> |
||||||
|
<!--单行颜色--> |
||||||
|
<Trigger Property= "ItemsControl.AlternationIndex" |
||||||
|
Value= "0" > |
||||||
|
<Setter Property= "Background" Value= "#FFFFFF" /> |
||||||
|
</Trigger> |
||||||
|
<!--双行颜色--> |
||||||
|
<Trigger Property= "ItemsControl.AlternationIndex" |
||||||
|
Value= "1" > |
||||||
|
<Setter Property= "Background" Value= "#FFFFFF" /> |
||||||
|
</Trigger> |
||||||
|
<!--鼠标移入行颜色--> |
||||||
|
<Trigger Property="IsMouseOver" Value="True"> |
||||||
|
<Setter Property="Background" Value="#EDF0FA"/> |
||||||
|
</Trigger> |
||||||
|
</Style.Triggers> |
||||||
|
</Style> |
||||||
|
<Style x:Key="an" TargetType= "{x:Type Button}"> |
||||||
|
<Setter Property="Background" Value="#0000"/> |
||||||
|
<Setter Property="Template"> |
||||||
|
<Setter.Value> |
||||||
|
<ControlTemplate TargetType="{x:Type Button}"> |
||||||
|
<Border Background="{TemplateBinding Background}" BorderThickness="0"> |
||||||
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Setter.Value> |
||||||
|
</Setter> |
||||||
|
<Style.Triggers> |
||||||
|
<Trigger Property="IsMouseOver" Value="True"> |
||||||
|
<Setter Property="Background" Value="#0000"/> |
||||||
|
</Trigger> |
||||||
|
</Style.Triggers> |
||||||
|
</Style> |
||||||
|
<!--选中行颜色--> |
||||||
|
<Style x:Key="dgc" TargetType="DataGridCell"> |
||||||
|
|
||||||
|
<Setter Property="BorderBrush" Value="#ECEEF4"></Setter> |
||||||
|
<Style.Triggers> |
||||||
|
<Trigger Property="IsSelected" Value="True"> |
||||||
|
<Setter Property="Background" Value="#EDF0FA"/> |
||||||
|
<Setter Property="BorderBrush" Value="#0000"/> |
||||||
|
</Trigger> |
||||||
|
</Style.Triggers> |
||||||
|
</Style> |
||||||
|
<Style x:Key="Dgrid" TargetType="DataGrid"> |
||||||
|
<!--内容边框颜色--> |
||||||
|
<Setter Property="HorizontalGridLinesBrush" Value="#ECEEF4"></Setter> |
||||||
|
<Setter Property="VerticalGridLinesBrush" Value="#ECEEF4"></Setter> |
||||||
|
<!--获取或设置一个值,该值指示是否自动创建列--> |
||||||
|
<Setter Property="AutoGenerateColumns" Value="False"/> |
||||||
|
<!--获取或设置一个值,该值指示用户是否可使用鼠标调整列宽--> |
||||||
|
<Setter Property="CanUserResizeColumns" Value="False"/> |
||||||
|
<!--获取或设置一个值,该值指示用户能否通过用鼠标拖动列标题来更改列的显示顺序--> |
||||||
|
<Setter Property="CanUserReorderColumns" Value="False"/> |
||||||
|
<!--获取或设置一个值,该值指示用户是否可在 DataGrid 中添加新行--> |
||||||
|
<Setter Property="CanUserAddRows" Value="False"/> |
||||||
|
<!--获取或设置一个值,该值指示用户是否可从 DataGrid 中删除行--> |
||||||
|
<Setter Property="CanUserDeleteRows" Value="False"/> |
||||||
|
<Setter Property="IsReadOnly" Value="True"/> |
||||||
|
<!--列表前面空白列--> |
||||||
|
<Setter Property="RowHeaderWidth" Value="0"/> |
||||||
|
</Style> |
||||||
|
<Style x:Key="ComboBoxReadonlyToggleButton" TargetType="ToggleButton"> |
||||||
|
<Setter Property="IsTabStop" Value="false" /> |
||||||
|
<Setter Property="ClickMode" Value="Press" /> |
||||||
|
<Setter Property="MinHeight" Value="22"></Setter> |
||||||
|
|
||||||
|
<Setter Property="Template"> |
||||||
|
<Setter.Value> |
||||||
|
<ControlTemplate TargetType="ToggleButton"> |
||||||
|
<Grid> |
||||||
|
<Border x:Name="Background" BorderBrush="#787878" |
||||||
|
BorderThickness="1" Background="White"> |
||||||
|
<Path x:Name="Path" Height="Auto" Margin="0,0.082,0,8.859" Width="Auto" |
||||||
|
Stretch="Fill" Stroke="{x:Null}" StrokeLineJoin="Round" |
||||||
|
StrokeThickness="1" |
||||||
|
Data="M0,3 C0,1.3431457 1.3431457,0 3,0 L129,0 C130.65686,0 132,1.3431457 132,3 L132,13.853975 C86.718803,0.055481441 26.160202,27.400364 0,11.585506 z"> |
||||||
|
<Path.Fill> |
||||||
|
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> |
||||||
|
<!--combox背景色#198B53--> |
||||||
|
<GradientStop Color="White" Offset="0.113" /> |
||||||
|
<GradientStop Color="White" Offset="1" /> |
||||||
|
</LinearGradientBrush> |
||||||
|
</Path.Fill> |
||||||
|
</Path> |
||||||
|
</Border> |
||||||
|
<!--倒三角的颜色#0099ff--> |
||||||
|
<Path Height="10" x:Name="Path1" HorizontalAlignment="Right" |
||||||
|
VerticalAlignment="Center" Margin="5,0,7,0" Width="10" |
||||||
|
Fill="Black" Stretch="Fill" Stroke="Black" |
||||||
|
Data="M0.5,0.5 L9.5,0.5 L5.0625,9.5 L5.0625,9.5 z" /> |
||||||
|
</Grid> |
||||||
|
|
||||||
|
<ControlTemplate.Triggers> |
||||||
|
<Trigger Property="IsMouseOver" Value="True"> |
||||||
|
<!--移入时按钮颜色 图案颜色 背景颜色 锯齿颜色--> |
||||||
|
<Setter TargetName="Path1" Property="Fill" Value="Black"></Setter> |
||||||
|
<Setter TargetName="Background" Property="Background" Value="White"></Setter> |
||||||
|
<Setter TargetName="Background" Property="BorderBrush" Value="White"></Setter> |
||||||
|
</Trigger> |
||||||
|
</ControlTemplate.Triggers> |
||||||
|
</ControlTemplate> |
||||||
|
</Setter.Value> |
||||||
|
</Setter> |
||||||
|
</Style> |
||||||
|
<Style x:Key="DefaultComboBoxStyle" TargetType="ComboBox"> |
||||||
|
<Setter Property="Foreground" Value="Black" /> |
||||||
|
<Setter Property="VerticalAlignment" Value="Center"></Setter> |
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Left"></Setter> |
||||||
|
<Setter Property="BorderBrush" Value="#FFFFFFFF" /> |
||||||
|
<Setter Property="BorderThickness" Value="1" /> |
||||||
|
<Setter Property="VerticalContentAlignment" Value="Center" /> |
||||||
|
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" /> |
||||||
|
<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" /> |
||||||
|
<Setter Property="Padding" Value="4,3" /> |
||||||
|
<Setter Property="ItemContainerStyle"> |
||||||
|
<Setter.Value> |
||||||
|
<!--这个是下拉框的属性设置--> |
||||||
|
<Style TargetType="ComboBoxItem"> |
||||||
|
<Setter Property="Template"> |
||||||
|
<Setter.Value> |
||||||
|
<ControlTemplate TargetType="ComboBoxItem"> |
||||||
|
<Border Name="Back" Background="White" BorderThickness="0,0,0,0" BorderBrush="#525252" Padding="0,5"> |
||||||
|
<ContentPresenter ContentSource="{Binding Source}" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0" ></ContentPresenter> |
||||||
|
</Border> |
||||||
|
<ControlTemplate.Triggers> |
||||||
|
<Trigger Property="IsMouseOver" Value="True"> |
||||||
|
<Setter TargetName="Back" Property="Background" Value="#484848"></Setter> |
||||||
|
</Trigger> |
||||||
|
<!--下拉框背景色--> |
||||||
|
<Trigger Property="IsHighlighted" Value="True"> |
||||||
|
<Setter TargetName="Back" Property="Background" Value="#3A99FF"></Setter> |
||||||
|
|
||||||
|
</Trigger> |
||||||
|
</ControlTemplate.Triggers> |
||||||
|
</ControlTemplate> |
||||||
|
</Setter.Value> |
||||||
|
</Setter> |
||||||
|
</Style> |
||||||
|
</Setter.Value> |
||||||
|
</Setter> |
||||||
|
<Setter Property="Template"> |
||||||
|
<Setter.Value> |
||||||
|
<ControlTemplate TargetType="ComboBox"> |
||||||
|
<Grid x:Name="MainGrid"> |
||||||
|
<Popup x:Name="PART_Popup" Margin="1" Grid.Row="1" |
||||||
|
IsOpen="{Binding Path=IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}"> |
||||||
|
<Grid x:Name="Shdw" MaxHeight="{TemplateBinding MaxDropDownHeight}" |
||||||
|
MinWidth="{Binding Path=ActualWidth, ElementName=MainGrid}" > |
||||||
|
<!--下拉框的属性设置--> |
||||||
|
<!--Background --> |
||||||
|
<Border x:Name="Bordertop" Width="AUTO" CornerRadius="0" BorderThickness="0" Background="White" > |
||||||
|
<Border.Effect> |
||||||
|
<DropShadowEffect Color="Black" BlurRadius="2" ShadowDepth="0" Opacity="1"/> |
||||||
|
</Border.Effect> |
||||||
|
<ScrollViewer Width="AUTO"> |
||||||
|
<ItemsPresenter /> |
||||||
|
</ScrollViewer> |
||||||
|
</Border> |
||||||
|
</Grid> |
||||||
|
</Popup> |
||||||
|
<ToggleButton Style="{StaticResource ComboBoxReadonlyToggleButton}" |
||||||
|
BorderThickness="3" BorderBrush="#03ffea" Background="{TemplateBinding Background}" |
||||||
|
IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" /> |
||||||
|
<!--combox字体的间距--> |
||||||
|
<TextBlock Margin="10 5 0 5" |
||||||
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" |
||||||
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}" |
||||||
|
IsHitTestVisible="false" |
||||||
|
Text="{TemplateBinding Text}" Foreground="Black" |
||||||
|
/> |
||||||
|
</Grid> |
||||||
|
|
||||||
|
</ControlTemplate> |
||||||
|
</Setter.Value> |
||||||
|
</Setter> |
||||||
|
</Style> |
||||||
|
</Application.Resources> |
||||||
|
</Application> |
||||||
@ -0,0 +1,11 @@ |
|||||||
|
using System.Windows; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// App.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class App : Application |
||||||
|
{ |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,25 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <auto-generated> |
||||||
|
// 此代码已从模板生成。 |
||||||
|
// |
||||||
|
// 手动更改此文件可能导致应用程序出现意外的行为。 |
||||||
|
// 如果重新生成代码,将覆盖对此文件的手动更改。 |
||||||
|
// </auto-generated> |
||||||
|
//------------------------------------------------------------------------------ |
||||||
|
|
||||||
|
namespace SchedulingSystemClient |
||||||
|
{ |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
|
||||||
|
public partial class Bus_HSPBB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public Nullable<int> PBID { get; set; } |
||||||
|
public Nullable<int> HSID { get; set; } |
||||||
|
public Nullable<System.DateTime> SSKSSJ { get; set; } |
||||||
|
public Nullable<System.DateTime> SSJSSJ { get; set; } |
||||||
|
public Nullable<System.DateTime> SSRQ { get; set; } |
||||||
|
public Nullable<decimal> SSSC { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,25 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <auto-generated> |
||||||
|
// 此代码已从模板生成。 |
||||||
|
// |
||||||
|
// 手动更改此文件可能导致应用程序出现意外的行为。 |
||||||
|
// 如果重新生成代码,将覆盖对此文件的手动更改。 |
||||||
|
// </auto-generated> |
||||||
|
//------------------------------------------------------------------------------ |
||||||
|
|
||||||
|
namespace SchedulingSystemClient |
||||||
|
{ |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
|
||||||
|
public partial class Bus_MZYSPBB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public Nullable<int> MZYSID { get; set; } |
||||||
|
public Nullable<System.DateTime> SSRQ { get; set; } |
||||||
|
public Nullable<System.DateTime> SSKSSJ { get; set; } |
||||||
|
public Nullable<System.DateTime> SSJSSJ { get; set; } |
||||||
|
public Nullable<decimal> SSSC { get; set; } |
||||||
|
public Nullable<int> PBID { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,23 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <auto-generated> |
||||||
|
// 此代码已从模板生成。 |
||||||
|
// |
||||||
|
// 手动更改此文件可能导致应用程序出现意外的行为。 |
||||||
|
// 如果重新生成代码,将覆盖对此文件的手动更改。 |
||||||
|
// </auto-generated> |
||||||
|
//------------------------------------------------------------------------------ |
||||||
|
|
||||||
|
namespace SchedulingSystemClient |
||||||
|
{ |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
|
||||||
|
public partial class Bus_PBRZB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string SQDH { get; set; } |
||||||
|
public Nullable<int> CZRYID { get; set; } |
||||||
|
public Nullable<System.DateTime> CZSJ { get; set; } |
||||||
|
public Nullable<int> CZLX { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,49 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <auto-generated> |
||||||
|
// 此代码已从模板生成。 |
||||||
|
// |
||||||
|
// 手动更改此文件可能导致应用程序出现意外的行为。 |
||||||
|
// 如果重新生成代码,将覆盖对此文件的手动更改。 |
||||||
|
// </auto-generated> |
||||||
|
//------------------------------------------------------------------------------ |
||||||
|
|
||||||
|
namespace SchedulingSystemClient |
||||||
|
{ |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
|
||||||
|
public partial class Bus_RJSSB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string SQDH { get; set; } |
||||||
|
public Nullable<System.DateTime> SSKSSJ { get; set; } |
||||||
|
public Nullable<decimal> SSZSC { get; set; } |
||||||
|
public Nullable<int> SSSID { get; set; } |
||||||
|
public Nullable<int> ZS1 { get; set; } |
||||||
|
public Nullable<int> ZS2 { get; set; } |
||||||
|
public Nullable<int> ZS3 { get; set; } |
||||||
|
public Nullable<int> MZYS1 { get; set; } |
||||||
|
public Nullable<int> MZYS2 { get; set; } |
||||||
|
public Nullable<int> MZYS3 { get; set; } |
||||||
|
public Nullable<int> XSHS1 { get; set; } |
||||||
|
public Nullable<int> XSHS2 { get; set; } |
||||||
|
public Nullable<int> XHHS1 { get; set; } |
||||||
|
public Nullable<int> XHHS2 { get; set; } |
||||||
|
public string BZ { get; set; } |
||||||
|
public Nullable<int> PBZT { get; set; } |
||||||
|
public string ZYH { get; set; } |
||||||
|
public string HZXM { get; set; } |
||||||
|
public Nullable<int> KSID { get; set; } |
||||||
|
public Nullable<System.DateTime> SQSJ { get; set; } |
||||||
|
public string SQZD { get; set; } |
||||||
|
public Nullable<int> ZDYS { get; set; } |
||||||
|
public Nullable<bool> SFJZ { get; set; } |
||||||
|
public string ZLKH { get; set; } |
||||||
|
public Nullable<int> QZ { get; set; } |
||||||
|
public Nullable<decimal> SSSC { get; set; } |
||||||
|
public Nullable<decimal> QJSC { get; set; } |
||||||
|
public Nullable<System.DateTime> SSJSSJ { get; set; } |
||||||
|
public Nullable<int> SSID { get; set; } |
||||||
|
public Nullable<System.DateTime> SSRQ { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,25 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <auto-generated> |
||||||
|
// 此代码已从模板生成。 |
||||||
|
// |
||||||
|
// 手动更改此文件可能导致应用程序出现意外的行为。 |
||||||
|
// 如果重新生成代码,将覆盖对此文件的手动更改。 |
||||||
|
// </auto-generated> |
||||||
|
//------------------------------------------------------------------------------ |
||||||
|
|
||||||
|
namespace SchedulingSystemClient |
||||||
|
{ |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
|
||||||
|
public partial class Bus_SBB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string SBBM { get; set; } |
||||||
|
public string SBMC { get; set; } |
||||||
|
public Nullable<int> SBLX { get; set; } |
||||||
|
public Nullable<int> SSSID { get; set; } |
||||||
|
public Nullable<decimal> SBJG { get; set; } |
||||||
|
public Nullable<int> SBDJ { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,26 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <auto-generated> |
||||||
|
// 此代码已从模板生成。 |
||||||
|
// |
||||||
|
// 手动更改此文件可能导致应用程序出现意外的行为。 |
||||||
|
// 如果重新生成代码,将覆盖对此文件的手动更改。 |
||||||
|
// </auto-generated> |
||||||
|
//------------------------------------------------------------------------------ |
||||||
|
|
||||||
|
namespace SchedulingSystemClient |
||||||
|
{ |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
|
||||||
|
public partial class Bus_SDPBB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public Nullable<int> SSID { get; set; } |
||||||
|
public Nullable<System.DateTime> SSSJ { get; set; } |
||||||
|
public Nullable<int> YHID { get; set; } |
||||||
|
public Nullable<decimal> SSZSC { get; set; } |
||||||
|
public Nullable<System.DateTime> PBSJ { get; set; } |
||||||
|
public Nullable<System.DateTime> SSRQ { get; set; } |
||||||
|
public Nullable<System.DateTime> SSJSSJ { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,32 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <auto-generated> |
||||||
|
// 此代码已从模板生成。 |
||||||
|
// |
||||||
|
// 手动更改此文件可能导致应用程序出现意外的行为。 |
||||||
|
// 如果重新生成代码,将覆盖对此文件的手动更改。 |
||||||
|
// </auto-generated> |
||||||
|
//------------------------------------------------------------------------------ |
||||||
|
|
||||||
|
namespace SchedulingSystemClient |
||||||
|
{ |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
|
||||||
|
public partial class Bus_SJCSB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public Nullable<int> PBKSSJID { get; set; } |
||||||
|
public string PBKSSJ { get; set; } |
||||||
|
public Nullable<int> MTPBSCID { get; set; } |
||||||
|
public string MTPBSC { get; set; } |
||||||
|
public Nullable<int> SSMXSQZ { get; set; } |
||||||
|
public Nullable<int> ZHXGSJID { get; set; } |
||||||
|
public string ZHXGSJ { get; set; } |
||||||
|
public Nullable<System.DateTime> XGSJ { get; set; } |
||||||
|
public Nullable<int> XGR { get; set; } |
||||||
|
public Nullable<int> XXSJ { get; set; } |
||||||
|
public Nullable<decimal> XXSC { get; set; } |
||||||
|
public string STRXXSJ { get; set; } |
||||||
|
public string STRXXSC { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,49 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <auto-generated> |
||||||
|
// 此代码已从模板生成。 |
||||||
|
// |
||||||
|
// 手动更改此文件可能导致应用程序出现意外的行为。 |
||||||
|
// 如果重新生成代码,将覆盖对此文件的手动更改。 |
||||||
|
// </auto-generated> |
||||||
|
//------------------------------------------------------------------------------ |
||||||
|
|
||||||
|
namespace SchedulingSystemClient |
||||||
|
{ |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
|
||||||
|
public partial class Bus_SSPBB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string SQDH { get; set; } |
||||||
|
public Nullable<System.DateTime> SSKSSJ { get; set; } |
||||||
|
public Nullable<decimal> SSZSC { get; set; } |
||||||
|
public Nullable<int> SSSID { get; set; } |
||||||
|
public Nullable<int> ZS1 { get; set; } |
||||||
|
public Nullable<int> ZS2 { get; set; } |
||||||
|
public Nullable<int> ZS3 { get; set; } |
||||||
|
public Nullable<int> MZYS1 { get; set; } |
||||||
|
public Nullable<int> MZYS2 { get; set; } |
||||||
|
public Nullable<int> MZYS3 { get; set; } |
||||||
|
public Nullable<int> XSHS1 { get; set; } |
||||||
|
public Nullable<int> XSHS2 { get; set; } |
||||||
|
public Nullable<int> XHHS1 { get; set; } |
||||||
|
public Nullable<int> XHHS2 { get; set; } |
||||||
|
public string BZ { get; set; } |
||||||
|
public Nullable<int> PBZT { get; set; } |
||||||
|
public string ZYH { get; set; } |
||||||
|
public string HZXM { get; set; } |
||||||
|
public Nullable<int> KSID { get; set; } |
||||||
|
public Nullable<System.DateTime> SQSJ { get; set; } |
||||||
|
public string SQZD { get; set; } |
||||||
|
public Nullable<int> ZDYS { get; set; } |
||||||
|
public Nullable<bool> SFJZ { get; set; } |
||||||
|
public string ZLKH { get; set; } |
||||||
|
public Nullable<int> QZ { get; set; } |
||||||
|
public Nullable<decimal> SSSC { get; set; } |
||||||
|
public Nullable<decimal> QJSC { get; set; } |
||||||
|
public Nullable<System.DateTime> SSJSSJ { get; set; } |
||||||
|
public Nullable<int> SSID { get; set; } |
||||||
|
public Nullable<System.DateTime> SSRQ { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,30 @@ |
|||||||
|
//------------------------------------------------------------------------------ |
||||||
|
// <auto-generated> |
||||||
|
// 此代码已从模板生成。 |
||||||
|
// |
||||||
|
// 手动更改此文件可能导致应用程序出现意外的行为。 |
||||||
|
// 如果重新生成代码,将覆盖对此文件的手动更改。 |
||||||
|
// </auto-generated> |
||||||
|
//------------------------------------------------------------------------------ |
||||||
|
|
||||||
|
namespace SchedulingSystemClient |
||||||
|
{ |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
|
||||||
|
public partial class Bus_SSSQB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string SQDH { get; set; } |
||||||
|
public string ZYH { get; set; } |
||||||
|
public string HZXM { get; set; } |
||||||
|
public Nullable<int> KSID { get; set; } |
||||||
|
public Nullable<System.DateTime> SQSJ { get; set; } |
||||||
|
public string SQZD { get; set; } |
||||||
|
public Nullable<int> SSID { get; set; } |
||||||
|
public Nullable<int> ZDYSID { get; set; } |
||||||
|
public Nullable<bool> SFJZ { get; set; } |
||||||
|
public string ZLKH { get; set; } |
||||||
|
public Nullable<int> ZT { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,13 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystem.EntityClass |
||||||
|
{ |
||||||
|
public class ComboBoxBinding |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string Name { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,14 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_BDKS |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string KSMC { get; set; } |
||||||
|
public string KSBM { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,20 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_BDKSSSS |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public int? SSSID { get; set; } |
||||||
|
public string SSSMC { get; set; } |
||||||
|
public string SSSBM { get; set; } |
||||||
|
public int? KSID { get; set; } |
||||||
|
public string KSMC { get; set; } |
||||||
|
public string KSBM { get; set; } |
||||||
|
public string strSFKY { get; set; } |
||||||
|
public bool? SFKY { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,16 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_BDSSS |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string SSSMC { get; set; } |
||||||
|
public string SSSBM { get; set; } |
||||||
|
public string strSFKY { get; set; } |
||||||
|
public bool SFKY { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystem.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_BrvipQz |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string BRXM { get; set; } |
||||||
|
public string ZLKH { get; set; } |
||||||
|
public int? QZ { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,14 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_CDB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string Name { get; set; } |
||||||
|
public bool? IsChecked { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,20 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_HS |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string HSXM { get; set; } |
||||||
|
public string HSGH { get; set; } |
||||||
|
public int? HSZC { get; set; } |
||||||
|
public string strHSZC { get; set; } |
||||||
|
public int? SSSID { get; set; } |
||||||
|
public string strSSS { get; set; } |
||||||
|
public bool? SGQY { get; set; } |
||||||
|
public string strSFQY { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,24 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystem.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_HZVIPLB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 患者姓名 |
||||||
|
/// </summary> |
||||||
|
public string HZXM { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 诊疗卡号 |
||||||
|
/// </summary> |
||||||
|
public string ZLKH { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 住院号 |
||||||
|
/// </summary> |
||||||
|
public string ZYH { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_KYKS |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string KSMC { get; set; } |
||||||
|
public string KSBM { get; set; } |
||||||
|
public bool? SFKY { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,29 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystem.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_KsLb |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 科室名称 |
||||||
|
/// </summary> |
||||||
|
public string KSMC { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 科室编码 |
||||||
|
/// </summary> |
||||||
|
public string KSBM { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 是否启用 |
||||||
|
/// </summary> |
||||||
|
public string SFQY { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 是否启用 |
||||||
|
/// </summary> |
||||||
|
public bool? bitSFQY { get; set; } |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,26 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_MZYS |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string YSXM { get; set; } |
||||||
|
public string YSGH { get; set; } |
||||||
|
public int? YSZC { get; set; } |
||||||
|
public string strYSZC { get; set; } |
||||||
|
public int? SSSID { get; set; } |
||||||
|
public string strSSS{ get; set; } |
||||||
|
public bool? SFQY { get; set; } |
||||||
|
public string strSFQY { get; set; } |
||||||
|
public int? SCSS1 { get; set; } |
||||||
|
public string strSCSS1 { get; set; } |
||||||
|
public int? SCSS2 { get; set; } |
||||||
|
public string strSCSS2 { get; set; } |
||||||
|
public int? SCSS3 { get; set; } |
||||||
|
public string strSCSS3 { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,19 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_MZYSSC |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public int? SSSID { get; set; } |
||||||
|
public string SSS { get; set; } |
||||||
|
public int? MZYSID { get; set; } |
||||||
|
public string MZYS { get; set; } |
||||||
|
public int SSTS { get; set; } |
||||||
|
public decimal? SSSC { get; set; } |
||||||
|
public decimal SSPJSC { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,90 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_PBB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术室ID |
||||||
|
/// </summary> |
||||||
|
public int SSSID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术室名称 |
||||||
|
/// </summary> |
||||||
|
public string SSSMC { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 医生ID |
||||||
|
/// </summary> |
||||||
|
public int YSID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 医生名称 |
||||||
|
/// </summary> |
||||||
|
public string YSMC { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 科室ID |
||||||
|
/// </summary> |
||||||
|
public int KSID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 科室名称 |
||||||
|
/// </summary> |
||||||
|
public string KSMC { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术类型ID |
||||||
|
/// </summary> |
||||||
|
public int SSLXID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术类型名称 |
||||||
|
/// </summary> |
||||||
|
public string SSLX { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术名称 |
||||||
|
/// </summary> |
||||||
|
public string SSMC { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 患者姓名 |
||||||
|
/// </summary> |
||||||
|
public string HZXM { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 住院号 |
||||||
|
/// </summary> |
||||||
|
public string ZYH { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 诊疗卡号 |
||||||
|
/// </summary> |
||||||
|
public string ZLKH { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 开始时间 |
||||||
|
/// </summary> |
||||||
|
public DateTime? KSSJ { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 开始日期 |
||||||
|
/// </summary> |
||||||
|
public DateTime? KSRQ { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 开始时间 |
||||||
|
/// </summary> |
||||||
|
public string StrKSSJ { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术时间 |
||||||
|
/// </summary> |
||||||
|
public int? SSSC { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 排班状态 |
||||||
|
/// </summary> |
||||||
|
public int? PBZT { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 排班状态 |
||||||
|
/// </summary> |
||||||
|
public string StrPBZT { get; set; } |
||||||
|
public decimal? SSZSC { get; set; } |
||||||
|
public decimal? SSSQJSC { get; set; } |
||||||
|
public int? QZ { get; set; } |
||||||
|
public decimal? SSSJ { get; set; } |
||||||
|
public decimal? QJSC { get; set; } |
||||||
|
public string SSQJD { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,22 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_PBRZ |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public DateTime? CZSJ { get; set; } |
||||||
|
public int? PBID { get; set; } |
||||||
|
public int ZCRID { get; set; } |
||||||
|
public string CZRGH { get; set; } |
||||||
|
public string CZRXM { get; set; } |
||||||
|
public int CZLXID { get; set; } |
||||||
|
public string CZLX { get; set; } |
||||||
|
public int PBZTID { get; set; } |
||||||
|
public string PBZT { get; set; } |
||||||
|
public string SQDH { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,23 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_QXB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public int? JSID { get; set; } |
||||||
|
public bool? Is_SY { get; set; } |
||||||
|
public bool? Is_PBJL { get; set; } |
||||||
|
public bool? Is_PBSQ { get; set; } |
||||||
|
public bool? Is_JCXXWH { get; set; } |
||||||
|
public bool? Is_GZWH { get; set; } |
||||||
|
public bool? Is_XTGL { get; set; } |
||||||
|
public bool? Is_SJTJ { get; set; } |
||||||
|
public bool? Is_PBRZ { get; set; } |
||||||
|
public bool? Is_SDPB { get; set; } |
||||||
|
public bool? Is_PBZS { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,27 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystem.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_Qtcs |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public int? PBKSSJID { get; set; } |
||||||
|
public string PBKSSJ { get; set; } |
||||||
|
public int? MTPBSCID { get; set; } |
||||||
|
public string MTPBSC { get; set; } |
||||||
|
public int? SSMXSQZ { get; set; } |
||||||
|
public int? ZHXGSJID { get; set; } |
||||||
|
public string ZHXGSJ { get; set; } |
||||||
|
public DateTime? XGSJ { get; set; } |
||||||
|
public int? XGR { get; set; } |
||||||
|
|
||||||
|
public int? XXSJ { get; set; } |
||||||
|
public string strXXSJ { get; set; } |
||||||
|
public decimal? XXSC { get; set; } |
||||||
|
public string strXXSC { get; set; } |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_Role |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string Role { get; set; } |
||||||
|
public bool? SFKY { get; set; } |
||||||
|
public string strSFKY { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,21 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_SBB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string SBBM { get; set; } |
||||||
|
public string SBMC { get; set; } |
||||||
|
public decimal? SBJG { get; set; } |
||||||
|
public int? SBLX { get; set; } |
||||||
|
public string strSBLX { get; set; } |
||||||
|
public int? SBDJ { get; set; } |
||||||
|
public string strSBDJ { get; set; } |
||||||
|
public int? SSSID { get; set; } |
||||||
|
public string SSSMC { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,45 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 数据库排班表 |
||||||
|
/// </summary> |
||||||
|
public class Cus_SJKPBB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string SQDH { get; set; } |
||||||
|
public DateTime? SSKSSJ { get; set; } |
||||||
|
public decimal? SSZSC { get; set; } |
||||||
|
public int? SSSID { get; set; } |
||||||
|
public int? ZS1 { get; set; } |
||||||
|
public int? ZS2 { get; set; } |
||||||
|
public int? ZS3 { get; set; } |
||||||
|
public int? MZYS1 { get; set; } |
||||||
|
public int? MZYS2 { get; set; } |
||||||
|
public int? MZYS3 { get; set; } |
||||||
|
public int? XSHS1 { get; set; } |
||||||
|
public int? XSHS2 { get; set; } |
||||||
|
public int? XHHS1 { get; set; } |
||||||
|
public int? XHHS2 { get; set; } |
||||||
|
public string BZ { get; set; } |
||||||
|
public int? PBZT { get; set; } |
||||||
|
public string ZYH { get; set; } |
||||||
|
public string HZXM { get; set; } |
||||||
|
public int? KSID { get; set; } |
||||||
|
public DateTime? SQSJ { get; set; } |
||||||
|
public string SQZD { get; set; } |
||||||
|
public int? ZDYS { get; set; } |
||||||
|
public bool? SFJZ { get; set; } |
||||||
|
public string ZLKH { get; set; } |
||||||
|
public int? QZ { get; set; } |
||||||
|
public decimal? SSSC { get; set; } |
||||||
|
public decimal? QJSC { get; set; } |
||||||
|
public DateTime? SSJSSJ { get; set; } |
||||||
|
public int? SSID { get; set; } |
||||||
|
public DateTime? SSRQ { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,21 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_SJTJ |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public DateTime PBRQ { get; set; } |
||||||
|
public string strPBRQ { get; set; } |
||||||
|
public decimal PJSSSC { get; set; } |
||||||
|
public string strPJSSSC { get; set; } |
||||||
|
public decimal PJQJSJ { get; set; } |
||||||
|
public string strPJQJSJ { get; set; } |
||||||
|
public decimal PJSSZSC { get; set; } |
||||||
|
public string strPJSSZSC { get; set; } |
||||||
|
public int SSTS { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,21 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_SSJDYL |
||||||
|
{ |
||||||
|
public int? ID { get; set; } |
||||||
|
public int? SSSID { get; set; } |
||||||
|
public string SSS { get; set; } |
||||||
|
public int SSTS { get; set; } |
||||||
|
public int SSZTS { get; set; } |
||||||
|
public decimal? SSTSZB { get; set; } |
||||||
|
public decimal? SSSC { get; set; } |
||||||
|
public decimal? SSZSC { get; set; } |
||||||
|
public decimal? SSSCZB { get; set; } |
||||||
|
public decimal? SSPJSC { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,61 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
|
||||||
|
public class Cus_SSPB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string SQDH { get; set; } |
||||||
|
public DateTime? SSKSSJ { get; set; } |
||||||
|
public decimal? SSZSC { get; set; } |
||||||
|
public int? SSSID { get; set; } |
||||||
|
public string SSSMC { get; set; } |
||||||
|
public int? SSID { get; set; } |
||||||
|
public string SSMC { get; set; } |
||||||
|
public string SSBM { get; set; } |
||||||
|
public string HZXM { get; set; } |
||||||
|
public int? KSID { get; set; } |
||||||
|
public string KSMC { get; set; } |
||||||
|
public int? ZDYSID { get; set; } |
||||||
|
public string ZDYS { get; set; } |
||||||
|
public int? ZS1ID { get; set; } |
||||||
|
public string ZS1 { get; set; } |
||||||
|
public int? ZS2ID { get; set; } |
||||||
|
public string ZS2 { get; set; } |
||||||
|
public int? ZS3ID { get; set; } |
||||||
|
public string ZS3 { get; set; } |
||||||
|
public int? MZYS1ID { get; set; } |
||||||
|
public string MZYS1 { get; set; } |
||||||
|
public int? MZYS2ID { get; set; } |
||||||
|
public string MZYS2 { get; set; } |
||||||
|
public int? MZYS3ID { get; set; } |
||||||
|
public string MZYS3 { get; set; } |
||||||
|
public int? XSHS1ID { get; set; } |
||||||
|
public string XSHS1 { get; set; } |
||||||
|
public int? XSHS2ID { get; set; } |
||||||
|
public string XSHS2 { get; set; } |
||||||
|
public int? XHHS1ID { get; set; } |
||||||
|
public string XHHS1 { get; set; } |
||||||
|
public int? XHHS2ID { get; set; } |
||||||
|
public string XHHS2 { get; set; } |
||||||
|
public int? PBZTID { get; set; } |
||||||
|
public string PBZT { get; set; } |
||||||
|
public string BZ { get; set; } |
||||||
|
public string QKLX { get; set; } |
||||||
|
public string SSDJ { get; set; } |
||||||
|
public decimal? QJSC { get; set; } |
||||||
|
public int? QZ { get; set; } |
||||||
|
public bool? SFJZ { get; set; } |
||||||
|
public DateTime? SQSJ { get; set; } |
||||||
|
public string SQZD { get; set; } |
||||||
|
public DateTime? SSJSSJ { get; set; } |
||||||
|
public DateTime? SSRQ { get; set; } |
||||||
|
public Decimal? SSSC { get; set; } |
||||||
|
public string ZLKH { get; set; } |
||||||
|
public string ZYH { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,131 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_SSSQB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 申请单号 |
||||||
|
/// </summary> |
||||||
|
public string SQDH { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 住院号 |
||||||
|
/// </summary> |
||||||
|
public string ZYH { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 患者姓名 |
||||||
|
/// </summary> |
||||||
|
public string HZXM { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 科室ID |
||||||
|
/// </summary> |
||||||
|
public int? KSID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 科室编码 |
||||||
|
/// </summary> |
||||||
|
public string KSBM { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 科室名称 |
||||||
|
/// </summary> |
||||||
|
public string KSMC { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 申请时间 |
||||||
|
/// </summary> |
||||||
|
public DateTime? SQSJ { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 术前诊断 |
||||||
|
/// </summary> |
||||||
|
public string SQZD { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术ID |
||||||
|
/// </summary> |
||||||
|
public int? SSID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术编码 |
||||||
|
/// </summary> |
||||||
|
public string SSBM { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术名称 |
||||||
|
/// </summary> |
||||||
|
public string SSMC { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术等级ID |
||||||
|
/// </summary> |
||||||
|
public int? SSDJID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术等级 |
||||||
|
/// </summary> |
||||||
|
public string SSDJ { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术等级权重 |
||||||
|
/// </summary> |
||||||
|
public int? SSDJQZ { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 切口类型ID |
||||||
|
/// </summary> |
||||||
|
public int? QKLXID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 切口类型 |
||||||
|
/// </summary> |
||||||
|
public string QKLX { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 切口类型权重 |
||||||
|
/// </summary> |
||||||
|
public int? QKLXQZ { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 清洁时间ID |
||||||
|
/// </summary> |
||||||
|
public int? QJSJID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 清洁时长 |
||||||
|
/// </summary> |
||||||
|
public decimal? QJSC { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术时长 |
||||||
|
/// </summary> |
||||||
|
public decimal? SSSC { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 主刀医生ID |
||||||
|
/// </summary> |
||||||
|
public int? ZDYSID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 主刀医生编码 |
||||||
|
/// </summary> |
||||||
|
public string ZDYSMB { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 主刀医生姓名 |
||||||
|
/// </summary> |
||||||
|
public string ZDYSXM { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 是否急诊 |
||||||
|
/// </summary> |
||||||
|
public bool? SFJZ { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 是否急诊 |
||||||
|
/// </summary> |
||||||
|
public string strSFJZ { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 诊疗卡号 |
||||||
|
/// </summary> |
||||||
|
public string ZLKH { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 权重 |
||||||
|
/// </summary> |
||||||
|
public int? QZ { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术总时长 |
||||||
|
/// </summary> |
||||||
|
public decimal? SSZSC { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 申请状态 |
||||||
|
/// </summary> |
||||||
|
public string SQZT { get; set; } |
||||||
|
public int ZT { get; set; } |
||||||
|
public int? SSLX { get; set; } |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,16 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 手术室时长 |
||||||
|
/// </summary> |
||||||
|
public class Cus_SSSSC |
||||||
|
{ |
||||||
|
public int SSSID { get; set; } |
||||||
|
public decimal SSSC { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,14 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_SSSZSC |
||||||
|
{ |
||||||
|
public int SSSID { get; set; } |
||||||
|
public decimal SSZSC { get; set; } |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,35 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
|
||||||
|
public class Cus_SSXXB |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string SSBM { get; set; } |
||||||
|
public string SSMC { get; set; } |
||||||
|
public string PYSZM { get; set; } |
||||||
|
public int? YJSSSC { get; set; } |
||||||
|
public string strYJSSSC { get; set; } |
||||||
|
public int? SSJB { get; set; } |
||||||
|
public string strSSJB { get; set; } |
||||||
|
public int? SSQJD { get; set; } |
||||||
|
public string strSSQJD { get; set; } |
||||||
|
public int? MZYSZC { get; set; } |
||||||
|
public string strMZYSZC { get; set; } |
||||||
|
public int? XHHSZC { get; set; } |
||||||
|
public string strXHHSZC { get; set; } |
||||||
|
public bool? CJSS { get; set; } |
||||||
|
public string strCJSS { get; set; } |
||||||
|
public bool? IsICD { get; set; } |
||||||
|
public string strIsICD { get; set; } |
||||||
|
public int? intSSLX { get; set; } |
||||||
|
public string SSLX { get; set; } |
||||||
|
public bool? boolCYSS { get; set; } |
||||||
|
public string CYSS { get; set; } |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,43 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystem.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_Sqjl |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public int SSSID { get; set; } |
||||||
|
public string SSS { get; set; } |
||||||
|
public int KSID { get; set; } |
||||||
|
public string KS { get; set; } |
||||||
|
public string YSBM { get; set; } |
||||||
|
public string YSXM { get; set; } |
||||||
|
public string SSMC { get; set; } |
||||||
|
public int SSLXID { get; set; } |
||||||
|
public string SSLX { get; set; } |
||||||
|
public int SSQJDID { get; set; } |
||||||
|
public string SSQJD { get; set; } |
||||||
|
public int SQRID { get; set; } |
||||||
|
public string SQR { get; set; } |
||||||
|
public DateTime? SQSJ { get; set; } |
||||||
|
public string strSQSJ { get; set; } |
||||||
|
public int XGRID { get; set; } |
||||||
|
public string XGR { get; set; } |
||||||
|
public DateTime? XGSJ { get; set; } |
||||||
|
public string strXGSJ { get; set; } |
||||||
|
public int? PBZT { get; set; } |
||||||
|
public string strPBZT { get; set; } |
||||||
|
public int? QZ { get; set; } |
||||||
|
public DateTime? KSSJ { get; set; } |
||||||
|
public string strKSSJ { get; set; } |
||||||
|
public string BRXM { get; set; } |
||||||
|
public string ZYH { get; set; } |
||||||
|
public string ZLKH { get; set; } |
||||||
|
public int? SSSC { get; set; } |
||||||
|
public string strSSSC { get; set; } |
||||||
|
public int? YSID { get; set; } |
||||||
|
public int? QJSJ { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,16 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystem.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_SslxQz |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public int? SSLXID { get; set; } |
||||||
|
public string SSLX { get; set; } |
||||||
|
public string LXMS { get; set; } |
||||||
|
public int? QZ { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,28 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystem.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_Sslxb |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术类型 |
||||||
|
/// </summary> |
||||||
|
public string SSLX { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 类型编码 |
||||||
|
/// </summary> |
||||||
|
public string LXBM { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 是否启用 |
||||||
|
/// </summary> |
||||||
|
public string SFQY { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 是否启用 |
||||||
|
/// </summary> |
||||||
|
public bool? bitSFQY { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,17 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystem.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_SsqjdQz |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string SSQJD { get; set; } |
||||||
|
public string LXMS { get; set; } |
||||||
|
public string QJSC { get; set; } |
||||||
|
public int? QJSCID { get; set; } |
||||||
|
public int? QZ { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,30 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystem.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_Ssqjdb |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// 清洁度ID |
||||||
|
/// </summary> |
||||||
|
public int ID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术清洁度 |
||||||
|
/// </summary> |
||||||
|
public string SSQJD { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 清洁时间 |
||||||
|
/// </summary> |
||||||
|
public int? QJSJID { get; set; } |
||||||
|
public decimal? QJSJ { get; set; } |
||||||
|
public string strQJSJ { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 是否启用 |
||||||
|
/// </summary> |
||||||
|
public string strSFQY { get; set; } |
||||||
|
public bool? SFQY { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,36 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystem.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_SssLb |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术室名称 |
||||||
|
/// </summary> |
||||||
|
public string SSSMC { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 手术室编码 |
||||||
|
/// </summary> |
||||||
|
public string SSSBM { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 是否启用 |
||||||
|
/// </summary> |
||||||
|
public string SFQY { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 是否启用 |
||||||
|
/// </summary> |
||||||
|
public bool? bitSFQY { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 日间手术室 |
||||||
|
/// </summary> |
||||||
|
public string RJSSS { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 日间手术室 |
||||||
|
/// </summary> |
||||||
|
public bool? bitRJSSS { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_TJTB |
||||||
|
{ |
||||||
|
public DateTime? KSSJ { get; set; } |
||||||
|
public decimal? SSSC { get; set; } |
||||||
|
public decimal? SSQJSC { get; set; } |
||||||
|
public string SSLX { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,17 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_User |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string Name { get; set; } |
||||||
|
public string GH { get; set; } |
||||||
|
public int? JSID { get; set; } |
||||||
|
public string strRole { get; set; } |
||||||
|
public string Password { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,16 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystem.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_YSZC |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string YSZC { get; set; } |
||||||
|
public string ZCBM { get; set; } |
||||||
|
public string SFQY { get; set; } |
||||||
|
public bool bitSFQY { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,45 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystem.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_YsLb |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 医生名称 |
||||||
|
/// </summary> |
||||||
|
public string YSMC { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 医生编码 |
||||||
|
/// </summary> |
||||||
|
public string YSBM { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 性别 |
||||||
|
/// </summary> |
||||||
|
public string XB { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 籍贯 |
||||||
|
/// </summary> |
||||||
|
public string JG { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 出生日期 |
||||||
|
/// </summary> |
||||||
|
public string CSRQ { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 医生职称 |
||||||
|
/// </summary> |
||||||
|
public string YSJB { get; set; } |
||||||
|
public int intYSJB { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 是否启用 |
||||||
|
/// </summary> |
||||||
|
public string SFQY { get; set; } |
||||||
|
/// <summary> |
||||||
|
/// 是否启用 |
||||||
|
/// </summary> |
||||||
|
public bool? bitSFQY { get; set; } |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,16 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystem.EntityClass |
||||||
|
{ |
||||||
|
public class Cus_YsvipQz |
||||||
|
{ |
||||||
|
public int ID { get; set; } |
||||||
|
public string YSXM { get; set; } |
||||||
|
public string YSBM { get; set; } |
||||||
|
public int? QZ { get; set; } |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,26 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient |
||||||
|
{ |
||||||
|
//public class FenYeViewModel : ObservableObject |
||||||
|
public class FenYeViewModel |
||||||
|
{ |
||||||
|
|
||||||
|
public FenYeViewModel() |
||||||
|
{ |
||||||
|
Init(); |
||||||
|
InitCommand(); |
||||||
|
} |
||||||
|
private void Init() |
||||||
|
{ |
||||||
|
// JzrcCommand = new ViewModelCommand((object obj) => { Jzrc(); }); |
||||||
|
} |
||||||
|
private void InitCommand() |
||||||
|
{ |
||||||
|
int nian = DateTime.Now.Year; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,36 @@ |
|||||||
|
<UserControl x:Class="SchedulingSystemClient.FenYeWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystemClient" |
||||||
|
mc:Ignorable="d" |
||||||
|
d:DesignHeight="450" d:DesignWidth="800"> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="8*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Button Grid.Row="0" Command="{Binding ChaXunCommand}" FontSize="30">查询</Button> |
||||||
|
|
||||||
|
<DataGrid ItemsSource="{Binding EmployeeList}" Grid.Row="1" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" Style="{StaticResource Dgrid}" RowStyle="{StaticResource row}" CellStyle="{StaticResource dgc}"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="ID" Visibility="Collapsed" Binding="{Binding ID}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术编码" Binding="{Binding SSBM}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术名称" Binding="{Binding SSMC}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="拼音首字母" Binding="{Binding PYSZM}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="预计手术时长" Binding="{Binding strYJSSSC}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术级别" Binding="{Binding strSSJB}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术清洁度" Binding="{Binding strSSQJD}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="麻醉医生职称" Binding="{Binding strMZYSZC}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="巡回护士职称" Binding="{Binding strXHHSZC}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="巡回护士职称" Visibility="Collapsed" Binding="{Binding IsICD}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="常用手术" Binding="{Binding CYSS}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术类别" Binding="{Binding SSLX}"/> |
||||||
|
<DataGridTextColumn Visibility="Collapsed" Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Binding="{Binding intSSLX}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="常用手术" Visibility="Collapsed" Binding="{Binding boolCYSS}"/> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
</Grid> |
||||||
|
</UserControl> |
||||||
@ -0,0 +1,28 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Navigation; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// FenYeWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class FenYeWindow : UserControl |
||||||
|
{ |
||||||
|
public FenYeWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
DataContext = new FenYeViewModel(); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,397 @@ |
|||||||
|
<UserControl x:Class="SchedulingSystemClient.GZWHWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
Loaded="UserControl_Loaded"> |
||||||
|
<UserControl.Resources> |
||||||
|
<ControlTemplate x:Key="ExampleButton" TargetType="{x:Type Button}"> |
||||||
|
<Border Background="White" BorderThickness="0" x:Name="Border" Padding="10" Margin="5,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center"> |
||||||
|
<ContentPresenter /> |
||||||
|
</Border> |
||||||
|
<ControlTemplate.Triggers> |
||||||
|
<Trigger Property="IsEnabled" Value="False"> |
||||||
|
<Setter TargetName="Border" Property="BorderThickness" Value="0,0,0,2"/> |
||||||
|
<Setter TargetName="Border" Property="BorderBrush" Value="#315DDA"/> |
||||||
|
<Setter TargetName="Border" Property="TextBlock.Foreground" Value="#315DDA"/> |
||||||
|
</Trigger> |
||||||
|
</ControlTemplate.Triggers> |
||||||
|
</ControlTemplate> |
||||||
|
<Style x:Key="header" TargetType="DataGridColumnHeader"> |
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter> |
||||||
|
<Setter Property="Foreground" Value="#484848"></Setter> |
||||||
|
<Setter Property="Background" Value="#E8E8E8"></Setter> |
||||||
|
<Setter Property="BorderBrush" Value="#DDDDDD"></Setter> |
||||||
|
<Setter Property="BorderThickness" Value="1"></Setter> |
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter> |
||||||
|
<Setter Property="VerticalContentAlignment" Value="Center"></Setter> |
||||||
|
<Setter Property="FontSize" Value="20"></Setter> |
||||||
|
<!--<Setter Property="Height" Value="40"></Setter>--> |
||||||
|
<Setter Property="Padding" Value="15,10"></Setter> |
||||||
|
</Style> |
||||||
|
<Style x:Key="cell" TargetType="TextBlock"> |
||||||
|
<Setter Property="HorizontalAlignment" Value="Center"></Setter> |
||||||
|
<Setter Property="Padding" Value="50,15"></Setter> |
||||||
|
<Setter Property="Foreground" Value="#484848"></Setter> |
||||||
|
<Setter Property="FontSize" Value="16"></Setter> |
||||||
|
|
||||||
|
</Style> |
||||||
|
<Style x:Key="row" TargetType= "{x:Type DataGridRow}"> |
||||||
|
<Setter Property="BorderBrush" Value="#ECEEF4"></Setter> |
||||||
|
<Style.Triggers> |
||||||
|
<!--单行颜色--> |
||||||
|
<Trigger Property= "ItemsControl.AlternationIndex" |
||||||
|
Value= "0" > |
||||||
|
<Setter Property= "Background" Value= "#FFFFFF" /> |
||||||
|
</Trigger> |
||||||
|
<!--双行颜色--> |
||||||
|
<Trigger Property= "ItemsControl.AlternationIndex" |
||||||
|
Value= "1" > |
||||||
|
<Setter Property= "Background" Value= "#FFFFFF" /> |
||||||
|
</Trigger> |
||||||
|
<!--鼠标移入行颜色--> |
||||||
|
<Trigger Property="IsMouseOver" Value="True"> |
||||||
|
<Setter Property="Background" Value="#EDF0FA"/> |
||||||
|
</Trigger> |
||||||
|
</Style.Triggers> |
||||||
|
</Style> |
||||||
|
<!--选中行颜色--> |
||||||
|
<Style x:Key="dgc" TargetType="DataGridCell"> |
||||||
|
<Setter Property="BorderBrush" Value="#ECEEF4"></Setter> |
||||||
|
<Style.Triggers> |
||||||
|
<Trigger Property="IsSelected" Value="True"> |
||||||
|
<Setter Property="Background" Value="#EDF0FA"/> |
||||||
|
<Setter Property="BorderBrush" Value="#0000"/> |
||||||
|
</Trigger> |
||||||
|
</Style.Triggers> |
||||||
|
</Style> |
||||||
|
<Style x:Key="Dgrid" TargetType="DataGrid"> |
||||||
|
<!--内容边框颜色--> |
||||||
|
<Setter Property="HorizontalGridLinesBrush" Value="#ECEEF4"></Setter> |
||||||
|
<Setter Property="VerticalGridLinesBrush" Value="#ECEEF4"></Setter> |
||||||
|
<!--获取或设置一个值,该值指示是否自动创建列--> |
||||||
|
<Setter Property="AutoGenerateColumns" Value="False"/> |
||||||
|
<!--获取或设置一个值,该值指示用户是否可使用鼠标调整列宽--> |
||||||
|
<Setter Property="CanUserResizeColumns" Value="False"/> |
||||||
|
<!--获取或设置一个值,该值指示用户能否通过用鼠标拖动列标题来更改列的显示顺序--> |
||||||
|
<Setter Property="CanUserReorderColumns" Value="False"/> |
||||||
|
<!--获取或设置一个值,该值指示用户是否可在 DataGrid 中添加新行--> |
||||||
|
<Setter Property="CanUserAddRows" Value="False"/> |
||||||
|
<!--获取或设置一个值,该值指示用户是否可从 DataGrid 中删除行--> |
||||||
|
<Setter Property="CanUserDeleteRows" Value="False"/> |
||||||
|
<Setter Property="IsReadOnly" Value="True"/> |
||||||
|
<!--列表前面空白列--> |
||||||
|
<Setter Property="RowHeaderWidth" Value="0"/> |
||||||
|
</Style> |
||||||
|
<!--下拉框--> |
||||||
|
<ControlTemplate x:Key="CusComboBox" TargetType="{x:Type ComboBox}" > |
||||||
|
<Border BorderThickness="2" BorderBrush="#E4E4E4"> |
||||||
|
<Grid> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="9*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<!--文本框--> |
||||||
|
<TextBox x:Name="myTxt" Grid.Column="0" |
||||||
|
Text="{TemplateBinding Text}" |
||||||
|
Background="White" |
||||||
|
BorderThickness="0" |
||||||
|
VerticalContentAlignment="Center" |
||||||
|
HorizontalContentAlignment="Center" |
||||||
|
FontSize="18" |
||||||
|
Foreground="Black"/> |
||||||
|
<!--下拉按钮--> |
||||||
|
<ToggleButton Grid.Column="1" Content="∨" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
||||||
|
ClickMode="Press" Background="White" BorderThickness="0" IsEnabled="{Binding ElementName= myTxt,Path=IsEnabled}"/> |
||||||
|
<Popup Name="MyPopup" |
||||||
|
IsOpen="{TemplateBinding IsDropDownOpen}" |
||||||
|
Placement="Bottom"> |
||||||
|
<Border MinWidth="{TemplateBinding ActualWidth}" |
||||||
|
MaxHeight="{TemplateBinding MaxDropDownHeight}"> |
||||||
|
<ScrollViewer MaxHeight="{TemplateBinding MaxDropDownHeight}" |
||||||
|
HorizontalScrollBarVisibility="Auto" |
||||||
|
VerticalScrollBarVisibility="Auto"> |
||||||
|
<StackPanel Background="White" |
||||||
|
IsItemsHost="True"/> |
||||||
|
</ScrollViewer> |
||||||
|
</Border> |
||||||
|
</Popup> |
||||||
|
</Grid> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
|
||||||
|
</UserControl.Resources> |
||||||
|
<!--<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="13*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<DockPanel Grid.Row="0" LastChildFill="False" Background="White"> |
||||||
|
<Button x:Name="btnsslx" Padding="5,0,5,0" FontSize="18" Click="btnsslx_Click" Background="White" BorderThickness="1">手术类型</Button> |
||||||
|
<Button x:Name="btnbrvip" Padding="5,0,5,0" FontSize="18" Click="btnbrvip_Click" Background="White" BorderThickness="1">病人VIP</Button> |
||||||
|
<Button x:Name="btnysbip" Padding="5,0,5,0" FontSize="18" Click="btnysbip_Click" Background="White" BorderThickness="1">医生VIP</Button> |
||||||
|
<Button x:Name="btnssqjd" Padding="5,0,5,0" FontSize="18" Click="btnssqjd_Click" Background="White" BorderThickness="1">手术清洁度</Button> |
||||||
|
<Button x:Name="btnqtcs" Padding="5,0,5,0" FontSize="18" Click="btnqtcs_Click" Background="White" BorderThickness="1">其他参数</Button> |
||||||
|
</DockPanel> |
||||||
|
<DockPanel Grid.Row="1" LastChildFill="False"> |
||||||
|
<Button x:Name="btn_sx" FontSize="16" Height="35" Width="70" DockPanel.Dock="Right" Margin="0,0,30,0" Click="btn_sx_Click" Content="刷 新" Background="#4964D0" FontWeight="Black" Foreground="White" VerticalContentAlignment="Center"> |
||||||
|
<Button.Template > |
||||||
|
<ControlTemplate TargetType="{x:Type Button}" > |
||||||
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3,3,3,3"> |
||||||
|
<Border.Background>#4964D0</Border.Background> |
||||||
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Button.Template> |
||||||
|
</Button> |
||||||
|
<Button x:Name="btn_sc" FontSize="16" Height="35" Width="70" DockPanel.Dock="Right" Margin="0,0,30,0" Click="btn_sc_Click" Content="删 除" Background="#4964D0" FontWeight="Black" Foreground="White" VerticalContentAlignment="Center"> |
||||||
|
<Button.Template > |
||||||
|
<ControlTemplate TargetType="{x:Type Button}" > |
||||||
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3,3,3,3"> |
||||||
|
<Border.Background>#4964D0</Border.Background> |
||||||
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Button.Template> |
||||||
|
</Button> |
||||||
|
<Button x:Name="btn_xg" FontSize="16" Height="35" Width="70" DockPanel.Dock="Right" Margin="0,0,30,0" Click="btn_xg_Click" Content="修 改" Background="#4964D0" FontWeight="Black" Foreground="White" VerticalContentAlignment="Center"> |
||||||
|
<Button.Template > |
||||||
|
<ControlTemplate TargetType="{x:Type Button}" > |
||||||
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3,3,3,3"> |
||||||
|
<Border.Background>#4964D0</Border.Background> |
||||||
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Button.Template> |
||||||
|
</Button> |
||||||
|
<Button x:Name="btn_xz" FontSize="16" Height="35" Width="70" DockPanel.Dock="Right" Margin="0,0,30,0" Click="btn_xz_Click" Content="新 增" Background="#4964D0" FontWeight="Black" Foreground="White" VerticalContentAlignment="Center"> |
||||||
|
<Button.Template > |
||||||
|
<ControlTemplate TargetType="{x:Type Button}" > |
||||||
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3,3,3,3"> |
||||||
|
<Border.Background>#4964D0</Border.Background> |
||||||
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Button.Template> |
||||||
|
</Button> |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</DockPanel> |
||||||
|
<Grid Grid.Row="2"> |
||||||
|
<Grid x:Name="sslxgrid"> |
||||||
|
<DataGrid x:Name="sslxdata" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" SelectionChanged="sslxdata_SelectionChanged"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn Header="ID" Visibility="Collapsed" Binding="{Binding ID}"/> |
||||||
|
<DataGridTextColumn Header="手术类型ID" Visibility="Collapsed" Binding="{Binding SSLXID}"/> |
||||||
|
<DataGridTextColumn Header="手术类型" Binding="{Binding SSLX}"/> |
||||||
|
<DataGridTextColumn Header="权重" Binding="{Binding QZ}"/> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
</Grid> |
||||||
|
<Grid x:Name="brvipgrid"> |
||||||
|
<DataGrid x:Name="brvipdata" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" SelectionChanged="brvipdata_SelectionChanged"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn Header="ID" Visibility="Collapsed" Binding="{Binding ID}"/> |
||||||
|
<DataGridTextColumn Header="病人姓名" Binding="{Binding BRXM}"/> |
||||||
|
<DataGridTextColumn Header="诊疗卡号" Binding="{Binding ZLKH}"/> |
||||||
|
<DataGridTextColumn Header="权重" Binding="{Binding QZ}"/> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
</Grid> |
||||||
|
<Grid x:Name="ysvipgrid"> |
||||||
|
<DataGrid x:Name="ysvipdata" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" SelectionChanged="ysvipdata_SelectionChanged"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn Header="ID" Visibility="Collapsed" Binding="{Binding ID}"/> |
||||||
|
<DataGridTextColumn Header="医生姓名" Binding="{Binding YSXM}"/> |
||||||
|
<DataGridTextColumn Header="医生编码" Binding="{Binding YSBM}"/> |
||||||
|
<DataGridTextColumn Header="权重" Binding="{Binding QZ}"/> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
</Grid> |
||||||
|
<Grid x:Name="ssqjdgrid"> |
||||||
|
<DataGrid x:Name="ssqjddata" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" SelectionChanged="ssqjddata_SelectionChanged"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn Header="ID" Visibility="Collapsed" Binding="{Binding ID}"/> |
||||||
|
<DataGridTextColumn Header="手术清洁度ID" Visibility="Collapsed" Binding="{Binding SSQJDID}"/> |
||||||
|
<DataGridTextColumn Header="手术清洁度" Binding="{Binding SSQJD}"/> |
||||||
|
<DataGridTextColumn Header="权重" Binding="{Binding QZ}"/> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
</Grid> |
||||||
|
<Grid x:Name="qtcsgrid"> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="2*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="2*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="18">排班开始时间:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="18">每天排班时长:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="18">最后修改时间:</Label> |
||||||
|
<Label Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="18">手术每小时权重:</Label> |
||||||
|
<ComboBox x:Name="pbkssj" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></ComboBox> |
||||||
|
<ComboBox x:Name="mtpbsc" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></ComboBox> |
||||||
|
<ComboBox x:Name="zhxgsj" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></ComboBox> |
||||||
|
<ComboBox x:Name="ssmxsqz" Grid.Row="4" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></ComboBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bccs_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Grid> |
||||||
|
</Grid>--> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="14*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Border Grid.Row="0" BorderBrush="#DDDDDD" BorderThickness="2" Margin="10,5" > |
||||||
|
<DockPanel LastChildFill="False" Background="White"> |
||||||
|
<Button x:Name="btnsslx" FontSize="18" Click="btnsslx_Click" Template="{StaticResource ExampleButton}" Content="手术级别"></Button> |
||||||
|
<Button x:Name="btnssqjd" FontSize="18" Click="btnssqjd_Click" Template="{StaticResource ExampleButton}" Content="切口类型"></Button> |
||||||
|
<Button x:Name="btnbrvip" FontSize="18" Click="btnbrvip_Click" Template="{StaticResource ExampleButton}" Content="患者VIP"></Button> |
||||||
|
<Button x:Name="btnysbip" FontSize="18" Click="btnysbip_Click" Template="{StaticResource ExampleButton}" Content="医生VIP"></Button> |
||||||
|
|
||||||
|
<Button x:Name="btnqtcs" FontSize="18" Click="btnqtcs_Click" Template="{StaticResource ExampleButton}" Content="时间参数"></Button> |
||||||
|
<Button x:Name="btn_sc" FontSize="18" Height="35" Width="70" DockPanel.Dock="Right" Margin="0,0,10,0" Click="btn_sc_Click" Content="删 除" Background="#D4495C" Foreground="White" VerticalContentAlignment="Center"> |
||||||
|
<Button.Template > |
||||||
|
<ControlTemplate TargetType="{x:Type Button}" > |
||||||
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3,3,3,3"> |
||||||
|
<Border.Background>#D4495C</Border.Background> |
||||||
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Button.Template> |
||||||
|
</Button> |
||||||
|
<Button x:Name="btn_xg" FontSize="18" Height="35" Width="60" DockPanel.Dock="Right" Margin="0,0,20,0" Click="btn_xg_Click" Content="修 改" Background="#558BE3" Foreground="White" VerticalContentAlignment="Center"> |
||||||
|
<Button.Template > |
||||||
|
<ControlTemplate TargetType="{x:Type Button}" > |
||||||
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3,3,3,3"> |
||||||
|
<Border.Background>#558BE3</Border.Background> |
||||||
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Button.Template> |
||||||
|
</Button> |
||||||
|
<Button x:Name="btn_xz" FontSize="18" Height="35" Width="60" DockPanel.Dock="Right" Margin="0,0,20,0" Click="btn_xz_Click" Content="新 增" Background="#558BE3" Foreground="White" VerticalContentAlignment="Center"> |
||||||
|
<Button.Template > |
||||||
|
<ControlTemplate TargetType="{x:Type Button}" > |
||||||
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3,3,3,3"> |
||||||
|
<Border.Background>#558BE3</Border.Background> |
||||||
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Button.Template> |
||||||
|
</Button> |
||||||
|
<Button x:Name="btn_sx" FontSize="18" Height="35" Width="60" DockPanel.Dock="Right" Margin="0,0,20,0" Click="btn_sx_Click" Content="刷 新" Background="#558BE3" Foreground="White" VerticalContentAlignment="Center"> |
||||||
|
<Button.Template > |
||||||
|
<ControlTemplate TargetType="{x:Type Button}" > |
||||||
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3,3,3,3"> |
||||||
|
<Border.Background>#558BE3</Border.Background> |
||||||
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Button.Template> |
||||||
|
</Button> |
||||||
|
</DockPanel> |
||||||
|
</Border> |
||||||
|
<Border Grid.Row="1" BorderBrush="#DDDDDD" BorderThickness="2" Margin="10,5" Padding="10"> |
||||||
|
<Grid> |
||||||
|
<Grid x:Name="sslxgrid"> |
||||||
|
<DataGrid x:Name="sslxdata" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" SelectionChanged="sslxdata_SelectionChanged" Background="White" |
||||||
|
Style="{StaticResource Dgrid}" |
||||||
|
RowStyle="{StaticResource row}" |
||||||
|
CellStyle="{StaticResource dgc}"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="ID" Visibility="Collapsed" Binding="{Binding ID}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术等级" Binding="{Binding SSLX}"/> |
||||||
|
<DataGridTextColumn Width="2*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="等级描述" Binding="{Binding LXMS}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="权重" Binding="{Binding QZ}"/> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
</Grid> |
||||||
|
<Grid x:Name="brvipgrid"> |
||||||
|
|
||||||
|
<DataGrid x:Name="brvipdata" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" SelectionChanged="brvipdata_SelectionChanged" Background="White" Style="{StaticResource Dgrid}" |
||||||
|
RowStyle="{StaticResource row}" |
||||||
|
CellStyle="{StaticResource dgc}"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="ID" Visibility="Collapsed" Binding="{Binding ID}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="病人姓名" Binding="{Binding BRXM}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="诊疗卡号" Binding="{Binding ZLKH}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="权重" Binding="{Binding QZ}"/> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
</Grid> |
||||||
|
<Grid x:Name="ysvipgrid"> |
||||||
|
<DataGrid x:Name="ysvipdata" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" SelectionChanged="ysvipdata_SelectionChanged" Background="White" Style="{StaticResource Dgrid}" |
||||||
|
RowStyle="{StaticResource row}" |
||||||
|
CellStyle="{StaticResource dgc}"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="ID" Visibility="Collapsed" Binding="{Binding ID}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="医生姓名" Binding="{Binding YSXM}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="医生编码" Binding="{Binding YSBM}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="权重" Binding="{Binding QZ}"/> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
</Grid> |
||||||
|
<Grid x:Name="ssqjdgrid"> |
||||||
|
<DataGrid x:Name="ssqjddata" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" SelectionChanged="ssqjddata_SelectionChanged" Background="White" Style="{StaticResource Dgrid}" |
||||||
|
RowStyle="{StaticResource row}" |
||||||
|
CellStyle="{StaticResource dgc}"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="ID" Visibility="Collapsed" Binding="{Binding ID}"/> |
||||||
|
<DataGridTextColumn Width="0.5*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="切口类型" Binding="{Binding SSQJD}"/> |
||||||
|
<DataGridTextColumn Width="2*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="类型描述" Binding="{Binding LXMS}" /> |
||||||
|
<DataGridTextColumn Width="0.5*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="清洁时间ID" Binding="{Binding QJSCID}" Visibility="Collapsed"/> |
||||||
|
<DataGridTextColumn Width="0.5*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="清洁时间" Binding="{Binding QJSC}"/> |
||||||
|
<DataGridTextColumn Width="0.5*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="权重" Binding="{Binding QZ}"/> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
</Grid> |
||||||
|
<Grid x:Name="qtcsgrid"> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="2*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="2*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="18">排班开始时间:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="18">每天排班时长:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="18">手术室休息时间:</Label> |
||||||
|
<Label Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="18">手术室休息时长:</Label> |
||||||
|
<Label Grid.Row="5" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="18">最后修改时间:</Label> |
||||||
|
<Label Grid.Row="6" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="18">手术每小时权重:</Label> |
||||||
|
<ComboBox x:Name="pbkssj" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="18" Background="White" Template="{StaticResource CusComboBox}"> |
||||||
|
</ComboBox> |
||||||
|
<ComboBox x:Name="mtpbsc" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Background="White" Template="{StaticResource CusComboBox}"></ComboBox> |
||||||
|
<ComboBox x:Name="xxsj" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Background="White" Template="{StaticResource CusComboBox}" SelectionChanged="xxsj_SelectionChanged"></ComboBox> |
||||||
|
<ComboBox x:Name="xxsc" Grid.Row="4" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Background="White" Template="{StaticResource CusComboBox}" SelectionChanged="xxsc_SelectionChanged"></ComboBox> |
||||||
|
<ComboBox x:Name="zhxgsj" Grid.Row="5" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Background="White" Template="{StaticResource CusComboBox}"></ComboBox> |
||||||
|
<ComboBox x:Name="ssmxsqz" Grid.Row="6" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" Background="White" Template="{StaticResource CusComboBox}"></ComboBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bccs_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Grid> |
||||||
|
</Border> |
||||||
|
</Grid> |
||||||
|
</UserControl> |
||||||
@ -0,0 +1,542 @@ |
|||||||
|
using SchedulingSystem; |
||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Media; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// GZWHWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class GZWHWindow : UserControl |
||||||
|
{ |
||||||
|
public GZWHWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
string type = string.Empty; |
||||||
|
private void UserControl_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
type = "手术级别"; |
||||||
|
btnsslx.IsEnabled = false; |
||||||
|
btnbrvip.IsEnabled = true; |
||||||
|
btnysbip.IsEnabled = true; |
||||||
|
btnssqjd.IsEnabled = true; |
||||||
|
btnqtcs.IsEnabled = true; |
||||||
|
sslxgrid.Visibility = Visibility.Visible; |
||||||
|
brvipgrid.Visibility = Visibility.Collapsed; |
||||||
|
ysvipgrid.Visibility = Visibility.Collapsed; |
||||||
|
ssqjdgrid.Visibility = Visibility.Collapsed; |
||||||
|
qtcsgrid.Visibility = Visibility.Collapsed; |
||||||
|
ShuaXin(); |
||||||
|
} |
||||||
|
Color color = (Color)ColorConverter.ConvertFromString("#315DDA"); |
||||||
|
private void btnsslx_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
type = "手术级别"; |
||||||
|
btnsslx.IsEnabled = false; |
||||||
|
btnbrvip.IsEnabled = true; |
||||||
|
btnysbip.IsEnabled = true; |
||||||
|
btnssqjd.IsEnabled = true; |
||||||
|
btnqtcs.IsEnabled = true; |
||||||
|
sslxgrid.Visibility = Visibility.Visible; |
||||||
|
brvipgrid.Visibility = Visibility.Collapsed; |
||||||
|
ysvipgrid.Visibility = Visibility.Collapsed; |
||||||
|
ssqjdgrid.Visibility = Visibility.Collapsed; |
||||||
|
qtcsgrid.Visibility = Visibility.Collapsed; |
||||||
|
ShuaXin(); |
||||||
|
} |
||||||
|
private void btnbrvip_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
type = "患者VIP"; |
||||||
|
btnsslx.IsEnabled = true; |
||||||
|
btnbrvip.IsEnabled = false; |
||||||
|
btnysbip.IsEnabled = true; |
||||||
|
btnssqjd.IsEnabled = true; |
||||||
|
btnqtcs.IsEnabled = true; |
||||||
|
sslxgrid.Visibility = Visibility.Collapsed; |
||||||
|
brvipgrid.Visibility = Visibility.Visible; |
||||||
|
ysvipgrid.Visibility = Visibility.Collapsed; |
||||||
|
ssqjdgrid.Visibility = Visibility.Collapsed; |
||||||
|
qtcsgrid.Visibility = Visibility.Collapsed; |
||||||
|
ShuaXin(); |
||||||
|
} |
||||||
|
private void btnysbip_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
type = "医生VIP"; |
||||||
|
btnsslx.IsEnabled = true; |
||||||
|
btnbrvip.IsEnabled = true; |
||||||
|
btnysbip.IsEnabled = false; |
||||||
|
btnssqjd.IsEnabled = true; |
||||||
|
btnqtcs.IsEnabled = true; |
||||||
|
sslxgrid.Visibility = Visibility.Collapsed; |
||||||
|
brvipgrid.Visibility = Visibility.Collapsed; |
||||||
|
ysvipgrid.Visibility = Visibility.Visible; |
||||||
|
ssqjdgrid.Visibility = Visibility.Collapsed; |
||||||
|
qtcsgrid.Visibility = Visibility.Collapsed; |
||||||
|
ShuaXin(); |
||||||
|
} |
||||||
|
private void btnssqjd_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
type = "切口类型"; |
||||||
|
btnsslx.IsEnabled = true; |
||||||
|
btnbrvip.IsEnabled = true; |
||||||
|
btnysbip.IsEnabled = true; |
||||||
|
btnssqjd.IsEnabled = false; |
||||||
|
btnqtcs.IsEnabled = true; |
||||||
|
sslxgrid.Visibility = Visibility.Collapsed; |
||||||
|
brvipgrid.Visibility = Visibility.Collapsed; |
||||||
|
ysvipgrid.Visibility = Visibility.Collapsed; |
||||||
|
ssqjdgrid.Visibility = Visibility.Visible; |
||||||
|
qtcsgrid.Visibility = Visibility.Collapsed; |
||||||
|
ShuaXin(); |
||||||
|
} |
||||||
|
List<Cus_Qtcs> listqtcsb = new List<Cus_Qtcs>(); |
||||||
|
private void btnqtcs_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
type = "其他参数"; |
||||||
|
btnsslx.IsEnabled = true; |
||||||
|
btnbrvip.IsEnabled = true; |
||||||
|
btnysbip.IsEnabled = true; |
||||||
|
btnssqjd.IsEnabled = true; |
||||||
|
btnqtcs.IsEnabled = false; |
||||||
|
sslxgrid.Visibility = Visibility.Collapsed; |
||||||
|
brvipgrid.Visibility = Visibility.Collapsed; |
||||||
|
ysvipgrid.Visibility = Visibility.Collapsed; |
||||||
|
ssqjdgrid.Visibility = Visibility.Collapsed; |
||||||
|
qtcsgrid.Visibility = Visibility.Visible; |
||||||
|
listqtcsb = (from tbqtcsb in myModel.Bus_SJCSB |
||||||
|
select new Cus_Qtcs |
||||||
|
{ |
||||||
|
ID = tbqtcsb.ID, |
||||||
|
MTPBSCID = tbqtcsb.MTPBSCID, |
||||||
|
MTPBSC = tbqtcsb.MTPBSC, |
||||||
|
PBKSSJID = tbqtcsb.PBKSSJID, |
||||||
|
PBKSSJ = tbqtcsb.PBKSSJ, |
||||||
|
SSMXSQZ = tbqtcsb.SSMXSQZ, |
||||||
|
ZHXGSJID = tbqtcsb.ZHXGSJID, |
||||||
|
ZHXGSJ = tbqtcsb.ZHXGSJ, |
||||||
|
XXSC = tbqtcsb.XXSC, |
||||||
|
strXXSC = tbqtcsb.STRXXSC, |
||||||
|
XXSJ = tbqtcsb.XXSJ, |
||||||
|
strXXSJ = tbqtcsb.STRXXSJ, |
||||||
|
XGSJ = tbqtcsb.XGSJ, |
||||||
|
XGR = tbqtcsb.XGR |
||||||
|
}).ToList(); |
||||||
|
List<ComboBoxBinding> listpbkssj = new List<ComboBoxBinding>(); |
||||||
|
listpbkssj.Add(new ComboBoxBinding() { ID = 0, Name = "请选择" }); |
||||||
|
listpbkssj.Add(new ComboBoxBinding() { ID = 1, Name = "07:00:00" }); |
||||||
|
listpbkssj.Add(new ComboBoxBinding() { ID = 2, Name = "07:30:00" }); |
||||||
|
listpbkssj.Add(new ComboBoxBinding() { ID = 3, Name = "08:00:00" }); |
||||||
|
listpbkssj.Add(new ComboBoxBinding() { ID = 4, Name = "08:30:00" }); |
||||||
|
listpbkssj.Add(new ComboBoxBinding() { ID = 5, Name = "09:00:00" }); |
||||||
|
listpbkssj.Add(new ComboBoxBinding() { ID = 6, Name = "09:30:00" }); |
||||||
|
listpbkssj.Add(new ComboBoxBinding() { ID = 7, Name = "10:00:00" }); |
||||||
|
listpbkssj.Add(new ComboBoxBinding() { ID = 8, Name = "10:30:00" }); |
||||||
|
listpbkssj.Add(new ComboBoxBinding() { ID = 9, Name = "11:00:00" }); |
||||||
|
listpbkssj.Add(new ComboBoxBinding() { ID = 10, Name = "11:30:00" }); |
||||||
|
listpbkssj.Add(new ComboBoxBinding() { ID = 11, Name = "12:00:00" }); |
||||||
|
|
||||||
|
|
||||||
|
List<ComboBoxBinding> listmtpbsc = new List<ComboBoxBinding>(); |
||||||
|
listmtpbsc.Add(new ComboBoxBinding() { ID = 0, Name = "请选择" }); |
||||||
|
listmtpbsc.Add(new ComboBoxBinding() { ID = 1, Name = "4小时" }); |
||||||
|
listmtpbsc.Add(new ComboBoxBinding() { ID = 2, Name = "5小时" }); |
||||||
|
listmtpbsc.Add(new ComboBoxBinding() { ID = 3, Name = "6小时" }); |
||||||
|
listmtpbsc.Add(new ComboBoxBinding() { ID = 4, Name = "7小时" }); |
||||||
|
listmtpbsc.Add(new ComboBoxBinding() { ID = 5, Name = "8小时" }); |
||||||
|
listmtpbsc.Add(new ComboBoxBinding() { ID = 6, Name = "9小时" }); |
||||||
|
listmtpbsc.Add(new ComboBoxBinding() { ID = 7, Name = "10小时" }); |
||||||
|
listmtpbsc.Add(new ComboBoxBinding() { ID = 8, Name = "11小时" }); |
||||||
|
listmtpbsc.Add(new ComboBoxBinding() { ID = 9, Name = "12小时" }); |
||||||
|
List<ComboBoxBinding> listssxsqz = new List<ComboBoxBinding>(); |
||||||
|
listssxsqz.Add(new ComboBoxBinding() { ID = 0, Name = "0" }); |
||||||
|
listssxsqz.Add(new ComboBoxBinding() { ID = 1, Name = "1" }); |
||||||
|
listssxsqz.Add(new ComboBoxBinding() { ID = 2, Name = "2" }); |
||||||
|
listssxsqz.Add(new ComboBoxBinding() { ID = 3, Name = "3" }); |
||||||
|
listssxsqz.Add(new ComboBoxBinding() { ID = 4, Name = "4" }); |
||||||
|
listssxsqz.Add(new ComboBoxBinding() { ID = 5, Name = "5" }); |
||||||
|
listssxsqz.Add(new ComboBoxBinding() { ID = 6, Name = "6" }); |
||||||
|
listssxsqz.Add(new ComboBoxBinding() { ID = 7, Name = "7" }); |
||||||
|
listssxsqz.Add(new ComboBoxBinding() { ID = 8, Name = "8" }); |
||||||
|
listssxsqz.Add(new ComboBoxBinding() { ID = 9, Name = "9" }); |
||||||
|
listssxsqz.Add(new ComboBoxBinding() { ID = 10, Name = "10" }); |
||||||
|
List<ComboBoxBinding> listzhxgsj = new List<ComboBoxBinding>(); |
||||||
|
listzhxgsj.Add(new ComboBoxBinding() { ID = 0, Name = "1天内" }); |
||||||
|
listzhxgsj.Add(new ComboBoxBinding() { ID = 1, Name = "2天内" }); |
||||||
|
listzhxgsj.Add(new ComboBoxBinding() { ID = 2, Name = "3天内" }); |
||||||
|
//listzhxgsj.Add(new ComboBoxBinding() { ID = 3, Name = "24小时" }); |
||||||
|
//listzhxgsj.Add(new ComboBoxBinding() { ID = 4, Name = "36小时" }); |
||||||
|
//listzhxgsj.Add(new ComboBoxBinding() { ID = 5, Name = "48小时" }); |
||||||
|
|
||||||
|
List<ComboBoxBinding> listxxsj = new List<ComboBoxBinding>(); |
||||||
|
listxxsj.Add(new ComboBoxBinding() { ID = 0, Name = "不休息" }); |
||||||
|
listxxsj.Add(new ComboBoxBinding() { ID = 1, Name = "11:00:00" }); |
||||||
|
listxxsj.Add(new ComboBoxBinding() { ID = 2, Name = "11:30:00" }); |
||||||
|
listxxsj.Add(new ComboBoxBinding() { ID = 3, Name = "12:00:00" }); |
||||||
|
listxxsj.Add(new ComboBoxBinding() { ID = 4, Name = "12:30:00" }); |
||||||
|
listxxsj.Add(new ComboBoxBinding() { ID = 5, Name = "13:00:00" }); |
||||||
|
listxxsj.Add(new ComboBoxBinding() { ID = 6, Name = "13:30:00" }); |
||||||
|
listxxsj.Add(new ComboBoxBinding() { ID = 7, Name = "14:00:00" }); |
||||||
|
List<ComboBoxBinding> listxxsc = new List<ComboBoxBinding>(); |
||||||
|
listxxsc.Add(new ComboBoxBinding() { ID = 0, Name = "0" }); |
||||||
|
listxxsc.Add(new ComboBoxBinding() { ID = 1, Name = "0.5小时" }); |
||||||
|
listxxsc.Add(new ComboBoxBinding() { ID = 2, Name = "1小时" }); |
||||||
|
listxxsc.Add(new ComboBoxBinding() { ID = 3, Name = "1.5小时" }); |
||||||
|
listxxsc.Add(new ComboBoxBinding() { ID = 4, Name = "2小时" }); |
||||||
|
listxxsc.Add(new ComboBoxBinding() { ID = 5, Name = "2.5小时" }); |
||||||
|
listxxsc.Add(new ComboBoxBinding() { ID = 6, Name = "3小时" }); |
||||||
|
pbkssj.ItemsSource = listpbkssj; |
||||||
|
pbkssj.SelectedValuePath = "ID"; |
||||||
|
pbkssj.DisplayMemberPath = "Name"; |
||||||
|
pbkssj.SelectedValue = listqtcsb.Single().PBKSSJID; |
||||||
|
mtpbsc.ItemsSource = listmtpbsc; |
||||||
|
mtpbsc.SelectedValuePath = "ID"; |
||||||
|
mtpbsc.DisplayMemberPath = "Name"; |
||||||
|
mtpbsc.SelectedValue = listqtcsb.Single().MTPBSCID; |
||||||
|
ssmxsqz.ItemsSource = listssxsqz; |
||||||
|
ssmxsqz.SelectedValuePath = "ID"; |
||||||
|
ssmxsqz.DisplayMemberPath = "Name"; |
||||||
|
ssmxsqz.SelectedValue = listqtcsb.Single().SSMXSQZ; |
||||||
|
zhxgsj.ItemsSource = listzhxgsj; |
||||||
|
zhxgsj.SelectedValuePath = "ID"; |
||||||
|
zhxgsj.DisplayMemberPath = "Name"; |
||||||
|
zhxgsj.SelectedValue = listqtcsb.Single().ZHXGSJID; |
||||||
|
xxsj.ItemsSource = listxxsj; |
||||||
|
xxsj.SelectedValuePath = "ID"; |
||||||
|
xxsj.DisplayMemberPath = "Name"; |
||||||
|
xxsj.SelectedValue = listqtcsb.Single().XXSJ; |
||||||
|
xxsc.ItemsSource = listxxsc; |
||||||
|
xxsc.SelectedValuePath = "ID"; |
||||||
|
xxsc.DisplayMemberPath = "Name"; |
||||||
|
xxsc.Text = listqtcsb.Single().strXXSC; |
||||||
|
if (xxsj.SelectedValue!=null) |
||||||
|
{ |
||||||
|
if (Convert.ToInt32(xxsj.SelectedValue) == 0) |
||||||
|
{ |
||||||
|
xxsc.SelectedValue = 0; |
||||||
|
xxsc.IsEditable = false; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
xxsc.IsEditable = true; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
int sslxqzid = 0; |
||||||
|
int brvipqzid = 0; |
||||||
|
int ysvipqzid = 0; |
||||||
|
int ssqjdqzid = 0; |
||||||
|
private void sslxdata_SelectionChanged(object sender, SelectionChangedEventArgs e) |
||||||
|
{ |
||||||
|
sslxqzid = 0; |
||||||
|
Cus_SslxQz selectedRow = sslxdata.SelectedItem as Cus_SslxQz; |
||||||
|
|
||||||
|
if (selectedRow != null) |
||||||
|
{ |
||||||
|
sslxqzid = selectedRow.ID; |
||||||
|
ssjbrow = selectedRow; |
||||||
|
} |
||||||
|
} |
||||||
|
private void brvipdata_SelectionChanged(object sender, SelectionChangedEventArgs e) |
||||||
|
{ |
||||||
|
brvipqzid = 0; |
||||||
|
Cus_BrvipQz selectedRow = brvipdata.SelectedItem as Cus_BrvipQz; |
||||||
|
|
||||||
|
if (selectedRow != null) |
||||||
|
{ |
||||||
|
brvipqzid = selectedRow.ID; |
||||||
|
} |
||||||
|
} |
||||||
|
private void ysvipdata_SelectionChanged(object sender, SelectionChangedEventArgs e) |
||||||
|
{ |
||||||
|
ysvipqzid = 0; |
||||||
|
Cus_YsvipQz selectedRow = ysvipdata.SelectedItem as Cus_YsvipQz; |
||||||
|
|
||||||
|
if (selectedRow != null) |
||||||
|
{ |
||||||
|
ysvipqzid = selectedRow.ID; |
||||||
|
} |
||||||
|
} |
||||||
|
private void ssqjddata_SelectionChanged(object sender, SelectionChangedEventArgs e) |
||||||
|
{ |
||||||
|
ssqjdqzid = 0; |
||||||
|
Cus_SsqjdQz selectedRow = ssqjddata.SelectedItem as Cus_SsqjdQz; |
||||||
|
if (selectedRow != null) |
||||||
|
{ |
||||||
|
ssqjdqzid = selectedRow.ID; |
||||||
|
qklxrow = selectedRow; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
private void btn_bccs_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
if (pbkssj.SelectedIndex == 0) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择开始时间"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (mtpbsc.SelectedIndex == 0) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择排班时长"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (xxsj.SelectedValue == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择休息时间"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (xxsc.SelectedValue == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择休息时长"); |
||||||
|
return; |
||||||
|
} |
||||||
|
Bus_SJCSB stcsb = new Bus_SJCSB(); |
||||||
|
stcsb.ID = listqtcsb.Single().ID; |
||||||
|
stcsb.MTPBSCID = Convert.ToInt32(mtpbsc.SelectedValue); |
||||||
|
stcsb.MTPBSC = mtpbsc.Text; |
||||||
|
stcsb.PBKSSJID = Convert.ToInt32(pbkssj.SelectedValue); |
||||||
|
stcsb.PBKSSJ = pbkssj.Text; |
||||||
|
stcsb.SSMXSQZ = Convert.ToInt32(ssmxsqz.SelectedValue); |
||||||
|
stcsb.ZHXGSJID = Convert.ToInt32(zhxgsj.SelectedValue); |
||||||
|
stcsb.XXSJ = Convert.ToInt32(xxsj.SelectedValue); |
||||||
|
stcsb.STRXXSJ = xxsj.Text; |
||||||
|
stcsb.XXSC = Convert.ToDecimal(xxsc.Text.Replace("小时", "")); |
||||||
|
stcsb.STRXXSC = xxsc.Text; |
||||||
|
stcsb.ZHXGSJ = zhxgsj.Text; |
||||||
|
stcsb.XGSJ = DateTime.Now; |
||||||
|
try |
||||||
|
{ |
||||||
|
myModel.Entry(stcsb).State = System.Data.Entity.EntityState.Modified; |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("保存成功"); |
||||||
|
myModel.Entry(stcsb).State = System.Data.Entity.EntityState.Detached; |
||||||
|
|
||||||
|
} |
||||||
|
catch (Exception ex) |
||||||
|
{ |
||||||
|
MessageBox.Show("保存失败" + ex.ToString()); |
||||||
|
} |
||||||
|
} |
||||||
|
private void btn_xz_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
if (type == "患者VIP") |
||||||
|
{ |
||||||
|
XZGZBRVIPWindow window = new XZGZBRVIPWindow(); |
||||||
|
window.ShowDialog(); |
||||||
|
} |
||||||
|
if (type == "医生VIP") |
||||||
|
{ |
||||||
|
XZGZYSVIPWindow window = new XZGZYSVIPWindow(); |
||||||
|
window.ShowDialog(); |
||||||
|
} |
||||||
|
ShuaXin(); |
||||||
|
} |
||||||
|
private void btn_xg_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
if (type == "手术级别") |
||||||
|
{ |
||||||
|
if (sslxqzid != 0) |
||||||
|
{ |
||||||
|
XGGZSSLXWindow window = new XGGZSSLXWindow(ssjbrow); |
||||||
|
window.ShowDialog(); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择需要修改的信息"); |
||||||
|
} |
||||||
|
} |
||||||
|
if (type == "患者VIP") |
||||||
|
{ |
||||||
|
if (brvipqzid != 0) |
||||||
|
{ |
||||||
|
XGGZBRVIPWindow window = new XGGZBRVIPWindow(brvipqzid); |
||||||
|
window.ShowDialog(); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择需要修改的信息"); |
||||||
|
} |
||||||
|
} |
||||||
|
if (type == "医生VIP") |
||||||
|
{ |
||||||
|
if (ysvipqzid != 0) |
||||||
|
{ |
||||||
|
XGGZYSVIPWindow window = new XGGZYSVIPWindow(ysvipqzid); |
||||||
|
window.ShowDialog(); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择需要修改的信息"); |
||||||
|
} |
||||||
|
} |
||||||
|
if (type == "切口类型") |
||||||
|
{ |
||||||
|
if (ssqjdqzid != 0) |
||||||
|
{ |
||||||
|
XGGZSSQJDWindow window = new XGGZSSQJDWindow(qklxrow); |
||||||
|
window.ShowDialog(); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择需要修改的信息"); |
||||||
|
} |
||||||
|
} |
||||||
|
ShuaXin(); |
||||||
|
} |
||||||
|
private void btn_sc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
|
||||||
|
if (type == "患者VIP") |
||||||
|
{ |
||||||
|
if (brvipqzid != 0) |
||||||
|
{ |
||||||
|
MessageBoxResult dr = MessageBox.Show("确定要删除吗?", "提示", MessageBoxButton.OKCancel, MessageBoxImage.Question); |
||||||
|
if (dr == MessageBoxResult.OK) |
||||||
|
{ |
||||||
|
var listsbrvipqz = (from tbbrvipqz in myModel.SYS_HZVIPB |
||||||
|
where tbbrvipqz.ID == brvipqzid |
||||||
|
select new |
||||||
|
{ |
||||||
|
tbbrvipqz, |
||||||
|
}).Single(); |
||||||
|
try |
||||||
|
{ |
||||||
|
myModel.SYS_HZVIPB.Remove(listsbrvipqz.tbbrvipqz); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("删除成功"); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
|
||||||
|
MessageBox.Show("删除失败"); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择需要删除的内容"); |
||||||
|
} |
||||||
|
} |
||||||
|
if (type == "医生VIP") |
||||||
|
{ |
||||||
|
if (ysvipqzid != 0) |
||||||
|
{ |
||||||
|
MessageBoxResult dr = MessageBox.Show("确定要删除吗?", "提示", MessageBoxButton.OKCancel, MessageBoxImage.Question); |
||||||
|
if (dr == MessageBoxResult.OK) |
||||||
|
{ |
||||||
|
var listsysvipqz = (from tbysvipqz in myModel.SYS_YSVIPB |
||||||
|
where tbysvipqz.ID == ysvipqzid |
||||||
|
select new |
||||||
|
{ |
||||||
|
tbysvipqz, |
||||||
|
}).Single(); |
||||||
|
try |
||||||
|
{ |
||||||
|
myModel.SYS_YSVIPB.Remove(listsysvipqz.tbysvipqz); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("删除成功"); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
|
||||||
|
MessageBox.Show("删除失败"); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择需要删除的内容"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
ShuaXin(); |
||||||
|
} |
||||||
|
private void btn_sx_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
ShuaXin(); |
||||||
|
} |
||||||
|
private void ShuaXin() |
||||||
|
{ |
||||||
|
if (type == "手术级别") |
||||||
|
{ |
||||||
|
var listsslx = (from tbsslx in myModel.SYS_SSDJB |
||||||
|
select new Cus_SslxQz |
||||||
|
{ |
||||||
|
ID = tbsslx.ID, |
||||||
|
SSLX = tbsslx.SSDJ, |
||||||
|
LXMS = tbsslx.DJMS, |
||||||
|
QZ = tbsslx.QZ |
||||||
|
}).ToList().OrderBy(a => a.ID); |
||||||
|
sslxdata.ItemsSource = listsslx; |
||||||
|
} |
||||||
|
if (type == "患者VIP") |
||||||
|
{ |
||||||
|
var listbrvip = (from tbbrvip in myModel.SYS_HZVIPB |
||||||
|
select new Cus_BrvipQz |
||||||
|
{ |
||||||
|
ID = tbbrvip.ID, |
||||||
|
BRXM = tbbrvip.HZXM, |
||||||
|
ZLKH = tbbrvip.ZLKH, |
||||||
|
QZ = tbbrvip.QZ |
||||||
|
}).ToList().OrderByDescending(a => a.QZ); |
||||||
|
brvipdata.ItemsSource = listbrvip; |
||||||
|
} |
||||||
|
if (type == "医生VIP") |
||||||
|
{ |
||||||
|
var listysvip = (from tbysvip in myModel.SYS_YSVIPB |
||||||
|
select new Cus_YsvipQz |
||||||
|
{ |
||||||
|
ID = tbysvip.ID, |
||||||
|
YSXM = tbysvip.YSXM, |
||||||
|
YSBM = tbysvip.YSBM, |
||||||
|
QZ = tbysvip.QZ |
||||||
|
}).ToList().OrderByDescending(a => a.QZ); |
||||||
|
ysvipdata.ItemsSource = listysvip; |
||||||
|
} |
||||||
|
if (type == "切口类型") |
||||||
|
{ |
||||||
|
var listssqjd = (from tbssqjd in myModel.SYS_SSQKLXB |
||||||
|
join tbsb in myModel.SYS_SSSCB on tbssqjd.QJSCID equals tbsb.ID |
||||||
|
select new Cus_SsqjdQz |
||||||
|
{ |
||||||
|
ID = tbssqjd.ID, |
||||||
|
SSQJD = tbssqjd.QKLX, |
||||||
|
LXMS = tbssqjd.LXMS, |
||||||
|
QJSCID = tbsb.ID, |
||||||
|
QJSC = tbsb.NAME, |
||||||
|
QZ = tbssqjd.QZ |
||||||
|
}).ToList().OrderBy(a => a.ID); |
||||||
|
ssqjddata.ItemsSource = listssqjd; |
||||||
|
} |
||||||
|
} |
||||||
|
Cus_SslxQz ssjbrow = new Cus_SslxQz(); |
||||||
|
Cus_SsqjdQz qklxrow = new Cus_SsqjdQz(); |
||||||
|
private void xxsj_SelectionChanged(object sender, SelectionChangedEventArgs e) |
||||||
|
{ |
||||||
|
if (xxsj.SelectedValue!=null) |
||||||
|
{ |
||||||
|
if (Convert.ToInt32(xxsj.SelectedValue) == 0) |
||||||
|
{ |
||||||
|
xxsc.SelectedValue = 0; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
private void xxsc_SelectionChanged(object sender, SelectionChangedEventArgs e) |
||||||
|
{ |
||||||
|
if (xxsj.SelectedValue !=null) |
||||||
|
{ |
||||||
|
if (Convert.ToInt32(xxsj.SelectedValue) == 0) |
||||||
|
{ |
||||||
|
xxsc.SelectedValue = 0; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
After Width: | Height: | Size: 62 KiB |
@ -0,0 +1,32 @@ |
|||||||
|
<Window x:Class="SchedulingSystem.XZGZBRVIPWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystem" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增病人权重" Height="450" Width="800" WindowStartupLocation="CenterScreen"> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">病人姓名:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">诊疗卡号:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">权重:</Label> |
||||||
|
<TextBox x:Name="brxm" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="zlkh" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="qz" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,78 @@ |
|||||||
|
using SchedulingSystemClient; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystem |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZGZBRVIPWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZGZBRVIPWindow : Window |
||||||
|
{ |
||||||
|
public XZGZBRVIPWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
int intqz; |
||||||
|
if (brxm == null|| brxm.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写病人姓名"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (zlkh == null || zlkh.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填诊疗卡号"); |
||||||
|
return; |
||||||
|
} |
||||||
|
try |
||||||
|
{ |
||||||
|
intqz = Convert.ToInt32(qz.Text); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("请输入正确的权重格式"); |
||||||
|
return; |
||||||
|
} |
||||||
|
var listbrvip = (from tbbrvip in myModel.SYS_HZVIPB |
||||||
|
where tbbrvip.ZLKH == zlkh.Text |
||||||
|
select new |
||||||
|
{ |
||||||
|
tbbrvip |
||||||
|
}).ToList(); |
||||||
|
if (listbrvip.Count > 0) |
||||||
|
{ |
||||||
|
MessageBox.Show("诊疗卡号不能重复"); |
||||||
|
return; |
||||||
|
} |
||||||
|
|
||||||
|
SYS_HZVIPB brvipqz = new SYS_HZVIPB(); |
||||||
|
brvipqz.HZXM = brxm.Text; |
||||||
|
brvipqz.ZLKH = zlkh.Text; |
||||||
|
brvipqz.QZ = intqz; |
||||||
|
try |
||||||
|
{ |
||||||
|
myModel.SYS_HZVIPB.Add(brvipqz); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("新增成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("新增失败"); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,29 @@ |
|||||||
|
<Window x:Class="SchedulingSystem.XZGZSSLXWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystem" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增手术类型权重" Height="450" Width="800" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen"> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">手术类型:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">权重:</Label> |
||||||
|
<ComboBox x:Name="sslx" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></ComboBox> |
||||||
|
<TextBox x:Name="qz" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,90 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using SchedulingSystemClient; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystem |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZGZSSLXWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZGZSSLXWindow : Window |
||||||
|
{ |
||||||
|
public XZGZSSLXWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
List<ComboBoxBinding> listsslx = new List<ComboBoxBinding>(); |
||||||
|
listsslx = (from tbsss in myModel.SYS_SSQKLXB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbsss.ID, |
||||||
|
Name = tbsss.QKLX, |
||||||
|
}).ToList(); |
||||||
|
sslx.ItemsSource = listsslx; |
||||||
|
sslx.SelectedValuePath = "ID"; |
||||||
|
sslx.DisplayMemberPath = "Name"; |
||||||
|
} |
||||||
|
|
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
int intqz; |
||||||
|
if (sslx.SelectedItem == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择手术类型"); |
||||||
|
return; |
||||||
|
} |
||||||
|
try |
||||||
|
{ |
||||||
|
intqz = Convert.ToInt32(qz.Text); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("请输入正确的权重格式"); |
||||||
|
return; |
||||||
|
} |
||||||
|
int lxid = Convert.ToInt32(sslx.SelectedValue); |
||||||
|
var listsslx = (from tbsslx in myModel.SYS_SSQKLXB |
||||||
|
where tbsslx.ID == lxid |
||||||
|
select new |
||||||
|
{ |
||||||
|
tbsslx |
||||||
|
}).ToList(); |
||||||
|
//if (listsslx.Count>0) |
||||||
|
//{ |
||||||
|
// MessageBox.Show("不能重复设置"); |
||||||
|
// return; |
||||||
|
//} |
||||||
|
|
||||||
|
|
||||||
|
//Bus_SSLXQZB sslxqz = new Bus_SSLXQZB(); |
||||||
|
//sslxqz.SSLXID = lxid; |
||||||
|
//sslxqz.SSLX = sslx.Text.ToString(); |
||||||
|
//sslxqz.QZ = intqz; |
||||||
|
//try |
||||||
|
//{ |
||||||
|
// myModel.Bus_SSLXQZB.Add(sslxqz); |
||||||
|
// myModel.SaveChanges(); |
||||||
|
// MessageBox.Show("新增成功"); |
||||||
|
// this.Close(); |
||||||
|
//} |
||||||
|
//catch (Exception) |
||||||
|
//{ |
||||||
|
// MessageBox.Show("新增失败"); |
||||||
|
//} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,31 @@ |
|||||||
|
<Window x:Class="SchedulingSystem.XZGZSSQJDWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystem" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增手术清洁度权重" Height="450" Width="800" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen"> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
|
||||||
|
|
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">手术清洁度:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">权重:</Label> |
||||||
|
<ComboBox x:Name="ssqjd" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></ComboBox> |
||||||
|
<TextBox x:Name="qz" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,88 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using SchedulingSystemClient; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystem |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZGZSSQJDWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZGZSSQJDWindow : Window |
||||||
|
{ |
||||||
|
public XZGZSSQJDWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
List<ComboBoxBinding> listssqjd = new List<ComboBoxBinding>(); |
||||||
|
listssqjd = (from tbsss in myModel.SYS_SSQKLXB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbsss.ID, |
||||||
|
Name = tbsss.QKLX, |
||||||
|
}).ToList(); |
||||||
|
ssqjd.ItemsSource = listssqjd; |
||||||
|
ssqjd.SelectedValuePath = "ID"; |
||||||
|
ssqjd.DisplayMemberPath = "Name"; |
||||||
|
} |
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
int intqz; |
||||||
|
if (ssqjd.SelectedItem == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择手术清洁度"); |
||||||
|
return; |
||||||
|
} |
||||||
|
try |
||||||
|
{ |
||||||
|
intqz = Convert.ToInt32(qz.Text); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("请输入正确的权重格式"); |
||||||
|
return; |
||||||
|
} |
||||||
|
int qjdid = Convert.ToInt32(ssqjd.SelectedValue); |
||||||
|
var listssqjd = (from tbssqjd in myModel.SYS_SSQKLXB |
||||||
|
where tbssqjd.ID == qjdid |
||||||
|
select new |
||||||
|
{ |
||||||
|
tbssqjd |
||||||
|
}).ToList(); |
||||||
|
if (listssqjd.Count > 0) |
||||||
|
{ |
||||||
|
MessageBox.Show("不能重复设置"); |
||||||
|
return; |
||||||
|
} |
||||||
|
|
||||||
|
SYS_SSQKLXB ssqjdqz = new SYS_SSQKLXB(); |
||||||
|
ssqjdqz.QJSCID = qjdid; |
||||||
|
ssqjdqz.QKLX = ssqjd.Text.ToString(); |
||||||
|
ssqjdqz.QZ = intqz; |
||||||
|
try |
||||||
|
{ |
||||||
|
myModel.SYS_SSQKLXB.Add(ssqjdqz); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("新增成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("新增失败"); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,74 @@ |
|||||||
|
<Window x:Class="SchedulingSystem.XZGZYSVIPWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystem" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增医生权重" Height="450" Width="800" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded"> |
||||||
|
<Window.Resources> |
||||||
|
<!--下拉框--> |
||||||
|
<ControlTemplate x:Key="CusComboBox" TargetType="{x:Type ComboBox}" > |
||||||
|
<Border BorderThickness="2" BorderBrush="#E4E4E4"> |
||||||
|
<Grid> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="9*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<!--文本框--> |
||||||
|
<TextBox x:Name="myTxt" Grid.Column="0" |
||||||
|
Text="{TemplateBinding Text}" |
||||||
|
Background="White" |
||||||
|
BorderThickness="0" |
||||||
|
VerticalContentAlignment="Center" |
||||||
|
HorizontalContentAlignment="Center" |
||||||
|
FontSize="18" |
||||||
|
Foreground="Black"/> |
||||||
|
<!--下拉按钮--> |
||||||
|
<ToggleButton Grid.Column="1" Content="∨" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
||||||
|
ClickMode="Press" Background="White" BorderThickness="0" IsEnabled="{Binding ElementName= myTxt,Path=IsEnabled}"/> |
||||||
|
<Popup Name="MyPopup" |
||||||
|
IsOpen="{TemplateBinding IsDropDownOpen}" |
||||||
|
Placement="Bottom"> |
||||||
|
<Border MinWidth="{TemplateBinding ActualWidth}" |
||||||
|
MaxHeight="{TemplateBinding MaxDropDownHeight}"> |
||||||
|
<ScrollViewer MaxHeight="{TemplateBinding MaxDropDownHeight}" |
||||||
|
HorizontalScrollBarVisibility="Auto" |
||||||
|
VerticalScrollBarVisibility="Auto"> |
||||||
|
<StackPanel Background="White" |
||||||
|
IsItemsHost="True"/> |
||||||
|
</ScrollViewer> |
||||||
|
</Border> |
||||||
|
</Popup> |
||||||
|
</Grid> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Window.Resources> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">医生姓名:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">医生编码:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">权重:</Label> |
||||||
|
<TextBox x:Name="ysxm" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="ysbm" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<!--<ComboBox x:Name="ysxm" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="18" Background="White" Template="{StaticResource CusComboBox}" SelectionChanged="ysxm_SelectionChanged"> |
||||||
|
</ComboBox> |
||||||
|
<ComboBox x:Name="ysbm" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="18" Background="White" Template="{StaticResource CusComboBox}"> |
||||||
|
</ComboBox>--> |
||||||
|
<TextBox x:Name="qz" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,120 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using SchedulingSystemClient; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystem |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// ZXGZYSVIPWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZGZYSVIPWindow : Window |
||||||
|
{ |
||||||
|
public XZGZYSVIPWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
|
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
int intqz; |
||||||
|
if (ysxm == null || ysxm.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写医生姓名"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (ysbm == null || ysbm.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写医生编码"); |
||||||
|
return; |
||||||
|
} |
||||||
|
try |
||||||
|
{ |
||||||
|
intqz = Convert.ToInt32(qz.Text); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("请输入正确的权重格式"); |
||||||
|
return; |
||||||
|
} |
||||||
|
var listysvip = (from tbysvip in myModel.SYS_YSVIPB |
||||||
|
where tbysvip.YSBM == ysbm.Text |
||||||
|
select new |
||||||
|
{ |
||||||
|
tbysvip |
||||||
|
}).ToList(); |
||||||
|
if (listysvip.Count > 0) |
||||||
|
{ |
||||||
|
MessageBox.Show("医生编码不能重复"); |
||||||
|
return; |
||||||
|
} |
||||||
|
|
||||||
|
SYS_YSVIPB ysvipqz = new SYS_YSVIPB(); |
||||||
|
ysvipqz.YSXM = ysxm.Text; |
||||||
|
ysvipqz.YSBM = ysbm.Text; |
||||||
|
ysvipqz.QZ = intqz; |
||||||
|
try |
||||||
|
{ |
||||||
|
myModel.SYS_YSVIPB.Add(ysvipqz); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("新增成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception ex) |
||||||
|
{ |
||||||
|
MessageBox.Show("新增失败"+ex.ToString()); |
||||||
|
} |
||||||
|
} |
||||||
|
string strysxm = string.Empty; |
||||||
|
List<ComboBoxBinding> listysbm = new List<ComboBoxBinding>(); |
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
List<ComboBoxBinding> listysxm = new List<ComboBoxBinding>(); |
||||||
|
//listysxm = (from tbysb in myModel.SYS_YSVIPB |
||||||
|
// select new ComboBoxBinding |
||||||
|
// { |
||||||
|
// ID = tbysb.ID, |
||||||
|
// Name = tbysb.YSXM, |
||||||
|
// }).ToList(); |
||||||
|
//ysxm.ItemsSource = listysxm; |
||||||
|
//ysxm.SelectedValuePath = "ID"; |
||||||
|
//ysxm.DisplayMemberPath = "Name"; |
||||||
|
} |
||||||
|
|
||||||
|
private void ysxm_SelectionChanged(object sender, SelectionChangedEventArgs e) |
||||||
|
{ |
||||||
|
//if (ysxm.SelectedValue !=null) |
||||||
|
//{ |
||||||
|
//int id =Convert.ToInt32(ysxm.SelectedValue); |
||||||
|
//string strysxm = (from tbysb in myModel.SYS_YSB where tbysb.ID == id select new { tbysb}).Single().tbysb.YSXM; |
||||||
|
//listysbm = new List<ComboBoxBinding>(); |
||||||
|
//if (strysxm != null && strysxm != string.Empty) |
||||||
|
//{ |
||||||
|
// listysbm = (from tbysb in myModel.SYS_YSB |
||||||
|
// where tbysb.YSXM == strysxm |
||||||
|
// select new ComboBoxBinding |
||||||
|
// { |
||||||
|
// ID = tbysb.ID, |
||||||
|
// Name = tbysb.YSBM, |
||||||
|
// }).ToList(); |
||||||
|
//} |
||||||
|
//ysbm.ItemsSource = listysbm; |
||||||
|
//ysbm.SelectedValuePath = "ID"; |
||||||
|
//ysbm.DisplayMemberPath = "Name"; |
||||||
|
//ysbm.SelectedIndex = 0; |
||||||
|
//} |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,41 @@ |
|||||||
|
<Window x:Class="SchedulingSystemClient.InsertWindow.XZHSWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystem" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增护士" Height="550" Width="700" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen"> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.3*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.3*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">护士姓名:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">护士工号:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">护士职称:</Label> |
||||||
|
<Label Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">手术室:</Label> |
||||||
|
<Label Grid.Row="5" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">是否启用:</Label> |
||||||
|
<TextBox x:Name="ysxm" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="ysgh" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<ComboBox x:Name="yszc" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox> |
||||||
|
<ComboBox x:Name="sss" Grid.Row="4" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox> |
||||||
|
<ComboBox x:Name="sfqy" Grid.Row="5" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,108 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.InsertWindow |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZHSWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZHSWindow : Window |
||||||
|
{ |
||||||
|
public XZHSWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
if (ysxm.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写护士姓名"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (ysgh.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写护士姓名"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (yszc.SelectedValue == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择职称"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (sss.SelectedValue == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择手术室"); |
||||||
|
return; |
||||||
|
} |
||||||
|
try |
||||||
|
{ |
||||||
|
var listmzys = (from ybmzys in myModel.SYS_MZYSB |
||||||
|
where ybmzys.YSBM == ysgh.Text && ybmzys.YSMC == ysxm.Text |
||||||
|
select new { ybmzys }).ToList(); |
||||||
|
if (listmzys.Count > 0) |
||||||
|
{ |
||||||
|
MessageBox.Show("护士姓名和编码重复!"); |
||||||
|
return; |
||||||
|
} |
||||||
|
SYS_HSB hsb = new SYS_HSB(); |
||||||
|
hsb.SFQY = sfqy.SelectedValue.ToString() == "0" ? true : false; |
||||||
|
hsb.SSSID = Convert.ToInt32(sss.SelectedValue); |
||||||
|
hsb.HSBM = ysgh.Text; |
||||||
|
hsb.HSMC = ysxm.Text; |
||||||
|
hsb.ZCID = Convert.ToInt32(yszc.SelectedValue); |
||||||
|
myModel.SYS_HSB.Add(hsb); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("新增成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("新增失败"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
List<ComboBoxBinding> listsfqy = new List<ComboBoxBinding>(); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 0, Name = "是" }); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 1, Name = "否" }); |
||||||
|
sfqy.ItemsSource = listsfqy; |
||||||
|
sfqy.SelectedValuePath = "ID"; |
||||||
|
sfqy.DisplayMemberPath = "Name"; |
||||||
|
sfqy.SelectedIndex = 0; |
||||||
|
List<ComboBoxBinding> listhszc = new List<ComboBoxBinding>(); |
||||||
|
listhszc = (from tbssjb in myModel.SYS_HSZCB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbssjb.ID, |
||||||
|
Name = tbssjb.Name, |
||||||
|
}).ToList(); |
||||||
|
yszc.ItemsSource = listhszc; |
||||||
|
yszc.SelectedValuePath = "ID"; |
||||||
|
yszc.DisplayMemberPath = "Name"; |
||||||
|
|
||||||
|
List<ComboBoxBinding> listsss = new List<ComboBoxBinding>(); |
||||||
|
listsss = (from tbssjb in myModel.SYS_SSSB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbssjb.ID, |
||||||
|
Name = tbssjb.SSSMC, |
||||||
|
}).ToList(); |
||||||
|
sss.ItemsSource = listsss; |
||||||
|
sss.SelectedValuePath = "ID"; |
||||||
|
sss.DisplayMemberPath = "Name"; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,34 @@ |
|||||||
|
<Window x:Class="SchedulingSystem.XZHZVIPWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystem" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增患者VIP" Height="450" Width="800" WindowStartupLocation="CenterScreen"> |
||||||
|
<Grid> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">患者姓名:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">诊疗卡号:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">住院号:</Label> |
||||||
|
<TextBox x:Name="hzxm" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="zlkh" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="zyh" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,62 @@ |
|||||||
|
using SchedulingSystemClient; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystem |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZHZVIPWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZHZVIPWindow : Window |
||||||
|
{ |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
public XZHZVIPWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
|
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
if (hzxm.Text == null || hzxm.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写患者名称"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (zlkh.Text == null || zlkh.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写诊疗卡号"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (zyh.Text == null || zyh.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写住院号"); |
||||||
|
return; |
||||||
|
} |
||||||
|
SYS_HZVIPB hzvip = new SYS_HZVIPB(); |
||||||
|
hzvip.HZXM = hzxm.Text; |
||||||
|
hzvip.ZLKH = zlkh.Text; |
||||||
|
|
||||||
|
try |
||||||
|
{ |
||||||
|
myModel.SYS_HZVIPB.Add(hzvip); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("新增成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("新增失败"); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,29 @@ |
|||||||
|
<Window x:Class="SchedulingSystemClient.InsertWindow.XZJSWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystemClient.InsertWindow" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增角色" Height="450" Width="800" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen"> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">角色名称:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">是否可用</Label> |
||||||
|
<TextBox x:Name="jsmc" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<ComboBox x:Name="sfky" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></ComboBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,80 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.InsertWindow |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZJSWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZJSWindow : Window |
||||||
|
{ |
||||||
|
public XZJSWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
if (jsmc.Text ==null || jsmc.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请输入角色名称"); |
||||||
|
return; |
||||||
|
} |
||||||
|
var listjs = (from tbjs in myModel.SYS_JSB where tbjs.JSMC == jsmc.Text select new { tbjs }).ToList(); |
||||||
|
if (listjs.Count>0) |
||||||
|
{ |
||||||
|
MessageBox.Show("请该角色已存在"); |
||||||
|
return; |
||||||
|
} |
||||||
|
bool ky = Convert.ToInt32(sfky.SelectedValue) == 0; |
||||||
|
SYS_JSB role = new SYS_JSB(); |
||||||
|
role.JSMC = jsmc.Text; |
||||||
|
role.SFQY = ky; |
||||||
|
try |
||||||
|
{ |
||||||
|
myModel.SYS_JSB.Add(role); |
||||||
|
myModel.SaveChanges(); |
||||||
|
|
||||||
|
var jslb = (from tbjs in myModel.SYS_JSB where tbjs.JSMC == jsmc.Text select new { tbjs }).Single(); |
||||||
|
SYS_QXB qxb = new SYS_QXB(); |
||||||
|
qxb.JSID = jslb.tbjs.ID; |
||||||
|
qxb.Is_GZWH = false; |
||||||
|
qxb.Is_JCXXWH = false; |
||||||
|
qxb.Is_PBJL = false; |
||||||
|
qxb.Is_PBSQ = false; |
||||||
|
qxb.Is_SY = false; |
||||||
|
qxb.Is_XTGL = false; |
||||||
|
myModel.SYS_QXB.Add(qxb); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("新增成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("新增失败"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
List<ComboBoxBinding> listsfqy = new List<ComboBoxBinding>(); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 0, Name = "是" }); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 1, Name = "否" }); |
||||||
|
sfky.ItemsSource = listsfqy; |
||||||
|
sfky.SelectedValuePath = "ID"; |
||||||
|
sfky.DisplayMemberPath = "Name"; |
||||||
|
sfky.SelectedIndex = 0; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,33 @@ |
|||||||
|
<Window x:Class="SchedulingSystem.XZKSWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystem" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增科室" Height="450" Width="800" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen"> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">科室名称:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">科室编码:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">是否启用:</Label> |
||||||
|
<TextBox x:Name="ksmc" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="ksbm" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<ComboBox x:Name="sfqy" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,69 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using SchedulingSystemClient; |
||||||
|
using SchedulingSystemClient.EntityClass; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystem |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZKSWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZKSWindow : Window |
||||||
|
{ |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
public XZKSWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
if (ksmc.Text == null || ksmc.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写科室名称"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (ksbm.Text == null || ksbm.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写科室编码"); |
||||||
|
return; |
||||||
|
} |
||||||
|
SYS_KSB ksb = new SYS_KSB(); |
||||||
|
ksb.KSMC = ksmc.Text; |
||||||
|
ksb.KSBM = ksbm.Text; |
||||||
|
ksb.SFKQ = sfqy.SelectedValue.ToString() == "0" ? true : false; |
||||||
|
try |
||||||
|
{ |
||||||
|
myModel.SYS_KSB.Add(ksb); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("新增成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("新增失败"); |
||||||
|
} |
||||||
|
} |
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
sfqy.SelectedIndex = 0; |
||||||
|
List<ComboBoxBinding> listsfqy = new List<ComboBoxBinding>(); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 0, Name = "是" }); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 1, Name = "否" }); |
||||||
|
sfqy.ItemsSource = listsfqy; |
||||||
|
sfqy.SelectedValuePath = "ID"; |
||||||
|
sfqy.DisplayMemberPath = "Name"; |
||||||
|
sfqy.SelectedIndex = 0; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,52 @@ |
|||||||
|
<Window x:Class="SchedulingSystemClient.InsertWindow.XZMZYSWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystem" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增麻醉医生" Height="550" Width="700" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen"> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.3*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.3*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">医生姓名:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">医生工号:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">医生职称:</Label> |
||||||
|
<!--<Label Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">手术室:</Label>--> |
||||||
|
<Label Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">擅长手术1:</Label> |
||||||
|
<Label Grid.Row="5" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">擅长手术2:</Label> |
||||||
|
<Label Grid.Row="6" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">擅长手术3:</Label> |
||||||
|
<Label Grid.Row="7" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">是否启用:</Label> |
||||||
|
<TextBox x:Name="ysxm" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="ysgh" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<ComboBox x:Name="yszc" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox> |
||||||
|
<!--<ComboBox x:Name="sss" Grid.Row="4" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox>--> |
||||||
|
<ComboBox x:Name="scss1" Grid.Row="4" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox> |
||||||
|
<ComboBox x:Name="scss2" Grid.Row="5" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox> |
||||||
|
<ComboBox x:Name="scss3" Grid.Row="6" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox> |
||||||
|
<ComboBox x:Name="sfqy" Grid.Row="7" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="8" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,164 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.InsertWindow |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZMZYSWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZMZYSWindow : Window |
||||||
|
{ |
||||||
|
public XZMZYSWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
List<ComboBoxBinding> listsfqy = new List<ComboBoxBinding>(); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 0, Name = "是" }); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 1, Name = "否" }); |
||||||
|
sfqy.ItemsSource = listsfqy; |
||||||
|
sfqy.SelectedValuePath = "ID"; |
||||||
|
sfqy.DisplayMemberPath = "Name"; |
||||||
|
sfqy.SelectedIndex = 0; |
||||||
|
|
||||||
|
List<ComboBoxBinding> listyszc = new List<ComboBoxBinding>(); |
||||||
|
listyszc = (from tbssjb in myModel.SYS_YSZCB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbssjb.ID, |
||||||
|
Name = tbssjb.Name, |
||||||
|
}).ToList(); |
||||||
|
yszc.ItemsSource = listyszc; |
||||||
|
yszc.SelectedValuePath = "ID"; |
||||||
|
yszc.DisplayMemberPath = "Name"; |
||||||
|
List<ComboBoxBinding> listsslb1 = new List<ComboBoxBinding>(); |
||||||
|
listsslb1 = (from tbsslx in myModel.SYS_SSLXB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbsslx.ID, |
||||||
|
Name = tbsslx.SSLX, |
||||||
|
}).ToList(); |
||||||
|
scss1.ItemsSource = listsslb1; |
||||||
|
scss1.SelectedValuePath = "ID"; |
||||||
|
scss1.DisplayMemberPath = "Name"; |
||||||
|
List<ComboBoxBinding> listsslb2 = new List<ComboBoxBinding>(); |
||||||
|
listsslb2 = (from tbsslx in myModel.SYS_SSLXB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbsslx.ID, |
||||||
|
Name = tbsslx.SSLX, |
||||||
|
}).ToList(); |
||||||
|
scss2.ItemsSource = listsslb2; |
||||||
|
scss2.SelectedValuePath = "ID"; |
||||||
|
scss2.DisplayMemberPath = "Name"; |
||||||
|
List<ComboBoxBinding> listsslb3 = new List<ComboBoxBinding>(); |
||||||
|
listsslb3 = (from tbsslx in myModel.SYS_SSLXB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbsslx.ID, |
||||||
|
Name = tbsslx.SSLX, |
||||||
|
}).ToList(); |
||||||
|
scss3.ItemsSource = listsslb3; |
||||||
|
scss3.SelectedValuePath = "ID"; |
||||||
|
scss3.DisplayMemberPath = "Name"; |
||||||
|
} |
||||||
|
|
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
int? intscss1; |
||||||
|
int? intscss2; |
||||||
|
int? intscss3; |
||||||
|
if (ysxm.Text==string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写医生姓名"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (ysgh.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写医生姓名"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (yszc.SelectedValue == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择职称"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (scss1.SelectedValue == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择手擅长手术类型"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (scss1.SelectedValue == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择手擅长手术类型"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (scss1.SelectedValue == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择手擅长手术类型"); |
||||||
|
return; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
intscss1 = Convert.ToInt32(scss1.SelectedValue); |
||||||
|
} |
||||||
|
if (scss2.SelectedValue == null) |
||||||
|
{ |
||||||
|
intscss2 = null; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
intscss2 = Convert.ToInt32(scss2.SelectedValue); |
||||||
|
} |
||||||
|
if (scss3.SelectedValue == null) |
||||||
|
{ |
||||||
|
intscss3 = null; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
intscss3 = Convert.ToInt32(scss3.SelectedValue); |
||||||
|
} |
||||||
|
try |
||||||
|
{ |
||||||
|
var listmzys = (from ybmzys in myModel.SYS_MZYSB |
||||||
|
where ybmzys.YSBM == ysgh.Text && ybmzys.YSMC == ysxm.Text |
||||||
|
select new { ybmzys }).ToList(); |
||||||
|
if (listmzys.Count>0) |
||||||
|
{ |
||||||
|
MessageBox.Show("医生姓名和编码重复!"); |
||||||
|
return; |
||||||
|
} |
||||||
|
SYS_MZYSB mzys = new SYS_MZYSB(); |
||||||
|
mzys.SFQY = sfqy.SelectedValue.ToString() == "0" ? true : false; |
||||||
|
mzys.SCSS1 = intscss1; |
||||||
|
mzys.SCSS2 = intscss2; |
||||||
|
mzys.SCSS3 = intscss3; |
||||||
|
// mzys.SSSID = Convert.ToInt32(sss.SelectedValue); |
||||||
|
mzys.YSBM = ysgh.Text; |
||||||
|
mzys.YSMC = ysxm.Text; |
||||||
|
mzys.YSZCID = Convert.ToInt32(yszc.SelectedValue); |
||||||
|
myModel.SYS_MZYSB.Add(mzys); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("新增成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("新增失败"); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,91 @@ |
|||||||
|
<Window x:Class="SchedulingSystemClient.InsertWindow.XZRJSSWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
Title="新增日间手术" Height="auto" Width="600" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen" |
||||||
|
WindowStyle="None"> |
||||||
|
<Window.Resources> |
||||||
|
<!--下拉框--> |
||||||
|
<ControlTemplate x:Key="CusComboBox" TargetType="{x:Type ComboBox}" > |
||||||
|
<Border BorderThickness="2" BorderBrush="#E4E4E4"> |
||||||
|
<Grid> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="9*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<!--文本框--> |
||||||
|
<TextBox x:Name="myTxt" Grid.Column="0" |
||||||
|
Text="{TemplateBinding Text}" |
||||||
|
Background="White" |
||||||
|
BorderThickness="0" |
||||||
|
VerticalContentAlignment="Center" |
||||||
|
HorizontalContentAlignment="Center" |
||||||
|
FontSize="18" |
||||||
|
Foreground="Black"/> |
||||||
|
<!--下拉按钮--> |
||||||
|
<ToggleButton Grid.Column="1" Content="∨" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
||||||
|
ClickMode="Press" Background="White" BorderThickness="0"/> |
||||||
|
<Popup Name="MyPopup" |
||||||
|
IsOpen="{TemplateBinding IsDropDownOpen}" |
||||||
|
Placement="Bottom"> |
||||||
|
<Border MinWidth="{TemplateBinding ActualWidth}" |
||||||
|
MaxHeight="{TemplateBinding MaxDropDownHeight}"> |
||||||
|
<ScrollViewer MaxHeight="{TemplateBinding MaxDropDownHeight}" |
||||||
|
HorizontalScrollBarVisibility="Auto" |
||||||
|
VerticalScrollBarVisibility="Auto"> |
||||||
|
<StackPanel Background="White" |
||||||
|
IsItemsHost="True"/> |
||||||
|
</ScrollViewer> |
||||||
|
</Border> |
||||||
|
</Popup> |
||||||
|
</Grid> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Window.Resources> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="15*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid Grid.Row="1"> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.2*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.2*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.2*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="2*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.8*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" FontSize="16" HorizontalAlignment="Right" VerticalAlignment="Center">科室</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" FontSize="16" HorizontalAlignment="Right" VerticalAlignment="Center">主刀医生</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" FontSize="16" HorizontalAlignment="Right" VerticalAlignment="Center">手术名称</Label> |
||||||
|
<Label Grid.Row="4" Grid.Column="1" FontSize="16" HorizontalAlignment="Right" VerticalAlignment="Center">患者姓名</Label> |
||||||
|
<Label Grid.Row="5" Grid.Column="1" FontSize="16" HorizontalAlignment="Right" VerticalAlignment="Center">住院号</Label> |
||||||
|
<Label Grid.Row="6" Grid.Column="1" FontSize="16" HorizontalAlignment="Right" VerticalAlignment="Center">诊疗卡号</Label> |
||||||
|
<Label Grid.Row="7" Grid.Column="1" FontSize="16" HorizontalAlignment="Right" VerticalAlignment="Center">术前诊断</Label> |
||||||
|
<ComboBox x:Name="KS" Grid.Row="1" Grid.Column="2" Width="280" Height="40" HorizontalAlignment="Center" VerticalContentAlignment="Center" Template="{StaticResource CusComboBox}" FontSize="18" ></ComboBox> |
||||||
|
<ComboBox x:Name="YS" Grid.Row="2" Grid.Column="2" Width="280" Height="40" HorizontalAlignment="Center" VerticalContentAlignment="Center" Template="{StaticResource CusComboBox}" FontSize="18"></ComboBox> |
||||||
|
<ComboBox x:Name="SSMC" Grid.Row="3" Grid.Column="2" Width="280" Height="40" HorizontalAlignment="Center" VerticalContentAlignment="Center" Template="{StaticResource CusComboBox}" FontSize="18"></ComboBox> |
||||||
|
<TextBox x:Name="HZXM" Grid.Row="4" Grid.Column="2" Width="280" Height="40" HorizontalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="ZYH" Grid.Row="5" Grid.Column="2" Width="280" Height="40" HorizontalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="ZLKH" Grid.Row="6" Grid.Column="2" Width="280" Height="40" HorizontalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="SQZD" Grid.Row="7" Grid.Column="2" Width="280" Height="40" HorizontalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="8" Grid.Column="1" Grid.ColumnSpan="2" FontSize="16" Width="70" Height="35" Margin="360,0,0,0" Click="btn_bc_Click" Background="#5AB856" Foreground="White" BorderBrush="#5AB856">提 交</Button> |
||||||
|
<Button x:Name="btn_qx" Grid.Row="8" Grid.Column="3" FontSize="16" Width="70" Height="35" Margin="-40,0,0,0" Click="btn_qx_Click" Foreground="White" Background="#AEAEAE" BorderBrush="#AEAEAE">取 消</Button> |
||||||
|
</Grid> |
||||||
|
<Border Grid.Row="0" BorderThickness="0,0,0,2" BorderBrush="#E0E0E0" Padding="0"> |
||||||
|
<DockPanel LastChildFill="False" Background="#F5F5F5" > |
||||||
|
<Label DockPanel.Dock="Left" HorizontalAlignment="Center" VerticalContentAlignment="Center" Margin="10,0,0,0" FontSize="20" Foreground="#4A4A4A" >申请日间手术</Label> |
||||||
|
</DockPanel> |
||||||
|
</Border> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,441 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using SchedulingSystemClient.EntityClass; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.InsertWindow |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZRJSSWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZRJSSWindow : Window |
||||||
|
{ |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
public XZRJSSWindow(SYS_YHB yh) |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
user = yh; |
||||||
|
} |
||||||
|
SYS_YHB user = new SYS_YHB(); |
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
List<ComboBoxBinding> listks = new List<ComboBoxBinding>(); |
||||||
|
List<ComboBoxBinding> listys = new List<ComboBoxBinding>(); |
||||||
|
List<ComboBoxBinding> listssmc = new List<ComboBoxBinding>(); |
||||||
|
listks = (from tbsss in myModel.SYS_KSB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbsss.ID, |
||||||
|
Name = tbsss.KSMC, |
||||||
|
}).ToList(); |
||||||
|
listys = (from tbsss in myModel.SYS_SSYSB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbsss.ID, |
||||||
|
Name = tbsss.YSXM, |
||||||
|
}).ToList(); |
||||||
|
listssmc = (from tbsss in myModel.SYS_SSXXB |
||||||
|
where tbsss.CJSS == true |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbsss.ID, |
||||||
|
Name = tbsss.SSMC, |
||||||
|
}).ToList(); |
||||||
|
List<string> shi = new List<string>(); |
||||||
|
for (int i = 0; i < 24; i++) |
||||||
|
{ |
||||||
|
if (i < 10) |
||||||
|
{ |
||||||
|
shi.Add("0" + i); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
shi.Add(i.ToString()); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
List<string> fen = new List<string>(); |
||||||
|
for (int i = 0; i < 60; i++) |
||||||
|
{ |
||||||
|
if (i < 10) |
||||||
|
{ |
||||||
|
fen.Add("0" + i); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
fen.Add(i.ToString()); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
List<string> miao = new List<string>(); |
||||||
|
for (int i = 0; i < 60; i++) |
||||||
|
{ |
||||||
|
if (i < 10) |
||||||
|
{ |
||||||
|
miao.Add("0" + i); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
miao.Add(i.ToString()); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
KS.ItemsSource = listks; |
||||||
|
KS.SelectedValuePath = "ID"; |
||||||
|
KS.DisplayMemberPath = "Name"; |
||||||
|
YS.ItemsSource = listys; |
||||||
|
YS.SelectedValuePath = "ID"; |
||||||
|
YS.DisplayMemberPath = "Name"; |
||||||
|
SSMC.ItemsSource = listssmc; |
||||||
|
SSMC.SelectedValuePath = "ID"; |
||||||
|
SSMC.DisplayMemberPath = "Name"; |
||||||
|
} |
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
DateTime kssj = DateTime.Now.AddDays(1 - DateTime.Now.Day).Date; |
||||||
|
// DateTime jssj = DateTime.Now.Date.AddSeconds(-1); |
||||||
|
if (KS.SelectedIndex < 0) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择科室"); |
||||||
|
return; |
||||||
|
} |
||||||
|
int ksid = Convert.ToInt32(KS.SelectedValue); |
||||||
|
var listsss = (from tbsssb in myModel.SYS_SSSBDB |
||||||
|
join tbsss in myModel.SYS_SSSB on tbsssb.SSSID equals tbsss.ID |
||||||
|
where tbsssb.KSID == ksid && tbsssb.SFKY == true && tbsss.SFRJ == true |
||||||
|
select new |
||||||
|
{ |
||||||
|
tbsssb |
||||||
|
}).ToList(); |
||||||
|
if (listsss.Count <= 0) |
||||||
|
{ |
||||||
|
MessageBox.Show("该科室没有可用的手术室!"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (YS.SelectedIndex < 0) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择医生"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (SSMC.SelectedIndex < 0) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择手术"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (HZXM.Text == null || HZXM.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写患者姓名"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (ZYH.Text == null || ZYH.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写住院号"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (ZLKH.Text == null || ZLKH.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写诊疗卡号"); |
||||||
|
return; |
||||||
|
} |
||||||
|
DateTime sj = DateTime.Now; |
||||||
|
string yue = sj.Month > 10 ? sj.Month.ToString() : "0" + sj.Month; |
||||||
|
string day = sj.Day > 10 ? sj.Day.ToString() : "0" + sj.Day; |
||||||
|
string shi = sj.Hour > 10 ? sj.Hour.ToString() : "0" + sj.Hour; |
||||||
|
string fen = sj.Minute > 10 ? sj.Minute.ToString() : "0" + sj.Minute; |
||||||
|
string miao = sj.Second > 10 ? sj.Second.ToString() : "0" + sj.Second; |
||||||
|
Bus_RJSSB rjss = new Bus_RJSSB(); |
||||||
|
rjss.SQDH = "SQD" + sj.Year + yue + day + shi + fen + miao + sj.Millisecond; |
||||||
|
rjss.HZXM = HZXM.Text; |
||||||
|
rjss.KSID = Convert.ToInt32(KS.SelectedValue); |
||||||
|
rjss.SFJZ = SSMC.SelectedIndex == 0 ? true : false; |
||||||
|
rjss.SQSJ = DateTime.Now; |
||||||
|
rjss.SQZD = SQZD.Text; |
||||||
|
rjss.SSID = Convert.ToInt32(SSMC.SelectedValue); |
||||||
|
rjss.ZDYS = Convert.ToInt32(YS.SelectedValue); |
||||||
|
rjss.ZLKH = ZLKH.Text; |
||||||
|
rjss.ZYH = ZYH.Text; |
||||||
|
rjss.PBZT = 1; |
||||||
|
rjss.SSRQ = DateTime.Now.Date; |
||||||
|
//分配手术室 |
||||||
|
var sss = (from tbsssb in myModel.SYS_SSSBDB |
||||||
|
join tbsss in myModel.SYS_SSSB on tbsssb.SSSID equals tbsss.ID |
||||||
|
where tbsssb.KSID == rjss.KSID && tbsssb.SFKY == true && tbsss.SFRJ ==true |
||||||
|
select new |
||||||
|
{ |
||||||
|
tbsssb |
||||||
|
}).ToList(); |
||||||
|
List<Cus_SSSSC> ssssc = new List<Cus_SSSSC>(); |
||||||
|
for (int s = 0; s < listsss.Count; s++) |
||||||
|
{ |
||||||
|
Cus_SSSSC sc = new Cus_SSSSC(); |
||||||
|
int sssid = Convert.ToInt32(listsss[s].tbsssb.SSSID); |
||||||
|
var listsssc = (from tbrjss in myModel.Bus_RJSSB |
||||||
|
where tbrjss.SSSID == sssid |
||||||
|
select new |
||||||
|
{ |
||||||
|
tbrjss |
||||||
|
}).ToList(); |
||||||
|
decimal sssc = Convert.ToDecimal(listsssc.Sum(a => a.tbrjss.SSZSC)); |
||||||
|
sc.SSSID = sssid; |
||||||
|
sc.SSSC = sssc; |
||||||
|
ssssc.Add(sc); |
||||||
|
} |
||||||
|
ssssc = ssssc.OrderBy(a => a.SSSC).ToList(); |
||||||
|
rjss.SSSID = ssssc[0].SSSID; |
||||||
|
|
||||||
|
|
||||||
|
////分配麻醉医生 |
||||||
|
//List<Cus_MZYSSC> listmzyssc = new List<Cus_MZYSSC>(); |
||||||
|
//var listrjssmz = ((from tbsspb in myModel.Bus_RJSSB |
||||||
|
// join tbmzys1 in myModel.SYS_MZYSB on tbsspb.MZYS1 equals tbmzys1.ID |
||||||
|
// join tbsssb in myModel.SYS_SSSB on tbsspb.SSSID equals tbsssb.ID |
||||||
|
// where tbsspb.SSKSSJ >= kssj && tbsspb.PBZT != 3 && tbsspb.SSSID == rjss.SSSID |
||||||
|
// select new Cus_MZYSSC |
||||||
|
// { |
||||||
|
// MZYSID = tbsspb.MZYS1, |
||||||
|
// MZYS = tbmzys1.YSMC, |
||||||
|
// SSSID = tbsspb.SSSID, |
||||||
|
// SSS = tbsssb.SSSMC, |
||||||
|
// SSSC = tbsspb.SSSC, |
||||||
|
// }).Concat(from tbsspb in myModel.Bus_RJSSB |
||||||
|
// join tbmzys2 in myModel.SYS_MZYSB on tbsspb.MZYS2 equals tbmzys2.ID |
||||||
|
// join tbsssb in myModel.SYS_SSSB on tbsspb.SSSID equals tbsssb.ID |
||||||
|
// where tbsspb.SSKSSJ >= kssj && tbsspb.PBZT != 3 && tbsspb.SSSID == rjss.SSSID |
||||||
|
// select new Cus_MZYSSC |
||||||
|
// { |
||||||
|
// MZYSID = tbsspb.MZYS2, |
||||||
|
// MZYS = tbmzys2.YSMC, |
||||||
|
// SSSID = tbsspb.SSSID, |
||||||
|
// SSS = tbsssb.SSSMC, |
||||||
|
// SSSC = tbsspb.SSSC, |
||||||
|
// })).ToList(); |
||||||
|
//var listmzys = (from tbmzysb in myModel.SYS_MZYSB |
||||||
|
// where tbmzysb.SSSID == rjss.SSSID |
||||||
|
// select new |
||||||
|
// { tbmzysb }).ToList(); |
||||||
|
//for (int i = 0; i < listmzys.Count; i++) |
||||||
|
//{ |
||||||
|
// int mzysid = Convert.ToInt32(listmzys[i].tbmzysb.ID); |
||||||
|
// var listys = listrjssmz.Where(a => a.MZYSID == mzysid).ToList(); |
||||||
|
// Cus_MZYSSC mzys = new Cus_MZYSSC(); |
||||||
|
// mzys.MZYSID = mzysid; |
||||||
|
// mzys.SSSC = listys.Sum(a => a.SSSC); |
||||||
|
// listmzyssc.Add(mzys); |
||||||
|
//} |
||||||
|
//listmzyssc = listmzyssc.OrderBy(a => a.SSSC).ToList(); |
||||||
|
//rjss.MZYS1 = listmzyssc[0].MZYSID; |
||||||
|
////分配护士 |
||||||
|
//List<Cus_MZYSSC> listhssc = new List<Cus_MZYSSC>(); |
||||||
|
//var listrjsshs = ((from tbsspb in myModel.Bus_RJSSB |
||||||
|
// join tbxhhs1 in myModel.SYS_HSB on tbsspb.XHHS1 equals tbxhhs1.ID |
||||||
|
// join tbsssb in myModel.SYS_SSSB on tbsspb.SSSID equals tbsssb.ID |
||||||
|
// where tbsspb.SSKSSJ >= kssj && tbsspb.PBZT != 3 && tbsspb.SSSID == rjss.SSSID |
||||||
|
// select new Cus_MZYSSC |
||||||
|
// { |
||||||
|
// MZYSID = tbsspb.XHHS1, |
||||||
|
// MZYS = tbxhhs1.HSMC, |
||||||
|
// SSSID = tbsspb.SSSID, |
||||||
|
// SSS = tbsssb.SSSMC, |
||||||
|
// SSSC = tbsspb.SSSC, |
||||||
|
// }).Concat(from tbsspb in myModel.Bus_RJSSB |
||||||
|
// join tbxhhs2 in myModel.SYS_MZYSB on tbsspb.XHHS2 equals tbxhhs2.ID |
||||||
|
// join tbsssb in myModel.SYS_SSSB on tbsspb.SSSID equals tbsssb.ID |
||||||
|
// where tbsspb.SSKSSJ >= kssj && tbsspb.PBZT != 3 && tbsspb.SSSID == rjss.SSSID |
||||||
|
// select new Cus_MZYSSC |
||||||
|
// { |
||||||
|
// MZYSID = tbsspb.XHHS2, |
||||||
|
// MZYS = tbxhhs2.YSMC, |
||||||
|
// SSSID = tbsspb.SSSID, |
||||||
|
// SSS = tbsssb.SSSMC, |
||||||
|
// SSSC = tbsspb.SSSC, |
||||||
|
// }).Concat(from tbsspb in myModel.Bus_RJSSB |
||||||
|
// join tbxshs1 in myModel.SYS_MZYSB on tbsspb.XSHS1 equals tbxshs1.ID |
||||||
|
// join tbsssb in myModel.SYS_SSSB on tbsspb.SSSID equals tbsssb.ID |
||||||
|
// where tbsspb.SSKSSJ >= kssj && tbsspb.PBZT != 3 && tbsspb.SSSID == rjss.SSSID |
||||||
|
// select new Cus_MZYSSC |
||||||
|
// { |
||||||
|
// MZYSID = tbsspb.XSHS1, |
||||||
|
// MZYS = tbxshs1.YSMC, |
||||||
|
// SSSID = tbsspb.SSSID, |
||||||
|
// SSS = tbsssb.SSSMC, |
||||||
|
// SSSC = tbsspb.SSSC, |
||||||
|
// }).Concat(from tbsspb in myModel.Bus_RJSSB |
||||||
|
// join tbxshs2 in myModel.SYS_MZYSB on tbsspb.XSHS1 equals tbxshs2.ID |
||||||
|
// join tbsssb in myModel.SYS_SSSB on tbsspb.SSSID equals tbsssb.ID |
||||||
|
// where tbsspb.SSKSSJ >= kssj && tbsspb.PBZT != 3 && tbsspb.SSSID == rjss.SSSID |
||||||
|
// select new Cus_MZYSSC |
||||||
|
// { |
||||||
|
// MZYSID = tbsspb.XSHS2, |
||||||
|
// MZYS = tbxshs2.YSMC, |
||||||
|
// SSSID = tbsspb.SSSID, |
||||||
|
// SSS = tbsssb.SSSMC, |
||||||
|
// SSSC = tbsspb.SSSC, |
||||||
|
// })).ToList(); |
||||||
|
//var listxhhs = (from tbmzysb in myModel.SYS_HSB |
||||||
|
// where tbmzysb.SSSID == rjss.SSSID |
||||||
|
// select new |
||||||
|
// { tbmzysb }).ToList(); |
||||||
|
//for (int i = 0; i < listxhhs.Count; i++) |
||||||
|
//{ |
||||||
|
// int mzysid = Convert.ToInt32(listxhhs[i].tbmzysb.ID); |
||||||
|
// var listys = listrjsshs.Where(a => a.MZYSID == mzysid).ToList(); |
||||||
|
// Cus_MZYSSC mzys = new Cus_MZYSSC(); |
||||||
|
// mzys.MZYSID = mzysid; |
||||||
|
// mzys.SSSC = listys.Sum(a => a.SSSC); |
||||||
|
// listrjsshs.Add(mzys); |
||||||
|
//} |
||||||
|
//listrjsshs = listrjsshs.OrderBy(a => a.SSSC).ToList(); |
||||||
|
//rjss.XSHS1 = listrjsshs[0].MZYSID; |
||||||
|
//rjss.XHHS1 = listrjsshs[1].MZYSID; |
||||||
|
|
||||||
|
var listrjss = (from tbrjss in myModel.Bus_RJSSB |
||||||
|
where tbrjss.SSSID == rjss.SSSID && tbrjss.SSRQ == rjss.SSRQ && tbrjss.PBZT !=3 |
||||||
|
select new |
||||||
|
{ |
||||||
|
tbrjss |
||||||
|
}).ToList(); |
||||||
|
|
||||||
|
listrjss = listrjss.OrderBy(a => a.tbrjss.SSJSSJ).ToList(); |
||||||
|
if (listrjss.Count>0) |
||||||
|
{ |
||||||
|
rjss.SSKSSJ = listrjss[0].tbrjss.SSJSSJ; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
rjss.SSKSSJ = Convert.ToDateTime( DateTime.Now.AddHours(2).ToString("yyyy/MM/dd HH:00:00")); |
||||||
|
} |
||||||
|
int ssid = Convert.ToInt32(rjss.SSID); |
||||||
|
Cus_SSSQB ssxxb = (from tbssxxb in myModel.SYS_SSXXB |
||||||
|
join tbssdjb in myModel.SYS_SSDJB on tbssxxb.SSDJID equals tbssdjb.ID |
||||||
|
join tbqklxb in myModel.SYS_SSQKLXB on tbssxxb.SSQKLXID equals tbqklxb.ID |
||||||
|
join tbssscb in myModel.SYS_SSSCB on tbssxxb.SSSCID equals tbssscb.ID |
||||||
|
join tbqjscb in myModel.SYS_SSSCB on tbqklxb.QJSCID equals tbqjscb.ID |
||||||
|
where tbssxxb.ID == ssid |
||||||
|
select new Cus_SSSQB |
||||||
|
{ |
||||||
|
SSDJQZ = tbssdjb.QZ, |
||||||
|
QKLXQZ = tbqklxb.QZ, |
||||||
|
QJSC = tbqjscb.SSSC, |
||||||
|
SSSC = tbssscb.SSSC, |
||||||
|
SSLX = tbssxxb.SSLX, |
||||||
|
}).Single(); |
||||||
|
rjss.SSSC = ssxxb.SSSC; |
||||||
|
rjss.QJSC = ssxxb.QJSC; |
||||||
|
rjss.SSZSC = rjss.SSSC + rjss.QJSC; |
||||||
|
rjss.SSJSSJ = Convert.ToDateTime(rjss.SSKSSJ).AddHours((double)rjss.SSZSC); |
||||||
|
//int sssid = Convert.ToInt32(listsspb.tbsspbb.SSSID); |
||||||
|
//int ssxxid = Convert.ToInt32(listsspb.tbsspbb.SSID); |
||||||
|
|
||||||
|
int sslxid = Convert.ToInt32(ssxxb.SSLX); |
||||||
|
//int mzyszc = Convert.ToInt32(ssxxb.tbssxxb.MZYSZCID); |
||||||
|
//int hszcid = Convert.ToInt32(ssxxb.tbssxxb.HSZCID); |
||||||
|
//decimal sssc = Convert.ToInt32(listsspb.tbsspbb.SSZSC); |
||||||
|
DateTime ssrq = Convert.ToDateTime(rjss.SSRQ); |
||||||
|
DateTime sskssj = Convert.ToDateTime(rjss.SSKSSJ); |
||||||
|
DateTime ssjssj = Convert.ToDateTime(rjss.SSJSSJ); |
||||||
|
//分配麻醉医生 |
||||||
|
List<Cus_MZYSSC> listmzyssc = new List<Cus_MZYSSC>(); |
||||||
|
List<Cus_MZYSSC> listhssc = new List<Cus_MZYSSC>(); |
||||||
|
//查询出所有麻醉医生 |
||||||
|
var listmzys = (from tbmzysb in myModel.SYS_MZYSB |
||||||
|
select new { tbmzysb }).ToList(); |
||||||
|
//查询出本月的麻醉医生排班 |
||||||
|
var listdypb = (from tbmzyspb in myModel.Bus_MZYSPBB |
||||||
|
where tbmzyspb.SSKSSJ >= kssj |
||||||
|
select new { tbmzyspb }).ToList(); |
||||||
|
//查询出手术当天以排班的麻醉医生 |
||||||
|
var listdtpb = listdypb.Where(a => a.tbmzyspb.SSRQ == ssrq).ToList(); |
||||||
|
//移除当前时间有排班的麻醉医生 |
||||||
|
for (int i = 0; i < listdtpb.Count; i++) |
||||||
|
{ |
||||||
|
DateTime pbkssj = Convert.ToDateTime(listdtpb[i].tbmzyspb.SSKSSJ); |
||||||
|
DateTime pbjssj = Convert.ToDateTime(listdtpb[i].tbmzyspb.SSKSSJ); |
||||||
|
if (pbjssj < sskssj || pbkssj > ssjssj) |
||||||
|
{ |
||||||
|
int id = Convert.ToInt32(listdtpb[i].tbmzyspb.MZYSID); |
||||||
|
listmzys.RemoveAll(a => a.tbmzysb.ID == id); |
||||||
|
} |
||||||
|
} |
||||||
|
var listsclx = listmzys.Where(a => a.tbmzysb.SCSS1 == sslxid || a.tbmzysb.SCSS2 == sslxid || a.tbmzysb.SCSS3 == sslxid).ToList(); |
||||||
|
if (listsclx.Count > 0) |
||||||
|
{ |
||||||
|
for (int i = 0; i < listsclx.Count; i++) |
||||||
|
{ |
||||||
|
Cus_MZYSSC mzsc = new Cus_MZYSSC(); |
||||||
|
int ysid = listsclx[i].tbmzysb.ID; |
||||||
|
mzsc.MZYSID = ysid; |
||||||
|
mzsc.SSSC = listdypb.Where(a => a.tbmzyspb.MZYSID == ysid).Sum(a => a.tbmzyspb.SSSC); |
||||||
|
listmzyssc.Add(mzsc); |
||||||
|
} |
||||||
|
listmzyssc.OrderBy(a => a.SSSC); |
||||||
|
rjss.MZYS1 = listmzyssc[0].MZYSID; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
//没有擅长类型的麻醉医生 |
||||||
|
for (int i = 0; i < listmzys.Count; i++) |
||||||
|
{ |
||||||
|
Cus_MZYSSC mzsc = new Cus_MZYSSC(); |
||||||
|
int ysid = listmzys[i].tbmzysb.ID; |
||||||
|
mzsc.MZYSID = ysid; |
||||||
|
mzsc.SSSC = listdypb.Where(a => a.tbmzyspb.MZYSID == ysid).Sum(a => a.tbmzyspb.SSSC); |
||||||
|
listmzyssc.Add(mzsc); |
||||||
|
} |
||||||
|
listmzyssc.OrderBy(a => a.SSSC); |
||||||
|
rjss.MZYS1 = listmzyssc[0].MZYSID; |
||||||
|
} |
||||||
|
//分配护士 |
||||||
|
//查询手术室所有护士 |
||||||
|
var lisths = (from tbhsb in myModel.SYS_HSB |
||||||
|
where tbhsb.SSSID == rjss.SSSID |
||||||
|
select new { tbhsb }).ToList(); |
||||||
|
//查询出本月的护士排班 |
||||||
|
var lisstbyhspb = (from tbhspbb in myModel.Bus_HSPBB |
||||||
|
where tbhspbb.SSKSSJ >= kssj |
||||||
|
select new { tbhspbb }).ToList(); |
||||||
|
for (int i = 0; i < lisths.Count; i++) |
||||||
|
{ |
||||||
|
Cus_MZYSSC hssc = new Cus_MZYSSC(); |
||||||
|
int ysid = lisths[i].tbhsb.ID; |
||||||
|
hssc.MZYSID = ysid; |
||||||
|
hssc.SSSC = lisstbyhspb.Where(a => a.tbhspbb.HSID == ysid).Sum(a => a.tbhspbb.SSSC); |
||||||
|
listhssc.Add(hssc); |
||||||
|
} |
||||||
|
listhssc.OrderBy(a => a.SSSC); |
||||||
|
rjss.XSHS1 = listhssc[0].MZYSID; |
||||||
|
rjss.XHHS1 = listhssc[1].MZYSID; |
||||||
|
|
||||||
|
myModel.Bus_RJSSB.Add(rjss); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("申请成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception ex) |
||||||
|
{ |
||||||
|
MessageBox.Show("申请失败" + ex.ToString()); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
private void btn_qx_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
private void PBFS_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e) |
||||||
|
{ |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,32 @@ |
|||||||
|
<Window x:Class="SchedulingSystemClient.InsertWindow.XZRYWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystemClient.InsertWindow" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增人员" Height="450" Width="800" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen"> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">姓名:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">工号:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">角色:</Label> |
||||||
|
<TextBox x:Name="xm" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="gh" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<ComboBox x:Name="js" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></ComboBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,85 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.InsertWindow |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZRYWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZRYWindow : Window |
||||||
|
{ |
||||||
|
public XZRYWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
if (xm.Text==null || xm.Text ==string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写姓名"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (gh.Text == null || gh.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写工号"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (js.SelectedValue == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择角色"); |
||||||
|
return; |
||||||
|
} |
||||||
|
var listyh = (from tbyh in myModel.SYS_YHB where tbyh.GH == gh.Text select new { tbyh }).ToList(); |
||||||
|
if (listyh.Count>0) |
||||||
|
{ |
||||||
|
MessageBox.Show("工号不能重复"); |
||||||
|
return; |
||||||
|
} |
||||||
|
SYS_YHB yh = new SYS_YHB(); |
||||||
|
yh.GH = gh.Text; |
||||||
|
yh.YHM = xm.Text; |
||||||
|
yh.MM = "123"; |
||||||
|
yh.JSID =Convert.ToInt32(js.SelectedValue); |
||||||
|
try |
||||||
|
{ |
||||||
|
myModel.SYS_YHB.Add(yh); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("新增成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("新增失败"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
List<ComboBoxBinding> listjs = new List<ComboBoxBinding>(); |
||||||
|
listjs = (from tbjs in myModel.SYS_JSB |
||||||
|
where tbjs.SFQY ==true |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbjs.ID, |
||||||
|
Name = tbjs.JSMC, |
||||||
|
}).ToList(); |
||||||
|
|
||||||
|
js.ItemsSource = listjs; |
||||||
|
js.SelectedValuePath = "ID"; |
||||||
|
js.DisplayMemberPath = "Name"; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,39 @@ |
|||||||
|
<Window x:Class="SchedulingSystemClient.InsertWindow.XZSBWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
Title="XZSBWindow" Height="550" Width="700" |
||||||
|
Loaded="Window_Loaded"> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.3*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.8*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">设备编码:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">设备名称:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">设备类型:</Label> |
||||||
|
<Label Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">设备等级:</Label> |
||||||
|
<Label Grid.Row="5" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">手术室:</Label> |
||||||
|
<Label Grid.Row="6" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">设备价格:</Label> |
||||||
|
|
||||||
|
<TextBox x:Name="sbbm" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" VerticalContentAlignment="Center"></TextBox> |
||||||
|
<TextBox x:Name="sbmc" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" VerticalContentAlignment="Center"></TextBox> |
||||||
|
<ComboBox x:Name="sblx" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" VerticalContentAlignment="Center"></ComboBox> |
||||||
|
<ComboBox x:Name="sbdj" Grid.Row="4" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" VerticalContentAlignment="Center"></ComboBox> |
||||||
|
<ComboBox x:Name="sss" Grid.Row="5" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" VerticalContentAlignment="Center"></ComboBox> |
||||||
|
<TextBox x:Name="sbjg" Grid.Row="6" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" VerticalContentAlignment="Center"></TextBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,120 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Windows; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.InsertWindow |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZSBWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZSBWindow : Window |
||||||
|
{ |
||||||
|
public XZSBWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
List<ComboBoxBinding> listsblx = new List<ComboBoxBinding>(); |
||||||
|
listsblx = (from tbsblxb in myModel.SYS_SBLXB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbsblxb.ID, |
||||||
|
Name = tbsblxb.Name, |
||||||
|
}).ToList(); |
||||||
|
sblx.ItemsSource = listsblx; |
||||||
|
sblx.SelectedValuePath = "ID"; |
||||||
|
sblx.DisplayMemberPath = "Name"; |
||||||
|
List<ComboBoxBinding> listsss = new List<ComboBoxBinding>(); |
||||||
|
listsss = (from tbsssb in myModel.SYS_SSSB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbsssb.ID, |
||||||
|
Name = tbsssb.SSSMC, |
||||||
|
}).ToList(); |
||||||
|
sss.ItemsSource = listsss; |
||||||
|
sss.SelectedValuePath = "ID"; |
||||||
|
sss.DisplayMemberPath = "Name"; |
||||||
|
List<ComboBoxBinding> listsbdj = new List<ComboBoxBinding>(); |
||||||
|
listsbdj = (from tbsbdj in myModel.SYS_SBDJB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbsbdj.ID, |
||||||
|
Name = tbsbdj.Name, |
||||||
|
}).ToList(); |
||||||
|
sbdj.ItemsSource = listsbdj; |
||||||
|
sbdj.SelectedValuePath = "ID"; |
||||||
|
sbdj.DisplayMemberPath = "Name"; |
||||||
|
} |
||||||
|
|
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
if (sbbm.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写设备编码"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (sbmc.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写设备名称"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (sss.SelectedValue == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择手术室"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (sblx.SelectedValue == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择设备类型"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (sbdj.SelectedValue == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择设备等级"); |
||||||
|
return; |
||||||
|
} |
||||||
|
decimal jg; |
||||||
|
try |
||||||
|
{ |
||||||
|
if (sbjg.Text!=string.Empty) |
||||||
|
{ |
||||||
|
jg = Convert.ToDecimal(sbjg.Text); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
jg = 0; |
||||||
|
} |
||||||
|
} |
||||||
|
catch (Exception ) |
||||||
|
{ |
||||||
|
MessageBox.Show("设备价格格式不正确"); |
||||||
|
return; |
||||||
|
} |
||||||
|
int sssid = Convert.ToInt32(sss.SelectedValue); |
||||||
|
int sblxid = Convert.ToInt32(sblx.SelectedValue); |
||||||
|
int sbjdid = Convert.ToInt32(sbdj.SelectedValue); |
||||||
|
Bus_SBB sbb = new Bus_SBB(); |
||||||
|
sbb.SBBM = sbbm.Text.Trim(); |
||||||
|
sbb.SBDJ = sbjdid; |
||||||
|
sbb.SBJG = jg; |
||||||
|
sbb.SBLX = sblxid; |
||||||
|
sbb.SBMC = sbmc.Text.Trim(); |
||||||
|
sbb.SSSID = sssid; |
||||||
|
try |
||||||
|
{ |
||||||
|
myModel.Bus_SBB.Add(sbb); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("新增成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception ex) |
||||||
|
{ |
||||||
|
MessageBox.Show(ex.ToString()); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,33 @@ |
|||||||
|
<Window x:Class="SchedulingSystem.XZSSLXWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystem" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增手术类型" Height="450" Width="800" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen"> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">手术类型:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">类型编码:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">是否启用:</Label> |
||||||
|
<TextBox x:Name="sslx" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="lxbm" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<ComboBox x:Name="sfqy" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,71 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using SchedulingSystemClient; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystem |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZSSLXWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZSSLXWindow : Window |
||||||
|
{ |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
public XZSSLXWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
|
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
if (sslx.Text == null || sslx.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写手术类型"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (lxbm.Text == null || lxbm.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写类型编码"); |
||||||
|
return; |
||||||
|
} |
||||||
|
|
||||||
|
SYS_SSDJB sslxb = new SYS_SSDJB(); |
||||||
|
sslxb.SSDJ = sslx.Text; |
||||||
|
sslxb.DJMS = lxbm.Text; |
||||||
|
//sslxb.SFQY = sfqy.SelectedValue.ToString() == "0" ? true : false; |
||||||
|
try |
||||||
|
{ |
||||||
|
myModel.SYS_SSDJB.Add(sslxb); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("新增成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("新增失败"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
sfqy.SelectedIndex = 0; |
||||||
|
List<ComboBoxBinding> listsfqy = new List<ComboBoxBinding>(); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 0, Name = "是" }); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 1, Name = "否" }); |
||||||
|
sfqy.ItemsSource = listsfqy; |
||||||
|
sfqy.SelectedValuePath = "ID"; |
||||||
|
sfqy.DisplayMemberPath = "Name"; |
||||||
|
sfqy.SelectedIndex = 0; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,35 @@ |
|||||||
|
<Window x:Class="SchedulingSystem.XZSSQJDWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystem" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增手术清洁度" Height="450" Width="800" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen"> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">手术清洁度:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">清洁时间:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">是否启用:</Label> |
||||||
|
<TextBox x:Name="ssqjd" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<!--<TextBox x:Name="qjsj" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox>--> |
||||||
|
<ComboBox x:Name="qjsj" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20" > |
||||||
|
</ComboBox> |
||||||
|
<ComboBox x:Name="sfqy" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,82 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using SchedulingSystemClient; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystem |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZSSQJDWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZSSQJDWindow : Window |
||||||
|
{ |
||||||
|
public XZSSQJDWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
int sj = 0; |
||||||
|
if (ssqjd.Text == null || ssqjd.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写手术清洁度"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (qjsj.SelectedValue == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请选择清洁时间"); |
||||||
|
return; |
||||||
|
} |
||||||
|
|
||||||
|
SYS_SSQKLXB ssqjdb = new SYS_SSQKLXB(); |
||||||
|
ssqjdb.QKLX = ssqjd.Text; |
||||||
|
ssqjdb.QJSCID = Convert.ToInt32(qjsj.SelectedValue); |
||||||
|
//ssqjdb. = Convert.ToDecimal(qjsj.Text.Replace("小时", "")); |
||||||
|
//ssqjdb.sfq = sfqy.SelectedValue.ToString() == "0"; |
||||||
|
try |
||||||
|
{ |
||||||
|
myModel.SYS_SSQKLXB.Add(ssqjdb); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("新增成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("新增失败"); |
||||||
|
} |
||||||
|
} |
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
sfqy.SelectedIndex = 0; |
||||||
|
List<ComboBoxBinding> listsfqy = new List<ComboBoxBinding>(); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 0, Name = "是" }); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 1, Name = "否" }); |
||||||
|
sfqy.ItemsSource = listsfqy; |
||||||
|
sfqy.SelectedValuePath = "ID"; |
||||||
|
sfqy.DisplayMemberPath = "Name"; |
||||||
|
sfqy.SelectedIndex = 0; |
||||||
|
List<ComboBoxBinding> listqjsc = new List<ComboBoxBinding>(); |
||||||
|
listqjsc.Add(new ComboBoxBinding() { ID = 0, Name = "0.5小时" }); |
||||||
|
listqjsc.Add(new ComboBoxBinding() { ID = 1, Name = "1小时" }); |
||||||
|
listqjsc.Add(new ComboBoxBinding() { ID = 2, Name = "1.5小时" }); |
||||||
|
listqjsc.Add(new ComboBoxBinding() { ID = 3, Name = "2小时" }); |
||||||
|
qjsj.ItemsSource = listqjsc; |
||||||
|
qjsj.SelectedValuePath = "ID"; |
||||||
|
qjsj.DisplayMemberPath = "Name"; |
||||||
|
qjsj.SelectedIndex = 0; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,37 @@ |
|||||||
|
<Window x:Class="SchedulingSystem.XZSSSWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystem" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增手术室" Height="450" Width="800" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen"> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">手术室名称:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">手术室编码:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">日间手术室:</Label> |
||||||
|
<Label Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">是否启用:</Label> |
||||||
|
<TextBox x:Name="sssmc" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="sssbm" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<ComboBox x:Name="rjsss" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox> |
||||||
|
<ComboBox x:Name="sfqy" Grid.Row="4" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,97 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using SchedulingSystemClient; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystem |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZSSSWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZSSSWindow : Window |
||||||
|
{ |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
public XZSSSWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
if (sssmc.Text==null||sssmc.Text==string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写手术室名称"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (sssbm.Text == null || sssbm.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写手术编码"); |
||||||
|
return; |
||||||
|
} |
||||||
|
//List<Cus_SssLb> listsss = (from tbsss in myModel.SYS_SSSB |
||||||
|
// select new Cus_SssLb |
||||||
|
// { |
||||||
|
// SSSBM = tbsss.SSSBM, |
||||||
|
// SSSMC = tbsss.SSSMC, |
||||||
|
// }).ToList(); |
||||||
|
|
||||||
|
//if (listsss.Where(a=>a.SSSMC == sssmc.Text).Count()>0) |
||||||
|
//{ |
||||||
|
// MessageBox.Show("该手术室名称已存在"); |
||||||
|
// return; |
||||||
|
//} |
||||||
|
//if (listsss.Where(a => a.SSSBM == sssbm.Text).Count() > 0) |
||||||
|
//{ |
||||||
|
// MessageBox.Show("该手术室名称已存在"); |
||||||
|
// return; |
||||||
|
//} |
||||||
|
SYS_SSSB sssb = new SYS_SSSB(); |
||||||
|
sssb.SSSMC = sssmc.Text; |
||||||
|
sssb.SSSBM = sssbm.Text; |
||||||
|
sssb.SFKQ = sfqy.SelectedValue.ToString() == "0" ? true : false; |
||||||
|
try |
||||||
|
{ |
||||||
|
myModel.SYS_SSSB.Add(sssb); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("新增成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("新增失败"); |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
sfqy.SelectedIndex = 0; |
||||||
|
List<ComboBoxBinding> listsfqy = new List<ComboBoxBinding>(); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 0, Name = "是" }); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 1, Name = "否" }); |
||||||
|
List<ComboBoxBinding> listrjsss = new List<ComboBoxBinding>(); |
||||||
|
listrjsss.Add(new ComboBoxBinding() { ID = 0, Name = "是" }); |
||||||
|
listrjsss.Add(new ComboBoxBinding() { ID = 1, Name = "否" }); |
||||||
|
sfqy.ItemsSource = listsfqy; |
||||||
|
sfqy.SelectedValuePath = "ID"; |
||||||
|
sfqy.DisplayMemberPath = "Name"; |
||||||
|
sfqy.SelectedIndex = 0; |
||||||
|
rjsss.ItemsSource = listrjsss; |
||||||
|
rjsss.SelectedValuePath = "ID"; |
||||||
|
rjsss.DisplayMemberPath = "Name"; |
||||||
|
rjsss.SelectedIndex = 1; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,93 @@ |
|||||||
|
<Window x:Class="SchedulingSystemClient.InsertWindow.XZSSXXWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystemClient.InsertWindow" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增手术休息" Height="600" Width="800" |
||||||
|
Loaded="Window_Loaded" |
||||||
|
WindowStartupLocation="CenterScreen"> |
||||||
|
<Window.Resources> |
||||||
|
<!--下拉框--> |
||||||
|
<ControlTemplate x:Key="CusComboBox" TargetType="{x:Type ComboBox}" > |
||||||
|
<Border BorderThickness="2" BorderBrush="#E4E4E4"> |
||||||
|
<Grid> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="9*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<!--文本框--> |
||||||
|
<TextBox x:Name="myTxt" Grid.Column="0" |
||||||
|
Text="{TemplateBinding Text}" |
||||||
|
Background="White" |
||||||
|
BorderThickness="0" |
||||||
|
VerticalContentAlignment="Center" |
||||||
|
HorizontalContentAlignment="Center" |
||||||
|
FontSize="18" |
||||||
|
Foreground="Black"/> |
||||||
|
<!--下拉按钮--> |
||||||
|
<ToggleButton Grid.Column="1" Content="∨" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
||||||
|
ClickMode="Press" Background="White" BorderThickness="0"/> |
||||||
|
<Popup Name="MyPopup" |
||||||
|
IsOpen="{TemplateBinding IsDropDownOpen}" |
||||||
|
Placement="Bottom"> |
||||||
|
<Border MinWidth="{TemplateBinding ActualWidth}" |
||||||
|
MaxHeight="{TemplateBinding MaxDropDownHeight}"> |
||||||
|
<ScrollViewer MaxHeight="{TemplateBinding MaxDropDownHeight}" |
||||||
|
HorizontalScrollBarVisibility="Auto" |
||||||
|
VerticalScrollBarVisibility="Auto"> |
||||||
|
<StackPanel Background="White" |
||||||
|
IsItemsHost="True"/> |
||||||
|
</ScrollViewer> |
||||||
|
</Border> |
||||||
|
</Popup> |
||||||
|
</Grid> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Window.Resources> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">手术编码:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">手术名称:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">拼音首字母:</Label> |
||||||
|
<Label Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">预计手术时长:</Label> |
||||||
|
<Label Grid.Row="5" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">手术级别:</Label> |
||||||
|
<Label Grid.Row="6" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">切口类型:</Label> |
||||||
|
<Label Grid.Row="7" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">手术类别:</Label> |
||||||
|
<Label Grid.Row="8" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">麻醉医生职称:</Label> |
||||||
|
<Label Grid.Row="9" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">护士职称:</Label> |
||||||
|
<Label Grid.Row="10" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">常用手术:</Label> |
||||||
|
<TextBox x:Name="ssbm" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="ssmc" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="pyszm" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" VerticalContentAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<ComboBox x:Name="yjsssc" Grid.Row="4" Grid.Column="2" Width="300" Height="40" HorizontalAlignment="Left" VerticalContentAlignment="Center" Template="{StaticResource CusComboBox}" FontSize="20"></ComboBox> |
||||||
|
<ComboBox x:Name="ssjb" Grid.Row="5" Grid.Column="2" Width="300" Height="40" HorizontalAlignment="Left" VerticalContentAlignment="Center" Template="{StaticResource CusComboBox}" FontSize="20"></ComboBox> |
||||||
|
<ComboBox x:Name="ssqjd" Grid.Row="6" Grid.Column="2" Width="300" Height="40" HorizontalAlignment="Left" VerticalContentAlignment="Center" Template="{StaticResource CusComboBox}" FontSize="20"></ComboBox> |
||||||
|
<ComboBox x:Name="sslb" Grid.Row="7" Grid.Column="2" Width="300" Height="40" HorizontalAlignment="Left" VerticalContentAlignment="Center" Template="{StaticResource CusComboBox}" FontSize="20"></ComboBox> |
||||||
|
<ComboBox x:Name="mzyszc" Grid.Row="8" Grid.Column="2" Width="300" Height="40" HorizontalAlignment="Left" VerticalContentAlignment="Center" Template="{StaticResource CusComboBox}" FontSize="20"></ComboBox> |
||||||
|
<ComboBox x:Name="xhhszc" Grid.Row="9" Grid.Column="2" Width="300" Height="40" HorizontalAlignment="Left" VerticalContentAlignment="Center" Template="{StaticResource CusComboBox}" FontSize="20"></ComboBox> |
||||||
|
<ComboBox x:Name="cyss" Grid.Row="10" Grid.Column="2" Width="300" Height="40" HorizontalAlignment="Left" VerticalContentAlignment="Center" Template="{StaticResource CusComboBox}" FontSize="20"></ComboBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="11" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,209 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Windows; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient.InsertWindow |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZSSXXWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZSSXXWindow : Window |
||||||
|
{ |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
public XZSSXXWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
List<ComboBoxBinding> listsssc = new List<ComboBoxBinding>(); |
||||||
|
List<ComboBoxBinding> listssjb = new List<ComboBoxBinding>(); |
||||||
|
List<ComboBoxBinding> listssqjd = new List<ComboBoxBinding>(); |
||||||
|
List<ComboBoxBinding> listmzys = new List<ComboBoxBinding>(); |
||||||
|
List<ComboBoxBinding> listxhhs = new List<ComboBoxBinding>(); |
||||||
|
List<ComboBoxBinding> listsslb = new List<ComboBoxBinding>(); |
||||||
|
List<ComboBoxBinding> listcyss = new List<ComboBoxBinding>(); |
||||||
|
|
||||||
|
|
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
listcyss.Add(new ComboBoxBinding() { ID = 0, Name = "是" }); |
||||||
|
listcyss.Add(new ComboBoxBinding() { ID = 1, Name = "否" }); |
||||||
|
listsssc = (from tbsssc in myModel.SYS_SSSCB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbsssc.ID, |
||||||
|
Name = tbsssc.NAME, |
||||||
|
}).ToList(); |
||||||
|
listssjb = (from tbssjb in myModel.SYS_SSDJB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbssjb.ID, |
||||||
|
Name = tbssjb.SSDJ, |
||||||
|
}).ToList(); |
||||||
|
listssqjd = (from tbssqjd in myModel.SYS_SSQKLXB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbssqjd.ID, |
||||||
|
Name = tbssqjd.QKLX, |
||||||
|
}).ToList(); |
||||||
|
listmzys = (from tbmzyszc in myModel.SYS_YSZCB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbmzyszc.ID, |
||||||
|
Name = tbmzyszc.Name, |
||||||
|
}).ToList(); |
||||||
|
listxhhs = (from tbxhhxzc in myModel.SYS_HSZCB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbxhhxzc.ID, |
||||||
|
Name = tbxhhxzc.Name, |
||||||
|
}).ToList(); |
||||||
|
listsslb = (from tbxxlb in myModel.SYS_SSLXB |
||||||
|
select new ComboBoxBinding |
||||||
|
{ |
||||||
|
ID = tbxxlb.ID, |
||||||
|
Name = tbxxlb.SSLX, |
||||||
|
}).ToList(); |
||||||
|
yjsssc.ItemsSource = listsssc; |
||||||
|
yjsssc.SelectedValuePath = "ID"; |
||||||
|
yjsssc.DisplayMemberPath = "Name"; |
||||||
|
ssjb.ItemsSource = listssjb; |
||||||
|
ssjb.SelectedValuePath = "ID"; |
||||||
|
ssjb.DisplayMemberPath = "Name"; |
||||||
|
ssqjd.ItemsSource = listssqjd; |
||||||
|
ssqjd.SelectedValuePath = "ID"; |
||||||
|
ssqjd.DisplayMemberPath = "Name"; |
||||||
|
mzyszc.ItemsSource = listmzys; |
||||||
|
mzyszc.SelectedValuePath = "ID"; |
||||||
|
mzyszc.DisplayMemberPath = "Name"; |
||||||
|
xhhszc.ItemsSource = listxhhs; |
||||||
|
xhhszc.SelectedValuePath = "ID"; |
||||||
|
xhhszc.DisplayMemberPath = "Name"; |
||||||
|
sslb.ItemsSource = listsslb; |
||||||
|
sslb.SelectedValuePath = "ID"; |
||||||
|
sslb.DisplayMemberPath = "Name"; |
||||||
|
cyss.ItemsSource = listcyss; |
||||||
|
cyss.SelectedValuePath = "ID"; |
||||||
|
cyss.DisplayMemberPath = "Name"; |
||||||
|
cyss.SelectedIndex = 0; |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary> |
||||||
|
/// 保存 |
||||||
|
/// </summary> |
||||||
|
/// <param name="sender"></param> |
||||||
|
/// <param name="e"></param> |
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
string strssbm = ssbm.Text; |
||||||
|
string strssmc = ssmc.Text; |
||||||
|
string strpyszm = pyszm.Text; |
||||||
|
int? intyjsssc; |
||||||
|
int? intssjb; |
||||||
|
int? intssqjd; |
||||||
|
int? intmzyszc; |
||||||
|
int? intxhhszc; |
||||||
|
int? intsslb; |
||||||
|
bool? sfcy; |
||||||
|
|
||||||
|
if (strssbm == string.Empty || strssbm == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写手术编码"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (strssmc == string.Empty || strssmc == null) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写手术名称"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (sslb.SelectedValue == null) |
||||||
|
{ |
||||||
|
intsslb = null; |
||||||
|
MessageBox.Show("请选择手术类别"); |
||||||
|
return; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
intsslb = Convert.ToInt32(sslb.SelectedValue); |
||||||
|
} |
||||||
|
if (yjsssc.SelectedValue == null) |
||||||
|
{ |
||||||
|
intyjsssc = null; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
intyjsssc = Convert.ToInt32(yjsssc.SelectedValue); |
||||||
|
} |
||||||
|
if (ssjb.SelectedValue == null) |
||||||
|
{ |
||||||
|
intssjb = null; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
intssjb = Convert.ToInt32(ssjb.SelectedValue); |
||||||
|
} |
||||||
|
if (ssqjd.SelectedValue == null) |
||||||
|
{ |
||||||
|
intssqjd = null; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
intssqjd = Convert.ToInt32(ssqjd.SelectedValue); |
||||||
|
} |
||||||
|
if (mzyszc.SelectedValue == null) |
||||||
|
{ |
||||||
|
intmzyszc = null; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
intmzyszc = Convert.ToInt32(mzyszc.SelectedValue); |
||||||
|
} |
||||||
|
if (xhhszc.SelectedValue == null) |
||||||
|
{ |
||||||
|
intxhhszc = null; |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
intxhhszc = Convert.ToInt32(xhhszc.SelectedValue); |
||||||
|
} |
||||||
|
|
||||||
|
sfcy = Convert.ToInt32(sslb.SelectedValue)==0?true:false; |
||||||
|
|
||||||
|
var listssxx = (from tbssxxb in myModel.SYS_SSXXB |
||||||
|
where tbssxxb.SSBM == strssbm && tbssxxb.SSMC == strssmc |
||||||
|
select new |
||||||
|
{ |
||||||
|
tbssxxb |
||||||
|
}).ToList(); |
||||||
|
if (listssxx.Count > 0) |
||||||
|
{ |
||||||
|
MessageBox.Show("手术编码和名称已存在"); |
||||||
|
return; |
||||||
|
} |
||||||
|
SYS_SSXXB ssxxb = new SYS_SSXXB(); |
||||||
|
ssxxb.SSBM = strssbm; |
||||||
|
ssxxb.SSMC = strssbm; |
||||||
|
ssxxb.PYSZM = strpyszm; |
||||||
|
ssxxb.SSSCID = intyjsssc; |
||||||
|
ssxxb.SSDJID = intssjb; |
||||||
|
ssxxb.SSQKLXID = intssqjd; |
||||||
|
ssxxb.MZYSZCID = intmzyszc; |
||||||
|
ssxxb.HSZCID = intxhhszc; |
||||||
|
ssxxb.SSLX = intsslb; |
||||||
|
ssxxb.CJSS = sfcy; |
||||||
|
ssxxb.IsICD = false; |
||||||
|
myModel.SYS_SSXXB.Add(ssxxb); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("保存成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception ex) |
||||||
|
{ |
||||||
|
MessageBox.Show(ex.ToString()); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,74 @@ |
|||||||
|
<Window x:Class="SchedulingSystem.XZYSVIPWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystem" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增医生VIP" Height="400" Width="800" WindowStartupLocation="CenterScreen" |
||||||
|
Loaded="Window_Loaded"> |
||||||
|
<Window.Resources> |
||||||
|
<!--下拉框--> |
||||||
|
<ControlTemplate x:Key="CusComboBox" TargetType="{x:Type ComboBox}" > |
||||||
|
<Border BorderThickness="2" BorderBrush="#E4E4E4"> |
||||||
|
<Grid> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="9*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<!--文本框--> |
||||||
|
<TextBox x:Name="myTxt" Grid.Column="0" |
||||||
|
Text="{TemplateBinding Text}" |
||||||
|
Background="White" |
||||||
|
BorderThickness="0" |
||||||
|
VerticalContentAlignment="Center" |
||||||
|
HorizontalContentAlignment="Center" |
||||||
|
FontSize="18" |
||||||
|
Foreground="Black"/> |
||||||
|
<!--下拉按钮--> |
||||||
|
<ToggleButton Grid.Column="1" Content="∨" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
||||||
|
ClickMode="Press" Background="White" BorderThickness="0" IsEnabled="{Binding ElementName= myTxt,Path=IsEnabled}"/> |
||||||
|
<Popup Name="MyPopup" |
||||||
|
IsOpen="{TemplateBinding IsDropDownOpen}" |
||||||
|
Placement="Bottom"> |
||||||
|
<Border MinWidth="{TemplateBinding ActualWidth}" |
||||||
|
MaxHeight="{TemplateBinding MaxDropDownHeight}"> |
||||||
|
<ScrollViewer MaxHeight="{TemplateBinding MaxDropDownHeight}" |
||||||
|
HorizontalScrollBarVisibility="Auto" |
||||||
|
VerticalScrollBarVisibility="Auto"> |
||||||
|
<StackPanel Background="White" |
||||||
|
IsItemsHost="True"/> |
||||||
|
</ScrollViewer> |
||||||
|
</Border> |
||||||
|
</Popup> |
||||||
|
</Grid> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Window.Resources> |
||||||
|
<Grid> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">医生姓名:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">医生编码:</Label> |
||||||
|
<!--<TextBox x:Name="ysxm" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="ysbm" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox>--> |
||||||
|
<ComboBox x:Name="ysxm" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="18" Background="White" Template="{StaticResource CusComboBox}"> |
||||||
|
</ComboBox> |
||||||
|
<ComboBox x:Name="ysbm" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="18" Background="White" Template="{StaticResource CusComboBox}"> |
||||||
|
</ComboBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,73 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using SchedulingSystemClient; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystem |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// YSVIPWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZYSVIPWindow : Window |
||||||
|
{ |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
public XZYSVIPWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
|
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
if (ysxm.Text == null || ysxm.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写患者名称"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (ysbm.Text == null || ysbm.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写诊疗卡号"); |
||||||
|
return; |
||||||
|
} |
||||||
|
|
||||||
|
SYS_YSVIPB ysvip = new SYS_YSVIPB(); |
||||||
|
ysvip.YSXM = ysxm.Text; |
||||||
|
ysvip.YSBM = ysbm.Text; |
||||||
|
try |
||||||
|
{ |
||||||
|
myModel.SYS_YSVIPB.Add(ysvip); |
||||||
|
myModel.SaveChanges(); |
||||||
|
MessageBox.Show("新增成功"); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
catch (Exception) |
||||||
|
{ |
||||||
|
MessageBox.Show("新增失败"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
//List<ComboBoxBinding> listysxm = new List<ComboBoxBinding>(); |
||||||
|
//listysxm = (from tbysb in myModel.SYS_YSB |
||||||
|
// select new ComboBoxBinding |
||||||
|
// { |
||||||
|
// ID = tbysb.ID, |
||||||
|
// Name = tbysb.YSXM, |
||||||
|
// }).ToList(); |
||||||
|
|
||||||
|
//ysxm.ItemsSource = listysxm; |
||||||
|
//ysxm.SelectedValuePath = "ID"; |
||||||
|
//ysxm.DisplayMemberPath = "Name"; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,36 @@ |
|||||||
|
<Window x:Class="SchedulingSystem.XZYSWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystem" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增医生" Height="450" Width="800" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen"> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">医生姓名:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">医生编码:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">医生职称:</Label> |
||||||
|
<Label Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">是否启用:</Label> |
||||||
|
<TextBox x:Name="ysmc" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="ysbm" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<ComboBox x:Name="yszc" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></ComboBox> |
||||||
|
<ComboBox x:Name="sfqy" Grid.Row="4" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,80 @@ |
|||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using SchedulingSystemClient; |
||||||
|
|
||||||
|
namespace SchedulingSystem |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZYSWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZYSWindow : Window |
||||||
|
{ |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
public XZYSWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
|
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
if (ysmc.Text == null || ysmc.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写医生姓名"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (ysbm.Text == null || ysbm.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请填写医生编码"); |
||||||
|
return; |
||||||
|
} |
||||||
|
//SYS_YSB ysb = new SYS_YSB(); |
||||||
|
//ysb.YSXM = ysmc.Text; |
||||||
|
//ysb.YSBM = ysbm.Text; |
||||||
|
//ysb.YSJB = Convert.ToInt32(yszc.SelectedValue); |
||||||
|
//ysb.SFQY = sfqy.SelectedValue.ToString() == "0" ? true : false; |
||||||
|
//try |
||||||
|
//{ |
||||||
|
// myModel.SYS_YSB.Add(ysb); |
||||||
|
// myModel.SaveChanges(); |
||||||
|
// MessageBox.Show("新增成功"); |
||||||
|
// this.Close(); |
||||||
|
//} |
||||||
|
//catch (Exception) |
||||||
|
//{ |
||||||
|
// MessageBox.Show("新增失败"); |
||||||
|
//} |
||||||
|
} |
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
//sfqy.SelectedIndex = 0; |
||||||
|
//List<ComboBoxBinding> listsfqy = new List<ComboBoxBinding>(); |
||||||
|
//listsfqy.Add(new ComboBoxBinding() { ID = 0, Name = "是" }); |
||||||
|
//listsfqy.Add(new ComboBoxBinding() { ID = 1, Name = "否" }); |
||||||
|
//sfqy.ItemsSource = listsfqy; |
||||||
|
//sfqy.SelectedValuePath = "ID"; |
||||||
|
//sfqy.DisplayMemberPath = "Name"; |
||||||
|
//sfqy.SelectedIndex = 0; |
||||||
|
//List<ComboBoxBinding> listyszc = new List<ComboBoxBinding>(); |
||||||
|
//listyszc = (from tbyszcb in myModel.SYS_YSZCB |
||||||
|
// select new ComboBoxBinding |
||||||
|
// { |
||||||
|
// ID = tbyszcb.ID, |
||||||
|
// Name = tbyszcb.YSZC, |
||||||
|
// }).ToList(); |
||||||
|
//yszc.ItemsSource = listyszc; |
||||||
|
//yszc.SelectedValuePath = "ID"; |
||||||
|
//yszc.DisplayMemberPath = "Name"; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,33 @@ |
|||||||
|
<Window x:Class="SchedulingSystem.XZYSZCWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
xmlns:local="clr-namespace:SchedulingSystem" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="新增医生职称" Height="450" Width="800" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen"> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Label Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">医生职称:</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">职称编码:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="20">是否启用:</Label> |
||||||
|
<TextBox x:Name="yszc" Grid.Row="1" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<TextBox x:Name="zcbm" Grid.Row="2" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"></TextBox> |
||||||
|
<ComboBox x:Name="sfqy" Grid.Row="3" Grid.Column="2" Height="40" Width="300" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="20"> |
||||||
|
</ComboBox> |
||||||
|
<Button x:Name="btn_bc" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" Width="100" Height="45" FontSize="20" Click="btn_bc_Click">保 存</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,73 @@ |
|||||||
|
using SchedulingSystem.EntityClass; |
||||||
|
using SchedulingSystemClient; |
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Linq; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
using System.Windows.Media.Imaging; |
||||||
|
using System.Windows.Shapes; |
||||||
|
|
||||||
|
namespace SchedulingSystem |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// XZYSZCWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class XZYSZCWindow : Window |
||||||
|
{ |
||||||
|
public XZYSZCWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
|
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
private void btn_bc_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
//if (yszc.Text == null || yszc.Text == string.Empty) |
||||||
|
//{ |
||||||
|
// MessageBox.Show("请填写医生职称"); |
||||||
|
// return; |
||||||
|
//} |
||||||
|
//if (zcbm.Text == null || zcbm.Text == string.Empty) |
||||||
|
//{ |
||||||
|
// MessageBox.Show("请填写职称编码"); |
||||||
|
// return; |
||||||
|
//} |
||||||
|
//SYS_YSZCB yszb = new SYS_YSZCB(); |
||||||
|
//yszb.YSZC = yszc.Text; |
||||||
|
//yszb.ZCBM = zcbm.Text; |
||||||
|
//yszb.SFQY = sfqy.SelectedValue.ToString() == "0" ? true : false; |
||||||
|
//try |
||||||
|
//{ |
||||||
|
// myModel.SYS_YSZCB.Add(yszb); |
||||||
|
// myModel.SaveChanges(); |
||||||
|
// MessageBox.Show("新增成功"); |
||||||
|
// this.Close(); |
||||||
|
//} |
||||||
|
//catch (Exception) |
||||||
|
//{ |
||||||
|
// MessageBox.Show("新增失败"); |
||||||
|
//} |
||||||
|
|
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
sfqy.SelectedIndex = 0; |
||||||
|
List<ComboBoxBinding> listsfqy = new List<ComboBoxBinding>(); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 0, Name = "是" }); |
||||||
|
listsfqy.Add(new ComboBoxBinding() { ID = 1, Name = "否" }); |
||||||
|
sfqy.ItemsSource = listsfqy; |
||||||
|
sfqy.SelectedValuePath = "ID"; |
||||||
|
sfqy.DisplayMemberPath = "Name"; |
||||||
|
sfqy.SelectedIndex = 0; |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,322 @@ |
|||||||
|
<UserControl x:Class="SchedulingSystemClient.JcxxWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
Loaded="UserControl_Loaded"> |
||||||
|
<UserControl.Resources> |
||||||
|
<ControlTemplate x:Key="ExampleButton" TargetType="{x:Type Button}"> |
||||||
|
<Border Background="White" BorderThickness="0" x:Name="Border" Padding="10" Margin="5,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center"> |
||||||
|
<ContentPresenter /> |
||||||
|
</Border> |
||||||
|
<ControlTemplate.Triggers> |
||||||
|
<Trigger Property="IsEnabled" Value="False"> |
||||||
|
<Setter TargetName="Border" Property="BorderThickness" Value="0,0,0,2"/> |
||||||
|
<Setter TargetName="Border" Property="BorderBrush" Value="#315DDA"/> |
||||||
|
<Setter TargetName="Border" Property="TextBlock.Foreground" Value="#315DDA"/> |
||||||
|
</Trigger> |
||||||
|
</ControlTemplate.Triggers> |
||||||
|
</ControlTemplate> |
||||||
|
<Style x:Key="header" TargetType="DataGridColumnHeader"> |
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter> |
||||||
|
<Setter Property="Foreground" Value="#484848"></Setter> |
||||||
|
<Setter Property="Background" Value="#E8E8E8"></Setter> |
||||||
|
<Setter Property="BorderBrush" Value="#DDDDDD"></Setter> |
||||||
|
<Setter Property="BorderThickness" Value="1"></Setter> |
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Center"></Setter> |
||||||
|
<Setter Property="VerticalContentAlignment" Value="Center"></Setter> |
||||||
|
<Setter Property="FontSize" Value="20"></Setter> |
||||||
|
<!--<Setter Property="Height" Value="40"></Setter>--> |
||||||
|
<Setter Property="Padding" Value="15,10"></Setter> |
||||||
|
</Style> |
||||||
|
<Style x:Key="cell" TargetType="TextBlock"> |
||||||
|
<Setter Property="HorizontalAlignment" Value="Center"></Setter> |
||||||
|
<Setter Property="Padding" Value="20,15"></Setter> |
||||||
|
<Setter Property="Foreground" Value="#484848"></Setter> |
||||||
|
<Setter Property="FontSize" Value="16"></Setter> |
||||||
|
</Style> |
||||||
|
<Style x:Key="row" TargetType= "{x:Type DataGridRow}"> |
||||||
|
<Setter Property="BorderBrush" Value="#ECEEF4"></Setter> |
||||||
|
<Style.Triggers> |
||||||
|
<!--单行颜色--> |
||||||
|
<Trigger Property= "ItemsControl.AlternationIndex" |
||||||
|
Value= "0" > |
||||||
|
<Setter Property= "Background" Value= "#FFFFFF" /> |
||||||
|
</Trigger> |
||||||
|
<!--双行颜色--> |
||||||
|
<Trigger Property= "ItemsControl.AlternationIndex" |
||||||
|
Value= "1" > |
||||||
|
<Setter Property= "Background" Value= "#FFFFFF" /> |
||||||
|
</Trigger> |
||||||
|
<!--鼠标移入行颜色--> |
||||||
|
<Trigger Property="IsMouseOver" Value="True"> |
||||||
|
<Setter Property="Background" Value="#EDF0FA"/> |
||||||
|
</Trigger> |
||||||
|
</Style.Triggers> |
||||||
|
</Style> |
||||||
|
<!--选中行颜色--> |
||||||
|
<Style x:Key="dgc" TargetType="DataGridCell"> |
||||||
|
<Setter Property="BorderBrush" Value="#ECEEF4"></Setter> |
||||||
|
<Style.Triggers> |
||||||
|
<Trigger Property="IsSelected" Value="True"> |
||||||
|
<Setter Property="Background" Value="#EDF0FA"/> |
||||||
|
<Setter Property="BorderBrush" Value="#0000"/> |
||||||
|
</Trigger> |
||||||
|
</Style.Triggers> |
||||||
|
</Style> |
||||||
|
<Style x:Key="Dgrid" TargetType="DataGrid"> |
||||||
|
<!--内容边框颜色--> |
||||||
|
<Setter Property="HorizontalGridLinesBrush" Value="#ECEEF4"></Setter> |
||||||
|
<Setter Property="VerticalGridLinesBrush" Value="#ECEEF4"></Setter> |
||||||
|
<!--获取或设置一个值,该值指示是否自动创建列--> |
||||||
|
<Setter Property="AutoGenerateColumns" Value="False"/> |
||||||
|
<!--获取或设置一个值,该值指示用户是否可使用鼠标调整列宽--> |
||||||
|
<Setter Property="CanUserResizeColumns" Value="False"/> |
||||||
|
<!--获取或设置一个值,该值指示用户能否通过用鼠标拖动列标题来更改列的显示顺序--> |
||||||
|
<Setter Property="CanUserReorderColumns" Value="False"/> |
||||||
|
<!--获取或设置一个值,该值指示用户是否可在 DataGrid 中添加新行--> |
||||||
|
<Setter Property="CanUserAddRows" Value="False"/> |
||||||
|
<!--获取或设置一个值,该值指示用户是否可从 DataGrid 中删除行--> |
||||||
|
<Setter Property="CanUserDeleteRows" Value="False"/> |
||||||
|
<Setter Property="IsReadOnly" Value="True"/> |
||||||
|
<!--列表前面空白列--> |
||||||
|
<Setter Property="RowHeaderWidth" Value="0"/> |
||||||
|
</Style> |
||||||
|
<!--下拉框--> |
||||||
|
<ControlTemplate x:Key="CusComboBox" TargetType="{x:Type ComboBox}" > |
||||||
|
<Border BorderThickness="2" BorderBrush="#E4E4E4"> |
||||||
|
<Grid> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="9*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<!--文本框--> |
||||||
|
<TextBox x:Name="myTxt" Grid.Column="0" |
||||||
|
Text="{TemplateBinding Text}" |
||||||
|
Background="White" |
||||||
|
BorderThickness="0" |
||||||
|
VerticalContentAlignment="Center" |
||||||
|
HorizontalContentAlignment="Center" |
||||||
|
FontSize="18" |
||||||
|
Foreground="Black"/> |
||||||
|
<!--下拉按钮--> |
||||||
|
<ToggleButton Grid.Column="1" Content="∨" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" |
||||||
|
ClickMode="Press" Background="White" BorderThickness="0"/> |
||||||
|
<Popup Name="MyPopup" |
||||||
|
IsOpen="{TemplateBinding IsDropDownOpen}" |
||||||
|
Placement="Bottom"> |
||||||
|
<Border MinWidth="{TemplateBinding ActualWidth}" |
||||||
|
MaxHeight="{TemplateBinding MaxDropDownHeight}"> |
||||||
|
<ScrollViewer MaxHeight="{TemplateBinding MaxDropDownHeight}" |
||||||
|
HorizontalScrollBarVisibility="Auto" |
||||||
|
VerticalScrollBarVisibility="Auto"> |
||||||
|
<StackPanel Background="White" |
||||||
|
IsItemsHost="True"/> |
||||||
|
</ScrollViewer> |
||||||
|
</Border> |
||||||
|
</Popup> |
||||||
|
</Grid> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
<!--占位符--> |
||||||
|
<Style x:Key="placeHolder" TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}"> |
||||||
|
<Setter Property="Template"> |
||||||
|
<Setter.Value> |
||||||
|
<ControlTemplate TargetType="{x:Type TextBox}"> |
||||||
|
<Grid> |
||||||
|
<TextBox Padding="0,0,0,0" VerticalContentAlignment="Center" Text="{Binding Path=Text, |
||||||
|
RelativeSource={RelativeSource TemplatedParent}, |
||||||
|
Mode=TwoWay, |
||||||
|
UpdateSourceTrigger=PropertyChanged}" |
||||||
|
x:Name="textSource" |
||||||
|
Background="Transparent" |
||||||
|
Panel.ZIndex="2" /> |
||||||
|
<TextBox Padding="0,0,0,0" VerticalContentAlignment="Center" Text="{TemplateBinding Tag}" Background="{TemplateBinding Background}" Panel.ZIndex="1"> |
||||||
|
<TextBox.Style> |
||||||
|
<Style TargetType="{x:Type TextBox}"> |
||||||
|
<Setter Property="Foreground" Value="Transparent"/> |
||||||
|
<Style.Triggers> |
||||||
|
<DataTrigger Binding="{Binding Path=Text, Source={x:Reference textSource}}" Value=""> |
||||||
|
<Setter Property="Foreground" Value="#aaaaaa"/> |
||||||
|
</DataTrigger> |
||||||
|
</Style.Triggers> |
||||||
|
</Style> |
||||||
|
</TextBox.Style> |
||||||
|
</TextBox> |
||||||
|
</Grid> |
||||||
|
</ControlTemplate> |
||||||
|
</Setter.Value> |
||||||
|
</Setter> |
||||||
|
</Style> |
||||||
|
</UserControl.Resources> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="14*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Border Grid.Row="0" BorderBrush="#DDDDDD" BorderThickness="2" Margin="10,5" > |
||||||
|
<DockPanel LastChildFill="False" Background="White"> |
||||||
|
<Button x:Name="SS" FontSize="18" Click="SS_Click" Template="{StaticResource ExampleButton}" Content="手术信息"></Button> |
||||||
|
<Button x:Name="SSS" FontSize="18" Click="SSS_Click" Template="{StaticResource ExampleButton}" Content="手术室信息"></Button> |
||||||
|
<Button x:Name="KS" FontSize="18" Click="KS_Click" Template="{StaticResource ExampleButton}" Content="科室信息"></Button> |
||||||
|
<Button x:Name="MZYS" FontSize="18" Click="MZYS_Click" Template="{StaticResource ExampleButton}" Content="麻醉医生信息"></Button> |
||||||
|
<Button x:Name="HSXX" FontSize="18" Click="HS_Click" Template="{StaticResource ExampleButton}" Content="护士信息"></Button> |
||||||
|
<Button x:Name="SSSBD" FontSize="18" Click="SSSBD_Click" Template="{StaticResource ExampleButton}" Content="手术室绑定"></Button> |
||||||
|
<Label x:Name="SXSS" FontSize="18" Margin="10,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" >筛选手术:</Label> |
||||||
|
<TextBox x:Name="GJZ" Height="35" Width="250" FontSize="18" HorizontalAlignment="Center" VerticalAlignment="Center" VerticalContentAlignment="Center" Style="{StaticResource placeHolder}" Tag="手术编码、名称、拼音首字母"></TextBox> |
||||||
|
<Label x:Name="labcyss" FontSize="18" Margin="10,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" >常用手术</Label> |
||||||
|
<CheckBox x:Name="ISCY" FontSize="18" Margin="10,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" ></CheckBox> |
||||||
|
<Button x:Name="btn_sc" FontSize="18" Height="35" Width="70" DockPanel.Dock="Right" Margin="0,0,10,0" Click="btn_sc_Click" Content="删 除" Background="#D4495C" Foreground="White" VerticalContentAlignment="Center"> |
||||||
|
<Button.Template > |
||||||
|
<ControlTemplate TargetType="{x:Type Button}" > |
||||||
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3,3,3,3"> |
||||||
|
<Border.Background>#D4495C</Border.Background> |
||||||
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Button.Template> |
||||||
|
</Button> |
||||||
|
<Button x:Name="btn_xg" FontSize="18" Height="35" Width="60" DockPanel.Dock="Right" Margin="0,0,20,0" Click="btn_xg_Click" Content="修 改" Background="#558BE3" Foreground="White" VerticalContentAlignment="Center"> |
||||||
|
<Button.Template > |
||||||
|
<ControlTemplate TargetType="{x:Type Button}" > |
||||||
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3,3,3,3"> |
||||||
|
<Border.Background>#558BE3</Border.Background> |
||||||
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Button.Template> |
||||||
|
</Button> |
||||||
|
<Button x:Name="btn_xz" FontSize="18" Height="35" Width="60" DockPanel.Dock="Right" Margin="0,0,20,0" Click="btn_xz_Click" Content="新 增" Background="#558BE3" Foreground="White" VerticalContentAlignment="Center"> |
||||||
|
<Button.Template > |
||||||
|
<ControlTemplate TargetType="{x:Type Button}" > |
||||||
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3,3,3,3"> |
||||||
|
<Border.Background>#558BE3</Border.Background> |
||||||
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Button.Template> |
||||||
|
</Button> |
||||||
|
<Button x:Name="btn_sx" FontSize="18" Height="35" Width="60" DockPanel.Dock="Right" Margin="0,0,20,0" Click="btn_sx_Click" Content="刷 新" Background="#558BE3" Foreground="White" VerticalContentAlignment="Center"> |
||||||
|
<Button.Template > |
||||||
|
<ControlTemplate TargetType="{x:Type Button}" > |
||||||
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3,3,3,3"> |
||||||
|
<Border.Background>#558BE3</Border.Background> |
||||||
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Button.Template> |
||||||
|
</Button> |
||||||
|
<Button x:Name="btn_bc" FontSize="18" Height="35" Width="60" DockPanel.Dock="Right" Margin="0,0,20,0" Click="btn_bc_Click" Content="保 存" Background="#558BE3" Foreground="White" VerticalContentAlignment="Center"> |
||||||
|
<Button.Template > |
||||||
|
<ControlTemplate TargetType="{x:Type Button}" > |
||||||
|
<Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="0" CornerRadius="3,3,3,3"> |
||||||
|
<Border.Background>#558BE3</Border.Background> |
||||||
|
<ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter> |
||||||
|
</Border> |
||||||
|
</ControlTemplate> |
||||||
|
</Button.Template> |
||||||
|
</Button> |
||||||
|
</DockPanel> |
||||||
|
</Border> |
||||||
|
<Border Grid.Row="1" BorderBrush="#DDDDDD" BorderThickness="2" Margin="10,5" Padding="10"> |
||||||
|
<Grid> |
||||||
|
<Grid x:Name="ssgrid"> |
||||||
|
<DataGrid x:Name="ssdata" Grid.Row="1" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" SelectionChanged="ssdata_SelectionChanged" Style="{StaticResource Dgrid}" RowStyle="{StaticResource row}" CellStyle="{StaticResource dgc}"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="ID" Visibility="Collapsed" Binding="{Binding ID}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术编码" Binding="{Binding SSBM}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术名称" Binding="{Binding SSMC}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="拼音首字母" Binding="{Binding PYSZM}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="预计手术时长" Binding="{Binding strYJSSSC}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术级别" Binding="{Binding strSSJB}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术清洁度" Binding="{Binding strSSQJD}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="麻醉医生职称" Binding="{Binding strMZYSZC}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="巡回护士职称" Binding="{Binding strXHHSZC}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="巡回护士职称" Visibility="Collapsed" Binding="{Binding IsICD}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="常用手术" Binding="{Binding CYSS}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术类别" Binding="{Binding SSLX}"/> |
||||||
|
<DataGridTextColumn Visibility="Collapsed" Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Binding="{Binding intSSLX}"/> |
||||||
|
<DataGridTextColumn Width="auto" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="常用手术" Visibility="Collapsed" Binding="{Binding boolCYSS}"/> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
</Grid> |
||||||
|
<Grid x:Name="sssgrid" Visibility="Collapsed"> |
||||||
|
<DataGrid x:Name="sssdata" Grid.Row="1" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" SelectionChanged="sssdata_SelectionChanged" Style="{StaticResource Dgrid}" RowStyle="{StaticResource row}" CellStyle="{StaticResource dgc}"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="ID" Visibility="Collapsed" Binding="{Binding ID}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术室名称" Binding="{Binding SSSMC}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术室编码" Binding="{Binding SSSBM}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="日间手术室" Binding="{Binding RJSSS}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="是否启用" Binding="{Binding SFQY}"/> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
</Grid> |
||||||
|
<Grid x:Name="ksgrid" Visibility="Collapsed"> |
||||||
|
<DataGrid x:Name="ksdata" Grid.Row="1" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" SelectionChanged="ksdata_SelectionChanged" Background="White" Style="{StaticResource Dgrid}" RowStyle="{StaticResource row}" CellStyle="{StaticResource dgc}"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="ID" Visibility="Collapsed" Binding="{Binding ID}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="科室名称" Binding="{Binding KSMC}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="科室编码" Binding="{Binding KSBM}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="是否启用" Binding="{Binding SFQY}"/> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
</Grid> |
||||||
|
<Grid x:Name="mzysgrid" Visibility="Collapsed"> |
||||||
|
<DataGrid x:Name="mzysdata" Grid.Row="1" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" SelectionChanged="mzysdata_SelectionChanged" Background="White" Style="{StaticResource Dgrid}" RowStyle="{StaticResource row}" CellStyle="{StaticResource dgc}"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="ID" Visibility="Collapsed" Binding="{Binding ID}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="医生姓名" Binding="{Binding YSXM}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="医生编码" Binding="{Binding YSGH}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="医生职称" Binding="{Binding strYSZC}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="擅长手术1" Binding="{Binding strSCSS1}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="擅长手术2" Binding="{Binding strSCSS2}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="擅长手术3" Binding="{Binding strSCSS3}"/> |
||||||
|
<!--<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术室" Binding="{Binding strSSS}"/>--> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="是否启用" Binding="{Binding strSFQY}"/> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
</Grid> |
||||||
|
<Grid x:Name="hsgrid" Visibility="Collapsed"> |
||||||
|
<DataGrid x:Name="hsdata" Grid.Row="1" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" SelectionChanged="hsdata_SelectionChanged" Background="White" Style="{StaticResource Dgrid}" RowStyle="{StaticResource row}" CellStyle="{StaticResource dgc}"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="ID" Visibility="Collapsed" Binding="{Binding ID}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术室" Binding="{Binding strSSS}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="护士姓名" Binding="{Binding HSXM}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="护士编码" Binding="{Binding HSGH}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="护士职称" Binding="{Binding strHSZC}"/> |
||||||
|
|
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="是否启用" Binding="{Binding strSFQY}"/> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
</Grid> |
||||||
|
<Grid x:Name="sssbdgrid" Visibility="Collapsed"> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="2*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<DataGrid x:Name="kslbdata" Grid.Column="0" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" SelectionChanged="kslbdata_SelectionChanged" Style="{StaticResource Dgrid}" RowStyle="{StaticResource row}" CellStyle="{StaticResource dgc}" MouseDoubleClick="kslbdata_MouseDoubleClick"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="ID" Visibility="Collapsed" Binding="{Binding ID}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="科室名称" Binding="{Binding KSMC}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="科室编码" Binding="{Binding KSBM}"/> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
<DataGrid x:Name="ssslbdata" Grid.Column="1" CanUserAddRows="False" AutoGenerateColumns="False" FontSize="20" SelectionChanged="ssslbdata_SelectionChanged" Style="{StaticResource Dgrid}" RowStyle="{StaticResource row}" CellStyle="{StaticResource dgc}"> |
||||||
|
<DataGrid.Columns> |
||||||
|
<DataGridTextColumn Width="0.5*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术室ID" Binding="{Binding ID}" Visibility="Collapsed"> |
||||||
|
</DataGridTextColumn> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术室名称" Binding="{Binding SSSMC}"/> |
||||||
|
<DataGridTextColumn Width="1*" HeaderStyle="{StaticResource header}" ElementStyle="{StaticResource cell}" Header="手术室编码" Binding="{Binding SSSBM}"/> |
||||||
|
<DataGridTemplateColumn Width="1*" Header="是否可用" HeaderStyle="{StaticResource header}" > |
||||||
|
<DataGridTemplateColumn.CellTemplate> |
||||||
|
<DataTemplate> |
||||||
|
<CheckBox x:Name="box" HorizontalAlignment="Center" IsChecked="{Binding SFKY}" VerticalAlignment="Center" /> |
||||||
|
</DataTemplate> |
||||||
|
</DataGridTemplateColumn.CellTemplate> |
||||||
|
</DataGridTemplateColumn> |
||||||
|
</DataGrid.Columns> |
||||||
|
</DataGrid> |
||||||
|
</Grid> |
||||||
|
</Grid> |
||||||
|
</Border> |
||||||
|
|
||||||
|
</Grid> |
||||||
|
</UserControl> |
||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,38 @@ |
|||||||
|
<Window x:Class="SchedulingSystemClient.LoginWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
Title="登录" Height="400" Width="600" |
||||||
|
WindowStartupLocation="CenterScreen" |
||||||
|
WindowStyle="None" |
||||||
|
ResizeMode="NoResize"> |
||||||
|
<Grid> |
||||||
|
<Grid.Background> |
||||||
|
<ImageBrush ImageSource="Image/DLBJT.jpg" Stretch="Fill"/> |
||||||
|
</Grid.Background> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="0.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1.5*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="1.2*"></RowDefinition> |
||||||
|
<RowDefinition Height="0.8*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.5*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="0.7*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
|
||||||
|
<Button x:Name="but_gb" Grid.Column="3" Click="but_gb_Click" BorderThickness="0" BorderBrush="Black" FontSize="30" Padding="5,0" Foreground="Aqua" DockPanel.Dock="Right" VerticalAlignment="Top" HorizontalAlignment="Right" Background="#00000000" Margin="0,0,8,0" Content="×" Style="{StaticResource an}"> |
||||||
|
</Button> |
||||||
|
<Label Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="4" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" FontSize="32" FontWeight="Bold" FontFamily="宋体" Foreground="Aqua">智能手术排班系统</Label> |
||||||
|
<Label Grid.Row="2" Grid.Column="1" FontSize="18" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Foreground="Aqua">工号:</Label> |
||||||
|
<Label Grid.Row="3" Grid.Column="1" FontSize="18" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" Foreground="Aqua">密码:</Label> |
||||||
|
<TextBox x:Name="gh" Grid.Row="2" Grid.Column="2" FontSize="18" VerticalContentAlignment="Center" Height="36" Background="#90C2D9" Foreground="Aqua" Margin="0,0,10,0" /> |
||||||
|
<PasswordBox x:Name="mm" Grid.Row="3" Grid.Column="2" FontSize="18" VerticalContentAlignment="Center" Height="36" Background="#90C2D9" Foreground="Aqua" Margin="0,0,10,0"></PasswordBox> |
||||||
|
<Button x:Name="btn_dl" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" FontSize="20" Margin="50,0,0,0" Width="280" Height="45" Content="登   录" Foreground="White" Background="#004091" Style="{StaticResource an}" Click="btn_dl_Click" IsDefault="True"></Button> |
||||||
|
<Button x:Name="btn_xgmm" Grid.Row="5" Grid.Column="2" Margin="-59,-35,0,0" FontSize="14" Foreground="Aqua" Width="80" Height="30" Content="修改密码" Padding="0" BorderThickness="0" Style="{StaticResource an}" Click="btn_xgmm_Click"> |
||||||
|
</Button> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,60 @@ |
|||||||
|
using SchedulingSystemClient.UpdateWindow; |
||||||
|
using System.Linq; |
||||||
|
using System.Windows; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// LoginWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class LoginWindow : Window |
||||||
|
{ |
||||||
|
public LoginWindow() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
private void but_gb_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
private void btn_dl_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
//gh.Text = "admin"; |
||||||
|
//mm.Password = "123"; |
||||||
|
|
||||||
|
if (gh.Text == null || gh.Text == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请输入工号"); |
||||||
|
return; |
||||||
|
} |
||||||
|
if (mm.Password == null || mm.Password == string.Empty) |
||||||
|
{ |
||||||
|
MessageBox.Show("请输入密码"); |
||||||
|
return; |
||||||
|
} |
||||||
|
var listyh = (from tbyh in myModel.SYS_YHB |
||||||
|
where tbyh.GH == gh.Text && mm.Password == tbyh.MM |
||||||
|
select new |
||||||
|
{ tbyh }).ToList(); |
||||||
|
if (listyh.Count > 0) |
||||||
|
{ |
||||||
|
SYS_YHB user = new SYS_YHB(); |
||||||
|
user = listyh[0].tbyh; |
||||||
|
MainWindow window = new MainWindow(user); |
||||||
|
window.Show(); |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
MessageBox.Show("工号或密码错误"); |
||||||
|
return; |
||||||
|
} |
||||||
|
} |
||||||
|
private void btn_xgmm_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
XGMMWindow window = new XGMMWindow(); |
||||||
|
window.ShowDialog(); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,72 @@ |
|||||||
|
<Window x:Class="SchedulingSystemClient.MainWindow" |
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||||
|
mc:Ignorable="d" |
||||||
|
Title="MainWindow" |
||||||
|
WindowStyle="None" |
||||||
|
ResizeMode ="CanResize" |
||||||
|
Loaded="Window_Loaded" |
||||||
|
MaxWidth="{StaticResource {x:Static SystemParameters.MaximizedPrimaryScreenWidthKey}}" |
||||||
|
MaxHeight="{StaticResource {x:Static SystemParameters.MaximizedPrimaryScreenHeightKey}}" |
||||||
|
> |
||||||
|
<!--MaxWidth="{StaticResource {x:Static SystemParameters.MaximizedPrimaryScreenWidthKey}}" |
||||||
|
MaxHeight="{StaticResource {x:Static SystemParameters.MaximizedPrimaryScreenHeightKey}}"--> |
||||||
|
<!--WindowStyle="None"--> |
||||||
|
<Grid> |
||||||
|
<Grid.RowDefinitions> |
||||||
|
<RowDefinition Height="1*"></RowDefinition> |
||||||
|
<RowDefinition Height="17*"></RowDefinition> |
||||||
|
</Grid.RowDefinitions> |
||||||
|
<Border Grid.Row="0" BorderThickness="0,0,0,1" BorderBrush="White"> |
||||||
|
<Grid Background="#356FD0"> |
||||||
|
<Label FontSize="28" HorizontalAlignment="Left" Margin="20,0,0,0" VerticalAlignment="Center" FontFamily="华文行楷" Foreground="White" FontWeight="Bold" >智能手术排班系统</Label> |
||||||
|
<Button x:Name="btn_gb" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="16" Background="#0000" BorderThickness="0" Foreground="White" Margin="0,0,10,0" Content="退出" Click="btn_gb_Click" Style="{StaticResource an}"> |
||||||
|
</Button> |
||||||
|
</Grid> |
||||||
|
</Border> |
||||||
|
<Grid Grid.Row="1"> |
||||||
|
|
||||||
|
<Grid.ColumnDefinitions> |
||||||
|
<ColumnDefinition Width="1*"></ColumnDefinition> |
||||||
|
<ColumnDefinition Width="7*"></ColumnDefinition> |
||||||
|
</Grid.ColumnDefinitions> |
||||||
|
<Grid Grid.Column="0" Background="#F5F5F5"> |
||||||
|
<StackPanel x:Name="gridLeft" Grid.Row="1" Orientation="Vertical"> |
||||||
|
<!--首页--> |
||||||
|
<Button x:Name="btn_sy" Tag="3" Foreground="#5F5F5F" Content="首 页" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="42" FontSize="20" Background="#F5F5F5" BorderBrush="#D8D8D8" BorderThickness="1" Click="btn_sy_Click"/> |
||||||
|
<!--排班展示--> |
||||||
|
<Button x:Name="btn_pbzs" Tag="3" Foreground="#5F5F5F" Content="排班展示" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="42" FontSize="20" Background="#F5F5F5" BorderBrush="#D8D8D8" BorderThickness="1" Click="btn_pbzs_Click"/> |
||||||
|
<!--手术排班--> |
||||||
|
<Button x:Name="btn_sspb" Tag="3" Foreground="#5F5F5F" Content="手术排班" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="42" FontSize="20" Background="#F5F5F5" BorderBrush="#D8D8D8" BorderThickness="1" Click="btn_sspb_Click"/> |
||||||
|
<!--排班记录--> |
||||||
|
<Button x:Name="btn_pbjl" Tag="3" Foreground="#5F5F5F" Content="申请记录" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="42" FontSize="20" Background="#F5F5F5" BorderBrush="#D8D8D8" BorderThickness="1" Click="btn_pbjl_Click" /> |
||||||
|
<!--申请排班--> |
||||||
|
<Button x:Name="btn_pbsq" Tag="2" Foreground="#5F5F5F" Content="排班申请" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="42" FontSize="20" Background="#F5F5F5" BorderBrush="#D8D8D8" BorderThickness="1" Click="btn_pbsq_Click"/> |
||||||
|
<Button x:Name="btn_rjss" Tag="2" Foreground="#5F5F5F" Content="日间手术" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="42" FontSize="20" Background="#F5F5F5" BorderBrush="#D8D8D8" BorderThickness="1" Click="btn_rjss_Click" Visibility="Collapsed" /> |
||||||
|
<!--基础信息维护--> |
||||||
|
<Button x:Name="btn_jcxxwh" Tag="4" Foreground="#5F5F5F" Content="手术信息维护" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="42 " FontSize="20" Background="#F5F5F5" BorderBrush="#D8D8D8" BorderThickness="1" Click="btn_jcxxwh_Click"/> |
||||||
|
<!--规则维护--> |
||||||
|
<Button x:Name="btn_gzwh" Tag="4" Foreground="#5F5F5F" Content="规则维护" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="42 " FontSize="20" Background="#F5F5F5" BorderBrush="#D8D8D8" BorderThickness="1" Click="btn_gzwh_Click"/> |
||||||
|
<!--操作记录--> |
||||||
|
<Button x:Name="btn_pbrz" Tag="4" Foreground="#5F5F5F" Content="排班日志" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="42 " FontSize="20" Background="#F5F5F5" BorderBrush="#D8D8D8" BorderThickness="1" Click="btn_pbrz_Click"/> |
||||||
|
<!--数据统计--> |
||||||
|
<Button x:Name="btn_sjtj" Tag="4" Foreground="#5F5F5F" Content="数据统计" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="42 " FontSize="20" Background="#F5F5F5" BorderBrush="#D8D8D8" BorderThickness="1" Click="btn_sjtj_Click"/> |
||||||
|
<!--医务人员排班--> |
||||||
|
<Button x:Name="btn_ywrypb" Tag="4" Foreground="#5F5F5F" Content="医务人员排班" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="42 " FontSize="20" Background="#F5F5F5" BorderBrush="#D8D8D8" BorderThickness="1" Click="btn_ywrypb_Click" Visibility="Collapsed"/> |
||||||
|
<!--设备管理--> |
||||||
|
<Button x:Name="btn_sbgl" Tag="4" Foreground="#5F5F5F" Content="设备管理" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="42 " FontSize="20" Background="#F5F5F5" BorderBrush="#D8D8D8" BorderThickness="1" Click="btn_sbgl_Click" Visibility="Collapsed"/> |
||||||
|
<!--系统管理--> |
||||||
|
<Button x:Name="btn_xtgl" Tag="4" Foreground="#5F5F5F" Content="系统管理" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="42 " FontSize="20" Background="#F5F5F5" BorderBrush="#D8D8D8" BorderThickness="1" Click="btn_xtgl_Click"/> |
||||||
|
</StackPanel> |
||||||
|
</Grid> |
||||||
|
<Border Grid.Column="1" BorderThickness="0,1,0,0" BorderBrush="White" > |
||||||
|
<Grid> |
||||||
|
<TabControl x:Name="main_tab" Tag="auto" Background="White" FontSize="16" > |
||||||
|
</TabControl> |
||||||
|
</Grid> |
||||||
|
</Border> |
||||||
|
</Grid> |
||||||
|
</Grid> |
||||||
|
</Window> |
||||||
@ -0,0 +1,393 @@ |
|||||||
|
using SchedulingSystemClient.UserControls; |
||||||
|
using System.Linq; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Forms; |
||||||
|
using System.Windows.Interop; |
||||||
|
using System.Windows.Media; |
||||||
|
|
||||||
|
namespace SchedulingSystemClient |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// MainWindow.xaml 的交互逻辑 |
||||||
|
/// </summary> |
||||||
|
public partial class MainWindow : Window |
||||||
|
{ |
||||||
|
int screenHeight = 0; |
||||||
|
int screenWidth = 0; |
||||||
|
public MainWindow(SYS_YHB yh) |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
|
||||||
|
|
||||||
|
user = yh; |
||||||
|
//yhgh = user.GH; |
||||||
|
|
||||||
|
} |
||||||
|
//string yhgh = string.Empty; |
||||||
|
SYS_YHB user = new SYS_YHB(); |
||||||
|
SurgerySchedulingEntities myModel = new SurgerySchedulingEntities(); |
||||||
|
private void Window_Loaded(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
var window = Window.GetWindow(this);//获取当前主窗口 |
||||||
|
var intPtr = new WindowInteropHelper(window).Handle;//获取当前窗口的句柄 |
||||||
|
var screen = Screen.FromHandle(intPtr);//获取当前屏幕 |
||||||
|
screenHeight = screen.Bounds.Height; |
||||||
|
screenWidth = screen.Bounds.Width; |
||||||
|
this.Height = screenHeight; |
||||||
|
this.Width = screenWidth; |
||||||
|
this.WindowState = WindowState.Maximized; |
||||||
|
YCCD(); |
||||||
|
btn_pbjl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbsq.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_jcxxwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_gzwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_xtgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sy.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFBEE6FD")); |
||||||
|
btn_sjtj.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbzs.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbrz.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
TC = (System.Windows.Controls.TabControl)main_tab; |
||||||
|
TJTBWindow mypage = new TJTBWindow(); |
||||||
|
AddItem("首页", mypage.GetType().Name, mypage); |
||||||
|
} |
||||||
|
private void YCCD() |
||||||
|
{ |
||||||
|
var qx = (from tbqxb in myModel.SYS_QXB |
||||||
|
where tbqxb.JSID == user.JSID |
||||||
|
select new |
||||||
|
{ tbqxb }).ToList(); |
||||||
|
if (qx.Count>0) |
||||||
|
{ |
||||||
|
if (qx[0].tbqxb.Is_SY == false) |
||||||
|
{ |
||||||
|
btn_sy.Visibility = Visibility.Collapsed; |
||||||
|
} |
||||||
|
if (qx[0].tbqxb.Is_PBJL == false) |
||||||
|
{ |
||||||
|
btn_pbjl.Visibility = Visibility.Collapsed; |
||||||
|
} |
||||||
|
if (qx[0].tbqxb.Is_PBSQ == false) |
||||||
|
{ |
||||||
|
btn_pbsq.Visibility = Visibility.Collapsed; |
||||||
|
} |
||||||
|
if (qx[0].tbqxb.Is_JCXXWH == false) |
||||||
|
{ |
||||||
|
btn_jcxxwh.Visibility = Visibility.Collapsed; |
||||||
|
} |
||||||
|
if (qx[0].tbqxb.Is_GZWH == false) |
||||||
|
{ |
||||||
|
btn_gzwh.Visibility = Visibility.Collapsed; |
||||||
|
} |
||||||
|
if (qx[0].tbqxb.Is_XTGL == false) |
||||||
|
{ |
||||||
|
btn_xtgl.Visibility = Visibility.Collapsed; |
||||||
|
} |
||||||
|
if (qx[0].tbqxb.Is_PBZS == false) |
||||||
|
{ |
||||||
|
btn_pbzs.Visibility = Visibility.Collapsed; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
private void btn_gb_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
MessageBoxResult dr = System.Windows.MessageBox.Show("确定要退出系统吗?", "提示", MessageBoxButton.OKCancel, MessageBoxImage.Question); |
||||||
|
if (dr == MessageBoxResult.OK) |
||||||
|
{ |
||||||
|
this.Close(); |
||||||
|
} |
||||||
|
} |
||||||
|
static System.Windows.Controls.TabControl TC;// 静态选项卡 |
||||||
|
private static void AddItem(string header, string name, System.Windows.Controls.UserControl uc) |
||||||
|
{ |
||||||
|
System.Windows.Controls.UserControl UC = new System.Windows.Controls.UserControl(); |
||||||
|
UC.Content = uc; |
||||||
|
|
||||||
|
bool bolWhetherBe = false;//是否存在当前选项 |
||||||
|
//1、判断当前选项卡的个数是否大于0 |
||||||
|
if (TC.Items.Count > 0) |
||||||
|
{ |
||||||
|
for (int i = 0; i < TC.Items.Count; i++) |
||||||
|
{ |
||||||
|
if (((UC_TabItemWithClose)TC.Items[i]).Name == name)//判断是否存在 |
||||||
|
{ |
||||||
|
TC.SelectedItem = ((UC_TabItemWithClose)TC.Items[i]);//选中子选项 |
||||||
|
bolWhetherBe = true; |
||||||
|
break; |
||||||
|
} |
||||||
|
} |
||||||
|
//2、是否存在当前选项 |
||||||
|
if (bolWhetherBe == false) |
||||||
|
{ |
||||||
|
//3、创建子选项 |
||||||
|
UC_TabItemWithClose item = new UC_TabItemWithClose();//创建子选项 |
||||||
|
item.Name = name;//名称 |
||||||
|
item.Header = string.Format(header);//标头名称 |
||||||
|
item.Content = UC;//子选择里面的内容 |
||||||
|
//item.Margin = new Thickness(0, 0, 1, 0); |
||||||
|
item.Height = 35; |
||||||
|
//item.Width = 100; |
||||||
|
item.BorderThickness = new Thickness(1, 0, 1, 0); |
||||||
|
item.FontSize = 16; |
||||||
|
item.HorizontalAlignment = System.Windows.HorizontalAlignment.Center; |
||||||
|
item.Padding = new Thickness(10, 0, 10, 0); |
||||||
|
TC.Items.Add(item);//添加子选项 |
||||||
|
TC.SelectedItem = item;//选中子选项 |
||||||
|
} |
||||||
|
} |
||||||
|
else |
||||||
|
{ |
||||||
|
UC_TabItemWithClose item = new UC_TabItemWithClose();//创建子选项 |
||||||
|
item.Name = name;//名称 |
||||||
|
item.Header = string.Format(header);//标头名称 |
||||||
|
item.Content = UC;//子选择里面的内容 |
||||||
|
//item.Margin = new Thickness(0, 0, 1, 0); |
||||||
|
item.Height = 35; |
||||||
|
//item.Width = 100; |
||||||
|
item.FontSize = 16; |
||||||
|
item.BorderThickness = new Thickness(1, 0, 1, 0); |
||||||
|
//item.HorizontalContentAlignment = HorizontalAlignment.Center; |
||||||
|
item.HorizontalAlignment = System.Windows.HorizontalAlignment.Center; |
||||||
|
item.Padding = new Thickness(10, 0, 10, 0); |
||||||
|
TC.Items.Add(item);//添加子选项 |
||||||
|
TC.SelectedItem = item;//选中子选项 |
||||||
|
} |
||||||
|
} |
||||||
|
private void btn_pbjl_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
btn_pbjl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFBEE6FD")); |
||||||
|
btn_pbsq.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_jcxxwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_gzwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_xtgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sy.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sjtj.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbzs.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbrz.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_rjss.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sspb.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sbgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
TC = (System.Windows.Controls.TabControl) main_tab; |
||||||
|
SQJLWindow mypage = new SQJLWindow(user); |
||||||
|
AddItem("申请记录", mypage.GetType().Name, mypage); |
||||||
|
} |
||||||
|
private void btn_pbsq_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
btn_pbjl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbsq.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFBEE6FD")); |
||||||
|
btn_jcxxwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_gzwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_xtgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sy.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sjtj.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbzs.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbrz.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_rjss.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sspb.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sbgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
PBSQWindow window = new PBSQWindow(user); |
||||||
|
window.ShowDialog(); |
||||||
|
} |
||||||
|
private void btn_jcxxwh_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
btn_pbjl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbsq.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_jcxxwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFBEE6FD")); |
||||||
|
btn_gzwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_xtgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sy.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sjtj.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbzs.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbrz.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_rjss.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sspb.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sbgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
TC = (System.Windows.Controls.TabControl)main_tab; |
||||||
|
JcxxWindow mypage = new JcxxWindow(); |
||||||
|
AddItem("手术信息维护", mypage.GetType().Name, mypage); |
||||||
|
} |
||||||
|
private void btn_gzwh_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
btn_pbjl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbsq.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_jcxxwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_gzwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFBEE6FD")); |
||||||
|
btn_xtgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sy.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sjtj.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbzs.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbrz.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_rjss.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sspb.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sbgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
TC = (System.Windows.Controls.TabControl)main_tab; |
||||||
|
GZWHWindow mypage = new GZWHWindow(); |
||||||
|
AddItem("规则维护", mypage.GetType().Name, mypage); |
||||||
|
} |
||||||
|
private void btn_xtgl_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
btn_pbjl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbsq.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_jcxxwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_gzwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_xtgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFBEE6FD")); |
||||||
|
btn_sy.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sjtj.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbzs.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbrz.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_rjss.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sspb.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sbgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
TC = (System.Windows.Controls.TabControl)main_tab; |
||||||
|
XTGLWindow mypage = new XTGLWindow(); |
||||||
|
//FenYeWindow mypage = new FenYeWindow(); |
||||||
|
AddItem("系统管理", mypage.GetType().Name, mypage); |
||||||
|
} |
||||||
|
private void btn_sy_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
btn_pbjl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbsq.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_jcxxwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_gzwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_xtgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sy.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFBEE6FD")); |
||||||
|
btn_sjtj.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbzs.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbrz.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_rjss.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sspb.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sbgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
TC = (System.Windows.Controls.TabControl)main_tab; |
||||||
|
TJTBWindow mypage = new TJTBWindow(); |
||||||
|
AddItem("首页", mypage.GetType().Name, mypage); |
||||||
|
} |
||||||
|
private void btn_sjtj_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
btn_pbjl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbsq.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_jcxxwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_gzwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_xtgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sy.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sjtj.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFBEE6FD")); |
||||||
|
btn_pbzs.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbrz.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_rjss.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sspb.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sbgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
TC = (System.Windows.Controls.TabControl)main_tab; |
||||||
|
SJTJWindow mypage = new SJTJWindow(); |
||||||
|
AddItem("数据统计", mypage.GetType().Name, mypage); |
||||||
|
} |
||||||
|
private void btn_pbzs_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
btn_pbjl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbsq.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_jcxxwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_gzwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_xtgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sy.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sjtj.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbzs.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFBEE6FD")); |
||||||
|
btn_pbrz.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_rjss.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sspb.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sbgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
TC = (System.Windows.Controls.TabControl)main_tab; |
||||||
|
SYWindow mypage = new SYWindow(); |
||||||
|
AddItem("排班展示", mypage.GetType().Name, mypage); |
||||||
|
} |
||||||
|
private void btn_pbrz_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
btn_pbjl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbsq.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_jcxxwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_gzwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_xtgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sy.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sjtj.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbzs.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbrz.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFBEE6FD")); |
||||||
|
btn_rjss.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sspb.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sbgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
TC = (System.Windows.Controls.TabControl)main_tab; |
||||||
|
PBRZWindow mypage = new PBRZWindow(); |
||||||
|
AddItem("排班日志", mypage.GetType().Name, mypage); |
||||||
|
} |
||||||
|
|
||||||
|
private void btn_rjss_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
btn_pbjl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbsq.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_jcxxwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_gzwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_xtgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sy.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sjtj.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbzs.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbrz.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_rjss.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFBEE6FD")); |
||||||
|
btn_sspb.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sbgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
TC = (System.Windows.Controls.TabControl)main_tab; |
||||||
|
RJSSWindow mypage = new RJSSWindow(user); |
||||||
|
AddItem("日间手术", mypage.GetType().Name, mypage); |
||||||
|
} |
||||||
|
private void btn_sspb_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
btn_pbjl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbsq.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_jcxxwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_gzwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_xtgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sy.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sjtj.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbzs.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbrz.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_rjss.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sspb.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFBEE6FD")); |
||||||
|
btn_sbgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
TC = (System.Windows.Controls.TabControl)main_tab; |
||||||
|
SSPBWindow mypage = new SSPBWindow(user); |
||||||
|
AddItem("手术排班", mypage.GetType().Name, mypage); |
||||||
|
} |
||||||
|
//医务人员排班 |
||||||
|
private void btn_ywrypb_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
btn_pbjl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbsq.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_jcxxwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_gzwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_xtgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sy.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sjtj.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbzs.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbrz.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_rjss.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sspb.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFBEE6FD")); |
||||||
|
btn_sbgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
TC = (System.Windows.Controls.TabControl)main_tab; |
||||||
|
YWRYPBWindow mypage = new YWRYPBWindow(user); |
||||||
|
AddItem("医务人员排班", mypage.GetType().Name, mypage); |
||||||
|
} |
||||||
|
|
||||||
|
private void btn_sbgl_Click(object sender, RoutedEventArgs e) |
||||||
|
{ |
||||||
|
btn_pbjl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbsq.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_jcxxwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_gzwh.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_xtgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sy.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sjtj.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbzs.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_pbrz.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_rjss.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sspb.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#F5F5F5")); |
||||||
|
btn_sbgl.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FFBEE6FD")); |
||||||
|
TC = (System.Windows.Controls.TabControl)main_tab; |
||||||
|
SBGLWindow mypage = new SBGLWindow(); |
||||||
|
AddItem("设备管理", mypage.GetType().Name, mypage); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue