예제 #1
0
파일: FrmMain.cs 프로젝트: adheegm/desktop
        public void insertSingleSurat(FrmSuratMasuk frmSuratMasuk)
        {
            GridViewDataRowInfo dataRowInfo = new GridViewDataRowInfo(this.gvSuratMasuk.MasterView);
            dataRowInfo.Cells[0].Value = frmSuratMasuk.nomor_agenda;
            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 = string.Format("{0:dd MMM yyyy}", frmSuratMasuk.dtTanggalMasuk.Value);
            dataRowInfo.Cells[4].Value = frmSuratMasuk.dropDownTipe.Text;
            dataRowInfo.Cells[5].Value = frmSuratMasuk.txtNomorSurat.Text;
            dataRowInfo.Cells[6].Value = string.Format("{0:dd MMM yyyy}", frmSuratMasuk.dtTanggalSurat.Value);
            dataRowInfo.Cells[7].Value = frmSuratMasuk.txtAsalSurat.Text;
            dataRowInfo.Cells[8].Value = frmSuratMasuk.txtPerihalSurat.Text;
            dataRowInfo.Cells[9].Value = frmSuratMasuk.dropDownTingkatKeamanan.Text;
            dataRowInfo.Cells[10].Value = frmSuratMasuk.txtRingkasanIsi.Text;
            dataRowInfo.Cells[11].Value = frmSuratMasuk.txtLampiran.Text;
            dataRowInfo.Cells[12].Value = T8UserLoginInfo.Username;
            this.gvSuratMasuk.Rows.Insert(0, dataRowInfo);

            object[] itmRow = new object[12];
            itmRow[0] = frmSuratMasuk.nomor_agenda;
            itmRow[1] = DateTime.Now;
            itmRow[2] = string.Format("{0:dd MMM yyyy}", frmSuratMasuk.dtTanggalMasuk.Value);
            itmRow[3] = frmSuratMasuk.dropDownTipe.Text;
            itmRow[4] = frmSuratMasuk.txtNomorSurat.Text;
            itmRow[5] = string.Format("{0:dd MMM yyyy}", frmSuratMasuk.dtTanggalSurat.Value);
            itmRow[6] = frmSuratMasuk.txtAsalSurat.Text;
            itmRow[7] = frmSuratMasuk.txtPerihalSurat.Text;
            itmRow[8] = frmSuratMasuk.dropDownTingkatKeamanan.Text;
            itmRow[9] = frmSuratMasuk.txtRingkasanIsi.Text;
            itmRow[10] = frmSuratMasuk.txtLampiran.Text;
            itmRow[11] = T8UserLoginInfo.Username;
            this.dt.Rows.Add(itmRow);
            this.count_no_limit++;
            lblRecordCount.Text = this.count_no_limit.ToString() + " data";
        }
예제 #2
0
파일: FrmMain.cs 프로젝트: adheegm/desktop
 private void InputSurat()
 {
     FrmSuratMasuk frmSuratMasuk = new FrmSuratMasuk(this);
     frmSuratMasuk.ShowDialog();
 }