예제 #1
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;
        }
예제 #2
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;
        }