Esempio n. 1
0
 void LoadPostingType()
 {
     try
     {
         List <ATTPostingType> lstPostingTypes = BLLPostingType.GetPostingType(null, null);
         Session["PostingType"]             = lstPostingTypes;
         this.lstPostingType.DataSource     = lstPostingTypes;
         this.lstPostingType.DataTextField  = "POSTINGTYPENAME";
         this.lstPostingType.DataValueField = "POSTINGTYPEID";
         this.lstPostingType.DataBind();
     }
     catch (Exception ex)
     {
         this.lblStatusMessage.Text = ex.Message;
         this.programmaticModalPopup.Show();
     }
 }
 void LoadPostingType()
 {
     try
     {
         List <ATTPostingType> PostingTypeList = BLLPostingType.GetPostingType(null, "Y");
         PostingTypeList.Insert(0, new ATTPostingType(0, "--- छान्नुहोस ---", ""));
         this.ddlPostingType_rqd.DataSource     = PostingTypeList;
         this.ddlPostingType_rqd.DataTextField  = "POSTINGTYPENAME";
         this.ddlPostingType_rqd.DataValueField = "POSTINGTYPEID";
         this.ddlPostingType_rqd.DataBind();
     }
     catch (Exception ex)
     {
         this.lblStatusMessage.Text = ex.Message;
         this.programmaticModalPopup.Show();
     }
 }
 void LoadPostingType()
 {
     try
     {
         List <ATTPostingType> lst = BLLPostingType.GetPostingType(null, "Y");
         if (lst.Count > 0)
         {
             lst.Insert(0, new ATTPostingType(0, "--- Select Type ---", "Y"));
         }
         this.ddlPostingType.DataSource     = lst;
         this.ddlPostingType.DataTextField  = "PostingTypeName";
         this.ddlPostingType.DataValueField = "PostingTypeID";
         this.ddlPostingType.DataBind();
     }
     catch (Exception ex)
     {
         this.lblStatusMessage.Text = ex.Message;
         this.programmaticModalPopup.Show();
     }
 }