コード例 #1
0
    public void ReloadSrchData()
    {
        try
        {
            if (Session["SrchRetCriteria"] != null)
            {
                ATTInvSrchDeliveryOrder objSrchDo = (ATTInvSrchDeliveryOrder)Session["SrchRetCriteria"];
                GridView grdDelivery = (GridView)this.ReturnOrder1.FindControl("grdDelivery");

                List <ATTInvDeliveryOrder> lstSrchedDeliveredOrder = new List <ATTInvDeliveryOrder>();
                lstSrchedDeliveredOrder = BLLInvSrchDeliveryOrder.SrchDeliveredOrder(objSrchDo);

                if (lstSrchedDeliveredOrder.Count > 0)
                {
                    grdDelivery.SelectedIndex = -1;
                    grdDelivery.DataSource    = lstSrchedDeliveredOrder;
                    grdDelivery.DataBind();

                    Session["lstSrchedDeliveredOrder"] = lstSrchedDeliveredOrder;
                }
                else
                {
                    grdDelivery.DataSource = "";
                    grdDelivery.DataBind();
                }
            }
        }
        catch (Exception)
        {
            throw;
        }
    }
コード例 #2
0
    public void LoadSearchedData(ATTInvSrchDeliveryOrder objSrchDo)
    {
        try
        {
            btnCancel_Click(null, null);
            List <ATTInvDeliveryOrder> lstSrchedDeliveredOrder = new List <ATTInvDeliveryOrder>();
            lstSrchedDeliveredOrder = BLLInvSrchDeliveryOrder.SrchDeliveredOrder(objSrchDo);


            if (lstSrchedDeliveredOrder.Count > 0)
            {
                grdDelivery.SelectedIndex = -1;
                grdDelivery.DataSource    = lstSrchedDeliveredOrder;
                grdDelivery.DataBind();

                Session["lstSrchedDeliveredOrder"] = lstSrchedDeliveredOrder;

                Session["SrchRetCriteria"] = objSrchDo;
            }
            else
            {
                lblDeliveryCount.Text = "कुनै पनि रेकर्ड भेटिएन्न् !!!! ";

                grdDelivery.DataSource = "";
                grdDelivery.DataBind();

                Session["lstSrchedDeliveredOrder"] = null;
            }
        }
        catch (Exception)
        {
            throw;
        }
    }