Example #1
0
        /// <summary>
        /// 获取公用代码字典列表
        /// </summary>
        /// <param name="_TreeNodeFilter">通用的树结构数据检索器</param>
        /// <returns></returns>
        public List <GI_CodeDict> GetAll(TreeNodeFilter _TreeNodeFilter)
        {
            string filter = "1=1";

            //关键词搜索
            if (!string.IsNullOrWhiteSpace(_TreeNodeFilter.keyword))
            {
                filter += string.Format(" and (DICTNAME like '%{0}%' or DICTNAMEEN like '%{0}%' or DictCode='{0}' or SPELLCODE like '%{1}%')", _TreeNodeFilter.keyword, _TreeNodeFilter.keyword.ToUpper());
            }
            //根据父类的英文名搜索子类
            if (!string.IsNullOrWhiteSpace(_TreeNodeFilter.ParentDictNameEN))
            {
                filter += string.Format(" and ParentID in (select DictID from GI_CODEDICT where DictNameEN = '{0}')", _TreeNodeFilter.ParentDictNameEN);
            }

            filter += _TreeNodeFilter.GetQueryString();
            List <GI_CodeDict> list = EntityOperate <GI_CodeDict> .GetEntityList(filter, "PARENTID,DISPLAYSORT", true);

            if (list == null || list.Count <= 0)
            {
                return(new List <GI_CodeDict>());
            }
            list.ForEach((f) =>
            {
                f.IsLastName  = f.ISLast == 0 ? "非未级" : "是未级";
                f.IsCanceName = f.IsCance != 1 ? "正常" : "作废";
            });
            return(list);
        }
Example #2
0
        /// <summary>
        /// 获取系统功能定义数据列表
        /// </summary>
        /// <param name="_TreeNodeFilter">通用的树结构数据检索器</param>
        /// <returns></returns>
        public List <V_FunInfo> GetAll(TreeNodeFilter _TreeNodeFilter)
        {
            string filter = "1=1";

            if (!string.IsNullOrWhiteSpace(_TreeNodeFilter.keyword))
            {
                filter += string.Format(" and FUNNAME like '%{0}%'", _TreeNodeFilter.keyword);
            }
            if ((_TreeNodeFilter.ParentID + "").Contains("MODULE_"))
            {
                filter += " and SYSID = '" + _TreeNodeFilter.ParentID.Replace("MODULE_", "") + "'";
            }
            else
            {
                filter += _TreeNodeFilter.GetQueryString();
            }
            List <V_FunInfo> list = EntityOperate <V_FunInfo> .GetEntityList(filter, "PARENTID,DISPLAYSORT");

            if (list == null || list.Count <= 0)
            {
                return(new List <V_FunInfo>());
            }
            list.ForEach((f) =>
            {
                f.IsLastName = f.IsLast == 0 ? "非未级" : "是未级";
                f.IsShowName = f.IsShow == 0 ? "不显示" : "显示";
            });
            return(list);
        }
Example #3
0
        /// <summary>
        /// 保存反馈单和反馈单数据
        /// </summary>
        /// <param name="fkdModel"></param>
        /// <param name="fkdSourceModel"></param>
        /// <returns></returns>
        public void Save(BUS_YGDCFKD fkdModel, BUS_YGDCFKD_SOURCE fkdSourceModel)
        {
            if (string.IsNullOrWhiteSpace(fkdModel.FKDID))
            {
                fkdModel.FKDID = CommonService.GetPrimaryId(new GI_SerialInfo()
                {
                    Name = "BUS_YGDCFKD", ColumnName = "FKDID", OrganID = fkdModel.ORGANID
                }) + "";
                fkdModel.SaveModelM();
            }

            if (string.IsNullOrWhiteSpace(fkdSourceModel.FKDSOURCEID))
            {
                fkdSourceModel.FKDSOURCEID = CommonService.GetPrimaryId(new GI_SerialInfo()
                {
                    Name = "BUS_YGDCFKD_SOURCE", ColumnName = "FKDSOURCEID", OrganID = fkdSourceModel.ORGANID
                }) + "";
                fkdSourceModel.FKDID = fkdModel.FKDID;
                fkdSourceModel.SaveModelM();
            }
            else
            {
                var model = EntityOperate <BUS_YGDCFKD_SOURCE> .GetEntityById(fkdSourceModel.FKDSOURCEID, "FKDSOURCEID");

                model.CZWT   = fkdSourceModel.CZWT;
                model.XCZP   = fkdSourceModel.XCZP;
                model.ZGJY   = fkdSourceModel.ZGJY;
                model.KSYYFX = fkdSourceModel.KSYYFX;
                model.KSZGCS = fkdSourceModel.KSZGCS;
                model.XGPJ   = fkdSourceModel.XGPJ;
                model.BZ     = fkdSourceModel.BZ;
                model.UpdateM("FKDSOURCEID");
            }
        }
