Ejemplo n.º 1
0
        private void GetGuid()
        {
            SurveyQuestion ent = new SurveyQuestion();

            ent.IsFixed = "2";  //固定问卷标志

            UserContextInfo UC = new UserContextInfo();

            ent.CompanyId = UC.GetUserCurrentCorpId(UserInfo.UserID);

            string sql = @"select top 1 Name from SysGroup where GroupId='{0}' ";

            sql = string.Format(sql, ent.CompanyId);
            object obj = DataHelper.QueryValue(sql);

            if (obj != null)
            {
                ent.CompanyName = obj.ToString();
            }

            ent.DoCreate();
            this.PageState.Add("Guid", ent.Id);
        }