本文整理匯總了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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}