示例#1
0
 public Transactions(Transactions_Types transaction)
 {
     InitializeComponent();
     Pro_IDS = new List<string>();
     Transaction = transaction;
     Products.Get_All_Products(Product_CB, "البحث");
     Fill_Transactions_LB();
     Get_Transactions_Details_Table();
     PD1 = new PrintDocument();
     PD1.PrintPage += new PrintPageEventHandler(PD1_PrintPage);          
     Initialize_Page();
 }
示例#2
0
        public int Payment_type = 5;  // customer  = 5
                                      // supplier = 6

        public Payment(Transactions_Types transaction_type, object payment_id = null)
        {
            InitializeComponent();

            Payment_Id = payment_id;
            Transaction = transaction_type;
            //Get_New_No();
            
            if(Transaction == Transactions_Types.Cust)
            {
                Customers.Get_All_Customers(Person_CB, "customers");
            }
            else
            {
                Payment_type = 6;

                Person_TK.Text = "المورد";
                Suppliers.Get_All_Suppliers(Person_CB);
            }
            if(Payment_Id != null)
            {
                Get_Payment();
            }
        }