예제 #1
0
        /// <summary>
        /// 根据选择的科室ID重新加载收费员
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void m_cboDeptdesc_SelectedIndexChanged(object sender, EventArgs e)
        {
            string    strdeptId = this.m_cboDeptdesc.SelectItemValue.ToString();
            DataTable dt;

            com.digitalwave.iCare.gui.HIS.Reports.clsDomainControl_Register m_objviewer = new com.digitalwave.iCare.gui.HIS.Reports.clsDomainControl_Register();
            m_objviewer.m_lngGetCheckManByDeptId(out dt, strdeptId);
            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;
                }
            }
        }
예제 #2
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");
        }