예제 #1
0
 private void gvDateBind()
 {
     UsecarApplyformManager Manager = new UsecarApplyformManager();
     gvSelectAll.DataSource = null;
     gvSelectAll.DataSource = Manager.GetusecarapplyformStatus(1);
     gvSelectAll.DataBind();
 }
        private void gvDataBind()
        {
            UsecarApplyformManager Manager = new UsecarApplyformManager();
            List<usecarapplyform> gvSelectAll = new List<usecarapplyform>();
            List<usecarapplyform> gvOK = new List<usecarapplyform>();
            gvSelectAll.AddRange(Manager.GetusecarapplyformStatus(2));
            gvSelectAll.AddRange(Manager.GetusecarapplyformStatus(6));

            this.gvSelectAll.DataSource = gvSelectAll;
            this.gvSelectAll.DataBind();

            gvOK.AddRange(Manager.GetusecarapplyformStatus(1));
            gvOK.AddRange(Manager.GetusecarapplyformStatus(4));
            gvOK.AddRange(Manager.GetusecarapplyformStatus(5));
            this.gvOK.DataSource = gvOK;
            this.gvOK.DataBind();

            this.gvReject.DataSource = Manager.GetusecarapplyformStatus(3);
            this.gvReject.DataBind();
        }