Exemple #1
0
        private void InitialControl()
        {
            //Role
            BuildCombo(cmbStaffType, SlmScr017Biz.GetStaffTyeData());

            BuildCombo(cmbRoleService, SlmScr017Biz.GetRoleServiceData());
            //Market Branch
            BuildCombo(cmbBranchCode, BranchBiz.GetBranchList(SLMConstant.Branch.Active));

            //Head Staff Branch
            BuildCombo(cmbHeadBranchCode, BranchBiz.GetBranchList(SLMConstant.Branch.Active));

            //Department
            BuildCombo(cmbDepartment, SlmScr017Biz.GetDeptData());

            //Position
            BuildCombo(cmbPosition, PositionBiz.GetPositionList(SLMConstant.Position.Active));

            // level
            BuildCombo(cmbLevel, SlmScr019Biz.GetLevelList());

            // team telesale
            BuildCombo(cmbTeamTelesale, SlmScr019Biz.GetTeamTelesaleList());

            // emp type
            BuildCombo(cmbCategory, SlmScr019Biz.GetStaffCategoryData());

            // company
            BuildCombo(cmbHost, SlmScr019Biz.GetStaffCategoryHostData());

            AppUtil.BuildCombo(cmbCategory, SlmScr018Biz.GetStaffCategoryData());
            AppUtil.BuildCombo(cmbHost, SlmScr018Biz.GetStaffCategoryHostData());
        }
Exemple #2
0
        //private void SetDept()
        //{
        //    //decimal? stafftype = SlmScr019Biz.GetStaffTypeData(HttpContext.Current.User.Identity.Name);
        //    //if (stafftype != null)
        //    //{
        //    //    if (stafftype == SLMConstant.StaffType.ITAdministrator)
        //    //        cmbDepartment.Enabled = true;
        //    //    else
        //    //    {
        //    cmbDepartment.Enabled = false;
        //        //}
        //    //}
        //}

        private void InitialControl()
        {
            //Role Sale
            cmbStaffType.DataSource     = SlmScr017Biz.GetStaffTyeData();
            cmbStaffType.DataTextField  = "TextField";
            cmbStaffType.DataValueField = "ValueField";
            cmbStaffType.DataBind();
            cmbStaffType.Items.Insert(0, new ListItem("", ""));

            //Role Service
            cmbRoleService.DataSource     = SlmScr017Biz.GetRoleServiceData();
            cmbRoleService.DataTextField  = "TextField";
            cmbRoleService.DataValueField = "ValueField";
            cmbRoleService.DataBind();
            cmbRoleService.Items.Insert(0, new ListItem("", ""));

            //Market Branch
            cmbBranchCode.DataSource     = BranchBiz.GetBranchList(SLMConstant.Branch.Active);
            cmbBranchCode.DataTextField  = "TextField";
            cmbBranchCode.DataValueField = "ValueField";
            cmbBranchCode.DataBind();
            cmbBranchCode.Items.Insert(0, new ListItem("", ""));

            //Market Branch
            cmbHeadBranchCode.DataSource     = BranchBiz.GetBranchList(SLMConstant.Branch.Active);
            cmbHeadBranchCode.DataTextField  = "TextField";
            cmbHeadBranchCode.DataValueField = "ValueField";
            cmbHeadBranchCode.DataBind();
            cmbHeadBranchCode.Items.Insert(0, new ListItem("", ""));

            //Department
            cmbDepartment.DataSource     = SlmScr017Biz.GetDeptData();
            cmbDepartment.DataTextField  = "TextField";
            cmbDepartment.DataValueField = "ValueField";
            cmbDepartment.DataBind();
            cmbDepartment.Items.Insert(0, new ListItem("", ""));

            //Position
            cmbPosition.DataSource     = PositionBiz.GetPositionList(SLMConstant.Position.Active);
            cmbPosition.DataTextField  = "TextField";
            cmbPosition.DataValueField = "ValueField";
            cmbPosition.DataBind();
            cmbPosition.Items.Insert(0, new ListItem("", ""));

            // level
            cmbLevel.DataSource     = SlmScr019Biz.GetLevelList();
            cmbLevel.DataTextField  = "TextField";
            cmbLevel.DataValueField = "ValueField";
            cmbLevel.DataBind();
            cmbLevel.Items.Insert(0, new ListItem("", ""));

            // team telesale
            cmbTeamTelesale.DataSource     = SlmScr019Biz.GetTeamTelesaleList();
            cmbTeamTelesale.DataTextField  = "TextField";
            cmbTeamTelesale.DataValueField = "ValueField";
            cmbTeamTelesale.DataBind();
            cmbTeamTelesale.Items.Insert(0, new ListItem("", ""));

            AppUtil.BuildCombo(cmbCategory, SlmScr018Biz.GetStaffCategoryData());
            AppUtil.BuildCombo(cmbHost, SlmScr018Biz.GetStaffCategoryHostData());
        }