测试文档麻醉系统修改1008-2

This commit is contained in:
leomo 2022-10-08 22:25:30 +08:00
parent eab32f5823
commit feba69d35d
35 changed files with 5383 additions and 1410 deletions

View File

@ -54,10 +54,23 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\DotNetBar for Windows Forms\DevComponents.DotNetBar2.dll</HintPath>
</Reference>
<Reference Include="GoldPrinter, Version=2.5.5009.37801, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>Extensions\GoldPrinter.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">
<SpecificVersion>False</SpecificVersion>
<EmbedInteropTypes>True</EmbedInteropTypes>
<HintPath>Extensions\Microsoft.Office.Interop.Excel.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>DLL\Microsoft.ReportViewer.Common.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>Extensions\Microsoft.ReportViewer.ProcessingObjectModel.dll</HintPath>
</Reference>
<Reference Include="Microsoft.ReportViewer.WinForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>DLL\Microsoft.ReportViewer.WinForms.dll</HintPath>
@ -397,6 +410,12 @@
<Compile Include="OperationDoing\oldSystemCode\frmTR.designer.cs">
<DependentUpon>frmTR.cs</DependentUpon>
</Compile>
<Compile Include="OperationFront\FrmScheduling3.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="OperationFront\FrmScheduling3.designer.cs">
<DependentUpon>FrmScheduling3.cs</DependentUpon>
</Compile>
<Compile Include="OremrUserControl\PrescriptionDocument.cs">
<SubType>UserControl</SubType>
</Compile>
@ -590,12 +609,6 @@
<Compile Include="OperationFront\frmOperationSchedulePlan.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="OperationFront\frmPlanPatientInfo.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="OperationFront\frmPlanPatientInfo.Designer.cs">
<DependentUpon>frmPlanPatientInfo.cs</DependentUpon>
</Compile>
<Compile Include="OperationFront\frmStopOperation.cs">
<SubType>Form</SubType>
</Compile>
@ -1054,6 +1067,9 @@
<EmbeddedResource Include="OperationDoing\oldSystemCode\frmTR.resx">
<DependentUpon>frmTR.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationFront\FrmScheduling3.resx">
<DependentUpon>FrmScheduling3.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OremrUserControl\PrescriptionDocument.resx">
<DependentUpon>PrescriptionDocument.cs</DependentUpon>
</EmbeddedResource>
@ -1145,9 +1161,6 @@
<EmbeddedResource Include="OperationFront\frmOperationSchedulePlan.resx">
<DependentUpon>frmOperationSchedulePlan.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationFront\frmPlanPatientInfo.resx">
<DependentUpon>frmPlanPatientInfo.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationFront\frmStopOperation.resx">
<DependentUpon>frmStopOperation.cs</DependentUpon>
</EmbeddedResource>
@ -1315,9 +1328,11 @@
<Content Include="Extensions\DevComponents.DotNetBar.Schedule.dll" />
<Content Include="Extensions\DevComponents.DotNetBar.SuperGrid.dll" />
<Content Include="Extensions\DevComponents.DotNetBar2.dll" />
<Content Include="Extensions\GoldPrinter.dll" />
<Content Include="Extensions\Microsoft.Office.Interop.Excel.dll" />
<Content Include="Extensions\Microsoft.ReportViewer.Common.dll" />
<Content Include="Extensions\Microsoft.ReportViewer.ProcessingObjectModel.dll" />
<Content Include="Extensions\Microsoft.ReportViewer.WinForms.dll" />
<Content Include="Extensions\office.dll" />
<Content Include="Resources\AttachFile.png" />
<Content Include="Resources\bg.png" />
<Content Include="Resources\BookNote.png" />

Binary file not shown.

View File

@ -48,7 +48,8 @@ namespace AIMS
AIMSExtension.PublicMethod.DepId = PersonObj.DepId.Value;
AIMSExtension.PublicMethod.DeptName = BDepartment.GetModel(PersonObj.DepId.Value).Name;
Role role = BRole.GetModel(PersonObj.RoleId.Value);
AIMSExtension.PublicMethod.PermissionLevel = role.PermissionLevel == null ? 0 : role.PermissionLevel.Value;
AIMSExtension.PublicMethod.PermissionLevel = role.PermissionLevel == null ? 0 : role.PermissionLevel.Value;
AIMSExtension.PublicMethod.RoleName = BMenu.GetMenuRootListManageStr(AIMSExtension.PublicMethod.RoleId, "功能权限");
Hide();
//在这里为编辑器注册
new System.Threading.Thread(Reg).Start();

View File

