Exemple #1
0
        protected void SetLoginHospital(string hospitalid, string officeId)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new SetLoginHospitalOfficeHandler(SetLoginHospital), new object[] { hospitalid, officeId });
            }
            else
            {
                panel1.Controls.Clear();
                panel1.Controls.Add(_waitCtl);
                _waitCtl.SetMessage("设置登录院区信息...", 0);

                TCHISServiceModule.LoginManager loginmanager          = new TCHISServiceModule.LoginManager();
                SetLoginHospitalHandler         setLoginHospitalEvent = new SetLoginHospitalHandler(loginmanager.SetHospital);
                setLoginHospitalEvent.BeginInvoke(_user.TGT, hospitalid, officeId, _user.HisCookie, new AsyncCallback(SetLoginHospitalCallback), null);
            }
        }
        protected void SetLoginHospital(string hospitalid , string officeId )
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new SetLoginHospitalOfficeHandler(SetLoginHospital), new object[] { hospitalid, officeId });
            }
            else
            {
                panel1.Controls.Clear();
                panel1.Controls.Add(_waitCtl);
                _waitCtl.SetMessage("设置登录院区信息...", 0);

                TCHISServiceModule.LoginManager loginmanager = new TCHISServiceModule.LoginManager();
                SetLoginHospitalHandler setLoginHospitalEvent = new SetLoginHospitalHandler(loginmanager.SetHospital);
                setLoginHospitalEvent.BeginInvoke(_user.TGT, hospitalid, officeId , _user.HisCookie, new AsyncCallback(SetLoginHospitalCallback), null);
            }
        }