Ejemplo n.º 1
0
        private void bindEmpByStore(string strStoreNum)
        {
            DataTable dt = resvh.LoadAllEmployeeForReservation();

            CommonUtil.BindDropDownListAndSelect(ddlStoreNum, emph.LoadStoreInfo(), "storeName", "storeNum");
            CommonUtil.BindDropDownList(ddlEmployee, dt, "employeeNum", "employeeNum");

            if (strStoreNum != "")
            {
                CommonUtil.SetDropDownSelectedByValue(ddlStoreNum, strStoreNum);
                CommonUtil.BindDropDownList(ddlEmployee, resvh.LoadEmployeeDataByStoreNum(strStoreNum), "employeeNum", "employeeNum");
            }

            if (Request["emp"] != null)
            {
                CommonUtil.SetDropDownSelectedByValue(ddlEmployee, Request["emp"]);
                vw_Employee emp = emph.Loadvw_EmployeeByNum(Request["emp"]);
                CommonUtil.SetDropDownSelectedByValue(ddlStoreNum, emp.storeNum);
            }
        }
Ejemplo n.º 2
0
        protected void ddlStoreNum_SelectedIndexChanged(object sender, EventArgs e)
        {
            string strStoreNum = ddlStoreNum.SelectedValue;

            CommonUtil.BindDropDownList(ddlEmployee, resvh.LoadEmployeeDataByStoreNum(strStoreNum), "employeeNum", "employeeNum");
        }
 private void bindStore()
 {
     CommonUtil.BindDropDownList(this.ddlStoreNum, eh.LoadStoreInfo(), "storeName".Trim(), "storeNum".Trim());
 }