private void frmShowPatient_Load(object sender, System.EventArgs e) { clsDomainControl_Register domain = new clsDomainControl_Register(); if (strPatientName != "") { DataTable dt = new DataTable(); domain.m_lngFindPatient(strPatientName, strSex, strBirth, out dt); int Age = 0; if (dt.Rows.Count > 0) { for (int i1 = 0; i1 < dt.Rows.Count; i1++) { ListViewItem newItem = new ListViewItem(dt.Rows[i1]["PATIENTCARDID_CHR"].ToString()); newItem.SubItems.Add(dt.Rows[i1]["LASTNAME_VCHR"].ToString().Trim()); newItem.SubItems.Add(dt.Rows[i1]["SEX_CHR"].ToString().Trim()); try { DateTime brith = DateTime.Parse(dt.Rows[i1]["BIRTH_DAT"].ToString()); Age = DateTime.Now.Year - brith.Year; } catch { } newItem.SubItems.Add(Age.ToString().Trim()); newItem.SubItems.Add(dt.Rows[i1]["HOMEADDRESS_VCHR"].ToString().Trim()); newItem.SubItems.Add(dt.Rows[i1]["HOMEPHONE_VCHR"].ToString().Trim()); newItem.SubItems.Add(dt.Rows[i1]["IDCARD_CHR"].ToString().Trim()); newItem.Tag = dt.Rows[i1]; listView1.Items.Add(newItem); } listView1.Items[0].Selected = true; } } }
public clsControlPatRegFee() { // // TODO: 在此处添加构造函数逻辑 // clsDomain = new clsDomainControl_Register(); }
private void frmCheckOutOfDaySumByCate_Load(object sender, EventArgs e) { this.m_cboStatDateType.SelectedIndex = 1; #region 收费员列表 DataTable dt; //clsDomainControl_Register domain = new clsDomainControl_Register(); //domain.m_lngGetCheckMan(out dt, "0"); this.m_mthGetCheckManByXML(out dt, "0"); // 优化打开速度 by kenny if (dt != null) { this.m_cboCheckMan.Items.Clear(); if (dt.Rows.Count > 0) { this.m_cboCheckMan.Item.Add("全部", "1000"); this.m_cboCheckMan.Item.Add("大院", "2000"); for (int i1 = 0; i1 < dt.Rows.Count; i1++) { this.m_cboCheckMan.Item.Add(dt.Rows[i1]["LASTNAME_VCHR"].ToString(), dt.Rows[i1]["BALANCEEMP_CHR"].ToString()); } this.m_cboCheckMan.SelectedIndex = 0; } } #endregion #region 获取收费员所在部门 DataTable dtdept = null; string strEmpId = this.LoginInfo.m_strEmpID.ToString().Trim(); clsDomainControl_Register domain = new clsDomainControl_Register(); domain.m_lngGetRegdept(out dtdept, strEmpId); if (dtdept != null) { this.m_cbodept.Items.Clear(); if (dtdept.Rows.Count > 0) { this.m_cbodept.Item.Add("全部", "1000"); for (int i = 0; i < dtdept.Rows.Count; i++) { this.m_cbodept.Item.Add(dtdept.Rows[i]["deptname_vchr"].ToString(), dtdept.Rows[i]["deptid_chr"].ToString()); } this.m_cbodept.SelectedIndex = 0; } } #endregion this.m_dwShow.LibraryList = Application.StartupPath + "\\pb_op.pbl"; this.m_dwShow.DataWindowObject = "d_op_checkoutofdaysumcate"; string m_strTitle = this.objController.m_objComInfo.m_strGetHospitalTitle() + "门诊收费员分类汇总日结报表"; this.m_dwShow.Modify("t_title.text='" + m_strTitle + "'"); this.m_dwShow.PrintProperties.Preview = true; this.m_dwShow.PrintProperties.ShowPreviewRulers = true; // add by zxm 11-9-20 string strParam = clsPublic.m_strGetSysparm("1100"); this.FenyuanSFCdeptIDArr = clsPublic.m_ArrGettoken(strParam, ";"); ((clsControllCheckOutOfDaySumCate)this.objController).BirthPayTypeID = clsPublic.m_strGetSysparm("0084"); }
/// <summary> /// 获取配置信息 /// by huafeng.xiao /// 2009年9月15日9:31:13 /// </summary> /// <param name="p_objPrincipal"></param> /// <param name="p_strStatus">返回状态,适合多状态开关使用</param> /// <param name="strsetid">配置ID号</param> /// <returns></returns> public static string m_strGetCollocate(string strsetid) { string m_strStatus = string.Empty; clsDomainControl_Register domain = new clsDomainControl_Register(); domain.m_lngGetCollocateStatus(out m_strStatus, strsetid); return(m_strStatus); }
/// <summary> /// 获取配置信息 /// </summary> /// <param name="strsetid">配置ID号</param> /// <returns>当配置 0--否 1--是时,false 否,true 是;当配置 1--否 0--是时,false 是,true 否</returns> public static bool m_blGetCollocate(string strsetid) { bool isTrue; clsDomainControl_Register domain = new clsDomainControl_Register(); domain.m_lngGetCollocate(out isTrue, strsetid); return(isTrue); }
private void m_mthWriteFromDataBase(object sender) { string strXMLFile = (string)sender; DataTable dt = null; clsDomainControl_Register domain = new clsDomainControl_Register(); domain.m_lngGetCheckMan(out dt, "0"); m_mthWriteXML(strXMLFile, dt); }
private void frmCheckOutOfDayNew_Load(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; starDate.Value = Convert.ToDateTime(starDate.Value.Year.ToString() + "-" + starDate.Value.Month.ToString() + "-" + "01"); //if (isDoctorDean == true) //{ // DataTable dtBalanceemp = new DataTable(); // clsDomainControl_Register domain = new clsDomainControl_Register(); // domain.m_lngReturnAllBALANCEEMP(out dtBalanceemp); // if (dtBalanceemp.Rows.Count > 0) // { // for (int i1 = 0; i1 < dtBalanceemp.Rows.Count; i1++) // { // m_cboCheckMan.Item.Add(dtBalanceemp.Rows[i1]["LASTNAME_VCHR"].ToString(), dtBalanceemp.Rows[i1]["BALANCEEMP_CHR"].ToString()); // } // } //} //Hospital_No = this.objController.m_objComInfo.m_mthGetHospitalNo(); //this.ctlprintShow2.IsShowClose = false; //ctlprintShow2.setDocument = printDocument1; this.m_dwShow.LibraryList = Application.StartupPath + "\\PB_OP.pbl"; //((clsCtlCheckOutOfDay_BM)this.objController).m_mthGetParameters(); if (m_intMode == 0) { groupBox1.Visible = true; groupBox4.Visible = false; groupBox2.Visible = true; ((clsCtlCheckOutOfDay_BM)this.objController).Reset(); } else { groupBox1.Visible = false; groupBox2.Visible = false; groupBox4.Visible = true; DataTable dt; clsDomainControl_Register domain = new clsDomainControl_Register(); domain.m_lngGetCheckMan(out dt, "0"); if (dt != null) { this.m_cboCheckMan.Items.Clear(); if (dt.Rows.Count > 0) { this.m_cboCheckMan.Item.Add("全部", "1000"); for (int i1 = 0; i1 < dt.Rows.Count; i1++) { this.m_cboCheckMan.Item.Add(dt.Rows[i1]["LASTNAME_VCHR"].ToString(), dt.Rows[i1]["BALANCEEMP_CHR"].ToString()); } this.m_cboCheckMan.SelectedIndex = 0; } } } this.Cursor = Cursors.Default; }
private void frmOPRegisterStatRpt_Load(object sender, EventArgs e) { dwRpt.LibraryList = Application.StartupPath + "\\pb_op.pbl"; dwRpt.DataWindowObject = "d_registerstat_rpt"; #region 收费员列表 DataTable dtbMan; objDomainCtl = new clsDomainControl_Register(); objDomainCtl.m_lngGetCheckMan(out dtbMan); if (dtbMan != null) { m_cboCheckMan.Items.Clear(); if (dtbMan.Rows.Count > 0) { this.m_cboCheckMan.Item.Add("全部", "1000"); for (int i1 = 0; i1 < dtbMan.Rows.Count; i1++) { this.m_cboCheckMan.Item.Add(dtbMan.Rows[i1]["lastname_vchr"].ToString(), dtbMan.Rows[i1]["balanceemp_chr"].ToString()); } this.m_cboCheckMan.SelectedIndex = 0; } } #endregion if (m_strStatType == "0")//日报 { labTo.Visible = false; m_endDate.Visible = false; label2.Left = m_endDate.Left; m_cboCheckMan.Left = label2.Left + label2.Width + 10; m_strTitle = this.objController.m_objComInfo.m_strGetHospitalTitle() + "-门诊收费员日挂号发票统计报表"; this.Text = this.m_strTitle; } else { this.labTo.Visible = true; this.m_endDate.Visible = true; m_beginDate.Value = Convert.ToDateTime(m_beginDate.Value.Year.ToString() + "-" + m_beginDate.Value.Month.ToString() + "-" + "01"); this.m_strTitle = this.objController.m_objComInfo.m_strGetHospitalTitle() + "-门诊收费员月挂号发票统计报表"; this.Text = this.m_strTitle; } //this.dwRpt.Modify("datawindow.print.preview=yes datawindow.print.preview.rulers=yes"); }
private void frmGroupWorkLoadReportNew_Load(object sender, EventArgs e) { this.m_dwShow.LibraryList = Application.StartupPath + "\\PB_OP.pbl"; if (this.m_strReportStyle == "2") { this.m_dwShow.DataWindowObject = "d_op_groupworkloadreportnew"; } else { this.m_dwShow.DataWindowObject = "d_op_groupworkloadreportnew1"; } DataTable m_objTable; string strINTERNALFLAG = "-1"; clsDomainControl_Register domain = new clsDomainControl_Register(); domain.m_lngGetDeptInfo(out m_objTable, strINTERNALFLAG); if (m_objTable != null) { this.m_cboDept.Items.Clear(); this.m_cboDept.Item.Add("全部", "1000"); if (m_objTable.Rows.Count > 0) { for (int i1 = 0; i1 < m_objTable.Rows.Count; i1++) { this.m_cboDept.Item.Add(m_objTable.Rows[i1]["deptname_vchr"].ToString(), m_objTable.Rows[i1]["deptid_chr"].ToString()); } this.m_cboDept.SelectedIndex = 0; } } m_objTable = null; domain.m_lngGetCheckMan(out m_objTable, strINTERNALFLAG); if (m_objTable != null) { this.m_cboCheckMan.Items.Clear(); if (m_objTable.Rows.Count > 0) { this.m_cboCheckMan.Item.Add("全部", "1000"); for (int i1 = 0; i1 < m_objTable.Rows.Count; i1++) { this.m_cboCheckMan.Item.Add(m_objTable.Rows[i1]["LASTNAME_VCHR"].ToString(), m_objTable.Rows[i1]["BALANCEEMP_CHR"].ToString()); } this.m_cboCheckMan.SelectedIndex = 0; } } }
private void frmIatricalReport_Load(object sender, System.EventArgs e) { startDate.Value = Convert.ToDateTime(startDate.Value.Year.ToString() + "-" + startDate.Value.Month.ToString() + "-" + "01"); DataTable dtAll = new DataTable(); clsDomainControl_Register domain = new clsDomainControl_Register(); domain.m_lngReturnAllBALANCEEMP(out dtAll); m_CboSeleChargeMan.Item.Add("全部", "All"); if (dtAll.Rows.Count > 0) { for (int i1 = 0; i1 < dtAll.Rows.Count; i1++) { m_CboSeleChargeMan.Item.Add(dtAll.Rows[i1]["LASTNAME_VCHR"].ToString(), dtAll.Rows[i1]["BALANCEEMP_CHR"].ToString()); } } m_CboSeleChargeMan.SelectedIndex = 0; }
private void frmCheckOutHistoryDay_Load(object sender, System.EventArgs e) { // m_strHospitalTitle = this.objController.m_objComInfo.m_strGetHospitalTitle(); this.objController.m_objComInfo.m_lngGetCollocate(out m_blnReportStyle, "9010"); ctlprintShow1.IsShowClose = false; ctlprintShow1.setDocument = printDocument1; DataTable m_objTable; clsDomainControl_Register domain = new clsDomainControl_Register(); if (strDeptFlag == "0") { domain.m_lngGetCheckMan(out m_objTable, strINTERNALFLAG); if (m_objTable != null) { this.m_cboCheckMan.Items.Clear(); if (m_objTable.Rows.Count > 0) { this.m_cboCheckMan.Item.Add("全部", "1000"); for (int i1 = 0; i1 < m_objTable.Rows.Count; i1++) { this.m_cboCheckMan.Item.Add(m_objTable.Rows[i1]["LASTNAME_VCHR"].ToString(), m_objTable.Rows[i1]["BALANCEEMP_CHR"].ToString()); } this.m_cboCheckMan.SelectedIndex = 0; } } } else if (strDeptFlag == "1") { domain.m_lngGetDeptInfo(out m_objTable, strINTERNALFLAG); if (m_objTable != null) { this.m_cboCheckMan.Items.Clear(); if (m_objTable.Rows.Count > 0) { for (int i1 = 0; i1 < m_objTable.Rows.Count; i1++) { this.m_cboCheckMan.Item.Add(m_objTable.Rows[i1]["deptname_vchr"].ToString(), m_objTable.Rows[i1]["deptid_chr"].ToString()); } this.m_cboCheckMan.SelectedIndex = 0; } } } }
private void m_mthGetCheckManByXML(out DataTable dtbResult, string internalFlag) { dtbResult = null; // 读取本地 if (System.IO.File.Exists("dictCheckMan.xml")) { dtbResult = new DataTable(); dtbResult.ReadXml("dictCheckMan.xml"); this.m_mthUpdateLocal("dictCheckMan.xml"); // 异步更新本地XML } // 没数据则读取数据库 if (dtbResult == null || dtbResult.Rows.Count == 0) { clsDomainControl_Register domain = new clsDomainControl_Register(); domain.m_lngGetCheckMan(out dtbResult, "0"); this.m_mthWriteXML("dictCheckMan.xml", dtbResult); } }
/// <summary> /// 检查挂号发票是否被使用 true 被使用 false 未被使用 /// </summary> /// <param name="InvoNo"></param> /// <returns></returns> public bool m_blnCheckInvoNoIsUse(string InvoNo) { clsDomainControl_Register domain = new clsDomainControl_Register(); if (!domain.m_mthIsCanDo("0008")) { DataTable dt = null; long l = domain.m_lngCheckNO(InvoNo.Trim(), out dt); if (dt != null && dt.Rows.Count > 0) { MessageBox.Show("该发票号" + InvoNo + "已于" + DateTime.Parse(dt.Rows[dt.Rows.Count - 1]["REGISTERDATE_DAT"].ToString()).ToString("yyyy-MM-dd") + "被" + dt.Rows[dt.Rows.Count - 1]["EMPNO_CHR"].ToString().Trim() + "使用\r\n\r\n请重新设置(与当前打印票据号相同)。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); this.txtNewNo.Focus(); return(true); } } return(false); }
private void frmGroupWorkLoadReport_Load(object sender, System.EventArgs e) { this.comboBox1.SelectedIndex = 4; DataTable m_objTable; string strINTERNALFLAG = "-1"; clsDomainControl_Register domain = new clsDomainControl_Register(); domain.m_lngGetDeptInfo(out m_objTable, strINTERNALFLAG); if (m_objTable != null) { this.m_cboDept.Items.Clear(); this.m_cboDept.Item.Add("全部", "1000"); if (m_objTable.Rows.Count > 0) { for (int i1 = 0; i1 < m_objTable.Rows.Count; i1++) { this.m_cboDept.Item.Add(m_objTable.Rows[i1]["deptname_vchr"].ToString(), m_objTable.Rows[i1]["deptid_chr"].ToString()); } this.m_cboDept.SelectedIndex = 0; } } m_objTable = null; domain.m_lngGetCheckMan(out m_objTable, strINTERNALFLAG); if (m_objTable != null) { this.m_cboCheckMan.Items.Clear(); if (m_objTable.Rows.Count > 0) { this.m_cboCheckMan.Item.Add("全部", "1000"); for (int i1 = 0; i1 < m_objTable.Rows.Count; i1++) { this.m_cboCheckMan.Item.Add(m_objTable.Rows[i1]["LASTNAME_VCHR"].ToString(), m_objTable.Rows[i1]["BALANCEEMP_CHR"].ToString()); } this.m_cboCheckMan.SelectedIndex = 0; } } ((clsCtl_GroupWorkLoadReport)this.objController).m_mthFromLoad(); CreateRpt(); }
private void frmCheckOutHistoryDay_Load(object sender, System.EventArgs e) { ctlprintShow1.IsShowClose = false; ctlprintShow1.setDocument = printDocument1; DataTable dtEmpAll; clsDomainControl_Register domain = new clsDomainControl_Register(); domain.m_lngGetCheckMan(out dtEmpAll, strINTERNALFLAG); if (dtEmpAll != null) { this.m_cboCheckMan.Items.Clear(); if (dtEmpAll.Rows.Count > 0) { this.m_cboCheckMan.Item.Add("全部", "1000"); for (int i1 = 0; i1 < dtEmpAll.Rows.Count; i1++) { this.m_cboCheckMan.Item.Add(dtEmpAll.Rows[i1]["LASTNAME_VCHR"].ToString(), dtEmpAll.Rows[i1]["BALANCEEMP_CHR"].ToString()); } this.m_cboCheckMan.SelectedIndex = 0; } } }
private void frmCheckOutOfDay_Load(object sender, System.EventArgs e) { this.Cursor = Cursors.WaitCursor; starDate.Value = Convert.ToDateTime(starDate.Value.Year.ToString() + "-" + starDate.Value.Month.ToString() + "-" + "01"); if (isDoctorDean == true) { DataTable dtBalanceemp = new DataTable(); clsDomainControl_Register domain = new clsDomainControl_Register(); domain.m_lngReturnAllBALANCEEMP(out dtBalanceemp); if (dtBalanceemp.Rows.Count > 0) { for (int i1 = 0; i1 < dtBalanceemp.Rows.Count; i1++) { m_cboCheckMan.Item.Add(dtBalanceemp.Rows[i1]["LASTNAME_VCHR"].ToString(), dtBalanceemp.Rows[i1]["BALANCEEMP_CHR"].ToString()); } } } Hospital_No = this.objController.m_objComInfo.m_mthGetHospitalNo(); this.ctlprintShow2.IsShowClose = false; ctlprintShow2.setDocument = printDocument1; this.Cursor = Cursors.Default; }
private void frmCheckOutOfMonth_Load(object sender, System.EventArgs e) { ctlprintShow1.setDocument = printDocument1; startDate.Value = Convert.ToDateTime(startDate.Value.Year.ToString() + "-" + startDate.Value.Month.ToString() + "-" + "01"); DataTable dtEmpAll; clsDomainControl_Register domain = new clsDomainControl_Register(); domain.m_lngGetCheckMan(out dtEmpAll, strINTERNALFLAG); if (dtEmpAll != null) { this.m_cboCheckMan.Items.Clear(); if (dtEmpAll.Rows.Count > 0) { this.m_cboCheckMan.Item.Add("全部", "1000"); for (int i1 = 0; i1 < dtEmpAll.Rows.Count; i1++) { this.m_cboCheckMan.Item.Add(dtEmpAll.Rows[i1]["LASTNAME_VCHR"].ToString(), dtEmpAll.Rows[i1]["BALANCEEMP_CHR"].ToString()); } this.m_cboCheckMan.SelectedIndex = 0; } } }
private void frmOPInvoiceRpt_Load(object sender, EventArgs e) { #region 收费员列表 DataTable dt; clsDomainControl_Register domain = new clsDomainControl_Register(); domain.m_lngGetCheckMan(out dt, "0"); if (dt != null) { this.m_cboCheckMan.Items.Clear(); this.m_cboCheckMan.m_mthClear(); if (dt.Rows.Count > 0) { this.m_cboCheckMan.Item.Add("全部", "1000"); for (int i1 = 0; i1 < dt.Rows.Count; i1++) { this.m_cboCheckMan.Item.Add(dt.Rows[i1]["LASTNAME_VCHR"].ToString(), dt.Rows[i1]["BALANCEEMP_CHR"].ToString()); } this.m_cboCheckMan.SelectedIndex = 0; } } #endregion #region 获取收费员所在部门 DataTable dtdept = null; string strEmpId = this.LoginInfo.m_strEmpID.ToString().Trim(); com.digitalwave.iCare.gui.HIS.Reports.clsDomainControl_Register m_objviewer = new com.digitalwave.iCare.gui.HIS.Reports.clsDomainControl_Register(); m_objviewer.m_lngGetRegdept(out dtdept, strEmpId); if (dtdept != null) { this.m_cboDeptdesc.Items.Clear(); this.m_cboDeptdesc.m_mthClear(); if (dtdept.Rows.Count > 0) { this.m_cboDeptdesc.Item.Add("全部", "1000"); for (int i = 0; i < dtdept.Rows.Count; i++) { this.m_cboDeptdesc.Item.Add(dtdept.Rows[i]["deptname_vchr"].ToString(), dtdept.Rows[i]["deptid_chr"].ToString()); } this.m_cboDeptdesc.SelectedIndex = 0; } } #endregion dwRpt.LibraryList = Application.StartupPath + "\\pb_op.pbl"; dwRpt.DataWindowObject = "d_invoice_rpt"; if (this.m_strShowType == "0") { this.labTo.Visible = false; this.m_endDate.Visible = false; this.m_cboDeptdesc.Visible = false; this.m_strTitle = this.objController.m_objComInfo.m_strGetHospitalTitle() + "门诊收费员日发票报表"; this.Text = this.m_strTitle; } else { this.labTo.Visible = true; this.m_endDate.Visible = true; m_beginDate.Value = Convert.ToDateTime(m_beginDate.Value.Year.ToString() + "-" + m_beginDate.Value.Month.ToString() + "-" + "01"); this.m_strTitle = this.objController.m_objComInfo.m_strGetHospitalTitle() + "门诊收费员月发票报表"; this.Text = this.m_strTitle; } this.dwRpt.Modify("t_title.text='" + this.m_strTitle + "'"); this.dwRpt.Modify("datawindow.print.preview=yes datawindow.print.preview.rulers=yes"); }