コード例 #1
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            long transactionMasterId = Conversion.TryCastLong(this.Request["TranId"]);

            using (Checklist checklist = new Checklist())
            {
                checklist.Text = Titles.DirectPurchase;
                checklist.ViewReportButtonText = Titles.ViewThisInvoice;
                checklist.EmailReportButtonText = Titles.EmailThisInvoice;
                checklist.PartyEmailAddress = Parties.GetEmailAddress(AppUsers.GetCurrentUserDB(),
                    TranBook.Purchase, SubTranBook.Direct, transactionMasterId);
                checklist.AttachmentBookName = "transaction";
                checklist.OverridePath = "/Modules/Purchase/DirectPurchase.mix";
                checklist.DisplayWithdrawButton = true;
                checklist.DisplayViewReportButton = true;
                checklist.DisplayEmailReportButton = true;
                checklist.DisplayPrintGlEntryButton = true;
                checklist.DisplayAttachmentButton = true;
                checklist.ReportPath = "~/Modules/Purchase/Reports/DirectPurchaseInvoiceReport.mix";
                checklist.GlAdvicePath = "~/Modules/Finance/Reports/GLAdviceReport.mix";
                checklist.ViewPath = "/Modules/Purchase/DirectPurchase.mix";
                checklist.AddNewPath = "/Modules/Purchase/Entry/DirectPurchase.mix";
                checklist.UserId = AppUsers.GetCurrent().View.UserId.ToInt();
                checklist.RestrictedTransactionMode = this.IsRestrictedMode;

                this.Placeholder1.Controls.Add(checklist);
            }
        }
コード例 #2
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            long transactionMasterId = Conversion.TryCastLong(this.Request["TranId"]);

            using (Checklist checklist = new Checklist())
            {
                checklist.ViewReportButtonText = Titles.ViewThisDelivery;
                checklist.EmailReportButtonText = Titles.EmailThisDelivery;
                checklist.CustomerReportButtonText = Titles.ViewCustomerCopy;
                checklist.Text = Titles.SalesDelivery;
                checklist.AttachmentBookName = "transaction";
                checklist.OverridePath = "/Modules/Sales/Delivery.mix";
                checklist.DisplayWithdrawButton = true;
                checklist.DisplayViewReportButton = true;
                checklist.DisplayEmailReportButton = true;
                checklist.DisplayCustomerReportButton = true;
                checklist.DisplayPrintReceiptButton = false;
                checklist.DisplayPrintGlEntryButton = true;
                checklist.DisplayAttachmentButton = true;
                checklist.ReportPath = "~/Modules/Sales/Reports/DeliveryReport.mix";
                checklist.CustomerReportPath = "~/Modules/Sales/Reports/DeliveryNoteReport.mix";
                checklist.GlAdvicePath = "~/Modules/Finance/Reports/GLAdviceReport.mix";
                checklist.ViewPath = "/Modules/Sales/Delivery.mix";
                checklist.AddNewPath = "/Modules/Sales/Entry/Delivery.mix";
                checklist.UserId = AppUsers.GetCurrent().View.UserId.ToInt();
                checklist.AttachmentFileName = HostingEnvironment.MapPath("/Resource/Documents/" + checklist.Text + "-#" + transactionMasterId + ".pdf");
                checklist.PartyEmailAddress = Data.Helpers.Parties.GetEmailAddress(AppUsers.GetCurrentUserDB(),
                    TranBook.Sales, SubTranBook.Delivery, transactionMasterId);
                checklist.RestrictedTransactionMode = this.IsRestrictedMode;

                this.Placeholder1.Controls.Add(checklist);
            }
        }
コード例 #3
0
ファイル: Order.ascx.cs プロジェクト: roczj/mixerp
        public override void OnControlLoad(object sender, EventArgs e)
        {
            long transactionMasterId = Conversion.TryCastLong(this.Request["TranId"]);

            using (Checklist checklist = new Checklist())
            {
                checklist.ViewReportButtonText = Titles.ViewThisOrder;
                checklist.EmailReportButtonText = Titles.EmailThisOrder;
                checklist.Text = Titles.PurchaseOrder;
                checklist.PartyEmailAddress = Data.Helpers.Parties.GetEmailAddress(AppUsers.GetCurrentUserDB(),
                    TranBook.Purchase, SubTranBook.Order, transactionMasterId);

                checklist.AttachmentBookName = "non-gl-transaction";
                checklist.OverridePath = "/Modules/Purchase/Order.mix";
                checklist.DisplayViewReportButton = true;
                checklist.DisplayEmailReportButton = true;
                checklist.DisplayAttachmentButton = true;
                checklist.IsNonGlTransaction = true;
                checklist.ReportPath = "~/Modules/Purchase/Reports/PurchaseOrderReport.mix";
                checklist.ViewPath = "/Modules/Purchase/Order.mix";
                checklist.AddNewPath = "/Modules/Purchase/Entry/Order.mix";
                checklist.UserId = AppUsers.GetCurrent().View.UserId.ToInt();
                checklist.RestrictedTransactionMode = this.IsRestrictedMode;

                this.Placeholder1.Controls.Add(checklist);
            }
        }
コード例 #4
0
ファイル: Quotation.ascx.cs プロジェクト: njmube/mixerp
        public override void OnControlLoad(object sender, EventArgs e)
        {
            long transactionMasterId = Conversion.TryCastLong(this.Request["TranId"]);

            using (Checklist checklist = new Checklist())
            {
                checklist.ViewReportButtonText = Titles.ViewThisQuotation;
                checklist.EmailReportButtonText = Titles.EmailThisQuotation;
                checklist.Text = Titles.SalesQuotation;

                checklist.AttachmentFileName = HostingEnvironment.MapPath("/Resource/Documents/" + checklist.Text + "-#" + transactionMasterId + ".pdf");
                checklist.PartyEmailAddress = Data.Helpers.Parties.GetEmailAddress(AppUsers.GetCurrentUserDB(),
                    TranBook.Sales, SubTranBook.Quotation, transactionMasterId);

                checklist.AttachmentBookName = "non-gl-transaction";
                checklist.OverridePath = "/Modules/Sales/Quotation.mix";
                checklist.DisplayViewReportButton = true;
                checklist.DisplayEmailReportButton = true;
                checklist.DisplayAttachmentButton = true;
                checklist.IsNonGlTransaction = true;
                checklist.ReportPath = "~/Modules/Sales/Reports/SalesQuotationReport.mix";
                checklist.ViewPath = "/Modules/Sales/Quotation.mix";
                checklist.AddNewPath = "/Modules/Sales/Entry/Quotation.mix";
                checklist.UserId = AppUsers.GetCurrent().View.UserId.ToInt();
                checklist.RestrictedTransactionMode = this.IsRestrictedMode;

                this.Placeholder1.Controls.Add(checklist);
            }
        }
コード例 #5
0
ファイル: Transfer.ascx.cs プロジェクト: njmube/mixerp
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Checklist checklist = new Checklist())
            {
                checklist.ViewReportButtonText = Titles.ViewThisTransfer;
                checklist.Text = Titles.StockTransferJournal;
                checklist.AttachmentBookName = "transaction";
                checklist.OverridePath = "/Modules/Inventory/Transfer.mix";
                checklist.DisplayWithdrawButton = true;
                checklist.DisplayViewReportButton = true;
                checklist.DisplayAttachmentButton = true;
                checklist.ReportPath = "~/Modules/Inventory/Reports/InventoryTransferReport.mix";
                checklist.ViewPath = "/Modules/Inventory/Transfer.mix";
                checklist.AddNewPath = "/Modules/Inventory/Entry/Transfer.mix";
                checklist.UserId = AppUsers.GetCurrent().View.UserId.ToInt();
                checklist.RestrictedTransactionMode = this.IsRestrictedMode;

                this.Placeholder1.Controls.Add(checklist);
            }
        }
コード例 #6
0
        public override void OnControlLoad(object sender, EventArgs e)
        {
            using (Checklist checklist = new Checklist())
            {
                checklist.Text = Titles.JournalVoucherEntry;
                checklist.DisplayWithdrawButton = true;
                checklist.DisplayPrintGlEntryButton = true;
                checklist.DisplayAttachmentButton = true;
                checklist.AttachmentBookName = "transaction";
                checklist.OverridePath = this.OverridePath;

                checklist.ViewPath = "~/Modules/Finance/JournalVoucher.mix";
                checklist.AddNewPath = "~/Modules/Finance/Entry/JournalVoucher.mix";
                checklist.GlAdvicePath = "~/Modules/Finance/Reports/GLAdviceReport.mix";
                checklist.UserId = AppUsers.GetCurrent().View.UserId.ToInt();
                checklist.RestrictedTransactionMode = this.IsRestrictedMode;

                this.Placeholder1.Controls.Add(checklist);
            }
        }