예제 #1
0
        /// <summary>
        /// 作业点选择
        /// </summary>
        private void txtBtnWp_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            DlgWorkPoint dlg = new DlgWorkPoint();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                if (dlg.SelectedWorkPoint != null)
                {
                    curData.WpCode = dlg.SelectedWorkPoint.WCCode;
                    curData.WpName = dlg.SelectedWorkPoint.WCName;
                }
            }
        }
예제 #2
0
        /// <summary>
        /// 作业点选择
        /// </summary>
        private void txtBtnWp_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            DlgWorkPoint dlg = new DlgWorkPoint();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                if (dlg.SelectedWorkPoint != null)
                {
                    currentData.WpName = dlg.SelectedWorkPoint.WCName;
                    currentData.WpCode = dlg.SelectedWorkPoint.WCCode;
                    //txtBtnWp.EditValue = string.Format("({0}){1}", dlg.SelectedWorkPoint.WCBM, dlg.SelectedWorkPoint.WCName);
                }
            }
        }
예제 #3
0
 private void wizardPage1_PageCommit(object sender, EventArgs e)
 {
     if (wizardControl1.SelectedPageIndex == 1)
     {
         DlgWorkPoint dlg = new DlgWorkPoint();
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             if (dlg.SelectedWorkPoint != null)
             {
                 this.WpName        = dlg.SelectedWorkPoint.WCName;
                 this.WpCode        = dlg.SelectedWorkPoint.WCCode;
                 txtBtnWp.EditValue = string.Format("({0}){1}", dlg.SelectedWorkPoint.WCBM, dlg.SelectedWorkPoint.WCName);
                 vehSamples.LoadDataByWhere("WpCode=@WpCode And Sample_Mix=0", WpCode);
                 this.labelControl1.Text = vehSamples.Count.ToString();
             }
         }
     }
 }