public override void OnControlLoad(object sender, EventArgs e) { using (StockTransactionView view = new StockTransactionView()) { view.Text = Titles.PurchaseOrder; view.Book = TranBook.Purchase; view.SubBook = SubTranBook.Order; view.AddNewUrl = "~/Modules/Purchase/Entry/Order.mix"; view.PreviewUrl = "~/Modules/Purchase/Reports/PurchaseOrderReport.mix"; view.ChecklistUrl = "~/Modules/Purchase/Confirmation/Order.mix"; view.MergeToGRNButtonUrl = "~/Modules/Purchase/Entry/GRN.mix"; view.IsNonGlTransaction = true; view.ShowMergeToGRNButton = true; view.DbTableName = "transactions.non_gl_stock_master"; view.PrimaryKey = "non_gl_stock_master_id"; view.UserId = AppUsers.GetCurrent().View.UserId.ToInt(); view.OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt(); view.Catalog = AppUsers.GetCurrentUserDB(); this.Placeholder1.Controls.Add(view); } }
public override void OnControlLoad(object sender, EventArgs e) { using (StockTransactionView view = new StockTransactionView()) { view.Text = Titles.SalesQuotation; view.Book = TranBook.Sales; view.SubBook = SubTranBook.Quotation; view.AddNewUrl = "~/Modules/Sales/Entry/Quotation.mix"; view.PreviewUrl = "~/Modules/Sales/Reports/SalesQuotationReport.mix"; view.ChecklistUrl = "~/Modules/Sales/Confirmation/Quotation.mix"; view.ShowMergeToOrderButton = true; view.MergeToOrderButtonUrl = "~/Modules/Sales/Entry/Order.mix"; view.ShowMergeToDeliveryButton = true; view.MergeToDeliveryButtonUrl = "~/Modules/Sales/Entry/Delivery.mix"; view.DbTableName = "transactions.non_gl_stock_master"; view.PrimaryKey = "non_gl_stock_master_id"; view.IsNonGlTransaction = true; this.Placeholder1.Controls.Add(view); } }
public override void OnControlLoad(object sender, EventArgs e) { using (StockTransactionView productView = new StockTransactionView()) { productView.Text = Titles.PurchaseReturn; productView.Book = TranBook.Purchase; productView.SubBook = SubTranBook.Return; productView.PreviewUrl = "~/Modules/Purchase/Reports/PurchaseReturnReport.mix"; productView.ChecklistUrl = "~/Modules/Purchase/Confirmation/Return.mix"; this.Placeholder1.Controls.Add(productView); } }
public override void OnControlLoad(object sender, EventArgs e) { using (StockTransactionView productView = new StockTransactionView()) { productView.Text = Titles.StockTransferJournal; productView.Book = TranBook.Inventory; productView.SubBook = SubTranBook.Transfer; productView.AddNewUrl = "~/Modules/Inventory/Entry/Transfer.mix"; productView.PreviewUrl = "~/Modules/Inventory/Reports/InventoryTransferReport.mix"; productView.ChecklistUrl = "~/Modules/Inventory/Confirmation/Transfer.mix"; this.Placeholder1.Controls.Add(productView); } }
public override void OnControlLoad(object sender, EventArgs e) { using (StockTransactionView view = new StockTransactionView()) { view.Text = Titles.SalesReturn; view.Book = TranBook.Sales; view.SubBook = SubTranBook.Return; view.PreviewUrl = "~/Modules/Sales/Reports/SalesReturnReport.mix"; view.ChecklistUrl = "~/Modules/Sales/Confirmation/Return.mix"; view.DbTableName = "transactions.stock_master"; view.PrimaryKey = "stock_master_id"; this.Placeholder1.Controls.Add(view); } }
public override void OnControlLoad(object sender, EventArgs e) { using (StockTransactionView view = new StockTransactionView()) { view.Text = Titles.PurchaseReturn; view.Book = TranBook.Purchase; view.SubBook = SubTranBook.Return; view.PreviewUrl = "~/Modules/Purchase/Reports/PurchaseReturnReport.mix"; view.ChecklistUrl = "~/Modules/Purchase/Confirmation/Return.mix"; view.UserId = CurrentUser.GetSignInView().UserId.ToInt(); view.OfficeId = CurrentUser.GetSignInView().OfficeId.ToInt(); this.Placeholder1.Controls.Add(view); } }
public override void OnControlLoad(object sender, EventArgs e) { using (StockTransactionView view = new StockTransactionView()) { view.Text = Titles.StockTransferJournal; view.Book = TranBook.Inventory; view.SubBook = SubTranBook.Transfer; view.AddNewUrl = "~/Modules/Inventory/Entry/Transfer.mix"; view.PreviewUrl = "~/Modules/Inventory/Reports/InventoryTransferReport.mix"; view.ChecklistUrl = "~/Modules/Inventory/Confirmation/Transfer.mix"; view.UserId = CurrentUser.GetSignInView().UserId.ToInt(); view.OfficeId = CurrentUser.GetSignInView().OfficeId.ToInt(); this.Placeholder1.Controls.Add(view); } }
public override void OnControlLoad(object sender, EventArgs e) { using (StockTransactionView view = new StockTransactionView()) { view.Text = Titles.PurchaseReturn; view.Book = TranBook.Purchase; view.SubBook = SubTranBook.Return; view.PreviewUrl = "~/Modules/Purchase/Reports/PurchaseReturnReport.mix"; view.ChecklistUrl = "~/Modules/Purchase/Confirmation/Return.mix"; view.DbTableName = "transactions.transaction_master"; view.PrimaryKey = "transaction_master_id"; view.UserId = AppUsers.GetCurrent().View.UserId.ToInt(); view.OfficeId = AppUsers.GetCurrent().View.OfficeId.ToInt(); view.Catalog = AppUsers.GetCurrentUserDB(); this.Placeholder1.Controls.Add(view); } }
public override void OnControlLoad(object sender, EventArgs e) { using (StockTransactionView view = new StockTransactionView()) { view.Text = Titles.SalesReceipt; view.Book = TranBook.Sales; view.SubBook = SubTranBook.Receipt; view.AddNewUrl = "~/Modules/Sales/Entry/Receipt.mix"; view.PreviewUrl = "~/Modules/Sales/Reports/CustomerReceiptReport.mix"; view.ChecklistUrl = "~/Modules/Sales/Confirmation/Receipt.mix"; view.DbTableName = "transactions.transaction_master"; view.PrimaryKey = "transaction_master_id"; view.UserId = CurrentUser.GetSignInView().UserId.ToInt(); view.OfficeId = CurrentUser.GetSignInView().OfficeId.ToInt(); this.Placeholder1.Controls.Add(view); } }
public override void OnControlLoad(object sender, EventArgs e) { using (StockTransactionView view = new StockTransactionView()) { view.Text = Titles.PurchaseOrder; view.Book = TranBook.Purchase; view.SubBook = SubTranBook.Order; view.AddNewUrl = "~/Modules/Purchase/Entry/Order.mix"; view.PreviewUrl = "~/Modules/Purchase/Reports/PurchaseOrderReport.mix"; view.ChecklistUrl = "~/Modules/Purchase/Confirmation/Order.mix"; view.IsNonGlTransaction = true; view.DbTableName = "transactions.non_gl_stock_master"; view.PrimaryKey = "non_gl_stock_master_id"; this.Placeholder1.Controls.Add(view); } }
public override void OnControlLoad(object sender, EventArgs e) { using (StockTransactionView view = new StockTransactionView()) { view.Text = Titles.DirectPurchase; view.Book = TranBook.Purchase; view.SubBook = SubTranBook.Direct; view.AddNewUrl = "~/Modules/Purchase/Entry/DirectPurchase.mix"; view.PreviewUrl = "~/Modules/Purchase/Reports/DirectPurchaseInvoiceReport.mix"; view.ChecklistUrl = "~/Modules/Purchase/Confirmation/DirectPurchase.mix"; view.ShowReturnButton = true; view.ReturnButtonUrl = "~/Modules/Purchase/Entry/Return.mix"; view.DbTableName = "transactions.stock_master"; view.PrimaryKey = "stock_master_id"; this.Placeholder1.Controls.Add(view); } }
public override void OnControlLoad(object sender, EventArgs e) { using (StockTransactionView view = new StockTransactionView()) { view.Text = Titles.GoodsReceiptNote; view.Book = TranBook.Purchase; view.SubBook = SubTranBook.Receipt; view.AddNewUrl = "~/Modules/Purchase/Entry/GRN.mix"; view.PreviewUrl = "~/Modules/Purchase/Reports/GRNReport.mix"; view.ChecklistUrl = "~/Modules/Purchase/Confirmation/GRN.mix"; view.ShowReturnButton = true; view.ReturnButtonUrl = "~/Modules/Purchase/Entry/Return.mix"; view.DbTableName = "transactions.transaction_master"; view.PrimaryKey = "transaction_master_id"; view.UserId = CurrentUser.GetSignInView().UserId.ToInt(); view.OfficeId = CurrentUser.GetSignInView().OfficeId.ToInt(); this.Placeholder1.Controls.Add(view); } }
public override void OnControlLoad(object sender, EventArgs e) { using (StockTransactionView view = new StockTransactionView()) { view.Text = Titles.SalesDelivery; view.Book = TranBook.Sales; view.SubBook = SubTranBook.Delivery; view.AddNewUrl = "~/Modules/Sales/Entry/Delivery.mix"; view.PreviewUrl = "~/Modules/Sales/Reports/DeliveryReport.mix"; view.ChecklistUrl = "~/Modules/Sales/Confirmation/Delivery.mix"; view.ShowReturnButton = true; view.ReturnButtonUrl = "~/Modules/Sales/Entry/Return.mix"; view.DbTableName = "transactions.transaction_master"; view.PrimaryKey = "transaction_master_id"; view.UserId = AppUsers.GetCurrentLogin().View.UserId.ToInt(); view.OfficeId = AppUsers.GetCurrentLogin().View.OfficeId.ToInt(); view.Catalog = AppUsers.GetCurrentUserDB(); this.Placeholder1.Controls.Add(view); } }
private int GetLevel(StockTransactionView t) => Math.Abs(t.Profit) switch {