示例#1
0
        private void LoadValuesFromSession()
        {
            if (Session["Product"] == null)
            {
                return;
            }

            model = Session["Product"] as MixERP.Net.Common.Models.Transactions.MergeModel;

            if (model == null)
            {
                return;
            }

            PartyDropDownListCascadingDropDown.SelectedValue = model.PartyCode.ToString();

            if (PriceTypeDropDownList.SelectedItem != null)
            {
                MixERP.Net.BusinessLayer.Helpers.DropDownListHelper.SetSelectedValue(PriceTypeDropDownList, model.PriceTypeId.ToString());
            }

            ReferenceNumberTextBox.Text    = model.ReferenceNumber;
            StatementReferenceTextBox.Text = model.StatementReference;

            Session[this.ID] = model.View;
            this.ClearSession("Product");
        }
示例#2
0
        private void LoadValuesFromSession()
        {
            if(Session["Product"] == null)
            {
                return;
            }

            model = Session["Product"] as MixERP.Net.Common.Models.Transactions.MergeModel;

            if(model == null)
            {
                return;
            }

            PartyDropDownListCascadingDropDown.SelectedValue = model.PartyCode.ToString();

            if(PriceTypeDropDownList.SelectedItem != null)
            {
                MixERP.Net.BusinessLayer.Helpers.DropDownListHelper.SetSelectedValue(PriceTypeDropDownList, model.PriceTypeId.ToString(MixERP.Net.BusinessLayer.Helpers.SessionHelper.Culture()));
            }

            ReferenceNumberTextBox.Text = model.ReferenceNumber;
            StatementReferenceTextBox.Text = model.StatementReference;

            Session[this.ID] = model.View;
            this.ClearSession("Product");
        }