Ejemplo n.º 1
0
        private void BindBranchList()
        {
            BranchesDB db = new BranchesDB();

            BranchList.DataSource = db.GetBranchesByZoneID(Int32.Parse(ZoneList.SelectedValue));
            BranchList.DataBind();
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session[MtbBillCollection.Global.Definitions.SessionVariable.Value.IsLoggedIn] == null || Convert.ToBoolean(Session[MtbBillCollection.Global.Definitions.SessionVariable.Value.IsLoggedIn]) == false ||
         (MtbBillCollection.Utility.Screen.IsUserPermitedToAccessScreen(Convert.ToInt32(Session[MtbBillCollection.Global.Definitions.SessionVariable.Value.UserTypeId].ToString()), "Register")) == false)
     {
         Response.Redirect("/Default.aspx");
     }
     if (!IsPostBack)
     {
         _authenticationManger.ConnectionString = MtbBillCollection.WebConfigManager.GetCollDBConnString();
         BranchList.DataSource = _authenticationManger.GetBranchList();
         BranchList.DataBind();
         _authenticationManger.ConnectionString = MtbBillCollection.WebConfigManager.GetCollDBConnString();
         UserTypeList.DataSource = _authenticationManger.GetUserTypeList();
         UserTypeList.DataBind();
     }
 }