예제 #1
0
        private void button2_Click(object sender, RoutedEventArgs e) //debugging
        {
            Karyawan k = new Karyawan();

            k.Show();
            this.Hide();
        }
예제 #2
0
 public void masuk()
 {
    if (!(txtUserName.Text == "" || passwordBox1.Password == ""))
    {
       if (F.checkPass(txtUserName.Text, passwordBox1.Password))
       {
          if (txtUserName.Text == "admin")
          {
             Admin a = new Admin();
             a.Show();
             this.Hide();
          }
          siapa.anda = txtUserName.Text;
          string pilih = txtUserName.Text;
          switch (pilih[1])
          {
             case '1':
                //MessageBox.Show("Dokter");
                Dokter d = new Dokter();
                d.Show();
                this.Hide();
                break;
             case '2':
                //MessageBox.Show("Perawat");
                Perawat p = new Perawat();
                p.Show();
                this.Hide();
                break;
             case '3':
                //MessageBox.Show("Karyawan");
                Karyawan k = new Karyawan();
                k.Show();
                this.Hide();
                break;
             case '4':
                //MessageBox.Show("Pasien");
                Pasien s = new Pasien();
                s.Show();
                this.Hide();
                break;
          }
       }
       else if (txtUserName.Text == "su" && passwordBox1.Password == "superuser")
       {
          Admin a = new Admin();
          a.Show();
          this.Hide();
       }
       else MessageBox.Show("Username dan Password tidak cocok", "Peringatan", MessageBoxButton.OK, MessageBoxImage.Warning);
    }
    else if (txtUserName.Text == "" && !(passwordBox1.Password == ""))
       MessageBox.Show("username kosong");
    else if (passwordBox1.Password == "" && !(txtUserName.Text == ""))
       MessageBox.Show("password kosong");
    else MessageBox.Show("username & password kosong");
 }
예제 #3
0
 private void button2_Click(object sender, RoutedEventArgs e) //debugging
 {
    Karyawan k = new Karyawan();
    k.Show();
    this.Hide();
 }
