Ejemplo n.º 1
0
        private void btn_lookupparentpub_Click(object sender, EventArgs e)
        {
            SQLFunction sqlfunc = new SQLFunction();

            string parentpubname = sqlfunc.GetParentPublisherName(str_Company, txt_AgentCode.Text, lbl_parentpubname);

            if (parentpubname.Length == 0)
            {
                lbl_parentaccount.Enabled       = true;
                drpbx_parentaccountname.Enabled = true;
                Display_ParentPublisher();
            }
            else
            {
                lbl_parentaccount.Enabled       = false;
                drpbx_parentaccountname.Enabled = false;
            }
        }