예제 #1
0
        private void InitialControl()
        {
            //Role
            cmbStaffTypeSearch.DataSource     = SlmScr017Biz.GetStaffTyeData();
            cmbStaffTypeSearch.DataTextField  = "TextField";
            cmbStaffTypeSearch.DataValueField = "ValueField";
            cmbStaffTypeSearch.DataBind();
            cmbStaffTypeSearch.Items.Insert(0, new ListItem("", ""));

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

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

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

            upSearch.Update();
        }
예제 #2
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());
        }
예제 #3
0
        private void InitialControl()
        {
            AppUtil.SetIntTextBox(txtEmpCodePopup);
            txtEmpCodePopup.Attributes.Add("OnBlur", "ChkIntOnBlurClear(this)");

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

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

            //Head Staff Branch
            cmbHeadBranchCode.DataSource     = BranchBiz.GetBranchList(SLMConstant.Branch.All);
            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.All);
            cmbPosition.DataTextField  = "TextField";
            cmbPosition.DataValueField = "ValueField";
            cmbPosition.DataBind();
            cmbPosition.Items.Insert(0, new ListItem("", ""));
        }
예제 #4
0
        private void InitialControl()
        {
            ////Role
            cmbStaffTypeSearch.DataSource     = StaffBiz.GetStaffTyeList();
            cmbStaffTypeSearch.DataTextField  = "TextField";
            cmbStaffTypeSearch.DataValueField = "ValueField";
            cmbStaffTypeSearch.DataBind();
            cmbStaffTypeSearch.Items.Insert(0, new ListItem("", ""));

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

            ////Department
            cmbDepartmentSearch.DataSource     = DepartmentBiz.GetDepartmentList();
            cmbDepartmentSearch.DataTextField  = "TextField";
            cmbDepartmentSearch.DataValueField = "ValueField";
            cmbDepartmentSearch.DataBind();
            cmbDepartmentSearch.Items.Insert(0, new ListItem("", ""));

            ////COC Team
            cmbCOCTeamSearch.DataSource     = StaffBiz.GetTeamList();
            cmbCOCTeamSearch.DataTextField  = "TextField";
            cmbCOCTeamSearch.DataValueField = "ValueField";
            cmbCOCTeamSearch.DataBind();
            cmbCOCTeamSearch.Items.Insert(0, new ListItem("", ""));

            //Position
            cmbPositionSearch.DataSource     = PositionBiz.GetPositionList(COCConstant.Position.All);
            cmbPositionSearch.DataTextField  = "TextField";
            cmbPositionSearch.DataValueField = "ValueField";
            cmbPositionSearch.DataBind();
            cmbPositionSearch.Items.Insert(0, new ListItem("", ""));

            upSearch.Update();
        }
예제 #5
0
        private void InitialControl()
        {
            //Role
            cmbStaffType.DataSource     = StaffBiz.GetStaffTyeList();
            cmbStaffType.DataTextField  = "TextField";
            cmbStaffType.DataValueField = "ValueField";
            cmbStaffType.DataBind();
            cmbStaffType.Items.Insert(0, new ListItem("", ""));

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

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

            ////COC Team
            cmbCocTeam.DataSource     = StaffBiz.GetTeamList();
            cmbCocTeam.DataTextField  = "TextField";
            cmbCocTeam.DataValueField = "ValueField";
            cmbCocTeam.DataBind();
            cmbCocTeam.Items.Insert(0, new ListItem("", ""));

            //Position
            cmbPosition.DataSource     = PositionBiz.GetPositionList(COCConstant.Position.Active);
            cmbPosition.DataTextField  = "TextField";
            cmbPosition.DataValueField = "ValueField";
            cmbPosition.DataBind();
            cmbPosition.Items.Insert(0, new ListItem("", ""));
        }
예제 #6
0
        private void InitialControl()
        {
            //Role
            cmbStaffType.DataSource     = SlmScr017Biz.GetStaffTyeData();
            cmbStaffType.DataTextField  = "TextField";
            cmbStaffType.DataValueField = "ValueField";
            cmbStaffType.DataBind();
            cmbStaffType.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("", ""));

            //Head Staff 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("", ""));
        }
예제 #7
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());
        }