コード例 #1
0
        void BindData()
        {
            ManagerServices ascServices = new ManagerServices();

            lstEmployee.DataSource = ascServices.GetNewManagers();
            lstEmployee.DataBind();
            managersAssigned  = ascServices.GetManagerCount();
            managersAvailable = totalManagers - managersAssigned;
        }
コード例 #2
0
 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.";
     }
 }
コード例 #3
0
 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);
 }
コード例 #4
0
        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";
        }
コード例 #5
0
        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");
        }
コード例 #6
0
 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;
 }
コード例 #7
0
 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;
 }
コード例 #8
0
 public ManagerController(ManagerServices service)
 {
     this._managerServices = service;
 }
 public ExceptionTest()
 {
     _AdministratorServices = new AdministratorServices(_session);
     _LoanClerkServices     = new LoanClerkServices(_session);
     _ManagerServices       = new ManagerServices(_session);
 }
コード例 #10
0
ファイル: ManagerController.cs プロジェクト: granhal/fxs
 public ManagerController(IConfiguration configuration, MongoClient mongoClient)
 {
     _services = new ManagerServices(configuration, mongoClient);
 }
コード例 #11
0
 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;
 }
コード例 #12
0
 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);
 }
コード例 #14
0
 public GoPortImpl(ManagerServices services, Port[] wgo_ports)
 {
     this.mcid = (ManagerComponentID)services.getComponentID();
     this.session_id_string = mcid.getInstanceName();
     this.wgo_ports         = wgo_ports;
 }