예제 #1
0
    /// <summary>
    /// 显示销售订单信息
    /// </summary>
    private void ShowInfo()
    {
        TSOutBillBB otherOutInBill = new TSOutBillBB();
        TSOutDetailBB otherOutInDetailBill = new TSOutDetailBB();

        try
        {
            string id = Request.Params["id"];
            TSOutBillData otherOutInBIllData = otherOutInBill.GetModel(Convert.ToInt32(id));
            DataSet ds = new DataSet();

            this.lblBillNo.Text = otherOutInBIllData.stockupBillNo;
            this.mark.Text = otherOutInBIllData.remark;

            //根据提货单号、销售订单号、采购合同号,查找销售订单明细
            ds = otherOutInDetailBill.GetList("tsOutBillNo = '" + otherOutInBIllData.tsOutBill + "'");

            if (ds != null && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
            {
                this.grid.DataSource = ds;
                this.grid.DataBind();
            }
        }
        finally
        {
            otherOutInBill.Dispose();
            otherOutInDetailBill.Dispose();
        }
    }