/// <summary> /// 构造函数,评分环节调用 /// </summary> /// <param name="pId">病人ID</param> /// <param name="qPerson">质控人员</param> /// <param name="qSection">质控科室</param> /// <param name="qTime">最后质控日期</param> /// <param name="type">界面调用标志</param> public frmQualityChild(string strId, string strQPerson, string strQSection, string strQTime, string strType) { InitializeComponent(); inPatient = DataInit.GetInpatientInfoByPid(strId); type = strType; qPerson = strQPerson; qSection = strQSection; qTime = strQTime; }
///// <summary> ///// 选择管床医生 ///// </summary> ///// <param name="sender"></param> ///// <param name="e"></param> //private void txtDoctor_KeyUp(object sender, KeyEventArgs e) //{ // try // { // if (e.KeyCode == Keys.Down) // { // App.SelectFastCodeCheck(); // } // else if (e.KeyCode == Keys.Left) // { // } // else if (e.KeyCode == Keys.Right) // { // } // else if (e.KeyCode == Keys.Escape) // { // App.HideFastCodeCheck(); // } // else // { // if (!App.FastCodeFlag) // { // if (txtDoctor.Text.Trim() != "") // { // App.SelectObj = null; // string sql_select = "select distinct(a.user_id) as 序号,a.user_name as 姓名,g.name as 职称,m.section_name as 科室 from t_userinfo a" + // " inner join t_account_user b on a.user_id=b.user_id" + // " inner join t_account c on b.account_id = c.account_id" + // " inner join t_acc_role d on d.account_id = c.account_id" + // " inner join t_role e on e.role_id = d.role_id" + // " inner join t_acc_role_range f on d.id = f.acc_role_id" + // " inner join t_data_code g on g.id=a.u_tech_post" + // " inner join t_sectioninfo m on f.section_id=m.sid" + // " where e.role_type='D' and UPPER(a.shortcut_code) like '" + txtDoctor.Text.ToUpper().Trim() + "%'"; // App.FastCodeCheck(sql_select, txtDoctor, "姓名", "职称"); // } // } // App.FastCodeFlag = false; // } // } // catch // { } // finally // { // App.FastCodeFlag = false; // } //} #endregion /// <summary> /// 绑定管床医生 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cboSection_SelectedIndexChanged(object sender, EventArgs e) { cboDoctor.DataSource = null; if (Convert.ToInt32(cboSection.SelectedIndex) != 0) { cboDoctor.DataSource = DataInit.GetSectionDoctor(cboSection.SelectedValue.ToString(), true); cboDoctor.ValueMember = "user_id"; cboDoctor.DisplayMember = "user_name"; } }
public UcScreen(InPatientInfo inpateint) { InitializeComponent(); DataInit.CurrentPatient = inpateint; if (DataInit.CurrentPatient != null) { string sql = "select * from T_DISCUSS_DOC where patient_id=" + DataInit.CurrentPatient.Id + ""; DataSet ds = App.GetDataSet(sql); string Record_Time = ""; if (ds.Tables[0].Rows.Count > 0) { int tid = Convert.ToInt32(ds.Tables[0].Rows[0]["id"].ToString()); int textkindid = Convert.ToInt32(ds.Tables[0].Rows[0]["TEXTKIND_ID"].ToString()); string Content = ds.Tables[0].Rows[0]["CONTENT"].ToString(); //读取已有文书 frmText text = new frmText(textkindid, 0, 0, "病例讨论", tid, DataInit.CurrentPatient, true, false, Record_Time, "病例讨论"); if (Content != "") { //读取默认模板 XmlDocument tempxmldoc = new XmlDocument(); tempxmldoc.PreserveWhitespace = true; tempxmldoc.LoadXml(Content); text.MyDoc.FromXML(tempxmldoc.DocumentElement); } text.Dock = DockStyle.Fill; panel2.Controls.Add(text); } else { Record_Time = App.GetSystemTime().ToString("yyyy-MM-dd HH:mm"); //新的文书 frmText text = new frmText(DataInit.discuss_text_id, 0, 0, "病例讨论", 0, DataInit.CurrentPatient, true, false, Record_Time, "病例讨论"); string templatecontent = DataInit.GetDefaultTemp(DataInit.discuss_text_id.ToString()); //ucTemp.Reflesh(text.MyDoc.Us.TextKind_id.ToString()); if (templatecontent != "" && templatecontent != null) { //读取默认模板 XmlDocument tempxmldoc = new XmlDocument(); tempxmldoc.PreserveWhitespace = true; tempxmldoc.LoadXml(templatecontent); text.MyDoc.FromXML(tempxmldoc.DocumentElement); } text.Dock = DockStyle.Fill; panel2.Controls.Add(text); } } }
// GET: ProductMng public ActionResult Index() { var resp = MysqlHelper.ExecuteObjects <List <ProductDto> >("select * from Product"); ViewData["ServerIP"] = $"服务器IP={IPHepler.GetLocalIP()}"; ViewData["DataBaseUrl"] = $"数据库链接={resp.Msg}"; DataInit.InitData(); return(View(resp.Data)); }
protected override void OnMouseDoubleClick(MouseEventArgs e) { //base.OnMouseDoubleClick(e); DataInit.boolAgree = false; DataInit.isRightDoc = false; if (e.Button == MouseButtons.Left) { if (inpat.Id != 0) { string action_State = DataInit.GetActionState(inpat.Id.ToString()); if (action_State == "4" || action_State == "3") { tabControl_Patient = (this.Parent.Parent.Parent.Parent.Parent.Parent.Parent) as DevComponents.DotNetBar.TabControl; //验证TabControl是否有重复 if (tabControl_Patient != null) { for (int i = 0; i < tabControl_Patient.Tabs.Count; i++) { if (inpat.Id.ToString() == tabControl_Patient.Tabs[i].Name) { tabControl_Patient.SelectedTabIndex = i; return; } } } ucMain main = (this.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent) as ucMain; main.action_State = action_State; main.currentPatient = inpat; TabControlPanel tabctpnDoc = new TabControlPanel(); tabctpnDoc.AutoScroll = true; TabItem pageDoc = new TabItem(); pageDoc.Name = inpat.Id.ToString(); pageDoc.Text = inpat.Sick_Bed_Name + " " + inpat.Patient_Name; pageDoc.Click += new EventHandler(page_Click); pageDoc.Tag = inpat; ucDoctorOperater fm = new ucDoctorOperater(inpat); fm.Dock = DockStyle.Fill; tabctpnDoc.Controls.Add(fm); tabctpnDoc.Dock = DockStyle.Fill; pageDoc.AttachedControl = tabctpnDoc; tabControl_Patient.Controls.Add(tabctpnDoc); tabControl_Patient.Tabs.Add(pageDoc); tabControl_Patient.Refresh(); tabControl_Patient.SelectedTab = pageDoc; flag = true; } } else { App.Msg("该床是空床!"); } } }
private void cboPatientName_SelectedIndexChanged(object sender, EventArgs e) { currentPatient = DataInit.GetInpatientInfoByPid(cboPatientName.SelectedValue.ToString()); patient_Docs = GetSelectNodes(103); ucText = new frmText(0, 0, 0, "病程记录", -2, currentPatient, true); SpiltXml(patient_Docs, ucText, false); ucText.Dock = DockStyle.Fill; pnlDoc.Controls.Clear(); pnlDoc.Controls.Add(ucText); }
private void 医嘱单ToolStripMenuItem_Click(object sender, EventArgs e) { try { string patient_id = dgv.CurrentRow.Cells["id"].Value.ToString(); InPatientInfo inPatient = DataInit.GetInpatientInfoByPid(patient_id); App.frmShowYZ(inPatient); } catch (Exception ex) { } }
private void frmGrade_Load(object sender, EventArgs e) { //病案查阅 InPatientInfo inPatient = DataInit.GetInpatientInfoByPid(patientId); Base_Function.BASE_COMMON.DataInit.isRightRun = true; ucDoctorOperater fq = new ucDoctorOperater(inPatient); fq.Dock = DockStyle.Fill; App.UsControlStyle(fq); this.panel10.Controls.Add(fq); }
static void Main(string[] args) { string cmd = string.Empty; if (args.Length > 0) { cmd = args[0]; } while (true) { string indexType; #region input while (true) { if (string.IsNullOrEmpty(cmd)) { CmdTips(); Log.Info("输入索引类型!"); cmd = Console.ReadLine(); if (IndexConfigHelper.Any(cmd)) { indexType = cmd; break; } cmd = string.Empty; continue; } if (IndexConfigHelper.Any(cmd)) { indexType = cmd; break; } } #endregion Log.Info("============================================\n"); Log.InfoFormat("开始处理:{0}...", indexType); try { //创建索引处理对象 var indexHandle = new DataInit(indexType, Log); //执行处理 indexHandle.Exec(); } catch (Exception ex) { Console.WriteLine(ex.Message); } cmd = string.Empty; Log.Info("============================================\n"); } }
private void dgvDocList_DoubleClick(object sender, EventArgs e) { if (dgvDocList.CurrentCell != null) { int n = this.dgvDocList.CurrentCell.RowIndex; string patientid = this.dgvDocList.Rows[n].Cells["患者ID"].Value.ToString(); InPatientInfo inpatient = DataInit.GetInpatientInfoByPid(patientid); ucDoctorOperater fq = new ucDoctorOperater(inpatient, "1", "1", "1"); App.UsControlStyle(fq); App.AddNewBusUcControl(fq, inpatient.Patient_Name + "文书查看"); } }
private void 转入ToolStripMenuItem_Click(object sender, EventArgs e) { DataInit.isInAreaSucceed = false; if (inpat != null) { frmTurn_In inAction = new frmTurn_In(inpat); inAction.ShowDialog(); if (DataInit.isInAreaSucceed == true) { Node node = DataInit.RefCardTree(nodes, inpat); if (node != null) { //foreach (Node tempNode in nodes[0].Nodes["tnSection_patient"].Nodes) //{ // if (tempNode.Text.Equals(inpat.Section_Name)) // { // node.Text = inpat.Sick_Bed_Name + " " + inpat.Patient_Name; // //把当前选中的节点移到科室病人节点下 // DataInit.RefLocationTreeNode(node, inpat.Sick_Bed_Name, nodes); // } //} for (int i = 0; i < nodes[0].Nodes.Count; i++) { if (nodes[0].Nodes[i].Name == "tnSection_patient") { for (int j = 0; j < nodes[0].Nodes[i].Nodes.Count; i++) { Node tempNode = nodes[0].Nodes[i].Nodes[j]; if (tempNode.Name == inpat.Section_Id.ToString()) { node.Text = inpat.Sick_Bed_Name + " " + inpat.Patient_Name; //把当前选中的节点移到科室病人节点下 DataInit.RefLocationTreeNode(node, inpat.Sick_Bed_Name, nodes); } } } } } //自定义刷新事件 EventRefinpatient(this); string name = inpat.Patient_Name; string sex = DataInit.StringFormat(inpat.Gender_Code); string bed_no = inpat.Sick_Bed_Name; string doctor_Name = inpat.Sick_Doctor_Name; string content = name + "," + sex + "," + bed_no + "," + doctor_Name + "。"; //App.Msg(content); App.SendMessage(content, App.GetHostIp()); this.Visible = false; } } }
private void frmUpdateDoctor_Load(object sender, EventArgs e) { this.lblPid.Text = inPatientInfo.PId; this.lblUserName.Text = inPatientInfo.Patient_Name; this.lblAge.Text = inPatientInfo.Age.ToString() + inPatientInfo.Age_unit; string sex = DataInit.StringFormat(inPatientInfo.Gender_Code); this.lblSex.Text = sex; this.lblSectionName.Text = inPatientInfo.Section_Name; this.lblCurentArea.Text = inPatientInfo.Sick_Area_Name; this.lblOldDoctor.Text = inPatientInfo.Sick_Doctor_Name; this.lblInHospital_Time.Text = string.Format("{0:g}", inPatientInfo.In_Time); }
private void frmUpdateBed_Load(object sender, EventArgs e) { this.lblPid.Text = inPatientInfo.PId.ToString(); this.lblUserName.Text = inPatientInfo.Patient_Name; this.lblAge.Text = inPatientInfo.Age.ToString() + inPatientInfo.Age_unit; this.txtRollBedNotes.Text = DataInit.ReturnNotes(inPatientInfo); string sex = DataInit.StringFormat(inPatientInfo.Gender_Code); this.lblSex.Text = sex; //this.lblCurentArea.Text = inPatientInfo.Sick_Area_Name; this.lblOldBed.Text = inPatientInfo.Sick_Bed_Name; this.lblInAreaTime.Text = string.Format("{0:g}", inPatientInfo.In_Time); }
private void btnOpen_Click(object sender, EventArgs e) { if (dgvKouFenDetails.Rows.Count > 0) { string patientid = dgvKouFenDetails.Rows[0].Cells[0].Value.ToString(); InPatientInfo inPatient = DataInit.GetInpatientInfoByPid(patientid); Form frm = new Form(); ucPFDoc uc = new ucPFDoc(inPatient); uc.Dock = DockStyle.Fill; frm.WindowState = FormWindowState.Maximized; frm.Controls.Add(uc); frm.ShowDialog(); } }
private void pACSToolStripMenuItem_Click(object sender, EventArgs e) { try { string patient_id = dgvPatientInfo.CurrentRow.Cells["编号"].Value.ToString(); InPatientInfo inPatient = DataInit.GetInpatientInfoByPid(patient_id); Bifrost.HisInStance.frm_Pasc fc = new Bifrost.HisInStance.frm_Pasc(inPatient); App.FormStytleSet(fc, false); fc.Show(); } catch (Exception ex) { } }
public static void Main(string[] args) { var host = CreateHostBuilder(args).Build(); using (var scope = host.Services.CreateScope()) { var serviceProvider = scope.ServiceProvider; Helpers.StartupHelper.EnsureDatabaseCreated <ApplicationDbContext>(serviceProvider); var userManager = serviceProvider.GetRequiredService <UserManager <JineoUser> >(); var roleManager = serviceProvider.GetRequiredService <RoleManager <IdentityRole> >(); DataInit.SeedData(userManager, roleManager); } host.Run(); }
private void button2_Click(object sender, EventArgs e) { if (this.textBox1.Text.IsNotEmpty()) { XmlDocument xmldoc = new XmlDocument(); xmldoc.LoadXml("<emrdoc/>"); editorControl.EMRDoc.ToXML(xmldoc.DocumentElement); var nodes = xmldoc.GetElementsByTagName("body"); if (nodes != null && nodes.Count > 0) { DataInit.Filter(nodes[0].As <XmlElement>(), this.textBox1.Text.ParseTo <int>()); } this.editorControl.EMRDoc.FromXML(xmldoc.DocumentElement); } }
public override string ToString() { if (Custom_element.IsPresent() || DataInit.IsPresent() || Custom_value.IsPresent()) { return($@"{{ {(DataInit.IsPresent()?"dataInit:"+DataInit+",":"")} {(Custom_element.IsPresent() ? "custom_element:" + Custom_element + "," : "")} {(Custom_value.IsPresent() ? "custom_value:" + Custom_value + "," : "")} }}"); } else { return(this.ToJsonIgnoreNullValue()); } }
private void 病案查阅ToolStripMenuItem_Click(object sender, EventArgs e) { try { string patient_id = dgv.CurrentRow.Cells["id"].Value.ToString(); InPatientInfo inPatient = DataInit.GetInpatientInfoByPid(patient_id); DataInit.isRightRun = true; ucDoctorOperater fq = new ucDoctorOperater(inPatient); App.UsControlStyle(fq); App.AddNewBusUcControl(fq, "病人文书"); } catch (Exception ex) { } }
/// <summary> /// 根据时间的变化从而得到病人的年龄 /// </summary> private void stamp() { try { int year = 0; int mont = 0; int day = 0; DataInit.GetAgeByBirthday(dtpBirthday.Value, App.GetSystemTime(), out year, out mont, out day); if (year > 0) { txtAge.Text = year.ToString(); } } catch { } }
public frmRoll_Out(InPatientInfo inpatient) { InitializeComponent(); App.FormStytleSet(this, false); this.inptInfo = inpatient; lblPid.Text = inptInfo.PId; lblUserName.Text = inptInfo.Patient_Name; lblAge.Text = inptInfo.Age.ToString() + inptInfo.Age_unit; string sex = DataInit.StringFormat(inptInfo.Gender_Code); lblSex.Text = sex; lblInArea.Text = inptInfo.Sick_Area_Name; lblInBed_id.Text = inptInfo.Sick_Bed_Name; //获得科室 GetSection(); }
private void RefTreeView() { Node node = null; node = DataInit.SelectDoc(patient_Id); //得到该病人的所有文书 //得到该病人的所有文书 if (node != null) { /* * 将该病人的文书添加到具体的文书类型下面 */ foreach (Node ChildNode in node.Nodes) { GetPatientDoc(trvDoctorBook.Nodes, ChildNode); } } }
/// <summary> /// 查看,写会诊记录 /// </summary> private void flgGrid_DoubleClick(object sender, EventArgs e) { if (flgGrid.RowSel > 0) { InPatientInfo inPatient = DataInit.GetInpatientInfoByPid(flgGrid[flgGrid.RowSel, "pid"].ToString()); string Apply_Time = flgGrid[flgGrid.RowSel, "申请时间"].ToString(); string Apply_SectionName = flgGrid[flgGrid.RowSel, "申请科室"].ToString(); string Consul_Type = flgGrid[flgGrid.RowSel, "会诊类别"].ToString(); string Recoed_Id = flgGrid[flgGrid.RowSel, "序号"].ToString(); string Apply_Content = flgGrid[flgGrid.RowSel, "consultation_content"].ToString(); //frmConsultation_Record frmRecord = new frmConsultation_Record(inPatient, Apply_Time,Apply_SectionName,Consul_Type,Recoed_Id,Apply_Content); ////App.FormStytleSet(frmRecord); //frmRecord.ShowDialog(); } }
void InitData() { this.TimeSelected = false; this.Time1 = App.GetSystemTime(); this.Time2 = App.GetSystemTime(); this.Sections = new List <EntityData>(); if (App.UserAccount.CurrentSelectRole.Role_type == "D") {//医生科室不变 this.Sections.Add(new EntityData() { Key = "0", Data = App.UserAccount.CurrentSelectRole.Section_name }); } else { this.Sections.Add(new EntityData() { Key = "0", Data = "--请选择--" }); } this.Sections.AddRange(DataInit.GetAllClinicSection()); this.Section_Id = this.Sections.FirstOrDefault().Key; this.StatusList = new List <EntityData>() { new EntityData() { Key = "-1", Data = "--请选择--" }, new EntityData() { Key = "0", Data = "未审核" }, new EntityData() { Key = "1", Data = "通过" }, new EntityData() { Key = "2", Data = "未通过" } }; this.Status = this.StatusList.FirstOrDefault().Key; this.SearchCommand = new DevComponents.DotNetBar.Command(); }
/// <summary> /// 构造函数 /// </summary> /// <param name="Pid">住院号</param> public FrmMedicalRecord(string Pid, string id) { InitializeComponent(); pid = Pid; //诊断 UcCodeDiagnose ucCodeDiagnose = new UcCodeDiagnose(pid); tabControlPanel9.Controls.Add(ucCodeDiagnose); ucCodeDiagnose.Dock = DockStyle.Fill; App.UsControlStyle(ucCodeDiagnose); //手术 UcCodeOperation ucCodeOperation = new UcCodeOperation(pid); tabControlPanel6.Controls.Add(ucCodeOperation); ucCodeOperation.Dock = DockStyle.Fill; App.UsControlStyle(ucCodeOperation); bool sqc = false; bool fgs = false; InPatientInfo inPatient = DataInit.GetInpatientInfoByPid(id); ucDocs fq = new ucDocs(inPatient, "Y"); tabControlPanel1.Controls.Add(fq); fq.Dock = DockStyle.Fill; BLL_DOCTOR.HisInStance.医嘱单.frmYzd frm = new Base_Function.BLL_DOCTOR.HisInStance.医嘱单.frmYzd(inPatient, sqc, fgs); tabControlPanel2.Controls.Add(frm); frm.Dock = DockStyle.Fill; //App.UsControlStyle(frm); BLL_DOCTOR.HisInStance.LIS.UcLis uc = new Base_Function.BLL_DOCTOR.HisInStance.LIS.UcLis(inPatient, sqc, fgs); tabControlPanel3.Controls.Add(uc); uc.Dock = DockStyle.Fill; //App.UsControlStyle(uc); BLL_DOCTOR.HisInStance.PACS.ucPasc ucp = new Base_Function.BLL_DOCTOR.HisInStance.PACS.ucPasc(inPatient, sqc, fgs); tabControlPanel4.Controls.Add(ucp); ucp.Dock = DockStyle.Fill; DataInit.O_Edite = false; DataInit.O_UpOrNext = false; DataInit.D_UpOrNext = false; DataInit.D_Edite = false; }
public void Configure(IApplicationBuilder app, IHostingEnvironment env, LiteContext liteContext // PostgreContext postgreContext ) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseMiniProfiler(); DataInit.InitializeData(liteContext); // DataInit.InitializeData(postgreContext); app.UseMvc(); }
/// <summary> /// PACS查看 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void pACSToolStripMenuItem_Click(object sender, EventArgs e) { try { if (this.dataGridView1.SelectedRows != null && this.dataGridView1.SelectedRows.Count > 0) { string patient_id = this.dataGridView1.SelectedRows[0].Cells["PATIENT_ID"].Value.ToString().Trim(); InPatientInfo inPatient = DataInit.GetInpatientInfoByPid(patient_id); Bifrost.HisInStance.frm_Pasc fc = new Bifrost.HisInStance.frm_Pasc(inPatient); App.FormStytleSet(fc, false); fc.Show(); } } catch (Exception ex) { } }
private void LoadData() { this.roots.Clear(); this.elements.Clear(); var res = DataInit.GetMacrosKinds(); if (res != null) { roots.AddRange(res); } //var res2 = EmrDAL.DbQuery.Query<T_MACROS_ELEMENTS>(); //if (res2 != null) //{ // this.elements.AddRange(res2); //} this.LoadTree(); }
private void frmBack_Section_Load(object sender, EventArgs e) { /* * 获得转出的时间 * **/ string SqlHappenTime ="select happen_time from t_inhospital_action where id=(select max(id) "+ " from t_inhospital_action where patient_id='" + inPatientInfo.Id + "')"; string Time =string.Format("{0:g}",DateTime.Parse(App.ReadSqlVal(SqlHappenTime, 0, "happen_time"))); this.lblInhospital_Id.Text = inPatientInfo.PId; this.lblAge.Text = inPatientInfo.Age.ToString()+inPatientInfo.Age_unit; this.lblName.Text = inPatientInfo.Patient_Name; string sex = DataInit.StringFormat(inPatientInfo.Gender_Code); this.lblSex.Text = sex; this.lblWard.Text = inPatientInfo.Sick_Area_Name; this.lblInHos_section.Text = inPatientInfo.Section_Name; this.lblOutArea_Time.Text = Time; this.lblInhospital_time.Text = string.Format("{0:g}",inPatientInfo.In_Time); }
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env, DataInit init) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseHttpsRedirection(); app.UseOpenApi(); app.UseSwaggerUi3(); app.UseRouting(); app.UseAuthentication(); app.UseCors("AllowAllOrigins"); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); init.InitializeData().Wait(); }