Exemplo n.º 1
0
    private void BindList(decimal staffid, string deptid, DateTime sdate, DateTime edate)
    {
        string    msg  = "";
        DataTable data = CheckInOutHelper.ContrastAndReceiveTable(staffid, deptid, sdate, edate, ref msg);

        if (data == null)
        {
            return;
        }

        BindHerd(data.Columns);
        BindRows(data.Rows);
    }
Exemplo n.º 2
0
    private void BindList(DateTime sdate, DateTime edate)
    {
        string msg = "";
        //DataTable data = CheckInOutHelper.ContrastAndReceiveTable(new V_HR_CK_USERINFO(), sdate, edate, ref msg);
        DataTable data = CheckInOutHelper.ContrastAndReceiveTable(0, "0", sdate, edate, ref msg);

        if (data == null)
        {
            return;
        }
        m_HeadTdCount = data.Columns.Count;
        //repHead.EnableViewState = false;
        //repHead.DataSource = data.Columns;
        //repHead.DataBind();
        //repList.EnableViewState = false;
        //repList.DataSource = data.Rows;
        //repList.DataBind();
    }