private void loginUser()
        {
            elp = new EntLoginPegawai();
            rc  = new EntRemoteTransactionClient();

            elp.Namapengguna = txtUser.Text;
            elp.Jabatan      = cmbJabatan.SelectedValue.ToString();
            elp.Katasandi    = txtPass.Text;

            rc.Text = setData();

            condition = rlc.loginClient(elp, rc);

            if (condition)
            {
                sendDataToServer();

                setVisibleWarningBox(true);

                sendNama = txtUser.Text;

                FrmMenuClient frm = new FrmMenuClient(sendNama, sendIpServer, sendHostServer, elp.Jabatan);
                frm.Show();
                this.Hide();
            }
            else
            {
                setVisibleWarningBox(false);
                clearTextBox();
            }
        }
        public FrmSasaranKerja(Action <Form> viewForm1, string sendipaddress, string sendnama, string sendjabatan,
                               FrmMenuClient frmmenuclient)
        {
            InitializeComponent();

            this.viewForm1     = viewForm1;
            this.sendipaddress = sendipaddress;
            this.sendnama      = sendnama;
            this.sendjabatan   = sendjabatan;
            this.frmmenuclient = frmmenuclient;
        }
Example #3
0
        public FrmMenuKelola(string procces, Action <Form> viewForm, string sendipaddress, string sendnama, string sendjabatan,
                             FrmMenuClient frmMenuClient)
        {
            InitializeComponent();

            this.viewForm      = viewForm;
            this.sendipaddress = sendipaddress;
            this.sendnama      = sendnama;
            this.sendjabatan   = sendjabatan;
            this.frmMenuClient = frmMenuClient;
            this.procces       = procces;

            setTitleForm();
        }
Example #4
0
        public FrmCapaianKinerjaHarian(Action <Form> viewForm, string sendipaddress, string sendnama, string sendjabatan, FrmMenuClient frmMenuClient)
        {
            InitializeComponent();

            this.viewForm      = viewForm;
            this.sendipaddress = sendipaddress;
            this.sendnama      = sendnama;
            this.sendjabatan   = sendjabatan;
            this.frmMenuClient = frmMenuClient;
        }
Example #5
0
        public FrmPrilakuKerja(Action <Form> viewForm, string sendIpAddress, string sendNama, string sendJabatan, FrmMenuClient frmmenuclient)
        {
            InitializeComponent();

            this.viewForm      = viewForm;
            this.sendIpAddress = sendIpAddress;
            this.sendNama      = sendNama;
            this.sendJabatan   = sendJabatan;
            this.frmmenuclient = frmmenuclient;
        }