@ -129,6 +129,8 @@ namespace AIMS
for (int i = 0; i < menuListP.Count; i++)
{
var menuSec = menuListP[i];
if (menuSec.Name == "功能权限")
continue;
DevComponents.DotNetBar.Controls.SideNavPanel sideNavPanel = new DevComponents.DotNetBar.Controls.SideNavPanel();
sideNavPanel.AutoScroll = true;
sideNavPanel.Dock = System.Windows.Forms.DockStyle.Fill;

View File

@ -37,7 +37,8 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI
cboYLWZ.Text = _record.OpeRecoverInInfo.DrainagePosition;//尿管通畅
cboYLMC.Text = _record.OpeRecoverInInfo.DrainageName;//导管名称
if (_record.OpeRecoverInInfo.LightReflection != null) SetSpecialResult(_record.OpeRecoverInInfo.LightReflection);
txtT.Text = _record.OpeRecoverInInfo.Temp;//入室体温
txtT.Text = _record.OpeRecoverInInfo.Temp;//入室体温
txtSQTSQK.Text = _record.OpeRecoverInInfo.Remark;
//if (_record.OpeRecoverInInfo.StewardSober != null && _record.OpeRecoverInInfo.StewardSober != "")
//{

View File

@ -7,6 +7,7 @@ using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DCSoftDotfuscate;
namespace AIMS.OperationFront.UI
{
@ -81,14 +82,20 @@ namespace AIMS.OperationFront.UI
dicSchedulingTypeIdName.Clear();
foreach (DataRow dr in dtSchedulingType.Rows)
{
int id = (int)dr["Id"];
string name = dr["Name"].ToString();
int isValid = int.Parse(dr["IsValid"].ToString());
dicSchedulingTypeNameId[name] = id;
dicSchedulingTypeIdName[id] = name;
if (isValid == 1)
try
{
int id = (int)dr["Id"];
string name = dr["Name"].ToString();
int isValid = int.Parse(dr["IsValid"].ToString());
dicSchedulingTypeNameId[name] = id;
dicSchedulingTypeIdName[id] = name;
if (isValid == 1)
{
dicValidType[name] = id;
}
}
catch (Exception)
{
dicValidType[name] = id;
}
}
@ -837,6 +844,12 @@ namespace AIMS.OperationFront.UI
try
{
foreach (DataGridViewRow item in dataGridView1.Rows)
{
dbHelper.BeginTransaction();
dbHelper.Execute(string.Format("update Person set PersonOrder={0} where Id={1}", item.Cells["ColXh"].Value, item.Cells["WorkerId"].Value));
dbHelper.Commit();
}
dbHelper.BeginTransaction();
int workersType = int.Parse(dataTable.Rows[0]["workersType"].ToString());
dbHelper.Execute(string.Format("delete SchedulingNew where ScheduleMonth={0} and WorkersType={1}", scheduleMonth, workersType));
@ -927,42 +940,48 @@ namespace AIMS.OperationFront.UI
}
SetOperatorId(dataTable, operatorId);
/*转换护士值班数据*/
/*SELECT Id, WorkerId, OperationRoomId, nurseType, beginTime, endTime, ScheduleMonth, Remark FROM SchedulingNurseToOperationRoom*/
DataTable dataTable2 = dtSchedulingNurseToOperationRoom.Clone();
for (int i = 0, n = dvMain.Count; i < n; i++)
{
DataRowView drv = dvMain[i];
DataRow dr;
int OperationRoomId;
DateTime beginTime, endTime;
OperationRoomId = GetOperationRoomId(drv["OperationRoom"].ToString());
if (OperationRoomId > 0)
{
beginTime = Convert.ToDateTime(drv["BeginDate"]);
endTime = Convert.ToDateTime(drv["EndDate"]);
if (beginTime.Year < year) beginTime = monthFirstDay;
if (endTime.Year < year) endTime = monthLastDay;
///*转换护士值班数据*/
///*SELECT Id, WorkerId, OperationRoomId, nurseType, beginTime, endTime, ScheduleMonth, Remark FROM SchedulingNurseToOperationRoom*/
//DataTable dataTable2 = dtSchedulingNurseToOperationRoom.Clone();
//for (int i = 0, n = dvMain.Count; i < n; i++)
//{
// DataRowView drv = dvMain[i];
// DataRow dr;
// int OperationRoomId;
// DateTime beginTime, endTime;
// OperationRoomId = GetOperationRoomId(drv["OperationRoom"].ToString());
// if (OperationRoomId > 0)
// {
// beginTime = Convert.ToDateTime(drv["BeginDate"]);
// endTime = Convert.ToDateTime(drv["EndDate"]);
// if (beginTime.Year < year) beginTime = monthFirstDay;
// if (endTime.Year < year) endTime = monthLastDay;
dr = dataTable2.NewRow();
dr["WorkerId"] = (int)drv["WorkerId"];
dr["OperationRoomId"] = OperationRoomId;
dr["ScheduleMonth"] = scheduleMonth;
dr["nurseType"] = drv["Role"].ToString();
dr["beginTime"] = beginTime;
dr["endTime"] = endTime;
dr["Remark"] = drv["Remark"].ToString();
dataTable2.Rows.Add(dr);
}
}
// dr = dataTable2.NewRow();
// dr["WorkerId"] = (int)drv["WorkerId"];
// dr["OperationRoomId"] = OperationRoomId;
// dr["ScheduleMonth"] = scheduleMonth;
// dr["nurseType"] = drv["Role"].ToString();
// dr["beginTime"] = beginTime;
// dr["endTime"] = endTime;
// dr["Remark"] = drv["Remark"].ToString();
// dataTable2.Rows.Add(dr);
// }
//}
try
{
foreach (DataGridViewRow item in dataGridView1.Rows)
{
dbHelper.BeginTransaction();
dbHelper.Execute(string.Format("update Person set PersonOrder={0} where Id={1}", item.Cells["ColXh"].Value, item.Cells["WorkerId"].Value));
dbHelper.Commit();
}
dbHelper.BeginTransaction();
dbHelper.Execute(string.Format("delete SchedulingNew where ScheduleMonth={0} and WorkersType=1", scheduleMonth));
dbHelper.Execute(string.Format("delete SchedulingNurseToOperationRoom where ScheduleMonth={0}", scheduleMonth));
int n = dbHelper.DataTableSave(dataTable, "select id, workerId, WorkersType, ScheduleMonth, ScheduleDay, SchedulingType, SchedulingDate, OperatorId, OperatorTime, sbsj, xbsj from SchedulingNew");
n = dbHelper.DataTableSave(dataTable2, "SELECT Id, WorkerId, OperationRoomId, nurseType, beginTime, endTime, ScheduleMonth, Remark FROM SchedulingNurseToOperationRoom");
//n = dbHelper.DataTableSave(dataTable2, "SELECT Id, WorkerId, OperationRoomId, nurseType, beginTime, endTime, ScheduleMonth, Remark FROM SchedulingNurseToOperationRoom");
dbHelper.Commit();
dtMainTable.AcceptChanges();
MessageBox.Show("保存成功。", "提示信息");
@ -1186,15 +1205,14 @@ namespace AIMS.OperationFront.UI
/// <returns></returns>
private bool SchedulingTypeExistsSameName()
{
DataGridView dgv = this.dgvSchedulingType;
int n = dgv.Rows.Count;
int n = dgvSchedulingType.Rows.Count;
bool isok = true;
Dictionary<string, int> dic = new Dictionary<string, int>();
for (int i = n - 1; i >= 0; i--)
{
DataGridViewRow dr = dgv.Rows[i];
string name = dr.Cells["ShiftName"].Value.ToString();
DataGridViewRow drr = dgvSchedulingType.Rows[i];
if (drr.Cells[1].Value == null) continue;
string name = drr.Cells[1].Value.ToString();
if (!string.IsNullOrEmpty(name))
{
if (!dic.ContainsKey(name))
@ -1204,7 +1222,7 @@ namespace AIMS.OperationFront.UI
else
{
MessageBox.Show(string.Format("班次名称:{0}在{1}行和{2}出现重复。", name, dic[name], i + 1), "提示信息");
dgv.CurrentCell = dgv.Rows[i].Cells["ShiftName"];
dgvSchedulingType.CurrentCell = dgvSchedulingType.Rows[i].Cells["ShiftName"];
isok = false;
break;
}
@ -1492,244 +1510,245 @@ namespace AIMS.OperationFront.UI
private void btnAttendance_Click(object sender, EventArgs e)
{
//FrmDeptAttendance form = new FrmDeptAttendance();
//form.Show();
FrmScheduling3 form = new FrmScheduling3();
form.Show();
}
private void btnPrint_Click(object sender, EventArgs e)
{
//try
//{
// /*打印排班表*/
// bool oldChecked = chxOnlyShiftPlan.Checked;
// chxOnlyShiftPlan.Checked = true;
try
{
/*打印排班表*/
bool oldChecked = chxOnlyShiftPlan.Checked;
chxOnlyShiftPlan.Checked = true;
// DateTime dateTime = this.dateTimePicker1.Value;
// int year = dateTime.Year;
// int month = dateTime.Month;
// DateTime monthFirstDay = new DateTime(year, month, 1);
// DateTime monthLastDay = (new DateTime(year, month, 1)).AddMonths(1).AddDays(-1);
// int dayMax = monthLastDay.Day;
DateTime dateTime = this.dateTimePicker1.Value;
int year = dateTime.Year;
int month = dateTime.Month;
DateTime monthFirstDay = new DateTime(year, month, 1);
DateTime monthLastDay = (new DateTime(year, month, 1)).AddMonths(1).AddDays(-1);
int dayMax = monthLastDay.Day;
//DataGridView dgv = this.dataGridView1;
//int rowsCount = dgv.Rows.Count;
//string filepath = string.Format("{0}\\Template\\排班按月.xlt", AppDomain.CurrentDomain.BaseDirectory);
DataGridView dgv = this.dataGridView1;
int rowsCount = dgv.Rows.Count;
string filepath = string.Format("{0}\\Template\\排班按月.xlt", AppDomain.CurrentDomain.BaseDirectory);
//GoldPrinter.ExcelAccess excel = new GoldPrinter.ExcelAccess();
//excel.IsVisibledExcel = false;
//excel.Open(filepath);
//Microsoft.Office.Interop.Excel.Worksheet xlSheet = (Microsoft.Office.Interop.Excel.Worksheet)excel.Workbooks.ActiveSheet;
//string strTitle;
// strTitle = PublicMethod.GetHospitalName();
//excel.SetCellText(1, "A", strTitle);
GoldPrinter.ExcelAccess excel = new GoldPrinter.ExcelAccess();
excel.IsVisibledExcel = false;
excel.Open(filepath);
Microsoft.Office.Interop.Excel.Worksheet xlSheet = (Microsoft.Office.Interop.Excel.Worksheet)excel.Workbooks.ActiveSheet;
string strTitle;
strTitle = PublicMethod.GetHospitalName();
excel.SetCellText(1, "A", strTitle);
///*标题*/
//strTitle = (radioDoctor.Checked) ? "麻醉医生" : "护士";
//excel.SetCellText(2, "A", string.Format("{0}年{1}月 {2}", year, month, strTitle));
//Microsoft.Office.Interop.Excel.Range range;
//DataGridViewRow drv;
/*标题*/
strTitle = (radioDoctor.Checked) ? "麻醉医生" : "护士";
excel.SetCellText(2, "A", string.Format("{0}年{1}月 {2}", year, month, strTitle));
Microsoft.Office.Interop.Excel.Range range;
DataGridViewRow drv;
///*填写16-31日的姓名标题合并姓名单元格*/
//range = xlSheet.Range[xlSheet.Cells[6 + rowsCount, 1], xlSheet.Cells[8 + rowsCount, 1]];
//range.Merge(System.Reflection.Missing.Value);
/*填写16-31日的姓名标题合并姓名单元格*/
range = xlSheet.Range[xlSheet.Cells[6 + rowsCount, 1], xlSheet.Cells[8 + rowsCount, 1]];
range.Merge(System.Reflection.Missing.Value);
//range.Font.Color = Color.Red; //红色
//xlSheet.Cells[6 + rowsCount, 1] = "姓名";
//xlSheet.Cells[6 + rowsCount, 2] = "阴历";
//xlSheet.Cells[7 + rowsCount, 2] = "阳历";
//xlSheet.Cells[8 + rowsCount, 2] = "星期";
range.Font.Color = Color.Red; //红色
xlSheet.Cells[6 + rowsCount, 1] = "姓名";
xlSheet.Cells[6 + rowsCount, 2] = "阴历";
xlSheet.Cells[7 + rowsCount, 2] = "阳历";
xlSheet.Cells[8 + rowsCount, 2] = "星期";
///*设置标题栏红色*/
//range = xlSheet.Range[xlSheet.Cells[3, 2], xlSheet.Cells[5, 20]];
//range.Font.Color = Color.Red; //红色
//range = xlSheet.Range[xlSheet.Cells[6 + rowsCount, 2], xlSheet.Cells[8 + rowsCount, 20]];
//range.Font.Color = Color.Red; //红色
/*设置标题栏红色*/
range = xlSheet.Range[xlSheet.Cells[3, 2], xlSheet.Cells[5, 20]];
range.Font.Color = Color.Red; //红色
range = xlSheet.Range[xlSheet.Cells[6 + rowsCount, 2], xlSheet.Cells[8 + rowsCount, 20]];
range.Font.Color = Color.Red; //红色
///*填写姓名*/
//for (int j = 0; j < rowsCount; j++)
//{
// drv = dgv.Rows[j];
// string name = drv.Cells["colName"].FormattedValue.ToString();
// range = xlSheet.Range[xlSheet.Cells[j + 6, 1], xlSheet.Cells[j + 6, 2]];
// range.Merge(System.Reflection.Missing.Value);
// xlSheet.Cells[j + 6, 1] = name;
/*填写姓名*/
for (int j = 0; j < rowsCount; j++)
{
drv = dgv.Rows[j];
string name = drv.Cells["colName"].FormattedValue.ToString();
range = xlSheet.Range[xlSheet.Cells[j + 6, 1], xlSheet.Cells[j + 6, 2]];
range.Merge(System.Reflection.Missing.Value);
xlSheet.Cells[j + 6, 1] = name;
// range = xlSheet.Range[xlSheet.Cells[j + 9 + rowsCount, 1], xlSheet.Cells[j + 9 + rowsCount, 2]];
// range.Merge(System.Reflection.Missing.Value);
// xlSheet.Cells[j + 9 + rowsCount, 1] = name;
//}
range = xlSheet.Range[xlSheet.Cells[j + 9 + rowsCount, 1], xlSheet.Cells[j + 9 + rowsCount, 2]];
range.Merge(System.Reflection.Missing.Value);
xlSheet.Cells[j + 9 + rowsCount, 1] = name;
}
///*填写日期中的班次*/
//for (int i = 1; i <= dayMax; i++)
//{
// int colIndex;
// if (i <= 16)
// {
// colIndex = i + 2;
// /*填充日期表头*/
// xlSheet.Cells[3, colIndex] = listHeaderDays[i - 1];
// xlSheet.Cells[4, colIndex] = listHeaderChinese[i - 1];
// xlSheet.Cells[5, colIndex] = listHeaderWeek[i - 1];
// for (int j = 0; j < rowsCount; j++)
// {
// xlSheet.Cells[j + 6, colIndex] = dgv.Rows[j].Cells["Date" + i.ToString()].FormattedValue.ToString();
// }
// }
// else
// {
// colIndex = i - 14;
// xlSheet.Cells[6 + rowsCount, colIndex] = listHeaderDays[i - 1];
// xlSheet.Cells[7 + rowsCount, colIndex] = listHeaderChinese[i - 1];
// xlSheet.Cells[8 + rowsCount, colIndex] = listHeaderWeek[i - 1];
// for (int j = 0; j < rowsCount; j++)
// {
// xlSheet.Cells[j + 9 + rowsCount, colIndex] = dgv.Rows[j].Cells["Date" + i.ToString()].FormattedValue;
// }
// }
// Application.DoEvents();
//}
/*填写日期中的班次*/
for (int i = 1; i <= dayMax; i++)
{
int colIndex;
if (i <= 16)
{
colIndex = i + 2;
/*填充日期表头*/
xlSheet.Cells[3, colIndex] = listHeaderDays[i - 1];
xlSheet.Cells[4, colIndex] = listHeaderChinese[i - 1];
xlSheet.Cells[5, colIndex] = listHeaderWeek[i - 1];
for (int j = 0; j < rowsCount; j++)
{
xlSheet.Cells[j + 6, colIndex] = dgv.Rows[j].Cells["Date" + i.ToString()].FormattedValue.ToString();
}
}
else
{
colIndex = i - 14;
xlSheet.Cells[6 + rowsCount, colIndex] = listHeaderDays[i - 1];
xlSheet.Cells[7 + rowsCount, colIndex] = listHeaderChinese[i - 1];
xlSheet.Cells[8 + rowsCount, colIndex] = listHeaderWeek[i - 1];
for (int j = 0; j < rowsCount; j++)
{
xlSheet.Cells[j + 9 + rowsCount, colIndex] = dgv.Rows[j].Cells["Date" + i.ToString()].FormattedValue;
}
}
Application.DoEvents();
}
/////*删除模板中多余的整行*/
//string rowstr = string.Format("{0}:500", rowsCount * 2 + 9);
//range = (Microsoft.Office.Interop.Excel.Range)xlSheet.Rows[rowstr, Type.Missing];
//range.Rows.Delete(Microsoft.Office.Interop.Excel.XlDeleteShiftDirection.xlShiftUp);
///*删除模板中多余的整行*/
string rowstr = string.Format("{0}:500", rowsCount * 2 + 9);
range = (Microsoft.Office.Interop.Excel.Range)xlSheet.Rows[rowstr, Type.Missing];
range.Rows.Delete(Microsoft.Office.Interop.Excel.XlDeleteShiftDirection.xlShiftUp);
///*设置打印为1页宽*/
//xlSheet.PageSetup.FitToPagesWide = 1;
//excel.PrintPreview();
//excel.Close();
//chxOnlyShiftPlan.Checked = oldChecked;
//}
//catch (Exception exp)
//{
// MessageBox.Show(exp.Message);
// PublicMethod.WriteLog(exp, "");
//}
/*设置打印为1页宽*/
xlSheet.PageSetup.FitToPagesWide = 1;
excel.PrintPreview();
excel.Close();
chxOnlyShiftPlan.Checked = oldChecked;
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
PublicMethod.WriteLog(exp, "");
}
}
private void btnPrintAttendance_Click(object sender, EventArgs e)
{
///*打印出缺勤表*/
//DateTime dateTime = this.dateTimePicker1.Value;
//int year = dateTime.Year;
//int month = dateTime.Month;
//DateTime monthFirstDay = new DateTime(year, month, 1);
//DateTime nextMonthFirstDay = monthFirstDay.AddMonths(1);
//int dayMax = nextMonthFirstDay.AddDays(-1).Day;
/*打印出缺勤表*/
DateTime dateTime = this.dateTimePicker1.Value;
int year = dateTime.Year;
int month = dateTime.Month;
DateTime monthFirstDay = new DateTime(year, month, 1);
DateTime nextMonthFirstDay = monthFirstDay.AddMonths(1);
int dayMax = nextMonthFirstDay.AddDays(-1).Day;
//string sql = string.Format("SELECT a.WorkerId, w.[Name], Day(a.SchedulingDate) as [Day], a.WorkersType, a.OverHours, a.LackHours FROM ScheduleOverLackHours a inner join Workers w on a.WorkerId = w.id WHERE SchedulingDate >= '{0}' AND SchedulingDate<'{1}' order by WorkersType desc, w.OrderBy, [Day]", Convert.ToDateTime(monthFirstDay),Convert.ToDateTime(nextMonthFirstDay));
//DataTable dataTable = dbHelper.GetDataTable(sql);
string sql = string.Format("SELECT a.WorkerId, w.[Name], Day(a.SchedulingDate) as [Day], a.WorkersType, a.OverHours, a.LackHours FROM ScheduleOverLackHours a inner join Person w on a.WorkerId = w.id WHERE SchedulingDate >= '{0}' AND SchedulingDate<'{1}' order by WorkersType desc, w.PersonOrder, [Day]", GPFunctions.DateStr(monthFirstDay), GPFunctions.DateStr(nextMonthFirstDay));
System.Data.DataTable dataTable = dbHelper.GetDataTable(sql);
//GoldPrinter.ExcelAccess excel = new GoldPrinter.ExcelAccess();
//excel.IsVisibledExcel = false;
//string filepath = string.Format("{0}\\printTemplate\\职工出缺勤表.xlt", Application.StartupPath);
//excel.Open(filepath);
//Microsoft.Office.Interop.Excel.Worksheet xlSheet = (Microsoft.Office.Interop.Excel.Worksheet)excel.Workbooks.ActiveSheet;
//string strTitle = "职工出(缺)勤表";
//excel.SetCellText(1, "A", strTitle);
//excel.SetCellText(2, "E", string.Format("{0} 年 {1} 月", year, month));
//int rowsCount = dataTable.Rows.Count;
//decimal sumOverHours = 0, sumLackHours = 0;
//int prewWorkId = 0;
//int workerNumber = 0;
//int rowsNumber = 0;
//Microsoft.Office.Interop.Excel.Range range;
//switch (dayMax)
//{
// case 30:
// ((Microsoft.Office.Interop.Excel.Range)xlSheet.Cells[1, 33]).EntireColumn.ColumnWidth = 0;
// break;
// case 29:
// ((Microsoft.Office.Interop.Excel.Range)xlSheet.Cells[1, 33]).EntireColumn.ColumnWidth = 0;
// ((Microsoft.Office.Interop.Excel.Range)xlSheet.Cells[1, 32]).EntireColumn.ColumnWidth = 0;
// break;
// case 28:
// ((Microsoft.Office.Interop.Excel.Range)xlSheet.Cells[1, 33]).EntireColumn.ColumnWidth = 0;
// ((Microsoft.Office.Interop.Excel.Range)xlSheet.Cells[1, 32]).EntireColumn.ColumnWidth = 0;
// ((Microsoft.Office.Interop.Excel.Range)xlSheet.Cells[1, 31]).EntireColumn.ColumnWidth = 0;
// break;
// default:
// break;
//}
//for (int i = 0; i < rowsCount; i++)
//{
// decimal overHours, lackHours;
// DataRow dr = dataTable.Rows[i];
GoldPrinter.ExcelAccess excel = new GoldPrinter.ExcelAccess();
excel.IsVisibledExcel = false;
string filepath = string.Format("{0}\\printTemplate\\职工出缺勤表.xlt", Application.StartupPath);
excel.Open(filepath);
Microsoft.Office.Interop.Excel.Worksheet xlSheet = (Microsoft.Office.Interop.Excel.Worksheet)excel.Workbooks.ActiveSheet;
string strTitle = "职工出(缺)勤表";
excel.SetCellText(1, "A", strTitle);
excel.SetCellText(2, "E", string.Format("{0} 年 {1} 月", year, month));
int rowsCount = dataTable.Rows.Count;
decimal sumOverHours = 0, sumLackHours = 0;
int prewWorkId = 0;
int workerNumber = 0;
int rowsNumber = 0;
Microsoft.Office.Interop.Excel.Range range;
switch (dayMax)
{
case 30:
((Microsoft.Office.Interop.Excel.Range)xlSheet.Cells[1, 33]).EntireColumn.ColumnWidth = 0;
break;
case 29:
((Microsoft.Office.Interop.Excel.Range)xlSheet.Cells[1, 33]).EntireColumn.ColumnWidth = 0;
((Microsoft.Office.Interop.Excel.Range)xlSheet.Cells[1, 32]).EntireColumn.ColumnWidth = 0;
break;
case 28:
((Microsoft.Office.Interop.Excel.Range)xlSheet.Cells[1, 33]).EntireColumn.ColumnWidth = 0;
((Microsoft.Office.Interop.Excel.Range)xlSheet.Cells[1, 32]).EntireColumn.ColumnWidth = 0;
((Microsoft.Office.Interop.Excel.Range)xlSheet.Cells[1, 31]).EntireColumn.ColumnWidth = 0;
break;
default:
break;
}
// int workerId = Convert.ToInt32(dr["WorkerId"]);
// int day = Convert.ToInt32(dr["Day"]);
// overHours = GPFunctions.CDecimal(dr["OverHours"]);
// lackHours = GPFunctions.CDecimal(dr["LackHours"]);
for (int i = 0; i < rowsCount; i++)
{
decimal overHours, lackHours;
DataRow dr = dataTable.Rows[i];
// if (workerId == prewWorkId)
// {
// sumOverHours += overHours;
// sumLackHours += lackHours;
// }
// else
// {
// /*合并姓名单元格, 填入名称*/
// workerNumber++;
// rowsNumber = 4 + (workerNumber - 1) * 2;
// range = xlSheet.Range[xlSheet.Cells[rowsNumber, 1], xlSheet.Cells[rowsNumber + 1, 1]];
// range.Merge(System.Reflection.Missing.Value);
// xlSheet.Cells[rowsNumber, 1] = dr["Name"].ToString();
int workerId = Convert.ToInt32(dr["WorkerId"]);
int day = Convert.ToInt32(dr["Day"]);
overHours = GPFunctions.CDecimal(dr["OverHours"]);
lackHours = GPFunctions.CDecimal(dr["LackHours"]);
// xlSheet.Cells[rowsNumber, 2] = "加班";
// xlSheet.Cells[rowsNumber + 1, 2] = "缺勤";
if (workerId == prewWorkId)
{
sumOverHours += overHours;
sumLackHours += lackHours;
}
else
{
/*合并姓名单元格, 填入名称*/
workerNumber++;
rowsNumber = 4 + (workerNumber - 1) * 2;
range = xlSheet.Range[xlSheet.Cells[rowsNumber, 1], xlSheet.Cells[rowsNumber + 1, 1]];
range.Merge(System.Reflection.Missing.Value);
xlSheet.Cells[rowsNumber, 1] = dr["Name"].ToString();
// range = xlSheet.Range[xlSheet.Cells[rowsNumber, "AI"], xlSheet.Cells[rowsNumber + 1, "AI"]];
// range.Merge(System.Reflection.Missing.Value);
xlSheet.Cells[rowsNumber, 2] = "加班";
xlSheet.Cells[rowsNumber + 1, 2] = "缺勤";
// /*设置缺勤行字体颜色*/
// rowsNumber = rowsNumber + 1;
// range = xlSheet.Range[xlSheet.Cells[rowsNumber, 2], xlSheet.Cells[rowsNumber, 34]];
// range.Font.Color = Color.Red; //红色
range = xlSheet.Range[xlSheet.Cells[rowsNumber, "AI"], xlSheet.Cells[rowsNumber + 1, "AI"]];
range.Merge(System.Reflection.Missing.Value);
// if (workerNumber > 1)
// {
// /*填写上一个职工行的合计数*/
// rowsNumber = 4 + (workerNumber - 2) * 2;
// if (sumOverHours > 0) xlSheet.Cells[rowsNumber, "AH"] = sumOverHours;
// if (sumLackHours > 0) xlSheet.Cells[rowsNumber + 1, "AH"] = sumLackHours;
/*设置缺勤行字体颜色*/
rowsNumber = rowsNumber + 1;
range = xlSheet.Range[xlSheet.Cells[rowsNumber, 2], xlSheet.Cells[rowsNumber, 34]];
range.Font.Color = Color.Red; //红色
// /*合并累计单元格*/
// xlSheet.Cells[rowsNumber, "AI"] = sumOverHours - sumLackHours;
// if (sumOverHours - sumLackHours < 0)
// {
// /*累计小于0红色显示*/
// range.Font.Color = Color.Red; //红色
// }
// }
// sumOverHours = overHours;
// sumLackHours = lackHours;
if (workerNumber > 1)
{
/*填写上一个职工行的合计数*/
rowsNumber = 4 + (workerNumber - 2) * 2;
if (sumOverHours > 0) xlSheet.Cells[rowsNumber, "AH"] = sumOverHours;
if (sumLackHours > 0) xlSheet.Cells[rowsNumber + 1, "AH"] = sumLackHours;
// prewWorkId = workerId;
// }
// /*填入加班和缺勤缺勤小时数*/
// rowsNumber = 4 + (workerNumber - 1) * 2;
// if (overHours > 0) xlSheet.Cells[rowsNumber, 2 + day] = overHours;
// if (lackHours > 0) xlSheet.Cells[rowsNumber + 1, 2 + day] = lackHours;
/*合并累计单元格*/
xlSheet.Cells[rowsNumber, "AI"] = sumOverHours - sumLackHours;
if (sumOverHours - sumLackHours < 0)
{
/*累计小于0红色显示*/
range.Font.Color = Color.Red; //红色
}
}
sumOverHours = overHours;
sumLackHours = lackHours;
// Application.DoEvents();
//}
prewWorkId = workerId;
}
/*填入加班和缺勤缺勤小时数*/
rowsNumber = 4 + (workerNumber - 1) * 2;
if (overHours > 0) xlSheet.Cells[rowsNumber, 2 + day] = overHours;
if (lackHours > 0) xlSheet.Cells[rowsNumber + 1, 2 + day] = lackHours;
//if (workerNumber > 0)
//{
// /*填写最后一个职工行的合计数*/
// rowsNumber = 4 + (workerNumber - 1) * 2;
// if (sumOverHours > 0) xlSheet.Cells[rowsNumber, "AH"] = sumOverHours;
// if (sumLackHours > 0) xlSheet.Cells[rowsNumber + 1, "AH"] = sumLackHours;
// xlSheet.Cells[rowsNumber, "AI"] = sumOverHours - sumLackHours;
// if (sumOverHours - sumLackHours < 0)
// {
// /*累计小于0红色显示*/
// range = xlSheet.Range[xlSheet.Cells[rowsNumber, "AI"], xlSheet.Cells[rowsNumber, "AI"]];
// range.Font.Color = Color.Red; //红色
// }
//}
//excel.PrintPreview();
//excel.Close();
Application.DoEvents();
}
if (workerNumber > 0)
{
/*填写最后一个职工行的合计数*/
rowsNumber = 4 + (workerNumber - 1) * 2;
if (sumOverHours > 0) xlSheet.Cells[rowsNumber, "AH"] = sumOverHours;
if (sumLackHours > 0) xlSheet.Cells[rowsNumber + 1, "AH"] = sumLackHours;
xlSheet.Cells[rowsNumber, "AI"] = sumOverHours - sumLackHours;
if (sumOverHours - sumLackHours < 0)
{
/*累计小于0红色显示*/
range = xlSheet.Range[xlSheet.Cells[rowsNumber, "AI"], xlSheet.Cells[rowsNumber, "AI"]];
range.Font.Color = Color.Red; //红色
}
}
excel.PrintPreview();
excel.Close();
}
private void btnUp_Click(object sender, EventArgs e)

View File

@ -231,9 +231,9 @@
this.panelAll.Controls.Add(this.panelTop);
this.panelAll.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelAll.Location = new System.Drawing.Point(0, 0);
this.panelAll.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panelAll.Margin = new System.Windows.Forms.Padding(2);
this.panelAll.Name = "panelAll";
this.panelAll.Size = new System.Drawing.Size(1887, 794);
this.panelAll.Size = new System.Drawing.Size(1415, 635);
this.panelAll.TabIndex = 0;
//
// panelBody
@ -241,10 +241,10 @@
this.panelBody.Controls.Add(this.panelBodyB);
this.panelBody.Controls.Add(this.panelBodyT);
this.panelBody.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelBody.Location = new System.Drawing.Point(0, 42);
this.panelBody.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panelBody.Location = new System.Drawing.Point(0, 34);
this.panelBody.Margin = new System.Windows.Forms.Padding(2);
this.panelBody.Name = "panelBody";
this.panelBody.Size = new System.Drawing.Size(1887, 752);
this.panelBody.Size = new System.Drawing.Size(1415, 601);
this.panelBody.TabIndex = 1;
//
// panelBodyB
@ -253,10 +253,10 @@
this.panelBodyB.Controls.Add(this.dataGridView1);
this.panelBodyB.Controls.Add(this.panel4);
this.panelBodyB.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelBodyB.Location = new System.Drawing.Point(0, 291);
this.panelBodyB.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panelBodyB.Location = new System.Drawing.Point(0, 233);
this.panelBodyB.Margin = new System.Windows.Forms.Padding(2);
this.panelBodyB.Name = "panelBodyB";
this.panelBodyB.Size = new System.Drawing.Size(1887, 461);
this.panelBodyB.Size = new System.Drawing.Size(1415, 368);
this.panelBodyB.TabIndex = 2;
//
// dataGridView1
@ -315,8 +315,8 @@
this.Date31,
this.Remark});
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 52);
this.dataGridView1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.dataGridView1.Location = new System.Drawing.Point(0, 42);
this.dataGridView1.Margin = new System.Windows.Forms.Padding(2);
this.dataGridView1.MultiSelect = false;
this.dataGridView1.Name = "dataGridView1";
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
@ -330,7 +330,7 @@
this.dataGridView1.RowHeadersWidth = 51;
this.dataGridView1.RowTemplate.Height = 27;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView1.Size = new System.Drawing.Size(1885, 407);
this.dataGridView1.Size = new System.Drawing.Size(1413, 324);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dataGridView1_CellMouseDown);
this.dataGridView1.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellValueChanged);
@ -836,18 +836,18 @@
this.panel4.Controls.Add(this.labelScheduling);
this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
this.panel4.Location = new System.Drawing.Point(0, 0);
this.panel4.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel4.Margin = new System.Windows.Forms.Padding(2);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(1885, 52);
this.panel4.Size = new System.Drawing.Size(1413, 42);
this.panel4.TabIndex = 1;
//
// chxModified
//
this.chxModified.AutoSize = true;
this.chxModified.Location = new System.Drawing.Point(779, 18);
this.chxModified.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.chxModified.Location = new System.Drawing.Point(584, 14);
this.chxModified.Margin = new System.Windows.Forms.Padding(2);
this.chxModified.Name = "chxModified";
this.chxModified.Size = new System.Drawing.Size(134, 19);
this.chxModified.Size = new System.Drawing.Size(108, 16);
this.chxModified.TabIndex = 17;
this.chxModified.Text = "只显示可用班次";
this.chxModified.UseVisualStyleBackColor = true;
@ -855,10 +855,10 @@
//
// btnClearChecked
//
this.btnClearChecked.Location = new System.Drawing.Point(643, 9);
this.btnClearChecked.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnClearChecked.Location = new System.Drawing.Point(482, 7);
this.btnClearChecked.Margin = new System.Windows.Forms.Padding(2);
this.btnClearChecked.Name = "btnClearChecked";
this.btnClearChecked.Size = new System.Drawing.Size(116, 35);
this.btnClearChecked.Size = new System.Drawing.Size(87, 28);
this.btnClearChecked.TabIndex = 16;
this.btnClearChecked.Text = "清空选择";
this.btnClearChecked.UseVisualStyleBackColor = true;
@ -866,10 +866,10 @@
//
// btnFresh
//
this.btnFresh.Location = new System.Drawing.Point(1467, 9);
this.btnFresh.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnFresh.Location = new System.Drawing.Point(1100, 7);
this.btnFresh.Margin = new System.Windows.Forms.Padding(2);
this.btnFresh.Name = "btnFresh";
this.btnFresh.Size = new System.Drawing.Size(75, 35);
this.btnFresh.Size = new System.Drawing.Size(56, 28);
this.btnFresh.TabIndex = 15;
this.btnFresh.Text = "刷新";
this.btnFresh.UseVisualStyleBackColor = true;
@ -877,10 +877,9 @@
//
// btnDown
//
this.btnDown.Location = new System.Drawing.Point(508, 9);
this.btnDown.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnDown.Location = new System.Drawing.Point(381, 7);
this.btnDown.Name = "btnDown";
this.btnDown.Size = new System.Drawing.Size(100, 35);
this.btnDown.Size = new System.Drawing.Size(75, 28);
this.btnDown.TabIndex = 14;
this.btnDown.Text = "↓向下";
this.btnDown.UseVisualStyleBackColor = true;
@ -888,10 +887,10 @@
//
// btnPrint
//
this.btnPrint.Location = new System.Drawing.Point(1061, 9);
this.btnPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnPrint.Location = new System.Drawing.Point(796, 7);
this.btnPrint.Margin = new System.Windows.Forms.Padding(2);
this.btnPrint.Name = "btnPrint";
this.btnPrint.Size = new System.Drawing.Size(75, 35);
this.btnPrint.Size = new System.Drawing.Size(56, 28);
this.btnPrint.TabIndex = 7;
this.btnPrint.Text = "打印";
this.btnPrint.UseVisualStyleBackColor = true;
@ -899,10 +898,9 @@
//
// btnUp
//
this.btnUp.Location = new System.Drawing.Point(375, 9);
this.btnUp.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnUp.Location = new System.Drawing.Point(281, 7);
this.btnUp.Name = "btnUp";
this.btnUp.Size = new System.Drawing.Size(100, 35);
this.btnUp.Size = new System.Drawing.Size(75, 28);
this.btnUp.TabIndex = 13;
this.btnUp.Text = "↑向上";
this.btnUp.UseVisualStyleBackColor = true;
@ -911,10 +909,10 @@
// chxOnlyShiftPlan
//
this.chxOnlyShiftPlan.AutoSize = true;
this.chxOnlyShiftPlan.Location = new System.Drawing.Point(1572, 16);
this.chxOnlyShiftPlan.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.chxOnlyShiftPlan.Location = new System.Drawing.Point(1179, 13);
this.chxOnlyShiftPlan.Margin = new System.Windows.Forms.Padding(2);
this.chxOnlyShiftPlan.Name = "chxOnlyShiftPlan";
this.chxOnlyShiftPlan.Size = new System.Drawing.Size(134, 19);
this.chxOnlyShiftPlan.Size = new System.Drawing.Size(108, 16);
this.chxOnlyShiftPlan.TabIndex = 12;
this.chxOnlyShiftPlan.Text = "只显示排班数据";
this.chxOnlyShiftPlan.UseVisualStyleBackColor = true;
@ -922,10 +920,10 @@
//
// btnSave
//
this.btnSave.Location = new System.Drawing.Point(929, 9);
this.btnSave.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnSave.Location = new System.Drawing.Point(697, 7);
this.btnSave.Margin = new System.Windows.Forms.Padding(2);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(75, 35);
this.btnSave.Size = new System.Drawing.Size(56, 28);
this.btnSave.TabIndex = 4;
this.btnSave.Text = "保存";
this.btnSave.UseVisualStyleBackColor = true;
@ -933,19 +931,19 @@
//
// textFind
//
this.textFind.Location = new System.Drawing.Point(172, 12);
this.textFind.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.textFind.Location = new System.Drawing.Point(129, 10);
this.textFind.Margin = new System.Windows.Forms.Padding(2);
this.textFind.Name = "textFind";
this.textFind.Size = new System.Drawing.Size(171, 25);
this.textFind.Size = new System.Drawing.Size(129, 21);
this.textFind.TabIndex = 1;
this.textFind.TextChanged += new System.EventHandler(this.textFind_TextChanged);
//
// btnExcel
//
this.btnExcel.Location = new System.Drawing.Point(1187, 9);
this.btnExcel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnExcel.Location = new System.Drawing.Point(890, 7);
this.btnExcel.Margin = new System.Windows.Forms.Padding(2);
this.btnExcel.Name = "btnExcel";
this.btnExcel.Size = new System.Drawing.Size(113, 35);
this.btnExcel.Size = new System.Drawing.Size(85, 28);
this.btnExcel.TabIndex = 5;
this.btnExcel.Text = "导出Excel";
this.btnExcel.UseVisualStyleBackColor = true;
@ -953,10 +951,10 @@
//
// btnDelete
//
this.btnDelete.Location = new System.Drawing.Point(1325, 9);
this.btnDelete.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnDelete.Location = new System.Drawing.Point(994, 7);
this.btnDelete.Margin = new System.Windows.Forms.Padding(2);
this.btnDelete.Name = "btnDelete";
this.btnDelete.Size = new System.Drawing.Size(105, 35);
this.btnDelete.Size = new System.Drawing.Size(79, 28);
this.btnDelete.TabIndex = 8;
this.btnDelete.Text = "清除排班";
this.btnDelete.UseVisualStyleBackColor = true;
@ -965,9 +963,10 @@
// labelScheduling
//
this.labelScheduling.AutoSize = true;
this.labelScheduling.Location = new System.Drawing.Point(19, 16);
this.labelScheduling.Location = new System.Drawing.Point(14, 13);
this.labelScheduling.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.labelScheduling.Name = "labelScheduling";
this.labelScheduling.Size = new System.Drawing.Size(127, 15);
this.labelScheduling.Size = new System.Drawing.Size(101, 12);
this.labelScheduling.TabIndex = 9;
this.labelScheduling.Text = "麻醉医生排班计划";
//
@ -978,9 +977,9 @@
this.panelBodyT.Controls.Add(this.panel1);
this.panelBodyT.Dock = System.Windows.Forms.DockStyle.Top;
this.panelBodyT.Location = new System.Drawing.Point(0, 0);
this.panelBodyT.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panelBodyT.Margin = new System.Windows.Forms.Padding(2);
this.panelBodyT.Name = "panelBodyT";
this.panelBodyT.Size = new System.Drawing.Size(1887, 291);
this.panelBodyT.Size = new System.Drawing.Size(1415, 233);
this.panelBodyT.TabIndex = 1;
//
// panel2
@ -988,10 +987,10 @@
this.panel2.Controls.Add(this.dgvShiftPlan);
this.panel2.Controls.Add(this.panel2Top);
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(611, 0);
this.panel2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel2.Location = new System.Drawing.Point(458, 0);
this.panel2.Margin = new System.Windows.Forms.Padding(2);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1274, 289);
this.panel2.Size = new System.Drawing.Size(955, 231);
this.panel2.TabIndex = 1;
//
// dgvShiftPlan
@ -1025,8 +1024,8 @@
this.Day13});
this.dgvShiftPlan.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvShiftPlan.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter;
this.dgvShiftPlan.Location = new System.Drawing.Point(0, 36);
this.dgvShiftPlan.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.dgvShiftPlan.Location = new System.Drawing.Point(0, 29);
this.dgvShiftPlan.Margin = new System.Windows.Forms.Padding(2);
this.dgvShiftPlan.MultiSelect = false;
this.dgvShiftPlan.Name = "dgvShiftPlan";
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
@ -1041,7 +1040,7 @@
this.dgvShiftPlan.RowHeadersWidth = 45;
this.dgvShiftPlan.RowTemplate.Height = 27;
this.dgvShiftPlan.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvShiftPlan.Size = new System.Drawing.Size(1274, 253);
this.dgvShiftPlan.Size = new System.Drawing.Size(955, 202);
this.dgvShiftPlan.TabIndex = 4;
this.dgvShiftPlan.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvShiftPlan_DataError);
//
@ -1215,17 +1214,17 @@
this.panel2Top.Controls.Add(this.label2);
this.panel2Top.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2Top.Location = new System.Drawing.Point(0, 0);
this.panel2Top.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel2Top.Margin = new System.Windows.Forms.Padding(2);
this.panel2Top.Name = "panel2Top";
this.panel2Top.Size = new System.Drawing.Size(1274, 36);
this.panel2Top.Size = new System.Drawing.Size(955, 29);
this.panel2Top.TabIndex = 0;
//
// btnShiftPlanDelete
//
this.btnShiftPlanDelete.Location = new System.Drawing.Point(576, 2);
this.btnShiftPlanDelete.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnShiftPlanDelete.Location = new System.Drawing.Point(432, 2);
this.btnShiftPlanDelete.Margin = new System.Windows.Forms.Padding(2);
this.btnShiftPlanDelete.Name = "btnShiftPlanDelete";
this.btnShiftPlanDelete.Size = new System.Drawing.Size(75, 31);
this.btnShiftPlanDelete.Size = new System.Drawing.Size(56, 25);
this.btnShiftPlanDelete.TabIndex = 12;
this.btnShiftPlanDelete.Text = "删除";
this.btnShiftPlanDelete.UseVisualStyleBackColor = true;
@ -1233,10 +1232,10 @@
//
// btnShiftPlanFresh
//
this.btnShiftPlanFresh.Location = new System.Drawing.Point(451, 2);
this.btnShiftPlanFresh.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnShiftPlanFresh.Location = new System.Drawing.Point(338, 2);
this.btnShiftPlanFresh.Margin = new System.Windows.Forms.Padding(2);
this.btnShiftPlanFresh.Name = "btnShiftPlanFresh";
this.btnShiftPlanFresh.Size = new System.Drawing.Size(75, 31);
this.btnShiftPlanFresh.Size = new System.Drawing.Size(56, 25);
this.btnShiftPlanFresh.TabIndex = 9;
this.btnShiftPlanFresh.Text = "刷新";
this.btnShiftPlanFresh.UseVisualStyleBackColor = true;
@ -1244,10 +1243,10 @@
//
// btnShiptPlanSave
//
this.btnShiptPlanSave.Location = new System.Drawing.Point(319, 2);
this.btnShiptPlanSave.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnShiptPlanSave.Location = new System.Drawing.Point(239, 2);
this.btnShiptPlanSave.Margin = new System.Windows.Forms.Padding(2);
this.btnShiptPlanSave.Name = "btnShiptPlanSave";
this.btnShiptPlanSave.Size = new System.Drawing.Size(75, 31);
this.btnShiptPlanSave.Size = new System.Drawing.Size(56, 25);
this.btnShiptPlanSave.TabIndex = 8;
this.btnShiptPlanSave.Text = "保存";
this.btnShiptPlanSave.UseVisualStyleBackColor = true;
@ -1256,9 +1255,10 @@
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(16, 12);
this.label2.Location = new System.Drawing.Point(12, 10);
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(67, 15);
this.label2.Size = new System.Drawing.Size(53, 12);
this.label2.TabIndex = 5;
this.label2.Text = "轮班计划";
//
@ -1268,9 +1268,9 @@
this.panel1.Controls.Add(this.panel1Top);
this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel1.Margin = new System.Windows.Forms.Padding(2);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(611, 289);
this.panel1.Size = new System.Drawing.Size(458, 231);
this.panel1.TabIndex = 0;
//
// dgvSchedulingType
@ -1293,8 +1293,8 @@
this.EndTime,
this.IsValid});
this.dgvSchedulingType.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgvSchedulingType.Location = new System.Drawing.Point(0, 36);
this.dgvSchedulingType.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.dgvSchedulingType.Location = new System.Drawing.Point(0, 29);
this.dgvSchedulingType.Margin = new System.Windows.Forms.Padding(2);
this.dgvSchedulingType.Name = "dgvSchedulingType";
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control;
@ -1308,7 +1308,7 @@
this.dgvSchedulingType.RowHeadersWidth = 45;
this.dgvSchedulingType.RowTemplate.Height = 27;
this.dgvSchedulingType.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dgvSchedulingType.Size = new System.Drawing.Size(611, 253);
this.dgvSchedulingType.Size = new System.Drawing.Size(458, 202);
this.dgvSchedulingType.TabIndex = 3;
this.dgvSchedulingType.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSchedulingType_CellEndEdit);
this.dgvSchedulingType.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvSchedulingType_DataError);
@ -1369,18 +1369,18 @@
this.panel1Top.Controls.Add(this.labelDoctorNurse);
this.panel1Top.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1Top.Location = new System.Drawing.Point(0, 0);
this.panel1Top.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel1Top.Margin = new System.Windows.Forms.Padding(2);
this.panel1Top.Name = "panel1Top";
this.panel1Top.Size = new System.Drawing.Size(611, 36);
this.panel1Top.Size = new System.Drawing.Size(458, 29);
this.panel1Top.TabIndex = 2;
//
// chxHasInvaild
//
this.chxHasInvaild.AutoSize = true;
this.chxHasInvaild.Location = new System.Drawing.Point(132, 8);
this.chxHasInvaild.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.chxHasInvaild.Location = new System.Drawing.Point(99, 6);
this.chxHasInvaild.Margin = new System.Windows.Forms.Padding(2);
this.chxHasInvaild.Name = "chxHasInvaild";
this.chxHasInvaild.Size = new System.Drawing.Size(119, 19);
this.chxHasInvaild.Size = new System.Drawing.Size(96, 16);
this.chxHasInvaild.TabIndex = 16;
this.chxHasInvaild.Text = "显示全部班次";
this.chxHasInvaild.UseVisualStyleBackColor = true;
@ -1388,10 +1388,10 @@
//
// btnShiftDelete
//
this.btnShiftDelete.Location = new System.Drawing.Point(508, 2);
this.btnShiftDelete.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnShiftDelete.Location = new System.Drawing.Point(381, 2);
this.btnShiftDelete.Margin = new System.Windows.Forms.Padding(2);
this.btnShiftDelete.Name = "btnShiftDelete";
this.btnShiftDelete.Size = new System.Drawing.Size(75, 31);
this.btnShiftDelete.Size = new System.Drawing.Size(56, 25);
this.btnShiftDelete.TabIndex = 11;
this.btnShiftDelete.Text = "删除";
this.btnShiftDelete.UseVisualStyleBackColor = true;
@ -1399,10 +1399,10 @@
//
// btnShiftFresh
//
this.btnShiftFresh.Location = new System.Drawing.Point(415, 2);
this.btnShiftFresh.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnShiftFresh.Location = new System.Drawing.Point(311, 2);
this.btnShiftFresh.Margin = new System.Windows.Forms.Padding(2);
this.btnShiftFresh.Name = "btnShiftFresh";
this.btnShiftFresh.Size = new System.Drawing.Size(75, 31);
this.btnShiftFresh.Size = new System.Drawing.Size(56, 25);
this.btnShiftFresh.TabIndex = 10;
this.btnShiftFresh.Text = "刷新";
this.btnShiftFresh.UseVisualStyleBackColor = true;
@ -1410,10 +1410,10 @@
//
// btnShiftSave
//
this.btnShiftSave.Location = new System.Drawing.Point(319, 2);
this.btnShiftSave.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnShiftSave.Location = new System.Drawing.Point(239, 2);
this.btnShiftSave.Margin = new System.Windows.Forms.Padding(2);
this.btnShiftSave.Name = "btnShiftSave";
this.btnShiftSave.Size = new System.Drawing.Size(75, 31);
this.btnShiftSave.Size = new System.Drawing.Size(56, 25);
this.btnShiftSave.TabIndex = 9;
this.btnShiftSave.Text = "保存";
this.btnShiftSave.UseVisualStyleBackColor = true;
@ -1422,9 +1422,10 @@
// labelDoctorNurse
//
this.labelDoctorNurse.AutoSize = true;
this.labelDoctorNurse.Location = new System.Drawing.Point(12, 10);
this.labelDoctorNurse.Location = new System.Drawing.Point(9, 8);
this.labelDoctorNurse.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.labelDoctorNurse.Name = "labelDoctorNurse";
this.labelDoctorNurse.Size = new System.Drawing.Size(67, 15);
this.labelDoctorNurse.Size = new System.Drawing.Size(53, 12);
this.labelDoctorNurse.TabIndex = 0;
this.labelDoctorNurse.Text = "班次设置";
//
@ -1433,9 +1434,9 @@
this.panelTop.Controls.Add(this.panelTopT);
this.panelTop.Dock = System.Windows.Forms.DockStyle.Top;
this.panelTop.Location = new System.Drawing.Point(0, 0);
this.panelTop.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panelTop.Margin = new System.Windows.Forms.Padding(2);
this.panelTop.Name = "panelTop";
this.panelTop.Size = new System.Drawing.Size(1887, 42);
this.panelTop.Size = new System.Drawing.Size(1415, 34);
this.panelTop.TabIndex = 0;
//
// panelTopT
@ -1448,17 +1449,17 @@
this.panelTopT.Controls.Add(this.panel3);
this.panelTopT.Dock = System.Windows.Forms.DockStyle.Top;
this.panelTopT.Location = new System.Drawing.Point(0, 0);
this.panelTopT.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panelTopT.Margin = new System.Windows.Forms.Padding(2);
this.panelTopT.Name = "panelTopT";
this.panelTopT.Size = new System.Drawing.Size(1887, 42);
this.panelTopT.Size = new System.Drawing.Size(1415, 34);
this.panelTopT.TabIndex = 2;
//
// btnPrintAttendance
//
this.btnPrintAttendance.Location = new System.Drawing.Point(1276, 4);
this.btnPrintAttendance.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnPrintAttendance.Location = new System.Drawing.Point(957, 3);
this.btnPrintAttendance.Margin = new System.Windows.Forms.Padding(2);
this.btnPrintAttendance.Name = "btnPrintAttendance";
this.btnPrintAttendance.Size = new System.Drawing.Size(121, 35);
this.btnPrintAttendance.Size = new System.Drawing.Size(91, 28);
this.btnPrintAttendance.TabIndex = 8;
this.btnPrintAttendance.Text = "打印出缺勤表";
this.btnPrintAttendance.UseVisualStyleBackColor = true;
@ -1466,13 +1467,13 @@
//
// dateTimePicker1
//
this.dateTimePicker1.CustomFormat = "yyyy年MM月dd";
this.dateTimePicker1.CustomFormat = "yyyy年MM月";
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker1.Location = new System.Drawing.Point(281, 8);
this.dateTimePicker1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.dateTimePicker1.Location = new System.Drawing.Point(211, 6);
this.dateTimePicker1.Margin = new System.Windows.Forms.Padding(2);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.ShowUpDown = true;
this.dateTimePicker1.Size = new System.Drawing.Size(103, 25);
this.dateTimePicker1.Size = new System.Drawing.Size(85, 21);
this.dateTimePicker1.TabIndex = 1;
this.dateTimePicker1.Value = new System.DateTime(2020, 2, 9, 0, 0, 0, 0);
this.dateTimePicker1.ValueChanged += new System.EventHandler(this.dateTimePicker1_ValueChanged);
@ -1480,18 +1481,19 @@
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(224, 15);
this.label1.Location = new System.Drawing.Point(168, 12);
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(52, 15);
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 0;
this.label1.Text = "月份:";
//
// btnAttendance
//
this.btnAttendance.Location = new System.Drawing.Point(1116, 4);
this.btnAttendance.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnAttendance.Location = new System.Drawing.Point(837, 3);
this.btnAttendance.Margin = new System.Windows.Forms.Padding(2);
this.btnAttendance.Name = "btnAttendance";
this.btnAttendance.Size = new System.Drawing.Size(131, 35);
this.btnAttendance.Size = new System.Drawing.Size(98, 28);
this.btnAttendance.TabIndex = 11;
this.btnAttendance.Text = "填写出勤缺勤";
this.btnAttendance.UseVisualStyleBackColor = true;
@ -1501,9 +1503,10 @@
//
this.labelTitle.AutoSize = true;
this.labelTitle.Font = new System.Drawing.Font("楷体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labelTitle.Location = new System.Drawing.Point(444, 8);
this.labelTitle.Location = new System.Drawing.Point(333, 6);
this.labelTitle.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.labelTitle.Name = "labelTitle";
this.labelTitle.Size = new System.Drawing.Size(228, 25);
this.labelTitle.Size = new System.Drawing.Size(177, 20);
this.labelTitle.TabIndex = 3;
this.labelTitle.Text = "麻醉医生排班管理";
//
@ -1511,19 +1514,19 @@
//
this.panel3.Controls.Add(this.radioNurse);
this.panel3.Controls.Add(this.radioDoctor);
this.panel3.Location = new System.Drawing.Point(9, 2);
this.panel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.panel3.Location = new System.Drawing.Point(7, 2);
this.panel3.Margin = new System.Windows.Forms.Padding(2);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(188, 38);
this.panel3.Size = new System.Drawing.Size(141, 30);
this.panel3.TabIndex = 2;
//
// radioNurse
//
this.radioNurse.AutoSize = true;
this.radioNurse.Location = new System.Drawing.Point(124, 8);
this.radioNurse.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.radioNurse.Location = new System.Drawing.Point(93, 6);
this.radioNurse.Margin = new System.Windows.Forms.Padding(2);
this.radioNurse.Name = "radioNurse";
this.radioNurse.Size = new System.Drawing.Size(58, 19);
this.radioNurse.Size = new System.Drawing.Size(47, 16);
this.radioNurse.TabIndex = 1;
this.radioNurse.Text = "护士";
this.radioNurse.UseVisualStyleBackColor = true;
@ -1533,10 +1536,10 @@
//
this.radioDoctor.AutoSize = true;
this.radioDoctor.Checked = true;
this.radioDoctor.Location = new System.Drawing.Point(9, 8);
this.radioDoctor.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.radioDoctor.Location = new System.Drawing.Point(7, 6);
this.radioDoctor.Margin = new System.Windows.Forms.Padding(2);
this.radioDoctor.Name = "radioDoctor";
this.radioDoctor.Size = new System.Drawing.Size(88, 19);
this.radioDoctor.Size = new System.Drawing.Size(71, 16);
this.radioDoctor.TabIndex = 0;
this.radioDoctor.TabStop = true;
this.radioDoctor.Text = "麻醉医生";
@ -2165,12 +2168,12 @@
//
// FrmScheduling2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1887, 794);
this.ClientSize = new System.Drawing.Size(1415, 635);
this.Controls.Add(this.panelAll);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Margin = new System.Windows.Forms.Padding(2);
this.MinimizeBox = false;
this.Name = "FrmScheduling2";
this.Text = "排班管理";

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,817 @@
namespace AIMS.OperationFront.UI
{
partial class FrmScheduling3
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmScheduling3));
this.panelAll = new System.Windows.Forms.Panel();
this.panelBody = new System.Windows.Forms.Panel();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.WorkerCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.WorkerName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.RoleName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.SchedulingTypeName = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.BeginTime2 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
this.EndTime2 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
this.Overtime1 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
this.Overtime2 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
this.OverHours = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.LackTime1 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
this.LackTime2 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn();
this.LackHours = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.SchedulingTypeId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panelTop = new System.Windows.Forms.Panel();
this.btnPrint = new System.Windows.Forms.Button();
this.chxLackTime = new System.Windows.Forms.CheckBox();
this.chxOverTime = new System.Windows.Forms.CheckBox();
this.chxInvalidWorker = new System.Windows.Forms.CheckBox();
this.button1 = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.radioNurse = new System.Windows.Forms.RadioButton();
this.radioDoctor = new System.Windows.Forms.RadioButton();
this.label2 = new System.Windows.Forms.Label();
this.textFind = new System.Windows.Forms.TextBox();
this.btnSave = new System.Windows.Forms.Button();
this.btnFresh = new System.Windows.Forms.Button();
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.label1 = new System.Windows.Forms.Label();
this.panelBottom = new System.Windows.Forms.Panel();
this.label3 = new System.Windows.Forms.Label();
this.labelTotal = new System.Windows.Forms.Label();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewComboBoxColumn1 = new System.Windows.Forms.DataGridViewComboBoxColumn();
this.panelAll.SuspendLayout();
this.panelBody.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.panelTop.SuspendLayout();
this.panel1.SuspendLayout();
this.panelBottom.SuspendLayout();
this.SuspendLayout();
//
// panelAll
//
this.panelAll.Controls.Add(this.panelBody);
this.panelAll.Controls.Add(this.panelTop);
this.panelAll.Controls.Add(this.panelBottom);
this.panelAll.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelAll.Location = new System.Drawing.Point(0, 0);
this.panelAll.Margin = new System.Windows.Forms.Padding(2);
this.panelAll.Name = "panelAll";
this.panelAll.Size = new System.Drawing.Size(1273, 616);
this.panelAll.TabIndex = 0;
//
// panelBody
//
this.panelBody.Controls.Add(this.dataGridView1);
this.panelBody.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelBody.Location = new System.Drawing.Point(0, 33);
this.panelBody.Margin = new System.Windows.Forms.Padding(2);
this.panelBody.Name = "panelBody";
this.panelBody.Size = new System.Drawing.Size(1273, 549);
this.panelBody.TabIndex = 1;
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle20.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle20;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.WorkerCode,
this.WorkerName,
this.RoleName,
this.SchedulingTypeName,
this.BeginTime2,
this.EndTime2,
this.Overtime1,
this.Overtime2,
this.OverHours,
this.LackTime1,
this.LackTime2,
this.LackHours,
this.SchedulingTypeId});
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 0);
this.dataGridView1.Margin = new System.Windows.Forms.Padding(2);
this.dataGridView1.MultiSelect = false;
this.dataGridView1.Name = "dataGridView1";
dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle27.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle27.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle27.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle27.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle27.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle27;
this.dataGridView1.RowTemplate.Height = 27;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView1.Size = new System.Drawing.Size(1273, 549);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dataGridView1_CellBeginEdit);
this.dataGridView1.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellValueChanged);
this.dataGridView1.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dataGridView1_DataError);
//
// WorkerCode
//
this.WorkerCode.DataPropertyName = "WorkNo";
dataGridViewCellStyle21.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.WorkerCode.DefaultCellStyle = dataGridViewCellStyle21;
this.WorkerCode.HeaderText = "员工编号";
this.WorkerCode.Name = "WorkerCode";
this.WorkerCode.ReadOnly = true;
//
// WorkerName
//
this.WorkerName.DataPropertyName = "Name";
dataGridViewCellStyle22.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.WorkerName.DefaultCellStyle = dataGridViewCellStyle22;
this.WorkerName.HeaderText = "姓名";
this.WorkerName.Name = "WorkerName";
this.WorkerName.ReadOnly = true;
//
// RoleName
//
this.RoleName.DataPropertyName = "RoleName";
dataGridViewCellStyle23.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.RoleName.DefaultCellStyle = dataGridViewCellStyle23;
this.RoleName.HeaderText = "角色";
this.RoleName.Name = "RoleName";
this.RoleName.ReadOnly = true;
this.RoleName.Width = 80;
//
// SchedulingTypeName
//
this.SchedulingTypeName.DataPropertyName = "SchedulingTypeName";
dataGridViewCellStyle24.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.SchedulingTypeName.DefaultCellStyle = dataGridViewCellStyle24;
this.SchedulingTypeName.HeaderText = "班次";
this.SchedulingTypeName.Name = "SchedulingTypeName";
this.SchedulingTypeName.ReadOnly = true;
this.SchedulingTypeName.Resizable = System.Windows.Forms.DataGridViewTriState.True;
//
// BeginTime2
//
//
//
//
this.BeginTime2.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
this.BeginTime2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.BeginTime2.CustomFormat = "d日HH:mm";
this.BeginTime2.DataPropertyName = "BeginTime2";
dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle25.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.BeginTime2.DefaultCellStyle = dataGridViewCellStyle25;
this.BeginTime2.Format = DevComponents.Editors.eDateTimePickerFormat.Custom;
this.BeginTime2.HeaderText = "上班时间";
this.BeginTime2.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left;
//
//
//
//
//
//
this.BeginTime2.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.BeginTime2.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
//
//
//
this.BeginTime2.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.BeginTime2.MonthCalendar.DisplayMonth = new System.DateTime(2020, 2, 1, 0, 0, 0, 0);
this.BeginTime2.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
//
//
//
this.BeginTime2.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.BeginTime2.Name = "BeginTime2";
this.BeginTime2.ReadOnly = true;
this.BeginTime2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.BeginTime2.Width = 80;
//
// EndTime2
//
//
//
//
this.EndTime2.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
this.EndTime2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.EndTime2.CustomFormat = "d日HH:mm";
this.EndTime2.DataPropertyName = "EndTime2";
dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.EndTime2.DefaultCellStyle = dataGridViewCellStyle6;
this.EndTime2.Format = DevComponents.Editors.eDateTimePickerFormat.Custom;
this.EndTime2.HeaderText = "下班时间";
this.EndTime2.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left;
//
//
//
//
//
//
this.EndTime2.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.EndTime2.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
//
//
//
this.EndTime2.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.EndTime2.MonthCalendar.DisplayMonth = new System.DateTime(2020, 2, 1, 0, 0, 0, 0);
this.EndTime2.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
//
//
//
this.EndTime2.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.EndTime2.Name = "EndTime2";
this.EndTime2.ReadOnly = true;
this.EndTime2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.EndTime2.Width = 80;
//
// Overtime1
//
//
//
//
this.Overtime1.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
this.Overtime1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.Overtime1.CustomFormat = "d日HH:mm";
this.Overtime1.DataPropertyName = "OverTime1";
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.Overtime1.DefaultCellStyle = dataGridViewCellStyle7;
this.Overtime1.Format = DevComponents.Editors.eDateTimePickerFormat.Custom;
this.Overtime1.HeaderText = "加班起点";
this.Overtime1.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left;
//
//
//
//
//
//
this.Overtime1.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.Overtime1.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
//
//
//
this.Overtime1.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.Overtime1.MonthCalendar.DisplayMonth = new System.DateTime(2020, 1, 1, 0, 0, 0, 0);
this.Overtime1.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
//
//
//
this.Overtime1.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.Overtime1.Name = "Overtime1";
this.Overtime1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Overtime1.ShowUpDown = true;
//
// Overtime2
//
//
//
//
this.Overtime2.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
this.Overtime2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.Overtime2.CustomFormat = "d日HH:mm";
this.Overtime2.DataPropertyName = "OverTime2";
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.Overtime2.DefaultCellStyle = dataGridViewCellStyle8;
this.Overtime2.Format = DevComponents.Editors.eDateTimePickerFormat.Custom;
this.Overtime2.HeaderText = "加班终点";
this.Overtime2.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left;
//
//
//
//
//
//
this.Overtime2.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.Overtime2.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
//
//
//
this.Overtime2.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.Overtime2.MonthCalendar.DisplayMonth = new System.DateTime(2020, 1, 1, 0, 0, 0, 0);
this.Overtime2.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
//
//
//
this.Overtime2.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.Overtime2.Name = "Overtime2";
this.Overtime2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.Overtime2.ShowUpDown = true;
//
// OverHours
//
this.OverHours.DataPropertyName = "OverHours";
dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
this.OverHours.DefaultCellStyle = dataGridViewCellStyle9;
this.OverHours.HeaderText = "加班时数";
this.OverHours.Name = "OverHours";
this.OverHours.Width = 80;
//
// LackTime1
//
//
//
//
this.LackTime1.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
this.LackTime1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.LackTime1.CustomFormat = "d日HH:mm";
this.LackTime1.DataPropertyName = "LackTime1";
dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.LackTime1.DefaultCellStyle = dataGridViewCellStyle26;
this.LackTime1.Format = DevComponents.Editors.eDateTimePickerFormat.Custom;
this.LackTime1.HeaderText = "缺勤起点";
this.LackTime1.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left;
//
//
//
//
//
//
this.LackTime1.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.LackTime1.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
//
//
//
this.LackTime1.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.LackTime1.MonthCalendar.DisplayMonth = new System.DateTime(2020, 1, 1, 0, 0, 0, 0);
this.LackTime1.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
//
//
//
this.LackTime1.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.LackTime1.Name = "LackTime1";
this.LackTime1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.LackTime1.ShowUpDown = true;
//
// LackTime2
//
//
//
//
this.LackTime2.BackgroundStyle.Class = "DataGridViewDateTimeBorder";
this.LackTime2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.LackTime2.CustomFormat = "d日HH:mm";
this.LackTime2.DataPropertyName = "LackTime2";
dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.LackTime2.DefaultCellStyle = dataGridViewCellStyle11;
this.LackTime2.Format = DevComponents.Editors.eDateTimePickerFormat.Custom;
this.LackTime2.HeaderText = "缺勤终点";
this.LackTime2.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left;
//
//
//
//
//
//
this.LackTime2.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.LackTime2.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1);
//
//
//
this.LackTime2.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.LackTime2.MonthCalendar.DisplayMonth = new System.DateTime(2020, 1, 1, 0, 0, 0, 0);
this.LackTime2.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday;
//
//
//
this.LackTime2.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.LackTime2.Name = "LackTime2";
this.LackTime2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.LackTime2.ShowUpDown = true;
//
// LackHours
//
this.LackHours.DataPropertyName = "LackHours";
dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
this.LackHours.DefaultCellStyle = dataGridViewCellStyle12;
this.LackHours.HeaderText = "缺勤时数";
this.LackHours.Name = "LackHours";
this.LackHours.Width = 80;
//
// SchedulingTypeId
//
this.SchedulingTypeId.DataPropertyName = "SchedulingTypeId";
this.SchedulingTypeId.HeaderText = "班次Id";
this.SchedulingTypeId.Name = "SchedulingTypeId";
this.SchedulingTypeId.Visible = false;
//
// panelTop
//
this.panelTop.Controls.Add(this.btnPrint);
this.panelTop.Controls.Add(this.chxLackTime);
this.panelTop.Controls.Add(this.chxOverTime);
this.panelTop.Controls.Add(this.chxInvalidWorker);
this.panelTop.Controls.Add(this.button1);
this.panelTop.Controls.Add(this.panel1);
this.panelTop.Controls.Add(this.label2);
this.panelTop.Controls.Add(this.textFind);
this.panelTop.Controls.Add(this.btnSave);
this.panelTop.Controls.Add(this.btnFresh);
this.panelTop.Controls.Add(this.dateTimePicker1);
this.panelTop.Controls.Add(this.label1);
this.panelTop.Dock = System.Windows.Forms.DockStyle.Top;
this.panelTop.Location = new System.Drawing.Point(0, 0);
this.panelTop.Margin = new System.Windows.Forms.Padding(2);
this.panelTop.Name = "panelTop";
this.panelTop.Size = new System.Drawing.Size(1273, 33);
this.panelTop.TabIndex = 0;
//
// btnPrint
//
this.btnPrint.Location = new System.Drawing.Point(1029, 3);
this.btnPrint.Margin = new System.Windows.Forms.Padding(2);
this.btnPrint.Name = "btnPrint";
this.btnPrint.Size = new System.Drawing.Size(81, 25);
this.btnPrint.TabIndex = 12;
this.btnPrint.Text = "打印预览";
this.btnPrint.UseVisualStyleBackColor = true;
this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
//
// chxLackTime
//
this.chxLackTime.AutoSize = true;
this.chxLackTime.Location = new System.Drawing.Point(761, 34);
this.chxLackTime.Name = "chxLackTime";
this.chxLackTime.Size = new System.Drawing.Size(84, 16);
this.chxLackTime.TabIndex = 11;
this.chxLackTime.Text = "缺勤在班内";
this.chxLackTime.UseVisualStyleBackColor = true;
//
// chxOverTime
//
this.chxOverTime.AutoSize = true;
this.chxOverTime.Location = new System.Drawing.Point(659, 35);
this.chxOverTime.Name = "chxOverTime";
this.chxOverTime.Size = new System.Drawing.Size(96, 16);
this.chxOverTime.TabIndex = 10;
this.chxOverTime.Text = "加班应在班外";
this.chxOverTime.UseVisualStyleBackColor = true;
//
// chxInvalidWorker
//
this.chxInvalidWorker.AutoSize = true;
this.chxInvalidWorker.Location = new System.Drawing.Point(569, 10);
this.chxInvalidWorker.Name = "chxInvalidWorker";
this.chxInvalidWorker.Size = new System.Drawing.Size(84, 16);
this.chxInvalidWorker.TabIndex = 9;
this.chxInvalidWorker.Text = "含无效员工";
this.chxInvalidWorker.UseVisualStyleBackColor = true;
this.chxInvalidWorker.CheckedChanged += new System.EventHandler(this.chxInvalidWorker_CheckedChanged);
//
// button1
//
this.button1.Location = new System.Drawing.Point(929, 4);
this.button1.Margin = new System.Windows.Forms.Padding(2);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(81, 25);
this.button1.TabIndex = 8;
this.button1.Text = "导出Excel";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// panel1
//
this.panel1.Controls.Add(this.radioNurse);
this.panel1.Controls.Add(this.radioDoctor);
this.panel1.Location = new System.Drawing.Point(397, 6);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(166, 23);
this.panel1.TabIndex = 7;
//
// radioNurse
//
this.radioNurse.AutoSize = true;
this.radioNurse.Location = new System.Drawing.Point(108, 3);
this.radioNurse.Name = "radioNurse";
this.radioNurse.Size = new System.Drawing.Size(47, 16);
this.radioNurse.TabIndex = 2;
this.radioNurse.Text = "护士";
this.radioNurse.UseVisualStyleBackColor = true;
this.radioNurse.CheckedChanged += new System.EventHandler(this.radioNurse_CheckedChanged);
//
// radioDoctor
//
this.radioDoctor.AutoSize = true;
this.radioDoctor.Checked = true;
this.radioDoctor.Location = new System.Drawing.Point(21, 2);
this.radioDoctor.Name = "radioDoctor";
this.radioDoctor.Size = new System.Drawing.Size(71, 16);
this.radioDoctor.TabIndex = 1;
this.radioDoctor.TabStop = true;
this.radioDoctor.Text = "麻醉医生";
this.radioDoctor.UseVisualStyleBackColor = true;
this.radioDoctor.CheckedChanged += new System.EventHandler(this.radioDoctor_CheckedChanged);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(188, 10);
this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(77, 12);
this.label2.TabIndex = 6;
this.label2.Text = "姓名编号过滤";
//
// textFind
//
this.textFind.Location = new System.Drawing.Point(271, 6);
this.textFind.Margin = new System.Windows.Forms.Padding(2);
this.textFind.Name = "textFind";
this.textFind.Size = new System.Drawing.Size(114, 21);
this.textFind.TabIndex = 5;
this.textFind.TextChanged += new System.EventHandler(this.textFind_TextChanged);
//
// btnSave
//
this.btnSave.Location = new System.Drawing.Point(761, 4);
this.btnSave.Margin = new System.Windows.Forms.Padding(2);
this.btnSave.Name = "btnSave";
this.btnSave.Size = new System.Drawing.Size(62, 25);
this.btnSave.TabIndex = 3;
this.btnSave.Text = "保存";
this.btnSave.UseVisualStyleBackColor = true;
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
//
// btnFresh
//
this.btnFresh.Location = new System.Drawing.Point(845, 4);
this.btnFresh.Margin = new System.Windows.Forms.Padding(2);
this.btnFresh.Name = "btnFresh";
this.btnFresh.Size = new System.Drawing.Size(62, 25);
this.btnFresh.TabIndex = 2;
this.btnFresh.Text = "刷新";
this.btnFresh.UseVisualStyleBackColor = true;
this.btnFresh.Click += new System.EventHandler(this.btnFresh_Click);
//
// dateTimePicker1
//
this.dateTimePicker1.CustomFormat = "yyyy-MM-dd";
this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
this.dateTimePicker1.Location = new System.Drawing.Point(56, 6);
this.dateTimePicker1.Margin = new System.Windows.Forms.Padding(2);
this.dateTimePicker1.Name = "dateTimePicker1";
this.dateTimePicker1.Size = new System.Drawing.Size(99, 21);
this.dateTimePicker1.TabIndex = 1;
this.dateTimePicker1.ValueChanged += new System.EventHandler(this.dateTimePicker1_ValueChanged);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(14, 10);
this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(29, 12);
this.label1.TabIndex = 0;
this.label1.Text = "日期";
//
// panelBottom
//
this.panelBottom.Controls.Add(this.label3);
this.panelBottom.Controls.Add(this.labelTotal);
this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panelBottom.Location = new System.Drawing.Point(0, 582);
this.panelBottom.Margin = new System.Windows.Forms.Padding(2);
this.panelBottom.Name = "panelBottom";
this.panelBottom.Size = new System.Drawing.Size(1273, 34);
this.panelBottom.TabIndex = 2;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(54, 11);
this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(47, 12);
this.label3.TabIndex = 2;
this.label3.Text = "合计: ";
//
// labelTotal
//
this.labelTotal.AutoSize = true;
this.labelTotal.Location = new System.Drawing.Point(115, 11);
this.labelTotal.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.labelTotal.Name = "labelTotal";
this.labelTotal.Size = new System.Drawing.Size(155, 12);
this.labelTotal.TabIndex = 1;
this.labelTotal.Text = "加班 0 小时, 缺勤 0 小时";
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "WorkNo";
this.dataGridViewTextBoxColumn1.HeaderText = "员工编号";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.DataPropertyName = "Name";
this.dataGridViewTextBoxColumn2.HeaderText = "姓名";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.ReadOnly = true;
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.DataPropertyName = "RoleName";
this.dataGridViewTextBoxColumn3.HeaderText = "角色";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.dataGridViewTextBoxColumn3.ReadOnly = true;
this.dataGridViewTextBoxColumn3.Width = 80;
//
// dataGridViewTextBoxColumn4
//
this.dataGridViewTextBoxColumn4.DataPropertyName = "BeginTime";
dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn4.DefaultCellStyle = dataGridViewCellStyle28;
this.dataGridViewTextBoxColumn4.HeaderText = "上班时间";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
this.dataGridViewTextBoxColumn4.ReadOnly = true;
this.dataGridViewTextBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridViewTextBoxColumn4.Width = 80;
//
// dataGridViewTextBoxColumn5
//
this.dataGridViewTextBoxColumn5.DataPropertyName = "EndTime";
dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle29;
this.dataGridViewTextBoxColumn5.HeaderText = "下班时间";
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
this.dataGridViewTextBoxColumn5.ReadOnly = true;
this.dataGridViewTextBoxColumn5.Width = 80;
//
// dataGridViewTextBoxColumn6
//
this.dataGridViewTextBoxColumn6.DataPropertyName = "OverHours";
dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle30;
this.dataGridViewTextBoxColumn6.HeaderText = "加班时数";
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
this.dataGridViewTextBoxColumn6.ReadOnly = true;
this.dataGridViewTextBoxColumn6.Width = 80;
//
// dataGridViewTextBoxColumn7
//
this.dataGridViewTextBoxColumn7.DataPropertyName = "LackHours";
dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
this.dataGridViewTextBoxColumn7.DefaultCellStyle = dataGridViewCellStyle31;
this.dataGridViewTextBoxColumn7.HeaderText = "缺勤时数";
this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
this.dataGridViewTextBoxColumn7.Visible = false;
this.dataGridViewTextBoxColumn7.Width = 80;
//
// dataGridViewTextBoxColumn8
//
this.dataGridViewTextBoxColumn8.DataPropertyName = "LackHours";
dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight;
this.dataGridViewTextBoxColumn8.DefaultCellStyle = dataGridViewCellStyle32;
this.dataGridViewTextBoxColumn8.HeaderText = "班次Id";
this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
this.dataGridViewTextBoxColumn8.Visible = false;
this.dataGridViewTextBoxColumn8.Width = 80;
//
// dataGridViewTextBoxColumn9
//
this.dataGridViewTextBoxColumn9.DataPropertyName = "SchedulingTypeId";
this.dataGridViewTextBoxColumn9.HeaderText = "班次Id";
this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
this.dataGridViewTextBoxColumn9.Visible = false;
//
// dataGridViewComboBoxColumn1
//
this.dataGridViewComboBoxColumn1.DataPropertyName = "SchedulingTypeName";
this.dataGridViewComboBoxColumn1.HeaderText = "班次";
this.dataGridViewComboBoxColumn1.Name = "dataGridViewComboBoxColumn1";
this.dataGridViewComboBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridViewComboBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// FrmDeptAttendance
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1273, 616);
this.Controls.Add(this.panelAll);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(2);
this.MinimizeBox = false;
this.Name = "FrmDeptAttendance";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "部门考勤登记";
this.Load += new System.EventHandler(this.FrmDeptAttendance_Load);
this.panelAll.ResumeLayout(false);
this.panelBody.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.panelTop.ResumeLayout(false);
this.panelTop.PerformLayout();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panelBottom.ResumeLayout(false);
this.panelBottom.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panelAll;
private System.Windows.Forms.Panel panelBody;
private System.Windows.Forms.Panel panelTop;
private System.Windows.Forms.Panel panelBottom;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.DateTimePicker dateTimePicker1;
private System.Windows.Forms.Button btnSave;
private System.Windows.Forms.Button btnFresh;
private System.Windows.Forms.Label labelTotal;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox textFind;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.RadioButton radioNurse;
private System.Windows.Forms.RadioButton radioDoctor;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.CheckBox chxInvalidWorker;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;
private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;
private System.Windows.Forms.CheckBox chxOverTime;
private System.Windows.Forms.CheckBox chxLackTime;
private System.Windows.Forms.Button btnPrint;
private System.Windows.Forms.DataGridViewTextBoxColumn WorkerCode;
private System.Windows.Forms.DataGridViewTextBoxColumn WorkerName;
private System.Windows.Forms.DataGridViewTextBoxColumn RoleName;
private System.Windows.Forms.DataGridViewTextBoxColumn SchedulingTypeName;
private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn BeginTime2;
private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn EndTime2;
private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn Overtime1;
private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn Overtime2;
private System.Windows.Forms.DataGridViewTextBoxColumn OverHours;
private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn LackTime1;
private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn LackTime2;
private System.Windows.Forms.DataGridViewTextBoxColumn LackHours;
private System.Windows.Forms.DataGridViewTextBoxColumn SchedulingTypeId;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -224,7 +224,7 @@
this.tsbSet.Size = new System.Drawing.Size(52, 46);
this.tsbSet.Text = " 设置 ";
this.tsbSet.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.tsbSet.Visible = false;
this.tsbSet.Visible = false;
//
// toolStripSeparator2
//
@ -253,7 +253,7 @@
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 49);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1132, 450);
this.panel1.Size = new System.Drawing.Size(1132, 482);
this.panel1.TabIndex = 2;
//
// groupBox3
@ -276,7 +276,7 @@
this.groupBox3.Controls.Add(this.label43);
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox3.Font = new System.Drawing.Font("宋体", 10.5F);
this.groupBox3.Location = new System.Drawing.Point(0, 443);
this.groupBox3.Location = new System.Drawing.Point(0, 481);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(1132, 105);
this.groupBox3.TabIndex = 15;
@ -492,14 +492,14 @@
this.groupBox2.Font = new System.Drawing.Font("宋体", 10.5F);
this.groupBox2.Location = new System.Drawing.Point(0, 140);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(1132, 303);
this.groupBox2.Size = new System.Drawing.Size(1132, 341);
this.groupBox2.TabIndex = 14;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "手术基本信息";
//
// txtRemark
//
this.txtRemark.Location = new System.Drawing.Point(640, 298);
this.txtRemark.Location = new System.Drawing.Point(640, 364);
this.txtRemark.Name = "txtRemark";
this.txtRemark.Size = new System.Drawing.Size(375, 23);
this.txtRemark.TabIndex = 29;
@ -509,17 +509,16 @@
//
this.label23.AutoSize = true;
this.label23.ForeColor = System.Drawing.Color.Black;
this.label23.Location = new System.Drawing.Point(567, 350);
this.label23.Location = new System.Drawing.Point(9, 308);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(63, 14);
this.label23.TabIndex = 11;
this.label23.Text = "手术备注";
this.label23.Visible = false;
//
// label29
//
this.label29.AutoSize = true;
this.label29.Location = new System.Drawing.Point(564, 303);
this.label29.Location = new System.Drawing.Point(564, 369);
this.label29.Name = "label29";
this.label29.Size = new System.Drawing.Size(63, 14);
this.label29.TabIndex = 28;
@ -530,7 +529,7 @@
//
this.label22.AutoSize = true;
this.label22.ForeColor = System.Drawing.Color.Black;
this.label22.Location = new System.Drawing.Point(567, 319);
this.label22.Location = new System.Drawing.Point(567, 385);
this.label22.Name = "label22";
this.label22.Size = new System.Drawing.Size(63, 14);
this.label22.TabIndex = 11;
@ -548,11 +547,10 @@
//
// txtOperationRemark
//
this.txtOperationRemark.Location = new System.Drawing.Point(643, 345);
this.txtOperationRemark.Location = new System.Drawing.Point(85, 303);
this.txtOperationRemark.Name = "txtOperationRemark";
this.txtOperationRemark.Size = new System.Drawing.Size(375, 23);
this.txtOperationRemark.Size = new System.Drawing.Size(1014, 23);
this.txtOperationRemark.TabIndex = 10;
this.txtOperationRemark.Visible = false;
//
// txtContagion
//
@ -662,7 +660,7 @@
//
// txtDiseaseRemark
//
this.txtDiseaseRemark.Location = new System.Drawing.Point(643, 314);
this.txtDiseaseRemark.Location = new System.Drawing.Point(643, 380);
this.txtDiseaseRemark.Name = "txtDiseaseRemark";
this.txtDiseaseRemark.Size = new System.Drawing.Size(375, 23);
this.txtDiseaseRemark.TabIndex = 10;
@ -1448,7 +1446,7 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1132, 499);
this.ClientSize = new System.Drawing.Size(1132, 531);
this.Controls.Add(this.panel1);
this.Controls.Add(this.toolStrip1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));