Example #4
0
        public string SetWwcXm(string dw, int pysj, string xdsj, string sql, string jlmc)
        {
            string wwcxm  = "";
            string bxwcsj = "";

            switch (dw)
            {
            case "d":
                bxwcsj = Convert.ToDateTime(xdsj).AddDays(pysj).ToString("yyyy-MM-dd HH:mm:ss");
                break;

            case "h":
                bxwcsj = Convert.ToDateTime(xdsj).AddHours(pysj).ToString("yyyy-MM-dd HH:mm:ss");
                break;

            case "m":
                bxwcsj = Convert.ToDateTime(xdsj).AddMinutes(pysj).ToString("yyyy-MM-dd HH:mm:ss");
                break;
            }
            DataSet dsWs = EntityOperate <object> .GetDataSetBySql(sql);

            if (dsWs.Tables[0].Rows.Count <= 0)
            {
                if (System.DateTime.Now > Convert.ToDateTime(bxwcsj))
                {
                    wwcxm += "【应在" + bxwcsj + "之前完成的" + jlmc + "超时未完成】<br/>";
                }
            }
            else if (Convert.ToDateTime(dsWs.Tables[0].Rows[0]["jlsj"].ToString()) > Convert.ToDateTime(bxwcsj))
            {
                wwcxm += "<font style=\"color:red\">【应在" + bxwcsj + "之前完成的" + jlmc + "超时完成,实际完成时间" + dsWs.Tables[0].Rows[0]["jlsj"].ToString() + "】</font><br/>";
            }
            dsWs.Clear();
            return(wwcxm);
        }
        /// <summary>
        /// 根据筛选条件查询病人诊断数据列表
        /// </summary>
        /// <param name="iFilter"></param>
        /// <returns></returns>
        public List <CD_PatientDiagnosis> GetAll(PatientDiagnosisFilter iFilter)
        {
            string filter = "1=1";

            if (!string.IsNullOrWhiteSpace(iFilter.keyword))
            {
                filter += string.Format(" and DiagnosisName like '%{0}%'", iFilter.keyword);
            }
            filter += iFilter.GetQueryString();
            List <CD_PatientDiagnosis> list = EntityOperate <CD_PatientDiagnosis> .GetEntityList(filter, "SortOrder,OrganID");

            if (list == null || list.Count <= 0)
            {
                return(new List <CD_PatientDiagnosis>());
            }
            list.ForEach((f) =>
            {
                var Inpatient   = new InpatientService().GetInfoByInpatientId(f.InpatientId);
                f.InpatientName = Inpatient != null ? Inpatient.Name : "";//病人名字
                if (f.DiagnosisFlag != null)
                {
                    f.DiagnosisFlagName = codedictService.GetCodeDictByDictCodeAndEName(f.DiagnosisFlag.ToString(), "DiagnosisFlag").DictName;
                }                                                                                              //确诊标志中文
                GI_UserInfo RecordUser = EntityOperate <GI_UserInfo> .GetEntityById(f.RecordUserId, "USERID"); //记录医生实体类
                f.RecordUserESign      = RecordUser?.ESign;                                                    //电子签名
            });
            return(list);
        }
Example #6
0
        public List <GI_RoleMember> GetUserGroup(string userid)
        {
            string filter = "USERID = '" + userid + "'";
            List <GI_RoleMember> list_ROLEMEMBER = EntityOperate <GI_RoleMember> .GetEntityList(filter);

            return(list_ROLEMEMBER);
        }
