コード例 #1
0
        private void RaiseSimpleSearchClickEvent()
        {
            APOChoosePopupSearchClickEventArgs arg = new APOChoosePopupSearchClickEventArgs();

            arg.Param.MainSearch = _tbSimpleSearch.Text;

            OnSearchClick(arg);
        }
コード例 #2
0
        private void RaiseAdvancedSearchClickEvent()
        {
            APOChoosePopupSearchClickEventArgs arg = new APOChoosePopupSearchClickEventArgs();

            arg.Param.MainSearch       = _tbSimpleSearch.Text;
            arg.Param.DossageFormName  = _tbDosageForm.Text.Trim();
            arg.Param.Unit             = _ddlUnit.SelectedItem != null ? _ddlUnit.SelectedItem.Text : String.Empty;
            arg.Param.ProducerName     = _tbProducer.Text.Trim();
            arg.Param.IsInDefaultStock = _cbIsProductPartOfDefaultStock.Checked;

            OnSearchClick(arg);
        }
コード例 #3
0
 protected void OnSearchClick(APOChoosePopupSearchClickEventArgs e)
 {
     try
     {
         if (SearchClick != null)
         {
             SearchClick(this, e);
         }
     }
     catch (Exception ex)
     {
         ServerLog.Instance.Error(ex);
     }
 }