예제 #1
0
 private void txtconProtein_Click(object sender, EventArgs e)
 {
     if (_bll.Exists(txtCodeNum.Text))
     {
         FormPurchaseAppFishInfo form = new FormPurchaseAppFishInfo(txtCodeNum.Text);
         if (form.ShowDialog() != DialogResult.OK)
         {
             return;
         }
         FishEntity.PurchaseAppFishInfoEntity Caig = form.getModel;
         if (Caig == null)
         {
             return;
         }
         txtconProtein.Text = Caig.conProtein;
         txtconTVN.Text     = Caig.conTVN;
         txtconFFA.Text     = Caig.conFFA;
         txtconZF.Text      = Caig.conZF;
         txtconSHY.Text     = Caig.conSHY;
         txtconS.Text       = Caig.conS;
         txtconSF.Text      = Caig.conSF;
         txtconZA.Text      = Caig.conZA;
         txtconHF.Text      = Caig.conHF;
         txtconSJ.Text      = Caig.conSJ;
         txtconLAS.Text     = Caig.conLAS;
         txtconDAS.Text     = Caig.conDAS;
         txtDollar.Text     = Caig.priceMY.ToString();
         AddShuiYin.ClearWatermark(txtconProtein);
     }
     else
     {
         MessageBox.Show("采购申请单,订单明细无数据!");
     }
 }
예제 #2
0
 //订单拆分明细
 private void btnFishId_Click(object sender, EventArgs e)
 {
     if (_bll.Exists(txtCodeNum.Text))
     {
         FormPurchaseAppFishInfo form = new FormPurchaseAppFishInfo(txtCodeNum.Text);
         form.Show();
     }
     else
     {
         MessageBox.Show("请添加基础数据!");
     }
 }
예제 #3
0
 private void txtfishId_DoubleClick(object sender, EventArgs e)
 {
     //FormFish form = new FormFish ( );
     //if ( form . ShowDialog ( ) == DialogResult . OK )
     //{
     //    txtfishId . Text = form . getCode;
     //}
     if (_bll.ExistsCaigou(txtcodeNum.Text))
     {
         FormPurchaseAppFishInfo form = new FormPurchaseAppFishInfo(txtcodeNum.Text);
         if (form.ShowDialog() == DialogResult.OK)
         {
             txtfishId.Text = form.getModel.fishId;
         }
     }
     else
     {
         MessageBox.Show("请添加基础数据!");
     }
 }
예제 #4
0
 private void txtFishMealId_Click(object sender, EventArgs e)
 {
     FishBll.Bll.PurcurementContractBll bll = new FishBll.Bll.PurcurementContractBll();
     if (bll.Exists(txtCNumbering.Text))
     {
         FormPurchaseAppFishInfo form = new FormPurchaseAppFishInfo(txtCNumbering.Text);
         if (form.ShowDialog() != DialogResult.OK)
         {
             return;
         }
         FishEntity.PurchaseAppFishInfoEntity Caig = form.getModel;
         if (Caig == null)
         {
             return;
         }
         txtFishMealId.Text = Caig.fishId;
     }
     else
     {
         MessageBox.Show("采购申请单,订单明细无数据!");
     }
 }