Beispiel #1
0
 /// <summary>
 /// 点击添加按钮激发的事件
 /// yuany   2013年1月22日
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void btn_add_Click(object sender, EventArgs e)
 {
     if (hidden_parent_num.Value == "" || hidden_parent_num.Value.ToString() == "0")
     {
         new MessageBox().Alert("操作", "请选择左侧部门节点!").Show();
         return;
     }
     add_dep_name.Text     = "";
     hidden_dept_name.Text = "";
     add_parent_num.Text   = deptManager.GetByObjId(Convert.ToInt32(hidden_parent_num.Value == "" ? 0 : hidden_parent_num.Value)).DeptName;
     add_display_id.Text   = "";
     add_remark.Text       = "";
     btnAddSave.Disable(true);
     this.winAdd.Show();
 }