Exemplo n.º 1
0
        //protected void AddOrder_Click(object sender, EventArgs e)
        //{
        //    ShowDiv.Visible = true;
        //    ShowGrid.Visible = false;
        //    AddOrder.Visible = false;
        //}

        private void ShowLCOrderGridByONo()
        {
            string ocode    = ((SessionUser)Session["SessionUser"]).OCode;
            string Order_No = txtS_OrderNo.Text;
            var    result   = masterBLL.GetLCOrderGridByONo(ocode, Order_No);

            if (result.Count > 0)
            {
                grdorder.DataSource = result.ToList();
                grdorder.DataBind();
            }
            else
            {
                grdorder.DataSource = null;
                grdorder.DataBind();
            }
        }