public frmUnWork(InPatientInfo Info) { InitializeComponent(); inpatient = Info; string patientid = inpatient.Id.ToString(); string user_id = App.UserAccount.UserInfo.User_id.ToString(); string type = App.UserAccount.CurrentSelectRole.Role_type; if (type == "D") { tabItem4.Visible = true; tabItem6.Visible = false; string section_id = App.UserAccount.CurrentSelectRole.Section_Id.ToString(); ucDSQWS ucD = new ucDSQWS(section_id, user_id, patientid); tabControlPanel3.Controls.Add(ucD); ucD.Dock = DockStyle.Fill; App.UsControlStyle(ucD); usSXZK ucS = new usSXZK(section_id, user_id, type, patientid); tabControlPanel1.Controls.Add(ucS); ucS.Dock = DockStyle.Fill; App.UsControlStyle(ucS); ucReceiveNotice ucR = new ucReceiveNotice(patientid); tabControlPanel2.Controls.Add(ucR); ucR.Dock = DockStyle.Fill; App.UsControlStyle(ucR); uc30day frmd = new uc30day(); tabControlPanel4.Controls.Add(frmd); frmd.Dock = DockStyle.Fill; App.UsControlStyle(frmd); } else { tabItem4.Visible = false; tabItem6.Visible = true; tabItem2.Visible = false; tabItem3.Visible = false; string Sickarea_Id = App.UserAccount.CurrentSelectRole.Sickarea_Id.ToString(); usSXZK ucS = new usSXZK(Sickarea_Id, user_id, type, patientid); tabControlPanel1.Controls.Add(ucS); ucS.Dock = DockStyle.Fill; App.UsControlStyle(ucS); ucElementQuality uclb = new ucElementQuality(); tabControlPanel6.Controls.Add(uclb); uclb.Dock = DockStyle.Fill; App.UsControlStyle(uclb); } }
//ucWjzJY uc; //ucWjzJC uc1; //public delegate void AddNewDoc(string tid); //public event AddNewDoc addnewdoc; public frmUnWork() { InitializeComponent(); string user_id = App.UserAccount.UserInfo.User_id.ToString(); string type = App.UserAccount.CurrentSelectRole.Role_type; if (type == "D") { string section_id = App.UserAccount.CurrentSelectRole.Section_Id.ToString(); ucDSQWS ucD = new ucDSQWS(section_id, user_id, ""); tabControlPanel3.Controls.Add(ucD); ucD.Dock = DockStyle.Fill; App.UsControlStyle(ucD); usSXZK ucS = new usSXZK(section_id, user_id, type, ""); tabControlPanel1.Controls.Add(ucS); ucS.Dock = DockStyle.Fill; App.UsControlStyle(ucS); ucReceiveNotice ucR = new ucReceiveNotice(); tabControlPanel2.Controls.Add(ucR); ucR.Dock = DockStyle.Fill; App.UsControlStyle(ucR); } else { tabItem2.Visible = false; tabItem3.Visible = false; string Sickarea_Id = App.UserAccount.CurrentSelectRole.Sickarea_Id.ToString(); usSXZK ucS = new usSXZK(Sickarea_Id, user_id, type, ""); tabControlPanel1.Controls.Add(ucS); ucS.Dock = DockStyle.Fill; App.UsControlStyle(ucS); } }