コード例 #1
0
        private void OnRecordQuery()
        {
            StringBuilder strWhere = new StringBuilder();

            strWhere.AppendFormat("inputTime between '{0}' and '{1}' ",
                                  queryFilter.StartDate.ToString("yyyy-MM-dd 0:00:00"),
                                  queryFilter.EndDate.ToString("yyyy-MM-dd 0:00:00"));
            string logQueryCondition = strWhere.ToString();
            DelegateQueryRecord dlgt = new DelegateQueryRecord(AsyQueryRecord);
            IAsyncResult        ar   = dlgt.BeginInvoke(logQueryCondition, null, dlgt);

            //AsyQueryRecord(logQueryCondition);
        }
コード例 #2
0
        private void OnRecordQuery()
        {
            StringBuilder strWhere = new StringBuilder();

            strWhere.AppendFormat("TRX_TIME between '{0}' and '{1}' ",
                                  queryFilter.StartDate.ToString("yyyy-MM-dd 0:00:00"),
                                  queryFilter.EndDate.ToString("yyyy-MM-dd 0:00:00"));
            if (this.checkBarcode.Checked)
            {
                strWhere.AppendFormat(" and SERIAL_NUMBER='{0}'", this.textBoxBarcode.Text);
            }
            string logQueryCondition = strWhere.ToString();
            DelegateQueryRecord dlgt = new DelegateQueryRecord(AsyQueryRecord);
            IAsyncResult        ar   = dlgt.BeginInvoke(logQueryCondition, this.comboBox1.Text, null, dlgt);

            //AsyQueryRecord(logQueryCondition);
        }