图片选择CA基础功能开发
This commit is contained in:
		
							parent
							
								
									7f6c0f696b
								
							
						
					
					
						commit
						98349202e0
					
				| @ -1,6 +1,6 @@ | |||||||
| <?xml version="1.0" encoding="utf-8" ?> | <?xml version="1.0" encoding="utf-8" ?> | ||||||
| <AtuoUpdate> | <AtuoUpdate> | ||||||
|   <ConnectionString>Data Source=.;Initial Catalog=AIMSDB_QHDSGRYY;User ID=sa;Password=Test2020;</ConnectionString> |   <ConnectionString>Data Source=.;Initial Catalog=AIMSDB_DLSJZQZYYY;User ID=sa;Password=Test2020;</ConnectionString> | ||||||
|   <DataConnectionString>Data Source=.;Initial Catalog=AIMSDB_DATA;User ID=sa;Password=Test2020;</DataConnectionString> |   <DataConnectionString>Data Source=.;Initial Catalog=AIMSDB_DATA;User ID=sa;Password=Test2020;</DataConnectionString> | ||||||
|   <HisConnectionStringOracel>Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.7)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl2))));Persist Security Info=True;User ID=smview;Password=i39;</HisConnectionStringOracel> |   <HisConnectionStringOracel>Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.7)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl2))));Persist Security Info=True;User ID=smview;Password=i39;</HisConnectionStringOracel> | ||||||
| </AtuoUpdate> | </AtuoUpdate> | ||||||
|  | |||||||
							
								
								
									
										364
									
								
								AIMS/DataDictionary/frmPerson.Designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										364
									
								
								AIMS/DataDictionary/frmPerson.Designer.cs
									
									
									
										generated
									
									
									
								
							| @ -30,22 +30,8 @@ | |||||||
