예제 #1
0
        private void btnExport_Click(object sender, EventArgs e)
        {
            clsCtl_Report objReport = new clsCtl_Report();

            objReport.m_mthRptChargeSum(this.dtItem, DeptName, Zyh, PatName, DateScope, this.LoginInfo.m_strEmpNo, 2);
            objReport = null;
        }
예제 #2
0
        private void frmInvoiceRefundment_Load(object sender, EventArgs e)
        {
            int isOpen = clsPublic.m_intGetSysParm("1145");

            if (isOpen == 0)
            {
                dwInvoice.LibraryList      = clsPublic.PBLPath;
                dwInvoice.DataWindowObject = "d_invoice";
            }
            else
            {
                dwInvoice.LibraryList      = Application.StartupPath + @"\pb_Invioce.pbl";
                dwInvoice.DataWindowObject = "d_invoice_gd";
            }
            int intDiffCostOn = clsPublic.m_intGetSysParm("9002");//让利开关

            if (intDiffCostOn == 1)
            {
                dwInvoice.LibraryList      = Application.StartupPath + @"\pb_Invioce.pbl";
                dwInvoice.DataWindowObject = "d_invoice_gd_diff";
            }
            dwInvoice.InsertRow(0);

            clsCtl_Report objReport = new clsCtl_Report();

            this.HospitalName = objReport.HospitalName;
            objReport         = null;

            this.m_mthShowInvonoInfo();
        }
예제 #3
0
        private void frmYB_LJExport_Load(object sender, EventArgs e)
        {
            this.Location  = new Point(this.Location.X, this.Location.Y - 100);
            this.PayTypeID = clsPublic.m_strConvertSingleQuoteMark(clsPublic.m_strGetSysparm("0032"), ";").Replace(";", ",");

            clsCtl_Report obj = new clsCtl_Report();

            this.HospitaName = obj.HospitalName;
            obj = null;
        }
