Example #1
0
        private void _reBEAmount_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            object o = bandedGridView1.GetFocusedRowCellValue(_coMaterielID);

            if (o != null && o.ToString() != "0")
            {
                _materielID = int.Parse(bandedGridView1.GetFocusedRowCellValue(_coMaterielID).ToString());
                _brandID    = int.Parse(bandedGridView1.GetFocusedRowCellValue(_coBrandID).ToString());
                dtInfo.DefaultView.RowFilter = "(MaterielID=" + _materielID + ") And (BrandID=" + _brandID + ")";
                DataTable dtt = dtInfo.Clone();
                for (int i = 0; i < dtInfo.Rows.Count; i++)
                {
                    object br = dtInfo.Rows[i]["BrandID"];
                    object ma = dtInfo.Rows[i]["MaterielID"];
                    if (Convert.ToInt32(dtInfo.Rows[i]["BrandID"]) == Convert.ToInt32(bandedGridView1.GetFocusedRowCellValue(_coBrandID)) && Convert.ToInt32(dtInfo.Rows[i]["A"]) < 4 &&
                        Convert.ToInt32(dtInfo.Rows[i]["MaterielID"]) == Convert.ToInt32(bandedGridView1.GetFocusedRowCellValue(_coMaterielID)))
                    {
                        dtt.Rows.Add(dtInfo.Rows[i].ItemArray);
                    }
                }
                cResult r = new cResult();
                r.RowChanged += new RowChangedHandler(r_RowChanged);
                //Form fr = new Sell.SellTemForm(r, dtTem, _materielID, _brandID);
                Form fr = new Sell.frSellBackInfo(r, !t, dtt, bandedGridView1.GetFocusedRowCellDisplayText(_coMaterielID), bandedGridView1.GetFocusedRowCellDisplayText(_coBrandID));
                fr.ShowDialog();
            }
            else
            {
                XtraMessageBox.Show("请选择款号和商标!");
                return;
            }
        }
Example #2
0
        /// <summary>
        /// 在入库明细中填写入库数量
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            int       _taskID = 0;
            DataTable dtTem   = dtInfo.Clone();

            _taskID = Convert.ToInt32(lookUpEdit1.EditValue);
            if (dtInfo.Rows.Count > 0)
            {
                DataRow[] foundRows = dtInfo.Select("(TaskID='" + _taskID + "')");
                if (foundRows.Length > 0)
                {
                    for (int i = 0; i < foundRows.Length; i++)
                    {
                        DataRow dr = dtTem.NewRow();
                        dr.ItemArray = foundRows[i].ItemArray;
                        dtTem.Rows.Add(dr);
                    }
                }
            }
            cResult r = new cResult();

            r.RowChanged += new RowChangedHandler(r_RowChanged);
            Form fr = new WMS.P2dTemForm(r, dtTem, _taskID, _MainID);

            fr.ShowDialog();
        }
Example #3
0
        private void buttonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            if (modMM.ID != 0)
            {
                return;
            }
            Hownet.BLL.ProduceTaskMain bllPTM = new Hownet.BLL.ProduceTaskMain();
            li.Clear();
            string tem = buttonEdit1.Text;

            string[] split = tem.Split(new Char[] { ',' });
            foreach (string a in split)
            {
                if (a.Trim() != "")
                {
                    li.Add(bllPTM.GetID(a.Trim()).ToString());
                }
            }
            cResult r = new cResult();

            r.TextChanged += new TextChangedHandler(r_TextChanged);
            Form fr = new ERP.WuKong.PeiLiaoTem(r, li);

            fr.ShowDialog();
        }
Example #4
0
 public P2dTemForm(cResult rs, DataTable dt, int TaskID, int MainID)
     : this()
 {
     r       = rs;
     dtInfo  = dt;
     _taskID = TaskID;
     _mainID = MainID;
 }
Example #5
0
        private void barButtonItem1_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            BasicClass.cResult cr = new cResult();
            cr.TextChanged += new TextChangedHandler(cr_TextChanged);
            Form fr = new frStockLinLiao(cr, 0, _MainID);

            fr.ShowDialog();
        }
Example #6
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            BasicClass.cResult r = new cResult();
            r.RowChanged += new RowChangedHandler(r_RowChanged);
            Form fr = new frNeedInfoList(r, dtSBI);

            fr.ShowDialog();
        }
Example #7
0
 public frSellInfoTem(cResult cr, bool t, DataTable Dt, string Materiel, string Brand)
     : this()
 {
     r          = cr;
     _isCanEdit = t;
     dt         = Dt;
     _materiel  = Materiel;
     _brand     = Brand;
 }
Example #8
0
 public SellTemForm(cResult rs, bool t, DataTable dt, int MaterielID, int BrandID, int DepotID)
     : this()
 {
     r           = rs;
     _isCanEdit  = t;
     dtInfo      = dt;
     _materielID = MaterielID;
     _brandID    = BrandID;
     _depotID    = DepotID;
 }
Example #9
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     if (Convert.ToInt32(_leBrandID.editVal) > 0 && Convert.ToInt32(_leMaterielID.editVal) > 0)
     {
         int _brandID          = Convert.ToInt32(_leBrandID.editVal);
         int _materielID       = Convert.ToInt32(_leMaterielID.editVal);
         BasicClass.cResult cr = new cResult();
         cr.RowChanged += new RowChangedHandler(cr_RowChanged);
         DataTable dtt = dtInfo.Clone();
         for (int i = 0; i < dtInfo.Rows.Count; i++)
         {
             object br = dtInfo.Rows[i]["BrandID"];
             object ma = dtInfo.Rows[i]["MaterielID"];
             if (Convert.ToInt32(dtInfo.Rows[i]["BrandID"]) == Convert.ToInt32(_leBrandID.editVal) && Convert.ToInt32(dtInfo.Rows[i]["A"]) < 4 &&
                 Convert.ToInt32(dtInfo.Rows[i]["MaterielID"]) == Convert.ToInt32(_leMaterielID.editVal))
             {
                 dtt.Rows.Add(dtInfo.Rows[i].ItemArray);
             }
         }
         Form fr = new frP2DAmount(cr, "款号:" + _leMaterielID.valStr + ",商标:" + _leBrandID.valStr, !t, dtt, _materielID, _brandID);
         fr.ShowDialog();
     }
 }
Example #10
0
 public frNavigation(cResult cr)
     : this()
 {
     r = cr;
 }
Example #11
0
 public ucBillAdd(cResult r)
     : this()
 {
     this.r = r;
 }