Example #1
0
 private void getDetail()
 {
     try
     {
         //M_MaterInNo = M_MaterInNo.Text.Trim();
         txtMaterInNo.Text = M_MaterInNo.ToString();
         MesMaterInDetailBLL MaterInDetailBLL = new MesMaterInDetailBLL();
         var          rows        = MaterInDetailBLL.GetList(M_MaterInNo);
         MesBasketBLL BasketBLL   = new MesBasketBLL();
         var          Basket_rows = BasketBLL.GetList();
         for (int i = 0; i < Basket_rows.Count; i++)
         {
             comBasketType.Items.Add(Basket_rows[i].B_BasketName);
         }
         if (rows == null || rows.Count < 1)
         {
             //untCommon.InfoMsg("该入库单没有任何数据!");
             return;
         }
         dataGridView.DataSource = rows;
     }
     catch (Exception ex)
     {
         untCommon.ErrorMsg("物料入库编辑页面加载数据异常:" + ex.Message);
     }
 }
Example #2
0
        private void BracodePrintf_Load(object sender, EventArgs e)
        {
            MesBasketBLL BasketBLL   = new MesBasketBLL();
            var          Basket_rows = BasketBLL.GetList();

            for (int i = 0; i < Basket_rows.Count; i++)
            {
                comBasketType.Items.Add(Basket_rows[i].B_BasketName);
            }

            checkBox1.Checked = true;
            comGoods.Items.Clear();
            MesGoodsBLL GoodsBLL = new MesGoodsBLL();
            var         row      = GoodsBLL.GetList("", "");

            for (int i = 0; i < row.Count; i++)
            {
                comGoods.Items.Add(row[i].G_Code + "$" + row[i].G_Name);
            }

            txtBatch.Text = DateTime.Now.ToString("yyyyMMdd");
        }