Exemple #1
0
        protected void btnGetTeamEventsText_Click(object sender, EventArgs e)
        {
            MyFileItAppServiceClient obj    = new MyFileItAppServiceClient();
            MyFileItResult           result = new MyFileItResult();

            result = obj.GetTeamEvents(appGlobal.username, appGlobal.password, null, null, "2016");
            var i = 0;
        }
Exemple #2
0
        protected void btnAddPaymentHistory_Click(object sender, EventArgs e)
        {
            MyFileItAppServiceClient obj        = new MyFileItAppServiceClient();
            MyFileItResult           result     = new MyFileItResult();
            PaymentHistoryDTO        objPayment = new PaymentHistoryDTO();

            objPayment.PRIMARYAPPUSERID    = 2;
            objPayment.DATEPURCHASED       = DateTime.UtcNow;
            objPayment.QUANTITY            = 1;
            objPayment.ITEM                = "ShareKey";
            objPayment.AMOUNT              = Convert.ToDecimal("3.99");;
            objPayment.LAST4CC             = "1111";
            objPayment.PROMOCODE           = "";
            objPayment.AUTHORIZATIONNUMBER = "0000";
            //objPayment.NAME = "Test Name";

            result = obj.AddPaymentHistory(appGlobal.username, appGlobal.password, objPayment);
        }
        public bool SaveOrganization()
        {
            try
            {
                var svc             = new MyFileItAppService();
                var result          = new MyFileItResult();
                var objOrganization = new OrganizationDTO();
                objOrganization = setdata(objOrganization);

                result          = svc.AddOrganization(SERVICEUSER, SERVICEPASS, objOrganization);
                lblMessage.Text = result.Success ? "ADDED ORGANIZATION" : "ERROR ADDING ORGANIZATION";
            }
            catch (Exception ex)
            {
                // appGlobal.DisplayMsg(ex.Message.ToString(), this);
            }
            return(false);
        }