Example #7
0
        /// <summary>
        /// 根据ID获得用户实体类
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        public GI_UserInfo GetInfoById(string userid)
        {
            GI_UserInfo info = EntityOperate <GI_UserInfo> .GetEntityById(userid, "USERID");

            //职位
            GI_CodeDict job = new CodeDictService().GetCodeDictByDictCodeAndEName(info.Job, "Job");

            info.JobName = job == null ? "" : job.DictName;
            //职称
            GI_CodeDict userPosition = new CodeDictService().GetCodeDictByDictCodeAndEName(info.UserPosition, "Position");

            info.UserPositionName = userPosition == null ? "" : userPosition.DictName;
            //职务级别
            GI_CodeDict joblevel = new CodeDictService().GetCodeDictByDictCodeAndEName(info.JobLevel, "JobLevel");

            info.JobLevelName = joblevel == null ? "" : joblevel.DictName;

            #region 科室和病区组
            List <AI_DeptInfo> userDepts = deptinfoservice.GetDeptInfoByUserId(info.UserID);
            //科室
            info.DpetList = (from u in userDepts where u.IsInpatient == 0 select u).ToList();
            //病区
            info.InpatientList = (from u in userDepts where u.IsInpatient == 1 select u).ToList();
            #endregion
            //用户医疗组
            info.MedicalList = new DoctorGroupService().GetDoctorGroupByUserId(info.UserID);

            return(info);
        }
Example #8
0
        public string SaveConsultationInfo()
        {
            return(base.ExecuteActionJsonResult("会诊单信息保存", () =>
            {
                CD_Consultation entity = base.GetPageData <CD_Consultation>(0);
                if (!string.IsNullOrWhiteSpace(entity.InpatientId))
                {
                    CD_Inpatient inpatient = EntityOperate <CD_Inpatient> .GetEntityById(Request["InpatientId"], "InpatientId");
                    if (string.IsNullOrWhiteSpace(entity.ConsultationId) || entity.ConsultationId == "null")
                    {
                        entity.ConsultationState = "1";
                        entity.DeptId = inpatient.CurrentDeptID;
                        entity.WardId = inpatient.CurrentWardID;
                        entity.RequesterCode = UserTokenManager.GetUserToken(Request["token"]).UserId;
                        GI_UserInfo user = EntityOperate <GI_UserInfo> .GetEntityById(entity.RequesterCode, "USERID");
                        entity.RequestDepartCode = user.DpetID;
                        entity.OrganID = UserTokenManager.GetUserToken(Request["token"]).ORGANID;
                    }

                    entity.Del = 0;
                    service.SaveInfo(entity);
                    msgHub hub = new msgHub();
                    // hub.SendGroup(entity.ApplyDepartCode, "Con", "",  "");
                }
                return new WebApi_Result();
            }));
        }
Example #9
0
        /// <summary>
        /// 获取用户相关的功能定义集合
        /// </summary>
        /// <param name="userID">用户ID</param>
        /// <param name="SYSID">模块ID</param>
        /// <param name="funLevel">功能定义级别</param>
        /// <returns></returns>
        public List <GI_FunInfo> GetUserFunInfo(string userID, string SYSID, int funLevel)
        {
            string filter = " 1=1 ";

            if (!string.IsNullOrWhiteSpace(userID))
            {
                filter += " and FUNID in (select FUNID from GI_ROLERIGHT where ROLEID in (select ROLEID from GI_ROLEMEMBER where userid = '" + userID + "')) ";
            }
            if (!string.IsNullOrWhiteSpace(SYSID))
            {
                filter += " and SYSID = '" + SYSID + "' ";
            }
            else
            {
                filter += " and 1 = 2 ";
            }
            if (funLevel > -1)
            {
                filter += " and funLevel = " + funLevel;
            }
            //filter += " and SYSID in (select SYSID  from GI_USERSYS where userid = '" + userid + "') ";
            List <GI_FunInfo> list = EntityOperate <GI_FunInfo> .GetEntityList(filter, "DISPLAYSORT,funid");

            return(list);
        }
