public static int OrganAdd(Model.Organizational Organ)
 {
     SqlParameter[] pars = new SqlParameter[] { new SqlParameter("@Name", SqlDbType.VarChar, 50), new SqlParameter("@PID", SqlDbType.VarChar, 6) };
     pars[0].Value = Organ.Name;
     pars[1].Value = Organ.PID;
     return(SqlHelper.ExecuteProcess("pro_Organizational_Add", pars));
 }
 protected void btnAdd_Click(object sender, EventArgs e)
 {
     Model.Organizational Organ = new Model.Organizational
     {
         ID = id,
         Name = this.txtClassName.Text,
         PID = this.ddlRootID.SelectedValue.ToString(),
     };
     if (BLL.Organizational.OrganUpdate(Organ) == 1)
     {
         UserOperatingManager.InputUserOperating(this.Session["admin"].ToString(), "组织架构管理", "修改ID为" + id + "的岗位信息");
         MessageBox.ResponseScript(this, "alert('编辑岗位信息成功!');parent.location.href='/system/OrganList.aspx'");
     }
     else
     {
         MessageBox.Show(this, "编辑岗位信息有误,请您重新操作");
     }
 }
 protected void btnAdd_Click(object sender, EventArgs e)
 {
     Model.Organizational Organ = new Model.Organizational
     {
         ID   = id,
         Name = this.txtClassName.Text,
         PID  = this.ddlRootID.SelectedValue.ToString(),
     };
     if (BLL.Organizational.OrganUpdate(Organ) == 1)
     {
         UserOperatingManager.InputUserOperating(this.Session["admin"].ToString(), "组织架构管理", "修改ID为" + id + "的岗位信息");
         MessageBox.ResponseScript(this, "alert('编辑岗位信息成功!');parent.location.href='/system/OrganList.aspx'");
     }
     else
     {
         MessageBox.Show(this, "编辑岗位信息有误,请您重新操作");
     }
 }
 protected void btnAdd_Click(object sender, EventArgs e)
 {
     if (this.txtClassName.Text.Length == 0)
     {
         MessageBox.Show(this, "请填写完整的网站类别信息");
     }
     else
     {
         Model.Organizational Organ = new Model.Organizational
         {
             Name = this.txtClassName.Text,
             PID = this.ddlRootID.SelectedValue.ToString(),
         };
         if (BLL.Organizational.OrganAdd(Organ) > 0)
         {
             UserOperatingManager.InputUserOperating(this.Session["admin"].ToString(), "组织结构管理", "添加了一个新的岗位,名称为:" + this.txtClassName.Text);
             MessageBox.ResponseScript(this, "alert('添加岗位信息成功!');parent.location.href='/system/OrganList.aspx'");
         }
         else
         {
             MessageBox.Show(this, "创建岗位信息有误,请您重新操作");
         }
     }
 }
 protected void btnAdd_Click(object sender, EventArgs e)
 {
     if (this.txtClassName.Text.Length == 0)
     {
         MessageBox.Show(this, "请填写完整的网站类别信息");
     }
     else
     {
         Model.Organizational Organ = new Model.Organizational
         {
             Name = this.txtClassName.Text,
             PID  = this.ddlRootID.SelectedValue.ToString(),
         };
         if (BLL.Organizational.OrganAdd(Organ) > 0)
         {
             UserOperatingManager.InputUserOperating(this.Session["admin"].ToString(), "组织结构管理", "添加了一个新的岗位,名称为:" + this.txtClassName.Text);
             MessageBox.ResponseScript(this, "alert('添加岗位信息成功!');parent.location.href='/system/OrganList.aspx'");
         }
         else
         {
             MessageBox.Show(this, "创建岗位信息有误,请您重新操作");
         }
     }
 }
 public static int OrganUpdate(Model.Organizational Organ)
 {
     return DAL.Organizational.OrganUpdate(Organ);
 }
 public static int OrganAdd(Model.Organizational Organ)
 {
     return DAL.Organizational.OrganAdd(Organ);
 }