예제 #1
0
 private void BindReciptTypes()
 {
     try
     {
         BAReceiptType objRecieptType = new BAReceiptType();
         int           reciptType     = 0;
         ddldpstReceiptType.Items.Clear();
         DataSet ObjDsClients = objRecieptType.GetReceiptType(reciptType);
         if (ObjDsClients.Tables[0].Rows.Count > 0)
         {
             ddldpstReceiptType.DataSource     = ObjDsClients;
             ddldpstReceiptType.DataValueField = "ReceiptId";
             ddldpstReceiptType.DataTextField  = "RecDescription";
             ddldpstReceiptType.DataBind();
             ddldpstReceiptType.Items.Insert(0, new ListItem("Select Receipt Type", "0"));
         }
         else
         {
             ddldpstReceiptType.Items.Insert(0, new ListItem("Select Receipt Type", "0"));
         }
     }
     catch (Exception ex)
     {
         lblMsg.Text = _objBOUtiltiy.ShowMessage("danger", "error", ex.Message);
         ExceptionLogging.SendExcepToDB(ex);
     }
 }