コード例 #1
0
 private void InitializeControls()
 {
     try
     {
         #region PromotionType
         ddlPromotionType.DataSource     = ManagerPromotion.GetAllGen_LookupEnt(ASL.Hr.DAO.enumsHr.enumEntitySetup.PromotionType);
         ddlPromotionType.DataTextField  = "ElementName";
         ddlPromotionType.DataValueField = "ElementKey";
         ddlPromotionType.DataBind();
         ddlPromotionType.Items.Insert(0, new ListItem()
         {
             Value = "", Text = ""
         });
         #endregion
         #region IncrementType
         ddlIncrementType.DataSource     = ManagerPromotion.GetAllGen_LookupEnt(ASL.Hr.DAO.enumsHr.enumEntitySetup.IncrementType);
         ddlIncrementType.DataTextField  = "ElementName";
         ddlIncrementType.DataValueField = "ElementKey";
         ddlIncrementType.DataBind();
         ddlIncrementType.Items.Insert(0, new ListItem()
         {
             Value = "", Text = ""
         });
         #endregion
         #region Salary Rule
         ddlSalaryRule.DataSource     = ManagerPromotion.GetAllSalaryRuleBackup();
         ddlSalaryRule.DataTextField  = "SalaryRuleCode";
         ddlSalaryRule.DataValueField = "SalaryRuleCode";
         ddlSalaryRule.DataBind();
         ddlSalaryRule.Items.Insert(0, new ListItem(String.Empty, String.Empty));
         ddlSalaryRule.SelectedIndex = 0;
         #endregion
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }
コード例 #2
0
 private void InitializeControls()
 {
     try
     {
         #region Transfer Type
         ddlTransferType.DataSource     = ManagerPromotion.GetAllGen_LookupEnt(ASL.Hr.DAO.enumsHr.enumEntitySetup.TransferType);
         ddlTransferType.DataTextField  = "ElementName";
         ddlTransferType.DataValueField = "ElementKey";
         ddlTransferType.DataBind();
         ddlTransferType.Items.Insert(0, new ListItem()
         {
             Value = "", Text = ""
         });
         #endregion
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }