public ProcessPaymentForm(Account account, string packNumber, string paymentOrderNumber, System.DateTime paymentOrderDate, Organization agent, string barcode, POSView posView, CashPaymentOrderType cashPaymentOrderType, int subService, long paymentOrderPackId) { this.InitializeComponent(); if (!User.IsMemberOf(RightsEnum.АРМКассирОплатаСчетчики)) { base.Controls.Remove(this.m_Tabs); base.Controls.Add(this.m_processPaymentView); } base.set_Width((int) ((int) (System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.get_Width() * 0.7))); base.set_Height((int) ((int) (System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.get_Height() * 0.8))); this.m_Account = account; this.set_Text(string.Concat((string[]) new string[] { this.m_Account.Number, "; ", this.m_Account.AddressName, "; ", this.m_Account.OwnerName })); this.m_processPaymentView.InitialiseProcessPaymentView(account, packNumber, paymentOrderNumber, paymentOrderDate, agent, barcode, posView, cashPaymentOrderType, subService, paymentOrderPackId); }
public void InitialiseProcessPaymentView(Account account, string packNumber, string paymentOrderNumber, System.DateTime paymentOrderDate, Organization agent, string barcode, POSView posView, CashPaymentOrderType cashPaymentOrderType, int subService, long paymentOrderPackId) { this.m_BarcodeInfo = new AIS.SN.Model.DomainObjects.BarcodeInfo(); this.m_Account = account; this.m_PackNumber = packNumber; this.m_OrderNumber = paymentOrderNumber; this.m_OrderDate = paymentOrderDate; this.m_Agent = agent; this.m_CashPaymentOrderType = (int) cashPaymentOrderType; this.m_subService = subService; this.m_PaymentOrderPackId = paymentOrderPackId; if (this.m_Agent == Organization.Null) { User currentUser = User.GetCurrentUser(); if (currentUser.OrgId != Organization.Null.Id) { Organization org = currentUser.GetOrg(); if (org.ParentId != Organization.Null.Id) { this.m_Agent = org.GetParent(); } else { this.m_Agent = org; } } } this.m_BarCode = barcode; this.m_posView = posView; }