public static void LoadState(IDictionary<string, object> state) { if (state.ContainsKey("application-currentStation")) { currentStation = (IStationInfo)state["application-currentStation"]; } }
public static void LoadState(IDictionary <string, object> state) { if (state.ContainsKey("application-currentStation")) { currentStation = (IStationInfo)state["application-currentStation"]; } }
public StationInfoViewModel(IStationInfo info) { if (info == null) { throw new Exception("Station Info cannot be null"); } StationInfo = info; }
public ChartViewModel(IStationInfo station) { if (station == null) { throw new Exception("station info cannot be null"); } StationInfo = station; }
public virtual void Init(IDBQuery dbHelper, ILoginUser userData, IStationInfo stationInfo, IBizDataTransferCenter parentTransferCenter) { _dbHelper = dbHelper; _userData = userData; _stationInfo = stationInfo; //初始化系统框架相关对象 _dataTransCenter = new BizDataTransferCenter(); _dataTransCenter.ParentDataCenter = parentTransferCenter; }
public void Init(string winKey, IDBQuery dbHelper, IBizDataTransferCenter dataTransCenter, IStationInfo stationInfo, ILoginUser userData, IParameters parameters, ISysLog sysLog) { _winKey = winKey; _dbHelper = dbHelper; _dataCenter = dataTransCenter; _stationInfo = stationInfo; _loginUser = userData; _pars = parameters; _sysLog = sysLog; }
/// <summary> /// 显示入队 /// </summary> /// <param name="applyId"></param> /// <param name="patientId"></param> /// <param name="owner"></param> /// <returns>排队号码</returns> public LineUpData ShowIntoQueue(QueueModel qm, IStationInfo stationInfo, string applyId, IWin32Window owner) { _qm = qm; _applyId = applyId; _stationInfo = stationInfo; this.ShowDialog(owner); return(_linuupData); }
public void Init(string winKey, string moduleName, CoordinationBizModules winRelateModules, IDBQuery dbHelper, ILoginUser userData, IStationInfo stationInfo, IBizDataTransferCenter dataTransCenter, IWin32Window owner) { _winKey = winKey; _moduleName = moduleName; _winRelateModules = winRelateModules; _dbHelper = dbHelper; _userData = userData; _stationInfo = stationInfo; _dataTransCenter = dataTransCenter; _owiner = owner; }
public virtual void Init(string winKey, IDBQuery dbHelper, IBizDataTransferCenter dataTransCenter, IStationInfo stationInfo, ILoginUser userData, IParameters parameters, ISysLog sysLog) { _winKey = winKey; _dbQuery = dbHelper; _userData = userData; _dataTransCenter = dataTransCenter; _stationInfo = stationInfo; _parameters = parameters; _sysLog = sysLog; _dataTransCenter.RegBizDataQuery(ModuleName, this); }
public bool ShowPlan(DataTable dtExecuteInfo, IDBQuery dbHelper, IStationInfo stationInfo, IWin32Window owner) { _isOk = false; _dbHelper = dbHelper; _stationInfo = stationInfo; _dtExecuteInfo = dtExecuteInfo; _studyMediaSerialModel = new StudyMediaSerialModel(dbHelper); this.ShowDialog(owner); return(_isOk); }
public bool ShowQueueDesign(QueueModuleDesign queueDesign, IStationInfo stationInfo, IDBQuery dbHelper, IWin32Window owner) { _isOk = false; _queueDesign = queueDesign; _dbHelper = dbHelper; toolsConfig1.InitToolDesign(queueDesign.ToolsDesign); this.ShowDialog(owner); return(_isOk); }
public Worker(ILogger <Worker> logger, IRailwayInfo railwayClient, IStationInfo stationClient, IUpdateRwyDb updateRwyDbClient, IBusClient busClient) { _logger = logger; _railwayClient = railwayClient; _updateRwyDbClient = updateRwyDbClient; _stationClient = stationClient; _busClient = busClient; }
public bool ShowReportDesign(ReportPars reportPars, ReportModuleDesign reportDesign, IStationInfo stationInfo, IDBQuery dbHelper, IWin32Window owner) { _isOk = false; _reportPars = reportPars; _reportDesign = reportDesign; _stationInfo = stationInfo; _dbHelper = dbHelper; toolsConfig1.InitToolDesign(reportDesign.ToolsDesign); this.ShowDialog(owner); return(_isOk); }
static public bool BusinessVerify(IDBProvider dBProvider, ILoginUser userData) { _stationInfo = StationInfo.GetLocateStationInfo(_serverName, dBProvider); if (_stationInfo == null) { MessageBox.Show("当前站点信息尚未配置,请联系管理员。", "提示"); return(false); } //判断当前用户是否能够登录当前科室的系统 UserModel um = new UserModel(dBProvider); List <UserReleationData> urds = um.GetUserDepartmentRoleInfos(userData.UserId); if (urds == null) { MessageBox.Show("未找到对应科室信息不能进行登录,请联系管理员。", "提示"); return(false); } string departmentId = _stationInfo.DepartmentId; int index = urds.FindIndex(T => T.科室ID == departmentId); if (index < 0) { MessageBox.Show("当前科室 [" + _stationInfo.DepartmentName + "] 未配置该用户不能进行登录,请联系管理员。", "提示"); return(false); } UserReleationData urd = urds[index]; if (string.IsNullOrEmpty(urd.角色ID)) { MessageBox.Show("当前用户尚未分配角色不能进行登录,请联系管理员。", "提示"); return(false); } userData.RoleId = urd.角色ID; userData.DepartmentId = urd.科室ID; return(true); }
public SocialViewModel(IStationInfo stationInfo) { ChatRoomId = stationInfo.Id; PageTitle = stationInfo.Name; this.MessageSent += MessageSentHandler; SocialService = new SocialService(); SocialService.ErrorOccured += (s, e) => { MessageBox.Show(AppResources.Error_NoMessage); RaisePropertyChanged("LastError"); ShowProgress = Visibility.Collapsed; RaisePropertyChanged("ShowProgress"); }; SocialService.LastResultChanged += (s, e) => { RaisePropertyChanged("LatestMessages"); ShowProgress = Visibility.Collapsed; RaisePropertyChanged("ShowProgress"); RaiseMessageRefreshed(); }; }
public ChatButtonClickedEventArgs(IStationInfo stationInfo) { StationInfo = stationInfo; }
public ChartViewModel(IStationInfo station) { if (station == null) throw new Exception("station info cannot be null"); StationInfo = station; }
static public object GetGeneralParValue(string parName, IDBQuery dbQuery, ILoginUser userData, IStationInfo stationinfo) { //申请识别码,患者识别码,申请ID,患者ID,患者姓名, //用户ID,用户名称,设备ID,设备名称,房间ID,房间名称,科室ID,科室名称,院区编码,本地日期,服务器日期,本机IP,本机名称 switch (parName) { case "系统_科室ID": return(stationinfo.DepartmentId); case "系统_科室名称": return(stationinfo.DepartmentName); case "系统_房间ID": return(stationinfo.RoomId); case "系统_房间名称": return(stationinfo.RoomName); case "系统_设备ID": return(stationinfo.DeviceId); case "系统_设备名称": return(stationinfo.DeviceName); case "系统_用户ID": return(userData.UserId); case "系统_用户名称": return(userData.Name); case "系统_用户账号": return(userData.Account); case "系统_院区编码": return(stationinfo.DistrictCode); case "系统_本地日期": return(DateTime.Now); case "系统_本机名称": return(Dns.GetHostName()); case "系统_本机IP": return(System.Net.Dns.GetHostEntry(Dns.GetHostName()).AddressList[0].ToString()); case "系统_服务器日期": { DBModel dmDate = new DBModel(dbQuery); return(dmDate.GetServerDate()); } default: return(null); } }
//*********************************************************************************************** #endregion #region 重写基类的方法 public override void Init(IDBQuery dbHelper, IBizDataTransferCenter dataTransCenter, IStationInfo stationInfo, ILoginUser userData, IParameters parameters, ISysLog sysLog) { base.Init(dbHelper, dataTransCenter, stationInfo, userData, parameters, sysLog); //初始化ApplyControl applyControl.Init(_dbQuery, _dataTransCenter, _stationInfo, _userData, _parameters, _sysLog); SetButtonState(ButtonState.bsNormal); }
public int CompareTo(IStationInfo other) { return this.Id.CompareTo(other.Id); }
public void Init(IDBQuery dbHelper, ILoginUser userData, IStationInfo stationInfo, IBizDataTransferCenter parentTransferCenter) { _serverName = stationInfo.DBServerName; _bml.Init(dbHelper, userData, stationInfo, parentTransferCenter); }
public int CompareTo(IStationInfo other) { return(this.Id.CompareTo(other.Id)); }