|         { |         { | ||||||
|             this.panel2 = new System.Windows.Forms.Panel(); |             this.panel2 = new System.Windows.Forms.Panel(); | ||||||
|             this.dgvPerson = new System.Windows.Forms.DataGridView(); |             this.dgvPerson = new System.Windows.Forms.DataGridView(); | ||||||
|             this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn(); |  | ||||||
|             this.DepNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |  | ||||||
|             this.NoColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |  | ||||||
|             this.NameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |  | ||||||
|             this.HelpCodeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |  | ||||||
|             this.SexColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |  | ||||||
|             this.DiplomaColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |  | ||||||
|             this.JobTitleColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |  | ||||||
|             this.BirthDayColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |  | ||||||
|             this.TimeToWorkColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |  | ||||||
|             this.PersonTypeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |  | ||||||
|             this.RoleNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |  | ||||||
|             this.PassWordColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |  | ||||||
|             this.IsValidColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |  | ||||||
|             this.PersonOrderColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); |  | ||||||
|             this.panel1 = new System.Windows.Forms.Panel(); |             this.panel1 = new System.Windows.Forms.Panel(); | ||||||
|  |             this.pictureBox1 = new System.Windows.Forms.PictureBox(); | ||||||
|             this.cboDepartment = new System.Windows.Forms.ComboBox(); |             this.cboDepartment = new System.Windows.Forms.ComboBox(); | ||||||
|             this.cboPersonType = new System.Windows.Forms.ComboBox(); |             this.cboPersonType = new System.Windows.Forms.ComboBox(); | ||||||
|             this.label14 = new System.Windows.Forms.Label(); |             this.label14 = new System.Windows.Forms.Label(); | ||||||
| @ -53,11 +39,13 @@ | |||||||
|             this.label13 = new System.Windows.Forms.Label(); |             this.label13 = new System.Windows.Forms.Label(); | ||||||
|             this.cboSex = new System.Windows.Forms.ComboBox(); |             this.cboSex = new System.Windows.Forms.ComboBox(); | ||||||
|             this.label11 = new System.Windows.Forms.Label(); |             this.label11 = new System.Windows.Forms.Label(); | ||||||
|  |             this.cboDiploma = new System.Windows.Forms.TextBox(); | ||||||
|  |             this.txtSignatureIndex = new System.Windows.Forms.TextBox(); | ||||||
|  |             this.label15 = new System.Windows.Forms.Label(); | ||||||
|             this.txtNo = new System.Windows.Forms.TextBox(); |             this.txtNo = new System.Windows.Forms.TextBox(); | ||||||
|             this.label10 = new System.Windows.Forms.Label(); |             this.label10 = new System.Windows.Forms.Label(); | ||||||
|             this.cboJobTitle = new System.Windows.Forms.ComboBox(); |             this.cboJobTitle = new System.Windows.Forms.ComboBox(); | ||||||
|             this.label9 = new System.Windows.Forms.Label(); |             this.label9 = new System.Windows.Forms.Label(); | ||||||
|             this.cboDiploma = new System.Windows.Forms.ComboBox(); |  | ||||||
|             this.label8 = new System.Windows.Forms.Label(); |             this.label8 = new System.Windows.Forms.Label(); | ||||||
|             this.dtpTimeToWork = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); |             this.dtpTimeToWork = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); | ||||||
|             this.label7 = new System.Windows.Forms.Label(); |             this.label7 = new System.Windows.Forms.Label(); | ||||||
| @ -85,9 +73,26 @@ | |||||||
|             this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); |             this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); | ||||||
|             this.tsbExit = new System.Windows.Forms.ToolStripButton(); |             this.tsbExit = new System.Windows.Forms.ToolStripButton(); | ||||||
|             this.chkAllShow = new System.Windows.Forms.CheckBox(); |             this.chkAllShow = new System.Windows.Forms.CheckBox(); | ||||||
|  |             this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.DepNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.NoColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.NameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.HelpCodeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.SexColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.DiplomaColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.JobTitleColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.BirthDayColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.TimeToWorkColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.PersonTypeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.RoleNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.PassWordColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.IsValidColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.PersonOrderColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.SignatureStr = new System.Windows.Forms.DataGridViewImageColumn(); | ||||||
|             this.panel2.SuspendLayout(); |             this.panel2.SuspendLayout(); | ||||||
|             ((System.ComponentModel.ISupportInitialize)(this.dgvPerson)).BeginInit(); |             ((System.ComponentModel.ISupportInitialize)(this.dgvPerson)).BeginInit(); | ||||||
|             this.panel1.SuspendLayout(); |             this.panel1.SuspendLayout(); | ||||||
|  |             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); | ||||||
|             ((System.ComponentModel.ISupportInitialize)(this.dtpTimeToWork)).BeginInit(); |             ((System.ComponentModel.ISupportInitialize)(this.dtpTimeToWork)).BeginInit(); | ||||||
|             ((System.ComponentModel.ISupportInitialize)(this.dtpBirthDay)).BeginInit(); |             ((System.ComponentModel.ISupportInitialize)(this.dtpBirthDay)).BeginInit(); | ||||||
|             ((System.ComponentModel.ISupportInitialize)(this.intPersonOrder)).BeginInit(); |             ((System.ComponentModel.ISupportInitialize)(this.intPersonOrder)).BeginInit(); | ||||||
| @ -100,7 +105,7 @@ | |||||||
|             this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; |             this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; | ||||||
|             this.panel2.Location = new System.Drawing.Point(0, 157); |             this.panel2.Location = new System.Drawing.Point(0, 157); | ||||||
|             this.panel2.Name = "panel2"; |             this.panel2.Name = "panel2"; | ||||||
|             this.panel2.Size = new System.Drawing.Size(913, 338); |             this.panel2.Size = new System.Drawing.Size(1016, 338); | ||||||
|             this.panel2.TabIndex = 7; |             this.panel2.TabIndex = 7; | ||||||
|             //  |             //  | ||||||
|             // dgvPerson |             // dgvPerson | ||||||
| @ -123,133 +128,20 @@ | |||||||
|             this.RoleNameColumn, |             this.RoleNameColumn, | ||||||
|             this.PassWordColumn, |             this.PassWordColumn, | ||||||
|             this.IsValidColumn, |             this.IsValidColumn, | ||||||
|             this.PersonOrderColumn}); |             this.PersonOrderColumn, | ||||||
|  |             this.SignatureStr}); | ||||||
|             this.dgvPerson.Dock = System.Windows.Forms.DockStyle.Fill; |             this.dgvPerson.Dock = System.Windows.Forms.DockStyle.Fill; | ||||||
|             this.dgvPerson.Location = new System.Drawing.Point(0, 0); |             this.dgvPerson.Location = new System.Drawing.Point(0, 0); | ||||||
|             this.dgvPerson.Name = "dgvPerson"; |             this.dgvPerson.Name = "dgvPerson"; | ||||||
|             this.dgvPerson.RowHeadersVisible = false; |             this.dgvPerson.RowHeadersVisible = false; | ||||||
|             this.dgvPerson.RowTemplate.Height = 23; |             this.dgvPerson.RowTemplate.Height = 23; | ||||||
|             this.dgvPerson.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; |             this.dgvPerson.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | ||||||
|             this.dgvPerson.Size = new System.Drawing.Size(913, 338); |             this.dgvPerson.Size = new System.Drawing.Size(1016, 338); | ||||||
|             this.dgvPerson.TabIndex = 2; |             this.dgvPerson.TabIndex = 2; | ||||||
|             //  |             //  | ||||||
|             // Id |  | ||||||
|             //  |  | ||||||
|             this.Id.DataPropertyName = "Id"; |  | ||||||
|             this.Id.Frozen = true; |  | ||||||
|             this.Id.HeaderText = "Id"; |  | ||||||
|             this.Id.Name = "Id"; |  | ||||||
|             this.Id.ReadOnly = true; |  | ||||||
|             this.Id.Visible = false; |  | ||||||
|             //  |  | ||||||
|             // DepNameColumn |  | ||||||
|             //  |  | ||||||
|             this.DepNameColumn.DataPropertyName = "DepName"; |  | ||||||
|             this.DepNameColumn.HeaderText = "所在科室"; |  | ||||||
|             this.DepNameColumn.Name = "DepNameColumn"; |  | ||||||
|             this.DepNameColumn.ReadOnly = true; |  | ||||||
|             //  |  | ||||||
|             // NoColumn |  | ||||||
|             //  |  | ||||||
|             this.NoColumn.DataPropertyName = "No"; |  | ||||||
|             this.NoColumn.HeaderText = "工号"; |  | ||||||
|             this.NoColumn.Name = "NoColumn"; |  | ||||||
|             this.NoColumn.ReadOnly = true; |  | ||||||
|             this.NoColumn.Width = 80; |  | ||||||
|             //  |  | ||||||
|             // NameColumn |  | ||||||
|             //  |  | ||||||
|             this.NameColumn.DataPropertyName = "Name"; |  | ||||||
|             this.NameColumn.HeaderText = "名称"; |  | ||||||
|             this.NameColumn.Name = "NameColumn"; |  | ||||||
|             this.NameColumn.ReadOnly = true; |  | ||||||
|             //  |  | ||||||
|             // HelpCodeColumn |  | ||||||
|             //  |  | ||||||
|             this.HelpCodeColumn.DataPropertyName = "HelpCode"; |  | ||||||
|             this.HelpCodeColumn.HeaderText = "助记码"; |  | ||||||
|             this.HelpCodeColumn.Name = "HelpCodeColumn"; |  | ||||||
|             this.HelpCodeColumn.ReadOnly = true; |  | ||||||
|             this.HelpCodeColumn.Width = 80; |  | ||||||
|             //  |  | ||||||
|             // SexColumn |  | ||||||
|             //  |  | ||||||
|             this.SexColumn.DataPropertyName = "Sex"; |  | ||||||
|             this.SexColumn.HeaderText = "性别"; |  | ||||||
|             this.SexColumn.Name = "SexColumn"; |  | ||||||
|             this.SexColumn.ReadOnly = true; |  | ||||||
|             this.SexColumn.Width = 60; |  | ||||||
|             //  |  | ||||||
|             // DiplomaColumn |  | ||||||
|             //  |  | ||||||
|             this.DiplomaColumn.DataPropertyName = "Diploma"; |  | ||||||
|             this.DiplomaColumn.HeaderText = "学历"; |  | ||||||
|             this.DiplomaColumn.Name = "DiplomaColumn"; |  | ||||||
|             this.DiplomaColumn.ReadOnly = true; |  | ||||||
|             this.DiplomaColumn.Width = 80; |  | ||||||
|             //  |  | ||||||
|             // JobTitleColumn |  | ||||||
|             //  |  | ||||||
|             this.JobTitleColumn.DataPropertyName = "JobTitle"; |  | ||||||
|             this.JobTitleColumn.HeaderText = "职称"; |  | ||||||
|             this.JobTitleColumn.Name = "JobTitleColumn"; |  | ||||||
|             this.JobTitleColumn.ReadOnly = true; |  | ||||||
|             this.JobTitleColumn.Width = 80; |  | ||||||
|             //  |  | ||||||
|             // BirthDayColumn |  | ||||||
|             //  |  | ||||||
|             this.BirthDayColumn.DataPropertyName = "BirthDay"; |  | ||||||
|             this.BirthDayColumn.HeaderText = "出生日期"; |  | ||||||
|             this.BirthDayColumn.Name = "BirthDayColumn"; |  | ||||||
|             this.BirthDayColumn.ReadOnly = true; |  | ||||||
|             //  |  | ||||||
|             // TimeToWorkColumn |  | ||||||
|             //  |  | ||||||
|             this.TimeToWorkColumn.DataPropertyName = "TimeToWork"; |  | ||||||
|             this.TimeToWorkColumn.HeaderText = "参加工作日期"; |  | ||||||
|             this.TimeToWorkColumn.Name = "TimeToWorkColumn"; |  | ||||||
|             this.TimeToWorkColumn.ReadOnly = true; |  | ||||||
|             //  |  | ||||||
|             // PersonTypeColumn |  | ||||||
|             //  |  | ||||||
|             this.PersonTypeColumn.DataPropertyName = "PersonType"; |  | ||||||
|             this.PersonTypeColumn.HeaderText = "类型"; |  | ||||||
|             this.PersonTypeColumn.Name = "PersonTypeColumn"; |  | ||||||
|             this.PersonTypeColumn.ReadOnly = true; |  | ||||||
|             //  |  | ||||||
|             // RoleNameColumn |  | ||||||
|             //  |  | ||||||
|             this.RoleNameColumn.DataPropertyName = "RoleName"; |  | ||||||
|             this.RoleNameColumn.HeaderText = "角色"; |  | ||||||
|             this.RoleNameColumn.Name = "RoleNameColumn"; |  | ||||||
|             this.RoleNameColumn.ReadOnly = true; |  | ||||||
|             //  |  | ||||||
|             // PassWordColumn |  | ||||||
|             //  |  | ||||||
|             this.PassWordColumn.DataPropertyName = "PassWord"; |  | ||||||
|             this.PassWordColumn.HeaderText = "密码"; |  | ||||||
|             this.PassWordColumn.Name = "PassWordColumn"; |  | ||||||
|             this.PassWordColumn.ReadOnly = true; |  | ||||||
|             this.PassWordColumn.Visible = false; |  | ||||||
|             //  |  | ||||||
|             // IsValidColumn |  | ||||||
|             //  |  | ||||||
|             this.IsValidColumn.DataPropertyName = "IsValid"; |  | ||||||
|             this.IsValidColumn.HeaderText = "有效性"; |  | ||||||
|             this.IsValidColumn.Name = "IsValidColumn"; |  | ||||||
|             this.IsValidColumn.ReadOnly = true; |  | ||||||
|             this.IsValidColumn.Width = 75; |  | ||||||
|             //  |  | ||||||
|             // PersonOrderColumn |  | ||||||
|             //  |  | ||||||
|             this.PersonOrderColumn.DataPropertyName = "PersonOrder"; |  | ||||||
|             this.PersonOrderColumn.HeaderText = "排序"; |  | ||||||
|             this.PersonOrderColumn.Name = "PersonOrderColumn"; |  | ||||||
|             this.PersonOrderColumn.ReadOnly = true; |  | ||||||
|             this.PersonOrderColumn.Width = 60; |  | ||||||
|             //  |  | ||||||
|             // panel1 |             // panel1 | ||||||
|             //  |             //  | ||||||
|  |             this.panel1.Controls.Add(this.pictureBox1); | ||||||
|             this.panel1.Controls.Add(this.cboDepartment); |             this.panel1.Controls.Add(this.cboDepartment); | ||||||
|             this.panel1.Controls.Add(this.cboPersonType); |             this.panel1.Controls.Add(this.cboPersonType); | ||||||
|             this.panel1.Controls.Add(this.label14); |             this.panel1.Controls.Add(this.label14); | ||||||
| @ -257,11 +149,13 @@ | |||||||
|             this.panel1.Controls.Add(this.label13); |             this.panel1.Controls.Add(this.label13); | ||||||
|             this.panel1.Controls.Add(this.cboSex); |             this.panel1.Controls.Add(this.cboSex); | ||||||
|             this.panel1.Controls.Add(this.label11); |             this.panel1.Controls.Add(this.label11); | ||||||
|  |             this.panel1.Controls.Add(this.cboDiploma); | ||||||
|  |             this.panel1.Controls.Add(this.txtSignatureIndex); | ||||||
|  |             this.panel1.Controls.Add(this.label15); | ||||||
|             this.panel1.Controls.Add(this.txtNo); |             this.panel1.Controls.Add(this.txtNo); | ||||||
|             this.panel1.Controls.Add(this.label10); |             this.panel1.Controls.Add(this.label10); | ||||||
|             this.panel1.Controls.Add(this.cboJobTitle); |             this.panel1.Controls.Add(this.cboJobTitle); | ||||||
|             this.panel1.Controls.Add(this.label9); |             this.panel1.Controls.Add(this.label9); | ||||||
|             this.panel1.Controls.Add(this.cboDiploma); |  | ||||||
|             this.panel1.Controls.Add(this.label8); |             this.panel1.Controls.Add(this.label8); | ||||||
|             this.panel1.Controls.Add(this.dtpTimeToWork); |             this.panel1.Controls.Add(this.dtpTimeToWork); | ||||||
|             this.panel1.Controls.Add(this.label7); |             this.panel1.Controls.Add(this.label7); | ||||||
| @ -282,9 +176,20 @@ | |||||||
|             this.panel1.Font = new System.Drawing.Font("宋体", 10.5F); |             this.panel1.Font = new System.Drawing.Font("宋体", 10.5F); | ||||||
|             this.panel1.Location = new System.Drawing.Point(0, 49); |             this.panel1.Location = new System.Drawing.Point(0, 49); | ||||||
|             this.panel1.Name = "panel1"; |             this.panel1.Name = "panel1"; | ||||||
|             this.panel1.Size = new System.Drawing.Size(913, 108); |             this.panel1.Size = new System.Drawing.Size(1016, 108); | ||||||
|             this.panel1.TabIndex = 6; |             this.panel1.TabIndex = 6; | ||||||
|             //  |             //  | ||||||
|  |             // pictureBox1 | ||||||
|  |             //  | ||||||
|  |             this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; | ||||||
|  |             this.pictureBox1.Location = new System.Drawing.Point(881, 42); | ||||||
|  |             this.pictureBox1.Margin = new System.Windows.Forms.Padding(2); | ||||||
|  |             this.pictureBox1.Name = "pictureBox1"; | ||||||
|  |             this.pictureBox1.Size = new System.Drawing.Size(129, 56); | ||||||
|  |             this.pictureBox1.TabIndex = 576; | ||||||
|  |             this.pictureBox1.TabStop = false; | ||||||
|  |             this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click); | ||||||
|  |             //  | ||||||
|             // cboDepartment |             // cboDepartment | ||||||
|             //  |             //  | ||||||
|             this.cboDepartment.Font = new System.Drawing.Font("微软雅黑", 10.5F); |             this.cboDepartment.Font = new System.Drawing.Font("微软雅黑", 10.5F); | ||||||
| @ -326,7 +231,7 @@ | |||||||
|             //  |             //  | ||||||
|             this.txtPassWord.Location = new System.Drawing.Point(473, 73); |             this.txtPassWord.Location = new System.Drawing.Point(473, 73); | ||||||
|             this.txtPassWord.Name = "txtPassWord"; |             this.txtPassWord.Name = "txtPassWord"; | ||||||
|             this.txtPassWord.Size = new System.Drawing.Size(100, 23); |             this.txtPassWord.Size = new System.Drawing.Size(138, 23); | ||||||
|             this.txtPassWord.TabIndex = 572; |             this.txtPassWord.TabIndex = 572; | ||||||
|             //  |             //  | ||||||
|             // label13 |             // label13 | ||||||
| @ -360,6 +265,29 @@ | |||||||
|             this.label11.TabIndex = 569; |             this.label11.TabIndex = 569; | ||||||
|             this.label11.Text = "性别"; |             this.label11.Text = "性别"; | ||||||
|             //  |             //  | ||||||
|  |             // cboDiploma | ||||||
|  |             //  | ||||||
|  |             this.cboDiploma.Location = new System.Drawing.Point(71, 42); | ||||||
|  |             this.cboDiploma.Name = "cboDiploma"; | ||||||
|  |             this.cboDiploma.Size = new System.Drawing.Size(123, 23); | ||||||
|  |             this.cboDiploma.TabIndex = 568; | ||||||
|  |             //  | ||||||
|  |             // txtSignatureIndex | ||||||
|  |             //  | ||||||
|  |             this.txtSignatureIndex.Location = new System.Drawing.Point(934, 9); | ||||||
|  |             this.txtSignatureIndex.Name = "txtSignatureIndex"; | ||||||
|  |             this.txtSignatureIndex.Size = new System.Drawing.Size(76, 23); | ||||||
|  |             this.txtSignatureIndex.TabIndex = 568; | ||||||
|  |             //  | ||||||
|  |             // label15 | ||||||
|  |             //  | ||||||
|  |             this.label15.AutoSize = true; | ||||||
|  |             this.label15.Location = new System.Drawing.Point(884, 15); | ||||||
|  |             this.label15.Name = "label15"; | ||||||
|  |             this.label15.Size = new System.Drawing.Size(49, 14); | ||||||
|  |             this.label15.TabIndex = 567; | ||||||
|  |             this.label15.Text = "CA标识"; | ||||||
|  |             //  | ||||||
|             // txtNo |             // txtNo | ||||||
|             //  |             //  | ||||||
|             this.txtNo.Location = new System.Drawing.Point(275, 10); |             this.txtNo.Location = new System.Drawing.Point(275, 10); | ||||||
| @ -402,31 +330,14 @@ | |||||||
|             this.label9.TabIndex = 565; |             this.label9.TabIndex = 565; | ||||||
|             this.label9.Text = "职称"; |             this.label9.Text = "职称"; | ||||||
|             //  |             //  | ||||||
|             // cboDiploma |  | ||||||
|             //  |  | ||||||
|             this.cboDiploma.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; |  | ||||||
|             this.cboDiploma.FormattingEnabled = true; |  | ||||||
|             this.cboDiploma.Items.AddRange(new object[] { |  | ||||||
|             "药品管理部门", |  | ||||||
|             "诊疗部门", |  | ||||||
|             "辅助诊疗部门", |  | ||||||
|             "护理部门", |  | ||||||
|             "行政后勤部门", |  | ||||||
|             "手术室", |  | ||||||
|             "社区"}); |  | ||||||
|             this.cboDiploma.Location = new System.Drawing.Point(71, 42); |  | ||||||
|             this.cboDiploma.Name = "cboDiploma"; |  | ||||||
|             this.cboDiploma.Size = new System.Drawing.Size(123, 22); |  | ||||||
|             this.cboDiploma.TabIndex = 564; |  | ||||||
|             //  |  | ||||||
|             // label8 |             // label8 | ||||||
|             //  |             //  | ||||||
|             this.label8.AutoSize = true; |             this.label8.AutoSize = true; | ||||||
|             this.label8.Location = new System.Drawing.Point(30, 48); |             this.label8.Location = new System.Drawing.Point(10, 48); | ||||||
|             this.label8.Name = "label8"; |             this.label8.Name = "label8"; | ||||||
|             this.label8.Size = new System.Drawing.Size(35, 14); |             this.label8.Size = new System.Drawing.Size(56, 14); | ||||||
|             this.label8.TabIndex = 563; |             this.label8.TabIndex = 563; | ||||||
|             this.label8.Text = "学历"; |             this.label8.Text = "His编码"; | ||||||
|             //  |             //  | ||||||
|             // dtpTimeToWork |             // dtpTimeToWork | ||||||
|             //  |             //  | ||||||
| @ -549,7 +460,7 @@ | |||||||
|             "社区"}); |             "社区"}); | ||||||
|             this.cboRole.Location = new System.Drawing.Point(275, 73); |             this.cboRole.Location = new System.Drawing.Point(275, 73); | ||||||
|             this.cboRole.Name = "cboRole"; |             this.cboRole.Name = "cboRole"; | ||||||
|             this.cboRole.Size = new System.Drawing.Size(123, 22); |             this.cboRole.Size = new System.Drawing.Size(100, 22); | ||||||
|             this.cboRole.TabIndex = 558; |             this.cboRole.TabIndex = 558; | ||||||
|             //  |             //  | ||||||
|             // label3 |             // label3 | ||||||
| @ -619,7 +530,7 @@ | |||||||
|             // chkIsValid |             // chkIsValid | ||||||
|             //  |             //  | ||||||
|             this.chkIsValid.AutoSize = true; |             this.chkIsValid.AutoSize = true; | ||||||
|             this.chkIsValid.Location = new System.Drawing.Point(802, 75); |             this.chkIsValid.Location = new System.Drawing.Point(789, 77); | ||||||
|             this.chkIsValid.Name = "chkIsValid"; |             this.chkIsValid.Name = "chkIsValid"; | ||||||
|             this.chkIsValid.Size = new System.Drawing.Size(68, 18); |             this.chkIsValid.Size = new System.Drawing.Size(68, 18); | ||||||
|             this.chkIsValid.TabIndex = 13; |             this.chkIsValid.TabIndex = 13; | ||||||
| @ -690,7 +601,7 @@ | |||||||
|             this.tsbExit}); |             this.tsbExit}); | ||||||
|             this.toolStrip1.Location = new System.Drawing.Point(0, 0); |             this.toolStrip1.Location = new System.Drawing.Point(0, 0); | ||||||
|             this.toolStrip1.Name = "toolStrip1"; |             this.toolStrip1.Name = "toolStrip1"; | ||||||
|             this.toolStrip1.Size = new System.Drawing.Size(913, 49); |             this.toolStrip1.Size = new System.Drawing.Size(1016, 49); | ||||||
|             this.toolStrip1.TabIndex = 5; |             this.toolStrip1.TabIndex = 5; | ||||||
|             this.toolStrip1.Text = "toolStrip1"; |             this.toolStrip1.Text = "toolStrip1"; | ||||||
|             //  |             //  | ||||||
| @ -748,11 +659,131 @@ | |||||||
|             this.chkAllShow.UseVisualStyleBackColor = true; |             this.chkAllShow.UseVisualStyleBackColor = true; | ||||||
|             this.chkAllShow.CheckedChanged += new System.EventHandler(this.chkAllShow_CheckedChanged); |             this.chkAllShow.CheckedChanged += new System.EventHandler(this.chkAllShow_CheckedChanged); | ||||||
|             //  |             //  | ||||||
|  |             // Id | ||||||
|  |             //  | ||||||
|  |             this.Id.DataPropertyName = "Id"; | ||||||
|  |             this.Id.Frozen = true; | ||||||
|  |             this.Id.HeaderText = "Id"; | ||||||
|  |             this.Id.Name = "Id"; | ||||||
|  |             this.Id.ReadOnly = true; | ||||||
|  |             this.Id.Visible = false; | ||||||
|  |             //  | ||||||
|  |             // DepNameColumn | ||||||
|  |             //  | ||||||
|  |             this.DepNameColumn.DataPropertyName = "DepName"; | ||||||
|  |             this.DepNameColumn.HeaderText = "所在科室"; | ||||||
|  |             this.DepNameColumn.Name = "DepNameColumn"; | ||||||
|  |             this.DepNameColumn.ReadOnly = true; | ||||||
|  |             //  | ||||||
|  |             // NoColumn | ||||||
|  |             //  | ||||||
|  |             this.NoColumn.DataPropertyName = "No"; | ||||||
|  |             this.NoColumn.HeaderText = "工号"; | ||||||
|  |             this.NoColumn.Name = "NoColumn"; | ||||||
|  |             this.NoColumn.ReadOnly = true; | ||||||
|  |             this.NoColumn.Width = 80; | ||||||
|  |             //  | ||||||
|  |             // NameColumn | ||||||
|  |             //  | ||||||
|  |             this.NameColumn.DataPropertyName = "Name"; | ||||||
|  |             this.NameColumn.HeaderText = "名称"; | ||||||
|  |             this.NameColumn.Name = "NameColumn"; | ||||||
|  |             this.NameColumn.ReadOnly = true; | ||||||
|  |             //  | ||||||
|  |             // HelpCodeColumn | ||||||
|  |             //  | ||||||
|  |             this.HelpCodeColumn.DataPropertyName = "HelpCode"; | ||||||
|  |             this.HelpCodeColumn.HeaderText = "助记码"; | ||||||
|  |             this.HelpCodeColumn.Name = "HelpCodeColumn"; | ||||||
|  |             this.HelpCodeColumn.ReadOnly = true; | ||||||
|  |             this.HelpCodeColumn.Width = 80; | ||||||
|  |             //  | ||||||
|  |             // SexColumn | ||||||
|  |             //  | ||||||
|  |             this.SexColumn.DataPropertyName = "Sex"; | ||||||
|  |             this.SexColumn.HeaderText = "性别"; | ||||||
|  |             this.SexColumn.Name = "SexColumn"; | ||||||
|  |             this.SexColumn.ReadOnly = true; | ||||||
|  |             this.SexColumn.Width = 60; | ||||||
|  |             //  | ||||||
|  |             // DiplomaColumn | ||||||
|  |             //  | ||||||
|  |             this.DiplomaColumn.DataPropertyName = "Diploma"; | ||||||
|  |             this.DiplomaColumn.HeaderText = "His编码"; | ||||||
|  |             this.DiplomaColumn.Name = "DiplomaColumn"; | ||||||
|  |             this.DiplomaColumn.ReadOnly = true; | ||||||
|  |             this.DiplomaColumn.Width = 80; | ||||||
|  |             //  | ||||||
|  |             // JobTitleColumn | ||||||
|  |             //  | ||||||
|  |             this.JobTitleColumn.DataPropertyName = "JobTitle"; | ||||||
|  |             this.JobTitleColumn.HeaderText = "职称"; | ||||||
|  |             this.JobTitleColumn.Name = "JobTitleColumn"; | ||||||
|  |             this.JobTitleColumn.ReadOnly = true; | ||||||
|  |             this.JobTitleColumn.Width = 80; | ||||||
|  |             //  | ||||||
|  |             // BirthDayColumn | ||||||
|  |             //  | ||||||
|  |             this.BirthDayColumn.DataPropertyName = "BirthDay"; | ||||||
|  |             this.BirthDayColumn.HeaderText = "出生日期"; | ||||||
|  |             this.BirthDayColumn.Name = "BirthDayColumn"; | ||||||
|  |             this.BirthDayColumn.ReadOnly = true; | ||||||
|  |             //  | ||||||
|  |             // TimeToWorkColumn | ||||||
|  |             //  | ||||||
|  |             this.TimeToWorkColumn.DataPropertyName = "TimeToWork"; | ||||||
|  |             this.TimeToWorkColumn.HeaderText = "参加工作日期"; | ||||||
|  |             this.TimeToWorkColumn.Name = "TimeToWorkColumn"; | ||||||
|  |             this.TimeToWorkColumn.ReadOnly = true; | ||||||
|  |             //  | ||||||
|  |             // PersonTypeColumn | ||||||
|  |             //  | ||||||
|  |             this.PersonTypeColumn.DataPropertyName = "PersonType"; | ||||||
|  |             this.PersonTypeColumn.HeaderText = "类型"; | ||||||
|  |             this.PersonTypeColumn.Name = "PersonTypeColumn"; | ||||||
|  |             this.PersonTypeColumn.ReadOnly = true; | ||||||
|  |             //  | ||||||
|  |             // RoleNameColumn | ||||||
|  |             //  | ||||||
|  |             this.RoleNameColumn.DataPropertyName = "RoleName"; | ||||||
|  |             this.RoleNameColumn.HeaderText = "角色"; | ||||||
|  |             this.RoleNameColumn.Name = "RoleNameColumn"; | ||||||
|  |             this.RoleNameColumn.ReadOnly = true; | ||||||
|  |             //  | ||||||
|  |             // PassWordColumn | ||||||
|  |             //  | ||||||
|  |             this.PassWordColumn.DataPropertyName = "PassWord"; | ||||||
|  |             this.PassWordColumn.HeaderText = "密码"; | ||||||
|  |             this.PassWordColumn.Name = "PassWordColumn"; | ||||||
|  |             this.PassWordColumn.ReadOnly = true; | ||||||
|  |             this.PassWordColumn.Visible = false; | ||||||
|  |             //  | ||||||
|  |             // IsValidColumn | ||||||
|  |             //  | ||||||
|  |             this.IsValidColumn.DataPropertyName = "IsValid"; | ||||||
|  |             this.IsValidColumn.HeaderText = "有效性"; | ||||||
|  |             this.IsValidColumn.Name = "IsValidColumn"; | ||||||
|  |             this.IsValidColumn.ReadOnly = true; | ||||||
|  |             this.IsValidColumn.Width = 75; | ||||||
|  |             //  | ||||||
|  |             // PersonOrderColumn | ||||||
|  |             //  | ||||||
|  |             this.PersonOrderColumn.DataPropertyName = "PersonOrder"; | ||||||
|  |             this.PersonOrderColumn.HeaderText = "排序"; | ||||||
|  |             this.PersonOrderColumn.Name = "PersonOrderColumn"; | ||||||
|  |             this.PersonOrderColumn.ReadOnly = true; | ||||||
|  |             this.PersonOrderColumn.Width = 60; | ||||||
|  |             //  | ||||||
|  |             // SignatureStr | ||||||
|  |             //  | ||||||
|  |             this.SignatureStr.HeaderText = "签名"; | ||||||
|  |             this.SignatureStr.Name = "SignatureStr"; | ||||||
|  |             //  | ||||||
|             // frmPerson |             // frmPerson | ||||||
|             //  |             //  | ||||||
|             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); |             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | ||||||
|             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | ||||||
|             this.ClientSize = new System.Drawing.Size(913, 495); |             this.ClientSize = new System.Drawing.Size(1016, 495); | ||||||
|             this.ControlBox = false; |             this.ControlBox = false; | ||||||
|             this.Controls.Add(this.chkAllShow); |             this.Controls.Add(this.chkAllShow); | ||||||
|             this.Controls.Add(this.panel2); |             this.Controls.Add(this.panel2); | ||||||
| @ -769,6 +800,7 @@ | |||||||
|             ((System.ComponentModel.ISupportInitialize)(this.dgvPerson)).EndInit(); |             ((System.ComponentModel.ISupportInitialize)(this.dgvPerson)).EndInit(); | ||||||
|             this.panel1.ResumeLayout(false); |             this.panel1.ResumeLayout(false); | ||||||
|             this.panel1.PerformLayout(); |             this.panel1.PerformLayout(); | ||||||
|  |             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); | ||||||
|             ((System.ComponentModel.ISupportInitialize)(this.dtpTimeToWork)).EndInit(); |             ((System.ComponentModel.ISupportInitialize)(this.dtpTimeToWork)).EndInit(); | ||||||
|             ((System.ComponentModel.ISupportInitialize)(this.dtpBirthDay)).EndInit(); |             ((System.ComponentModel.ISupportInitialize)(this.dtpBirthDay)).EndInit(); | ||||||
|             ((System.ComponentModel.ISupportInitialize)(this.intPersonOrder)).EndInit(); |             ((System.ComponentModel.ISupportInitialize)(this.intPersonOrder)).EndInit(); | ||||||
| @ -809,7 +841,6 @@ | |||||||
|         private DevComponents.Editors.DateTimeAdv.DateTimeInput dtpBirthDay; |         private DevComponents.Editors.DateTimeAdv.DateTimeInput dtpBirthDay; | ||||||
|         private DevComponents.Editors.DateTimeAdv.DateTimeInput dtpTimeToWork; |         private DevComponents.Editors.DateTimeAdv.DateTimeInput dtpTimeToWork; | ||||||
|         private System.Windows.Forms.Label label7; |         private System.Windows.Forms.Label label7; | ||||||
|         private System.Windows.Forms.ComboBox cboDiploma; |  | ||||||
|         private System.Windows.Forms.Label label8; |         private System.Windows.Forms.Label label8; | ||||||
|         private System.Windows.Forms.TextBox txtNo; |         private System.Windows.Forms.TextBox txtNo; | ||||||
|         private System.Windows.Forms.Label label10; |         private System.Windows.Forms.Label label10; | ||||||
| @ -821,6 +852,12 @@ | |||||||
|         private System.Windows.Forms.Label label13; |         private System.Windows.Forms.Label label13; | ||||||
|         private System.Windows.Forms.ComboBox cboPersonType; |         private System.Windows.Forms.ComboBox cboPersonType; | ||||||
|         private System.Windows.Forms.Label label14; |         private System.Windows.Forms.Label label14; | ||||||
|  |         public System.Windows.Forms.ComboBox cboDepartment; | ||||||
|  |         private System.Windows.Forms.CheckBox chkAllShow; | ||||||
|  |         private System.Windows.Forms.TextBox cboDiploma; | ||||||
|  |         public System.Windows.Forms.PictureBox pictureBox1; | ||||||
|  |         private System.Windows.Forms.TextBox txtSignatureIndex; | ||||||
|  |         private System.Windows.Forms.Label label15; | ||||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn Id; |         private System.Windows.Forms.DataGridViewTextBoxColumn Id; | ||||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn DepNameColumn; |         private System.Windows.Forms.DataGridViewTextBoxColumn DepNameColumn; | ||||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn NoColumn; |         private System.Windows.Forms.DataGridViewTextBoxColumn NoColumn; | ||||||
| @ -836,7 +873,6 @@ | |||||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn PassWordColumn; |         private System.Windows.Forms.DataGridViewTextBoxColumn PassWordColumn; | ||||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn IsValidColumn; |         private System.Windows.Forms.DataGridViewTextBoxColumn IsValidColumn; | ||||||
|         private System.Windows.Forms.DataGridViewTextBoxColumn PersonOrderColumn; |         private System.Windows.Forms.DataGridViewTextBoxColumn PersonOrderColumn; | ||||||
|         public System.Windows.Forms.ComboBox cboDepartment; |         private System.Windows.Forms.DataGridViewImageColumn SignatureStr; | ||||||
|         private System.Windows.Forms.CheckBox chkAllShow; |  | ||||||
|     } |     } | ||||||
| } | } | ||||||
| @ -4,6 +4,9 @@ using DataDictionary; | |||||||
| using System; | using System; | ||||||
| using System.Collections.Generic; | using System.Collections.Generic; | ||||||
| using System.Data; | using System.Data; | ||||||
|  | using System.Drawing; | ||||||
|  | using System.IO; | ||||||
|  | using System.Reflection; | ||||||
| using System.Windows.Forms; | using System.Windows.Forms; | ||||||
| 
 | 
 | ||||||