Example #10
0
        /// <summary>
        /// 获取单一树节点下的所有子节点,用于动态加载
        /// </summary>
        /// <param name="parentID">父级ID</param>
        /// <param name="roleID">用户分组ID</param>
        /// <returns></returns>
        public List <TreeEntityForLayui> GetSingleTreeNode(string parentID, string roleID)
        {
            List <TreeEntityForLayui> retValue = new List <TreeEntityForLayui>();
            List <GI_FunInfo>         list     = EntityOperate <GI_FunInfo> .GetEntityList(" PARENTID = '" + parentID + "'", "DISPLAYSORT").Where(f => f.IsCance != 1).ToList();

            list.Where(s => s.ParentID == parentID).ToList().ForEach((f) =>
            {
                TreeEntityForLayui tree = new TreeEntityForLayui()
                {
                    name = f.FUNName, id = f.FUNID, pid = f.ParentID, remark = f.SYSID
                };
                if (f.IsLast != 1)//如果不是末级,则加子级
                {
                    tree.children = new List <TreeEntityForLayui>();
                }
                retValue.Add(tree);
            });
            if (!string.IsNullOrWhiteSpace(roleID))
            {
                List <GI_RoleRight> list_ROLERIGHT = EntityOperate <GI_RoleRight> .GetEntityList("ROLEID = '" + roleID + "'");

                if (list_ROLERIGHT != null && list_ROLERIGHT.Count > 0)
                {
                    retValue.ForEach(e =>
                    {
                        if (list_ROLERIGHT.Where(f => f.FUNID == e.id).Count() > 0)
                        {
                            e.@checked = true;
                        }
                    });
                }
            }
            return(retValue);
        }
Example #11
0
        /// <summary>
        /// 增加和保存
        /// </summary>
        /// <param name="info"></param>
        public void SaveInfo(CN_TemperatureChart info)
        {
            //如果体温单id不为空则修改
            if (!string.IsNullOrWhiteSpace(info.ChartId) && info.ChartId != "null")
            {
                info.UpdaterTime = DateTime.Now;
                info.CreateTime  = null;
                info.UpdateM("ChartId");
            }
            else
            {
                //如果体温单id为空,但是病人id不为空则保存
                if (!string.IsNullOrWhiteSpace(info.InpatientId) && info.InpatientId != "null")
                {
                    //获得病人
                    CD_Inpatient inpatient = EntityOperate <CD_Inpatient> .GetEntityById(info.InpatientId, "InpatientId");

                    //获得新的体温单id
                    info.ChartId = CommonService.GetPrimaryId(new GI_SerialInfo()
                    {
                        Name = "CN_TemperatureChart", ColumnName = "ChartId", OrganID = info.OrganID
                    }) + "";
                    info.DepartmentId = inpatient.CurrentDeptID; //当前科室
                    info.WardId       = inpatient.CurrentWardID; //当前病区
                    info.Creator      = info.Updater;            //添加的情况下创建医生就是修改医生
                    info.CreateTime   = DateTime.Now;            //添加情况下
                    info.UpdaterTime  = DateTime.Now;
                    info.BedNum       = inpatient.BedNumber;     //床号
                    info.SaveModelM();
                }
            }
        }
        /// <summary>
        /// 排序
        /// </summary>
        /// <param name="entity">排序实体</param>
        /// <param name="orderType">上移:up,下移down</param>
        /// <returns></returns>
        public Boolean Order(CD_PatientDiagnosis entity, string orderType)
        {
            string iFilter = "";

            switch (orderType)
            {
            case "up":
                iFilter = " and sortorder<" + entity.SortOrder + "  order by sortorder desc";
                break;

            case "down":
                iFilter = " and sortorder>" + entity.SortOrder + "  order by sortorder";
                break;

            default:
                return(false);
            }
            string sql = string.Format("select a.*,rownum  from (select * from CD_PatientDiagnosis where 1=1 and nvl(DEL,0) <> 1 {0}) a where rownum=1", iFilter);
            CD_PatientDiagnosis other = EntityOperate <CD_PatientDiagnosis> .GetEntityBySQL(sql);

            if (other == null)
            {
                return(false);
            }
            //互换
            int SortOrder = other.SortOrder;

            other.SortOrder  = entity.SortOrder;
            entity.SortOrder = SortOrder;
            SaveInfo(entity);
            SaveInfo(other);
            return(true);
        }
