示例#1
0
        private void 添加上传标准_Click(object sender, EventArgs e)
        {
            DlgMaterial dlg = new DlgMaterial();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                if (dlg.SelectedMaterial != null)
                {
                    QC_Sample_zdpdyj pdyj = new QC_Sample_zdpdyj();
                    pdyj.matname = dlg.SelectedMaterial.InvName;
                    pdyj.matcode = dlg.SelectedMaterial.InvCode;
                    pdyj.WLLX    = dlg.SelectedMaterial.WLLX;
                    yjs.Add(pdyj);
                }
            }
        }
示例#2
0
        private void 添加物料_Click(object sender, EventArgs e)
        {
            QC_Material_wl wl  = new QC_Material_wl();
            DlgMaterial    dlg = new DlgMaterial();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                if (dlg.SelectedMaterial != null)
                {
                    wl.MatNcId = dlg.SelectedMaterial.PK_INVBASDOC;
                    wl.MatCode = dlg.SelectedMaterial.InvCode;
                    wl.MatName = dlg.SelectedMaterial.InvName;
                    wl.InUse   = dlg.SelectedMaterial.InUse;
                }
                wls.Add(wl);
                wls.Save();
            }
        }