/// <summary> /// 类名:DeptQuarter_Info /// 描述:岗位设置 /// /// 作者:吴志强 /// 创建时间:2009/04/13 /// 最后修改时间:2009/04/13 /// </summary> /// protected void Page_Load(object sender, EventArgs e) { //编号初期处理 //页面初期设值 if (!IsPostBack) { UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; divCompany.InnerHtml = userInfo.CompanyName; codeRule.CodingType = ConstUtil.CODING_RULE_TYPE_ZERO; codeRule.ItemTypeID = ConstUtil.CODING_BASE_ITEM_QUARTER; //岗位分类 ddlQuarterType.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlQuarterType.TypeCode = ConstUtil.CODE_TYPE_QUARTER; ddlQuarterType.IsInsertSelect = true; //岗位级别 ddlQuarterLevel.TypeFlag = ConstUtil.CODE_TYPE_HUMAN; ddlQuarterLevel.TypeCode = ConstUtil.CODE_TYPE_QUARTER_LEVEL; ddlQuarterLevel.IsInsertSelect = true; QuterModelSelect.DataValueField = "ID"; QuterModelSelect.DataTextField = "QuterName"; QuterModelSelect.DataSource = DeptQuarterBus.GetQuarterDescrible(); QuterModelSelect.DataBind(); ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE); QuterModelSelect.Items.Insert(0, Item); QuterModelSelect.SelectedValue = "0"; txtDeptName.Attributes["readonly"] = "readonly"; txtSuperQuarterName.Attributes["readonly"] = "readonly"; } }
private void ReadTemplate() { QuterModelSelect.Items.Clear(); QuterModelSelect.DataValueField = "ID"; QuterModelSelect.DataTextField = "QuterName"; QuterModelSelect.DataSource = DeptQuarterBus.GetQuarterDescrible(); QuterModelSelect.DataBind(); ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE); QuterModelSelect.Items.Insert(0, Item); QuterModelSelect.SelectedIndex = 0; }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { QuterModelSelect.DataValueField = "ID"; QuterModelSelect.DataTextField = "QuterName"; QuterModelSelect.DataSource = DeptQuarterBus.GetQuarterDescrible(); QuterModelSelect.DataBind(); ListItem Item = new ListItem(ConstUtil.CODE_TYPE_INSERT_TEXT, ConstUtil.CODE_TYPE_INSERT_VALUE); QuterModelSelect.Items.Insert(0, Item); QuterModelSelect.SelectedIndex = 0; } }