本文整理汇总了C#中WebService.CommonLibrary.DataConnection类的典型用法代码示例。如果您正苦于以下问题:C# DataConnection类的具体用法?C# DataConnection怎么用?C# DataConnection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DataConnection类属于WebService.CommonLibrary命名空间,在下文中一共展示了DataConnection类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: 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
示例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 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
示例9: SetData
public static bool SetData(DataConnection pclsCache, string UserId, string VisitId, DateTime ClinicDate, string HospitalCode, string Department, string Doctor, string piUserId, string piTerminalName, string piTerminalIP, int piDeviceType)
{
bool IsSaved = false;
int ret = 0;
try
{
if (!pclsCache.Connect())
{
return IsSaved;
}
ret = (int)Ps.OutPatientInfo.SetData(pclsCache.CacheConnectionObject, UserId, VisitId, ClinicDate, HospitalCode, Department, Doctor, piUserId, piTerminalName, piTerminalIP, piDeviceType);
if (ret == 1)
{
IsSaved = true;
}
return IsSaved;
}
catch (Exception ex)
{
HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "Ps.OutPatientInfo.SetData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
return IsSaved;
}
finally
{
pclsCache.DisConnect();
}
}
开发者ID:luyao2211,项目名称:WebService,代码行数:28,代码来源:PsOutPatientInfo.cs
示例10: 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
示例11: 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
示例12: 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
示例13: 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
示例14: 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
示例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
示例16: DeletePatient2VSInfo
//DeletePatient2VSInfo LS 2014-12-1
public static int DeletePatient2VSInfo(DataConnection pclsCache, string UserId, string VitalSignsType, string VitalSignsCode, string revUserId, string TerminalName, string TerminalIP, int DeviceType)
{
int ret = 0;
try
{
if (!pclsCache.Connect())
{
//MessageBox.Show("Cache数据库连接失败");
return ret;
}
ret = (int)Ps.Patient2VS.DeletePatient2VSInfo(pclsCache.CacheConnectionObject, UserId, VitalSignsType, VitalSignsCode, revUserId, TerminalName, TerminalIP, DeviceType);
return ret;
}
catch (Exception ex)
{
//MessageBox.Show(ex.ToString(), "保存失败!");
HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "PsPatient2VS.DeletePatient2VSInfo", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
return ret;
}
finally
{
pclsCache.DisConnect();
}
}
开发者ID:luyao2211,项目名称:WebService,代码行数:26,代码来源:PsPatient2VS.cs
示例17: 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
示例18: DeleteData
public static bool DeleteData(DataConnection pclsCache, string Code)
{
bool IsSaved = false;
try
{
if (!pclsCache.Connect())
{
return IsSaved;
}
int flag = (int)Cm.MstInsurance.DeleteData(pclsCache.CacheConnectionObject, Code);
if (flag == 1)
{
IsSaved = true;
}
return IsSaved;
}
catch (Exception ex)
{
HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "CmMstInsurance.DeleteData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
return IsSaved;
}
finally
{
pclsCache.DisConnect();
}
}
开发者ID:luyao2211,项目名称:WebService,代码行数:26,代码来源:CmMstInsurance.cs
示例19: 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
示例20: SetData
//SetData ZC 2014-12-2
public static bool SetData(DataConnection pclsCache, string UserId, string VisitId, string SortNo, string Code, string Value, int IsAbnormal, string Unit, string revUserId, string TerminalName, string TerminalIP, int DeviceType)
{
bool IsSaved = false;
try
{
if (!pclsCache.Connect())
{
return IsSaved;
}
string LabTest = UserId + "||" + VisitId + "||" + SortNo.ToString();
int flag = (int)Ps.LabTestDetails.SetData(pclsCache.CacheConnectionObject, LabTest, Code, Value, IsAbnormal, Unit, revUserId, TerminalName, TerminalIP, DeviceType);
if (flag == 1)
{
IsSaved = true;
}
return IsSaved;
}
catch (Exception ex)
{
HygeiaComUtility.WriteClientLog(HygeiaEnum.LogType.ErrorLog, "PsLabTestDetails.SetData", "数据库操作异常! error information : " + ex.Message + Environment.NewLine + ex.StackTrace);
return IsSaved;
}
finally
{
pclsCache.DisConnect();
}
}
开发者ID:luyao2211,项目名称:WebService,代码行数:28,代码来源:PsLabTestDetails.cs
注:本文中的WebService.CommonLibrary.DataConnection类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论