Exemple #1
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new HR_Scheduling();



        if (txtYear.Value != "")
        {
            condObj.Like(HR_Scheduling.Attribute.SchYear, Convert.ToInt32(txtYear.Value));
        }


        if (txtMonth.Value != "")
        {
            condObj.Like(HR_Scheduling.Attribute.SchMonth, Convert.ToInt16(txtMonth.Value));
        }


        if (txtDay.Value != "")
        {
            condObj.Like(HR_Scheduling.Attribute.SchDay, Convert.ToInt16(txtDay.Value));
        }


        if (txtType.Value != "")
        {
            condObj.SchType = Convert.ToInt32(txtType.Value);
        }


        if (txtSchClassid.Value != "")
        {
            condObj.Like(HR_Scheduling.Attribute.SchClassid, Convert.ToInt32(txtSchClassid.Value));
        }

        hidCondition.Value = condObj.ToJson(20);

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

        if(txtYear.Value !="" )
            condObj.Like(HR_Scheduling.Attribute.SchYear, Convert.ToInt32(txtYear.Value));

        if(txtMonth.Value !="" )
            condObj.Like(HR_Scheduling.Attribute.SchMonth, Convert.ToInt16(txtMonth.Value));

        if(txtDay.Value !="" )
            condObj.Like(HR_Scheduling.Attribute.SchDay, Convert.ToInt16(txtDay.Value));

        if(txtType.Value !="" )
            condObj.SchType = Convert.ToInt32(txtType.Value);

        if(txtSchClassid.Value !="" )
            condObj.Like(HR_Scheduling.Attribute.SchClassid, Convert.ToInt32(txtSchClassid.Value));

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }