Exemplo n.º 1
0
 /// <summary>
 /// 农合病人入院
 /// </summary>
 /// <param name="zypatlist"></param>
 private void NccmPatRegister()
 {
     try
     {
         if (zyPatlist.patientInfo.ACCOUNTTYPE.Trim() == "农合")
         {
             if (zyPatlist.patientInfo.MediCard != null && zyPatlist.patientInfo.MediCard != "")
             {
                 //调用农合接口:入院
                 IzyInterface nccmInterface = NccmFactory.Create();
                 if (nccmInterface != null)
                 {
                     //nccmInterface.GetPatientInfo(HIS.ZY_BLL.SearchNccmPatType.医疗卡号, zypatlist.PatientInfo.MediCard);
                     zyPatlist.Nccm_NO       = zyNccmInterface.GetNccmNo();
                     nccmInterface.zyPatlist = zyPatlist;
                     nccmInterface.Register(null);
                 }
             }
             else
             {
                 throw new Exception("农合入院请输入医疗证号!");
             }
         }
     }
     catch (Exception e)
     {
         throw new Exception(e.Message + "\n\n农合病人入院调用[农合接口]失败!");
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// 取消结算
        /// </summary>
        public void NccmCheck_CanelCostPat()
        {
            try
            {
                if (zyPatlist.patientInfo.ACCOUNTTYPE.Trim() == "农合")
                {
                    if (zyPatlist.patientInfo.MediCard != null && zyPatlist.patientInfo.MediCard.Trim() != "")
                    {
                        //调用农合接口取消入院
                        IzyInterface nccmInterface = NccmFactory.Create();
                        if (nccmInterface != null)
                        {
                            nccmInterface.zyPatlist = zyPatlist;

                            Hashtable hashtable = new Hashtable();
                            hashtable.Add("Nccm_NO", Nccm_NO);
                            nccmInterface.CancelCharge(hashtable);
                        }
                    }
                }
            }
            catch (Exception err)
            {
                throw new Exception(err.Message + "\n\n农合取消结算失败!");
            }
        }
Exemplo n.º 3
0
        //农合预算
        public void PreviewCharge()
        {
            try
            {
                //加载农合病人信息,为农合病人做准备
                if (zyPatlist.patientInfo.ACCOUNTTYPE.Trim() == "农合")
                {
                    if (zyPatlist.patientInfo.MediCard != null && zyPatlist.patientInfo.MediCard.Trim() != "")
                    {
                        IzyInterface nccmInterface = NccmFactory.Create();
                        if (nccmInterface != null)
                        {
                            nccmInterface.zyPatlist = zyPatlist;
                            //找出所有待上传的费用记录
                            ZY_PresOrder zypo = new ZY_PresOrder();
                            zypo.PatListID = zyPatlist.PatListID;
                            DataTable dt = zypo.GetPresDataTable();

                            Hashtable hashtable = new Hashtable();
                            hashtable.Add("FeeDetail", zyNccmInterface.ConvertFeeDetail(dt));
                            hashtable.Add("midWay", Ntype.ToString());

                            decimal _villageFee = nccmInterface.PreviewCharge(hashtable);
                            //Op_PatFee.SetvillageFee(ref patFee, villageFee);
                            villageFee = _villageFee;
                        }
                    }
                }
            }
            catch (Exception e)
            {
                villageFee = 0;
                throw new Exception(e.Message);
            }
        }
Exemplo n.º 4
0
        //记账、冲账农合费用上传
        private void Nccm_UploadFee()
        {
            try
            {
                if (zyPatlist.patientInfo.ACCOUNTTYPE.Trim() == "农合")
                {
                    if (zyPatlist.patientInfo.MediCard != null && zyPatlist.patientInfo.MediCard.Trim() != "")
                    {
                        IzyInterface nccmInterface = NccmFactory.Create();
                        if (nccmInterface != null)
                        {
                            nccmInterface.zyPatlist = zyPatlist;
                            //找出所有待上传的费用记录
                            ZY_PresOrder zypo = new ZY_PresOrder();
                            zypo.PatListID = zyPatlist.PatListID;
                            DataTable dt = zypo.GetPresDataTable();

                            Hashtable hashtable = new Hashtable();
                            hashtable.Add("FeeDetail", zyNccmInterface.ConvertFeeDetail(dt));
                            nccmInterface.UploadzyPatFee(hashtable);
                        }
                    }
                }
            }
            catch (Exception e)
            {
                throw new Exception(e.Message + "\n\n农合费用上传失败!");
            }
        }
Exemplo n.º 5
0
        /// <summary>
        /// 农合病人修改
        /// </summary>
        private void NccmPatAlter()
        {
            try
            {
                //病人类型自费转农合(调入院接口和费用上传接口)
                if (zyPatlist.patientInfo.ACCOUNTTYPE == "农合")
                {
                    if (zyPatlist.Nccm_NO == null || zyPatlist.Nccm_NO == "")
                    {
                        NccmPatRegister();
                        //农合记账

                        IzyInterface nccmInterface = NccmFactory.Create();
                        if (nccmInterface != null)
                        {
                            nccmInterface.zyPatlist = zyPatlist;
                            ZY_PresOrder zypo = new ZY_PresOrder();
                            zypo.PatListID = zyPatlist.PatListID;
                            DataTable dt        = zypo.GetPresDataTable();
                            Hashtable hashtable = new Hashtable();
                            hashtable.Add("FeeDetail", zyNccmInterface.ConvertFeeDetail(dt));
                            nccmInterface.UploadzyPatFee(hashtable);
                        }
                    }
                }

                //病人类型农合转自费(调取消入院接口)
                if (zyPatlist.patientInfo.ACCOUNTTYPE != "农合")
                {
                    if (zyPatlist.Nccm_NO != null && zyPatlist.Nccm_NO != "")
                    {
                        NccmPatCancel();
                        zyPatlist.Nccm_NO = "";
                    }
                }
            }
            catch (Exception e)
            {
                throw new Exception(e.Message + "\n\n农合病人修改调用[农合接口]失败!");
            }
        }
Exemplo n.º 6
0
 /// <summary>
 /// 农合病人取消入院
 /// </summary>
 /// <param name="zypatlist"></param>
 private void NccmPatCancel()
 {
     try
     {
         if (zyPatlist.patientInfo.ACCOUNTTYPE.Trim() == "农合")
         {
             if (zyPatlist.patientInfo.MediCard != null && zyPatlist.patientInfo.MediCard != "")
             {
                 //调用农合接口取消入院
                 IzyInterface nccmInterface = NccmFactory.Create();
                 if (nccmInterface != null)
                 {
                     nccmInterface.zyPatlist = zyPatlist;
                     nccmInterface.CancelRegister(null);
                 }
             }
         }
     }
     catch (Exception e)
     {
         throw new Exception(e.Message + "\n\n农合病人取消入院调用[农合接口]失败!");
     }
 }