public AddFeeDTO getEmsdrug(AddFeeDTO fee, OrConfirm or)
        {
            var dto = new OrWfExDeptParamDTO();

            dto.Eu_wftp    = Convert.ToInt32(EnumFlow.NULL); //    0执行与物资   1执行科室 2物资流向
            dto.Code_entp  = or.Code_entp;                   //     就诊类型
            dto.Id_dept_ns = or.Id_dep_nur;                  //就诊护理病区
            dto.Id_dept_or = or.Id_dep_phy;                  //开单科室
            // dto.Id_dept_en = or.id; //id_dept_en;//就诊科室
            dto.Id_srv   = fee.Id_srv;                       //服务
            dto.Sd_srvtp = fee.Sd_srvtp;                     //服务类型sd
            dto.Id_srvca = fee.Id_srvca;                     //服务分类
            dto.Recurstr = or.Fg_long.ToString();            //长临标志
            //dto.Innercode_srvca =;//服务分类内码
            //  dto.Id_mm = id_mm;          // 服务选取的关联物品
            //  dto.Id_usage = ;   //用法
            //dto.Weekno = "2";//生效日期时间相关的 周#与时间
            dto.Timestr = new DateTime();
            //dto.Reserv1 = "";  //暂时无用途   //预留项
            //dto.Reserv2 = "";  //暂时无用途
            //dto.Reserv3 = "";  //套内项目时: BD套内项目的科室计算方式sd值,BD套内项目的固定执行科室ID值,所属套的执行科室ID值
            AddFeeDTO dgs = qryservice.getEmsfee(fee, dto);

            copydrug(fee, dgs);
            fee.Amt_cur = fee.Price * fee.Quan_med;
            return(fee);
        }
