コード例 #1
0
 private void btnClear_Click(object sender, EventArgs e)
 {
     document = null;
     CrViewer.ReportSource      = null;
     dtpFromDate.Value          = DateTime.Now;
     dtpToDate.Value            = DateTime.Now;
     txtSOrderNo.Text           = string.Empty;
     SelectedSO                 = string.Empty;
     txtProductCode.Text        = string.Empty;
     txtProductName.Text        = string.Empty;
     cmbWarehouse.SelectedIndex = 0;
     //LookUpEdit.EditValue = -1;
     gridLookUpEdit1View.ClearSelection();
     LookUpEdit.Text      = "";
     LookUpEdit.EditValue = null;
     LookUpEdit.RefreshEditValue();
     chkAlldate.Checked = true;
     dtpAsOn.Value      = DateTime.Now;
     dtpFromDate.Focus();
 }