protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new HR_Scheduling_IniProject();

        if(txtID.Value !="" )
            condObj.Like(HR_Scheduling_IniProject.Attribute.ID, Convert.ToString(txtID.Value));

        if(txtSelBanciId.Value !="" )
            condObj.Like(HR_Scheduling_IniProject.Attribute.SelBanciId, Convert.ToString(txtSelBanciId.Value));

        if(txtXiuXi.Value !="" )
            condObj.Like(HR_Scheduling_IniProject.Attribute.XiuXi, Convert.ToString(txtXiuXi.Value));

        if(txtWorkDayType.Value !="" )
            condObj.Like(HR_Scheduling_IniProject.Attribute.WorkDayType, Convert.ToString(txtWorkDayType.Value));

        if(txtStartTime.Value !="" )
            condObj.Like(HR_Scheduling_IniProject.Attribute.StartTime, Convert.ToDateTime(txtStartTime.Value));

        if(txtEndTime.Value !="" )
            condObj.Like(HR_Scheduling_IniProject.Attribute.EndTime, Convert.ToDateTime(txtEndTime.Value));

        if(txtFuGaiOrZengBu.Value !="" )
            condObj.Like(HR_Scheduling_IniProject.Attribute.FuGaiOrZengBu, Convert.ToInt32(txtFuGaiOrZengBu.Value));

        if(txtStaffID.Value !="" )
            condObj.Like(HR_Scheduling_IniProject.Attribute.StaffID, Convert.ToString(txtStaffID.Value));

        if(txtDeptID.Value !="" )
            condObj.Like(HR_Scheduling_IniProject.Attribute.DeptID, Convert.ToString(txtDeptID.Value));

        if(txtOrgID.Value !="" )
            condObj.Like(HR_Scheduling_IniProject.Attribute.OrgID, Convert.ToString(txtOrgID.Value));

        if(txtProjectName.Value !="" )
            condObj.Like(HR_Scheduling_IniProject.Attribute.ProjectName, Convert.ToString(txtProjectName.Value));

        hidCondition.Value = condObj.ToJson(20);

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



        if (txtID.Value != "")
        {
            condObj.Like(HR_Scheduling_IniProject.Attribute.ID, Convert.ToString(txtID.Value));
        }


        if (txtSelBanciId.Value != "")
        {
            condObj.Like(HR_Scheduling_IniProject.Attribute.SelBanciId, Convert.ToString(txtSelBanciId.Value));
        }


        if (txtXiuXi.Value != "")
        {
            condObj.Like(HR_Scheduling_IniProject.Attribute.XiuXi, Convert.ToString(txtXiuXi.Value));
        }


        if (txtWorkDayType.Value != "")
        {
            condObj.Like(HR_Scheduling_IniProject.Attribute.WorkDayType, Convert.ToString(txtWorkDayType.Value));
        }


        if (txtStartTime.Value != "")
        {
            condObj.Like(HR_Scheduling_IniProject.Attribute.StartTime, Convert.ToDateTime(txtStartTime.Value));
        }


        if (txtEndTime.Value != "")
        {
            condObj.Like(HR_Scheduling_IniProject.Attribute.EndTime, Convert.ToDateTime(txtEndTime.Value));
        }


        if (txtFuGaiOrZengBu.Value != "")
        {
            condObj.Like(HR_Scheduling_IniProject.Attribute.FuGaiOrZengBu, Convert.ToInt32(txtFuGaiOrZengBu.Value));
        }


        if (txtStaffID.Value != "")
        {
            condObj.Like(HR_Scheduling_IniProject.Attribute.StaffID, Convert.ToString(txtStaffID.Value));
        }


        if (txtDeptID.Value != "")
        {
            condObj.Like(HR_Scheduling_IniProject.Attribute.DeptID, Convert.ToString(txtDeptID.Value));
        }


        if (txtOrgID.Value != "")
        {
            condObj.Like(HR_Scheduling_IniProject.Attribute.OrgID, Convert.ToString(txtOrgID.Value));
        }


        if (txtProjectName.Value != "")
        {
            condObj.Like(HR_Scheduling_IniProject.Attribute.ProjectName, Convert.ToString(txtProjectName.Value));
        }

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
    protected void btnFind_Click(object sender, EventArgs e)
    {
        try
        {
            condObj = new HR_Scheduling_IniProject();

            if(txtID.Value !="" )
                condObj.Like(HR_Scheduling_IniProject.Attribute.ID, Convert.ToString(txtID.Value));

            if(txtSelBanciId.Value !="" )
                condObj.Like(HR_Scheduling_IniProject.Attribute.SelBanciId, Convert.ToString(txtSelBanciId.Value));

            if(txtXiuXi.Value !="" )
                condObj.Like(HR_Scheduling_IniProject.Attribute.XiuXi, Convert.ToString(txtXiuXi.Value));

            if(txtWorkDayType.Value !="" )
                condObj.Like(HR_Scheduling_IniProject.Attribute.WorkDayType, Convert.ToString(txtWorkDayType.Value));

            if(txtStartTime.Value !="" )
                condObj.Like(HR_Scheduling_IniProject.Attribute.StartTime, Convert.ToDateTime(txtStartTime.Value));

            if(txtEndTime.Value !="" )
                condObj.Like(HR_Scheduling_IniProject.Attribute.EndTime, Convert.ToDateTime(txtEndTime.Value));

            if(txtFuGaiOrZengBu.Value !="" )
                condObj.Like(HR_Scheduling_IniProject.Attribute.FuGaiOrZengBu, Convert.ToInt32(txtFuGaiOrZengBu.Value));

            if(txtStaffID.Value !="" )
                condObj.Like(HR_Scheduling_IniProject.Attribute.StaffID, Convert.ToString(txtStaffID.Value));

            if(txtDeptID.Value !="" )
                condObj.Like(HR_Scheduling_IniProject.Attribute.DeptID, Convert.ToString(txtDeptID.Value));

            if(txtOrgID.Value !="" )
                condObj.Like(HR_Scheduling_IniProject.Attribute.OrgID, Convert.ToString(txtOrgID.Value));

            if(txtProjectName.Value !="" )
                condObj.Like(HR_Scheduling_IniProject.Attribute.ProjectName, Convert.ToString(txtProjectName.Value));

            listObj = BLLTable<HR_Scheduling_IniProject>.Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount);
            repCus.DataSource = listObj;
            repCus.DataBind();
        }
        catch (Exception ex)
        {
            litWarn.Text = ex.Message;
        }
        aspPager.RecordCount = recount;
    }
    protected void btnFind_Click(object sender, EventArgs e)
    {
        try
        {
            condObj = new HR_Scheduling_IniProject();



            if (txtID.Value != "")
            {
                condObj.Like(HR_Scheduling_IniProject.Attribute.ID, Convert.ToString(txtID.Value));
            }


            if (txtSelBanciId.Value != "")
            {
                condObj.Like(HR_Scheduling_IniProject.Attribute.SelBanciId, Convert.ToString(txtSelBanciId.Value));
            }


            if (txtXiuXi.Value != "")
            {
                condObj.Like(HR_Scheduling_IniProject.Attribute.XiuXi, Convert.ToString(txtXiuXi.Value));
            }


            if (txtWorkDayType.Value != "")
            {
                condObj.Like(HR_Scheduling_IniProject.Attribute.WorkDayType, Convert.ToString(txtWorkDayType.Value));
            }


            if (txtStartTime.Value != "")
            {
                condObj.Like(HR_Scheduling_IniProject.Attribute.StartTime, Convert.ToDateTime(txtStartTime.Value));
            }


            if (txtEndTime.Value != "")
            {
                condObj.Like(HR_Scheduling_IniProject.Attribute.EndTime, Convert.ToDateTime(txtEndTime.Value));
            }


            if (txtFuGaiOrZengBu.Value != "")
            {
                condObj.Like(HR_Scheduling_IniProject.Attribute.FuGaiOrZengBu, Convert.ToInt32(txtFuGaiOrZengBu.Value));
            }


            if (txtStaffID.Value != "")
            {
                condObj.Like(HR_Scheduling_IniProject.Attribute.StaffID, Convert.ToString(txtStaffID.Value));
            }


            if (txtDeptID.Value != "")
            {
                condObj.Like(HR_Scheduling_IniProject.Attribute.DeptID, Convert.ToString(txtDeptID.Value));
            }


            if (txtOrgID.Value != "")
            {
                condObj.Like(HR_Scheduling_IniProject.Attribute.OrgID, Convert.ToString(txtOrgID.Value));
            }


            if (txtProjectName.Value != "")
            {
                condObj.Like(HR_Scheduling_IniProject.Attribute.ProjectName, Convert.ToString(txtProjectName.Value));
            }

            listObj = BLLTable <HR_Scheduling_IniProject> .Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount);

            repCus.DataSource = listObj;
            repCus.DataBind();
        }
        catch (Exception ex)
        {
            litWarn.Text = ex.Message;
        }
        aspPager.RecordCount = recount;
    }