示例#1
0
        /// <summary>
        /// 打印界面赋值

        /// </summary>
        /// <param name="patientInfo"></param>
        /// <param name="Prepay"></param>
        public int SetValue(
            Neusoft.HISFC.Object.RADT.PatientInfo patient,
            Neusoft.HISFC.Object.Fee.Inpatient.Prepay prepay)
        {
            try
            {
                #region 收据打印
                //票据号

                this.lblPriReceiptNo.Text = prepay.RecipeNO;
                //交费日期
                this.lblPriOperDate.Text = prepay.PrepayOper.OperTime.ToShortDateString();
                //住院号码
                this.lblPriInpatientNo.Text = patient.PID.PatientNO;
                //姓名
                this.lblPriName.Text = patient.Name;
                //性别
                this.lblPriSex.Text = patient.Sex.Name;
                //地址
                string address = string.Empty;
                if (string.IsNullOrEmpty(patient.AddressBusiness))
                {
                    address = patient.AddressHome;
                }
                this.lblPriAddress.Text = address;
                //电话
                String phone = string.Empty;
                if (string.IsNullOrEmpty(patient.PhoneBusiness))
                {
                    phone = patient.PhoneHome;
                }
                this.lblPriPhone.Text = phone;

                //住院科室
                this.lblPriDept.Text = patient.PVisit.PatientLocation.Dept.Name;
                //预交金额
                this.lblPriJinE.Text = Neusoft.NFC.Public.String.FormatNumber(prepay.FT.PrepayCost, 2).ToString();
                //预交金大写

                this.lblPriDaXie.Text = Function.ConvertNumberToChineseMoneyString(prepay.FT.PrepayCost.ToString());
                //支付方式

                this.lblPriPayTypeName.Text = prepay.PayType.Name;

                //if (prepay.PayType.Name=="支票")
                //{
                this.lblPriCheckNO.Text = prepay.Bank.Account;
                this.lblPriMome.Text    = prepay.Bank.Memo;
                //}
                //收款员

                this.lblPriOperNo.Text = prepay.PrepayOper.ID;
                #endregion
            }
            catch (Exception ex)
            {
                return(-1);
            }
            return(1);
        }
