Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int wrID = ((Request.QueryString["wonumber"] == null) || (Request.QueryString["wonumber"] == "")) ? -1 : Int32.Parse(Request.QueryString["wonumber"]);

            if (!Page.IsPostBack)
            {
                if (wrID > 0)
                {
                    RequestDet rdet = RequestLogic.GetRequestDetail(wrID);

                    if (rdet != null)
                    {
                        lbNoRequestMessage.Text = string.Empty;
                        lbWRNumber.Text         = wrID.ToString();
                        lbDescription.Text      = rdet.Description;
                        lbBuilding.Text         = rdet.RequesterBuilding;
                        lbRoom.Text             = rdet.RequesterRoom;
                        lbRequestedOn.Text      = rdet.RequestedOn.ToString();
                        lbRequestedBy.Text      = rdet.RequestedBy;
                        lbShop.Text             = rdet.RequestedBy;
                        lbStatus.Text           = rdet.Status;
                        lbReqComments.Text      = rdet.Comments;
                        lbCustomerName.Text     = rdet.RequestedBy;
                        lbCustomerPhone.Text    = rdet.RequesterPhone;
                    }
                    else
                    {
                        lbNoRequestMessage.Text = "No service request information.";
                    }

                    SurveyDet sdet = SurveyLogic.GetSurveyDetail(wrID);
                    if (sdet != null)
                    {
                        lbNoSurveyMessage.Text = string.Empty;
                        lbWONumber.Text        = sdet.WONumber.ToString();
                        lbCreatedOn.Text       = sdet.CreatedOn.ToString();

                        lbQuestion5Ans.Text = sdet.Question5Ans.ToString();

                        lbQuestion1Ans.Text = sdet.Question1Ans.ToString();
                        lbQuestion2Ans.Text = sdet.Question2Ans.ToString();
                        lbQuestion3Ans.Text = sdet.Question3Ans.ToString();
                        lbComments.Text     = sdet.Comments;
                    }
                    else
                    {
                        lbNoSurveyMessage.Text = "No survey response found.";
                    }
                }
            }
        }
        public void Add(SurveyLogic surveyLogic_0)
        {
            string string_ = string.Format(GClass0.smethod_0("ëǯ˳Ϛӌ׉ڼߒ্ࣔ૗ஷ೅෠໦࿥ჷᇨዜᏠᓩᗤᛯឣᣚᧈ᫏ᯂ᳙᷌Ềᾯ⃎⇎⋇⌶␽┢☨✢⠪⤼⩔⬾ⰸⴻ⸱⼡〭ㄸ㈾㌫㐫㔵㙀㜭㠥㤻㨥㬲㰪㴤㹈㼱䀧䄢䈯䌛䐛䔂䘝䜕䠉䤎䨝䬅䱺䴙丛伔倛儒刏匂吋唞嘟圊堍夌婤嬉尉崑币彯怋愒戟捾摲敱晳杬桥楩橹此汥洜渔潥灳煽牥獪瑽甅瘋睐砚祔稏笋簁絞縕罞者脍艛茭董蔱蘻蝠蠩襤訿謻谱赮踠轮逵鄽鈷鍴鐻镰阫霧頭饲騾魺鰡鴩鹿鼴ꁿꄨ"), new object[]
            {
                surveyLogic_0.PAGE_ID,
                surveyLogic_0.LOGIC_TYPE,
                surveyLogic_0.INNER_INDEX,
                surveyLogic_0.FORMULA,
                surveyLogic_0.RECODE_ANSWER,
                surveyLogic_0.LOGIC_MESSAGE,
                surveyLogic_0.NOTE,
                surveyLogic_0.IS_ALLOW_PASS
            });

            this.dbprovider_0.ExecuteNonQuery(string_);
        }
        public void Update(SurveyLogic surveyLogic_0)
        {
            string string_ = string.Format(GClass0.smethod_0("âǦ˱ϵӧ׷ڑߣࣚড়૛௉೒෦ໆ࿏჎ᇅኅ᏷ᓦᗶᚁ៰ᣞ᧙᫘ᯃ᳒ᷞẹᾥ₷↱⋮⎥⓮▵⚽⟜⣀⧉⫄⯏Ⳕⷞ⻐⿘ヂㆦ㊸㎤㒤㗹㚳㟽㡘㥒㨴㬲㰵㴿㸫㼧䀾䄸䈱䌱䐫䕒䙌䝐䠔䥝䨐䭀䰭䴥主伥倲優判卄呞啂噆圛填夣婺孰尉崟帚弗怓愓戊挕搝攁昆朕栝楮橰歬汬洱湼漵灠煪爉猋琄甋瘂真硲祻穮筯籺絽繼缘耊脖舒荏萅蕏蘖蜜衡襡詹譩谋贗踉輏遜鄑鉘錃鐏镫陲靿類饒驑魓鱌鵅鹉齙ꁄꅅꈵꌩꐳꕩ꘩ꝭ꠯꥙ꩅꭉ걙굏긩꽁끃넦눸댤둸딲뙼"), new object[]
            {
                surveyLogic_0.ID,
                surveyLogic_0.PAGE_ID,
                surveyLogic_0.LOGIC_TYPE,
                surveyLogic_0.INNER_INDEX,
                surveyLogic_0.FORMULA,
                surveyLogic_0.RECODE_ANSWER,
                surveyLogic_0.LOGIC_MESSAGE,
                surveyLogic_0.NOTE,
                surveyLogic_0.IS_ALLOW_PASS
            });

            this.dbprovider_0.ExecuteNonQuery(string_);
        }
        public SurveyLogic GetBySql(string string_0)
        {
            IDataReader dataReader  = this.dbprovider_0.ExecuteReader(string_0);
            SurveyLogic surveyLogic = new SurveyLogic();

            using (dataReader)
            {
                while (dataReader.Read())
                {
                    surveyLogic.ID            = Convert.ToInt32(dataReader[GClass0.smethod_0("KŅ")]);
                    surveyLogic.PAGE_ID       = dataReader[GClass0.smethod_0("WŇɂ́ќՋم")].ToString();
                    surveyLogic.LOGIC_TYPE    = dataReader[GClass0.smethod_0("Fņɏ͎х՚ِݚࡒॄ")].ToString();
                    surveyLogic.INNER_INDEX   = Convert.ToInt32(dataReader[GClass0.smethod_0("Bńɇ͍ѕՙٌ݊ࡇेਖ਼")]);
                    surveyLogic.FORMULA       = dataReader[GClass0.smethod_0("Aʼnɗ͉іՎـ")].ToString();
                    surveyLogic.RECODE_ANSWER = dataReader[GClass0.smethod_0("_ʼnɈͅэՍ٘݇ࡋॗ੔େ౓")].ToString();
                    surveyLogic.LOGIC_MESSAGE = dataReader[GClass0.smethod_0("AŃɌ̓ъ՗ي݃ࡖॗੂ୅ౄ")].ToString();
                    surveyLogic.NOTE          = dataReader[GClass0.smethod_0("JŌɖ̈́")].ToString();
                    surveyLogic.IS_ALLOW_PASS = Convert.ToInt32(dataReader[GClass0.smethod_0("Dşɔ͋хՄوݑ࡚॔ੂ୑౒")]);
                }
            }
            return(surveyLogic);
        }
        public void Delete(SurveyLogic surveyLogic_0)
        {
            string string_ = string.Format(GClass0.smethod_0("ašɯͧѵեؿݘࡏ॓੖଺ొ൭๥འၰᅭ቟፽ᑶᕹᙬᜮᡚ᥄ᩎ᭘᱌ᴨṎὂ‥ℹ≸⌲⑼"), surveyLogic_0.ID);

            this.dbprovider_0.ExecuteNonQuery(string_);
        }
 public SurveyController(SurveyContext context)
 {
     _context = context;
     _logic   = new SurveyLogic(_context);
 }
    // Use this for initialization
    void Start()
    {
        Debug.Log("DataPath: " + Application.dataPath);
        //System.Diagnostics.Process.Start(Application.dataPath + "/AffectiveLnk_bridge");

        stimulusDeliveryPlane.active = false;
        //stimulusDeliveryPlane.transform.position = new Vector3(stimulusDeliveryPlane.transform.position.x, 1000, stimulusDeliveryPlane.transform.position.z);

        threatCollisionSource = Camera.mainCamera.GetComponent<AudioSource>();

        gameLog = new List<GameLogEntry>();

        if(GameLogic.instance == null)
        {
            GameLogic.instance = this;
        }
        gameState = GameState.menu;

        player = (Player)FindObjectOfType(typeof(Player));
        expTrial = (ExperimentalTrial)FindObjectOfType(typeof(ExperimentalTrial));
        surveyLogic = (SurveyLogic)FindObjectOfType(typeof(SurveyLogic));
        empConnection = (EmpaticaConnection)FindObjectOfType(typeof(EmpaticaConnection));
        gameConfig = (GameConfigurator)FindObjectOfType(typeof(GameConfigurator));

        startPoints = new Vector3[4];

        startPoints[0] = new Vector3(-4,1,3);
        startPoints[1] = new Vector3(4,1,3);
        startPoints[2] = new Vector3(4,1,-3);
        startPoints[3] = new Vector3(-4,1,-3);
    }