View File

@ -281,12 +281,12 @@ namespace AIMS.OperationFront.UI
if (IsJZ == false)
{
groupBox3.Visible = false;
this.Size = new Size(1140, 530);
this.Size = new Size(1140, 570);
}
else
{
groupBox3.Visible = true;
this.Size = new Size(1140, 630);
this.Size = new Size(1140, 670);
if (rboJZ.Checked == true)
{
cboOperationRoom.DisplayMember = "Name";
@ -960,7 +960,7 @@ namespace AIMS.OperationFront.UI
//Oris_PatientObj.Id = BOperationApply.SelectSingle(EditApplyId).Oris_PatientId;
//OperationApplyObj.Id = EditApplyId;
if (OperationApplyObj.PlanOperationTime.Value.Year != 1)
if (OperationApplyObj.PlanOperationTime!=null && OperationApplyObj.PlanOperationTime.Value.Year != 1)
if (OperationApplyObj.OrderOperationTime.Value.Day != OperationApplyObj.PlanOperationTime.Value.Day)
{
OperationApplyObj.PlanOperationTime = OperationApplyObj.OrderOperationTime;

File diff suppressed because it is too large Load Diff

View File

@ -123,6 +123,12 @@
<metadata name="Diagnose.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="OperationType.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Contagion.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="dataGridViewCheckBoxColumn3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
@ -245,7 +251,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD+
CAAAAk1TRnQBSQFMAgEBAgEAAVwBEwFcARMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
CAAAAk1TRnQBSQFMAgEBAgEAAXQBEwF0ARMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
@ -289,12 +295,18 @@
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>144, 17</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>144, 17</value>
</metadata>
<metadata name="ctsThisRoom.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>360, 17</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>144, 17</value>
</metadata>
<metadata name="dataGridViewTextBoxColumn3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>

View File

@ -1,185 +0,0 @@
namespace AIMS.OperationFront.UI
{
partial class frmPlanPatientInfo
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.dgv = new System.Windows.Forms.DataGridView();
this.ApplyId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ApplyDepNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.MdrecNoColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.PatientNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.SexColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.BirthDayColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ApplyDiagnoseInfoNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ApplyOperationInfoNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.AnaesthesiaMethodNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.OperationDoctorColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.OperationTypeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dgv)).BeginInit();
this.SuspendLayout();
//
// dgv
//
this.dgv.AllowUserToAddRows = false;
this.dgv.BackgroundColor = System.Drawing.Color.White;
this.dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgv.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.ApplyId,
this.ApplyDepNameColumn,
this.MdrecNoColumn,
this.PatientNameColumn,
this.SexColumn,
this.BirthDayColumn,
this.ApplyDiagnoseInfoNameColumn,
this.ApplyOperationInfoNameColumn,
this.AnaesthesiaMethodNameColumn,
this.OperationDoctorColumn,
this.OperationTypeColumn});
this.dgv.Dock = System.Windows.Forms.DockStyle.Fill;
this.dgv.Location = new System.Drawing.Point(0, 0);
this.dgv.Name = "dgv";
this.dgv.RowHeadersVisible = false;
this.dgv.RowTemplate.Height = 23;
this.dgv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
this.dgv.Size = new System.Drawing.Size(799, 450);
this.dgv.TabIndex = 4;
//
// ApplyId
//
this.ApplyId.DataPropertyName = "ApplyId";
this.ApplyId.Frozen = true;
this.ApplyId.HeaderText = "ApplyId";
this.ApplyId.Name = "ApplyId";
this.ApplyId.ReadOnly = true;
this.ApplyId.Visible = false;
//
// ApplyDepNameColumn
//
this.ApplyDepNameColumn.DataPropertyName = "ApplyDepName";
this.ApplyDepNameColumn.HeaderText = "申请科室";
this.ApplyDepNameColumn.Name = "ApplyDepNameColumn";
this.ApplyDepNameColumn.ReadOnly = true;
this.ApplyDepNameColumn.Width = 80;
//
// MdrecNoColumn
//
this.MdrecNoColumn.DataPropertyName = "MdrecNo";
this.MdrecNoColumn.HeaderText = "住院号";
this.MdrecNoColumn.Name = "MdrecNoColumn";
this.MdrecNoColumn.ReadOnly = true;
this.MdrecNoColumn.Width = 80;
//
// PatientNameColumn
//
this.PatientNameColumn.DataPropertyName = "PatientName";
this.PatientNameColumn.HeaderText = "患者姓名";
this.PatientNameColumn.Name = "PatientNameColumn";
this.PatientNameColumn.ReadOnly = true;
this.PatientNameColumn.Width = 80;
//
// SexColumn
//
this.SexColumn.DataPropertyName = "Sex";
this.SexColumn.HeaderText = "性别";
this.SexColumn.Name = "SexColumn";
this.SexColumn.ReadOnly = true;
this.SexColumn.Width = 60;
//
// BirthDayColumn
//
this.BirthDayColumn.DataPropertyName = "BirthDay";
this.BirthDayColumn.HeaderText = "出生日期";
this.BirthDayColumn.Name = "BirthDayColumn";
this.BirthDayColumn.Width = 80;
//
// ApplyDiagnoseInfoNameColumn
//
this.ApplyDiagnoseInfoNameColumn.DataPropertyName = "ApplyDiagnoseInfoName";
this.ApplyDiagnoseInfoNameColumn.HeaderText = "术前诊断";
this.ApplyDiagnoseInfoNameColumn.Name = "ApplyDiagnoseInfoNameColumn";
this.ApplyDiagnoseInfoNameColumn.ReadOnly = true;
//
// ApplyOperationInfoNameColumn
//
this.ApplyOperationInfoNameColumn.DataPropertyName = "ApplyOperationInfoName";
this.ApplyOperationInfoNameColumn.HeaderText = "拟实手术";
this.ApplyOperationInfoNameColumn.Name = "ApplyOperationInfoNameColumn";
this.ApplyOperationInfoNameColumn.ReadOnly = true;
//
// AnaesthesiaMethodNameColumn
//
this.AnaesthesiaMethodNameColumn.DataPropertyName = "AnaesthesiaMethodName";
this.AnaesthesiaMethodNameColumn.HeaderText = "拟施麻醉";
this.AnaesthesiaMethodNameColumn.Name = "AnaesthesiaMethodNameColumn";
this.AnaesthesiaMethodNameColumn.ReadOnly = true;
//
// OperationDoctorColumn
//
this.OperationDoctorColumn.DataPropertyName = "OperationDoctor";
this.OperationDoctorColumn.HeaderText = "术者";
this.OperationDoctorColumn.Name = "OperationDoctorColumn";
this.OperationDoctorColumn.ReadOnly = true;
//
// OperationTypeColumn
//
this.OperationTypeColumn.DataPropertyName = "OperationType";
this.OperationTypeColumn.HeaderText = "OperationType";
this.OperationTypeColumn.Name = "OperationTypeColumn";
this.OperationTypeColumn.ReadOnly = true;
this.OperationTypeColumn.Visible = false;
//
// frmPlanPatientInfo
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(799, 450);
this.ControlBox = false;
this.Controls.Add(this.dgv);
this.Name = "frmPlanPatientInfo";
this.Load += new System.EventHandler(this.frmPlanPatientInfo_Load);
((System.ComponentModel.ISupportInitialize)(this.dgv)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.DataGridView dgv;
private System.Windows.Forms.DataGridViewTextBoxColumn ApplyId;
private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDepNameColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn MdrecNoColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn PatientNameColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn SexColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn BirthDayColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDiagnoseInfoNameColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationInfoNameColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn AnaesthesiaMethodNameColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn OperationDoctorColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn OperationTypeColumn;
}
}

