protected void txtOrderDate_TextChanged(object sender, EventArgs e)
        {
            DateTime date = DateTime.Today;

            try
            {
                date = DateTime.Parse(txtOrderDate.Text);
            }
            catch { }
            txtOrderNo.Text = PurchaseOrderBll.GetNewPurchaseOrderNo(date);
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         //loadDatagrid();
         FillProductsToPurchase("Consumable Product");
         //CleargrdProductToPurchaseSelected();
         // FillProductGroup();
         txtOrderDate.Text = DateTime.Today.ToShortDateString();
         txtOrderNo.Text   = PurchaseOrderBll.GetNewPurchaseOrderNo(DateTime.Today);
     }
 }