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(); }
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()); }
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("", "")); }
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("", "")); }
//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()); }