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 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 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(); }