Пример #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);
            }
            //--------------------------
        }