Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        #region//回发数据初始化
        if (Request["id"] != null)
        {
            deptid = Request["id"];
        }
        if (Request["DeptID"] != null)
        {
            deptid = Request["DeptID"];
        }
        if (Request["PID"] != null && Request["tree"] == null)
        {
            pid = Request["PID"];
        }

        title      = "多系统综合员工管理";
        Page.Title = title;

        #endregion

        if (!IsPostBack)
        {
            #region                                                                  //默认属性初始化
            aspPager.CurrentPageIndex = 1;
            aspPager.ShowInputBox     = AgileFrame.Core.WebSystem.ShowInputBox.Auto; //WebCtrls.
            txtPageSize.Value         = "20";
            aspPager.PageSize         = 20;

            if (deptid != "")
            {
                a_top.HRef += "?DeptID=" + deptid;
            }
            if (pid == "" || pid == "0")
            {
                a_top.Visible = false;
            }

            #endregion

            #region//数据初始化
            ddlSort.Items.Add(new ListItem("默认", HR_STAFF.Attribute.STAFF_ID.LongName + "|DESC"));

            ddlSort.Items.Add(new ListItem(HR_STAFF.Attribute.STAFF_ID.ZhName + "|升", HR_STAFF.Attribute.STAFF_ID.LongName + "|ASC"));
            ddlSort.Items.Add(new ListItem(HR_STAFF.Attribute.STAFF_ID.ZhName + "|降", HR_STAFF.Attribute.STAFF_ID.LongName + "|DESC"));

            ddlSort.Items.Add(new ListItem(HR_STAFF.Attribute.SNAME.ZhName + "|升", HR_STAFF.Attribute.SNAME.LongName + "|ASC"));
            ddlSort.Items.Add(new ListItem(HR_STAFF.Attribute.SNAME.ZhName + "|降", HR_STAFF.Attribute.SNAME.LongName + "|DESC"));


            txtGENDER.Items.AddRange(FormHelper.GetListItem(HR_STAFF.Attribute.GENDER));
            txtWORK_TYPE_CODE.Items.AddRange(FormHelper.GetListItem(HR_STAFF.Attribute.WORK_TYPE_CODE));

            #endregion

            hidCondition.Value = condObj.ToJson(20);

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

        if (txtSTAFF_NO.Value != "")
        {
            condObj.Like(HR_STAFF.Attribute.STAFF_NO, Convert.ToString(txtSTAFF_NO.Value));
        }
        if (txtNAME.Value != "")
        {
            condObj.Like(HR_STAFF.Attribute.STAFF_NAME, Convert.ToString(txtNAME.Value));
        }
        if (txtDEPT_ID.Value != "")
        {
            condObj.Like(HR_STAFF.Attribute.DEPT_ID, Convert.ToString(txtDEPT_ID.Value));
        }
        if (txtGENDER.Value != "")
        {
            condObj.GENDER = Convert.ToString(txtGENDER.Value);
        }

        if (txtPOS_NAME.Value != "")
        {
            condObj.Like(HR_STAFF.Attribute.POS_NAME, Convert.ToString(txtPOS_NAME.Value));
        }


        if (txtSTATION_CODE.Value != "")
        {
            condObj.Like(HR_STAFF.Attribute.STATION_CODE, Convert.ToString(txtSTATION_CODE.Value));
        }


        if (txtWORK_TYPE_CODE.Value != "")
        {
            condObj.WORK_TYPE_CODE = Convert.ToString(txtWORK_TYPE_CODE.Value);
        }


        if (txtTECH_LEVEL_CODE.Value != "")
        {
            condObj.Like(HR_STAFF.Attribute.TECH_LEVEL_CODE, Convert.ToString(txtTECH_LEVEL_CODE.Value));
        }

        if (txtMOBILE.Value != "")
        {
            condObj.Like(HR_STAFF.Attribute.MOBILE, Convert.ToString(txtMOBILE.Value));
        }


        if (txtOFFICE_TEL.Value != "")
        {
            condObj.Like(HR_STAFF.Attribute.OFFICE_TEL, Convert.ToString(txtOFFICE_TEL.Value));
        }


        if (txtCERT_FLAG.Value != "")
        {
            condObj.Like(HR_STAFF.Attribute.CERT_FLAG, Convert.ToString(txtCERT_FLAG.Value));
        }

        if (txtON_POS_FLAG.Value != "")
        {
            condObj.Like(HR_STAFF.Attribute.ON_POS_FLAG, Convert.ToString(txtON_POS_FLAG.Value));
        }

        if (txtJOIN_DATE.Value != "")
        {
            condObj.Like(HR_STAFF.Attribute.JOIN_DATE, Convert.ToString(txtJOIN_DATE.Value));
        }

        if (txtTITLE_CODE.Value != "")
        {
            condObj.Like(HR_STAFF.Attribute.TITLE_CODE, Convert.ToString(txtTITLE_CODE.Value));
        }


        if (txtSTATUS_CODE.Value != "")
        {
            condObj.Like(HR_STAFF.Attribute.STATUS_CODE, Convert.ToString(txtSTATUS_CODE.Value));
        }


        if (txtDEGREE_CODE.Value != "")
        {
            condObj.Like(HR_STAFF.Attribute.DEGREE_CODE, Convert.ToString(txtDEGREE_CODE.Value));
        }



        if (txtMAJOR.Value != "")
        {
            condObj.Like(HR_STAFF.Attribute.MAJOR, Convert.ToString(txtMAJOR.Value));
        }


        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Ejemplo n.º 3
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new HR_STAFF();

        if(txtSTAFF_NO.Value !="" )
            condObj.Like(HR_STAFF.Attribute.STAFF_NO, Convert.ToString(txtSTAFF_NO.Value));
        if(txtNAME.Value !="" )
            condObj.Like(HR_STAFF.Attribute.STAFF_NAME, Convert.ToString(txtNAME.Value));
        if(txtDEPT_ID.Value !="" )
            condObj.Like(HR_STAFF.Attribute.DEPT_ID, Convert.ToString(txtDEPT_ID.Value));
        if(txtGENDER.Value !="" )
            condObj.GENDER = Convert.ToString(txtGENDER.Value);

        if(txtPOS_NAME.Value !="" )
            condObj.Like(HR_STAFF.Attribute.POS_NAME, Convert.ToString(txtPOS_NAME.Value));

        if(txtSTATION_CODE.Value !="" )
            condObj.Like(HR_STAFF.Attribute.STATION_CODE, Convert.ToString(txtSTATION_CODE.Value));

        if(txtWORK_TYPE_CODE.Value !="" )
            condObj.WORK_TYPE_CODE = Convert.ToString(txtWORK_TYPE_CODE.Value);

        if(txtTECH_LEVEL_CODE.Value !="" )
            condObj.Like(HR_STAFF.Attribute.TECH_LEVEL_CODE, Convert.ToString(txtTECH_LEVEL_CODE.Value));

        if(txtMOBILE.Value !="" )
            condObj.Like(HR_STAFF.Attribute.MOBILE, Convert.ToString(txtMOBILE.Value));

        if(txtOFFICE_TEL.Value !="" )
            condObj.Like(HR_STAFF.Attribute.OFFICE_TEL, Convert.ToString(txtOFFICE_TEL.Value));

        if(txtCERT_FLAG.Value !="" )
            condObj.Like(HR_STAFF.Attribute.CERT_FLAG, Convert.ToString(txtCERT_FLAG.Value));

        if(txtON_POS_FLAG.Value !="" )
            condObj.Like(HR_STAFF.Attribute.ON_POS_FLAG, Convert.ToString(txtON_POS_FLAG.Value));

        if(txtJOIN_DATE.Value !="" )
            condObj.Like(HR_STAFF.Attribute.JOIN_DATE, Convert.ToString(txtJOIN_DATE.Value));

        if(txtTITLE_CODE.Value !="" )
            condObj.Like(HR_STAFF.Attribute.TITLE_CODE, Convert.ToString(txtTITLE_CODE.Value));

        if(txtSTATUS_CODE.Value !="" )
            condObj.Like(HR_STAFF.Attribute.STATUS_CODE, Convert.ToString(txtSTATUS_CODE.Value));

        if(txtDEGREE_CODE.Value !="" )
            condObj.Like(HR_STAFF.Attribute.DEGREE_CODE, Convert.ToString(txtDEGREE_CODE.Value));

        if(txtMAJOR.Value !="" )
            condObj.Like(HR_STAFF.Attribute.MAJOR, Convert.ToString(txtMAJOR.Value));

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }