private void save()
        {
            etc = new EntRemoteTransactionClient();
            ers = new EntRealisasi();

            foreach (DataGridViewRow row in dgvWorkSheetRealisasi.Rows)
            {
                ers.Iddetailkegiatan = row.Cells["iddetailkegiatan"].Value.ToString();
                ers.Kuantitas        = Convert.ToInt32(row.Cells["kuantitas"].Value.ToString());
                ers.Kualitas         = Convert.ToInt32(row.Cells["kualitas"].Value.ToString());
                ers.Jumlahwaktu      = Convert.ToInt32(row.Cells["waktu"].Value.ToString());
                ers.Satuanwaktu      = row.Cells["satuanwaktu"].Value.ToString();
                ers.Biaya            = Convert.ToDouble(row.Cells["biaya"].Value.ToString());
                ers.Periodeawal      = sendPeriodeAwal;
                ers.Periodeakhir     = sendPeriodeAkhir;

                etc.Text = setData();

                condition = irr.save(ers, etc);
            }

            if (condition)
            {
                sendDataToServer();

                FrmDataRealisasi frm = new FrmDataRealisasi(viewForm, sendIpAddress, sendNama, sendJabatan);
                viewForm(frm);
            }
            else
            {
                message = "Data gagal disimpan";
                MessageBox.Show(message, "Pesan Kesalahan - SIMKAP 1.0.0",
                                MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 2
0
 private void mtDataKelola_Click(object sender, EventArgs e)
 {
     if (procces.Equals("Sasaran Kerja",
                        StringComparison.InvariantCultureIgnoreCase))
     {
         FrmViewDataSKP frm = new FrmViewDataSKP(sendnama, sendjabatan, viewForm, sendipaddress, frmMenuClient, this);
         viewForm(frm);
     }
     else if (procces.Equals("Capaian Harian",
                             StringComparison.InvariantCultureIgnoreCase))
     {
         FrmViewDataCapaianKinerjaHarian frm = new FrmViewDataCapaianKinerjaHarian(viewForm, sendjabatan, sendipaddress,
                                                                                   sendnama, frmMenuClient, this);
         viewForm(frm);
     }
     else if (procces.Equals("Realisasi",
                             StringComparison.InvariantCultureIgnoreCase))
     {
         FrmDataRealisasi frm = new FrmDataRealisasi(viewForm, sendipaddress, sendnama, sendjabatan);
         viewForm(frm);
     }
     else if (procces.Equals("Ukur Sasaran",
                             StringComparison.InvariantCultureIgnoreCase))
     {
         FrmDataUkurSasaran frm = new FrmDataUkurSasaran(viewForm, sendipaddress, sendnama, sendjabatan);
         viewForm(frm);
     }
     else if (procces.Equals("Perilaku Kerja",
                             StringComparison.InvariantCultureIgnoreCase))
     {
         FrmDataPrilakuKerja frm = new FrmDataPrilakuKerja(viewForm, sendipaddress, sendnama, sendjabatan,
                                                           frmMenuClient, this);
         viewForm(frm);
     }
 }
        private void mtDataRealisasiKegiatan_Click(object sender, EventArgs e)
        {
            FrmDataRealisasi frm = new FrmDataRealisasi(viewForm, sendIpAddress, sendNama, sendJabatan);

            viewForm(frm);
        }