View File

@ -1,49 +0,0 @@
using AIMSBLL;
using System;
using System.Drawing;
using System.Windows.Forms;
namespace AIMS.OperationFront.UI
{
public partial class frmPlanPatientInfo : Form
{
private static frmPlanPatientInfo f;
public DateTime Time;
public int RoomId;
public frmPlanPatientInfo()
{
InitializeComponent();
}
private void frmPlanPatientInfo_Load(object sender, EventArgs e)
{
int x = (System.Windows.Forms.SystemInformation.WorkingArea.Width - this.Size.Width) / 2;
int y = (System.Windows.Forms.SystemInformation.WorkingArea.Height - this.Size.Height) / 2-60;
this.StartPosition = FormStartPosition.Manual;
this.Location = (Point)new Size(x, y);
dgv.DataSource = BOperationApply.GetOperationRoomDataTable(Time, RoomId);
for (int i = 0; i < dgv.Rows.Count; i++)
{
if (dgv.Rows[i].Cells["OperationTypeColumn"].Value.ToString() == "急诊")
{
dgv.Rows[i].DefaultCellStyle.BackColor = Color.LightSalmon;
}
if (dgv.Rows[i].Cells["OperationTypeColumn"].Value.ToString() == "特急")
{
dgv.Rows[i].DefaultCellStyle.BackColor = Color.Red;
}
}
}
public static frmPlanPatientInfo CreateForm()
{
if (frmPlanPatientInfo.f == null || frmPlanPatientInfo.f.IsDisposed)
{
frmPlanPatientInfo.f = new frmPlanPatientInfo();
}
return frmPlanPatientInfo.f;
}
}
}

