/// <summary> /// 未对照人员信息表双击时 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void fpEmpl_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e) { int i = this.fpEmpl_Sheet1.ActiveRowIndex; if (i > -1) { this.employee = new Neusoft.HISFC.Models.Base.Employee(); this.employee.ID = this.fpEmpl_Sheet1.Cells[i, 0].Text.Trim(); this.employee.Name = this.fpEmpl_Sheet1.Cells[i, 1].Text.Trim(); this.employee.Password = ""; this.employee.User03 = "1"; frmComp = new frmCompare(); frmComp.CompType = "0"; frmComp.Employee = this.employee; frmComp.ShowDialog(); if (frmComp.DialogResult == DialogResult.OK) { if (this.InsertComparedInfo() < 0) { MessageBox.Show("保存人员对照信息出错!" + this.manager.Err); return; } MessageBox.Show("保存人员对照信息成功!"); } } this.QueryComparedEmplInfo(); this.QueryUnComparedEmplInfo(); }
/// <summary> /// 已对照科室信息表双击时 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void fpComparedDept_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e) { int i = this.fpComparedDept_Sheet1.ActiveRowIndex; if (i > -1) { this.dept = new Neusoft.HISFC.Models.Base.Department(); this.dept.ID = this.fpComparedDept_Sheet1.Cells[i, 0].Text.Trim(); this.dept.Name = this.fpComparedDept_Sheet1.Cells[i, 1].Text.Trim(); this.dept.User01 = this.fpComparedDept_Sheet1.Cells[i, 5].Text.Trim(); this.dept.User02 = this.fpComparedDept_Sheet1.Cells[i, 6].Text.Trim(); this.dept.User03 = this.fpComparedDept_Sheet1.Cells[i, 7].Text.Trim(); frmComp = new frmCompare(); frmComp.CompType = "1"; frmComp.Dept = this.dept; frmComp.ShowDialog(); if (frmComp.DialogResult == DialogResult.OK) { if (this.UpdateComparedInfo() < 0) { MessageBox.Show("更新科室对照信息出错!" + this.manager.Err); return; } MessageBox.Show("更新科室对照信息成功!"); } } this.QueryUnComparedDeptInfo(); this.QueryComparedDeptInfo(); }