Example #2
0
        /// <summary>
        /// Gets the dept_mp.
        /// </summary>
        /// <param name="id_entp">The  .</param>
        /// <param name="id_srvtp">The id_srvtp.</param>
        /// <param name="id_srv">The id_srv.</param>

        /// <returns>id_dept|name_dept</returns>
        /// Author:admin
        ///// Date:2015-09-19
        //public List<EmsDrugItemDO> GetDept_mp(string id_entp, string id_srvtp, string id_srvCa, string id_srv, string id_route)
        //{
        //    //入参数:就诊类型id、服务类型编码、服务分类id、服务项目id、医嘱用法id、医嘱长临标志。
        //    //传回参数:执行科室id
        //    //传入参数:就诊类型id、服务分类id,服务项目id,其他参数传值为null。

        //    List<EmsDrugItemDO> list = new List<EmsDrugItemDO>();
        //    MdWfOrDO[] md = ordmpService.getMdwfOrDos(new WforQryCondDTO()
        //    {
        //        Entp = id_entp,
        //        Srvtp = id_srvtp,
        //        Id_qry = id_srv,
        //        Srvca = id_srvCa,
        //        Usg = id_route



        //    });
        //    md.ToList().ForEach(p =>
        //    {
        //        list.Add(new EmsDrugItemDO { Id_dep = p.Id_dept, Name_dep = p.Dept_name });
        //    });
        //    return list;
        //}
        /// <summary>
        /// 获取执行科室id集合
        /// </summary>
        /// <param name="id_entp">The id_entp.</param>
        /// <param name="id_srvtp">The id_srvtp.</param>
        /// <param name="id_srvCa">The id_srv ca.</param>
        /// <param name="id_srv">The id_srv.</param>
        /// <param name="id_route">The id_route.</param>
        /// <returns></returns>
        /// Author:admin
        ///// Date:2015-12-10
        //public string GetDept_mp_ids(string code_entp, string id_entp, string sd_srvtp, string id_srvCa, string id_srv, string id_route, string id_mm,string id_dept_nur)
        //{

        //    OrWfExDeptParamDTO dto = new OrWfExDeptParamDTO();
        //    dto.Id_dept_en = id_entp;
        //    dto.Id_srvca = id_srvCa;
        //    dto.Id_srv = id_srv;
        //    dto.Sd_srvtp = sd_srvtp;
        //    dto.Id_usage = id_route;
        //    dto.Code_entp = code_entp;
        //    dto.Id_dept_ns = id_dept_nur;
        //    dto.Id_mm = "";// 基数药使用 todo
        //    OrWfExDeptDTO[] deps = new IBdFcQryServiceImpl().getOrExDept4OpenMode(dto);

        //    if (deps == null) return "";
        //    string str = string.Join("','", deps.Select(p => p.Id_dept));
        //    string strdep = "'" + str + "'";
        //    return strdep;
        //}

        /// <summary>
        /// 获取医嘱流向科室数据
        /// </summary>
        /// <param name="code_entp"></param>
        /// <param name="id_entp"></param>
        /// <param name="sd_srvtp"></param>
        /// <param name="id_srvCa"></param>
        /// <param name="id_srv"></param>
        /// <param name="id_route"></param>
        /// <param name="id_mm"></param>
        /// <param name="id_dept_nur"></param>
        /// <param name="id_dep_ent"></param>
        /// <param name="id_dep_follow"></param>
        /// <returns></returns>
        public OrWfDeptInfoDTO GetDept_mp_ids(string code_entp, string id_entp, string sd_srvtp, string id_srvCa, string id_srv, string id_route, string id_mm, string id_dept_nur, string id_dep_ent = "", string id_dep_follow = "")
        {
            DataTable          dt  = new DataTable();
            OrWfExDeptParamDTO dto = new OrWfExDeptParamDTO();

            dto.Eu_wftp    = Convert.ToInt32(EnumFlow.NULL);               //    0执行与物资   1执行科室 2物资流向
            dto.Code_entp  = code_entp;                                    //     就诊类型
            dto.Id_dept_ns = id_dept_nur;                                  //就诊护理病区
            dto.Id_dept_or = UserManager.getInstance().CurrentDept.Id_dep; //开单科室
            dto.Id_dept_en = id_dep_ent;                                   //id_dept_en;//就诊科室
            //dto.Recurstr = "";   //长临需要的   不知道 就为空
            dto.Id_srv     = id_srv;                                       //服务
            dto.Sd_srvtp   = sd_srvtp;                                     //服务类型sd
            dto.Id_srvca   = id_srvCa;                                     //服务分类
            dto.Id_dept_ex = id_dep_follow;                                // 主服务执行科室--用于跟随情况
            //dto.Innercode_srvca = "";//服务分类内码
            dto.Id_mm    = id_mm;                                          // 服务选取的关联物品
            dto.Id_usage = id_route;                                       //用法
            //dto.Weekno = "2";//生效日期时间相关的 周#与时间
            dto.Timestr = new DateTime();
            //dto.Reserv1 = "";  //暂时无用途   //预留项
            //dto.Reserv2 = "";  //暂时无用途
            //dto.Reserv3 = "";  //套内项目时: BD套内项目的科室计算方式sd值,BD套内项目的固定执行科室ID值,所属套的执行科室ID值
            OrWfDeptInfoDTO deps = null;

            try {
                deps = new ICiOrdQryServiceImpl().getExeDepts4CiOrSrvN(dto);
            }
            catch (Exception ex) {
                LogManager.GetLogger().ErrorEx("获取执行科室错误!", ex);
            }

            return(deps);
        }
        void xapFormControl_ModelFilled(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(Emsdrugs.Name_dep))
            {
                OrWfExDeptParamDTO param = new OrWfExDeptParamDTO();

                param.Eu_wftp   = Convert.ToInt32(EnumFlow.NULL);                //    0执行与物资   1执行科室 2物资流向
                param.Code_entp = this.CiHeadDo.PatInfo.Code_entp;               //     就诊类型

                param.Id_dept_ns = this.CiHeadDo.PatInfo.Id_dep_nur;             //就诊护理病区
                param.Id_dept_or = UserManager.getInstance().CurrentDept.Id_dep; //开单科室
                param.Id_dept_en = this.CiHeadDo.PatInfo.Id_dep_phy;             //id_dept_en;//就诊科室

                //dto.Recurstr = "";   //长临需要的   不知道 就为空


                param.Id_srv   = drug.Id_srv;                     //服务
                param.Sd_srvtp = drug.Sd_srvtp;                   //服务类型sd
                param.Id_srvca = drug.Id_srvca;                   //服务分类
                //dto.Innercode_srvca = "";//服务分类内码
                param.Id_mm    = drug.Id_mm;                      // 服务选取的关联物品
                param.Id_usage = this.CiHeadDo.Emsdrugs.Id_route; //用法
                OrWfDeptInfoDTO deps = new ICiOrdQryServiceImpl().getExeDepts4CiOrSrvN(param);
                if (deps != null && deps.Orwfexedepts != null)
                {
                    foreach (OrWfExDeptDTO dep in deps.Orwfexedepts)
                    {
                        Emsdrugs.Id_dep          = dep.Id_dept;
                        Emsdrugs.Name_dep        = dep.Name_dept;
                        Emsdrugs.Str_mp_dep_ids += ",'" + dep.Id_dept + "'";
                    }
                }
            }
        }
