private void Datagrid2_UpdateCommand(object source, DataGridCommandEventArgs e)
        {
            decimal EnterQuantity = Math.Round(decimal.Parse(e.Item.Cells[8].Text.Trim()), 2);

            Entity.RdRecordDetail rrd = new RdRecordDetail();
            rrd.cnnAutoID   = int.Parse(e.Item.Cells[0].Text.Trim());
            rrd.cnnQuantity = Math.Round(decimal.Parse(((TextBox)e.Item.Cells[9].Controls[0]).Text.Trim()), 2);
            rrd.cnvcCommens = ((TextBox)e.Item.Cells[11].Controls[0]).Text.Trim();
            if (rrd.cnnQuantity > EnterQuantity)
            {
                this.Popup("采购退货数量不能大于原入库数量!");
                return;
            }
            if (rrd.cnnAutoID.ToString() == "" || rrd.cnnAutoID == 0)
            {
                this.Popup("采购退货单子表标识不正确!");
                return;
            }

            Entity.OperLog ol = new AMSApp.zhenghua.Entity.OperLog();
            ol.cnvcOperType = "修改采购退货子表";
            ol.cnvcOperID   = this.oper.strLoginID;
            ol.cnvcDeptID   = this.oper.strDeptID;

            StorageFacade sto = new StorageFacade();
            int           ret = sto.UpdatePoStockReturnDetail(ol, rrd);

            if (ret > 0)
            {
                this.Popup("修改采购退货单子表明细成功!");
                this.DBBind();
            }
            else
            {
                this.Popup("修改采购退货单子表明细失败!");
            }
        }