| namespace AIMS.PublicUI.UI | namespace AIMS.PublicUI.UI | ||||||
| @ -43,15 +46,9 @@ namespace AIMS.PublicUI.UI | |||||||
|             cboRole.DataSource = BRole.GetDataTable(); |             cboRole.DataSource = BRole.GetDataTable(); | ||||||
|             cboRole.SelectedIndex = -1; |             cboRole.SelectedIndex = -1; | ||||||
| 
 | 
 | ||||||
|             cboDiploma.DisplayMember = "Name"; |  | ||||||
|             cboDiploma.ValueMember = "Id"; |  | ||||||
|             cboDiploma.DataSource = BBasicDictionary.GetDataDictionaryDataTable(" ParentId IN (SELECT Id FROM BasicDictionary WHERE NAME='学历')"); |  | ||||||
|             cboDiploma.SelectedIndex = -1; |  | ||||||
| 
 |  | ||||||
|             cboJobTitle.DisplayMember = "Name"; |             cboJobTitle.DisplayMember = "Name"; | ||||||
|             cboJobTitle.ValueMember = "Id"; |             cboJobTitle.ValueMember = "Id"; | ||||||
|             cboJobTitle.DataSource = BBasicDictionary.GetDataDictionaryDataTable(" ParentId IN (SELECT Id FROM BasicDictionary WHERE NAME='工作职称')"); |             cboJobTitle.DataSource = BBasicDictionary.GetDataDictionaryDataTable(" ParentId IN (SELECT Id FROM BasicDictionary WHERE NAME='工作职称')"); | ||||||
| 
 |  | ||||||
