Beispiel #1
0
        private void GetDialogResult(frmTokoLookUp dialogForm)
        {
            _rowID             = dialogForm.RowId;
            txtLookupName.Text = dialogForm.namaToko;
            _lastNamaToko      = txtLookupName.Text;
            txtLookupCode.Text = dialogForm.kodeToko;
            _tokoID            = dialogForm.TokoId;
            _alamat            = dialogForm.alamat;
            _kota            = dialogForm.kota;
            _hrKirim         = dialogForm.hariKirim;
            _hrSales         = dialogForm.hariSales;
            _Catatan         = dialogForm.catatan;
            _Grade           = dialogForm.grade;
            _Telp            = dialogForm.telp;
            _Penanggungjawab = dialogForm.penanggungjawab;
            _WilID           = dialogForm.wilID;
            _Plafon          = dialogForm.plafon;
            _pasif           = dialogForm.Pasif;

            txtLookupName.Focus();
            if (this.SelectData != null)
            {
                this.SelectData(this, new EventArgs());
            }
        }
Beispiel #2
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            //frmTokoLookUp ifrmDialog = new frmTokoLookUp(searchArg, dt);
            int a = 0;

            if (_lookUpType == EnumLookUpType.All)
            {
                a = 1;
            }
            else
            {
                a = 0;
            }
            frmTokoLookUp ifrmDialog = new frmTokoLookUp(searchArg, dt, a);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
            else
            {
                txtLookupName.Focus();
            }
        }
Beispiel #3
0
        private void ShowDialogForm()
        {
            frmTokoLookUp ifrmDialog = new frmTokoLookUp();

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
            else
            {
                txtLookupName.Focus();
            }
        }
Beispiel #4
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            frmTokoLookUp ifrmDialog = new frmTokoLookUp(searchArg, dt);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
            else
            {
                txtLookupName.Focus();
            }
        }
Beispiel #5
0
 private void GetDialogResult(frmTokoLookUp dialogForm)
 {
     _rowID             = dialogForm.RowId;
     txtLookupName.Text = dialogForm.namaToko;
     _lastNamaToko      = txtLookupName.Text;
     txtLookupCode.Text = dialogForm.kodeToko;
     _tokoID            = dialogForm.TokoId;
     _alamat            = dialogForm.alamat;
     _kota    = dialogForm.kota;
     _hrKirim = dialogForm.hariKirim;
     _hrSales = dialogForm.hariSales;
     _Catatan = dialogForm.catatan;
     _Grade   = dialogForm.grade;
     txtLookupName.Focus();
     if (this.SelectData != null)
     {
         this.SelectData(this, new EventArgs());
     }
 }