Exemplo n.º 1
0
    protected void txtDocNoGet_TextChanged(object sender, EventArgs e)
    {
        {
            try
            {
                string  DocNo = txtDocNoGet.Text;
                DataSet Ds    = new DataSet();
                Ds = CourierDetails.GetCourierValidation("DocNoCourier", DocNo);

                if (Ds.Tables[0].Rows.Count != 0)
                {
                    MessageBox("Courier Id is Already Created   " + Ds.Tables[0].Rows[0]["SCMasterAutoId"].ToString());
                    txtDocNoGet.Text = "";
                    txtDocNoGet.Focus();
                }
                else
                {
                    txtDocNoGet.Focus();
                }
            }
            catch
            {
            }
        }
    }
Exemplo n.º 2
0
    protected void txtInvoiceNoGet_TextChanged(object sender, EventArgs e)
    {
        {
            try
            {
                string  Invoice = txtInvoiceNoGet.Text;
                DataSet Ds      = new DataSet();
                Ds = CourierDetails.GetCourierValidation("InvoiceCourier", Invoice);

                if (Ds.Tables[0].Rows.Count != 0)
                {
                    MessageBox("Courier is already generated for this invoce no is  " + Ds.Tables[0].Rows[0]["SCMasterAutoId"].ToString() + " Do you want to create it again ?");
                    //txtInvoiceNoGet.Text = "";
                    txtInvoiceNoGet.Focus();
                }
                else
                {
                    txtInvoiceNoGet.Focus();
                }
            }
            catch
            {
            }
        }
    }