コード例 #1
0
ファイル: FrmPenginapan.cs プロジェクト: codebe/sim-rs
        void TampilCellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int currentRow = int.Parse(e.RowIndex.ToString());

            if (tampil.Columns[e.ColumnIndex] == CekOut && currentRow >= 0)
            {
                string    id     = tampil[0, currentRow].Value.ToString();
                string    nomor  = tampil[1, currentRow].Value.ToString();
                string    nama   = tampil[2, currentRow].Value.ToString();
                string    tipe   = tampil[3, currentRow].Value.ToString();
                int       harga  = Convert.ToInt32(tampil[4, currentRow].Value.ToString());
                string    cekin  = tampil[5, currentRow].Value.ToString();
                string    cekout = tampil[6, currentRow].Value.ToString();
                int       lama   = Convert.ToInt32(tampil[7, currentRow].Value.ToString());
                string    total  = tampil[8, currentRow].Value.ToString();
                string    id_tm  = tampil[9, currentRow].Value.ToString();
                string    id_tp  = tampil[10, currentRow].Value.ToString();
                FrmCekOut f8     = new FrmCekOut();
                f8.id_rs     = id;
                f8.nmr_kmr   = nomor;
                f8.nm_tm     = nama;
                f8.tp_kmr    = tipe;
                f8.hrg_kmr   = harga;
                f8.lm_inap   = lama;
                f8.cek_in    = cekin;
                f8.cek_out   = cekout;
                f8.id_tm     = id_tm;
                f8.id_tp_kmr = id_tp;
                f8.id_user   = id_user;
                f8.Show();
            }
        }
コード例 #2
0
ファイル: FrmPenginapan.cs プロジェクト: codebe/sim-rs
 void TampilCellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     int currentRow = int.Parse(e.RowIndex.ToString());
     if (tampil.Columns[e.ColumnIndex] == CekOut && currentRow >= 0)
     {
         string id = tampil[0, currentRow].Value.ToString();
         string nomor = tampil[1, currentRow].Value.ToString();
         string nama = tampil[2, currentRow].Value.ToString();
         string tipe = tampil[3, currentRow].Value.ToString();
         int harga = Convert.ToInt32(tampil[4, currentRow].Value.ToString());
         string cekin = tampil[5, currentRow].Value.ToString();
         string cekout = tampil[6, currentRow].Value.ToString();
         int lama = Convert.ToInt32(tampil[7, currentRow].Value.ToString());
         string total = tampil[8, currentRow].Value.ToString();
         string id_tm = tampil[9, currentRow].Value.ToString();
         string id_tp = tampil[10, currentRow].Value.ToString();
         FrmCekOut f8 = new FrmCekOut();
         f8.id_rs = id;
         f8.nmr_kmr = nomor;
         f8.nm_tm = nama;
         f8.tp_kmr = tipe;
         f8.hrg_kmr = harga;
         f8.lm_inap = lama;
         f8.cek_in = cekin;
         f8.cek_out = cekout;
         f8.id_tm = id_tm;
         f8.id_tp_kmr = id_tp;
         f8.id_user = id_user;
         f8.Show();
     }
 }