当前位置: 首页>>代码示例>>C#>>正文


C# DataConnection.Connect方法代码示例

本文整理汇总了C#中WebService.CommonLibrary.DataConnection.Connect方法的典型用法代码示例。如果您正苦于以下问题:C# DataConnection.Connect方法的具体用法?C# DataConnection.Connect怎么用?C# DataConnection.Connect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WebService.CommonLibrary.DataConnection的用法示例。


在下文中一共展示了DataConnection.Connect方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetUntreatedAlertAmount

        //GetUntreatedAlertAmount GL 2014-12-01 根据用户ID,获取患者未处理警报数
        public static int GetUntreatedAlertAmount(DataConnection pclsCache, string PatientId)
        {
            int UntreatedAlertAmount = 0;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return UntreatedAlertAmount;

                }
                UntreatedAlertAmount = (int)Wn.TrnAlertRecord.GetUntreatedAlertAmount(pclsCache.CacheConnectionObject, PatientId);
                return UntreatedAlertAmount;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "WnTrnAlertRecord.GetUntreatedAlertAmount", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return UntreatedAlertAmount;
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
开发者ID:luyao2211,项目名称:WebService,代码行数:26,代码来源:WnTrnAlertRecord.cs

示例2: SetData

        //SetData TDY 2014-12-1 WF 2015-07-07
        public static bool SetData(DataConnection pclsCache, int piType, string piCode, string piTypeName, string piName, string piInputCode, string piDescription, string revUserId, string TerminalName, string TerminalIP, int DeviceType)
        {
            bool IsSaved = false;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return IsSaved;

                }
                int flag = (int)Cm.MstDivision.SetData(pclsCache.CacheConnectionObject, piType, piCode,  piTypeName, piName, piInputCode, piDescription, revUserId, TerminalName, TerminalIP, DeviceType);
                if (flag == 1)
                {
                    IsSaved = true;
                }
                return IsSaved;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "CmMstDivision.SetData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return IsSaved;
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
开发者ID:luyao2211,项目名称:WebService,代码行数:30,代码来源:CmMstDivision.cs

示例3: DeleteData

        //DeleteData YDS 2014-12-01
        public static int DeleteData(DataConnection pclsCache, string AlertItemCode)
        {
            int ret = 0;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return ret;

                }
                ret = (int)Wn.MstBasicAlert.DeleteData(pclsCache.CacheConnectionObject, AlertItemCode);
                return ret;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "删除失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "WnMstBasicAlert.DeleteData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return ret;
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
开发者ID:luyao2211,项目名称:WebService,代码行数:26,代码来源:WnMstBasicAlert.cs

示例4: SetData

        //SetData TDY 2014-12-1
        public static bool SetData(DataConnection pclsCache, string UserId, int SortNo, string AssessmentType, string AssessmentName, DateTime AssessmentTime, string Result, string revUserId, string TerminalName, string TerminalIP, int DeviceType)
        {
            bool IsSaved = false;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return IsSaved;

                }
                int flag = (int)Ps.TreatmentIndicators.SetData(pclsCache.CacheConnectionObject, UserId, SortNo, AssessmentType, AssessmentName, AssessmentTime, Result, revUserId, TerminalName, TerminalIP, DeviceType);
                if (flag == 1)
                {
                    IsSaved = true;
                }
                return IsSaved;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "PsTreatmentIndicators.SetData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return IsSaved;
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
开发者ID:luyao2211,项目名称:WebService,代码行数:30,代码来源:PsTreatmentIndicators.cs

示例5: GetResult

        //GetResult SYF 2015-07-07 
        public static string GetResult(DataConnection pclsCache, string UserId, int SortNo)
        {
            string Result = "";
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return "";

                }
                Result = Ps.TreatmentIndicators.GetResult(pclsCache.CacheConnectionObject, UserId, SortNo);
                return Result;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "PsTreatmentIndicators.GetResult", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return Result;
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
开发者ID:luyao2211,项目名称:WebService,代码行数:26,代码来源:PsTreatmentIndicators.cs

示例6: GetCareLevel

        //GetCareLevel 根据模块编码和患者ID获取关注等级 YDS 2014-12-01 ZAM 更新ModuleType类型int改为string 与2014-12-08
        public static int GetCareLevel(DataConnection pclsCache, string ModuleType, string PatientId)
        {
            int Level = 1;  //ZAM 2015-1-13 "尚未关注"
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return Level;

                }
                Level = (int)Ps.SpecialList.GetCareLevel(pclsCache.CacheConnectionObject, ModuleType, PatientId);
                return Level;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "PsSpecialList.GetCareLevel", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return Level;
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
开发者ID:luyao2211,项目名称:WebService,代码行数:26,代码来源:PsSpecialList.cs

示例7: DeleteData

        //DeleteData CSQ 2015-01-06
        public static int DeleteData(DataConnection pclsCache, string DoctorId, string CategoryCode, string Value)
        {
            int ret = 0;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return ret;

                }
                ret = (int)Ps.DoctorInfoDetail.DeleteData(pclsCache.CacheConnectionObject, DoctorId, CategoryCode, Value);
                return ret;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "PsDoctorInfoDetail.DeleteData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return ret;
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
开发者ID:wf19920502,项目名称:WebService,代码行数:26,代码来源:PsDoctorInfoDetail.cs

