Beispiel #1
0
 private void cmdADD_Click(object sender, EventArgs e)
 {
     if (nBrow == 2)
     {
         string Kode = gridKode.SelectedCells[0].OwningRow.Cells["kKode"].Value.ToString();
         GL.Master.frmPerkiraanKoneksiArusKasHeaderUpdate ifrmChild = new ISA.Showroom.Finance.GL.Master.frmPerkiraanKoneksiArusKasHeaderUpdate(Kode, this);
         ifrmChild.Show();
     }
     else if (nBrow == 3)
     {
         if (gridDetail.SelectedCells.Count > 0)
         {
             Guid HeaderID = new Guid(gridHeader.SelectedCells[0].OwningRow.Cells["hRowID"].Value.ToString());
             frmPerkiraanKoneksiArusKasUpdate ifrmChild = new frmPerkiraanKoneksiArusKasUpdate(HeaderID, this);
             ifrmChild.Show();
         }
     }
 }
Beispiel #2
0
 private void cmdEdit_Click(object sender, EventArgs e)
 {
     if (nBrow == 3)
     {
         if (gridDetail.SelectedCells.Count > 0)
         {
             Guid   rowID  = new Guid(gridDetail.SelectedCells[0].OwningRow.Cells["dRowID"].Value.ToString());
             string noPerk = gridDetail.SelectedCells[0].OwningRow.Cells["dNoPerkiraan"].Value.ToString();
             string ket    = gridDetail.SelectedCells[0].OwningRow.Cells["dUraian"].Value.ToString();
             frmPerkiraanKoneksiArusKasUpdate ifrmChild = new frmPerkiraanKoneksiArusKasUpdate(noPerk, ket, rowID, this);
             ifrmChild.Show();
         }
     }
     else if (nBrow == 2 && GlobalVar.PerusahaanID == "HLD")
     {
         if (gridHeader.SelectedCells.Count > 0)
         {
             Guid   RowID  = (Guid)gridHeader.SelectedCells[0].OwningRow.Cells["hRowID"].Value;
             string Uraian = gridHeader.SelectedCells[0].OwningRow.Cells["hUraian"].Value.ToString();
             GL.Master.frmPerkiraanKoneksiArusKasHeaderUpdate ifrmChild = new ISA.Showroom.Finance.GL.Master.frmPerkiraanKoneksiArusKasHeaderUpdate(RowID, Uraian, this);
             ifrmChild.Show();
         }
     }
 }