예제 #1
0
        private void buttonSelect_Click(object sender, EventArgs e)
        {
            FormBaseSupplier fbs = new FormBaseSupplier(true);

            fbs.ShowDialog();

            m_supplierPkey = fbs.getSelectRecordPkey();
            SupplierTable record = Supplier.getInctance().getSupplierInfoFromPkey(m_supplierPkey);

            this.textBoxSupplierName.Text = Convert.ToString(record.pkey) + "-" + record.name;
        }
예제 #2
0
        private void panelPurchaseName_DoubleClick(object sender, EventArgs e)
        {
            if (!this.textBoxPurchaseName.Visible)
            {
                this.labelPurchaseName.Visible   = false;
                this.textBoxPurchaseName.Visible = true;
            }
            else
            {
                FormBaseSupplier fbs = new FormBaseSupplier(true);
                fbs.ShowDialog();

                m_supplierPkey = fbs.getSelectRecordPkey();
                SupplierTable record = Supplier.getInctance().getSupplierInfoFromPkey(m_supplierPkey);
                this.textBoxPurchaseName.Text    = record.name;
                this.textBoxPurchaseName.Visible = true;
            }
        }
예제 #3
0
 private void buttonSelect_Click(object sender, EventArgs e)
 {
     if (m_userInterfaceValue.isAccountReceivable)
     {
         FormBaseCustomer fbs = new FormBaseCustomer(true);
         fbs.ShowDialog();
         m_selectRecordPkey = fbs.getSelectRecordPkey();
         CustomerTable record = Customer.getInctance().getCustomerInfoFromPkey(m_selectRecordPkey);
         this.textBoxName.Text = Convert.ToString(record.pkey) + "-" + record.name;
     }
     else
     {
         FormBaseSupplier fbs = new FormBaseSupplier(true);
         fbs.ShowDialog();
         m_selectRecordPkey = fbs.getSelectRecordPkey();
         SupplierTable record = Supplier.getInctance().getSupplierInfoFromPkey(m_selectRecordPkey);
         this.textBoxName.Text = Convert.ToString(record.pkey) + "-" + record.name;
     }
 }
예제 #4
0
        private void menuBaseInfoSupplier_Click(object sender, EventArgs e)
        {
            FormBaseSupplier fbs = new FormBaseSupplier();

            fbs.ShowDialog();
        }