예제 #1
0
    protected void btnSaveDetails_Click(object sender, EventArgs e)
    {
        DataSet ds = G_GetPass.Local_GetPass_DCNo_BillNo_Validation(Convert.ToDecimal(txtDcNo.Text.Trim()), txtBillNo.Text.Trim(), Convert.ToInt32(strFY), "check");

        if (lblEditMode.Text != "edit")
        {
            //  if ((ds.Tables[0].Rows.Count > 0))
            //  {

            //    MessageBox(ds.Tables[0].Rows[0][0].ToString());

            //  }
            //  else
            {
                grdTemp.DataSource = fillTempBookData(txtBillNo.Text.Trim(), txtDcNo.Text.Trim());
                grdTemp.DataBind();
                clearStrip();
            }
        }
        else
        {
            //  if (ds.Tables[0].Rows.Count > 0)
            // {

            //    if (ds.Tables[0].Rows[0][1] == "1")
            //   {
            //      MessageBox(ds.Tables[0].Rows[0][0].ToString());

            //   }
            //    else
            //   {
            grdTemp.DataSource = fillTempBookData(txtBillNo.Text.Trim(), txtDcNo.Text.Trim());
            grdTemp.DataBind();
            clearStrip();

            //   }

            // }
        }

        txtDcNo.Focus();
    }
예제 #2
0
    protected void txtBillNo_TextChanged(object sender, EventArgs e)
    {
        DataSet ds = G_GetPass.Local_GetPass_DCNo_BillNo_Validation(Convert.ToDecimal(txtDcNo.Text.Trim()), txtBillNo.Text.Trim(), Convert.ToInt32(strFY), "checkoutstation");

        if (ds.Tables[0].Rows.Count > 0)
        {
            if (txtBillNo.Text.Trim() != lblclone.Text)
            {
                MessageBox(ds.Tables[0].Rows[0][0].ToString());
                txtDcNo.Text     = "";
                txtBillNo.Text   = "";
                txtcustomer.Text = "";
                lblCustomer.Text = "";
            }
        }
        else
        {
            txttransporter.Focus();
        }
    }