Example #13
0
 /// <summary>
 /// 获取所有树节点,用于一次性加载全部节点
 /// </summary>
 /// <returns></returns>
 public string GetTreeNode()
 {
     return(base.ExecuteActionJsonResult("获取结构化模板树结构", () =>
     {
         int TemplateType = 0;
         if (!int.TryParse(Request["TemplateType"], out TemplateType))
         {
             TemplateType = 10;
         }                                                                                   //如果没有IsCategory参数的话,默认显示全部
         List <V_FormEmrTemplate> list = EntityOperate <V_FormEmrTemplate> .GetEntityList("TemplateType=" + TemplateType).Where(f => f.Del != 1).OrderBy(f => f.TemplateId).ToList();
         List <TreeEntityForLayui> returnValue = new List <TreeEntityForLayui>();
         //returnValue.Add(new TreeEntityForLayui() { name = "可用同意书", id = "0", pid = "", open = true, children = service.CreateTreeNode(list, "0") });
         List <TreeEntityForLayui> secChild = new List <TreeEntityForLayui>();
         secChild.Add(new TreeEntityForLayui()
         {
             name = "已签同意书", id = "Signed", pid = "all", open = true, children = formEmrService.GetSingleTreeNode("Signed", Request["InpatientId"], TemplateType)
         });
         secChild.Add(new TreeEntityForLayui()
         {
             name = "可用同意书", id = "CanUse", pid = "all", open = true, children = formEmrTemplateService.CreateTreeNode(list, "0")
         });
         returnValue.Add(new TreeEntityForLayui()
         {
             name = "同意书", id = "all", pid = "", open = true, children = secChild
         });
         return new WebApi_Result()
         {
             data = returnValue, count = list.Count
         };
     }));
 }
Example #14
0
        /// <summary>
        /// 获取与用户分组相关的系统功能定义树结构
        /// </summary>
        /// <returns></returns>
        public string GetRoleTreeNode()
        {
            return(base.ExecuteActionJsonResult("获取系统功能定义树结构", () =>
            {
                List <GI_FunInfo> list = EntityOperate <GI_FunInfo> .GetEntityList("", "DISPLAYSORT").Where(f => f.IsCance != 1).ToList();
                List <TreeEntityForLayui> returnValue = new List <TreeEntityForLayui>();

                List <GI_RoleRight> listROLERIGHT = new List <GI_RoleRight>();
                if (!string.IsNullOrWhiteSpace(Request["RoleID"]))
                {
                    listROLERIGHT = EntityOperate <GI_RoleRight> .GetEntityList("RoleID = '" + Request["RoleID"] + "'");
                }
                var childrenNode = new List <TreeEntityForLayui>();
                List <GI_SYSAPPINFO> listSYSAPPINFO = EntityOperate <GI_SYSAPPINFO> .GetEntityList("", "DISPLAYSORT").Where(f => f.IsCance != 1).ToList();
                listSYSAPPINFO.ForEach((f) =>
                {
                    TreeEntityForLayui treeEntity = new TreeEntityForLayui()
                    {
                        name = f.SYSName, id = "MODULE_" + f.SYSID, pid = "MODULE_0", open = true, children = funInfoService.GetRoleTreeNodeBySYSID(list, listROLERIGHT, f.SYSID), @checked = listROLERIGHT.Where(e => e.FUNID == "MODULE_" + f.SYSID).Count() > 0
                    };
                    childrenNode.Add(treeEntity);
                });
                returnValue.Add(new TreeEntityForLayui()
                {
                    name = "所有系统功能定义", id = "0", pid = "", open = true, children = childrenNode
                });
                return new WebApi_Result()
                {
                    data = returnValue, count = list.Count
                };
            }));
        }
