示例#1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            label_name.Text     = app.user_name;
            label_id.Text       = app.user_id;
            label_office.Text   = app.user_office;
            label_jobtitle.Text = app.user_jobtitle;

            label5.Text  = label_office.Text;
            label8.Text  = label_name.Text;
            label11.Text = DateTime.Now.ToString();


            HostPanel.ShowForm(this.panel3, "scheduling_Management", "Existing_Sform");
            if (app.a == 0)
            {
                scheduling_Interface.Visible = false;
                rbTemp = ribbonButton1;
                ribbonButton1.Checked = true;
                HostPanel.ShowForm(this.panel3, "query_business", "Query_scheduling_form");
            }
            else
            {
                ribbonTab1.Visible     = false;
                rbTemp                 = existing_Sform; //病人信息Ribbonbutton为当前选中
                existing_Sform.Checked = true;
            }
        }
示例#2
0
        private void ribbonButton1_Click(object sender, EventArgs e)
        {
            rbTemp.Checked = false;
            RibbonButton tsBtn = (RibbonButton)sender;

            tsBtn.Checked     = true;                 //修改当前选定的button的Checked属性
            rbTemp            = tsBtn;                //当前选定的button
            currentMiddleForm = tsBtn.Tag.ToString(); //ribbon的tag属性事先设成窗体名,获取要显示的窗体的name
            HostPanel.ShowForm(this.panel3, "query_business", "Query_scheduling_form");
        }
示例#3
0
        private void manage_application_Click(object sender, EventArgs e)
        {
            rbTemp.Checked = false;
            RibbonButton tsBtn = (RibbonButton)sender;

            tsBtn.Checked     = true;                 //修改当前选定的button的Checked属性
            rbTemp            = tsBtn;                //当前选定的button
            currentMiddleForm = tsBtn.Tag.ToString(); //ribbon的tag属性事先设成窗体名,获取要显示的窗体的name
            HostPanel.ShowForm(this.panel3, "application_Management", "Manage_application");
        }
示例#4
0
        private void existing_Sform_Click_1(object sender, EventArgs e)
        {
            rbTemp.Checked = false;
            RibbonButton tsBtn = (RibbonButton)sender;

            tsBtn.Checked     = true;                 //修改当前选定的button的Checked属性
            rbTemp            = tsBtn;                //当前选定的button
            currentMiddleForm = tsBtn.Tag.ToString(); //ribbon的tag属性事先设成窗体名,获取要显示的窗体的name
            HostPanel.ShowForm(this.panel3, "scheduling_Management", "Existing_Sform");
        }