示例#1
0
    // Bind Dropdown : Transport Details.
    public void BindDDlTransport()
    {
        string grp = "Transport";

        DDlTransport.DataSource = Masterofmaster.Get_MasterOfMaster_ByGroup_ForDropdown(grp, "DropDown");
        DDlTransport.DataBind();
        DDlTransport.Items.Insert(0, new ListItem("-Select Transporter-", "none"));
    }
示例#2
0
    protected void txtcustomer_TextChanged(object sender, EventArgs e)
    {
        string CustCode = txtcustomer.Text.ToString().Split(':')[0].Trim();

        //  txtcustomer.Text = CustCode;
        DataTable dt = new DataTable();

        dt = DCMaster.Get_Name(CustCode, "Customer").Tables[0];
        if (dt.Rows.Count != 0)
        {
            txtcustomer.Text = CustCode;
            lblCustName.Text = Convert.ToString(dt.Rows[0]["CustName"]);
            DDlTransport.Focus();

            DataSet ds = new DataSet();
            ds = Idv.Chetana.BAL.CustomerToTransport.Get_CustomerandTransporterValueAD(CustCode);
            if (ds.Tables[0].Rows.Count != 0)
            {
                pnlGet_TransDetails.Visible = true;
                grdget.DataSource           = ds.Tables[0];
                grdget.DataBind();
                grdget.Visible = true;
            }
            else
            {
                grdget.Visible = false;
                //  MessageBox("No Such Record Found");
            }
        }

        else
        {
            lblCustName.Text = "No such Customer code";
            txtcustomer.Focus();
            txtcustomer.Text = "";
        }
    }