Пример #1
0
        public void UpdateLine(string UserGUID, string password, MyExpenses.Model.BussinessObjects.ClaimDetails ClaimDetails)
        {
            if (CommonFunctions.IsInternetAvailable())
            {
                bookingWA = new BookingWA();

                bookingWA.UpdateLine(Utilities.BuildRequestXml.UpdateLine(UserGUID, password, ClaimDetails));
                bookingWA.OnWebDataAccessEvent += bookingWA_OnWebDataAccessEvent11;
            }
            else
            {
                OnUpdateLineCompleted(900, null);
            }
        }
Пример #2
0
        public void CheckLogin(string URL, string UserName, string password)
        {
            if (CommonFunctions.IsInternetAvailable())
            {
                bookingWA = new BookingWA();

                bookingWA.CheckLogin(Utilities.BuildRequestXml.GetLoginRequest( URL,  UserName,  password));
                bookingWA.OnWebDataAccessEvent += bookingWA_OnWebDataAccessEvent;
            }
            else
            {
                FireGetLogonSignatureCompleted(900, null);
            }
        }
Пример #3
0
        public void MoveClaimLine(string UserGUID, string passwordshar, string UniqueID, string NewClaimID)
        {
            if (CommonFunctions.IsInternetAvailable())
            {
                bookingWA = new BookingWA();

                bookingWA.MoveClaimLine(Utilities.BuildRequestXml.MoveClaimLine(UserGUID, passwordshar, UniqueID,NewClaimID));
                bookingWA.OnWebDataAccessEvent += bookingWA_OnWebDataAccessEvent3;
            }
            else
            {
                if (OnMoveClaimLineCompleted != null)
                    OnMoveClaimLineCompleted(900, null);
            }
        }
Пример #4
0
        public void DeleteClaimHeader(string UserGUID, string passwordshar, string ClaimID)
        {
            if (CommonFunctions.IsInternetAvailable())
            {
                bookingWA = new BookingWA();

                bookingWA.DeleteClaimHeader(Utilities.BuildRequestXml.DeleteCLaimHeader(UserGUID, passwordshar, ClaimID));
                bookingWA.OnWebDataAccessEvent += bookingWA_OnWebDataAccessEvent1;
            }
            else
            {
                if (OnDeleteClaimHeaderCompleted != null)
                    OnDeleteClaimHeaderCompleted(900, null);
            }
        }
Пример #5
0
        public void GetCategories(string UserGUID, string password)
        {
            if (CommonFunctions.IsInternetAvailable())
            {
                if (bookingWA==null)
                bookingWA = new BookingWA();

                bookingWA.GetCategories(Utilities.BuildRequestXml.GetCategories(UserGUID, password));
                bookingWA.OnWebDataAccessEvent += bookingWA_OnWebDataAccessEvent4;
            }
            else
            {
                if (OnGetCategoriesCompleted != null)
                    OnGetCategoriesCompleted(900, null);
            }
        }
Пример #6
0
        public void SetLineApproval(string UserGUID, string passwordShar, string ClaimID, string UniqueID, int linestatus, string deniedReason, double VatAmount, int vatrateID)
        {
            if (CommonFunctions.IsInternetAvailable())
            {
                bookingWA = new BookingWA();

                bookingWA.SetLineApproval(Utilities.BuildRequestXml.SetLineApproval(UserGUID, passwordShar, ClaimID, UniqueID, linestatus, deniedReason, VatAmount, vatrateID));
                bookingWA.OnWebDataAccessEvent += bookingWA_OnWebDataAccessEvent4;
            }
            else
            {
                if (OnApproveClaimLineCompleted != null)
                    OnApproveClaimLineCompleted(900, null);
            }
        }