Exemple #1
0
        private List <MI_MIPayRecordDetail> ResultToPayRecordDetail(DivideResult.output output)
        {
            List <MI_MIPayRecordDetail> mIPayRecordDetailList = new List <MI_MIPayRecordDetail>();

            if (output.feeitems.Length > 0)
            {
                foreach (DivideResult.feeitem item in output.feeitems)
                {
                    if (item != null)
                    {
                        MI_MIPayRecordDetail mIPayRecordDetail = new MI_MIPayRecordDetail();
                        mIPayRecordDetail.itemno            = item.itemno;
                        mIPayRecordDetail.recipeno          = item.recipeno;
                        mIPayRecordDetail.hiscode           = item.hiscode;
                        mIPayRecordDetail.itemcode          = item.itemcode;
                        mIPayRecordDetail.itemname          = item.itemname;
                        mIPayRecordDetail.itemtype          = Tools.ToInt32(item.itemtype, 0);
                        mIPayRecordDetail.unitprice         = Tools.ToDecimal(item.unitprice, 0);
                        mIPayRecordDetail.count             = Tools.ToDecimal(item.count, 0);
                        mIPayRecordDetail.fee               = Tools.ToDecimal(item.fee, 0);
                        mIPayRecordDetail.feein             = Tools.ToDecimal(item.feein, 0);
                        mIPayRecordDetail.feeout            = Tools.ToDecimal(item.feeout, 0);
                        mIPayRecordDetail.selfpay2          = Tools.ToDecimal(item.selfpay2, 0);
                        mIPayRecordDetail.state             = Tools.ToInt32(item.state, 0);
                        mIPayRecordDetail.feetype           = item.fee_type;
                        mIPayRecordDetail.preferentialfee   = Tools.ToDecimal(item.preferentialfee, 0);
                        mIPayRecordDetail.preferentialscale = Tools.ToDecimal(item.preferentialscale, 0);
                        mIPayRecordDetailList.Add(mIPayRecordDetail);
                    }
                }
            }
            return(mIPayRecordDetailList);
        }
Exemple #2
0
        private MI_MedicalInsurancePayRecord ResultToPayRecord(DivideResult.output output)
        {
            MI_MedicalInsurancePayRecord medicalInsurancePayRecord = new MI_MedicalInsurancePayRecord();

            if (output.tradeinfo != null)
            {
                medicalInsurancePayRecord.PatientType = 1;
                medicalInsurancePayRecord.TradeNO     = output.tradeinfo.tradeno;
                medicalInsurancePayRecord.FeeNO       = output.tradeinfo.feeno;
                medicalInsurancePayRecord.TradeTime   = Tools.ToDateTime2(output.tradeinfo.tradedate, DateTime.Now);
            }

            if (output.sumpay != null)
            {
                medicalInsurancePayRecord.FeeAll         = Tools.ToDecimal(output.sumpay.feeall, 0);
                medicalInsurancePayRecord.FeeFund        = Tools.ToDecimal(output.sumpay.fund, 0);
                medicalInsurancePayRecord.FeeCash        = Tools.ToDecimal(output.sumpay.cash, 0);
                medicalInsurancePayRecord.PersonCountPay = Tools.ToDecimal(output.sumpay.personcountpay, 0);
                medicalInsurancePayRecord.PersonCount    = 0;
            }
            if (output.payinfo != null)
            {
                medicalInsurancePayRecord.FeeMIIn       = Tools.ToDecimal(output.payinfo.mzfeein, 0);
                medicalInsurancePayRecord.FeeMIOut      = Tools.ToDecimal(output.payinfo.mzfeeout, 0);
                medicalInsurancePayRecord.FeeDeductible = Tools.ToDecimal(output.payinfo.mzpayfirst, 0);
                medicalInsurancePayRecord.FeeSelfPay    = Tools.ToDecimal(output.payinfo.mzselfpay2, 0);
                medicalInsurancePayRecord.FeeBigPay     = Tools.ToDecimal(output.payinfo.mzbigpay, 0);
                medicalInsurancePayRecord.FeeBigSelfPay = Tools.ToDecimal(output.payinfo.mzbigselfpay, 0);
                medicalInsurancePayRecord.FeeOutOFPay   = Tools.ToDecimal(output.payinfo.mzoutofbig, 0);
                medicalInsurancePayRecord.Feebcbx       = Tools.ToDecimal(output.payinfo.bcpay, 0);
                medicalInsurancePayRecord.Feejcbz       = Tools.ToDecimal(output.payinfo.jcbz, 0);
            }
            return(medicalInsurancePayRecord);
        }
