コード例 #1
0
 private void btnCARI_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(txtKODECUSTOMER.Text))
     {
         return;
     }
     if (string.IsNullOrEmpty(dtINVOICEDATE.Value.ToString("yyyy-MM-dd").ToString()))
     {
         MessageBox.Show("SILAHKAN PILIH TANGGAL", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Stop);
         return;
     }
     else
     {
         VIEW.FormVIEWCUSTOMER frm = new LOGISTICMANAGAMENTSYSTEM.VIEW.FormVIEWCUSTOMER(null, this, 2);
         frm.ShowDialog();
     }
 }
 private void txtKODECUSTOMER_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (!string.IsNullOrEmpty(txtKODECUSTOMER.Text)) return;
         if (string.IsNullOrEmpty(dtINVOICEDATE.Value.ToString("yyyy-MM-dd").ToString()))
         {
             MessageBox.Show("SILAHKAN PILIH TANGGAL", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Stop);
             return;
         }
         else
         {
             VIEW.FormVIEWCUSTOMER frm = new LOGISTICMANAGAMENTSYSTEM.VIEW.FormVIEWCUSTOMER(null, this, 2);
             frm.ShowDialog();
         }
     }
     if (e.KeyCode == Keys.Back)
     {
         CLEAR();
     }
 }
コード例 #3
0
 private void txtKODECUSTOMER_KeyUp(object sender, KeyEventArgs e)
 {
     VIEW.FormVIEWCUSTOMER frm = new LOGISTICMANAGAMENTSYSTEM.VIEW.FormVIEWCUSTOMER(this, null, 1);
     frm.ShowDialog();
 }
コード例 #4
0
 private void btnCUSTOMER(object sender, EventArgs e)
 {
     VIEW.FormVIEWCUSTOMER frm = new LOGISTICMANAGAMENTSYSTEM.VIEW.FormVIEWCUSTOMER(this, null, 1);
     frm.ShowDialog();
 }