Exemplo n.º 1
0
        private void GetDialogResult(frmLookupSPM dialogForm)
        {
            lookupCustomerBengkel1.NamaCust = dialogForm.namacust;
            lookupCustomerBengkel1.KodeCust = dialogForm.kodecust;
            txtNamaCust.Text = dialogForm.namacust;
            txtNoPol.Text    = dialogForm.nopol;
            lookupSepedaMotor1.NamaSepedaMotor = dialogForm.Spm;
            lookupSepedaMotor1.KodeSepedaMotor = dialogForm.Kd_spm;
            txtSPMType.Text     = dialogForm.Jns_spm;
            txtSPMTypeDesc.Text = dialogForm.Spm;
            txtWarna.Text       = dialogForm.Warna;
            txtTahun.Text       = dialogForm.Tahun;
            txtPemilik.Text     = dialogForm.namacust;
            txtAlamat.Text      = dialogForm.Alamat;
            txtNoKTP_SIM.Text   = dialogForm.Ktp;
            txtTelp.Text        = dialogForm.telpon;
            _RowIDCust          = dialogForm.RowIDCustGet;
            GetDataService(txtNoPol.Text);
            txtService.Text = Tools.isNull(_ServiceKe, "1").ToString();


            //txtKM.Text = dialogForm.Km;
            //txtKeluhan.Text = dialogForm.Keluhan;
            //txtAlamat.Text = dialogForm.Alamat;
            //txtPemilik.Text =dialogForm.namacust;
            //txtNoKTP_SIM.Text = dialogForm.Noid;
            //txtTelp.Text = dialogForm.telpon;
            //txtIDMember.Text = dialogForm.idmember;
            if (this.SelectData != null)
            {
                this.SelectData(this, new EventArgs());
            }
        }
Exemplo n.º 2
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            frmLookupSPM ifrmDialog = new frmLookupSPM(searchArg, dt);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
            else
            {
                txtNoPol.Focus();
            }
        }