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


C# DataConnection.DisConnect方法代码示例

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


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

示例1: SetData

        //SetData WY 2015-07-09
        public static bool SetData(DataConnection pclsCache, string HospitalCode, string DrugCode, string DrugName, string DrugSpec, string Units, string InputCode, string Description, int Status, string revUserId, string TerminalName, string TerminalIP, int DeviceType)
        {
            bool IsSaved = false;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return IsSaved;

                }
                int flag = (int)Tmp.DrugDict.SetData(pclsCache.CacheConnectionObject, HospitalCode, DrugCode, DrugName, DrugSpec, Units, InputCode, Description, Status, revUserId, TerminalName, TerminalIP, DeviceType);
                if (flag == 1)
                {
                    IsSaved = true;
                }
                return IsSaved;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "Tmp.DrugDict.SetData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return IsSaved;
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
开发者ID:luyao2211,项目名称:WebService,代码行数:30,代码来源:TmpDrugDict.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 WF 2014-12-2 
        public static bool SetData(DataConnection pclsCache, string CategoryCode, string Code, string Name, string ParentCode, int SortNo, int StartDate, int EndDate, int GroupHeaderFlag, string ControlType, string OptionCategory, string revUserId, string TerminalName, string TerminalIP, int DeviceType)
        {
            bool IsSaved = false;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return IsSaved;

                }
                int flag = (int)Cm.MstInfoItem.SetData(pclsCache.CacheConnectionObject, CategoryCode, Code, Name, ParentCode, SortNo, StartDate, EndDate, GroupHeaderFlag, ControlType, OptionCategory, revUserId, TerminalName, TerminalIP, DeviceType);
                if (flag == 1)
                {
                    IsSaved = true;
                }
                return IsSaved;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "CmMstInfoItem.SetData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return IsSaved;
            }
            finally
            {
                pclsCache.DisConnect();
            }


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

示例5: GetMaxSortNo

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

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

示例6: SetData

        //SetData YDS 2014-12-01 ZAM 更新ModuleType类型int改为string 与2014-12-08
        public static bool SetData(DataConnection pclsCache, string ModuleType, string PatientId, string DoctorId, int Level, string revUserId, string TerminalName, string TerminalIP, int DeviceType)
        {
            bool IsSaved = false;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return IsSaved;

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

示例7: CheckDoctorPhoneNumber

        //CheckDoctorPhoneNumber TDY 2015-1-14
        public static int CheckDoctorPhoneNumber(DataConnection pclsCache, string UserId, string piPhoneNumber)
        {
            int ret = 0;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return ret;

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

示例8: 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

示例9: SetDataUM

        //SetDataUM ZYF 2015-1-20
        public static bool SetDataUM(DataConnection pclsCache, string UserId, string UserName, string Password, string Class, int EndDate, 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.SetDataUM(pclsCache.CacheConnectionObject, UserId, UserName, Password, Class, EndDate, revUserId, TerminalName, TerminalIP, DeviceType);
                if (flag == 1)
                {
                    IsSaved = true;
                }
                return IsSaved;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "CmMstUser.SetDataUM", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return IsSaved;
            }
            finally
            {
                pclsCache.DisConnect();
            }

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

示例10: 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

示例11: 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

示例12: 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

示例13: 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

示例14: SetData

        //SetData GL 2014-12-01
        public static bool SetData(DataConnection pclsCache, string UserId, int SortNo, string AlertItemCode, DateTime AlertDateTime, int AlertType, int PushFlag, int ProcessFlag, string revUserId, string pTerminalName, string pTerminalIP, int pDeviceType)
        {
            bool IsSaved = false;
            try
            {
                if (!pclsCache.Connect())
                {
                    //MessageBox.Show("Cache数据库连接失败");
                    return IsSaved;

                }
                int flag = (int)Wn.TrnAlertRecord.SetData(pclsCache.CacheConnectionObject, UserId, SortNo, AlertItemCode, AlertDateTime, AlertType, PushFlag, ProcessFlag, revUserId, pTerminalIP, pTerminalName, pDeviceType);
                if (flag == 1)
                {
                    IsSaved = true;
                }
                return IsSaved;
            }
            catch (Exception ex)
            {
                //MessageBox.Show(ex.ToString(), "保存失败!");
                HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "WnTrnAlertRecord.SetData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
                return IsSaved;
            }
            finally
            {
                pclsCache.DisConnect();
            }
        }
开发者ID:luyao2211,项目名称:WebService,代码行数:30,代码来源:WnTrnAlertRecord.cs

示例15: ChangeStatus

 // ChangeStatus WY 2015-07-13
 public static bool ChangeStatus(DataConnection pclsCache, string HospitalCode, string Code, int Status)
 {
     bool IsSaved = false;
     try
     {
         if (!pclsCache.Connect())
         {
             //MessageBox.Show("Cache数据库连接失败");
             return IsSaved;
         }
         int flag = (int)Tmp.ExamDict.ChangeStatus(pclsCache.CacheConnectionObject, HospitalCode, Code, Status);
         if (flag == 1)
         {
             IsSaved = true;
         }
         return IsSaved;
     }
     catch (Exception ex)
     {
         //MessageBox.Show(ex.ToString(), "获取名称失败!");
         HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "Tmp.ExamDict.ChangeStatus", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
         return IsSaved;
     }
     finally
     {
         pclsCache.DisConnect();
     }
 }
开发者ID:luyao2211,项目名称:WebService,代码行数:29,代码来源:TmpExamDict.cs


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