示例#2
0
        /// <summary>
        /// 执行日结过程
        /// </summary>
        /// <param name="dtBegin">起始时间</param>
        /// <param name="dtEnd">结束时间</param>
        /// <returns>1成功 -1失败</returns>
        protected virtual int ExecDayReport()
        {
            try
            {
                //统计时间
                this.lblStatDate.Text = this.feeDayreport.GetDateTimeFromSysDateTime().ToString();

                Neusoft.HISFC.Object.Fee.DayReport dayReport = new Neusoft.HISFC.Object.Fee.DayReport();

                //日结收取预交金金额


                this.lblLPrepayCost.Text = this.feeDayreport.GetPrepayCostByOperIDAndTime(this.DtBegin, this.dtEnd, this.feeDayreport.Operator.ID);

                //日结结算预交金金额


                this.lblDPrepayCost.Text = this.feeDayreport.GetBalancedPrepayCostByOperIDAndTime(this.DtBegin, this.DtEnd, this.feeDayreport.Operator.ID);

                //日结结算总金额


                this.lblLBalanceCost.Text = this.feeDayreport.GetBalancedCostByOperIDAndTime(this.DtBegin, this.DtEnd, this.feeDayreport.Operator.ID);

                //借方支票
                decimal prepayCheckCost = 0m;
                prepayCheckCost = decimal.Parse(this.feeDayreport.GetPrepayCheckCostByOperIDAndTime(this.DtBegin, this.DtEnd, this.feeDayreport.Operator.ID));
                decimal supplyCheckCost = 0m;
                supplyCheckCost         = decimal.Parse(this.feeDayreport.GetSupplyCheckCostByOperIDAndTime(this.DtEnd, this.DtEnd, this.feeDayreport.Operator.ID));
                this.lblDCheckCost.Text = (prepayCheckCost + supplyCheckCost).ToString();

                //贷方支票
                this.lblLCheckCost.Text = this.feeDayreport.GetReturnCheckCostByOperIDAndTime(this.DtBegin, this.DtEnd, this.feeDayreport.Operator.ID);

                //借方现金
                decimal prepayCashCost = 0m;
                prepayCashCost = decimal.Parse(feeDayreport.GetPrepayCashCostByOperIDAndTime(this.DtBegin, this.DtEnd, this.feeDayreport.Operator.ID));

                decimal supplyCashCost = 0m;
                supplyCashCost = decimal.Parse(feeDayreport.GetSupplyCashCostByOperIDAndTime(this.DtBegin, this.DtEnd, this.feeDayreport.Operator.ID));

                decimal returnCashCost = 0m;
                returnCashCost = decimal.Parse(feeDayreport.GetReturnCashCostByOperIDAndTime(this.DtBegin, this.DtEnd, this.feeDayreport.Operator.ID));

                this.lblDCashCost.Text = (prepayCashCost - returnCashCost + supplyCashCost).ToString();

                //借方银行
                decimal prepayBankCost = 0m;
                prepayBankCost = decimal.Parse(feeDayreport.GetPrepayBankCostByOperIDAndTime(DtBegin, DtEnd, feeDayreport.Operator.ID));

                decimal supplyBankCost = 0m;
                supplyBankCost = decimal.Parse(feeDayreport.GetSupplyBankCostByOperIDAndTime(DtBegin, DtEnd, feeDayreport.Operator.ID));

                this.lblDBankCost.Text = (prepayBankCost + supplyBankCost).ToString();


                //贷方银行
                this.lblLBankCost.Text = this.feeDayreport.GetReturnBankCostByOperIDAndTime(DtBegin, DtEnd, feeDayreport.Operator.ID);

                //公费记帐金额
                this.lblDBursaryCost.Text = this.feeDayreport.GetBursaryCostByOperIDAndTime(DtBegin, DtEnd, feeDayreport.Operator.ID);

                //市医保帐户支付


                this.lblDCityAccountCost.Text = this.feeDayreport.GetCPayCostByOperIDAndTime(DtBegin, DtEnd, feeDayreport.Operator.ID);


                //市医保统筹支付


                this.lblDCityPubCost.Text = this.feeDayreport.GetCPubCostByOperIDAndTime(DtBegin, DtEnd, feeDayreport.Operator.ID);

                //省医保帐户


                this.lblDProvinceAccountCost.Text = "0.00";

                //省医保统筹支付


                this.lblDProvincePubCost.Text = "0.00";

                //借方合计
                this.lblDTotCost.Text = Neusoft.NFC.Public.String.ExpressionVal(this.lblDPrepayCost.Text + "+" + this.lblDCashCost.Text
                                                                                + "+" + lblDCheckCost.Text + "+" + lblDBankCost.Text + "+" + lblDBursaryCost.Text + "+" + lblDCityAccountCost.Text
                                                                                + "+" + lblDCityPubCost.Text + "+" + lblDProvinceAccountCost.Text + "+" + lblDProvincePubCost.Text).ToString();
                //贷方合计
                this.lblLTotCost.Text = Neusoft.NFC.Public.String.ExpressionVal(this.lblLPrepayCost.Text + "+" + this.lblLCheckCost.Text
                                                                                + this.lblLBalanceCost.Text + "+" + this.lblLBankCost.Text).ToString();

                //预交金有效张数



                this.lblPrepayNum.Text = this.feeDayreport.GetValidPrepayInvoiceQtyByOperIDAndTime(DtBegin, dtEnd, feeDayreport.Operator.ID);
                //预交金作废张数


                this.lblWastePrepayNum.Text = this.feeDayreport.GetWastePrepayInvoiceQtyByOperIDAndTime(DtBegin, dtEnd, feeDayreport.Operator.ID);

                //预交金票据区间


                Neusoft.NFC.Object.NeuObject invoiceZone = new Neusoft.NFC.Object.NeuObject();

                invoiceZone = this.feeDayreport.GetPrepayInvoiceZoneByOperIDAndTime(DtBegin, dtEnd, feeDayreport.Operator.ID);

                if (invoiceZone != null)
                {
                    this.lblPreInvZone.Text = invoiceZone.ID.ToString() + "----" + invoiceZone.Name;
                }

                //预交金作废票号


                ArrayList alWasteNO = new ArrayList();
                alWasteNO = this.feeDayreport.QueryWastePrepayInvNOByOperIDAndTime(DtBegin, dtEnd, feeDayreport.Operator.ID);
                string wasteInvNO = "";
                Neusoft.HISFC.Object.Fee.Inpatient.Prepay prepay = new Neusoft.HISFC.Object.Fee.Inpatient.Prepay();
                if (alWasteNO.Count == 0)
                {
                    this.lblWastePrepayNO.Text = "";
                }
                else
                {
                    for (int i = 0; i < alWasteNO.Count; i++)
                    {
                        prepay     = (Neusoft.HISFC.Object.Fee.Inpatient.Prepay)alWasteNO[i];
                        wasteInvNO = wasteInvNO + prepay.RecipeNO + ",";
                    }
                    this.lblWastePrepayNO.Text = wasteInvNO.Substring(0, wasteInvNO.Length - 1);
                }


                //结算有效张数
                this.lblBalanceNum.Text = this.feeDayreport.GetValidBalanceInvoiceQtyByOperIDAndTime(DtBegin, DtEnd, feeDayreport.Operator.ID);

                //结算作废张数
                this.lblWasteBalanceNum.Text = this.feeDayreport.GetWasteBalanceInvoiceQtyByOperIDAndTime(DtBegin, DtEnd, feeDayreport.Operator.ID);

                //结算票据区间
                Neusoft.NFC.Object.NeuObject balanceInvoiceZone = new Neusoft.NFC.Object.NeuObject();
                balanceInvoiceZone = this.feeDayreport.GetBalanceInvoiceZoneByOperIDAndTime(DtBegin, DtEnd, feeDayreport.Operator.ID);
                if (balanceInvoiceZone != null)
                {
                    this.lblBalanceInvZone.Text = balanceInvoiceZone.ID.ToString() + "----" + balanceInvoiceZone.Name;
                }

                //结算作废票号
                ArrayList alWasteBalanceInvNO = new ArrayList();
                alWasteBalanceInvNO = this.feeDayreport.QueryWasteBalanceInvNOByOperIDAndTime(DtBegin, DtEnd, feeDayreport.Operator.ID);
                string balanceWasteNO = "";
                Neusoft.HISFC.Object.Fee.Inpatient.Balance balance = new Neusoft.HISFC.Object.Fee.Inpatient.Balance();

                if (alWasteBalanceInvNO.Count == 0)
                {
                    lblWasteBalanceNO.Text = "";
                }
                else
                {
                    for (int j = 0; j < alWasteBalanceInvNO.Count; j++)
                    {
                        balance        = (Neusoft.HISFC.Object.Fee.Inpatient.Balance)alWasteBalanceInvNO[j];
                        balanceWasteNO = balanceWasteNO + balance.Invoice.ID + ",";
                    }
                    this.lblWasteBalanceNO.Text = balanceWasteNO.Substring(0, balanceWasteNO.Length - 1);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("获取日结信息出错!" + this.feeDayreport.Err);
                return(-1);
            }

            this.OperMode = "1";

            return(1);
        }
示例#3
0
        /// <summary>
        /// 打印界面赋值

        /// </summary>
        /// <param name="patientInfo"></param>
        /// <param name="Prepay"></param>
        public int SetValue(Neusoft.HISFC.Object.RADT.PatientInfo patient, Neusoft.HISFC.Object.Fee.Inpatient.Prepay prepay)
        {
            this.lblDeptName.Text = patient.PVisit.PatientLocation.Dept.Name;//患者所在科室



            this.lblName.Text = patient.Name;//患者姓名


            this.lblOper.Text      = prepay.PrepayOper.ID;//经办
            this.lblPatientNo.Text = patient.PID.PatientNO;


            this.lblPrepayCost.Text = Neusoft.NFC.Public.String.FormatNumber(prepay.FT.PrepayCost, 2).ToString(); //金额合计

            this.lblRecipe.Text = prepay.RecipeNO;                                                                //预交金发票号
            this.lblTime.Text   = prepay.PrepayOper.OperTime.ToShortDateString();                                 //交款时间
            if (prepay.PayType.Name == "")
            {
                switch (prepay.PayType.ID.ToString())
                {
                case "CA":
                    prepay.PayType.Name = "现金";
                    break;

                case "CH":
                    prepay.PayType.Name = "支票";
                    break;

                case "PO":
                    prepay.PayType.Name = "汇票";
                    break;

                case "CD":
                    prepay.PayType.Name = "信用卡";
                    break;

                case "DB":
                    prepay.PayType.Name = "借记卡";
                    break;

                default:
                    prepay.PayType.Name = "其他";
                    break;
                }
            }
            this.lblType.Text = "(" + prepay.PayType.Name + ")";//付款方式
            //			this.lblUpPreCost.Text = Function.ChangeCash(Prepay.Pre_Cost);//-------------- 人民币合计


            this.lblUpPreCost.Text = Function.ConvertNumberToChineseMoneyString(prepay.FT.PrepayCost.ToString());

            switch (prepay.PayType.ID.ToString())
            {
            case "CA":       //现金

                break;

            case "CH":                                //支票
                this.lblBank.Text = prepay.Bank.Name; //开户银行


                this.lblBankAcount.Text = prepay.Bank.Account;   //账号
                //					this.labCardNo.Text = Prepay.AccountBank.ID;//卡号
                this.labWorkName.Text = prepay.Bank.WorkName;    //交款单位
                break;

            case "PO":                                //汇票
                this.lblBank.Text = prepay.Bank.Name; //开户银行


                this.lblBankAcount.Text = prepay.Bank.Account;   //账号
                this.labWorkName.Text   = prepay.Bank.WorkName;  //交款单位
                break;
            }
            return(1);
        }