示例#1
0
 private string FocusedContainerID()
 {
     if (HeaderGridview.VisibleRowCount > 0 && HeaderGridview.FocusedRowIndex > -1)
     {
         return(HeaderGridview.GetRowValues(HeaderGridview.FocusedRowIndex, "Order_Number").ToString());
     }
     else
     {
         return("");
     }
 }
示例#2
0
 private string FocusedLocation()
 {
     if (HeaderGridview.VisibleRowCount > 0 && HeaderGridview.FocusedRowIndex > -1)
     {
         return(HeaderGridview.GetRowValues(HeaderGridview.FocusedRowIndex, "Location").ToString());
     }
     else
     {
         return("");
     }
 }
示例#3
0
        //protected void DetailGridview_CustomCallback(object sender, DevExpress.Web.ASPxGridViewCustomCallbackEventArgs e)
        //{
        //    DetailDS.SelectParameters["Order_Number"].DefaultValue = FocusedContainerID();
        //    DetailGridview.DataBind();
        //    AllocationDetailGridview.FocusedRowIndex = -1;
        //    AllocationDetailGridview.DataBind();
        //}

        //private string FocusedContainerID()
        //{
        //    if (HeaderGridview.VisibleRowCount > 0 && HeaderGridview.FocusedRowIndex > -1)
        //    {
        //        return HeaderGridview.GetRowValues(HeaderGridview.FocusedRowIndex, "Order_Number").ToString();
        //    }
        //    else
        //    {
        //        return "";
        //    }
        //}
        //private string FocusedContainerDetailID()
        //{
        //    if (DetailGridview.VisibleRowCount > 0 && DetailGridview.FocusedRowIndex > -1)
        //    {
        //        return DetailGridview.GetRowValues(DetailGridview.FocusedRowIndex, "Container_ID").ToString();
        //    }
        //    else
        //    {
        //        return "";
        //    }
        //}

        //private string FocusedDetailOrderNumber()
        //{
        //    if (DetailGridview.VisibleRowCount > 0 && DetailGridview.FocusedRowIndex > -1)
        //    {
        //        return DetailGridview.GetRowValues(DetailGridview.FocusedRowIndex, "Order_Number").ToString();
        //    }
        //    else
        //    {
        //        return "";
        //    }
        //}

        //protected void AllocationDetailGridview_CustomCallback(object sender, DevExpress.Web.ASPxGridViewCustomCallbackEventArgs e)
        //{
        //    AllocationDetailDS.SelectParameters["Container_ID"].DefaultValue = FocusedContainerDetailID();
        //    AllocationDetailDS.SelectParameters["Order_Number"].DefaultValue = FocusedDetailOrderNumber();

        //    AllocationDetailGridview.DataBind();
        //}

        protected void DetailGrid_BeforePerformDataSelect(object sender, EventArgs e)
        {
            Session["Order_Number"] = HeaderGridview.GetRowValues(HeaderGridview.FocusedRowIndex, HeaderGridview.KeyFieldName);
        }