public override void OnControlLoad(object sender, EventArgs e) { using (StockTransactionForm product = new StockTransactionForm()) { product.Book = TranBook.Purchase; product.SubBook = SubTranBook.Order; product.Text = Titles.PurchaseOrder; product.Catalog = AppUsers.GetCurrentUserDB(); product.OfficeId = AppUsers.GetCurrentLogin().View.OfficeId.ToInt(); this.Placeholder1.Controls.Add(product); } }
public override void OnControlLoad(object sender, EventArgs e) { using (StockTransactionForm product = new StockTransactionForm()) { product.Book = TranBook.Sales; product.SubBook = SubTranBook.Quotation; product.Text = Titles.SalesQuotation; product.ShowPriceTypes = true; product.ShowShippingInformation = true; product.ShowSalesAgents = true; product.ShowStore = true; product.ShowSalesType = true; product.Catalog = AppUsers.GetCurrentUserDB(); product.OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt(); this.Placeholder1.Controls.Add(product); } }
public override void OnControlLoad(object sender, EventArgs e) { long tranId = Conversion.TryCastLong(this.Request.QueryString["TranId"]); if (tranId <= 0) { this.Response.Redirect("~/Modules/Sales/Return.mix"); } using (StockTransactionForm product = new StockTransactionForm()) { product.Book = TranBook.Purchase; product.SubBook = SubTranBook.Return; product.Text = Titles.PurchaseReturn; product.ShowPriceTypes = true; product.ShowStore = true; product.Catalog = AppUsers.GetCurrentUserDB(); product.OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt(); this.Placeholder1.Controls.Add(product); } }