View File

@ -1,153 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="ApplyId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ApplyDepNameColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MdrecNoColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="PatientNameColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="SexColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="BirthDayColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ApplyDiagnoseInfoNameColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="ApplyOperationInfoNameColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="AnaesthesiaMethodNameColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="OperationDoctorColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="OperationTypeColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

View File

@ -1,4 +1,5 @@
using AIMS.OremrUserControl;
using AIMS.PublicUI;
using AIMSBLL;
using AIMSModel;
using System;
@ -50,15 +51,15 @@ namespace AIMS.OperationFront.UI
{
if (cboOperationRoom.SelectedIndex > 0)
{
dt = BOperationApply.SelectPlanedOpeByRoom("OrderOperationTime>='" + dtpTime.Value.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtpTime.Value.ToString("yyyy-MM-dd 23:59:59") + "' and OperationRoom = '" + cboOperationRoom.Text + "' Order By OperationRoomID ,PlanOrder");
dt = BOperationApply.SelectPlanedOpeByRoom("OrderOperationTime>='" + dtpTime.Value.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtpTime.Value.ToString("yyyy-MM-dd 23:59:59") + "' and OperationRoom = '" + cboOperationRoom.Text + "' Order By OperationRoomID ,PlanOrder");
}
else if (cboOperationRoom.SelectedIndex <= 0)
{
dt = BOperationApply.SelectPlanedOpeByRoom("OrderOperationTime>='" + dtpTime.Value.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtpTime.Value.ToString("yyyy-MM-dd 23:59:59") + "' Order By OperationRoomID ,PlanOrder");
dt = BOperationApply.SelectPlanedOpeByRoom("OrderOperationTime>='" + dtpTime.Value.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtpTime.Value.ToString("yyyy-MM-dd 23:59:59") + "' Order By OperationRoomID ,PlanOrder");
}
if (dt == null) return;
FullDgv(dt);
dgvApplyOrDoctor.ClearSelection();
dgvApplyOrDoctor.ClearSelection();
}
private void ReportData()
@ -105,10 +106,14 @@ namespace AIMS.OperationFront.UI
{
UCap.labTourNurse.Text = "";
}
UCap.labRemark.Text = dt.Rows[i]["Remark"].ToString();
UCap.labRemark.Text = dt.Rows[i]["Remark"].ToString();
if (dt.Rows[i]["OperationType"].ToString() == "急诊")
{
UCap.pictureBox1.Visible = true;
UCap.BindWaterMark2("急", 600, 20, Color.Red);
}
if (dt.Rows[i]["Contagion"].ToString() != "" && dt.Rows[i]["Contagion"].ToString() != "无" && dt.Rows[i]["Contagion"].ToString() != "未报")
{
UCap.BindWaterMark2(dt.Rows[i]["Contagion"].ToString() , 650, 20, Color.Purple);
}
UCap.lblOpeLevel.Text = dt.Rows[i]["OperationLevelName"].ToString();
}
@ -247,7 +252,7 @@ namespace AIMS.OperationFront.UI
/// 初始化ComboBox
/// </summary>
private void Initial()
{
{
List<OperationRoom> rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'");
rooms.Insert(0, new OperationRoom() { Id = -1, Name = "" });
cboOperationRoom.DataSource = rooms;

View File

@ -58,7 +58,7 @@
this.tsbCancel.ImageTransparentColor = System.Drawing.Color.Magenta;
this.tsbCancel.Name = "tsbCancel";
this.tsbCancel.Size = new System.Drawing.Size(68, 46);
this.tsbCancel.Text = " 取消申请";
this.tsbCancel.Text = " 停止申请";
this.tsbCancel.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.tsbCancel.Click += new System.EventHandler(this.tsbCancel_Click);
//

View File

@ -29,7 +29,7 @@ namespace AIMS.OperationFront.UI
{
if (txtContent.Text.Trim() == "")
{
MessageBox.Show("作废原因不能为空");
MessageBox.Show("停止原因不能为空");
return;
}
@ -39,12 +39,13 @@ namespace AIMS.OperationFront.UI
{
BOperationApply.UpdateStopOperation(ApplyIdList[i], txtContent.Text.Trim());
}
MessageBox.Show("退回成功!");
Close();
MessageBox.Show("停止成功!");
this.DialogResult = System.Windows.Forms.DialogResult.OK;
}
catch (Exception ex)
{
MessageBox.Show("退回失败!" + ex.Message);
MessageBox.Show("停止失败!" + ex.Message);
}
}
}

