private void ShowLCOrderGridByFactory()
        {
            string ocode     = ((SessionUser)Session["SessionUser"]).OCode;
            int    FactoryId = Convert.ToInt32(ddlS_Factory.SelectedValue);
            var    result    = masterBLL.GetLCOrderGridByFactory(ocode, FactoryId);

            if (result.Count > 0)
            {
                grdorder.DataSource = result.ToList();
                grdorder.DataBind();
            }
            else
            {
                ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "text", "func('No Data Found With This Factory')", true);
            }
        }