Example #1
0
        private async void GetLedgerItems(int compCode, int journalNo)
        {
            try
            {
                if (CrossConnectivity.Current.IsConnected)
                {
                    CustomProgressDialog.ShowProgDialog(mActivity,
                                                        mActivity.Resources.GetString(Resource.String.loading));

                    List <LedgerOrderItem> ledgerOrderItem = await WebServiceMethods.GetLedgerOrderItems(compCode, journalNo);

                    LedgerOrderObj.LedgerOrderItems = ledgerOrderItem;

                    CustomProgressDialog.HideProgressDialog();
                }
            }
            catch (Exception e)
            {
                CustomProgressDialog.HideProgressDialog();
            }
        }
Example #2
0
        public async Task CallWebserviceForOrdersList()
        {
            try
            {
                if (IosUtility.IsReachable())
                {
                    IosUtility.showProgressHud("");

                    var ledgerOrderItemList = await WebServiceMethods.GetLedgerOrderItems(LedgerOrderObj.CompCode, LedgerOrderObj.JournalNo);

                    LedgerOrderObj.LedgerOrderItems = ledgerOrderItemList;
                    IosUtility.hideProgressHud();
                }
            }
            catch (Exception ex)
            {
                IosUtility.hideProgressHud();
                IosUtils.IosUtility.showAlertWithInfo(IosUtils.LocalizedString.sharedInstance.GetLocalizedString("LSErrorTitle", "LSErrorTitle"),
                                                      IosUtils.LocalizedString.sharedInstance.GetLocalizedString("LSUnknownError", "LSErrorTitle"));
            }
        }