コード例 #1
0
        public bool CreateUser(HttpServerUtility httpServer, ArrayList valueList)
        {
            //uservalueList.Add(ViewState["EmailAddress"].ToString());
            //uservalueList.Add(ViewState["FirstName"].ToString());
            //uservalueList.Add(ViewState["LastName"].ToString());
            //uservalueList.Add(ViewState["Password1"].ToString());
            //uservalueList.Add(ViewState["Password2"].ToString());
            DataAccessUtility dau             = new DataAccessUtility();
            ArrayList         paramAppList    = new ArrayList();
            DateTime          current         = DateTime.Now;
            string            xmlAppPath      = "ApplicationSettings//ApplicationSetting[Key = \"ApplicationName\"]";
            string            xmlAppName      = dau.GetKeyValue(httpServer, xmlAppPath);
            string            getappProcKey   = "SqlConnections//SqlConnection//SqlProcedures//SqlProcedure[Key = \"GetApplicationId\"]";
            string            xmlGetAppidProc = dau.GetKeyValue(httpServer, getappProcKey);

            paramAppList.Add(CreateParamArray("@ApplicationName", xmlAppName));
            paramAppList.Add(CreateParamArray("@ApplicationId", ""));

            Guid resultGuid = dau.ExecuteProcedureGuid(httpServer, "SecurityConnectionString", xmlGetAppidProc, paramAppList, "@ApplicationId");

            //DataView resultView = dau.ExecuteProcedure(httpServer, "SecurityConnectionString", xmlGetAppidProc, paramAppList);

            //string getUserCreateProcKey = "SqlConnections//SqlConnection//SqlProcedures//SqlProcedure[Key = \"CreateUsersUser\"]";
            //string xmlGetUserCreateProc = dau.GetKeyValue(httpServer, getUserCreateProcKey);
            //Guid appidGuid = (Guid)resultView.Table.Rows[0].ItemArray[0];
            //ArrayList createUserList = new ArrayList();
            //createUserList.Add(CreateParamArray("@ApplicationId", appidGuid));
            //createUserList.Add(CreateParamArray("@UserName", valueList[0].ToString()));
            //createUserList.Add(CreateParamArray("@IsUserAnonymous", 0));
            //createUserList.Add(CreateParamArray("@LastActivityDate", current.ToString()));
            //createUserList.Add(CreateParamArray("@UserId", Guid.Empty));
            //DataView userView = dau.ExecuteProcedure(httpServer, "SecurityConnectionString", xmlGetUserCreateProc, createUserList);



            return(false);
        }