View File

@ -62,6 +62,28 @@ namespace AIMS.PublicUI
foreach (System.Windows.Forms.Control child in ctrl.Controls)
BindWaterMark(child, Text);
}
public static void BindWaterMark2(this Control ctrl, string Text,int x ,int y,Color color)
{
if (ctrl == null || ctrl.IsDisposed)
return;
// 绘制水印
if (ctrl.HaveEventHandler("Paint", "BindWaterMark"))
return;
ctrl.Paint += (sender, e) =>
{
System.Windows.Forms.Control paintCtrl = sender as System.Windows.Forms.Control;
var g = e.Graphics;
g.SmoothingMode = SmoothingMode.AntiAlias;
g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
g.DrawString(Text, new Font("微软雅黑", 23, FontStyle.Regular),
new SolidBrush(color),x,y);
};
//// 子控件绑定绘制事件
//foreach (System.Windows.Forms.Control child in ctrl.Controls)
// BindWaterMark2(child, Text);
}
public static void BindWaterMark(this Control ctrl, string Text, float x1, float y1)
{
if (ctrl == null || ctrl.IsDisposed)

View File

@ -65,7 +65,6 @@ namespace AIMS.OremrUserControl
this.labRemark = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.labHospitalName = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.labOperationSite = new System.Windows.Forms.Label();
@ -100,7 +99,6 @@ namespace AIMS.OremrUserControl
this.label22 = new System.Windows.Forms.Label();
this.label21 = new System.Windows.Forms.Label();
this.lblVerify = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// label6
@ -502,18 +500,6 @@ namespace AIMS.OremrUserControl
this.panel1.Size = new System.Drawing.Size(1, 460);
this.panel1.TabIndex = 25;
//
// pictureBox1
//
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.pictureBox1.ErrorImage = null;
this.pictureBox1.InitialImage = null;
this.pictureBox1.Location = new System.Drawing.Point(580, 180);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(130, 97);
this.pictureBox1.TabIndex = 26;
this.pictureBox1.TabStop = false;
this.pictureBox1.Visible = false;
//
// labHospitalName
//
this.labHospitalName.AutoSize = true;
@ -830,7 +816,6 @@ namespace AIMS.OremrUserControl
this.Controls.Add(this.panel11);
this.Controls.Add(this.panel10);
this.Controls.Add(this.panel4);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.label6);
this.Controls.Add(this.labAge);
@ -890,7 +875,6 @@ namespace AIMS.OremrUserControl
this.Margin = new System.Windows.Forms.Padding(1);
this.Name = "UCSurgicalNotice";
this.Size = new System.Drawing.Size(780, 555);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@ -933,7 +917,6 @@ namespace AIMS.OremrUserControl
private System.Windows.Forms.Label label15;
public System.Windows.Forms.Label labRemark;
private System.Windows.Forms.Label label17;
public System.Windows.Forms.PictureBox pictureBox1;
public System.Windows.Forms.Label labHospitalName;
private System.Windows.Forms.Label label19;
public System.Windows.Forms.Label labOperationSite;

