コード例 #1
0
        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");
        }