Example #4
0
        /// <summary>
        /// 获取执行科室
        /// </summary>
        /// <param name="drug"></param>
        /// <param name="or"></param>
        /// <returns></returns>

        public OrWfExDeptDTO[] getMpDept()
        {
            OrWfExDeptParamDTO orWf = new OrWfExDeptParamDTO();

            orWf.Id_dept_ns = UserManager.getInstance().CurrentDept.Id_dep;
            orWf.Id_srv     = this.uiEmsDTO.MedSrvDO.Id_srv;
            orWf.Id_srvca   = this.uiEmsDTO.MedSrvDO.Id_srvca;
            orWf.Code_entp  = this.uiEmsDTO.PatInfo.Code_entp;
            orWf.Sd_srvtp   = this.uiEmsDTO.MedSrvDO.Sd_srvtp;
            return(this.qryservice.getMpDept(orWf));
        }
        /// <summary>
        ///     获取执行科室
        /// </summary>
        /// <param name="drug"></param>
        /// <param name="or"></param>
        /// <returns></returns>
        public OrWfExDeptDTO[] getMpDept(EmsOrDrug drug, OrConfirm or)
        {
            var orWf = new OrWfExDeptParamDTO();

            orWf.Id_dept_ns = UserManager.getInstance().CurrentDept.Id_dep;
            orWf.Id_srv     = drug.Id_srv;
            orWf.Id_srvca   = drug.Id_srvca;
            orWf.Code_entp  = or.Code_entp;
            orWf.Sd_srvtp   = drug.Sd_srvtp;
            return(qryservice.getMpDept(orWf));
        }