View File

@ -203,8 +203,8 @@ namespace AIMS.OremrUserControl
pDataTable = _dt;
labTabindex.Text = pDataTable.Rows.Count.ToString();
DrawRoomText();
if (_dt.Rows.Count==0)
{
if (_dt.Rows.Count == 0)
{
lblAnesDoctors.ForeColor = Color.Black;
lblNurse.ForeColor = Color.Black;
lblOpeDoctors.ForeColor = Color.Black;
@ -230,10 +230,14 @@ namespace AIMS.OremrUserControl
string sAnesthesiaDoctor = item["AnesthesiaDoctor"].ToString();
string sInstrumentNurse = item["InstrumentNurse"].ToString();
string sTourNurse = item["TourNurse"].ToString();
GridRow grNew = new GridRow(item["ApplyId"].ToString(), item["PlanOrder"].ToString(), string.Format("{0}{1}", item["PatientName"].ToString(), ""), item["MdrecNo"].ToString(), item["ApplyDepName"].ToString() + "-" + item["SickBed"].ToString(), sOperationDoctor, item["ApplyOperationInfoName"].ToString(), DateTime.Parse(item["OrderOperationTime"].ToString()).ToString("HH:mm"), sAnesthesiaDoctor, sInstrumentNurse, sTourNurse, item["Remark"].ToString(), "Χ");
if (item["OperationType"].ToString() == "急诊")
GridRow grNew = new GridRow(item["ApplyId"].ToString(), item["PlanOrder"].ToString(), string.Format("{0}{1}", item["PatientName"].ToString(), ""), item["MdrecNo"].ToString(), item["ApplyDepName"].ToString() + "-" + item["SickBed"].ToString(), sOperationDoctor, item["ApplyOperationInfoName"].ToString(), DateTime.Parse(item["OrderOperationTime"].ToString()).ToString("HH:mm"), sAnesthesiaDoctor, sInstrumentNurse, sTourNurse, item["OperationRemark"].ToString(), "Χ");
if (item["Contagion"].ToString() != "" && item["Contagion"].ToString() != "无" && item["Contagion"].ToString() != "未报")
{
grNew.CellStyles.Default.Background.Color1 = Color.Tomato;
grNew.CellStyles.Default.Background.Color1 = Color.Purple;
}
else if (item["OperationType"].ToString() == "急诊")
{
grNew.CellStyles.Default.Background.Color1 = Color.Red;
}
else
{
@ -390,8 +394,8 @@ namespace AIMS.OremrUserControl
lblNurse.ForeColor = Color.Black;
lblOpeDoctors.ForeColor = Color.Black;
labelName.ForeColor = Color.Black;
lblNurse2.ForeColor = Color.Black ;
labTabindex.ForeColor = Color.Black ;
lblNurse2.ForeColor = Color.Black;
labTabindex.ForeColor = Color.Black;
}
}
}

