Пример #1
0
 public FrmProfile()
 {
     InitializeComponent();
     controller  = new KaryawanController();
     controller1 = new AkunController();
     RefreshForm(false);
 }
Пример #2
0
 public FrmInputKaryawan(string title, KaryawanController controller, AkunController controllerAkun) : this()
 {
     lblHeader.Text      = title;
     this.controller     = controller;
     this.controllerAkun = controllerAkun;
     AutoKodeKaryawan();
 }
Пример #3
0
        public FrmInputKaryawan(string title, Karyawan obj, KaryawanController controller, AkunController controllerAkun) : this()
        {
            lblHeader.Text      = title;
            this.controller     = controller;
            this.controllerAkun = controllerAkun;

            isNewData = false;
            karyawan  = obj;
            akun      = new Akun();

            txtKodeKaryawan.Text = karyawan.KodeKaryawan;
            txtNamaKaryawan.Text = karyawan.Nama;

            if (karyawan.Gender == "L")
            {
                rdoLaki.Checked = true;
            }
            else
            {
                rdoPerempuan.Checked = true;
            }

            txtTelepon.Text = karyawan.Telepon;

            if (karyawan.HakAkses == "1")
            {
                cmbHakAkses.SelectedIndex = 0;
            }
            else
            {
                cmbHakAkses.SelectedIndex = 1;
            }
        }
Пример #4
0
 public FrmKaryawan()
 {
     InitializeComponent();
     controller     = new KaryawanController();
     controllerAkun = new AkunController();
     InisiasiDatagrid();
     RefreshForm();
 }
Пример #5
0
 public FrmLogin()
 {
     InitializeComponent();
     controller = new AkunController();
 }