Example #6
0
        /// <summary>
        /// 针对一个医疗单的方法
        /// </summary>
        /// <param name="xapDataList"></param>
        /// <param name="id_route"></param>
        /// <param name="ent4BannerDTO"></param>
        public static void fillExecDetps(XapDataList <EmsOrDrug> xapDataList, string id_route, Ent4BannerDTO ent4BannerDTO)
        {
            List <string> idlist = new List <string>();

            xapDataList.ToList().ForEach(p => {
                if (!idlist.Contains(p.Id_srv))
                {
                    OrWfExDeptParamDTO param = new OrWfExDeptParamDTO();
                    param.Eu_wftp            = Convert.ToInt32(EnumFlow.NULL);               //    0执行与物资   1执行科室 2物资流向
                    param.Code_entp          = ent4BannerDTO.Code_entp;                      //     就诊类型
                    param.Id_dept_ns         = ent4BannerDTO.Id_dep_nur;                     //就诊护理病区
                    param.Id_dept_or         = UserManager.getInstance().CurrentDept.Id_dep; //开单科室
                    param.Id_dept_en         = ent4BannerDTO.Id_dep_phy;                     //id_dept_en;//就诊科室
                    param.Id_srv             = p.Id_srv;                                     //服务
                    param.Sd_srvtp           = p.Sd_srvtp;                                   //服务类型sd
                    param.Id_srvca           = p.Id_srvca;                                   //服务分类
                    //dto.Innercode_srvca = "";//服务分类内码
                    // param.Id_mm = emsordrug.Id_mm; 传物品id_mm没有用
                    param.Id_usage       = id_route; //用法
                    OrWfDeptInfoDTO deps = new ICiOrdQryServiceImpl().getExeDepts4CiOrSrvN(param);
                    if (deps != null && deps.Orwfexedepts != null && deps.Orwfexedepts.Count != 0)
                    {
                        xapDataList.ToList().ForEach(drug => {
                            if (drug.Id_srv == p.Id_srv)
                            {
                                drug.Id_mp_dep   = (deps.Orwfexedepts[0] as OrWfExDeptDTO).Id_dept;
                                drug.Name_mp_dep = (deps.Orwfexedepts[0] as OrWfExDeptDTO).Name_dept;
                                if (deps != null && deps.Pharmwfwhdepts != null && deps.Pharmwfwhdepts.Count > 0)
                                {
                                    drug.Id_dep_wh   = (deps.Pharmwfwhdepts[0] as OrWfExDeptDTO).Id_dept;
                                    drug.Name_dep_wh = (deps.Pharmwfwhdepts[0] as OrWfExDeptDTO).Name_dept;
                                }
                                drug.Str_mp_dep_ids = deps.Id_mp_depts;
                                drug.Str_wh_dep_ids = deps.Id_dept_whs;
                            }
                        });
                    }

                    idlist.Add(p.Id_srv);
                }
            });
        }
Example #7
0
        private OrWfExDeptParamDTO getwfparam(AddFeeDTO fee, OrConfirm or)
        {
            var dto = new OrWfExDeptParamDTO();

            dto.Eu_wftp    = Convert.ToInt32(EnumFlow.NULL); //    0执行与物资   1执行科室 2物资流向
            dto.Code_entp  = or.Code_entp;                   //     就诊类型
            dto.Id_dept_ns = or.Id_dep_nur;                  //就诊护理病区
            dto.Id_dept_or = or.Id_dep_phy;                  //开单科室
            // dto.Id_dept_en = or.id; //id_dept_en;//就诊科室
            dto.Id_srv     = fee.Id_srv;                     //服务
            dto.Sd_srvtp   = fee.Sd_srvtp;                   //服务类型sd
            dto.Id_srvca   = fee.Id_srvca;                   //服务分类
            dto.Recurstr   = or.Fg_long.ToString();          //长临标志
            dto.Id_dept_ex = or.Id_dep_mp;
            //dto.Innercode_srvca =;//服务分类内码
            //  dto.Id_mm = id_mm;          // 服务选取的关联物品
            //  dto.Id_usage = ;   //用法
            //dto.Weekno = "2";//生效日期时间相关的 周#与时间
            dto.Timestr = new DateTime();
            //dto.Reserv1 = "";  //暂时无用途   //预留项
            //dto.Reserv2 = "";  //暂时无用途
            //dto.Reserv3 = "";  //套内项目时: BD套内项目的科室计算方式sd值,BD套内项目的固定执行科室ID值,所属套的执行科室ID值
            return(dto);
        }
Example #8
0
 public OrWfExDeptDTO[] getMpDept(OrWfExDeptParamDTO pam)
 {
     return(service.getMpDept(pam));
 }