Beispiel #1
0
        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);
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
        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;
                }
            }
        }
Beispiel #5
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;
                    }
                }
            }
        }
Beispiel #6
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);
     }
 }
Beispiel #7
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();
        }
Beispiel #8
0
        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;
                }
            }
        }
Beispiel #9
0
        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;
                }
            }
        }
Beispiel #10
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");
        }