예제 #4
0
파일: Karyawan.g.cs 프로젝트: ardX/TCHusada
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.karyawan = ((TCHusada.Karyawan)(target));
     return;
     case 2:
     this.FormFade = ((System.Windows.Media.Animation.Storyboard)(target));
     return;
     case 3:
     this.FormFadeAnimation = ((System.Windows.Media.Animation.DoubleAnimation)(target));
     return;
     case 4:
     this.imgBackground = ((System.Windows.Controls.Image)(target));
     return;
     case 5:
     this.labeljam = ((System.Windows.Controls.Label)(target));
     return;
     case 6:
     this.labellogin = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     this.image1 = ((System.Windows.Controls.Image)(target));
     
     #line 32 "..\..\..\Karyawan.xaml"
     this.image1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.image1_MouseDown);
     
     #line default
     #line hidden
     return;
     case 8:
     this.tblogout = ((System.Windows.Controls.Label)(target));
     
     #line 33 "..\..\..\Karyawan.xaml"
     this.tblogout.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.tblogout_MouseDown);
     
     #line default
     #line hidden
     return;
     case 9:
     this.labelpengguna = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.tblexit = ((System.Windows.Controls.Label)(target));
     
     #line 34 "..\..\..\Karyawan.xaml"
     this.tblexit.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.tblexit_MouseDown);
     
     #line default
     #line hidden
     return;
     case 11:
     this.tabControl1 = ((System.Windows.Controls.TabControl)(target));
     return;
     case 12:
     this.tabItemSaya = ((System.Windows.Controls.TabItem)(target));
     return;
     case 13:
     this.groupBoxTT = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 14:
     this.labelniptt = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.labelnamtt = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.labelalatt = ((System.Windows.Controls.Label)(target));
     return;
     case 17:
     this.labeltlptt = ((System.Windows.Controls.Label)(target));
     return;
     case 18:
     this.labeltgltt = ((System.Windows.Controls.Label)(target));
     return;
     case 19:
     this.textBoxniptt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 20:
     this.textBoxnamtt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 21:
     this.textBoxalatt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 22:
     this.textBoxtlptt = ((System.Windows.Controls.TextBox)(target));
     return;
     case 23:
     this.datemsktt = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 24:
     this.ubahbtntt = ((System.Windows.Controls.Button)(target));
     
     #line 50 "..\..\..\Karyawan.xaml"
     this.ubahbtntt.Click += new System.Windows.RoutedEventHandler(this.ubahbtntt_Click);
     
     #line default
     #line hidden
     return;
     case 25:
     this.simpanbtntt = ((System.Windows.Controls.Button)(target));
     
     #line 51 "..\..\..\Karyawan.xaml"
     this.simpanbtntt.Click += new System.Windows.RoutedEventHandler(this.simpanbtntt_Click);
     
     #line default
     #line hidden
     return;
     case 26:
     this.bersihbtntt = ((System.Windows.Controls.Button)(target));
     
     #line 52 "..\..\..\Karyawan.xaml"
     this.bersihbtntt.Click += new System.Windows.RoutedEventHandler(this.bersihbtntt_Click);
     
     #line default
     #line hidden
     return;
     case 27:
     this.batalbtntt = ((System.Windows.Controls.Button)(target));
     
     #line 53 "..\..\..\Karyawan.xaml"
     this.batalbtntt.Click += new System.Windows.RoutedEventHandler(this.batalbtntt_Click);
     
     #line default
     #line hidden
     return;
     case 28:
     this.tesreportbtn = ((System.Windows.Controls.Button)(target));
     
     #line 56 "..\..\..\Karyawan.xaml"
     this.tesreportbtn.Click += new System.Windows.RoutedEventHandler(this.tesreportbtn_Click);
     
     #line default
     #line hidden
     return;
     case 29:
     this.groupgntp = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 30:
     this.gantibtn = ((System.Windows.Controls.Button)(target));
     
     #line 59 "..\..\..\Karyawan.xaml"
     this.gantibtn.Click += new System.Windows.RoutedEventHandler(this.gantibtn_Click);
     
     #line default
     #line hidden
     return;
     case 31:
     this.simpnbtn = ((System.Windows.Controls.Button)(target));
     
     #line 60 "..\..\..\Karyawan.xaml"
     this.simpnbtn.Click += new System.Windows.RoutedEventHandler(this.simpnbtn_Click);
     
     #line default
     #line hidden
     return;
     case 32:
     this.batlbtn = ((System.Windows.Controls.Button)(target));
     
     #line 61 "..\..\..\Karyawan.xaml"
     this.batlbtn.Click += new System.Windows.RoutedEventHandler(this.batlbtn_Click);
     
     #line default
     #line hidden
     return;
     case 33:
     this.pwdlama = ((System.Windows.Controls.Label)(target));
     return;
     case 34:
     this.pwdbaru = ((System.Windows.Controls.Label)(target));
     return;
     case 35:
     this.pwdlagi = ((System.Windows.Controls.Label)(target));
     return;
     case 36:
     this.passwordLama = ((System.Windows.Controls.PasswordBox)(target));
     return;
     case 37:
     this.passwordBaru = ((System.Windows.Controls.PasswordBox)(target));
     return;
     case 38:
     this.passwordBaru2 = ((System.Windows.Controls.PasswordBox)(target));
     return;
     case 39:
     this.tabItemUGD = ((System.Windows.Controls.TabItem)(target));
     return;
     case 40:
     this.groupBoxUGD = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 41:
     this.labelnougd = ((System.Windows.Controls.Label)(target));
     return;
     case 42:
     this.labelnopass = ((System.Windows.Controls.Label)(target));
     return;
     case 43:
     this.labeltangperugd = ((System.Windows.Controls.Label)(target));
     return;
     case 44:
     this.labelkeluhanugd = ((System.Windows.Controls.Label)(target));
     return;
     case 45:
     this.labelbiayaugd = ((System.Windows.Controls.Label)(target));
     return;
     case 46:
     this.label1 = ((System.Windows.Controls.Label)(target));
     return;
     case 47:
     this.textBoxnougd = ((System.Windows.Controls.TextBox)(target));
     return;
     case 48:
     this.textBoxnopass = ((System.Windows.Controls.TextBox)(target));
     return;
     case 49:
     this.datetangugd = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 50:
     this.textBoxtkeluhanugd = ((System.Windows.Controls.TextBox)(target));
     return;
     case 51:
     this.textBoxbiayaugd = ((System.Windows.Controls.TextBox)(target));
     return;
     case 52:
     this.textketugd = ((System.Windows.Controls.TextBox)(target));
     return;
     case 53:
     this.tambahtransugd = ((System.Windows.Controls.Button)(target));
     
     #line 88 "..\..\..\Karyawan.xaml"
     this.tambahtransugd.Click += new System.Windows.RoutedEventHandler(this.tambahtransugd_Click);
     
     #line default
     #line hidden
     return;
     case 54:
     this.simpantransugd = ((System.Windows.Controls.Button)(target));
     
     #line 89 "..\..\..\Karyawan.xaml"
     this.simpantransugd.Click += new System.Windows.RoutedEventHandler(this.simpantransugd_Click);
     
     #line default
     #line hidden
     return;
     case 55:
     this.bersihtransugd = ((System.Windows.Controls.Button)(target));
     
     #line 90 "..\..\..\Karyawan.xaml"
     this.bersihtransugd.Click += new System.Windows.RoutedEventHandler(this.bersihtransugd_Click);
     
     #line default
     #line hidden
     return;
     case 56:
     this.bataltransugd = ((System.Windows.Controls.Button)(target));
     
     #line 91 "..\..\..\Karyawan.xaml"
     this.bataltransugd.Click += new System.Windows.RoutedEventHandler(this.bataltransugd_Click);
     
     #line default
     #line hidden
     return;
     case 57:
     this.groupBoxpsk = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 58:
     this.labelnoper = ((System.Windows.Controls.Label)(target));
     return;
     case 59:
     this.labelnipdokugd = ((System.Windows.Controls.Label)(target));
     return;
     case 60:
     this.labelkamarugd = ((System.Windows.Controls.Label)(target));
     return;
     case 61:
     this.labelnopasperugd = ((System.Windows.Controls.Label)(target));
     return;
     case 62:
     this.labeljamugd = ((System.Windows.Controls.Label)(target));
     return;
     case 63:
     this.textBoxnoper = ((System.Windows.Controls.TextBox)(target));
     return;
     case 64:
     this.textBoxdokugd = ((System.Windows.Controls.TextBox)(target));
     return;
     case 65:
     this.textBoxkamarugd = ((System.Windows.Controls.TextBox)(target));
     return;
     case 66:
     this.textBoxnopasugd = ((System.Windows.Controls.TextBox)(target));
     return;
     case 67:
     this.textBoxjamugd = ((System.Windows.Controls.TextBox)(target));
     return;
     case 68:
     this.tambahpskugd = ((System.Windows.Controls.Button)(target));
     
     #line 106 "..\..\..\Karyawan.xaml"
     this.tambahpskugd.Click += new System.Windows.RoutedEventHandler(this.tambahpskugd_Click);
     
     #line default
     #line hidden
     return;
     case 69:
     this.simpanpskugd = ((System.Windows.Controls.Button)(target));
     
     #line 107 "..\..\..\Karyawan.xaml"
     this.simpanpskugd.Click += new System.Windows.RoutedEventHandler(this.simpanpskugd_Click);
     
     #line default
     #line hidden
     return;
     case 70:
     this.bersihpskugd = ((System.Windows.Controls.Button)(target));
     
     #line 108 "..\..\..\Karyawan.xaml"
     this.bersihpskugd.Click += new System.Windows.RoutedEventHandler(this.bersihpskugd_Click);
     
     #line default
     #line hidden
     return;
     case 71:
     this.batalpskugd = ((System.Windows.Controls.Button)(target));
     
     #line 109 "..\..\..\Karyawan.xaml"
     this.batalpskugd.Click += new System.Windows.RoutedEventHandler(this.batalpskugd_Click);
     
     #line default
     #line hidden
     return;
     case 72:
     this.tabItemPoli = ((System.Windows.Controls.TabItem)(target));
     return;
     case 73:
     this.groupBoxPoli = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 74:
     this.labelnoPoli = ((System.Windows.Controls.Label)(target));
     return;
     case 75:
     this.labelnopassPoli = ((System.Windows.Controls.Label)(target));
     return;
     case 76:
     this.labelid_poli = ((System.Windows.Controls.Label)(target));
     return;
     case 77:
     this.labeltangperPoli = ((System.Windows.Controls.Label)(target));
     return;
     case 78:
     this.labelkeluhanpoli = ((System.Windows.Controls.Label)(target));
     return;
     case 79:
     this.labelbiayapoli = ((System.Windows.Controls.Label)(target));
     return;
     case 80:
     this.labelketpoli = ((System.Windows.Controls.Label)(target));
     return;
     case 81:
     this.textBoxnotranspoli = ((System.Windows.Controls.TextBox)(target));
     return;
     case 82:
     this.textBoxnopasspoli = ((System.Windows.Controls.TextBox)(target));
     return;
     case 83:
     this.datetangpoli = ((System.Windows.Controls.DatePicker)(target));
     return;
     case 84:
     this.textBoxtkeluhanpoli = ((System.Windows.Controls.TextBox)(target));
     return;
     case 85:
     this.textBoxbiayapoli = ((System.Windows.Controls.TextBox)(target));
     return;
     case 86:
     this.textketpoli = ((System.Windows.Controls.TextBox)(target));
     return;
     case 87:
     this.textBoxidpoli = ((System.Windows.Controls.TextBox)(target));
     return;
     case 88:
     this.tambahtranspoli = ((System.Windows.Controls.Button)(target));
     
     #line 132 "..\..\..\Karyawan.xaml"
     this.tambahtranspoli.Click += new System.Windows.RoutedEventHandler(this.tambahtranspoli_Click);
     
     #line default
     #line hidden
     return;
     case 89:
     this.simpantranspoli = ((System.Windows.Controls.Button)(target));
     
     #line 133 "..\..\..\Karyawan.xaml"
     this.simpantranspoli.Click += new System.Windows.RoutedEventHandler(this.simpantranspoli_Click);
     
     #line default
     #line hidden
     return;
     case 90:
     this.bersihtranspoli = ((System.Windows.Controls.Button)(target));
     
     #line 134 "..\..\..\Karyawan.xaml"
     this.bersihtranspoli.Click += new System.Windows.RoutedEventHandler(this.bersihtranspoli_Click);
     
     #line default
     #line hidden
     return;
     case 91:
     this.bataltranspoli = ((System.Windows.Controls.Button)(target));
     
     #line 135 "..\..\..\Karyawan.xaml"
     this.bataltranspoli.Click += new System.Windows.RoutedEventHandler(this.bataltranspoli_Click);
     
     #line default
     #line hidden
     return;
     case 92:
     this.tabItemUGD1 = ((System.Windows.Controls.TabItem)(target));
     return;
     case 93:
     this.labellabdatugd = ((System.Windows.Controls.Label)(target));
     return;
     case 94:
     this.dataGridUGD = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 95:
     this.groupBoxlab = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 96:
     this.textnoadmugd = ((System.Windows.Controls.TextBox)(target));
     return;
     case 97:
     this.labelnotransugd = ((System.Windows.Controls.Label)(target));
     return;
     case 98:
     this.caributugd = ((System.Windows.Controls.Button)(target));
     
     #line 159 "..\..\..\Karyawan.xaml"
     this.caributugd.Click += new System.Windows.RoutedEventHandler(this.caributugd_Click);
     
     #line default
     #line hidden
     return;
     case 99:
     this.kembalibutugd = ((System.Windows.Controls.Button)(target));
     
     #line 160 "..\..\..\Karyawan.xaml"
     this.kembalibutugd.Click += new System.Windows.RoutedEventHandler(this.kembalibutugd_Click);
     
     #line default
     #line hidden
     return;
     case 100:
     this.tabItempoli = ((System.Windows.Controls.TabItem)(target));
     return;
     case 101:
     this.labellabdatpoli = ((System.Windows.Controls.Label)(target));
     return;
     case 102:
     this.dataGridPoli = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 103:
     this.groupBoxpoli = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 104:
     this.textnoadmpoli = ((System.Windows.Controls.TextBox)(target));
     return;
     case 105:
     this.labelnotranspoli = ((System.Windows.Controls.Label)(target));
     return;
     case 106:
     this.caributpoli = ((System.Windows.Controls.Button)(target));
     
     #line 184 "..\..\..\Karyawan.xaml"
     this.caributpoli.Click += new System.Windows.RoutedEventHandler(this.caributpoli_Click);
     
     #line default
     #line hidden
     return;
     case 107:
     this.kembalibutpoli = ((System.Windows.Controls.Button)(target));
     
     #line 185 "..\..\..\Karyawan.xaml"
     this.kembalibutpoli.Click += new System.Windows.RoutedEventHandler(this.kembalibutpoli_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
예제 #5
0
        public void masuk()
        {
            if (!(txtUserName.Text == "" || passwordBox1.Password == ""))
            {
                if (F.checkPass(txtUserName.Text, passwordBox1.Password))
                {
                    if (txtUserName.Text == "admin")
                    {
                        Admin a = new Admin();
                        a.Show();
                        this.Hide();
                    }
                    siapa.anda = txtUserName.Text;
                    string pilih = txtUserName.Text;
                    switch (pilih[1])
                    {
                    case '1':
                        //MessageBox.Show("Dokter");
                        Dokter d = new Dokter();
                        d.Show();
                        this.Hide();
                        break;

                    case '2':
                        //MessageBox.Show("Perawat");
                        Perawat p = new Perawat();
                        p.Show();
                        this.Hide();
                        break;

                    case '3':
                        //MessageBox.Show("Karyawan");
                        Karyawan k = new Karyawan();
                        k.Show();
                        this.Hide();
                        break;

                    case '4':
                        //MessageBox.Show("Pasien");
                        Pasien s = new Pasien();
                        s.Show();
                        this.Hide();
                        break;
                    }
                }
                else if (txtUserName.Text == "su" && passwordBox1.Password == "superuser")
                {
                    Admin a = new Admin();
                    a.Show();
                    this.Hide();
                }
                else
                {
                    MessageBox.Show("Username dan Password tidak cocok", "Peringatan", MessageBoxButton.OK, MessageBoxImage.Warning);
                }
            }
            else if (txtUserName.Text == "" && !(passwordBox1.Password == ""))
            {
                MessageBox.Show("username kosong");
            }
            else if (passwordBox1.Password == "" && !(txtUserName.Text == ""))
            {
                MessageBox.Show("password kosong");
            }
            else
            {
                MessageBox.Show("username & password kosong");
            }
        }