private void Load_Order_ProductByOrdrtId(int p) { R_Order_ProductBll rop = new R_Order_ProductBll(); dgvROrderProduct.AutoGenerateColumns = false;//禁止自动生成列 dgvROrderProduct.DataSource = rop.GetR_Order_ProductByOrderId(p); dgvROrderProduct.ClearSelection();//清除选中项 }
//显示点的菜 private void LoadR_Order_ProductByOrdrtId(int p) { R_Order_ProductBll ropBll = new R_Order_ProductBll(); dgvROrderProduct.AutoGenerateColumns = false; dgvROrderProduct.DataSource = ropBll.GetR_Order_ProductByOrderId(p); dgvROrderProduct.ClearSelection();//清除默认选中项 //显示总金额和总数量 R_Order_Product rop = ropBll.GetCountAndSumMoney(Convert.ToInt32(labOrderId.Text)); //总金额 labSumMoney.Text = rop.Money.ToString(); labCount.Text = rop.Count.ToString(); //总数量 }