Example #15
0
        /// <summary>
        /// 获取查询列表
        /// </summary>
        /// <param name="_TreeNodeFilter">过滤条件</param>
        /// <returns></returns>
        public List <V_FormEmrTemplate> GetAll(TreeNodeFilter _TreeNodeFilter)
        {
            string filter = "1=1";

            if (!string.IsNullOrWhiteSpace(_TreeNodeFilter.ParentID))
            {
                filter += string.Format("  and ParentId='{0}'", _TreeNodeFilter.ParentID);
            }
            if (!string.IsNullOrWhiteSpace(_TreeNodeFilter.keyword))
            {
                filter += string.Format(" and (TemplateName like '%{0}%') ", _TreeNodeFilter.keyword);
            }
            List <V_FormEmrTemplate> list = EntityOperate <V_FormEmrTemplate> .GetEntityList(filter, "ParentId,TemplateId");

            if (list == null || list.Count <= 0)
            {
                return(new List <V_FormEmrTemplate>());
            }
            list.ForEach((f) =>
            {
                f.DelName = f.Del != 1 ? "正常" : "作废";
                //f.IsCategoryName = f.IsCategory != 1 ? "非末级" : "末级";
            });
            return(list);
        }
Example #16
0
        public int GetConsulationCountByUser(string userID)
        {
            string filter = "1=1";

            if (!string.IsNullOrWhiteSpace(userID))
            {
                GI_UserInfo user = EntityOperate <GI_UserInfo> .GetEntityById(userID, "USERID");

                if (user != null)
                {
                    filter += string.Format(" and ( ApplyDoctorCode = '{0}'", userID);
                    filter += string.Format(" or ( ApplyDepartCode = '{0}' and ApplyDoctorCode is null ))", user.DpetID);
                    //      filter += string.Format(" and ApplyWardCode = '{0}'", user.InpatientID);
                }
            }
            DataTable dt = dataProvider.GetDataSet("select count(consultationid) as cnt  from CD_Consultation a where del=0 and consultationstate = 1 and " + filter).Tables[0];

            if (dt.Rows.Count > 0)
            {
                return(Extend.HandleNull(dt.Rows[0]["cnt"], 0));
            }
            else
            {
                return(0);
            }
        }
Example #17
0
        /// <summary>
        /// 获取查询列表
        /// </summary>
        /// <param name="_TreeNodeFilter">过滤条件</param>
        /// <returns></returns>
        public List <AI_DeptInfo> GetAll(TreeNodeFilter _TreeNodeFilter)
        {
            string filter = "1=1";

            if (!string.IsNullOrWhiteSpace(_TreeNodeFilter.ParentID))
            {
                filter += string.Format("  and ParentID='{0}'", _TreeNodeFilter.ParentID);
            }
            if (!string.IsNullOrWhiteSpace(_TreeNodeFilter.keyword))
            {
                filter += string.Format(" and (DEPTNAME like '%{0}%' or SpellCode like '%{0}%') ", _TreeNodeFilter.keyword);
            }
            List <AI_DeptInfo> list = EntityOperate <AI_DeptInfo> .GetEntityList(filter, "ParentID,DeptID");

            if (list == null || list.Count <= 0)
            {
                return(new List <AI_DeptInfo>());
            }
            list.ForEach((f) =>
            {
                f.IsInpatientName = f.IsInpatient == 0 ? "不是" : "是";
                f.IsCanceName     = f.IsCance != 1 ? "正常" : "作废";
            });
            return(list);
        }
Example #18
0
        /// <summary>
        /// 获取系统分组权限
        /// </summary>
        /// <param name="roleid">分组ID</param>
        /// <returns>分组权限列表</returns>
        public List <GI_RoleRight> GetRoleRight(string roleid)
        {
            string filter = "ROLEID = '" + roleid + "'";
            List <GI_RoleRight> list_ROLERIGHT = EntityOperate <GI_RoleRight> .GetEntityList(filter);

            return(list_ROLERIGHT);
        }
Example #19
0
        /// <summary>
        /// 通过字典编码和父类ID,获取相应的字典名称。
        /// </summary>
        /// <param name="parentID">父类ID</param>
        /// <param name="dictCode">字典编码</param>
        /// <returns></returns>
        public static string GetDictNameByID(string parentID, string dictCode)
        {
            string retValue = "";

            retValue = EntityOperate <string> .ExecSqlString(string.Format("select DictName from GI_CODEDICT where ParentID = '{0}' and DictCode = '{1}'", parentID, dictCode)) + "";

            return(retValue);
        }
 /// <summary>
 /// 删除病历
 /// </summary>
 /// <returns></returns>
 public string Delete()
 {
     return(base.ExecuteActionJsonResult("删除信息", () =>
     {
         EntityOperate <CD_HospitalRecord> .DeleteById(Request["InpatientId"], "InpatientId");
         return new WebApi_Result();
     }));
 }
