protected void Page_Load(object sender, EventArgs e)
 {
     txt_username.Focus();
     if (!Page.IsPostBack)
     {
         if (CookieManager.GetCookieValue("uid").ToString() != "0")
         {
             string strSeq = "";
             IndustryPlatform.Model.SYS_Organization mOrg = new IndustryPlatform.BLL.SYS_Organization().GetModel(CookieManager.GetCookieValue("orgID").ToString());
             if (mOrg != null)
             {
                 strSeq = mOrg.OrgSeq;
             }
             else
             {
                 strSeq = "-";
             }
             ControlBindHelper.DropDownListBind(this.ddl_position, "SYS_Position", "PositionName", "PositionCode", "IsForbid='0' ", "请选择职位", "0");
         }
         else
         {
             ControlBindHelper.DropDownListBind(this.ddl_position, "SYS_Position", "PositionName", "PositionCode", "IsForbid='0'", "请选择职位", "0");
         }
         this.hf_where.Value = " 1=1 ";
         DBind();
     }
 }
 public void DBind()
 {
     if (CookieManager.GetCookieValue("uid").ToString() != "0")
     {
         string strSeq = "";
         IndustryPlatform.Model.SYS_Organization mOrg = new IndustryPlatform.BLL.SYS_Organization().GetModel(CookieManager.GetCookieValue("orgID").ToString());
         if (mOrg != null)
             strSeq = mOrg.OrgSeq;
         else
             strSeq = "-";
         ControlBindHelper.GridViewPagerBindByRowNum(this.anp_oper, "VSYS_Operator", this.hf_where.Value.ToString(), "IsForbid asc,UserCode desc", this.gv_oper);
     }
     else
     {
         ControlBindHelper.GridViewPagerBindByRowNum(this.anp_oper, "VSYS_Operator", this.hf_where.Value.ToString(), "IsForbid asc,UserCode desc", this.gv_oper);
     }
 }
 public void DBind()
 {
     if (CookieManager.GetCookieValue("uid").ToString() != "0")
     {
         string strSeq = "";
         IndustryPlatform.Model.SYS_Organization mOrg = new IndustryPlatform.BLL.SYS_Organization().GetModel(CookieManager.GetCookieValue("orgID").ToString());
         if (mOrg != null)
         {
             strSeq = mOrg.OrgSeq;
         }
         else
         {
             strSeq = "-";
         }
         ControlBindHelper.GridViewPagerBindByRowNum(this.anp_oper, "VSYS_Operator", this.hf_where.Value.ToString(), "IsForbid asc,UserCode desc", this.gv_oper);
     }
     else
     {
         ControlBindHelper.GridViewPagerBindByRowNum(this.anp_oper, "VSYS_Operator", this.hf_where.Value.ToString(), "IsForbid asc,UserCode desc", this.gv_oper);
     }
 }
 protected void ddl_parentOrgID_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.ddl_parentOrgID.SelectedValue == "")
     {
         this.ddl_TypeCode.Visible = false;
         tdTypeCode.Visible        = false;
         spanStar.Visible          = false;
     }
     else
     {
         string strOrgType = new IndustryPlatform.BLL.SYS_Organization().GetModel(this.ddl_parentOrgID.SelectedValue).OrgType;
         if (strOrgType == "1")
         {
             lblTypeCode.Text = "选择磅房:";
             ControlBindHelper.DropDownListBind(this.ddl_TypeCode, "TT_Room", "RoomName", "RoomCode", "IsForbid='0'", "请选择磅房", "");
         }
         else if (strOrgType == "2")
         {
             lblTypeCode.Text = "选择煤矿:";
             ControlBindHelper.DropDownListBind(this.ddl_TypeCode, "Sys_Colliery", "CollName", "CollCode", "IsForbid='0'", "请选择煤矿", "");
         }
         if (strOrgType == "1" || strOrgType == "2")
         {
             this.ddl_TypeCode.Visible = true;
             tdTypeCode.Visible        = true;
             spanStar.Visible          = true;
         }
         else
         {
             this.tdTypeCode.Visible   = false;
             this.ddl_TypeCode.Visible = false;
             spanStar.Visible          = false;
             this.ddl_TypeCode.Items.Clear();
             this.ddl_TypeCode.Items.Add(new ListItem("1", ""));
         }
     }
 }
 protected void ddl_parentOrgID_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.ddl_parentOrgID.SelectedIndex==0)
     {
         this.ddl_TypeCode.Visible = false;
         tdTypeCode.Visible = false;
         this.lblStar.Visible = false;
     }
     else
     {
         string strOrgType = new IndustryPlatform.BLL.SYS_Organization().GetModel(this.ddl_parentOrgID.SelectedValue).OrgType;
         if (strOrgType == "1" || strOrgType == "2")
         {
             this.ddl_TypeCode.Visible = true;
             tdTypeCode.Visible = true;
             this.lblStar.Visible = true;
             this.lblTypeCode.Visible = true;
         }
         else
         {
             this.ddl_TypeCode.Visible = false;
             this.ddl_TypeCode.Visible = false;
             tdTypeCode.Visible = false;
             this.lblStar.Visible = false;
         }
         if (strOrgType == "1")
         {
             ControlBindHelper.DropDownListBind(this.ddl_TypeCode, "TT_Room", "RoomName", "RoomCode", "IsForbid='0'", "请选择磅房", "");
             lblTypeCode.Text = "选择磅房:";
         }
         if (strOrgType == "2")
         {
             ControlBindHelper.DropDownListBind(this.ddl_TypeCode, "Sys_Colliery", "CollName", "CollCode", "IsForbid='0'", "请选择煤矿", "");
             lblTypeCode.Text = "选择煤矿:";
         }
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     txt_username.Focus();
     if (!Page.IsPostBack)
     {
         if (CookieManager.GetCookieValue("uid").ToString() != "0")
         {
             string strSeq = "";
             IndustryPlatform.Model.SYS_Organization mOrg = new IndustryPlatform.BLL.SYS_Organization().GetModel(CookieManager.GetCookieValue("orgID").ToString());
             if (mOrg != null)
                 strSeq = mOrg.OrgSeq;
             else
                 strSeq = "-";
             ControlBindHelper.DropDownListBind(this.ddl_position, "SYS_Position", "PositionName", "PositionCode", "IsForbid='0' ", "请选择职位", "0");
         }
         else
         {
             ControlBindHelper.DropDownListBind(this.ddl_position, "SYS_Position", "PositionName", "PositionCode", "IsForbid='0'", "请选择职位", "0");
         }
         this.hf_where.Value = " 1=1 ";
         DBind();
     }
 }