예제 #1
0
    private void BindList(KM_KNMA condObj)
    {
        if (condObj.af_PageByAttributeItem == null)//����������û�����ķ�ҳ�������ԣ�����������������
            condObj.af_PageBy(KM_KNMA.Attribute.KNMA_ID, Order.Desc);

        listObj = BLLTable<KM_KNMA>.Factory(conn).Select(valObj, condObj);

        repList.DataSource = listObj;
        repList.DataBind();
    }
예제 #2
0
    private void BindList(KM_KNMA condObj)
    {
        if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序
        {
            condObj.af_PageBy(KM_KNMA.Attribute.KNMA_ID, Order.Desc);
        }

        listObj = BLLTable <KM_KNMA> .Factory(conn).Select(valObj, condObj);

        repList.DataSource = listObj;
        repList.DataBind();
    }
예제 #3
0
 private void BindList(KM_KNMA condObj)
 {
     if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序
         condObj.af_PageBy(KM_KNMA.Attribute.KNMA_ID, Order.Desc);
     //if (Request["KNMA_IDS"] != null)
     //{
     //    condObj.In(WK_TaskScore.Attribute.ScoreID, Request["KNMA_IDS"]);
     //}
     //else
     //{
     //    string dtpts = userBase.MyDeptIDS;
     //    dtpts = "'" + dtpts.Replace(",", "','") + "'";
     //    condObj.Where("(PICDptID in(" + dtpts + ") or PICEmpID like '%" + userBase.StaffID + "%')");
     //}
     listObj = BLLTable<KM_KNMA>.Factory(conn).Select(valObj, condObj);
     repList.DataSource = listObj;
     repList.DataBind();
 }
예제 #4
0
    private void BindList(KM_KNMA condObj)
    {
        if (condObj.af_PageByAttributeItem == null)//如果不存在用户定义的分页排序属性,则用主键属性排序
        {
            condObj.af_PageBy(KM_KNMA.Attribute.KNMA_ID, Order.Desc);
        }
        //if (Request["KNMA_IDS"] != null)
        //{
        //    condObj.In(WK_TaskScore.Attribute.ScoreID, Request["KNMA_IDS"]);
        //}
        //else
        //{
        //    string dtpts = userBase.MyDeptIDS;
        //    dtpts = "'" + dtpts.Replace(",", "','") + "'";
        //    condObj.Where("(PICDptID in(" + dtpts + ") or PICEmpID like '%" + userBase.StaffID + "%')");
        //}
        listObj = BLLTable <KM_KNMA> .Factory(conn).Select(valObj, condObj);

        repList.DataSource = listObj;
        repList.DataBind();
    }