예제 #4
0
        private void m_cmdEveryDayBillForPer_Click(object sender, EventArgs e)
        {
            clsCtl_Report objReport = new clsCtl_Report();

            string areaId = this.m_txtArea.Value.Trim();

            if (areaId == null || areaId == "")
            {
                MessageBox.Show("请选择病区!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            int row = this.m_dgvDetail.SelectedRows.Count;

            if (row == 0)
            {
                MessageBox.Show("请选择病人!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            string registerId = this.m_dgvDetail.SelectedRows[0].Cells["registerId"].Value.ToString();


            string billDate = this.m_dtpDate.Value.ToString("yyyy-MM-dd");

            clsPublic.PlayAvi("findFILE.avi", "正在生成清单信息,请稍候...");

            //objReport.m_mthRptEveryDayBill("0003", registerId, billDate, 2, this.dwEveryDayBill);
            objReport.m_mthRptEveryDayBillEntry2(registerId, billDate, 2, 1, this.dwEveryDayBill);

            clsPublic.CloseAvi();

            if (this.dwEveryDayBill.RowCount > 0)
            {
                //this.dwEveryDayBill.Print(true);
                System.Windows.Forms.PrintDialog pDialog = new PrintDialog();
                //选择打印机
                if (pDialog.ShowDialog() == DialogResult.OK)
                {
                    this.dwEveryDayBill.PrintProperties.PrinterName = pDialog.PrinterSettings.PrinterName;
                    this.dwEveryDayBill.Print(false, false);
                }
            }
            else
            {
                MessageBox.Show("无清单数据!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            //打印预览
            //DWPrintPreview printPreview = new DWPrintPreview(this.dwEveryDayBill);
            //printPreview.ShowDialog();
        }
예제 #5
0
 /// <summary>
 /// 构造
 /// </summary>
 public frmRptIncomeClass()
 {
     InitializeComponent();
     objReport = new clsCtl_Report();
 }
예제 #6
0
 /// <summary>
 /// 出院结账日志报表
 /// </summary>
 public frmRptLogSettleAccount()
 {
     InitializeComponent();
     objReport = new clsCtl_Report();
 }
예제 #7
0
 public frmChargeLogBu()
 {
     InitializeComponent();
     objReport = new clsCtl_Report();
 }
예제 #8
0
        /// <summary>
        /// 构造

        /// </summary>
        public frmRptInvoiceRefundment()
        {
            InitializeComponent();
            objReport = new clsCtl_Report();
        }
예제 #9
0
        /// <summary>
        /// 构造

        /// </summary>
        public frmRptActualReceiveDetail()
        {
            InitializeComponent();
            objReport = new clsCtl_Report();
        }
예제 #10
0
파일: frmYB_LJ.cs 프로젝트: iamwsx05/HIS
        /// <summary>
        /// 构造

        /// </summary>
        public frmYB_LJ()
        {
            InitializeComponent();
            objReport = new clsCtl_Report();
        }
예제 #11
0
        /// <summary>
        /// 构造

        /// </summary>
        public frmRptDeptWorkLog()
        {
            InitializeComponent();
            objReport = new clsCtl_Report();
        }
예제 #12
0
        /// <summary>
        /// 构造

        /// </summary>
        public frmRptYBEntry()
        {
            InitializeComponent();
            objReport = new clsCtl_Report();
        }
예제 #13
0
        /// <summary>
        /// 构造

        /// </summary>
        public frmRptPatientSum()
        {
            InitializeComponent();
            objReport = new clsCtl_Report();
        }
예제 #14
0
        /// <summary>
        /// 改号
        /// </summary>
        public void m_mthModifyNO()
        {
            if (this.m_objViewer.lblzyh1.Text.Trim() == "")
            {
                MessageBox.Show("请查找当前在院病人!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return;
            }

            //修改类型 0 住院号->住院号 1 住院号->留观号 2 留观号->留观号 3 留观号->住院号
            int currtype = this.m_objViewer.cboType.SelectedIndex;

            string orgtype = this.m_objViewer.cboType.Tag.ToString().Trim();

            if (orgtype == "住院号")
            {
                if (currtype == 2 || currtype == 3)
                {
                    MessageBox.Show("当前是普通住院病人,请重新选择修改类型。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    this.m_objViewer.cboType.SelectedIndex = 0;
                    return;
                }
            }
            else if (orgtype == "留观号")
            {
                if (currtype == 0 || currtype == 1)
                {
                    MessageBox.Show("当前是留观病人,请重新选择修改类型。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    this.m_objViewer.cboType.SelectedIndex = 2;
                    return;
                }
            }

            //当前病人ID
            string currpatientid = this.m_objViewer.lblname1.Tag.ToString();
            //本次入院登记流水号
            string currregid = this.m_objViewer.lblzyh1.Tag.ToString();
            //本次住院号
            string currzyh = this.m_objViewer.lblzyh1.Text.Trim();
            //本次住院次数
            int currzycs = int.Parse(this.m_objViewer.lblzycs1.Text);
            //新号
            string newno = this.m_objViewer.txtNewNO.Text.Trim();
            //旧号病人ID
            string oldpatientid = "";
            //旧号
            string oldzyh = this.m_objViewer.lblzyh2.Text.Trim();
            //旧号住院次数
            int oldzycs = 0;
            //同一病人标志
            bool sameflag = false;

            //提示信息
            string[] Hintinfo = new string[4] {
                "", "", "", ""
            };
            Hintinfo[1] = "是否改成【新】的住院(留观)号,请确认?";
            Hintinfo[2] = "是否【自动】生成新的住院(留观)号,请确认?";
            Hintinfo[3] = "是否【合并】到旧的住院(留观)号,请确认?";
            string[] Saveinfo = new string[2] {
                "", ""
            };
            Saveinfo[0] = "修改住院号成功!";
            Saveinfo[1] = "修改住院号失败。";

            //修改类型 1 新号 2 自动 3 合并
            int type = 0;
            //多次住院标志
            bool miflag = false;

            if (currzycs > 1)
            {
                miflag = true;
            }

            if (this.m_objViewer.chkAuto.Checked == false && newno == "" && oldzyh == "")
            {
                return;
            }

            if (this.m_objViewer.chkUnion.Checked)
            {
                if (oldzyh == "")
                {
                    MessageBox.Show("合并住院(留观)号前请找出旧号信息。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                    this.m_objViewer.btnFindOldNO.Focus();
                    return;
                }
                else
                {
                    if (this.m_objViewer.lblintype2.Text == "普通住院")
                    {
                        if (currtype != 0 && currtype != 3)
                        {
                            MessageBox.Show("合并住院(留观)号前:修改成的类型必须与旧号类型相同,请重新指定修改类型。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                            this.m_objViewer.cboType.Focus();
                            return;
                        }
                    }
                    else if (this.m_objViewer.lblintype2.Text == "留观住院")
                    {
                        if (currtype != 1 && currtype != 2)
                        {
                            MessageBox.Show("合并住院(留观)号前:修改成的类型必须与旧号类型相同,请重新指定修改类型。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                            this.m_objViewer.cboType.Focus();
                            return;
                        }
                    }
                    type = 3;
                }
            }
            else
            {
                if (this.m_objViewer.chkAuto.Checked)
                {
                    type = 2;
                }
                else
                {
                    if (newno == "")
                    {
                        MessageBox.Show("请输入新住院(留观)号。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                        this.m_objViewer.btnFindOldNO.Focus();
                        return;
                    }
                    else
                    {
                        type = 1;
                    }
                }
            }

            string pid1 = this.m_objViewer.lblname1.Tag.ToString().Trim();
            string pid2 = this.m_objViewer.lblzyh1.Tag.ToString().Trim();

            string intype1 = this.m_objViewer.lblintype1.Text;
            string intype2 = this.m_objViewer.lblintype2.Text;

            if (intype2.Trim() != "" && intype1 != intype2 && pid1 == pid2)
            {
                if ((currtype == 1 || currtype == 3))
                {
                    if (!this.m_objViewer.chkUnion.Checked)
                    {
                        MessageBox.Show("同一病人只能使用合并住院(留观)号操作。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        return;
                    }
                }
            }

            int zycs1 = (this.m_objViewer.lblzycs1.Text.Trim() == "" ? 0 : int.Parse(this.m_objViewer.lblzycs1.Text.Trim()));
            int zycs2 = (this.m_objViewer.lblzycs2.Text.Trim() == "" ? 0 : int.Parse(this.m_objViewer.lblzycs2.Text.Trim()));

            if ((zycs1 > 1 && zycs2 == 0 && currtype != 1 && currtype != 3) || (zycs1 > 1 && zycs2 > 0 && intype1 == intype2 && pid1 == pid2))
            {
                MessageBox.Show("对同一多次住院的病人不能进行修改操作,请先退号。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            //else if (zycs1 > 1 && zycs2 > 0 && !this.m_objViewer.chkUnion.Checked)
            //{
            //    MessageBox.Show("只能合并住院(留观)号。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            //    return;
            //}

            if (MessageBox.Show(Hintinfo[type], "系统提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.No)
            {
                return;
            }

            if (type == 1)
            {
                if (this.m_blnCheckNewNO(newno))
                {
                    MessageBox.Show("新住院(留观)号已被使用,请重新输入新号。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                    return;
                }
            }
            else if (type == 3)
            {
                if (Convert.ToDateTime(this.m_objViewer.lbloutdate.Text) >= Convert.ToDateTime(this.m_objViewer.lblindate1.Text))
                {
                    MessageBox.Show("旧号的出院时间大于当前住院信息的入院时间,两号不能合并。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                    return;
                }
                newno        = oldzyh;
                oldzycs      = int.Parse(this.m_objViewer.lblzycs2.Text) + 1;
                oldpatientid = this.m_objViewer.lblzyh2.Tag.ToString().Trim();
                sameflag     = (currpatientid == oldpatientid ? true : false);
            }

            if (this.objSvc.m_blnModifyNewNO(oldpatientid, currregid, currzyh, ref newno, oldzycs, miflag, sameflag, currtype, type, this.m_objViewer.LoginInfo.m_strEmpID))
            {
                MessageBox.Show(Saveinfo[0], "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                this.m_objViewer.lblzyh1.Text = newno;
                if (type == 3)
                {
                    this.m_objViewer.lblzycs1.Text     = oldzycs.ToString();
                    this.m_objViewer.lblname1.Text     = this.m_objViewer.lblname2.Text;
                    this.m_objViewer.lblname1.Tag      = this.m_objViewer.lblzyh2.Tag;
                    this.m_objViewer.lblsex1.Text      = this.m_objViewer.lblsex2.Text;
                    this.m_objViewer.lblbirthday1.Text = this.m_objViewer.lblbirthday2.Text;
                    this.m_objViewer.lblidcard1.Text   = this.m_objViewer.lblidcard2.Text;
                    this.m_objViewer.lbladdress1.Text  = this.m_objViewer.lbladdress2.Text;
                }
                if (currtype == 0 || currtype == 3)
                {
                    this.m_objViewer.lblintype1.Text = "普通住院";
                }
                else if (currtype == 1 || currtype == 2)
                {
                    this.m_objViewer.lblintype1.Text = "留观住院";
                }

                //顺德同时修改医保病人住院号
                if (clsPublic.m_strGetSysparm("1000") == "003")
                {
                    clsCtl_Report objRep = new clsCtl_Report();
                    objRep.m_mthModifyZyh_SDYB(currzyh, newno);
                }
            }
            else
            {
                MessageBox.Show(Saveinfo[1], "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
예제 #15
0
        /// <summary>
        /// 构造

        /// </summary>
        public frmRptGroupInCome()
        {
            InitializeComponent();
            objReport = new clsCtl_Report();
        }
예제 #16
0
        /// <summary>
        /// 构造

        /// </summary>
        public frmRptDoctorSum()
        {
            InitializeComponent();
            objReport = new clsCtl_Report();
        }
예제 #17
0
 public frmRptUsedDragStat()
 {
     InitializeComponent();
     objSvc    = new clsDcl_Charge();
     objReport = new clsCtl_Report();
 }
예제 #18
0
 public frmRptItemDetailStat()
 {
     InitializeComponent();
     objReport = new clsCtl_Report();
     objSvc    = new clsDcl_Charge();
 }
예제 #19
0
        /// <summary>
        /// 构造

        /// </summary>
        public frmRptChargeGroup_LJ()
        {
            InitializeComponent();
            objReport = new clsCtl_Report();
        }
예제 #20
0
        /// <summary>
        /// 构造

        /// </summary>
        public frmRptPrePayClear()
        {
            InitializeComponent();
            objReport = new clsCtl_Report();
        }
예제 #21
0
 /// <summary>
 /// 构造
 /// </summary>
 public frmRptChargeRecSum()
 {
     InitializeComponent();
     objReport = new clsCtl_Report();
 }
예제 #22
0
        /// <summary>
        /// 构造

        /// </summary>
        public frmRptDoctorPerformance()
        {
            InitializeComponent();
            objReport = new clsCtl_Report();
        }
예제 #23
0
 /// <summary>
 /// 构造
 /// </summary>
 public frmRptReckoningDept()
 {
     InitializeComponent();
     objReport = new clsCtl_Report();
 }
예제 #24
0
 /// <summary>
 /// 构造
 /// </summary>
 public frmRptEveryDayBill()
 {
     InitializeComponent();
     objReport = new clsCtl_Report();
 }
예제 #25
0
        /// <summary>
        /// 构造

        /// </summary>
        public frmRptOutNoCharge()
        {
            InitializeComponent();

            objReport = new clsCtl_Report();
        }
예제 #26
0
        /// <summary>
        /// 构造

        /// </summary>
        public frmRptPayTypeBill()
        {
            InitializeComponent();

            objReport = new clsCtl_Report();
        }
예제 #27
0
        /// <summary>
        /// 构造


        /// </summary>
        public frmRptAllDeptIncome()
        {
            InitializeComponent();
            objReport = new clsCtl_Report();
        }
예제 #28
0
        /// <summary>
        /// 构造

        /// </summary>
        public frmRptReceiverSum()
        {
            InitializeComponent();

            objReport = new clsCtl_Report();
        }