Example #21
0
 /// <summary>
 /// 删除会诊单
 /// </summary>
 /// <returns></returns>
 public string Delete()
 {
     return(base.ExecuteActionJsonResult("删除信息", () =>
     {
         EntityOperate <CD_Consultation> .DeleteById(Request["ConsultationId"], "ConsultationId");
         return new WebApi_Result();
     }));
 }
 /// <summary>
 /// 排序
 /// </summary>
 /// <returns></returns>
 public string Order()
 {
     return(base.ExecuteActionJsonResult("排序上移或下移", () =>
     {
         CD_PatientDiagnosis entity = EntityOperate <CD_PatientDiagnosis> .GetEntityById(Request["DiagnosisId"], "DiagnosisId");
         patientDiagnosisService.Order(entity, Request["orderType"]);
         return new WebApi_Result();
     }));
 }
Example #23
0
 public string Delete()
 {
     return(base.ExecuteActionJsonResult("删除分组信息", () =>
     {
         EntityOperate <GI_UserInfo> .DeleteById(Request["RoleID"], "ROLEID");
         return new WebApi_Result()
         {
         };
     }));
 }
Example #24
0
 public string Delete()
 {
     return(base.ExecuteActionJsonResult("删除信息", () =>
     {
         EntityOperate <GI_CodeDict> .DeleteById(Request["DICTID"], "DICTID");
         return new WebApi_Result()
         {
         };
     }));
 }
Example #25
0
        /// <summary>
        /// 通过病区判别获得科室或者病区
        /// </summary>
        /// <param name="IsInpatient">0科室,1病区</param>
        /// <returns></returns>
        public List <AI_DeptInfo> GetDeptInfoByIsInpatient(string IsInpatient, string keyword = "")
        {
            //如果IsInpatient传空,则查询所有的数据
            string filter = string.IsNullOrWhiteSpace(IsInpatient)?"": " IsInpatient=" + IsInpatient + " and ";

            filter += string.IsNullOrWhiteSpace(keyword) ? "" : " (DeptName like '%" + keyword + "%' or SpellCode like '%" + keyword.ToUpper() + "%') and";
            List <AI_DeptInfo> list = EntityOperate <AI_DeptInfo> .GetEntityList(" " + filter + " IsCance=0 ", "DeptID");

            return(list);
        }
Example #26
0
 public string Delete()
 {
     return(base.ExecuteActionJsonResult("删除信息", () =>
     {
         EntityOperate <GI_SYSAPPINFO> .DeleteById(Request["SYSID"], "SYSID");
         return new WebApi_Result()
         {
         };
     }));
 }
 /// <summary>
 /// 删除诊断信息
 /// </summary>
 /// <returns></returns>
 public string Delete()
 {
     return(base.ExecuteActionJsonResult("删除诊断信息", () =>
     {
         EntityOperate <CD_PatientDiagnosis> .DeleteById(Request["DiagnosisId"], "DiagnosisId");
         return new WebApi_Result()
         {
         };
     }));
 }
Example #28
0
 public string Delete()
 {
     return(base.ExecuteActionJsonResult("删除表单病历信息", () =>
     {
         EntityOperate <CD_FormEmr> .DeleteById(Request["FormEmrId"], "FormEmrId");
         return new WebApi_Result()
         {
         };
     }));
 }
Example #29
0
 public string Delete()
 {
     return(base.ExecuteActionJsonResult("删除信息", () =>
     {
         EntityOperate <GI_OrganInfo> .DeleteById(Request["OrganID"], "ORGANID");
         return new WebApi_Result()
         {
         };
     }));
 }
Example #30
0
 public string Delete()
 {
     return(base.ExecuteActionJsonResult("删除信息", () =>
     {
         EntityOperate <BUS_WASHHANDOPERATION> .DeleteById(Request["WHOID"], "WHOID");
         return new WebApi_Result()
         {
         };
     }));
 }