Esempio n. 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["userid"] == null)
        {
            Response.Redirect("~/Login.aspx");
        }
        else
        {
            userid  = int.Parse(Session["userid"].ToString());
            Empname = Session["Empname"].ToString();
        }
        if (!IsPostBack)
        {
            dbc.BindClientName_Report(ddl_Client);
            dbc.BindOrderType_Report(ddl_Order_Type);
            dbc.BindUserName_Report(ddl_UserName);
            dbc.BindOrderTask_Report(ddl_Order_Task);
            dbc.BindOrderStatus_Report(ddl_Order_Status);

            if (ddl_Client.SelectedIndex > 0)
            {
                dbc.BindSubProcessName_Report(ddl_SubClient, int.Parse(ddl_Client.SelectedValue.ToString()));
            }
            else
            {
                dbc.BindSubProcessName_Report(ddl_SubClient, 0);
                ddl_SubClient.SelectedIndex = 0;
            }
        }
    }