private void btnOK_Click(object sender, EventArgs e)
        {
            if (this.txtURL.Text.Trim().Length > 0)
            {
                EFilingPublic dalSave   = new EFilingPublic();
                int           intStatus = 0;
                string[]      strData   = new string[2];
                strData[0] = this.txtURL.Text.Trim().ToLower();;
                strData[1] = "Q0000PageX";

                intStatus = dalSave.Execute(strData, "UPD");
                if (intStatus > 0)
                {
                    MessageBox.Show("URL updated!", "TAXcom E-Filing", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    this.Close();
                }
                else
                {
                    MessageBox.Show("Updates of URL failed!", "TAXcom E-Filing", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
            }
            else
            {
                MessageBox.Show("Please complete the url!", "TAXcom E-Filing", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
        }
        private void frmTaxAgentLogIn_Load(object sender, EventArgs e)
        {
            EFilingPublic dalLoad = new EFilingPublic();
            string        strURL  = "";

            strURL           = dalLoad.GetURL("Q0000PageX");
            this.txtURL.Text = strURL;
        }
Exemple #3
0
        private void frmEFileSelect_Load(object sender, EventArgs e)
        {
            //LoadData();
            //NGOHCS 2009
            cboAuditor.Enabled  = false;
            cboTaxAgent.Enabled = false;
            txtPosition.Enabled = false;
            cboYA.Enabled       = false;
            chkKeep.Enabled     = false;
            string[]      strArray = new string[8];
            EFilingPublic dsn      = new EFilingPublic();

            if (dsn.isExist("TAXSYSTEM", DSNType.System_DSN))
            {
                strArray[0] = "C";
                strArray[1] = "R";
                //PANYW CP204
                strArray[2] = "CP204";
                //PANYW CP204 END
                //NGOHCS CP204A
                strArray[3] = "CP204A";
                //NGOHCS CP204A END
            }
            if (dsn.isExist("TAXCOM_B", DSNType.System_DSN))
            {
                strArray[4] = "B";
                strArray[5] = "BE";
                strArray[6] = "M";
            }
            if (dsn.isExist("TAXCOM_P", DSNType.System_DSN))
            {
                strArray[7] = "P";
            }
            foreach (string strTemp in strArray)
            {
                if (!(strTemp == null))
                {
                    cboForm.Items.Add(strTemp);
                    toolStripCboForm.Items.Add(strTemp);
                }
            }
            toolStripCboBy.Text = "Name";
            if (toolStripCboForm.Items.Count > 0 && toolStripCboForm.Text == "")
            {
                toolStripCboForm.SelectedIndex = 0;
            }
        }