Beispiel #1
0
        /// <summary>
        /// 查找留存样
        /// </summary>
        private void btnLoadVehData_Click(object sender, EventArgs e)
        {
            QC_Sample_Mix sample = null;
            DbEntityTable <QC_MixCheckGroup> mixCgrp = new DbEntityTable <QC_MixCheckGroup>();

            mixCgrp.LoadDataByWhere("main.StoreCode=@StoreCode", txtStoreCode.Text.Trim());
            if (mixCgrp.Count > 0)
            {
                sample = QC_Sample_Mix.GetByID(mixCgrp[0].Sample_Mix_ID);
            }
            if (sample != null)
            {
                currentData.CopyData(sample);
            }
            else
            {
                MessageBox.Show("没有找到");
            }
        }
Beispiel #2
0
        private void ReCheck_Load(object sender, EventArgs e)
        {
            this.sourceCurData.DataSource = curData;
            label2.Text = zyzydh;
            if (zyzydh != "")
            {
                QC_Sample_Mix sample = QC_Sample_Mix.GetByZydh(zyzydh);

                if (sample != null)
                {
                    if (curData.CheckItems.Count == 0)
                    {
                        curData.CopyData(sample);
                    }

                    curData.SupplierCode = sample.SupplierCode;
                    curData.SupplierName = sample.SupplierName;
                    curData.SampleType   = SampleType.检样;
                    curData.SampleState  = SampleState.组批完成;
                    curData.WLLX         = sample.WLLX;
                }
            }
        }