示例8: SetData

        //SetData ZAM 2014-11-26
        public static bool SetData(DataConnection pclsCache, string UserId, string UserName, string Password, string Class, string PatientClass, int DoctorClass, int StartDate, int EndDate, DateTime LastLoginDateTime, string revUserId, string TerminalName, string TerminalIP, int DeviceType)
        {
            bool IsSaved = false;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return IsSaved;

                }
                int flag = (int)Cm.MstUser.SetData(pclsCache.CacheConnectionObject, UserId, UserName, Password, Class, PatientClass, DoctorClass, StartDate, EndDate, LastLoginDateTime, revUserId, TerminalName, TerminalIP, DeviceType);
                if (flag == 1)
                {
                    IsSaved = true;
                }
                return IsSaved;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "CmMstUser.SetData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return IsSaved;
            }
            finally
            {
                pclsCache.DisConnect();
            }


        }
开发者ID:luyao2211,项目名称:WebService,代码行数:32,代码来源:CmMstUser.cs

示例9: SetData

        //SetData  LS 2014-12-1
        public static bool SetData(DataConnection pclsCache, string Doctor, string CategoryCode, string ItemCode, int ItemSeq, string Value, string Description, int SortNo, string piUserId, string piTerminalName, string piTerminalIP, int piDeviceType)
        {
            bool IsSaved = false;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return IsSaved;

                }
                int flag = (int)Ps.DoctorInfoDetail.SetData(pclsCache.CacheConnectionObject, Doctor, CategoryCode, ItemCode, ItemSeq, Value, Description, SortNo, piUserId, piTerminalName, piTerminalIP, piDeviceType);
                if (flag == 1)
                {
                    IsSaved = true;
                }
                return IsSaved;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "PsDoctorInfoDetail.SetData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return IsSaved;
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
开发者ID:luyao2211,项目名称:WebService,代码行数:30,代码来源:PsDoctorInfoDetail.cs

示例10: SetData

        //SetData  LS 2014-12-1
        public static bool SetData(DataConnection pclsCache, string UserId, int VisitId, int VisitType, int AdmissionDate, int DischargeDate, string HospitalCode, string Department, string piUserId, string piTerminalName, string piTerminalIP, int piDeviceType)
        {
            bool IsSaved = false;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return IsSaved;

                }
                int flag = (int)Ps.ClinicalInfo.SetData(pclsCache.CacheConnectionObject, UserId, VisitId, VisitType, AdmissionDate, DischargeDate, HospitalCode, Department, piUserId, piTerminalName, piTerminalIP, piDeviceType);
                if (flag == 1)
                {
                    IsSaved = true;
                }
                return IsSaved;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "PsClinicalInfo.SetData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return IsSaved;
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
开发者ID:luyao2211,项目名称:WebService,代码行数:30,代码来源:PsClinicalInfo.cs

示例11: GetCategoryName

        //GetCategoryName WF 2014-12-2 
        public static string GetCategoryName(DataConnection pclsCache,string Code)
        {
            string ret = null;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return ret;

                }
                ret = (Cm.MstInfoItemCategory.GetCategoryName(pclsCache.CacheConnectionObject, Code)).ToString();
                return ret;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "CmMstInfoItemCategory.GetCategoryName", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return ret;
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
开发者ID:luyao2211,项目名称:WebService,代码行数:26,代码来源:CmMstInfoItemCategory.cs

示例12: SetData

 //SetData ZC 2014-12-2
 public static bool SetData(DataConnection pclsCache, string UserId, int RecordDate, int RecordTime, string ItemType, string ItemCode, string Value, string Unit, string revUserId, string TerminalName, string TerminalIP, int DeviceType)
 {
     bool IsSaved = false;
     try
     {
         if (!pclsCache.Connect())
         {
             return IsSaved;
         }
         int flag = (int)Ps.VitalSigns.SetData(pclsCache.CacheConnectionObject, UserId, RecordDate, RecordTime, ItemType, ItemCode, Value, Unit, revUserId, TerminalName, TerminalIP, DeviceType);
         if (flag == 1)
         {
             IsSaved = true;
         }
         return IsSaved;
     }
     catch (Exception ex)
     {
         HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "PsVitalSigns.SetData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
         return IsSaved;
     }
     finally
     {
         pclsCache.DisConnect();
     }
 }
开发者ID:luyao2211,项目名称:WebService,代码行数:27,代码来源:PsVitalSigns.cs

示例13: DeleteData

        //DeleteData WF 2015-07-01
        public static int DeleteData(DataConnection pclsCache, string PatientId, string RoleClass)
        {
            int Ret = 0;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return Ret;

                }
                Ret = (int)Ps.RoleMatch.DeleteData(pclsCache.CacheConnectionObject, PatientId, RoleClass);
                return Ret;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "Ps.RoleMatch.DeleteData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return Ret;
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
开发者ID:luyao2211,项目名称:WebService,代码行数:26,代码来源:PsRoleMatch.cs

示例14: GetNo

        //GetNo 自动编号 YDS 2014-12-01
        public static string GetNo(DataConnection pclsCache, int NumberingType, string TargetDate)
        {
            string number = "";
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return number;

                }
                number = Cm.MstNumbering.GetNo(pclsCache.CacheConnectionObject, NumberingType, TargetDate);
                return number;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "获取编号失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "CmMstNumbering.GetNo", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return number;
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
开发者ID:luyao2211,项目名称:WebService,代码行数:26,代码来源:CmMstNumbering.cs

示例15: DeleteData

        //DeleteData 删数据 ZYF 2014-12-01
        public static int DeleteData(DataConnection pclsCache, string Code)
        {
            int flag = 0;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return flag;

                }
                flag = (int)Cm.MstHospital.DeleteData(pclsCache.CacheConnectionObject, Code);

                return flag;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "CmMstHospital.DeleteData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return flag;
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
开发者ID:luyao2211,项目名称:WebService,代码行数:27,代码来源:CmMstHospital.cs


注:本文中的WebService.CommonLibrary.DataConnection.Connect方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。