Ejemplo n.º 1
0
 private void pageinit()
 {
     System.Data.DataTable dt = ULCode.QDA.XSql.GetDataTable("select *,tedd.Name,ted.Name DeptName,tedc.Name DutyCatagoryName from TU_User_X_DutyDetail tuxd left join TE_DutyDetail tedd on tuxd.DutyDetailID=tedd.ID left join TE_Departments ted on tedd.DepartentID=ted.ID left join TE_DutyCatagory tedc on tedd.DutyCatagoryID=tedc.ID where UserID='" + Request["UserID"] + "'");
     Gv_tfk.DataSource = dt;
     Gv_tfk.DataBind();
     if (Gv_tfk.Rows.Count > 0)
     {
         Gv_tfk.HeaderRow.TableSection = TableRowSection.TableHeader;
         Gv_tfk.HeaderStyle.Height     = Unit.Pixel(40);
     }
 }
        private void pageinit()
        {
            string userId = WX.Request.rUserId;

            WX.Model.User.MODEL usermodel = WX.Request.rUser;
            MenuBar1.Param2 = usermodel.State.ToString();
            System.Data.DataTable dt = WX.HR.TransferKong.GetList(userId);
            Gv_tfk.DataSource = dt;
            Gv_tfk.DataBind();
            if (Gv_tfk.Rows.Count > 0)
            {
                Gv_tfk.HeaderRow.TableSection = TableRowSection.TableHeader;
                Gv_tfk.HeaderStyle.Height     = Unit.Pixel(40);
            }
        }