private void txtcodeNumContract_DoubleClick(object sender, EventArgs e)
        {
            FormPurcurementContract form = new FormPurcurementContract( );

            if (form.ShowDialog( ) == DialogResult.OK)
            {
                txtcodeNumContract.Text = form.getCode;
                txtcodeNum.Text         = form.getCodeNum;
            }
        }
        private void txtcodeNumContract_DoubleClick(object sender, EventArgs e)
        {
            FormPurcurementContract form = new FormPurcurementContract( );

            if (form.ShowDialog( ) == DialogResult.OK)
            {
                FishEntity.PurcurementContractEntity _model = form.getModel;
                txtTVN.Text     = _model.conTVN;
                txtsand.Text    = _model.conS;
                txtprotein.Text = _model.conProtein;
                txtfat.Text     = _model.conZF;
                txtwater.Text   = _model.conSF;
                txtza.Text      = _model.conZA;
                txthf.Text      = _model.conHF;
                txtshy.Text     = _model.conSHY;
            }
        }
Beispiel #3
0
        private void txtpurchasecode_Click(object sender, EventArgs e)
        {
            //FormPurchaseRequisition from = new FormPurchaseRequisition ( );
            //from . StartPosition = FormStartPosition . CenterParent;
            //if ( from . ShowDialog ( ) != DialogResult . OK )
            //    return;
            //txtpurchasecode . Text = from . fish . ContractNo;
            //txtPurchasingUnit . Text = from . fish . Supplier;
            //txtbackDeposit . Text = from . fish . Openbank;
            //txtPayAcount . Text = from . fish . Accountnumber;
            FormPurcurementContract form = new FormPurcurementContract( );

            if (form.ShowDialog( ) != DialogResult.OK)
            {
                return;
            }
            FishEntity.PurcurementContractEntity model = form.getModel;
            if (model == null)
            {
                return;
            }
            txtpurchasecode.Text = model.codeNumContract;
            txtCNumbering.Text   = model.codeNum;
        }