/// <summary> /// 获取物品信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnGetGoods_Click(object sender, EventArgs e) { FormQueryInfo dialog = QueryInfoDialog.GetPartInfoOfElectronFile( dateTimePickerST.Value.Date, dateTimePickerET.Value.AddDays(1).Date); if (dialog.ShowDialog() == DialogResult.OK) { txtCode.Text = dialog["零部件编码"]; txtName.Text = dialog["零部件名称"]; txtSpec.Text = dialog["规格"]; txtBatchNo.Text = dialog["批次号"]; } }