void BindData() { ManagerServices ascServices = new ManagerServices(); lstEmployee.DataSource = ascServices.GetNewManagers(); lstEmployee.DataBind(); managersAssigned = ascServices.GetManagerCount(); managersAvailable = totalManagers - managersAssigned; }
protected void lstEmployee_ItemCommand(object sender, ListViewCommandEventArgs e) { if (e.CommandName == "Del") { int id = Convert.ToInt32(e.CommandArgument); ManagerServices ascServices = new ManagerServices(); ascServices.DeleteManager(id); BindData(); successMessage.Text = "Manager removed successfully."; } }
public LaunchMenu(lacrosseContext context, ICustomerRepo custRepo, IManagerRepo managerRepo, ILocationRepo locRepo, ICartRepo cartRepo) { this.context = context; this.custRepo = custRepo; this.locRepo = locRepo; this.cartRepo = cartRepo; this.managerRepo = managerRepo; this.customerServices = new CustomerServices(custRepo); this.locationServices = new LocationServices(locRepo); this.cartServices = new CartServices(cartRepo); this.managerServices = new ManagerServices(managerRepo); }
void BindData() { ManagerServices ascServices = new ManagerServices(); lstEmployee.DataSource = ascServices.GetAllManagers(); lstEmployee.DataBind(); managersAssigned = ascServices.GetManagerCount(); managersAvailable = totalManagers - managersAssigned; HiddenField hf = (HiddenField)Parent.FindControl("hidLastTab"); hf.Value = "3"; }
protected void btnSubmit_Click(object sender, EventArgs e) { var items = lstEmployee.Items.Where(i => ((CheckBox)i.FindControl("Checkbox")).Checked); foreach (ListViewItem item in items) { HiddenField hid = item.FindControl("HidId") as HiddenField; ManagerServices ascServices = new ManagerServices(); ascServices.AddManager(Convert.ToInt32(hid.Value)); } string prompt = "$.alert('Group Manager successfully added.');"; this.Page.ClientScript.RegisterStartupScript(typeof(Page), "alert", prompt, true); //Response.Redirect("GroupManagers.aspx"); }
public AutomaticSlicesPortImpl(ManagerServices services, Port[] wcreate_slices_ports) { this.mcid = (ManagerComponentID)services.getComponentID(); this.session_id_string = mcid.getInstanceName(); this.wgo_ports = wcreate_slices_ports; }
public ReconfigurationAdvicePortImpl(ManagerServices services, Port worker_advice_port) { this.mcid = (ManagerComponentID)services.getComponentID(); this.session_id_string = mcid.getInstanceName(); this.worker_advice_port = worker_advice_port; }
public ManagerController(ManagerServices service) { this._managerServices = service; }
public ExceptionTest() { _AdministratorServices = new AdministratorServices(_session); _LoanClerkServices = new LoanClerkServices(_session); _ManagerServices = new ManagerServices(_session); }
public ManagerController(IConfiguration configuration, MongoClient mongoClient) { _services = new ManagerServices(configuration, mongoClient); }
public InitializePortImpl(ManagerServices services, Port worker_init_port) { this.mcid = (ManagerComponentID)services.getComponentID(); this.session_id_string = mcid.getInstanceName(); this.worker_init_port = worker_init_port; }
public InitializePortImpl(ManagerServices services, Port[] winitialize_ports) { this.mcid = (ManagerComponentID)services.getComponentID(); this.session_id_string = mcid.getInstanceName(); this.w_initialize_port = winitialize_ports; }
public FunctionalTest() { _AdministratorServices = new AdministratorServices(_session); _LoanClerkServices = new LoanClerkServices(_session); _ManagerServices = new ManagerServices(_session); }
public GoPortImpl(ManagerServices services, Port[] wgo_ports) { this.mcid = (ManagerComponentID)services.getComponentID(); this.session_id_string = mcid.getInstanceName(); this.wgo_ports = wgo_ports; }