예제 #1
0
        private void navBarItem1_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            var form = new Sales_Invoice();

            if (ExitForm(form))
            {
                return;
            }
            form.MdiParent = this;
            form.Show();
        }
예제 #2
0
        private void barButtonItem5_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            string deliveryno = txtdeliveryNo.Text;

            salesDeliveryData.FnConn();
            DataTable dt = salesDeliveryData.FillData("search", deliveryno, "spsalesDelivery");

            salesDeliveryData.FnTrans();
            if (dt.Rows.Count > 0)
            {
                string status = dt.Rows[0]["status"] + "";
                if (status == "No Invoice")
                {
                    Sales_Invoice inv = new Sales_Invoice();
                    inv.deliveryno = deliveryno;
                    inv.ShowDialog();
                }
                else if (status == "Invoice Created")
                {
                    MessageBox.Show("Invocie is created already against this delivery Note " + deliveryno, "ALERT", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }