Example #1
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            frmFindServices frm = new frmFindServices();

            frm.ShowDialog();

            if (frm.strServiceID.Trim() != "")
            {
                txtSwid.Text = frm.strServiceID;
                GetData(txtSwid.Text);
            }
        }
Example #2
0
        private void btnFindServices_Click(object sender, EventArgs e)
        {
            new glb_function().clearItems(gbServices);
            frmFindServices frm = new frmFindServices();

            frm.ShowDialog();

            if (frm.strServiceID.Trim() != "")
            {
                txtSrvcSwid.Text = frm.strServiceID;
                GetSrvceData(txtSrvcSwid.Text);
                GetSrvceItemData(txtSrvcSwid.Text);

                if (dgServiceItems.Rows.Count > 0)
                {
                    dgServiceItems.Rows[0].Selected = true;

                    GetSrvceMaterialData(dgServiceItems[0, 0].Value.ToString());
                }
            }
        }