Example #1
0
 public void UpdateSuratKeluar(Surat.FrmEditSuratKeluar _frmEditSurat, string _nomor_agenda)
 {
     for (int i = 0; i < gvSuratKeluar.RowCount; i++)
     {
         if (_nomor_agenda == gvSuratKeluar.MasterView.Rows[i].Cells[0].Value.ToString())
         {
             gvSuratKeluar.MasterView.Rows[i].Cells[4].Value = string.Format("{0:dd MMM yyyy}", _frmEditSurat.dtTanggalKirim.Value); 
             gvSuratKeluar.MasterView.Rows[i].Cells[5].Value = _frmEditSurat.txtTujuan.Text;
             gvSuratKeluar.MasterView.Rows[i].Cells[6].Value = _frmEditSurat.txtPerihalSurat.Text;
             gvSuratKeluar.MasterView.Rows[i].Cells[7].Value = _frmEditSurat.dropDownTingkatKeamanan.Text;
             gvSuratKeluar.MasterView.Rows[i].Cells[8].Value = _frmEditSurat.txtRingkasanIsi.Text;
             gvSuratKeluar.MasterView.Rows[i].Cells[9].Value = _frmEditSurat.txtLampiran.Text;
             break;
         }
     }
 }
Example #2
0
 public FrmInfoPengiriman(Surat.FrmInfoSuratKeluar _frmDetailSurat, string _nomor_agenda)
 {
     InitializeComponent();
     this.nomor_agenda = _nomor_agenda;
     this.frmDetailSuratKeluar = _frmDetailSurat;
 }
Example #3
0
        public void insertSingleSuratKeluar(Surat.FrmSuratKeluar frmSuratKeluar)
        {
            GridViewDataRowInfo dataRowInfo = new GridViewDataRowInfo(this.gvSuratKeluar.MasterView);
            dataRowInfo.Cells[0].Value = frmSuratKeluar.nomor_surat;
            dataRowInfo.Cells[1].Value = string.Format("{0:dd MMM yyyy}", DateTime.Now);
            dataRowInfo.Cells[2].Value = string.Format("{0:HH:mm:ss}", DateTime.Now);
            dataRowInfo.Cells[3].Value = frmSuratKeluar.ddKategori.Text;
            dataRowInfo.Cells[4].Value = string.Format("{0:dd MMM yyyy}", frmSuratKeluar.dtTanggalKirim.Value);
            dataRowInfo.Cells[5].Value = frmSuratKeluar.txtTujuan.Text;
            dataRowInfo.Cells[6].Value = frmSuratKeluar.txtPerihalSurat.Text;
            dataRowInfo.Cells[7].Value = frmSuratKeluar.dropDownTingkatKeamanan.Text;
            dataRowInfo.Cells[8].Value = frmSuratKeluar.txtRingkasanIsi.Text;
            dataRowInfo.Cells[9].Value = frmSuratKeluar.txtLampiran.Text;
            dataRowInfo.Cells[10].Value = T8UserLoginInfo.Username;
            this.gvSuratKeluar.Rows.Insert(0, dataRowInfo);

            object[] itmRow = new object[10];
            itmRow[0] = frmSuratKeluar.nomor_surat;
            itmRow[1] = DateTime.Now;
            itmRow[2] = frmSuratKeluar.ddKategori.Text;
            itmRow[3] = string.Format("{0:dd MMM yyyy}", frmSuratKeluar.dtTanggalKirim.Value);
            itmRow[4] = frmSuratKeluar.txtTujuan.Text;
            itmRow[5] = frmSuratKeluar.txtPerihalSurat.Text;
            itmRow[6] = frmSuratKeluar.dropDownTingkatKeamanan.Text;
            itmRow[7] = frmSuratKeluar.txtRingkasanIsi.Text;
            itmRow[8] = frmSuratKeluar.txtLampiran.Text;
            itmRow[9] = T8UserLoginInfo.Username;
            this.dtSK.Rows.Add(itmRow);
            this.count_no_limitSK++;
            lblRecordCount.Text = this.count_no_limitSK.ToString() + " data";
        }