コード例 #1
0
        public CreateSalesPVC(MainForm main)
        {
            this.main           = main;
            this.MdiParent      = main;
            this.searchCustomer = new Master.Customer.SearchCustomerPVC(main);
            this.searchPVC      = new SearchPVC(main);
            this.cart           = new List <SalesPVCList>();

            InitializeComponent();
        }
コード例 #2
0
        public ViewAllSales(MainForm main)
        {
            this.main      = main;
            this.MdiParent = main;
            detail         = new List <ViewSalesPVCList>();
            searchCust     = new Master.Customer.SearchCustomerPVC(main);
            super          = new DialogBox.SupervisorForm(main);

            InitializeComponent();
        }
コード例 #3
0
        private void btnSearchCust_Click(object sender, EventArgs e)
        {
            Master.Customer.SearchCustomerPVC searchCustomer = new Master.Customer.SearchCustomerPVC(main);
            DialogResult result = searchCustomer.ShowDialog();

            if (result == DialogResult.OK)
            {
                customerID      = main.globalCustomerID;
                tbCustomer.Text = main.globalCustomerName;
            }
        }
コード例 #4
0
        private void btnSearchCustomer_Click(object sender, EventArgs e)
        {
            Master.Customer.SearchCustomerPVC searchCustomer = new Master.Customer.SearchCustomerPVC(main);

            DialogResult result = searchCustomer.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                parentCompanyID = main.globalParentCompanyID;
                companyID       = main.globalCompanyID;
                customerID      = main.globalCustomerID;

                DataTable dt = ExecuteQuery("SELECT companyName, phone, address FROM MsCompany WHERE companyID = " + companyID + "");
                companyAddress         = dt.Rows[0]["address"].ToString();
                tbCustomerCompany.Text = dt.Rows[0]["companyName"].ToString();
                dt = ExecuteQuery("SELECT customerName, phone, address FROM MsCustomer WHERE customerID = " + customerID + "");
                customerAddress      = dt.Rows[0]["address"].ToString();
                tbCustomerName.Text  = dt.Rows[0]["customerName"].ToString();
                tbCustomerPhone.Text = dt.Rows[0]["phone"].ToString();
            }
        }