示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                CaseTypeDD.DataSource = caseLogic.GetCaseTypes();
                CaseTypeDD.DataBind();

                BranchDropList.DataSource = caseLogic.GetBranches();
                BranchDropList.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();
            }
        }