private void txtCode_Click(object sender, EventArgs e) { FormPresaleRequisition from = new FormPresaleRequisition( ); from.StartPosition = FormStartPosition.CenterParent; if (from.ShowDialog( ) != DialogResult.OK) { return; } FishEntity.ReceiptRecordEntity _list = from.getList; txtCode.Text = _list.codeOfYu.ToString(); txtPrice.Text = _list.codePrice.ToString( ); txtFreight.Text = _list.codeYunFei.ToString( ); txtRebate.Text = _list.codeHuiKou.ToString( ); }
public override int Query ( ) { FormPresaleRequisition from = new FormPresaleRequisition ( ); //DialogResult result = from . ShowDialog ( ); //from . ShowDialog ( ); from . StartPosition = FormStartPosition . CenterParent; if ( from . ShowDialog ( ) != DialogResult . OK ) return 1; dataGridView1 . Rows . Clear ( ); txtcode . Text = string . Empty; txtcode . Text = from . getCode; GenerateContect ( ); if ( result == true ) GenerateBody ( ); return 1; }