private void BindMainBranchDetails()
    {
        DataTable dtBranch = branchObj.GetDefaulBranchDetails();

        if (dtBranch.Rows.Count > 0)
        {
            string BAddress = string.Empty;
            lblMudarAddress.Text  = dtBranch.Rows[0]["Bname"].ToString();
            BAddress              = dtBranch.Rows[0]["Address"].ToString();
            lblMudarAddress.Text += "<br/>" + BAddress;
            lblMudarAddress.Text += "<br/>" + dtBranch.Rows[0]["City"].ToString();
            lblMudarAddress.Text += "<br/>" + dtBranch.Rows[0]["State"].ToString();
            lblMudarAddress.Text += "<br/>" + dtBranch.Rows[0]["Country"].ToString();
            lblContactPerson.Text = dtBranch.Rows[0]["ContactPerson"].ToString();
            lblPhone.Text         = dtBranch.Rows[0]["Phone_Fax"].ToString();
            lblMobile.Text        = dtBranch.Rows[0]["Mobile"].ToString();
            lblIECode.Text        = dtBranch.Rows[0]["IECode"].ToString();
            lblEmail.Text         = dtBranch.Rows[0]["Email"].ToString();
            lblFDA.Text           = dtBranch.Rows[0]["FDA"].ToString();
            lblWebsite.Text       = dtBranch.Rows[0]["Website"].ToString();
            lblAPVAT.Text         = dtBranch.Rows[0]["AP_VAT"].ToString();
            lblBank.Text          = dtBranch.Rows[0]["BankName"].ToString();
            lblBankAccount.Text   = dtBranch.Rows[0]["BankAcct_no"].ToString();
            lblBankADC.Text       = dtBranch.Rows[0]["Bank_ADC_Code"].ToString();

            lblInvoiceDate.Text = string.Format("{0: dd MMM yyyy}", DateTime.Now);
            string   year = DateTime.Now.Year.ToString();
            string[] yy   = year.Split('2');
            string[] yy2  = yy[0].Split('0');
            lblInvoice.Text = mudarObj.GenerateInvoiceID();
        }
    }
    private void BindMudar()
    {
        DataTable dtBranch = branchObj.GetDefaulBranchDetails();

        if (dtBranch.Rows.Count > 0)
        {
            lblMudarEmail.Text = dtBranch.Rows[0]["Email"].ToString();
        }
    }
Beispiel #3
0
    private void BindMainBranchDetails()
    {
        DataTable dtBranch = branchObj.GetDefaulBranchDetails();

        if (dtBranch.Rows.Count > 0)
        {
            lblBranchAddress.Text  = dtBranch.Rows[0]["Bname"].ToString();
            lblBranchAddress.Text += "<br/>" + dtBranch.Rows[0]["Address"].ToString();
            lblBranchAddress.Text += "<br/>" + dtBranch.Rows[0]["City"].ToString();
            lblBranchAddress.Text += "<br/>" + dtBranch.Rows[0]["State"].ToString();
            lblBranchAddress.Text += "<br/>" + dtBranch.Rows[0]["Country"].ToString();
        }
    }
Beispiel #4
0
    private void BindBranchAddress()
    {
        DataTable dtBranch = bre.GetDefaulBranchDetails();

        if (dtBranch.Rows.Count > 0)
        {
            Session["branchID"]  = dtBranch.Rows[0]["branchID"].ToString();
            lblMainAddress.Text  = dtBranch.Rows[0]["Bname"].ToString();
            lblMainAddress.Text += "<br/>" + dtBranch.Rows[0]["Address"].ToString();
            lblMainAddress.Text += "<br/>" + dtBranch.Rows[0]["City"].ToString();
            lblMainAddress.Text += "<br/>" + dtBranch.Rows[0]["State"].ToString();
            lblMainAddress.Text += "<br/>" + dtBranch.Rows[0]["Country"].ToString();
        }
    }
    private void BindBranchAddress()
    {
        DataTable dtBranch = branchObj.GetDefaulBranchDetails();

        if (dtBranch.Rows.Count > 0)
        {
            Session["branchID"]      = dtBranch.Rows[0]["branchID"].ToString();
            lblExporterAddress.Text  = dtBranch.Rows[0]["Address"].ToString();
            lblExporterAddress.Text += "<br/>" + dtBranch.Rows[0]["City"].ToString();
            lblExporterAddress.Text += "<br/>" + dtBranch.Rows[0]["Taluk"].ToString();
            lblExporterAddress.Text += "<br/>" + dtBranch.Rows[0]["District"].ToString();
            lblExporterAddress.Text += "<br/>" + dtBranch.Rows[0]["State"].ToString();
            lblExporterAddress.Text += "<br/>" + dtBranch.Rows[0]["Country"].ToString();
        }
    }