Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Comid"] == null)
        {
            Response.Redirect("~/Shoppingcart/Admin/ShoppingCartLogin.aspx");
        }
        PageConn pgcon = new PageConn();

        con = pgcon.dynconn;
        MasterCls1   clsMaster   = new MasterCls1();
        DataTable    dt          = new DataTable();
        DocumentCls1 clsDocument = new DocumentCls1();
        EmployeeCls  clsEmployee = new EmployeeCls();

        if (!IsPostBack)
        {
            if (Session["Comid"] == null)
            {
                Response.Redirect("~/Shoppingcart/Admin/ShoppingCartLogin.aspx");
            }

            lblBusiness0.Text      = Session["Cname"].ToString();
            ViewState["sortOrder"] = "";
            lblmsg.Text            = "";
            fillstore();
            fillfilterstore();
            fillgrid();
        }
    }
Ejemplo n.º 2
0
    //protected void RadioButton2_CheckedChanged(object sender, EventArgs e)
    //{
    //    ddlempemail.Visible = true;
    //    fillddl();
    //    Label1.Text = "External Message Center";
    //    //Response.Redirect("~/Account/MessageInboxExt.aspx");
    //    Response.Redirect("~/ShoppingCart/Admin/MessageComposeExt.aspx");
    //}
    protected void fillddl()
    {
        DataTable  dtcomemail = new DataTable();
        DataTable  dtempemail = new DataTable();
        MasterCls1 clsMaster  = new MasterCls1();
        string     empeml     = "";

        dtempemail = clsMaster.SelectEmpEmail(Convert.ToInt32(Session["EmployeeId"]));
        if (dtempemail.Rows.Count > 0)
        {
            if (dtempemail.Rows[0]["Email"] != System.DBNull.Value)
            {
                empeml = dtempemail.Rows[0]["Email"].ToString();
            }
        }
        dtcomemail             = clsMaster.SelectCompanyEmailForEmp(Convert.ToInt32(Session["EmployeeId"]));
        ddlempemail.DataSource = dtcomemail;
        ddlempemail.DataBind();
        ddlempemail.Items.Insert(0, "-Select-");
        ddlempemail.SelectedItem.Value = "0";
        if (empeml != "")
        {
            ddlempemail.Items.Insert(1, empeml);
            ddlempemail.SelectedIndex = 1;
        }
    }
Ejemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        PageConn pgcon = new PageConn();

        con = pgcon.dynconn;
        MasterCls1   clsMaster   = new MasterCls1();
        DataTable    dt          = new DataTable();
        DocumentCls1 clsDocument = new DocumentCls1();
        EmployeeCls  clsEmployee = new EmployeeCls();

        if (!IsPostBack)
        {
            lblBusiness0.Text      = Session["Cname"].ToString();
            ViewState["sortOrder"] = "";
            lblmsg.Text            = "";
            fillstore();
            fillfilterstore();
            fillgrid();
        }
    }