示例#1
0
        private void btnRemark_Click(object sender, EventArgs e)
        {
            if (this.dwRep.RowCount == 0)
            {
                return;
            }

            string EmpID   = this.dwRep.GetItemString(1, "col1");
            string RecTime = this.dwRep.GetItemString(1, "col2");
            string Remark  = this.dwRep.GetItemString(1, "col3");

            if (RecTime == null || RecTime.Trim() == "")
            {
                //只能对已日结报表修改备注信息
                MessageBox.Show("无备注信息。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            if (EmpID != this.LoginInfo.m_strEmpID)
            {
                MessageBox.Show("只有本人才能修改备注信息。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            frmDayReckoningRemark f = new frmDayReckoningRemark();

            f.RemarkInfo      = Remark;
            f.btnSkip.Visible = false;
            f.btnReturn.Text  = "取消(&C)";
            if (f.ShowDialog() == DialogResult.Yes)
            {
                Remark = f.RemarkInfo;
                clsDcl_Charge objCharge = new clsDcl_Charge();
                long          l         = objCharge.m_lngUpdateDayRecRemark(EmpID, RecTime, Remark);
                if (l > 0)
                {
                    this.dwRep.SetItemString(1, "col3", Remark);
                    //修改备注
                    string remarkinfo_p = "";
                    clsPublic.m_mthConvertNewLineStrLbl(Remark, 50, ref remarkinfo_p);
                    this.dwRep.Modify("t_bz.text = '" + remarkinfo_p + "'");
                }
                else
                {
                    MessageBox.Show("修改备注失败。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                }
            }
        }
示例#2
0
        private void btnReck_Click(object sender, EventArgs e)
        {
            if (!IsAllowRec)
            {
                MessageBox.Show("没有待日结的费用。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            if (this.dwRep.Describe("t_ssrq.text").Trim() != "")
            {
                return;
            }

            frmDayReckoningRemark fremark = new frmDayReckoningRemark();
            DialogResult          dg      = fremark.ShowDialog();

            if (dg == DialogResult.Yes || dg == DialogResult.OK)
            {
                string RemarkInfo = fremark.RemarkInfo;

                if (MessageBox.Show("请再次确认是否日结?", "系统提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.Yes)
                {
                    string        RecDate   = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
                    clsDcl_Charge objCharge = new clsDcl_Charge();
                    long          l         = objCharge.m_lngDayReckoningUnion(EmpID, RecDate, RemarkInfo, RecType);
                    if (l > 0)
                    {
                        this.m_mthRefresh(BeginDate, EndDate);
                        clsPublic.PlayAvi("findFILE.avi", "正在统计结帐费用,请稍候...");
                        this.objReport.m_mthRptReckoningEmpUnion(EmpID, EmpName, true, RecDate, hasRecDate1, hasRecDate2, this.dwRep);
                        clsPublic.CloseAvi();
                        this.btnReck.Enabled = false;
                    }
                    else
                    {
                        MessageBox.Show("日结失败。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                    }
                }
            }
        }
示例#3
0
        /// <summary>
        /// 结帐处理:将待结转为待清,同时生成一笔期帐.(含补滚费)
        /// </summary>
        public void m_mthCharge()
        {
            if (!this.m_blnBatchCharge(false))
            {
                return;
            }

            if (this.dtSource.Rows.Count == 0)
            {
                MessageBox.Show("该病人没有待结费用。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            else
            {
                if (MessageBox.Show("结帐收费项目前请再次确认? [是]-确认 [否]-取消", "系统提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.No)
                {
                    return;
                }
            }

            frmDayReckoningRemark fremark = new frmDayReckoningRemark();

            fremark.Text = "结帐备注";
            DialogResult dg = fremark.ShowDialog();

            if (dg == DialogResult.Yes || dg == DialogResult.OK)
            {
                clsBihDayAccounts_VO DayAccounts_VO = new clsBihDayAccounts_VO();
                DayAccounts_VO.RegisterID = this.m_objViewer.ucPatientInfo.RegisterID;
                DayAccounts_VO.PatientID  = this.m_objViewer.ucPatientInfo.BihPatient_VO.PatientID;
                DayAccounts_VO.AreaID     = this.m_objViewer.ucPatientInfo.BihPatient_VO.AreaID;
                DayAccounts_VO.Note       = fremark.RemarkInfo;
                DayAccounts_VO.CurrAreaID = this.m_objViewer.ucPatientInfo.BihPatient_VO.AreaID;
                DayAccounts_VO.OperID     = this.m_objViewer.LoginInfo.m_strEmpID;
                DayAccounts_VO.Type       = "1";

                //计算总金额、自付金额和记帐金额
                decimal decTotalSum = 0;
                decimal decSbSum    = 0;
                decimal decAcctSum  = 0;

                for (int i = 0; i < dtSource.Rows.Count; i++)
                {
                    decimal d = clsPublic.ConvertObjToDecimal(dtSource.Rows[i]["unitprice_dec"]) * clsPublic.ConvertObjToDecimal(dtSource.Rows[i]["amount_dec"]);
                    decTotalSum += clsPublic.Round(d, 2);
                    decSbSum    += clsPublic.Round(d * clsPublic.ConvertObjToDecimal(dtSource.Rows[i]["precent_dec"]) / 100, 2);
                }

                DayAccounts_VO.TotalSum = decTotalSum;
                DayAccounts_VO.SbSum    = decSbSum;
                DayAccounts_VO.AcctSum  = decAcctSum;

                long l = this.objSvc.m_lngBuildDayAccounts(DayAccounts_VO, this.m_objViewer.LoginInfo.m_strEmpID, int.Parse(this.m_objViewer.ChargeType));
                if (l > 0)
                {
                    //出院结帐立即腾出床位
                    if (this.m_objViewer.ChargeType == "1")
                    {
                        this.objSvc.m_lngClearBed(this.m_objViewer.ucPatientInfo.RegisterID);
                        this.objSvc.m_lngUpdatePatientChargeCheckStatus(this.m_objViewer.ucPatientInfo.RegisterID, "3");
                    }

                    MessageBox.Show("结帐成功!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    this.m_objViewer.ucPatientInfo.m_mthShortCurFind();
                }
            }
        }