Example #1
0
        private void CallDataTrxData()
        {
            DataSet _ds = null;

            try
            {
                LinkedList _llstSearchCondition = new LinkedList();
                _llstSearchCondition.Add(Definition.DynamicCondition_Condition_key.MODEL_CONFIG_RAWID, ChartVariable.MODEL_CONFIG_RAWID);
                _llstSearchCondition.Add(Definition.DynamicCondition_Condition_key.START_DTTS, this.bDtStart.Value.ToString("yyyy-MM-dd") + " 00:00:00");
                _llstSearchCondition.Add(Definition.DynamicCondition_Condition_key.END_DTTS, this.bDtEnd.Value.ToString("yyyy-MM-dd") + " 23:59:59");

                _ds = _wsSPC.GetDataTRXData(_llstSearchCondition.GetSerialData());
                if (_ds == null)
                {
                    MSGHandler.DisplayMessage(MSGType.Information, MSGHandler.GetMessage("INFORMATION_NODATA"));
                    return;
                }

                ChartVariable.dtResource = _ds.Tables[0];
                this.pnlChart.Controls.Clear();
                InitializeCondition();
            }
            catch (Exception ex)
            {
                MSGHandler.DisplayMessage(MSGType.Error, ex.Message);
            }
            finally
            {
                _ds = null;
            }
        }