Ejemplo n.º 1
0
        /// <summary>
        /// 住院登记
        /// </summary>
        /// <param name="inPara">住院接口入参</param>
        /// <returns></returns>
        public void InNetworkRegister(InPayParameter para)
        {
            InterfaceInit();
            inReimPara = para;
            InNetWorkReadCard(inReimPara);
            try
            {
                handelModel.SaveZYDJ(inReimPara.PatInfo.PatInHosCode,
                                     dicPatInfo["shbzhm"],
                                     dicPatInfo["ylzbh"],
                                     dicPatInfo["xm"],
                                     dicPatInfo["xb"],
                                     p_yltclb,                                                                 //   string            *住院类别 1:住院 2:家床
                                     dicPatInfo["sbjbm"],
                                     P_syzhlx,                                                                 //(CARD_Y_N == "0" ? "0" : "3"),     //  *使用医保卡类型(0:不使用医保卡 ,1银行卡,2 cpu 卡,3,济南医保卡,5,普通人员无卡住院登记。) string
                                     handelModel.GetNetWorkDeptCode(inReimPara.PatInfo.InDeptCode.ToString()), //需修改//varchar2(20)       *科室编码
                                     inReimPara.PatInfo.InDateTime.ToString("yyyy-MM-dd"),                     //datetime           *住院日期
                                     "",                                                                       //string              确诊医师
                                     "",                                                                       //  varchar2(20)        门诊科室
                                     "1",
                                     "C",
                                     "");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                MessageBox.Show(ex.InnerException.Message);
                throw ex;
            }

            //-----------------------更新费别
            try
            {
                string Charge_class_id = "";
                if (inReimPara.RegInfo.NetPatType == "职工")
                {
                    Charge_class_id = "10002";
                }
                else
                {
                    Charge_class_id = "5";
                }
                change_chargeclass(Charge_class_id, inReimPara.PatInfo.PatInHosId.ToString());
            }
            catch (Exception ex)
            {
                PayAPIUtilities.Log.LogManager.Info("更新费别失败:PAT_IN_HOS_ID" + inReimPara.PatInfo.PatInHosId.ToString() + "\n\r" + ex.Message);
            }
            //--------------------------
        }
Ejemplo n.º 2
0
        public void InNetworkRegister(InPayParameter para)
        {
            InPayPara = para;
            isOut     = false;
            ReadCard(); //读卡
            Dialog.PersonInfoDialog perDialog = new Dialog.PersonInfoDialog(patInfo);
            perDialog.ShowDialog();
            if (perDialog.isCancel)
            {
                throw new Exception("取消操作");
            }

            string HisPatName = InPayPara.PatInfo.InPatName;

            InPayPara.RegInfo.Memo1          = networkPatInfo.ICAmount.ToString();
            InPayPara.RegInfo.CardNo         = networkPatInfo.ICNo;
            InPayPara.RegInfo.MemberNo       = networkPatInfo.MedicalNo;
            InPayPara.RegInfo.CantonCode     = patInfo["cbdsbh"];
            InPayPara.RegInfo.PatAddress     = networkPatInfo.CompanyName;
            InPayPara.RegInfo.CompanyName    = networkPatInfo.CompanyName;
            InPayPara.RegInfo.NetPatType     = networkPatInfo.MedicalType;
            InPayPara.RegInfo.NetDiagnosCode = "";
            InPayPara.RegInfo.NetDiagnosName = "";
            InPayPara.RegInfo.IdNo           = networkPatInfo.IDNo;
            InPayPara.RegInfo.NetType        = p_yltclb;
            InPayPara.RegInfo.NetPatName     = networkPatInfo.PatName;
            InPayPara.RegInfo.PatClassID     = "-1";
            InPayPara.RegInfo.PatInHosSerial = InPayPara.PatInfo.PatInHosCode;
            InPayPara.RegInfo.OperatorId     = PayAPIConfig.Operator.UserSysId;

            if (networkPatInfo.PatName.Trim() != HisPatName.Trim())
            {
                throw new Exception("HIS登记姓名:" + HisPatName.Trim() + ",医保读卡姓名:" + networkPatInfo.PatName.Trim() + ",两者不一致,请核对!");
            }


            try
            {
                handelModel.SaveZYDJ(InPayPara.PatInfo.PatInHosCode,
                                     patInfo["shbzhm"],
                                     patInfo["ylzbh"],
                                     patInfo["xm"],
                                     patInfo["xb"],
                                     p_yltclb,
                                     patInfo["sbjbm"],
                                     p_syzhlx,
                                     InPayPara.PatInfo.InDeptCode.ToString(),  //需修改//varchar2(20)       *科室编码
                                     InPayPara.PatInfo.InDateTime.ToString("yyyy-MM-dd"),
                                     "",
                                     "",
                                     "1", //*住院方式(‘1’普通住院,‘6’市内转院)
                                     "C",
                                     ""
                                     );
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                MessageBox.Show(ex.InnerException.Message);
                throw ex;
            }
            isInit = false;
        }