|             cboJobTitle.SelectedIndex = -1; |             cboJobTitle.SelectedIndex = -1; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -88,7 +85,7 @@ namespace AIMS.PublicUI.UI | |||||||
|             ControlExtension.EnabledControl(panel1, true); |             ControlExtension.EnabledControl(panel1, true); | ||||||
|             if (dgvPerson.Rows.Count > 0) |             if (dgvPerson.Rows.Count > 0) | ||||||
|             { |             { | ||||||
|                 SelectPerson.Id = int.Parse(dgvPerson.CurrentRow.Cells["Id"].Value.ToString()); |                 SelectPerson = BPerson.SelectSingle(int.Parse(dgvPerson.CurrentRow.Cells["Id"].Value.ToString())); | ||||||
|                 cboDepartment.Text = dgvPerson.CurrentRow.Cells["DepNameColumn"].Value.ToString(); |                 cboDepartment.Text = dgvPerson.CurrentRow.Cells["DepNameColumn"].Value.ToString(); | ||||||
|                 txtNo.Text = dgvPerson.CurrentRow.Cells["NoColumn"].Value.ToString(); |                 txtNo.Text = dgvPerson.CurrentRow.Cells["NoColumn"].Value.ToString(); | ||||||
|                 txtName.Text = dgvPerson.CurrentRow.Cells["NameColumn"].Value.ToString(); |                 txtName.Text = dgvPerson.CurrentRow.Cells["NameColumn"].Value.ToString(); | ||||||
| @ -140,6 +137,8 @@ namespace AIMS.PublicUI.UI | |||||||
|             if (ValidInput()) |             if (ValidInput()) | ||||||
|             { |             { | ||||||
|                 Person PersonObj = new Person(); |                 Person PersonObj = new Person(); | ||||||
|  |                 if (_state == AIMSExtension.EditState.EDIT) | ||||||
|  |                     PersonObj = SelectPerson; | ||||||
|                 try |                 try | ||||||
|                 { |                 { | ||||||
|                     Department dt = BDepartment.SelectSingle("Name=@name and IsValid='1' ", new ParameterList("@name", cboDepartment.Text)); |                     Department dt = BDepartment.SelectSingle("Name=@name and IsValid='1' ", new ParameterList("@name", cboDepartment.Text)); | ||||||
| @ -163,10 +162,12 @@ namespace AIMS.PublicUI.UI | |||||||
|                 PersonObj.OperatorName = AIMSExtension.PublicMethod.OperatorName; |                 PersonObj.OperatorName = AIMSExtension.PublicMethod.OperatorName; | ||||||
|                 PersonObj.OperateDate = AIMSExtension.PublicMethod.SystemDate(); |                 PersonObj.OperateDate = AIMSExtension.PublicMethod.SystemDate(); | ||||||
|                 PersonObj.PassWord = txtPassWord.Text.Trim(); |                 PersonObj.PassWord = txtPassWord.Text.Trim(); | ||||||
| 
 |  | ||||||
|                 PersonObj.PersonOrder = int.Parse(intPersonOrder.Text); |                 PersonObj.PersonOrder = int.Parse(intPersonOrder.Text); | ||||||
|                 PersonObj.IsValid = int.Parse(chkIsValid.Checked ? "1" : "0"); |                 PersonObj.IsValid = int.Parse(chkIsValid.Checked ? "1" : "0"); | ||||||
| 
 | 
 | ||||||
|  |                 PersonObj.SignatureIndex = txtSignatureIndex.Text; | ||||||
|  |                 if (pictureBox1.Image != null) PersonObj.SignatureStr = new DCSoft.Drawing.XImageValue(pictureBox1.Image).ImageDataBase64String; | ||||||
|  | 
 | ||||||
|                 if (_state == AIMSExtension.EditState.ADD) |                 if (_state == AIMSExtension.EditState.ADD) | ||||||
|                 { |                 { | ||||||
|                     BPerson.Add(PersonObj); |                     BPerson.Add(PersonObj); | ||||||
| @ -258,6 +259,13 @@ namespace AIMS.PublicUI.UI | |||||||
|             DataTable dt = BPerson.GetPersonDataTable(name, DepartName, chkAllShow.Checked); |             DataTable dt = BPerson.GetPersonDataTable(name, DepartName, chkAllShow.Checked); | ||||||
|             for (int i = 0; i < dt.Rows.Count; i++) |             for (int i = 0; i < dt.Rows.Count; i++) | ||||||
|             { |             { | ||||||
|  |                 Bitmap bmp = null; | ||||||
|  |                 if (dt.Rows[i]["SignatureStr"].ToString() != "") | ||||||
|  |                 { | ||||||
|  |                     byte[] arr = Convert.FromBase64String(dt.Rows[i]["SignatureStr"].ToString()); | ||||||
|  |                     MemoryStream ms = new MemoryStream(arr); | ||||||
|  |                     bmp = new Bitmap(ms); | ||||||
|  |                 } | ||||||
|                 dgvPerson.Rows.Add(dt.Rows[i]["Id"].ToString(), |                 dgvPerson.Rows.Add(dt.Rows[i]["Id"].ToString(), | ||||||
|                                        dt.Rows[i]["DepName"].ToString(), |                                        dt.Rows[i]["DepName"].ToString(), | ||||||
|                                        dt.Rows[i]["No"].ToString(), |                                        dt.Rows[i]["No"].ToString(), | ||||||
| @ -272,7 +280,8 @@ namespace AIMS.PublicUI.UI | |||||||
|                                        dt.Rows[i]["RoleName"].ToString(), |                                        dt.Rows[i]["RoleName"].ToString(), | ||||||
|                                        dt.Rows[i]["PassWord"].ToString(), |                                        dt.Rows[i]["PassWord"].ToString(), | ||||||
|                                        dt.Rows[i]["IsValid"].ToString(), |                                        dt.Rows[i]["IsValid"].ToString(), | ||||||
|                 dt.Rows[i]["PersonOrder"].ToString()); |                                        dt.Rows[i]["PersonOrder"].ToString(), | ||||||
|  |                                       bmp); | ||||||
|             } |             } | ||||||
|             if (dgvPerson.Rows.Count > 0) |             if (dgvPerson.Rows.Count > 0) | ||||||
|             { |             { | ||||||
| @ -315,7 +324,28 @@ namespace AIMS.PublicUI.UI | |||||||
| 
 | 
 | ||||||
|         private void chkAllShow_CheckedChanged(object sender, EventArgs e) |         private void chkAllShow_CheckedChanged(object sender, EventArgs e) | ||||||
|         { |         { | ||||||
|             GetPersonDataTable(txtName.Text, cboDepartment.Text.Trim());  |             GetPersonDataTable(txtName.Text, cboDepartment.Text.Trim()); | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         private void pictureBox1_Click(object sender, EventArgs e) | ||||||
|  |         { | ||||||
|  |             OpenFileDialog openFileDialogEmpImage = new OpenFileDialog(); | ||||||
|  |             openFileDialogEmpImage.Filter = "*.png|*.png|*.jpg|*.jpg|*.bmp|*.bmp|*.tiff|*.tiff";//图片格式   | ||||||
|  |             if (openFileDialogEmpImage.ShowDialog() == DialogResult.OK) | ||||||
|  |             { | ||||||
|  |                 try | ||||||
|  |                 { | ||||||
|  |                     string empUpLoadPictureRealPos = openFileDialogEmpImage.FileName;//实际的文件路径+文件名   | ||||||
|  |                     String[] empImageData = empUpLoadPictureRealPos.Split('.'); | ||||||
|  |                     //empImageData[1]:是上传的图片的后缀名   | ||||||
|  |                     string empUpLoadPictureFormat = empImageData[1]; | ||||||
|  |                     pictureBox1.Image = Image.FromFile(empUpLoadPictureRealPos);//将图片显示在pitureBox控件中   | ||||||
|  |                 } | ||||||
|  |                 catch | ||||||
|  |                 { | ||||||
|  |                     MessageBox.Show("您选择的图片不能被读取或文件类型不对!", "错误信息", MessageBoxButtons.OK, MessageBoxIcon.Warning); | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
| @ -162,6 +162,9 @@ | |||||||
|   <metadata name="PersonOrderColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |   <metadata name="PersonOrderColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||||
|     <value>True</value> |     <value>True</value> | ||||||
|   </metadata> |   </metadata> | ||||||
|  |   <metadata name="SignatureStr.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||||
|  |     <value>True</value> | ||||||
|  |   </metadata> | ||||||
|   <metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |   <metadata name="toolStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||||
|     <value>17, 17</value> |     <value>17, 17</value> | ||||||
|   </metadata> |   </metadata> | ||||||
|  | |||||||
| @ -17,7 +17,7 @@ namespace AIMS | |||||||
|             OperationApply opeapply = new OperationApply(); |             OperationApply opeapply = new OperationApply(); | ||||||
|             if (applyid > 0) opeapply = BOperationApply.SelectSingle(applyid, RecursiveType.None, 0); |             if (applyid > 0) opeapply = BOperationApply.SelectSingle(applyid, RecursiveType.None, 0); | ||||||
|             OrisPatient pat = BOrisPatient.SelectSingle(patientid == 0 ? opeapply.OrisPatientId.Value : patientid, RecursiveType.None, 0); |             OrisPatient pat = BOrisPatient.SelectSingle(patientid == 0 ? opeapply.OrisPatientId.Value : patientid, RecursiveType.None, 0); | ||||||
|             if (PublicMethod.GetHospitalName().Contains("秦皇岛")) |             if (PublicMethod.HospitalName.Contains("秦皇岛")) | ||||||
|             { |             { | ||||||
|                 try |                 try | ||||||
|                 { |                 { | ||||||
| @ -34,15 +34,21 @@ namespace AIMS | |||||||
|                     MessageBox.Show(@"在C:\APPSOFT\zlSoftCISInterface.exe路径下找不到“zlSoftCISInterface.exe”"); |                     MessageBox.Show(@"在C:\APPSOFT\zlSoftCISInterface.exe路径下找不到“zlSoftCISInterface.exe”"); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|             if (PublicMethod.GetHospitalName().Contains("金州")) |             else if (PublicMethod.HospitalName.Contains("金州")) | ||||||
|             { |             { | ||||||
|                 string HisPatientId = pat.HisPatientId; |                 string HisPatientId = pat.HisPatientId; | ||||||
|                 string VisitTimes = pat.VisitTimes; |                 string VisitTimes = pat.VisitTimes; | ||||||
|                   | 
 | ||||||
|                 string Path = string.Format("http://172.16.10.175:5001/?inoutType=2&patiId={0}&visitId={1}&userName=系统管理员", HisPatientId, VisitTimes); |                 string Path = string.Format("http://172.16.10.175:5001/?inoutType=2&patiId={0}&visitId={1}&userName=系统管理员", HisPatientId, VisitTimes);  | ||||||
|                 System.Diagnostics.Process.Start(Path); |  | ||||||
|                 //BrowserHelper.OpenBrowserUrlChrome(Path); |                 //BrowserHelper.OpenBrowserUrlChrome(Path); | ||||||
|             } |             } | ||||||
|  |             else if (PublicMethod.HospitalName.Contains("天福")) | ||||||
|  |             { | ||||||
|  |                 string HisPatientId = pat.HisPatientId;  | ||||||
|  | 
 | ||||||
|  |                 string Path = string.Format("http://10.129.130.60:5050/osworksweb/operating_hocussFirst.jsp?vae01={0}&jsessionids=43261bf8-e5ce-4686-8da7-3aad50e00ca61681461295076", HisPatientId); | ||||||
|  |                 System.Diagnostics.Process.Start(Path);  | ||||||
|  |             } | ||||||
| 
 | 
 | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -28,7 +28,7 @@ namespace AIMS | |||||||
|         { |         { | ||||||
|             AIMSExtension.PublicMethod.SetLocalDateTime(); |             AIMSExtension.PublicMethod.SetLocalDateTime(); | ||||||
|             //label1.Text = AIMSExtension.PublicMethod.GetSystemName(); |             //label1.Text = AIMSExtension.PublicMethod.GetSystemName(); | ||||||
|             //label2.Text = "@山西瑞禾康医疗科技有限公司 V" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); |             //label2.Text = "@" + PublicMethod.HospitalName + " V" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); | ||||||
|             txtNo.Select(); |             txtNo.Select(); | ||||||
|             txtNo.Focus(); |             txtNo.Focus(); | ||||||
| #if DEBUG | #if DEBUG | ||||||
| @ -53,6 +53,7 @@ namespace AIMS | |||||||
|                 Role role = BRole.GetModel(PersonObj.RoleId.Value); |                 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, "功能权限"); |                 AIMSExtension.PublicMethod.RoleName = BMenu.GetMenuRootListManageStr(AIMSExtension.PublicMethod.RoleId, "功能权限"); | ||||||
|  |                 AIMSExtension.PublicMethod.HospitalName = PublicMethod.GetHospital(); | ||||||
|                 PublicMethod.WriteLog("登录", PersonObj.Id.Value); |                 PublicMethod.WriteLog("登录", PersonObj.Id.Value); | ||||||
|                 Hide(); |                 Hide(); | ||||||
|                 //在这里为编辑器注册 |                 //在这里为编辑器注册 | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								AIMS/FormLogin.designer.cs
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								AIMS/FormLogin.designer.cs
									
									
									
										generated
									
									
									
								
							| @ -46,7 +46,7 @@ | |||||||
|             this.label2.BackColor = System.Drawing.Color.White; |             this.label2.BackColor = System.Drawing.Color.White; | ||||||
|             this.label2.Font = new System.Drawing.Font("宋体", 9F); |             this.label2.Font = new System.Drawing.Font("宋体", 9F); | ||||||
|             this.label2.ForeColor = System.Drawing.Color.SteelBlue; |             this.label2.ForeColor = System.Drawing.Color.SteelBlue; | ||||||
|             this.label2.Location = new System.Drawing.Point(406, 356); |             this.label2.Location = new System.Drawing.Point(448, 359); | ||||||
|             this.label2.Name = "label2"; |             this.label2.Name = "label2"; | ||||||
|             this.label2.Size = new System.Drawing.Size(41, 12); |             this.label2.Size = new System.Drawing.Size(41, 12); | ||||||
|             this.label2.TabIndex = 5; |             this.label2.TabIndex = 5; | ||||||
|  | |||||||
| @ -139,7 +139,7 @@ | |||||||
|   <data name="$this.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |   <data name="$this.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||||
|     <value> |     <value> | ||||||
|         iVBORw0KGgoAAAANSUhEUgAAAscAAAGQCAIAAADN91qrAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL |         iVBORw0KGgoAAAANSUhEUgAAAscAAAGQCAIAAADN91qrAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL | ||||||
|         EAAACxABrSO9dQAA/7JJREFUeF7s/QeMbFt6mIdeT1fOOeecdu1dOeecc+jqnHPuPvGeG0aUniyIlkhB |         DwAACw8BkvkDpQAA/7JJREFUeF7s/QeMbFt6mIdeT1fOOeecdu1dOeecc+jqnHPuPvGeG0aUniyIlkhB | ||||||
|         wnswDD/AsE1SgRYpQbLlJ0uCoGfhydCz8ATbkDkMJjU0JYxAQbZMkBy+f+2q7nPuuXfuJHI4Q9aPD+us |         wnswDD/AsE1SgRYpQbLlJ0uCoGfhydCz8ATbkDkMJjU0JYxAQbZMkBy+f+2q7nPuuXfuJHI4Q9aPD+us | ||||||
|         2rWruk/16bO//a9/rfWBwEawtA621sHS2BlaC0tr4WjNAEtjpqoMFKWORP8Whe6R+REDRQGnAcZ3MFFU |         2rWruk/16bO//a9/rfWBwEawtA621sHS2BlaC0tr4WjNAEtjpqoMFKWORP8Whe6R+REDRQGnAcZ3MFFU | ||||||
|         gJmqtgIUtY2qcdJ0bgqgdQFUnZuq81ANGNWE00wExeSnWgI0W5hii9DtUY49wnXE2a4ky5NmYEU2XmES |         gJmqtgIUtY2qcdJ0bgqgdQFUnZuq81ANGNWE00wExeSnWgI0W5hii9DtUY49wnXE2a4ky5NmYEU2XmES | ||||||
|  | |||||||
| @ -27,7 +27,7 @@ namespace AIMS.OperationAanesthesia | |||||||
|                     if (reVal) |                     if (reVal) | ||||||
|                     { |                     { | ||||||
|                         templateManage.DrawArea(); |                         templateManage.DrawArea(); | ||||||
|                         DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.GetHospitalName(), 0.355, 0.053, Zgc, DrawGraph.ZUtil.Font18); |                         DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.HospitalName, 0.355, 0.053, Zgc, DrawGraph.ZUtil.Font18); | ||||||
|                         DrawGraph.ZUtil.DrawText("麻醉复苏室记录单", 0.39, 0.08, Zgc, DrawGraph.ZUtil.Font18); |                         DrawGraph.ZUtil.DrawText("麻醉复苏室记录单", 0.39, 0.08, Zgc, DrawGraph.ZUtil.Font18); | ||||||
| 
 | 
 | ||||||
|                         #region 设置界面自适应 |                         #region 设置界面自适应 | ||||||
| @ -115,7 +115,7 @@ namespace AIMS.OperationAanesthesia | |||||||
|                     if (reVal) |                     if (reVal) | ||||||
|                     { |                     { | ||||||
|                         templateManage.DrawArea(); |                         templateManage.DrawArea(); | ||||||
|                         DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.GetHospitalName(), 0.385, 0.018, Zgc, DrawGraph.ZUtil.Font16); |                         DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.HospitalName, 0.385, 0.018, Zgc, DrawGraph.ZUtil.Font16); | ||||||
|                         DrawGraph.ZUtil.DrawText(" 麻 醉 记 录", 0.42, 0.04, Zgc, DrawGraph.ZUtil.Font14); |                         DrawGraph.ZUtil.DrawText(" 麻 醉 记 录", 0.42, 0.04, Zgc, DrawGraph.ZUtil.Font14); | ||||||
| 
 | 
 | ||||||
|                         #region 设置界面自适应 |                         #region 设置界面自适应 | ||||||
| @ -162,7 +162,7 @@ namespace AIMS.OperationAanesthesia | |||||||
|                     if (reVal) |                     if (reVal) | ||||||
|                     { |                     { | ||||||
|                         templateManage2.DrawArea(); |                         templateManage2.DrawArea(); | ||||||
|                         DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.GetHospitalName(), 0.385, 0.038, Zgc2, DrawGraph.ZUtil.Font16); |                         DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.HospitalName, 0.385, 0.038, Zgc2, DrawGraph.ZUtil.Font16); | ||||||
|                         DrawGraph.ZUtil.DrawText(" 麻 醉 记 录", 0.42, 0.065, Zgc2, DrawGraph.ZUtil.Font14); |                         DrawGraph.ZUtil.DrawText(" 麻 醉 记 录", 0.42, 0.065, Zgc2, DrawGraph.ZUtil.Font14); | ||||||
|                         templateManage2.ZedControl.Width = templateManage.ZedControl.Width; |                         templateManage2.ZedControl.Width = templateManage.ZedControl.Width; | ||||||
|                         templateManage2.ZedControl.Height = templateManage.ZedControl.Height; |                         templateManage2.ZedControl.Height = templateManage.ZedControl.Height; | ||||||
|  | |||||||
| @ -233,7 +233,7 @@ namespace AIMS.OperationAanesthesia | |||||||
|                     pDoc.Print(); |                     pDoc.Print(); | ||||||
|                 } |                 } | ||||||
| 
 | 
 | ||||||
|                 PublicMethod.WriteLog("打印麻醉记录单", _record.PatientId.Value, 1,"恢复"); |                 PublicMethod.WriteLog("打印麻醉记录单", _record.PatientId.Value, 1, "恢复"); | ||||||
|                 count = 0; |                 count = 0; | ||||||
|             } |             } | ||||||
|             catch (Exception exp) |             catch (Exception exp) | ||||||
| @ -406,7 +406,7 @@ namespace AIMS.OperationAanesthesia | |||||||
|                 { |                 { | ||||||
|                     DrawEvent(); |                     DrawEvent(); | ||||||
|                 } |                 } | ||||||
|                 PublicMethod.WriteLog("修改" +Inevent.EventName, _record.PatientId.Value, 1, "恢复"); |                 PublicMethod.WriteLog("修改" + Inevent.EventName, _record.PatientId.Value, 1, "恢复"); | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         /// <summary> |         /// <summary> | ||||||
| @ -502,7 +502,9 @@ namespace AIMS.OperationAanesthesia | |||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|                 else |                 else | ||||||
|                 { timeistrue = true; } |                 { | ||||||
|  |                     timeistrue = true; | ||||||
|  |                 } | ||||||
|                 if (EventName == "出室" && _record.StateName == "麻醉复苏中" && state == 0) |                 if (EventName == "出室" && _record.StateName == "麻醉复苏中" && state == 0) | ||||||
|                 { |                 { | ||||||
|                     if (GetOpeState(ref messing) == false) |                     if (GetOpeState(ref messing) == false) | ||||||
| @ -537,10 +539,8 @@ namespace AIMS.OperationAanesthesia | |||||||
|                 { |                 { | ||||||
|                     _record.InRoomTime = Inevent.EventBeginTime; |                     _record.InRoomTime = Inevent.EventBeginTime; | ||||||
|                     this.picInRoom.BackgroundImage = global::AIMS.Properties.Resources.入手术室_select; |                     this.picInRoom.BackgroundImage = global::AIMS.Properties.Resources.入手术室_select; | ||||||
|                     BOperationRecord.Update("InRoomTime=@InRoom  where Id=@id ", new AIMSModel.ParameterList("@InRoom", _record.InRoomTime.Value.ToString("yyyy-MM-dd HH:mm:ss"), "@id", _record.Id)); |                     BOperationRecord.Update("InRoomTime=@InRoom  where Id=@id ", new AIMSModel.ParameterList("@InRoom", _record.InRoomTime.Value.ToString("yyyy-MM-dd HH:mm:ss"), "@id", _record.Id));  | ||||||
| 
 |                 }  | ||||||
|                 } |  | ||||||
| 
 |  | ||||||
|                 if (Inevent != null && Inevent.EventName == "拔管" && _record.SpileOutTime != Inevent.EventBeginTime) |                 if (Inevent != null && Inevent.EventName == "拔管" && _record.SpileOutTime != Inevent.EventBeginTime) | ||||||
|                 { |                 { | ||||||
|                     _record.SpileOutTime = Inevent.EventBeginTime; |                     _record.SpileOutTime = Inevent.EventBeginTime; | ||||||
| @ -1522,8 +1522,7 @@ namespace AIMS.OperationAanesthesia | |||||||
|                 { |                 { | ||||||
|                     message = "请添加术者!"; |                     message = "请添加术者!"; | ||||||
|                     isTrue = false; |                     isTrue = false; | ||||||
|                 } |                 }  | ||||||
| 
 |  | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|             return isTrue; |             return isTrue; | ||||||
|  | |||||||
| @ -396,12 +396,16 @@ namespace AIMS.PublicUI.UI | |||||||
|                 { |                 { | ||||||
|                     b = true; |                     b = true; | ||||||
|                 } |                 } | ||||||
|                 if (_record.StateName == "手术结束") |                 if (_record.StateName == "手术结束" || _record.StateName == "麻醉复苏结束") | ||||||
|                 { |                 { | ||||||
|                     if (objectId < 10) |                     if (objectId < 10) | ||||||
|                     { |                     { | ||||||
|                         b = true; |                         b = true; | ||||||
|                     } |                     } | ||||||
|  |                     if (objectName=="插管" || objectName=="拔管"|| objectName=="喉罩") | ||||||
|  |                     { | ||||||
|  |                         b = false; | ||||||
|  |                     } | ||||||
|                 } |                 } | ||||||
|                 if (b == true) |                 if (b == true) | ||||||
|                 { |                 { | ||||||
|  | |||||||
| @ -1472,7 +1472,7 @@ namespace AIMS.PublicUI.UI | |||||||
|             strExcelTemplateFile += @"\Template\" + strFileName; |             strExcelTemplateFile += @"\Template\" + strFileName; | ||||||
|             excel.Open(strExcelTemplateFile); //用模板文件 |             excel.Open(strExcelTemplateFile); //用模板文件 | ||||||
| 
 | 
 | ||||||
|             excel.SetCellText(2, "A", PublicMethod.GetHospitalName()); |             excel.SetCellText(2, "A", PublicMethod.HospitalName); | ||||||
|             excel.SetCellText(4, "B", _record.InRoomTime.Value.ToString("yyyy-MM-dd")); |             excel.SetCellText(4, "B", _record.InRoomTime.Value.ToString("yyyy-MM-dd")); | ||||||
|             excel.SetCellText(4, "E", _record.ApplyDepartmentName.ToString()); |             excel.SetCellText(4, "E", _record.ApplyDepartmentName.ToString()); | ||||||
|             excel.SetCellText(4, "H", _record.InHospitalNo); |             excel.SetCellText(4, "H", _record.InHospitalNo); | ||||||
|  | |||||||
| @ -906,10 +906,6 @@ namespace AIMS.OperationAanesthesia | |||||||
|                     for (int i = 0; i < dr.Count(); i++) |                     for (int i = 0; i < dr.Count(); i++) | ||||||
|                     { |                     { | ||||||
|                         var name = dr[i].ItemArray[0].ToString(); |                         var name = dr[i].ItemArray[0].ToString(); | ||||||
|                         if (name=="InRoomTime") |  | ||||||
|                         { |  | ||||||
|                             name = name; |  | ||||||
|                         } |  | ||||||
|                         var value = dr[i].ItemArray[1].ToString(); |                         var value = dr[i].ItemArray[1].ToString(); | ||||||
|                         XTextInputFieldElement element = query.Where(x => x.FieldSettings.ListSource.SourceName == value).FirstOrDefault(); |                         XTextInputFieldElement element = query.Where(x => x.FieldSettings.ListSource.SourceName == value).FirstOrDefault(); | ||||||
|                         PropertyInfo info = p.Where(px => px.Name == name).FirstOrDefault(); |                         PropertyInfo info = p.Where(px => px.Name == name).FirstOrDefault(); | ||||||
|  | |||||||
| @ -225,6 +225,7 @@ namespace AIMS.OperationAanesthesia | |||||||
|             { |             { | ||||||
|                 panel4.Visible = true; |                 panel4.Visible = true; | ||||||
|                 panel2.Visible = false; |                 panel2.Visible = false; | ||||||
|  |                 FillDgv(); | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1227,7 +1227,7 @@ namespace AIMS.OperationFront.UI | |||||||
|         { |         { | ||||||
|             try |             try | ||||||
|             { |             { | ||||||
|                 if (PublicMethod.GetHospitalName().Contains("屯留")) |                 if (PublicMethod.HospitalName.Contains("屯留")) | ||||||
|                 { |                 { | ||||||
|                     string sqlStr = string.Format("select * from AIMS_PATIENT where IPD_NO like '%{0}%'", txtMdrecNo.Text); |                     string sqlStr = string.Format("select * from AIMS_PATIENT where IPD_NO like '%{0}%'", txtMdrecNo.Text); | ||||||
|                     DataTable dt = null; |                     DataTable dt = null; | ||||||
| @ -1267,7 +1267,7 @@ namespace AIMS.OperationFront.UI | |||||||
|                         MessageBox.Show("未找到该患者信息!"); |                         MessageBox.Show("未找到该患者信息!"); | ||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|                 else if (PublicMethod.GetHospitalName().Contains("秦皇岛")) |                 else if (PublicMethod.HospitalName.Contains("秦皇岛")) | ||||||
|                 { |                 { | ||||||
|                     string sqlStr = string.Format("select * from AIMS_PATIENTS where IPD_NO like '%{0}%'", txtMdrecNo.Text); |                     string sqlStr = string.Format("select * from AIMS_PATIENTS where IPD_NO like '%{0}%'", txtMdrecNo.Text); | ||||||
|                     DataTable dt = null; |                     DataTable dt = null; | ||||||
| @ -1303,7 +1303,7 @@ namespace AIMS.OperationFront.UI | |||||||
|                         rboZQ.Checked = true; |                         rboZQ.Checked = true; | ||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|                 else if (PublicMethod.GetHospitalName().Contains("大连市金州区中医医院")) |                 else if (PublicMethod.HospitalName.Contains("大连市金州区中医医院")) | ||||||
|                 { |                 { | ||||||
|                     string sqlStr = string.Format("select * from AIMS_PATIENTS where IPD_NO like '%{0}%'", txtMdrecNo.Text); |                     string sqlStr = string.Format("select * from AIMS_PATIENTS where IPD_NO like '%{0}%'", txtMdrecNo.Text); | ||||||
|                     DataTable dt = null; |                     DataTable dt = null; | ||||||
| @ -1338,7 +1338,7 @@ namespace AIMS.OperationFront.UI | |||||||
|                         rboZQ.Checked = true; |                         rboZQ.Checked = true; | ||||||
|                     } |                     } | ||||||
|                 }  |                 }  | ||||||
|                 else if (PublicMethod.GetHospitalName().Contains("漳浦")) |                 else if (PublicMethod.HospitalName.Contains("漳浦")) | ||||||
|                 { |                 { | ||||||
|                     string sqlStr = string.Format("select * from AIMS_PATIENTS where IPD_NO like '%{0}%'", txtMdrecNo.Text); |                     string sqlStr = string.Format("select * from AIMS_PATIENTS where IPD_NO like '%{0}%'", txtMdrecNo.Text); | ||||||
|                     DataTable dt = null; |                     DataTable dt = null; | ||||||
|  | |||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -251,7 +251,7 @@ | |||||||
|         AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w |         AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w | ||||||
|         LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 |         LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 | ||||||
|         ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD+ |         ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD+ | ||||||
|         CAAAAk1TRnQBSQFMAgEBAgEAAdQBEwHUARMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo |         CAAAAk1TRnQBSQFMAgEBAgEAAdwBEwHcARMBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo | ||||||
|         AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA |         AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA | ||||||
|         AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 |         AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 | ||||||
|         AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA |         AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA | ||||||
| @ -301,9 +301,6 @@ | |||||||
|   <metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |   <metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||||||
|     <value>360, 17</value> |     <value>360, 17</value> | ||||||
|   </metadata> |   </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"> |   <metadata name="dataGridViewTextBoxColumn3.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||||
|     <value>True</value> |     <value>True</value> | ||||||
|   </metadata> |   </metadata> | ||||||
|  | |||||||
| @ -1543,7 +1543,7 @@ namespace AIMS.OperationFront.UI | |||||||
|                 excel.Open(filepath); |                 excel.Open(filepath); | ||||||
|                 Microsoft.Office.Interop.Excel.Worksheet xlSheet = (Microsoft.Office.Interop.Excel.Worksheet)excel.Workbooks.ActiveSheet; |                 Microsoft.Office.Interop.Excel.Worksheet xlSheet = (Microsoft.Office.Interop.Excel.Worksheet)excel.Workbooks.ActiveSheet; | ||||||
|                 string strTitle; |                 string strTitle; | ||||||
|                 strTitle = PublicMethod.GetHospitalName(); |                 strTitle = PublicMethod.HospitalName; | ||||||
|                 excel.SetCellText(1, "A", strTitle); |                 excel.SetCellText(1, "A", strTitle); | ||||||
| 
 | 
 | ||||||
|                 /*标题*/ |                 /*标题*/ | ||||||
|  | |||||||
| @ -854,7 +854,7 @@ namespace AIMS.OperationFront.UI | |||||||
|             excel.Open(filepath); |             excel.Open(filepath); | ||||||
|             Microsoft.Office.Interop.Excel.Worksheet xlSheet = (Microsoft.Office.Interop.Excel.Worksheet)excel.Workbooks.ActiveSheet; |             Microsoft.Office.Interop.Excel.Worksheet xlSheet = (Microsoft.Office.Interop.Excel.Worksheet)excel.Workbooks.ActiveSheet; | ||||||
|             string strTitle; |             string strTitle; | ||||||
|             strTitle = PublicMethod.GetHospitalName() + "职工出(缺)勤表"; |             strTitle = PublicMethod.HospitalName + "职工出(缺)勤表"; | ||||||
|             excel.SetCellText(1, "A", strTitle); |             excel.SetCellText(1, "A", strTitle); | ||||||
|             excel.SetCellText(2, "E", string.Format("{0} 年 {1} 月", year, month)); |             excel.SetCellText(2, "E", string.Format("{0} 年 {1} 月", year, month)); | ||||||
|             int rowsCount = dataTable.Rows.Count; |             int rowsCount = dataTable.Rows.Count; | ||||||
|  | |||||||
| @ -13,6 +13,11 @@ using AIMSBLL; | |||||||
| using DataDictionary.UI; | using DataDictionary.UI; | ||||||
| using DrawGraph; | using DrawGraph; | ||||||
| using System.Xml; | using System.Xml; | ||||||
|  | using System.Drawing; | ||||||
|  | using DCSoftDotfuscate; | ||||||
|  | using System.Collections; | ||||||
|  | using DocumentManagement; | ||||||
|  | using AIMSModel; | ||||||
| 
 | 
 | ||||||
| namespace AIMS | namespace AIMS | ||||||
| { | { | ||||||
| @ -67,6 +72,73 @@ namespace AIMS | |||||||
| 
 | 
 | ||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|  |                 //else if (eventSender is XTextImageElement && IsLoad == true) | ||||||
|  |                 //{ | ||||||
|  |                 //    OpenFileDialog openFileDialogEmpImage = new OpenFileDialog(); | ||||||
|  |                 //    openFileDialogEmpImage.Filter = "*.png|*.png|*.jpg|*.jpg|*.bmp|*.bmp|*.tiff|*.tiff";//图片格式   | ||||||
|  |                 //    if (openFileDialogEmpImage.ShowDialog() == DialogResult.OK) | ||||||
|  |                 //    { | ||||||
|  |                 //        try | ||||||
|  |                 //        { | ||||||
|  |                 //            string empUpLoadPictureRealPos = openFileDialogEmpImage.FileName;//实际的文件路径+文件名   | ||||||
|  |                 //            String[] empImageData = empUpLoadPictureRealPos.Split('.'); | ||||||
|  |                 //            //empImageData[1]:是上传的图片的后缀名   | ||||||
|  |                 //            string empUpLoadPictureFormat = empImageData[1]; | ||||||
|  |                 //            //赋值图片 | ||||||
|  |                 //            (eventSender as XTextImageElement).Image = new DCSoft.Drawing.XImageValue(Image.FromFile(empUpLoadPictureRealPos)); | ||||||
|  |                 //            (eventSender as XTextImageElement).Alt = "已签名"; | ||||||
|  |                 //            (eventSender as XTextImageElement).Title = "8080"; | ||||||
|  |                 //            (eventSender as XTextImageElement).EditorRefreshView(); | ||||||
|  | 
 | ||||||
|  |                 //            //清空图片 | ||||||
|  |                 //            //(eventSender as XTextImageElement).Image = null; | ||||||
|  |                 //            //(eventSender as XTextImageElement).Alt = "签名"; | ||||||
|  |                 //            //(eventSender as XTextImageElement).Title = ""; | ||||||
|  |                 //            //(eventSender as XTextImageElement).EditorRefreshView(); | ||||||
|  | 
 | ||||||
|  |                 //            //属性赋值判断 | ||||||
|  |                 //            // (eventSender as XTextImageElement).Image.Value==null 判断是否有图片 是否签名 | ||||||
|  |                 //            // (eventSender as XTextImageElement).Alt =="签名"      改为已签名或签名ID | ||||||
|  |                 //            // (eventSender as XTextImageElement).Title =="标题"    存储对应ca人员介质 | ||||||
|  |                 //            // (eventSender as XTextImageElement).ID =="image3"     标识Id用于定位赋值图片 | ||||||
|  | 
 | ||||||
|  |                 //        } | ||||||
|  |                 //        catch | ||||||
|  |                 //        { | ||||||
|  |                 //            MessageBox.Show("您选择的图片不能被读取或文件类型不对!", "错误信息", MessageBoxButtons.OK, MessageBoxIcon.Warning); | ||||||
|  |                 //        } | ||||||
|  |                 //    } | ||||||
|  |                 //} | ||||||
|  |                 else if (eventSender is XTextImageElement && IsLoad == true) | ||||||
|  |                 { | ||||||
|  |                     frmSelectPersonDoc personDoc = new frmSelectPersonDoc(); | ||||||
|  |                     personDoc.PersonType = (eventSender as XTextImageElement).Alt == "" ? "麻醉医生" : (eventSender as XTextImageElement).Alt; | ||||||
|  |                     personDoc.ShowDialog(); | ||||||
|  |                     if (personDoc.SelectPersonData > 0) | ||||||
|  |                     { | ||||||
|  |                         Person per = BPerson.SelectSingle(personDoc.SelectPersonData); | ||||||
|  |                         DCSoft.Drawing.XImageValue img = new DCSoft.Drawing.XImageValue(); | ||||||
|  |                         img.ImageDataBase64String = per.SignatureStr; | ||||||
|  |                         (eventSender as XTextImageElement).Image = img; | ||||||
|  |                         (eventSender as XTextImageElement).Alt = "麻醉医生"; | ||||||
|  |                         (eventSender as XTextImageElement).Title = per.Id.ToString(); | ||||||
|  |                         (eventSender as XTextImageElement).EditorRefreshView(); | ||||||
|  |                     } | ||||||
|  |                     else | ||||||
|  |                     { | ||||||
|  |                         //清空图片 | ||||||
|  |                         (eventSender as XTextImageElement).Image = null; | ||||||
|  |                         (eventSender as XTextImageElement).Alt = "麻醉医生"; | ||||||
|  |                         (eventSender as XTextImageElement).Title = ""; | ||||||
|  |                         (eventSender as XTextImageElement).EditorRefreshView(); | ||||||
|  |                     } | ||||||
|  | 
 | ||||||
|  |                     //属性赋值判断 | ||||||
|  |                     // (eventSender as XTextImageElement).Image.Value==null 判断是否有图片 是否签名 | ||||||
|  |                     // (eventSender as XTextImageElement).Alt =="签名"      改为已签名或签名ID | ||||||
|  |                     // (eventSender as XTextImageElement).Title =="标题"    存储对应ca人员介质 | ||||||
|  |                     // (eventSender as XTextImageElement).ID =="image3"     标识Id用于定位赋值图片  | ||||||
|  |                 } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
| @ -181,7 +253,7 @@ namespace AIMS | |||||||
|                 var element = args.Element as XTextInputFieldElement; |                 var element = args.Element as XTextInputFieldElement; | ||||||
|                 for (int i = 0; i < QXList.Count; i++) |                 for (int i = 0; i < QXList.Count; i++) | ||||||
|                 { |                 { | ||||||
|                     if ((element.Name == QXList[i] + "A"|| element.Name == QXList[i] + "B") && element.Text == "0") |                     if ((element.Name == QXList[i] + "A" || element.Name == QXList[i] + "B") && element.Text == "0") | ||||||
|                     { |                     { | ||||||
|                         element.Text = ""; |                         element.Text = ""; | ||||||
|                         break; |                         break; | ||||||
|  | |||||||
| @ -429,7 +429,7 @@ namespace AIMSBLL | |||||||
|                 messing = EventName + "时间不能大于入室时间48小时 !"; |                 messing = EventName + "时间不能大于入室时间48小时 !"; | ||||||
|                 return false; |                 return false; | ||||||
|             } |             } | ||||||
|             else if (EventName != "入室" && EventName != "麻醉开始" && _record.InRoomTime > curTimeTemp)// && OpeState == true |             else if (EventName != "入室" && EventName != "麻醉开始" && _record.InRoomTime > curTimeTemp && OpeState == true) | ||||||
|             { |             { | ||||||
|                 messing = EventName + "时间不能小于入室时间(" + _record.InRoomTime + ") !"; |                 messing = EventName + "时间不能小于入室时间(" + _record.InRoomTime + ") !"; | ||||||
|                 return false; |                 return false; | ||||||
|  | |||||||
| @ -20,7 +20,7 @@ namespace AIMSDAL | |||||||
| 		internal static int Insert(SqlCommand cmd, Person person) | 		internal static int Insert(SqlCommand cmd, Person person) | ||||||
| 		{ | 		{ | ||||||
| 		    cmd.Parameters.Clear(); | 		    cmd.Parameters.Clear(); | ||||||
| 			cmd.CommandText = "insert into Person (No,Name,HelpCode,Sex,PassWord,DepId,RoleId,BirthDay,TimeToWork,Diploma,JobTitle,PersonType,PersonOrder,IsValid,OperatorNo,OperatorName,OperateDate) values (@No,@Name,@HelpCode,@Sex,@PassWord,@DepId,@RoleId,@BirthDay,@TimeToWork,@Diploma,@JobTitle,@PersonType,@PersonOrder,@IsValid,@OperatorNo,@OperatorName,@OperateDate);select @@identity"; | 			cmd.CommandText = "insert into Person (No,Name,HelpCode,Sex,PassWord,DepId,RoleId,BirthDay,TimeToWork,Diploma,JobTitle,PersonType,PersonOrder,IsValid,OperatorNo,OperatorName,OperateDate,HisNo,SignatureStr,SignatureIndex,Extend1,Extend2,Extend3,Extend4,Extend5) values (@No,@Name,@HelpCode,@Sex,@PassWord,@DepId,@RoleId,@BirthDay,@TimeToWork,@Diploma,@JobTitle,@PersonType,@PersonOrder,@IsValid,@OperatorNo,@OperatorName,@OperateDate,@HisNo,@SignatureStr,@SignatureIndex,@Extend1,@Extend2,@Extend3,@Extend4,@Extend5);select @@identity"; | ||||||
| 			//从实体中取出值放入Command的参数列表 | 			//从实体中取出值放入Command的参数列表 | ||||||
| 			cmd.Parameters.Add(new SqlParameter("@No",person.No==null?(object)DBNull.Value:(object)person.No)); | 			cmd.Parameters.Add(new SqlParameter("@No",person.No==null?(object)DBNull.Value:(object)person.No)); | ||||||
| 			cmd.Parameters.Add(new SqlParameter("@Name",person.Name==null?(object)DBNull.Value:(object)person.Name)); | 			cmd.Parameters.Add(new SqlParameter("@Name",person.Name==null?(object)DBNull.Value:(object)person.Name)); | ||||||
| @ -39,6 +39,14 @@ namespace AIMSDAL | |||||||
| 			cmd.Parameters.Add(new SqlParameter("@OperatorNo",person.OperatorNo==null?(object)DBNull.Value:(object)person.OperatorNo)); | 			cmd.Parameters.Add(new SqlParameter("@OperatorNo",person.OperatorNo==null?(object)DBNull.Value:(object)person.OperatorNo)); | ||||||
| 			cmd.Parameters.Add(new SqlParameter("@OperatorName",person.OperatorName==null?(object)DBNull.Value:(object)person.OperatorName)); | 			cmd.Parameters.Add(new SqlParameter("@OperatorName",person.OperatorName==null?(object)DBNull.Value:(object)person.OperatorName)); | ||||||
| 			cmd.Parameters.Add(new SqlParameter("@OperateDate",person.OperateDate.HasValue?(object)person.OperateDate.Value:(object)DBNull.Value)); | 			cmd.Parameters.Add(new SqlParameter("@OperateDate",person.OperateDate.HasValue?(object)person.OperateDate.Value:(object)DBNull.Value)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@HisNo",person.HisNo==null?(object)DBNull.Value:(object)person.HisNo)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@SignatureStr",person.SignatureStr==null?(object)DBNull.Value:(object)person.SignatureStr)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@SignatureIndex",person.SignatureIndex==null?(object)DBNull.Value:(object)person.SignatureIndex)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@Extend1",person.Extend1==null?(object)DBNull.Value:(object)person.Extend1)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@Extend2",person.Extend2==null?(object)DBNull.Value:(object)person.Extend2)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@Extend3",person.Extend3==null?(object)DBNull.Value:(object)person.Extend3)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@Extend4",person.Extend4==null?(object)DBNull.Value:(object)person.Extend4)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@Extend5",person.Extend5==null?(object)DBNull.Value:(object)person.Extend5)); | ||||||
| 			return Convert.ToInt32(cmd.ExecuteScalar()); | 			return Convert.ToInt32(cmd.ExecuteScalar()); | ||||||
| 		} | 		} | ||||||
| 	    /// <summary> | 	    /// <summary> | ||||||
| @ -183,7 +191,7 @@ namespace AIMSDAL | |||||||
|         /// <returns>影响的记录行数</returns> |         /// <returns>影响的记录行数</returns> | ||||||
| 		internal static int ExcuteUpdateCommand(SqlCommand cmd, Person person) | 		internal static int ExcuteUpdateCommand(SqlCommand cmd, Person person) | ||||||
| 		{ | 		{ | ||||||
| 		    cmd.CommandText = "update Person set No=@No,Name=@Name,HelpCode=@HelpCode,Sex=@Sex,PassWord=@PassWord,DepId=@DepId,RoleId=@RoleId,BirthDay=@BirthDay,TimeToWork=@TimeToWork,Diploma=@Diploma,JobTitle=@JobTitle,PersonType=@PersonType,PersonOrder=@PersonOrder,IsValid=@IsValid,OperatorNo=@OperatorNo,OperatorName=@OperatorName,OperateDate=@OperateDate where Id=@Id"; | 		    cmd.CommandText = "update Person set No=@No,Name=@Name,HelpCode=@HelpCode,Sex=@Sex,PassWord=@PassWord,DepId=@DepId,RoleId=@RoleId,BirthDay=@BirthDay,TimeToWork=@TimeToWork,Diploma=@Diploma,JobTitle=@JobTitle,PersonType=@PersonType,PersonOrder=@PersonOrder,IsValid=@IsValid,OperatorNo=@OperatorNo,OperatorName=@OperatorName,OperateDate=@OperateDate,HisNo=@HisNo,SignatureStr=@SignatureStr,SignatureIndex=@SignatureIndex,Extend1=@Extend1,Extend2=@Extend2,Extend3=@Extend3,Extend4=@Extend4,Extend5=@Extend5 where Id=@Id"; | ||||||
| 			//从实体中取出值放入Command的参数列表 | 			//从实体中取出值放入Command的参数列表 | ||||||
| 			cmd.Parameters.Add(new SqlParameter("@No",person.No==null?(object)DBNull.Value:(object)person.No)); | 			cmd.Parameters.Add(new SqlParameter("@No",person.No==null?(object)DBNull.Value:(object)person.No)); | ||||||
| 			cmd.Parameters.Add(new SqlParameter("@Name",person.Name==null?(object)DBNull.Value:(object)person.Name)); | 			cmd.Parameters.Add(new SqlParameter("@Name",person.Name==null?(object)DBNull.Value:(object)person.Name)); | ||||||
| @ -202,6 +210,14 @@ namespace AIMSDAL | |||||||
| 			cmd.Parameters.Add(new SqlParameter("@OperatorNo",person.OperatorNo==null?(object)DBNull.Value:(object)person.OperatorNo)); | 			cmd.Parameters.Add(new SqlParameter("@OperatorNo",person.OperatorNo==null?(object)DBNull.Value:(object)person.OperatorNo)); | ||||||
| 			cmd.Parameters.Add(new SqlParameter("@OperatorName",person.OperatorName==null?(object)DBNull.Value:(object)person.OperatorName)); | 			cmd.Parameters.Add(new SqlParameter("@OperatorName",person.OperatorName==null?(object)DBNull.Value:(object)person.OperatorName)); | ||||||
| 			cmd.Parameters.Add(new SqlParameter("@OperateDate",person.OperateDate.HasValue?(object)person.OperateDate.Value:(object)DBNull.Value)); | 			cmd.Parameters.Add(new SqlParameter("@OperateDate",person.OperateDate.HasValue?(object)person.OperateDate.Value:(object)DBNull.Value)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@HisNo",person.HisNo==null?(object)DBNull.Value:(object)person.HisNo)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@SignatureStr",person.SignatureStr==null?(object)DBNull.Value:(object)person.SignatureStr)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@SignatureIndex",person.SignatureIndex==null?(object)DBNull.Value:(object)person.SignatureIndex)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@Extend1",person.Extend1==null?(object)DBNull.Value:(object)person.Extend1)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@Extend2",person.Extend2==null?(object)DBNull.Value:(object)person.Extend2)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@Extend3",person.Extend3==null?(object)DBNull.Value:(object)person.Extend3)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@Extend4",person.Extend4==null?(object)DBNull.Value:(object)person.Extend4)); | ||||||
|  | 			cmd.Parameters.Add(new SqlParameter("@Extend5",person.Extend5==null?(object)DBNull.Value:(object)person.Extend5)); | ||||||
| 			cmd.Parameters.Add(new SqlParameter("@Id", person.Id)); | 			cmd.Parameters.Add(new SqlParameter("@Id", person.Id)); | ||||||
|             return cmd.ExecuteNonQuery(); |             return cmd.ExecuteNonQuery(); | ||||||
| 		} | 		} | ||||||
| @ -674,6 +690,38 @@ namespace AIMSDAL | |||||||
| 			{ | 			{ | ||||||
| 			    entity.OperateDate=Convert.ToDateTime(dr["OperateDate"]); | 			    entity.OperateDate=Convert.ToDateTime(dr["OperateDate"]); | ||||||
| 			} | 			} | ||||||
|  | 			if(dr["HisNo"]!=System.DBNull.Value) | ||||||
|  | 			{ | ||||||
|  | 			    entity.HisNo=dr["HisNo"].ToString(); | ||||||
|  | 			} | ||||||
|  | 			if(dr["SignatureStr"]!=System.DBNull.Value) | ||||||
|  | 			{ | ||||||
|  | 			    entity.SignatureStr=dr["SignatureStr"].ToString(); | ||||||
|  | 			} | ||||||
|  | 			if(dr["SignatureIndex"]!=System.DBNull.Value) | ||||||
|  | 			{ | ||||||
|  | 			    entity.SignatureIndex=dr["SignatureIndex"].ToString(); | ||||||
|  | 			} | ||||||
|  | 			if(dr["Extend1"]!=System.DBNull.Value) | ||||||
|  | 			{ | ||||||
|  | 			    entity.Extend1=dr["Extend1"].ToString(); | ||||||
|  | 			} | ||||||
|  | 			if(dr["Extend2"]!=System.DBNull.Value) | ||||||
|  | 			{ | ||||||
|  | 			    entity.Extend2=dr["Extend2"].ToString(); | ||||||
|  | 			} | ||||||
|  | 			if(dr["Extend3"]!=System.DBNull.Value) | ||||||
|  | 			{ | ||||||
|  | 			    entity.Extend3=dr["Extend3"].ToString(); | ||||||
|  | 			} | ||||||
|  | 			if(dr["Extend4"]!=System.DBNull.Value) | ||||||
|  | 			{ | ||||||
|  | 			    entity.Extend4=dr["Extend4"].ToString(); | ||||||
|  | 			} | ||||||
|  | 			if(dr["Extend5"]!=System.DBNull.Value) | ||||||
|  | 			{ | ||||||
|  | 			    entity.Extend5=dr["Extend5"].ToString(); | ||||||
|  | 			} | ||||||
| 			return entity; | 			return entity; | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  | |||||||
| @ -112,7 +112,7 @@ namespace AIMSDAL | |||||||
|         { |         { | ||||||
|             StringBuilder strSql = new StringBuilder(); |             StringBuilder strSql = new StringBuilder(); | ||||||
|             strSql.Append("SELECT p.Id,p.No,p.Name,p.HelpCode,p.Sex,p.PassWord,d.Name AS DepName,r.RoleName,p.BirthDay,p.TimeToWork,"); |             strSql.Append("SELECT p.Id,p.No,p.Name,p.HelpCode,p.Sex,p.PassWord,d.Name AS DepName,r.RoleName,p.BirthDay,p.TimeToWork,"); | ||||||
|             strSql.Append("p.Diploma,p.JobTitle,p.PersonType,p.PersonOrder,CASE p.IsValid WHEN  1 THEN '有效' WHEN 0 THEN '无效'  END AS  IsValid FROM Person p "); |             strSql.Append("p.Diploma,p.JobTitle,p.PersonType,p.PersonOrder,CASE p.IsValid WHEN  1 THEN '有效' WHEN 0 THEN '无效'  END AS  IsValid,SignatureStr FROM Person p "); | ||||||
|             strSql.Append("LEFT JOIN Department d ON d.Id =p.DepId "); |             strSql.Append("LEFT JOIN Department d ON d.Id =p.DepId "); | ||||||
|             strSql.Append("LEFT JOIN [Role] r ON r.Id = p.RoleId "); |             strSql.Append("LEFT JOIN [Role] r ON r.Id = p.RoleId "); | ||||||
|             if (DeptName == "全部科室") DeptName = ""; |             if (DeptName == "全部科室") DeptName = ""; | ||||||
|  | |||||||
| @ -222,7 +222,7 @@ namespace AIMSBLL | |||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
| 
 | 
 | ||||||
|                 if (PublicMethod.GetHospitalName().Contains("金州")) |                 if (PublicMethod.HospitalName.Contains("金州")) | ||||||
|                 { |                 { | ||||||
|                     FactPersonDuty FactPersonDutyObj = new FactPersonDuty(); |                     FactPersonDuty FactPersonDutyObj = new FactPersonDuty(); | ||||||
|                     FactPersonDutyObj.PatientId = PatientId; |                     FactPersonDutyObj.PatientId = PatientId; | ||||||
|  | |||||||
| @ -26,6 +26,14 @@ namespace AIMSModel | |||||||
|         private string operatorNo;  |         private string operatorNo;  | ||||||
|         private string operatorName;  |         private string operatorName;  | ||||||
|         private DateTime? operateDate;  |         private DateTime? operateDate;  | ||||||
|  |         private string hisNo;  | ||||||
|  |         private string signatureStr;  | ||||||
|  |         private string signatureIndex;  | ||||||
|  |         private string extend1;  | ||||||
|  |         private string extend2;  | ||||||
|  |         private string extend3;  | ||||||
|  |         private string extend4;  | ||||||
|  |         private string extend5;  | ||||||
| 	 | 	 | ||||||
| 	 | 	 | ||||||
| 	    /// <summary> | 	    /// <summary> | ||||||
| @ -172,5 +180,69 @@ namespace AIMSModel | |||||||
| 		    get{ return operateDate; } | 		    get{ return operateDate; } | ||||||
| 			set{ operateDate=value; } | 			set{ operateDate=value; } | ||||||
| 		} | 		} | ||||||
|  | 	    /// <summary> | ||||||
|  |         ///  | ||||||
|  |         /// </summary> | ||||||
|  | 		public string HisNo | ||||||
|  | 		{ | ||||||
|  | 		    get{ return hisNo; } | ||||||
|  | 			set{ hisNo=value; } | ||||||
|  | 		} | ||||||
|  | 	    /// <summary> | ||||||
|  |         ///  | ||||||
|  |         /// </summary> | ||||||
|  | 		public string SignatureStr | ||||||
|  | 		{ | ||||||
|  | 		    get{ return signatureStr; } | ||||||
|  | 			set{ signatureStr=value; } | ||||||
|  | 		} | ||||||
|  | 	    /// <summary> | ||||||
|  |         ///  | ||||||
|  |         /// </summary> | ||||||
|  | 		public string SignatureIndex | ||||||
|  | 		{ | ||||||
|  | 		    get{ return signatureIndex; } | ||||||
|  | 			set{ signatureIndex=value; } | ||||||
|  | 		} | ||||||
|  | 	    /// <summary> | ||||||
|  |         ///  | ||||||
|  |         /// </summary> | ||||||
|  | 		public string Extend1 | ||||||
|  | 		{ | ||||||
|  | 		    get{ return extend1; } | ||||||
|  | 			set{ extend1=value; } | ||||||
|  | 		} | ||||||
|  | 	    /// <summary> | ||||||
|  |         ///  | ||||||
|  |         /// </summary> | ||||||
|  | 		public string Extend2 | ||||||
|  | 		{ | ||||||
|  | 		    get{ return extend2; } | ||||||
|  | 			set{ extend2=value; } | ||||||
|  | 		} | ||||||
|  | 	    /// <summary> | ||||||
|  |         ///  | ||||||
|  |         /// </summary> | ||||||
|  | 		public string Extend3 | ||||||
|  | 		{ | ||||||
|  | 		    get{ return extend3; } | ||||||
|  | 			set{ extend3=value; } | ||||||
|  | 		} | ||||||
|  | 	    /// <summary> | ||||||
|  |         ///  | ||||||
|  |         /// </summary> | ||||||
|  | 		public string Extend4 | ||||||
|  | 		{ | ||||||
|  | 		    get{ return extend4; } | ||||||
|  | 			set{ extend4=value; } | ||||||
|  | 		} | ||||||
|  | 	    /// <summary> | ||||||
|  |         ///  | ||||||
|  |         /// </summary> | ||||||
|  | 		public string Extend5 | ||||||
|  | 		{ | ||||||
|  | 		    get{ return extend5; } | ||||||
|  | 			set{ extend5=value; } | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  | |||||||
| @ -27,6 +27,14 @@ namespace AIMSObjectQuery | |||||||
|         	dictionary.Add("operatorno", "OperatorNo"); |         	dictionary.Add("operatorno", "OperatorNo"); | ||||||
|         	dictionary.Add("operatorname", "OperatorName"); |         	dictionary.Add("operatorname", "OperatorName"); | ||||||
|         	dictionary.Add("operatedate", "OperateDate"); |         	dictionary.Add("operatedate", "OperateDate"); | ||||||
|  |         	dictionary.Add("hisno", "HisNo"); | ||||||
|  |         	dictionary.Add("signaturestr", "SignatureStr"); | ||||||
|  |         	dictionary.Add("signatureindex", "SignatureIndex"); | ||||||
|  |         	dictionary.Add("extend1", "Extend1"); | ||||||
|  |         	dictionary.Add("extend2", "Extend2"); | ||||||
|  |         	dictionary.Add("extend3", "Extend3"); | ||||||
|  |         	dictionary.Add("extend4", "Extend4"); | ||||||
|  |         	dictionary.Add("extend5", "Extend5"); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         #region IMap 成员 |         #region IMap 成员 | ||||||
|  | |||||||
| @ -13,6 +13,7 @@ namespace AIMSExtension | |||||||
| { | { | ||||||
|     public class PublicMethod |     public class PublicMethod | ||||||
|     { |     { | ||||||
|  |         public static string HospitalName; | ||||||
|         public static int OperatorId = 1; |         public static int OperatorId = 1; | ||||||
|         public static string OperatorNo = "admin"; |         public static string OperatorNo = "admin"; | ||||||
|         public static string OperatorName = "admin"; |         public static string OperatorName = "admin"; | ||||||
| @ -44,7 +45,7 @@ namespace AIMSExtension | |||||||
|             return DateTime.Now;// HelperDB.DbHelperSQL.SystemDate(); |             return DateTime.Now;// HelperDB.DbHelperSQL.SystemDate(); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         public static string GetHospitalName() |         public static string GetHospital() | ||||||
|         { |         { | ||||||
|             string strSql = "SELECT HospitalName FROM dbo.HospitalInfo"; |             string strSql = "SELECT HospitalName FROM dbo.HospitalInfo"; | ||||||
|             DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql); |             DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql); | ||||||
|  | |||||||
| @ -9,6 +9,9 @@ using DCSoft.Writer.Controls; | |||||||
| using DCSoft.Writer; | using DCSoft.Writer; | ||||||
| using DCSoft.Writer.Dom; | using DCSoft.Writer.Dom; | ||||||
| using System.Windows.Forms; | using System.Windows.Forms; | ||||||
|  | using System.Runtime.CompilerServices; | ||||||
|  | using System.Xml; | ||||||
|  | using HelperDB; | ||||||
| 
 | 
 | ||||||
| namespace DocumentManagement | namespace DocumentManagement | ||||||
| { | { | ||||||
| @ -23,11 +26,16 @@ namespace DocumentManagement | |||||||
|         //string strMouseClickEvent = string.Empty; |         //string strMouseClickEvent = string.Empty; | ||||||
| 
 | 
 | ||||||
|         //string strContentChangedEvent = string.Empty; |         //string strContentChangedEvent = string.Empty; | ||||||
|  |         private XTextInputFieldElement SelElement; | ||||||
|  |         private string SelElementName; | ||||||
|  |         private string SelElementValue; | ||||||
|  |         public bool IsLoad = false; | ||||||
| 
 | 
 | ||||||
|         public EventCodeCompiler(ref WriterControl myEditControl, string strMouseClickEvent, string strContentChangedEvent) |         public EventCodeCompiler(ref WriterControl myEditControl, string strMouseClickEvent, string strContentChangedEvent) | ||||||
|         { |         { | ||||||
|             eet = new ElementEventTemplate(); |             eet = new ElementEventTemplate(); | ||||||
|             eet.MouseClick += new ElementMouseEventHandler(eetChk_MouseClick); |             eet.MouseClick += new ElementMouseEventHandler(eetChk_MouseClick); | ||||||
|  |             eet.MouseDblClick += Eet_MouseDblClick; | ||||||
|             eet.ContentChanged += new ContentChangedEventHandler(eet_ContentChanged); |             eet.ContentChanged += new ContentChangedEventHandler(eet_ContentChanged); | ||||||
|             myEditControl.GlobalEventTemplate_Element = eet; |             myEditControl.GlobalEventTemplate_Element = eet; | ||||||
| 
 | 
 | ||||||
| @ -175,5 +183,46 @@ namespace DocumentManagement | |||||||
|             } |             } | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |         private void Eet_MouseDblClick(object eventSender, ElementMouseEventArgs args) | ||||||
|  |         { | ||||||
|  |             if (eventSender is XTextImageElement && IsLoad == true) | ||||||
|  |             { | ||||||
|  |                 frmSelectPersonDoc personDoc = new frmSelectPersonDoc(); | ||||||
|  |                 personDoc.PersonType = (eventSender as XTextImageElement).Alt == "" ? "麻醉医生" : (eventSender as XTextImageElement).Alt; | ||||||
|  |                 personDoc.ShowDialog(); | ||||||
|  |                 if (personDoc.SelectPersonData > 0) | ||||||
|  |                 { | ||||||
|  |                     int PersonId = personDoc.SelectPersonData; | ||||||
|  |                     string SignatureStr = GetSignatureStr(PersonId); | ||||||
|  |                     DCSoft.Drawing.XImageValue img = new DCSoft.Drawing.XImageValue(); | ||||||
|  |                     img.ImageDataBase64String = SignatureStr; | ||||||
|  |                     (eventSender as XTextImageElement).Image = img; | ||||||
|  |                     (eventSender as XTextImageElement).Alt = "麻醉医生"; | ||||||
|  |                     (eventSender as XTextImageElement).Title = PersonId.ToString(); | ||||||
|  |                     (eventSender as XTextImageElement).EditorRefreshView(); | ||||||
|  |                 } | ||||||
|  |                 else | ||||||
|  |                 { | ||||||
|  |                     //清空图片 | ||||||
|  |                     (eventSender as XTextImageElement).Image = null; | ||||||
|  |                     (eventSender as XTextImageElement).Alt = "麻醉医生"; | ||||||
|  |                     (eventSender as XTextImageElement).Title = ""; | ||||||
|  |                     (eventSender as XTextImageElement).EditorRefreshView(); | ||||||
|  |                 } | ||||||
|  | 
 | ||||||
|  |                 //属性赋值判断 | ||||||
|  |                 // (eventSender as XTextImageElement).Image.Value==null 判断是否有图片 是否签名 | ||||||
|  |                 // (eventSender as XTextImageElement).Alt =="签名"      改为已签名或签名ID | ||||||
|  |                 // (eventSender as XTextImageElement).Title =="标题"    存储对应ca人员介质 | ||||||
|  |                 // (eventSender as XTextImageElement).ID =="image3"     标识Id用于定位赋值图片  | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |         public string GetSignatureStr(int SelectPersonData) | ||||||
|  |         { | ||||||
|  |             string SignatureStr = ""; | ||||||
|  |             string sql = "select  SignatureStr from Person where id=" + SelectPersonData; | ||||||
|  |             SignatureStr = DBHelper.ExecuteScalar(sql).ToString(); | ||||||
|  |             return SignatureStr; | ||||||
|  |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
| @ -146,6 +146,12 @@ | |||||||
|     <Compile Include="UI\frmParentSelect.designer.cs"> |     <Compile Include="UI\frmParentSelect.designer.cs"> | ||||||
|       <DependentUpon>frmParentSelect.cs</DependentUpon> |       <DependentUpon>frmParentSelect.cs</DependentUpon> | ||||||
|     </Compile> |     </Compile> | ||||||
|  |     <Compile Include="UI\frmSelectPerson.cs"> | ||||||
|  |       <SubType>Form</SubType> | ||||||
|  |     </Compile> | ||||||
|  |     <Compile Include="UI\frmSelectPerson.Designer.cs"> | ||||||
|  |       <DependentUpon>frmSelectPerson.cs</DependentUpon> | ||||||
|  |     </Compile> | ||||||
|     <Compile Include="UI\frmTemplate.cs"> |     <Compile Include="UI\frmTemplate.cs"> | ||||||
|       <SubType>Form</SubType> |       <SubType>Form</SubType> | ||||||
|     </Compile> |     </Compile> | ||||||
| @ -203,6 +209,9 @@ | |||||||
|     <EmbeddedResource Include="UI\frmParentSelect.resx"> |     <EmbeddedResource Include="UI\frmParentSelect.resx"> | ||||||
|       <DependentUpon>frmParentSelect.cs</DependentUpon> |       <DependentUpon>frmParentSelect.cs</DependentUpon> | ||||||
|     </EmbeddedResource> |     </EmbeddedResource> | ||||||
|  |     <EmbeddedResource Include="UI\frmSelectPerson.resx"> | ||||||
|  |       <DependentUpon>frmSelectPerson.cs</DependentUpon> | ||||||
|  |     </EmbeddedResource> | ||||||
|     <EmbeddedResource Include="UI\frmTemplate.en.resx"> |     <EmbeddedResource Include="UI\frmTemplate.en.resx"> | ||||||
|       <DependentUpon>frmTemplate.cs</DependentUpon> |       <DependentUpon>frmTemplate.cs</DependentUpon> | ||||||
|     </EmbeddedResource> |     </EmbeddedResource> | ||||||
|  | |||||||
							
								
								
									
										210
									
								
								DocumentManagement/UI/frmSelectPerson.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										210
									
								
								DocumentManagement/UI/frmSelectPerson.Designer.cs
									
									
									
										generated
									
									
									
										Normal file
									
								
							| @ -0,0 +1,210 @@ | |||||||
|  | namespace DocumentManagement | ||||||
|  | { | ||||||
|  |     partial class frmSelectPersonDoc | ||||||
|  |     { | ||||||
|  |         /// <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.panel1 = new System.Windows.Forms.Panel(); | ||||||
|  |             this.panel2 = new System.Windows.Forms.Panel(); | ||||||
|  |             this.groupBox2 = new System.Windows.Forms.GroupBox(); | ||||||
|  |             this.dgvSelectPerson = new System.Windows.Forms.DataGridView(); | ||||||
|  |             this.IdColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.CheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); | ||||||
|  |             this.NameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.workno = new System.Windows.Forms.DataGridViewTextBoxColumn(); | ||||||
|  |             this.label2 = new System.Windows.Forms.Label(); | ||||||
|  |             this.btnOk = new System.Windows.Forms.Button(); | ||||||
|  |             this.label1 = new System.Windows.Forms.Label(); | ||||||
|  |             this.txtHelpCode = new System.Windows.Forms.TextBox(); | ||||||
|  |             this.panel1.SuspendLayout(); | ||||||
|  |             this.panel2.SuspendLayout(); | ||||||
|  |             this.groupBox2.SuspendLayout(); | ||||||
|  |             ((System.ComponentModel.ISupportInitialize)(this.dgvSelectPerson)).BeginInit(); | ||||||
|  |             this.SuspendLayout(); | ||||||
|  |             //  | ||||||
|  |             // panel1 | ||||||
|  |             //  | ||||||
|  |             this.panel1.Controls.Add(this.panel2); | ||||||
|  |             this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; | ||||||
|  |             this.panel1.Location = new System.Drawing.Point(0, 0); | ||||||
|  |             this.panel1.Name = "panel1"; | ||||||
|  |             this.panel1.Size = new System.Drawing.Size(398, 482); | ||||||
|  |             this.panel1.TabIndex = 0; | ||||||
|  |             //  | ||||||
|  |             // panel2 | ||||||
|  |             //  | ||||||
|  |             this.panel2.BackColor = System.Drawing.Color.AliceBlue; | ||||||
|  |             this.panel2.Controls.Add(this.groupBox2); | ||||||
|  |             this.panel2.Controls.Add(this.label2); | ||||||
|  |             this.panel2.Controls.Add(this.btnOk); | ||||||
|  |             this.panel2.Controls.Add(this.label1); | ||||||
|  |             this.panel2.Controls.Add(this.txtHelpCode); | ||||||
|  |             this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; | ||||||
|  |             this.panel2.Location = new System.Drawing.Point(0, 0); | ||||||
|  |             this.panel2.Name = "panel2"; | ||||||
|  |             this.panel2.Size = new System.Drawing.Size(398, 482); | ||||||
|  |             this.panel2.TabIndex = 2; | ||||||
|  |             //  | ||||||
|  |             // groupBox2 | ||||||
|  |             //  | ||||||
|  |             this.groupBox2.Controls.Add(this.dgvSelectPerson); | ||||||
|  |             this.groupBox2.Font = new System.Drawing.Font("宋体", 9.5F); | ||||||
|  |             this.groupBox2.Location = new System.Drawing.Point(3, 48); | ||||||
|  |             this.groupBox2.Name = "groupBox2"; | ||||||
|  |             this.groupBox2.Size = new System.Drawing.Size(395, 431); | ||||||
|  |             this.groupBox2.TabIndex = 15; | ||||||
|  |             this.groupBox2.TabStop = false; | ||||||
|  |             //  | ||||||
|  |             // dgvSelectPerson | ||||||
|  |             //  | ||||||
|  |             this.dgvSelectPerson.AllowUserToAddRows = false; | ||||||
|  |             this.dgvSelectPerson.BackgroundColor = System.Drawing.Color.White; | ||||||
|  |             this.dgvSelectPerson.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; | ||||||
|  |             this.dgvSelectPerson.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { | ||||||
|  |             this.IdColumn, | ||||||
|  |             this.CheckBoxColumn, | ||||||
|  |             this.NameColumn, | ||||||
|  |             this.workno}); | ||||||
|  |             this.dgvSelectPerson.Dock = System.Windows.Forms.DockStyle.Fill; | ||||||
|  |             this.dgvSelectPerson.Location = new System.Drawing.Point(3, 18); | ||||||
|  |             this.dgvSelectPerson.Name = "dgvSelectPerson"; | ||||||
|  |             this.dgvSelectPerson.RowHeadersVisible = false; | ||||||
|  |             this.dgvSelectPerson.RowTemplate.Height = 23; | ||||||
|  |             this.dgvSelectPerson.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; | ||||||
|  |             this.dgvSelectPerson.Size = new System.Drawing.Size(389, 410); | ||||||
|  |             this.dgvSelectPerson.TabIndex = 3; | ||||||
|  |             this.dgvSelectPerson.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectPerson_CellClick); | ||||||
|  |             //  | ||||||
|  |             // IdColumn | ||||||
|  |             //  | ||||||
|  |             this.IdColumn.DataPropertyName = "Id"; | ||||||
|  |             this.IdColumn.Frozen = true; | ||||||
|  |             this.IdColumn.HeaderText = "Id"; | ||||||
|  |             this.IdColumn.Name = "IdColumn"; | ||||||
|  |             this.IdColumn.ReadOnly = true; | ||||||
|  |             this.IdColumn.Visible = false; | ||||||
|  |             //  | ||||||
|  |             // CheckBoxColumn | ||||||
|  |             //  | ||||||
|  |             this.CheckBoxColumn.HeaderText = "选择"; | ||||||
|  |             this.CheckBoxColumn.Name = "CheckBoxColumn"; | ||||||
|  |             this.CheckBoxColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True; | ||||||
|  |             this.CheckBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; | ||||||
|  |             this.CheckBoxColumn.Width = 70; | ||||||
|  |             //  | ||||||
|  |             // NameColumn | ||||||
|  |             //  | ||||||
|  |             this.NameColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; | ||||||
|  |             this.NameColumn.DataPropertyName = "Name"; | ||||||
|  |             this.NameColumn.HeaderText = "名称"; | ||||||
|  |             this.NameColumn.Name = "NameColumn"; | ||||||
|  |             this.NameColumn.ReadOnly = true; | ||||||
|  |             //  | ||||||
|  |             // workno | ||||||
|  |             //  | ||||||
|  |             this.workno.DataPropertyName = "No"; | ||||||
|  |             this.workno.HeaderText = "工号"; | ||||||
|  |             this.workno.Name = "workno"; | ||||||
|  |             //  | ||||||
|  |             // label2 | ||||||
|  |             //  | ||||||
|  |             this.label2.AutoSize = true; | ||||||
|  |             this.label2.Font = new System.Drawing.Font("宋体", 12F); | ||||||
|  |             this.label2.Location = new System.Drawing.Point(40, 18); | ||||||
|  |             this.label2.Name = "label2"; | ||||||
|  |             this.label2.Size = new System.Drawing.Size(39, 16); | ||||||
|  |             this.label2.TabIndex = 7; | ||||||
|  |             this.label2.Text = "查询"; | ||||||
|  |             //  | ||||||
|  |             // btnOk | ||||||
|  |             //  | ||||||
|  |             this.btnOk.Font = new System.Drawing.Font("宋体", 9.5F); | ||||||
|  |             this.btnOk.Location = new System.Drawing.Point(290, 12); | ||||||
|  |             this.btnOk.Name = "btnOk"; | ||||||
|  |             this.btnOk.Size = new System.Drawing.Size(80, 30); | ||||||
|  |             this.btnOk.TabIndex = 6; | ||||||
|  |             this.btnOk.Text = "确定"; | ||||||
|  |             this.btnOk.UseVisualStyleBackColor = true; | ||||||
|  |             this.btnOk.Click += new System.EventHandler(this.btnOk_Click); | ||||||
|  |             //  | ||||||
|  |             // label1 | ||||||
|  |             //  | ||||||
|  |             this.label1.AutoSize = true; | ||||||
|  |             this.label1.Location = new System.Drawing.Point(-75, 127); | ||||||
|  |             this.label1.Name = "label1"; | ||||||
|  |             this.label1.Size = new System.Drawing.Size(53, 12); | ||||||
|  |             this.label1.TabIndex = 5; | ||||||
|  |             this.label1.Text = "诊断查询"; | ||||||
|  |             //  | ||||||
|  |             // txtHelpCode | ||||||
|  |             //  | ||||||
|  |             this.txtHelpCode.Font = new System.Drawing.Font("宋体", 12F); | ||||||
|  |             this.txtHelpCode.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); | ||||||
|  |             this.txtHelpCode.Location = new System.Drawing.Point(86, 14); | ||||||
|  |             this.txtHelpCode.Name = "txtHelpCode"; | ||||||
|  |             this.txtHelpCode.Size = new System.Drawing.Size(192, 26); | ||||||
|  |             this.txtHelpCode.TabIndex = 4; | ||||||
|  |             this.txtHelpCode.Click += new System.EventHandler(this.txtHelpCode_Click); | ||||||
|  |             this.txtHelpCode.TextChanged += new System.EventHandler(this.txtHelpCode_TextChanged); | ||||||
|  |             //  | ||||||
|  |             // frmSelectPersonDoc | ||||||
|  |             //  | ||||||
|  |             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); | ||||||
|  |             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | ||||||
|  |             this.ClientSize = new System.Drawing.Size(398, 482); | ||||||
|  |             this.Controls.Add(this.panel1); | ||||||
|  |             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; | ||||||
|  |             this.MaximizeBox = false; | ||||||
|  |             this.MinimizeBox = false; | ||||||
|  |             this.Name = "frmSelectPersonDoc"; | ||||||
|  |             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; | ||||||
|  |             this.Load += new System.EventHandler(this.frmSelectPersonDoc_Load); | ||||||
|  |             this.panel1.ResumeLayout(false); | ||||||
|  |             this.panel2.ResumeLayout(false); | ||||||
|  |             this.panel2.PerformLayout(); | ||||||
|  |             this.groupBox2.ResumeLayout(false); | ||||||
|  |             ((System.ComponentModel.ISupportInitialize)(this.dgvSelectPerson)).EndInit(); | ||||||
|  |             this.ResumeLayout(false); | ||||||
|  | 
 | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         #endregion | ||||||
|  | 
 | ||||||
|  |         private System.Windows.Forms.Panel panel1; | ||||||
|  |         private System.Windows.Forms.Panel panel2; | ||||||
|  |         private System.Windows.Forms.GroupBox groupBox2; | ||||||
|  |         private System.Windows.Forms.Label label2; | ||||||
|  |         private System.Windows.Forms.Button btnOk; | ||||||
|  |         private System.Windows.Forms.Label label1; | ||||||
|  |         private System.Windows.Forms.TextBox txtHelpCode; | ||||||
|  |         private System.Windows.Forms.DataGridView dgvSelectPerson; | ||||||
|  |         private System.Windows.Forms.DataGridViewTextBoxColumn IdColumn; | ||||||
|  |         private System.Windows.Forms.DataGridViewCheckBoxColumn CheckBoxColumn; | ||||||
|  |         private System.Windows.Forms.DataGridViewTextBoxColumn NameColumn; | ||||||
|  |         private System.Windows.Forms.DataGridViewTextBoxColumn workno; | ||||||
|  |     } | ||||||
|  | } | ||||||
							
								
								
									
										111
									
								
								DocumentManagement/UI/frmSelectPerson.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										111
									
								
								DocumentManagement/UI/frmSelectPerson.cs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,111 @@ | |||||||
|  | using System; | ||||||
|  | using System.Collections.Generic; | ||||||
|  | using System.Data; | ||||||
|  | using System.Drawing; | ||||||
|  | using System.Windows.Forms; | ||||||
|  | 
 | ||||||
|  | namespace DocumentManagement | ||||||
|  | { | ||||||
|  |     public partial class frmSelectPersonDoc : Form | ||||||
|  |     { | ||||||
|  |         /// <summary> | ||||||
|  |         /// 医生 麻醉医生 麻醉护士 | ||||||
|  |         /// </summary> | ||||||
|  |         public string PersonType = "";  | ||||||
|  |         public int SelectPersonData ;  | ||||||
|  | 
 | ||||||
|  |         public frmSelectPersonDoc() | ||||||
|  |         { | ||||||
|  |             InitializeComponent(); | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         private void frmSelectPersonDoc_Load(object sender, EventArgs e) | ||||||
|  |         { | ||||||
|  |             SetDgvAttribute(dgvSelectPerson); | ||||||
|  | 
 | ||||||
|  |             dgvSelectPerson.Select(); | ||||||
|  |             this.txtHelpCode.Text = "简拼/汉字/ICD码"; | ||||||
|  | 
 | ||||||
|  |             for (int i = 0; i < dgvSelectPerson.Rows.Count; i++) | ||||||
|  |             { | ||||||
|  |                 if (SelectPersonData==int.Parse(dgvSelectPerson.Rows[i].Cells["IdColumn"].Value.ToString())) | ||||||
|  |                 { | ||||||
|  |                     dgvSelectPerson.Rows[i].Cells["CheckBoxColumn"].Value = true; | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         private void txtHelpCode_Click(object sender, EventArgs e) | ||||||
|  |         { | ||||||
|  |             this.txtHelpCode.Text = ""; | ||||||
|  |             this.txtHelpCode.ForeColor = Color.Black; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         private void btnOk_Click(object sender, EventArgs e) | ||||||
|  |         { | ||||||
|  |             Close(); | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         private void txtHelpCode_TextChanged(object sender, EventArgs e) | ||||||
|  |         {  | ||||||
|  |             dgvSelectPerson.DataSource = GetPersonDataTableByDepId( txtHelpCode.Text.Trim(), PersonType); | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         private void dgvSelectPerson_CellClick(object sender, DataGridViewCellEventArgs e) | ||||||
|  |         { | ||||||
|  |             if (Convert.ToBoolean(dgvSelectPerson.CurrentRow.Cells["CheckBoxColumn"].EditedFormattedValue) == false) | ||||||
|  |             { | ||||||
|  |                 SelectPersonData=int.Parse(dgvSelectPerson.CurrentRow.Cells["IdColumn"].Value.ToString()); | ||||||
|  |                 dgvSelectPerson.CurrentRow.Cells["CheckBoxColumn"].Value = true; | ||||||
|  |             } | ||||||
|  |             else | ||||||
|  |             { | ||||||
|  |                 SelectPersonData = -1; | ||||||
|  |                 dgvSelectPerson.CurrentRow.Cells["CheckBoxColumn"].Value = false; | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |         public static void SetDgvAttribute(System.Windows.Forms.DataGridView dgv) | ||||||
|  |         { | ||||||
|  |             dgv.AllowUserToResizeColumns = false; | ||||||
|  |             dgv.AllowUserToResizeRows = false; | ||||||
|  |             dgv.AllowUserToAddRows = false; | ||||||
|  |             dgv.AllowUserToDeleteRows = false; | ||||||
|  |             dgv.ReadOnly = true; | ||||||
|  |             dgv.BackgroundColor = System.Drawing.Color.Snow; | ||||||
|  | 
 | ||||||
|  |         } | ||||||
|  |         public static DataTable GetPersonDataTableByDepId( string HelpCode, string PersonType) | ||||||
|  |         { | ||||||
|  |             string strSql = ""; | ||||||
|  | 
 | ||||||
|  |             if (HelpCode == "简拼/汉字/ICD码") | ||||||
|  |             { | ||||||
|  |                 HelpCode = ""; | ||||||
|  |             }  | ||||||
|  |             if (PersonType == "医生") | ||||||
|  |             { | ||||||
|  |                 strSql = "SELECT p.Id,p.Name,p.[No] FROM Person p WHERE p.IsValid=1  AND p.PersonType ='医生' AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%')";  | ||||||
|  |             } | ||||||
|  |             if (PersonType == "麻醉医生") | ||||||
|  |             { | ||||||
|  |                 strSql = "SELECT p.Id,p.Name,p.[No] FROM Person p WHERE p.IsValid=1  AND p.PersonType ='麻醉医生'  AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%')";  | ||||||
|  |             } | ||||||
|  |             if (PersonType == "麻醉护士") | ||||||
|  |             { | ||||||
|  |                 strSql = "SELECT p.Id,p.Name,p.[No] FROM Person p WHERE p.IsValid=1  AND p.PersonType ='麻醉护士' AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%')"; | ||||||
|  | 
 | ||||||
|  |             } | ||||||
|  |             if (PersonType == "手术室护士") | ||||||
|  |             { | ||||||
|  |                 strSql = "SELECT p.Id,p.Name,p.[No] FROM Person p WHERE p.IsValid=1  AND p.PersonType ='手术室护士'  AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%')"; | ||||||
|  | 
 | ||||||
|  |             } | ||||||
|  |             if (PersonType == "护士") | ||||||
|  |             { | ||||||
|  |                 strSql = "SELECT p.Id,p.Name,p.[No] FROM Person p WHERE p.IsValid=1  AND p.PersonType  like '%护士%' AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%')";  | ||||||
|  |             } | ||||||
|  |             return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |     } | ||||||
|  | } | ||||||
							
								
								
									
										132
									
								
								DocumentManagement/UI/frmSelectPerson.resx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								DocumentManagement/UI/frmSelectPerson.resx
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,132 @@ | |||||||
|  | <?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="IdColumn.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||||
|  |     <value>True</value> | ||||||
|  |   </metadata> | ||||||
|  |   <metadata name="CheckBoxColumn.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="workno.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||||
|  |     <value>True</value> | ||||||
|  |   </metadata> | ||||||
|  | </root> | ||||||
| @ -45,10 +45,11 @@ namespace DrawGraph | |||||||
|                 eventendy = H5pack.RealEndY; |                 eventendy = H5pack.RealEndY; | ||||||
|             } |             } | ||||||
|             IconPpack = template.GetPackObjectOTag<RectangleFramePackObj>("IconManage_RectangleFramePackObj_2"); |             IconPpack = template.GetPackObjectOTag<RectangleFramePackObj>("IconManage_RectangleFramePackObj_2"); | ||||||
|             if (IconPpack != null) |             if (IconPpack  != null) | ||||||
|             { |             { | ||||||
|                 eventy = IconPpack.RealY; |                 eventy = IconPpack.RealY; | ||||||
|                 eventendy = IconPpack.RealEndY; |                 eventendy = IconPpack.RealEndY; | ||||||
|  |                 eventendX =  IconPpack.RealEndX + 0.02; | ||||||
|             } |             } | ||||||
|             LinePackObj line = template.GetPackObjectOTag<LinePackObj>("IconManage_LinePackObj_6"); |             LinePackObj line = template.GetPackObjectOTag<LinePackObj>("IconManage_LinePackObj_6"); | ||||||
|             if (line != null) |             if (line != null) | ||||||
| @ -125,7 +126,7 @@ namespace DrawGraph | |||||||
|             double span = getYPositionByListIndex(1, eventy, eventendy, 2); |             double span = getYPositionByListIndex(1, eventy, eventendy, 2); | ||||||
|             List<string> eventListstr = new List<string>(); |             List<string> eventListstr = new List<string>(); | ||||||
|             eventListstr.Add("【事件】"); |             eventListstr.Add("【事件】"); | ||||||
|             myOpeRecord.FactEventsList.Sort(new FactEventsComparer());  |             myOpeRecord.FactEventsList.Sort(new FactEventsComparer()); | ||||||
|             //循环加药集体 |             //循环加药集体 | ||||||
|             for (int i = 0; i < myOpeRecord.FactEventsList.Count; i++) |             for (int i = 0; i < myOpeRecord.FactEventsList.Count; i++) | ||||||
|             { |             { | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| <?xml version="1.0" encoding="utf-8" ?> | <?xml version="1.0" encoding="utf-8" ?> | ||||||
| <AtuoUpdate> | <AtuoUpdate> | ||||||
|   <ConnectionString>Data Source=.;Initial Catalog=AIMSDB_QHDSGRYY;User ID=sa;Password=Test2020;</ConnectionString> |   <ConnectionString>Data Source=.;Initial Catalog=AIMSDB_DLSJZQZYYY;User ID=sa;Password=Test2020;</ConnectionString> | ||||||
|   <DataConnectionString>Data Source=.;Initial Catalog=AIMSDB_DATA;User ID=sa;Password=Test2020;</DataConnectionString> |   <DataConnectionString>Data Source=.;Initial Catalog=AIMSDB_DATA;User ID=sa;Password=Test2020;</DataConnectionString> | ||||||
|   <HisConnectionStringOracel>Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.7)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl2))));Persist Security Info=True;User ID=smview;Password=i39;</HisConnectionStringOracel> |   <HisConnectionStringOracel>Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.7)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl2))));Persist Security Info=True;User ID=smview;Password=i39;</HisConnectionStringOracel> | ||||||
| </AtuoUpdate> | </AtuoUpdate> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user