View File

@ -39,7 +39,9 @@
this.SelectIdColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.SelectIcdCodeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.SelectNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btnDown = new System.Windows.Forms.Button();
this.btnToLeft = new System.Windows.Forms.Button();
this.btnUp = new System.Windows.Forms.Button();
this.btnToRight = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.dgvDisease = new System.Windows.Forms.DataGridView();
@ -63,8 +65,8 @@
this.txtHelpCode.Location = new System.Drawing.Point(108, 8);
this.txtHelpCode.Name = "txtHelpCode";
this.txtHelpCode.Size = new System.Drawing.Size(192, 23);
this.txtHelpCode.TabIndex = 0;
this.txtHelpCode.TextChanged += new System.EventHandler(this.txtHelpCode_TextChanged);
this.txtHelpCode.TabIndex = 0;
this.txtHelpCode.TextChanged += new System.EventHandler(this.txtHelpCode_TextChanged);
//
// panel1
//
@ -78,7 +80,7 @@
this.panel1.Font = new System.Drawing.Font("宋体", 10.5F);
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(813, 467);
this.panel1.Size = new System.Drawing.Size(833, 467);
this.panel1.TabIndex = 1;
//
// panel2
@ -87,12 +89,14 @@
this.panel2.Controls.Add(this.labUp);
this.panel2.Controls.Add(this.labPage);
this.panel2.Controls.Add(this.groupBox2);
this.panel2.Controls.Add(this.btnDown);
this.panel2.Controls.Add(this.btnToLeft);
this.panel2.Controls.Add(this.btnUp);
this.panel2.Controls.Add(this.btnToRight);
this.panel2.Controls.Add(this.groupBox1);
this.panel2.Location = new System.Drawing.Point(0, 37);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(807, 427);
this.panel2.Size = new System.Drawing.Size(833, 427);
this.panel2.TabIndex = 4;
//
// labDown
@ -133,7 +137,7 @@
// groupBox2
//
this.groupBox2.Controls.Add(this.dgvSelectDisease);
this.groupBox2.Location = new System.Drawing.Point(428, 20);
this.groupBox2.Location = new System.Drawing.Point(418, 20);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(366, 394);
this.groupBox2.TabIndex = 14;
@ -182,6 +186,17 @@
this.SelectNameColumn.ReadOnly = true;
this.SelectNameColumn.Width = 210;
//
// btnDown
//
this.btnDown.Font = new System.Drawing.Font("宋体", 20.5F);
this.btnDown.Location = new System.Drawing.Point(792, 105);
this.btnDown.Name = "btnDown";
this.btnDown.Size = new System.Drawing.Size(31, 63);
this.btnDown.TabIndex = 13;
this.btnDown.Text = "↓";
this.btnDown.UseVisualStyleBackColor = true;
this.btnDown.Click += new System.EventHandler(this.btnDown_Click);
//
// btnToLeft
//
this.btnToLeft.Location = new System.Drawing.Point(379, 200);
@ -192,6 +207,17 @@
this.btnToLeft.UseVisualStyleBackColor = true;
this.btnToLeft.Click += new System.EventHandler(this.btnToLeft_Click);
//
// btnUp
//
this.btnUp.Font = new System.Drawing.Font("宋体", 20.5F);
this.btnUp.Location = new System.Drawing.Point(792, 36);
this.btnUp.Name = "btnUp";
this.btnUp.Size = new System.Drawing.Size(31, 63);
this.btnUp.TabIndex = 12;
this.btnUp.Text = "↑";
this.btnUp.UseVisualStyleBackColor = true;
this.btnUp.Click += new System.EventHandler(this.btnUp_Click);
//
// btnToRight
//
this.btnToRight.Location = new System.Drawing.Point(379, 75);
@ -263,6 +289,7 @@
this.btnAddDisease.TabIndex = 3;
this.btnAddDisease.Text = "添加诊断";
this.btnAddDisease.UseVisualStyleBackColor = true;
this.btnAddDisease.Visible = false;
this.btnAddDisease.Click += new System.EventHandler(this.btnAddDisease_Click);
//
// btnOk
@ -288,7 +315,7 @@
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(813, 467);
this.ClientSize = new System.Drawing.Size(833, 467);
this.Controls.Add(this.panel1);
this.MaximizeBox = false;
this.MinimizeBox = false;
@ -333,5 +360,7 @@
private System.Windows.Forms.DataGridViewTextBoxColumn SelectIdColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn SelectIcdCodeColumn;
private System.Windows.Forms.DataGridViewTextBoxColumn SelectNameColumn;
private System.Windows.Forms.Button btnDown;
private System.Windows.Forms.Button btnUp;
}
}

View File

@ -1,5 +1,7 @@
using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using DevComponents.DotNetBar.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@ -25,9 +27,12 @@ namespace AIMS.PublicUI.UI
private void frmSelectDisease_Load(object sender, EventArgs e)
{
if (PublicMethod.RoleName.Contains("增加诊断"))
{
btnAddDisease.Visible = true;
}
AIMSExtension.PublicMethod.SetDgvAttribute(dgvDisease);
AIMSExtension.PublicMethod.SetDgvAttribute(dgvSelectDisease);
AIMSExtension.PublicMethod.SetDgvAttribute(dgvSelectDisease);
SelectLeftdt = BDisease.GetDataTable("");
@ -49,7 +54,7 @@ namespace AIMS.PublicUI.UI
foreach (int RowId in SelectRightData)
{
Disease DiseaseObj = BDisease.GetModel(RowId);
dgvSelectDisease.Rows.Add(DiseaseObj.Id, DiseaseObj.IcdCode, DiseaseObj.Name);
dgvSelectDisease.Rows.Add(DiseaseObj.Id, DiseaseObj.IcdCode, DiseaseObj.Name);
}
}
txtHelpCode.Focus();
@ -88,7 +93,7 @@ namespace AIMS.PublicUI.UI
this.labPage.Text = this.currentPage + 1 + "/" + this.pages;
this.dgvDisease.DataSource = this.GetTableByCurrentPage(this.currentPage, this.SelectLeftdt);
}
private void lkUp_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (this.total != 0 && this.currentPage != 0)
@ -107,7 +112,7 @@ namespace AIMS.PublicUI.UI
this.dgvDisease.DataSource = this.GetTableByCurrentPage(this.currentPage, this.SelectLeftdt);
this.labPage.Text = this.currentPage + 1 + "/" + this.pages;
}
}
}
private void dgvDisease_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
if (dgvDisease.Rows.Count > 0)
@ -147,19 +152,15 @@ namespace AIMS.PublicUI.UI
private void btnOk_Click(object sender, EventArgs e)
{
SelectRightData.Clear();
if (dgvSelectDisease.Rows.Count > 0)
{
SelectRightData.Clear();
for (int i = 0; i < dgvSelectDisease.Rows.Count; i++)
{
SelectRightData.Add(int.Parse(dgvSelectDisease.Rows[i].Cells["SelectIdColumn"].Value.ToString()));
}
}
else
{
SelectRightData.Clear();
}
Close();
}
@ -195,5 +196,57 @@ namespace AIMS.PublicUI.UI
dgvSelectDisease.Rows.RemoveAt(dgvSelectDisease.CurrentRow.Index);
}
}
private void btnUp_Click(object sender, EventArgs e)
{
try
{
DataGridViewSelectedRowCollection dgvsrc = dgvSelectDisease.SelectedRows;//获取选中行的集合
if (dgvsrc.Count > 0)
{
int index = dgvSelectDisease.SelectedRows[0].Index;//获取当前选中行的索引
if (index > 0)//如果该行不是第一行
{
DataGridViewRow dgvr = dgvSelectDisease.Rows[index - dgvsrc.Count];//获取选中行的上一行
dgvSelectDisease.Rows.RemoveAt(index - dgvsrc.Count);//删除原选中行的上一行
dgvSelectDisease.Rows.Insert((index), dgvr);//将选中行的上一行插入到选中行的后面
for (int i = 0; i < dgvsrc.Count; i++)//选中移动后的行
{
dgvSelectDisease.Rows[index - i - 1].Selected = true;
}
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
private void btnDown_Click(object sender, EventArgs e)
{
try
{
DataGridViewSelectedRowCollection dgvsrc = dgvSelectDisease.SelectedRows;//获取选中行的集合
if (dgvsrc.Count > 0)
{
int index = dgvSelectDisease.SelectedRows[0].Index;//获取当前选中行的索引
if (index >= 0 & (dgvSelectDisease.RowCount - 1) != index)//如果该行不是最后一行
{
DataGridViewRow dgvr = dgvSelectDisease.Rows[index + 1];//获取选中行的下一行
dgvSelectDisease.Rows.RemoveAt(index + 1);//删除原选中行的上一行
dgvSelectDisease.Rows.Insert((index + 1 - dgvsrc.Count), dgvr);//将选中行的上一行插入到选中行的后面
for (int i = 0; i < dgvsrc.Count; i++)//选中移动后的行
{
dgvSelectDisease.Rows[index + 1 - i].Selected = true;
}
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
}
}

View File

@ -126,24 +126,6 @@
<metadata name="SelectNameColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="SelectIdColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="SelectIcdCodeColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="SelectNameColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="IcdCodeColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="NameColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Id.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>

View File

@ -20,7 +20,11 @@ namespace AIMS.PublicUI.UI
}
private void frmSelectOperation_Load(object sender, EventArgs e)
{
{
if (AIMSExtension.PublicMethod.RoleName.Contains("增加手术"))
{
btnAddOperation.Visible = true;
}
AIMSExtension.PublicMethod.SetDgvAttribute(dgvOperation);
AIMSExtension.PublicMethod.SetDgvAttribute(dgvSelectOperation);

View File

@ -25,6 +25,10 @@ namespace AIMS.PublicUI.UI
private void frmSelectOperationOne_Load(object sender, EventArgs e)
{
if (AIMSExtension.PublicMethod.RoleName.Contains("增加手术"))
{
btnAddOperation.Visible = true;
}
AIMSExtension.PublicMethod.SetDgvAttribute(dgvOperation);
//AIMSExtension.PublicMethod.SetDgvAttribute(dgvSelectOperation);

View File

@ -1,4 +1,5 @@
using AIMSBLL;
using AIMSExtension;
using AIMSModel;
using System;
using System.Collections.Generic;
@ -73,7 +74,8 @@ namespace AIMS.PublicUI.UI
}
InitTreeView();
////dgvRole_CellMouseClick(null, null);
MessageBox.Show("权限分配成功!");
MessageBox.Show("权限分配成功!");
AIMSExtension.PublicMethod.RoleName = BMenu.GetMenuRootListManageStr(AIMSExtension.PublicMethod.RoleId, "功能权限");
}
}
catch (Exception en)

View File

@ -69,6 +69,10 @@ namespace AIMSBLL
{
return DMenu.GetMenuRootListManage(RoleId,ParentId);
}
public static List<string> GetMenuRootListManageStr(int RoleId , string ParentId)
{
return DMenu.GetMenuRootListManageStr(RoleId,ParentId );
}
public static List<AIMSModel.Menu> GetMenuRootListManage(int RoleId)
{
return DMenu.GetMenuRootListManage(RoleId);

View File

@ -32,7 +32,7 @@ namespace AIMSDAL
strSql.Append(")");
strSql.Append(";select @@IDENTITY");
DbHelperSQL.ExecNonQuery(strSql.ToString());
}
}
public static void Delete(int Id)
{
StringBuilder strSql = new StringBuilder();
@ -270,6 +270,22 @@ namespace AIMSDAL
}
return MenuList;
}
public static List<string> GetMenuRootListManageStr(int RoleId, string ParentId)
{
List<string> MenuList = new List<string>();
StringBuilder strSql = new StringBuilder();
strSql.Append("select m.Id,m.Name,m.Path,m.ParentId,m.IsValid from Menu m ");
strSql.Append("INNER JOIN UserPurview up ON up.MenuId =m.Id ");
strSql.Append("WHERE m.IsValid=1 AND m.ParentId =(select id from Menu where Name='"+ParentId+"') AND up.RoleId=" + RoleId + " order by MenuOrder");//
DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
for (int i = 0; i < dt.Rows.Count; i++)
{
MenuList.Add(dt.Rows[i]["Name"].ToString());
}
return MenuList;
}
public static List<Menu> GetMenuRootListManage(int RoleId)
{
List<Menu> MenuList = new List<Menu>();
@ -352,7 +368,7 @@ namespace AIMSDAL
{
Menu.IsValid = int.Parse(dt.Rows[0]["IsValid"].ToString());
}
}
return Menu;
}

View File

@ -367,7 +367,7 @@ namespace AIMSDAL
{
try
{
string sql = string.Format(@"update OperationApply set {0} where state in(1,2,3) and PlanOperationTime<'" + SearchTime.ToString("yyyy-MM-dd 23:59:59") + "' and PlanOperationTime>'" + SearchTime.ToString("yyyy-MM-dd 00:00:00") + "' and OperationRoomId =" + CurrentRoom, DoctorNuresName);
string sql = string.Format(@"update OperationApply set {0} where state in(1,2,3,4) and PlanOperationTime<'" + SearchTime.ToString("yyyy-MM-dd 23:59:59") + "' and PlanOperationTime>'" + SearchTime.ToString("yyyy-MM-dd 00:00:00") + "' and OperationRoomId =" + CurrentRoom, DoctorNuresName);
return DBHelper.ExecNonQuery(sql);
}
catch (Exception)

View File

@ -1,5 +1,6 @@
using HelperDB;
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.IO;
@ -18,12 +19,13 @@ namespace AIMSExtension
public static string DeptName = "";
public static int DepId = 0;
public static int RoleId = 0;
public static List<string> RoleName;
public static int PermissionLevel = 0;
public static string NowVersion;
private static char zdSplit = '|';
private static char nameValueSplit = '*';
[DllImport("kernel32.dll", SetLastError = true)]
public static extern int SetLocalTime(ref SystemTime lpSystemTime);
public struct SystemTime