예제 #1
0
        protected void BranchDropList_SelectedIndexChanged(object sender, EventArgs e)
        {
            int branch = int.Parse(BranchDropList.SelectedItem.Value);

            CasesDropList.DataSource = caseLogic.GetByBranches(branch);
            CasesDropList.DataBind();
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string user_id  = User.Identity.GetUserId();
            int    staff_id = staffLogic.getStaffFromUserID(user_id).ID;

            CheckBoxRecovered.InputAttributes.Add("data-toggle", "toggle");
            if (!IsPostBack)
            {
                CasesDropList.DataSource = caseLogic.getAssignedCases(staff_id);
                CasesDropList.DataBind();

                LossTypeDropList.DataSource = caseLogic.getLossTypes();
                LossTypeDropList.DataBind();

                BranchDropList.DataSource = caseLogic.GetBranches();
                BranchDropList.DataBind();
            }
        }
예제 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DateField.Text = DateTime.Today.ToShortDateString();
            DateField.DataBind();
            int pid = stafLogic.getProcessFromUserID(User.Identity.GetUserId());

            ProcessLabel.Text = new BLL.Process.ProcessLogic().GetProcess(pid).Name;

            if (!IsPostBack)
            {
                BranchDropList.DataSource = caseLogic.GetBranches();
                BranchDropList.DataBind();

                CasesDropList.DataSource = caseLogic.GetUnssingedCases();
                CasesDropList.DataBind();

                PSODropList.DataSource = stafLogic.getByRoles("PSO");
                PSODropList.DataBind();
            }
        }