Beispiel #1
0
        private void MeasureDataQuery_Load(object sender, EventArgs e)
        {
            this.Cursor   = Cursors.WaitCursor;
            m_BaseInfo.ob = this.ob;
            m_BaseInfo.GetBFData(this.ultraComboEditor1, "QC");

            if (Constant.WaitingForm == null)
            {
                Constant.WaitingForm = new WaitingForm();
            }

            Constant.WaitingForm.ShowToUser = true;
            Constant.WaitingForm.Show();
            Constant.WaitingForm.Update();

            try
            {
                if (Constant.RunPath == "")
                {
                    Constant.RunPath = System.Environment.CurrentDirectory;
                }
            }
            catch (System.Exception ee)
            {
                MessageBox.Show(ee.ToString());
            }

            try
            {
                this.dateBegin.Value = DateTime.Today;
                this.dateEnd.Value   = DateTime.Today.AddDays(1).AddSeconds(-1);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
            }
            //Constant.SetViewStyle(this);
            cbDateSel_ItemAdd();
            this.cbDateField.SelectedIndex = 1;
            StrDateFieldSel = cbDateField.SelectedValue.ToString();
            //ControlerInit();
            //QueryAndBindJLGrid();
            //BindingCboxDatasource();
            _carWeightDataManage            = new CarWeightDataManage(this.ob);
            this.Cursor                     = Cursors.Default;
            Constant.WaitingForm.ShowToUser = false;
            Constant.WaitingForm.Close();
        }
Beispiel #2
0
 private void MeasureDataOneQuery_Load(object sender, EventArgs e)
 {
     m_BaseInfo.ob = this.ob;
     m_BaseInfo.GetBFData(this.ultraComboEditor1, "QC");
     DataGridInit();
     Query();
     _carWeightDataManage = new CarWeightDataManage(this.ob);
     //QueryYCBData();
     try
     {
         this.BeginTime.Value = DateTime.Today;
         this.EndTime.Value   = DateTime.Today.AddDays(1).AddSeconds(-1);
     }
     catch (Exception ex)
     {
         Debug.WriteLine(ex.Message);
     }
 }
Beispiel #3
0
 private void MeasureDataOneQuery_Load(object sender, EventArgs e)
 {
     m_BaseInfo.ob = this.ob;
     m_BaseInfo.GetBFData(this.ultraComboEditor1, "QC");
     DataGridInit();
     Query();
     _carWeightDataManage = new CarWeightDataManage(this.ob);
     //QueryYCBData();
     try
     {
         this.BeginTime.Value = DateTime.Today;
         this.EndTime.Value = DateTime.Today.AddDays(1).AddSeconds(-1);
     }
     catch (Exception ex)
     {
         Debug.WriteLine(ex.Message);
     }
 }
Beispiel #4
0
        private void MeasureDataQuery_Load(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            m_BaseInfo.ob = this.ob;
            m_BaseInfo.GetBFData(this.ultraComboEditor1, "QC");

            if (Constant.WaitingForm == null)
            {
                Constant.WaitingForm = new WaitingForm();
            }

            Constant.WaitingForm.ShowToUser = true;
            Constant.WaitingForm.Show();
            Constant.WaitingForm.Update();

            try
            {
                if (Constant.RunPath == "")
                {
                    Constant.RunPath = System.Environment.CurrentDirectory;
                }
            }
            catch (System.Exception ee)
            {
                MessageBox.Show(ee.ToString());
            }

            try
            {
                this.dateBegin.Value = DateTime.Today;
                this.dateEnd.Value = DateTime.Today.AddDays(1).AddSeconds(-1);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
            }
            //Constant.SetViewStyle(this);
            cbDateSel_ItemAdd();
            this.cbDateField.SelectedIndex = 1;
            StrDateFieldSel = cbDateField.SelectedValue.ToString();
            //ControlerInit();
            //QueryAndBindJLGrid();
            //BindingCboxDatasource();
            _carWeightDataManage = new CarWeightDataManage(this.ob);
            this.Cursor = Cursors.Default;
            Constant.WaitingForm.ShowToUser = false;
            Constant.WaitingForm.Close();
        }