Exemple #3
0
        private MI_MIPayRecordHead ResultToPayRecordHead(DivideResult.output output)
        {
            MI_MIPayRecordHead mIPayRecordHead = new MI_MIPayRecordHead();

            if (IsNew)
            {
                if (output.medicatalog2 != null)
                {
                    mIPayRecordHead.medicine  = Tools.ToDecimal(output.medicatalog2.medicine, 0);
                    mIPayRecordHead.therb     = Tools.ToDecimal(output.medicatalog2.therb, 0);
                    mIPayRecordHead.tmedicine = Tools.ToDecimal(output.medicatalog2.tmedicine, 0);
                    mIPayRecordHead.examine   = Tools.ToDecimal(output.medicatalog2.examine, 0);
                    mIPayRecordHead.labexam   = Tools.ToDecimal(output.medicatalog2.labexam, 0);
                    mIPayRecordHead.treatment = Tools.ToDecimal(output.medicatalog2.treatment, 0);
                    mIPayRecordHead.operation = Tools.ToDecimal(output.medicatalog2.operation, 0);
                    mIPayRecordHead.material  = Tools.ToDecimal(output.medicatalog2.material, 0);
                    mIPayRecordHead.other     = Tools.ToDecimal(output.medicatalog2.otheropfee, 0);

                    mIPayRecordHead.diagnosis      = Tools.ToDecimal(output.medicatalog2.diagnosis, 0);
                    mIPayRecordHead.medicalservice = Tools.ToDecimal(output.medicatalog2.medicalservice, 0);
                    mIPayRecordHead.commonservice  = Tools.ToDecimal(output.medicatalog2.commonservice, 0);
                    mIPayRecordHead.registfee      = Tools.ToDecimal(output.medicatalog2.registfee, 0);
                }
            }
            else
            {
                if (output.medicatalog != null)
                {
                    mIPayRecordHead.medicine  = Tools.ToDecimal(output.medicatalog.medicine, 0);
                    mIPayRecordHead.therb     = Tools.ToDecimal(output.medicatalog.therb, 0);
                    mIPayRecordHead.tmedicine = Tools.ToDecimal(output.medicatalog.tmedicine, 0);
                    mIPayRecordHead.examine   = Tools.ToDecimal(output.medicatalog.examine, 0);
                    mIPayRecordHead.labexam   = Tools.ToDecimal(output.medicatalog.labexam, 0);
                    mIPayRecordHead.treatment = Tools.ToDecimal(output.medicatalog.treatment, 0);
                    mIPayRecordHead.operation = Tools.ToDecimal(output.medicatalog.operation, 0);
                    mIPayRecordHead.material  = Tools.ToDecimal(output.medicatalog.material, 0);
                    mIPayRecordHead.other     = Tools.ToDecimal(output.medicatalog.other, 0);

                    mIPayRecordHead.xray               = Tools.ToDecimal(output.medicatalog.xray, 0);
                    mIPayRecordHead.ultrasonic         = Tools.ToDecimal(output.medicatalog.ultrasonic, 0);
                    mIPayRecordHead.CT                 = Tools.ToDecimal(output.medicatalog.ct, 0);
                    mIPayRecordHead.mri                = Tools.ToDecimal(output.medicatalog.mri, 0);
                    mIPayRecordHead.oxygen             = Tools.ToDecimal(output.medicatalog.oxygen, 0);
                    mIPayRecordHead.bloodt             = Tools.ToDecimal(output.medicatalog.bloodt, 0);
                    mIPayRecordHead.orthodontics       = Tools.ToDecimal(output.medicatalog.orthodontics, 0);
                    mIPayRecordHead.prosthesis         = Tools.ToDecimal(output.medicatalog.prosthesis, 0);
                    mIPayRecordHead.forensic_expertise = Tools.ToDecimal(output.medicatalog.forensic_expertise, 0);
                }
            }
            return(mIPayRecordHead);
        }