Esempio n. 1
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new HR_ORG();

        if(txtORG_ID.Value !="" )
            condObj.Like(HR_ORG.Attribute.ORG_ID, Convert.ToString(txtORG_ID.Value));

        if(txtORG_NAME.Value !="" )
            condObj.Like(HR_ORG.Attribute.ORG_NAME, Convert.ToString(txtORG_NAME.Value));

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Esempio n. 2
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new HR_ORG();



        if (txtORG_ID.Value != "")
        {
            condObj.Like(HR_ORG.Attribute.ORG_ID, Convert.ToString(txtORG_ID.Value));
        }


        if (txtORG_NAME.Value != "")
        {
            condObj.Like(HR_ORG.Attribute.ORG_NAME, Convert.ToString(txtORG_NAME.Value));
        }

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Esempio n. 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        title      = valObj._ZhName + "管理";
        Page.Title = title;

        if (Request["PID"] != null)
        {
            pid = Request["PID"];
        }
        if (!IsPostBack)
        {
            #region                                                                  //默认属性初始化
            aspPager.CurrentPageIndex = 1;
            aspPager.ShowInputBox     = AgileFrame.Core.WebSystem.ShowInputBox.Auto; //WebCtrls.
            txtPageNum.Value          = "30";
            aspPager.PageSize         = 30;

            if (pid == "" || pid == "0")
            {
                a_top.Visible = false;
            }

            #endregion
            #region//数据初始化

            #endregion
            if (pid == "0")
            {
                liToTop.Visible = false;
            }
            else
            {
                liToTop.Visible = true;
            }
            condObj.P_ORG_ID   = pid;
            hidCondition.Value = condObj.ToJson(20);
            BindList(condObj, 1);
        }
    }
Esempio n. 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        title      = valObj._ZhName + "管理";
        Page.Title = title;

        if (Request["PID"] != null)
        {
            pid = Request["PID"];
        }
        if (Request["USER_ID"] != null)
        {
            userid  = Request["USER_ID"];
            paraStr = "?USER_ID=" + userid;
        }
        if (!IsPostBack)
        {
            #region                                                                  //默认属性初始化
            aspPager.CurrentPageIndex = 1;
            aspPager.ShowInputBox     = AgileFrame.Core.WebSystem.ShowInputBox.Auto; //WebCtrls.
            aspPager.PageSize         = 30;

            #endregion
            #region//数据初始化

            #endregion
            if (pid == "0")
            {
                liToTop.Visible = false;
            }
            else
            {
                liToTop.Visible = true;
            }
            StringBuilder orgids = new StringBuilder();
            if (userid != "")
            {
                SYS_USERDATA cond = new SYS_USERDATA();
                cond.USER_ID   = decimal.Parse(userid);
                cond.DATA_TYPE = HR_ORG.Attribute.ORG_ID.LongName.Replace("[", "").Replace("]", "");
                //Response.Write(HR_ORG.Attribute.ORG_ID.LongName.Replace("[","").Replace("]",""));
                List <SYS_USERDATA> lst = BLLTable <SYS_USERDATA> .Factory(conn).Select(new SYS_USERDATA(), cond);

                if (lst != null)
                {
                    for (int i = 0; i < lst.Count; i++)
                    {
                        if (orgids.Length > 0)
                        {
                            orgids.Append(",");
                        }
                        orgids.Append(lst[i].DATA_ID);
                    }
                }
            }

            condObj.P_ORG_ID = pid;
            if (orgids.Length > 0)
            {
                condObj.In(HR_ORG.Attribute.ORG_ID, orgids.ToString());
            }
            hidCondition.Value = condObj.ToJson(20);
            BindList(condObj, 1);
        }
    }