Пример #1
0
        private void RetriveParameters()
        {
            _userId = MoneyReceiptsBLL.GetLoggedInUserId();

            //Get user permission.
            MoneyReceiptsBLL.GetUserPermission(out _canAdd, out _canEdit, out _canDelete, out _canView);

            if (!ReferenceEquals(Request.QueryString["invid"], null))
            {
                Int32.TryParse(GeneralFunctions.DecryptQueryString(Request.QueryString["invid"].ToString()), out _InvoiceId);
            }
        }
Пример #2
0
        //private void GetPartyValuesSetToDdl()
        //{
        //    //ddlParty.Items.Clear();
        //    //var creditorInvoice = new CreditorInvoiceBLL().GetCreditor((ISearchCriteria)null);

        //    var creditorInvoice = new EstimateBLL().GetAllParty(0);
        //    ddlParty.DataSource = creditorInvoice;
        //    ddlParty.DataTextField = "PartyName";
        //    ddlParty.DataValueField = "pk_fwPartyID";
        //    ddlParty.DataBind();
        //    ddlParty.Items.Insert(0, new ListItem("--Select--", "0"));
        //}

        private void RetriveParameters()
        {
            _userId = MoneyReceiptsBLL.GetLoggedInUserId();

            //Get user permission.
            MoneyReceiptsBLL.GetUserPermission(out _canAdd, out _canEdit, out _canDelete, out _canView);

            //if (!ReferenceEquals(Request.QueryString["invid"], null))
            //{
            if (Request.QueryString["AdvanceID"] != null)
            {
                Int32.TryParse(GeneralFunctions.DecryptQueryString(Request.QueryString["AdvanceID"].ToString()), out _AdvanceId);
            }
            Int32.TryParse(GeneralFunctions.DecryptQueryString(Request.QueryString["jobid"].ToString()), out _jobid);
            _PaymentType = GeneralFunctions.DecryptQueryString(Request.QueryString["paymenttype"].ToString());
            //}
        }